:root {
  --steel: #3d6a8a;
  --steel-deep: #1f3b52;
  --rust: #c05a3c;
  --cream: #f7f4ef;
  --card: #fff;
  --ink: #26323a;
  --muted: #6b7680;
  --line: #e1e6e9;
  --radius: 1.2rem;
  --shadow: 0 20px 42px -26px rgba(31,59,82,.4);
  --display: 'Kanit', 'Montserrat', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
section[id] { scroll-margin-top: 160px; }
h1, h2, h3, .logo-text-main { font-family: var(--display); }

/* Header */
#stickyHeader { background: rgba(247,244,239,.95); backdrop-filter: blur(6px); box-shadow: none; border-bottom: 1px solid var(--line); padding: .8rem 1.5rem; }
.logo-branding img { width: 42px; height: 42px; border-radius: 50%; }
.logo-text-main { font-size: 1.05rem; letter-spacing: .02em; color: var(--steel-deep); }
.logo-text-sub { font-size: .7rem; letter-spacing: .1em; color: var(--rust); }
.logo-text-retail { display: none; }
#mainNav a { font-weight: 700; font-size: .86rem; color: var(--ink); }
#mainNav a.active, #mainNav a:hover { background: #eef3f6 !important; color: var(--steel) !important; }

main { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
main > section { margin-bottom: clamp(3.2rem, 7vw, 5.5rem); }
main h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--steel-deep); margin-bottom: 1.2rem; }

/* Hero */
.hero {
  background: linear-gradient(150deg, var(--steel) 0%, var(--steel-deep) 100%); color: #dde8ef;
  border-radius: 1.8rem; padding: clamp(2rem, 5vw, 3.8rem) 1.5rem; margin-top: 1.6rem; box-shadow: var(--shadow);
  max-width: 1180px; margin-left: auto; margin-right: auto; text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.hero h2 { color: var(--rust); font-weight: 500; font-size: 1.15rem; margin: .6rem 0 1.2rem; background: none; }
.hero p { color: #c4d4e0; max-width: 62ch; margin: 0 auto .8rem; }
.hero .tagline { display: inline-block; background: var(--rust); color: #fff; font-weight: 700; padding: .5rem 1.3rem; border-radius: 999px; margin-top: 1rem; }

/* About */
#about .about-details { background: var(--card); border: 1px solid var(--line); border-radius: 1.6rem; padding: clamp(1.8rem,4vw,3rem); }
.about-list { list-style: none; margin-top: 1.2rem; display: grid; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 1.3rem; padding: 1.4rem; }
.about-list li { font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.about-list li:last-child { border-bottom: none; padding-bottom: 0; }
.about-list strong { color: var(--steel); }

/* Products */
#products > div:first-of-type { background: var(--card); border: 1px solid var(--line); border-radius: 1.3rem; padding: 1.4rem 1.6rem; margin-bottom: 1.2rem; }
#products > ul { background: var(--card); border: 1px solid var(--line); border-radius: 1.3rem; padding: 1.4rem 1.6rem; margin: 0 0 1.4rem; list-style: none; display: grid; gap: .7rem; }
#products > ul strong { color: var(--steel); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.product-card { background: var(--card); border: none; border-radius: 1.1rem; box-shadow: var(--shadow); padding: 0 0 1.2rem; overflow: hidden; transition: transform .2s; }
.product-card:hover { transform: translateY(-5px); }
.product-card img { width: 100%; height: 150px; object-fit: contain; background: var(--cream); padding: .9rem; margin-bottom: .8rem; }
.product-title { font-family: var(--display); color: var(--steel-deep); font-size: 1rem; padding: 0 1rem; }
.product-desc { color: var(--muted); font-size: .8rem; padding: .3rem 1rem 0; }
.product-info { color: var(--muted); font-size: .76rem; padding: .35rem 1rem 0; }
.product-price { color: var(--rust); font-weight: 800; font-size: 1.1rem; padding: .4rem 1rem .8rem; }
.add-to-cart-btn { margin: 0 1rem; width: calc(100% - 2rem); background: var(--steel); color: #fff; border: none; border-radius: 999px; padding: .65rem; font-weight: 700; cursor: pointer; }
.add-to-cart-btn:hover { background: var(--rust); }

/* Cart */
.cart-section { background: var(--card); border: 1px solid var(--line); border-radius: 1.3rem; padding: 1.8rem; }
.cart-section h3 { color: var(--steel-deep); }
.checkout-btn { background: var(--steel); color: #fff; border: none; border-radius: 999px; padding: .75rem 1.4rem; font-weight: 700; cursor: pointer; }
.checkout-btn:hover { background: var(--rust); }
.floating-cart-btn { background: var(--steel); box-shadow: 0 14px 28px -8px rgba(61,106,138,.6); border-radius: 50%; }
.cart-modal { border-radius: 1.3rem; }

/* Contact */
#contact { background: var(--steel-deep); color: #dde8ef; border-radius: 1.6rem; padding: clamp(1.8rem,4vw,3rem); }
#contact .contact-details { color: #dde8ef; }
#contact h2 { color: #fff; }
#contact strong { color: #f0c9ba; }
#contact ul { list-style: none; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
#contact li { background: rgba(255,255,255,.08); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; }

/* Testimonials + FAQ generic */
main > section:nth-last-child(2), main > section:last-child { background: var(--card); border: 1px solid var(--line); border-radius: 1.3rem; padding: clamp(1.6rem,4vw,2.4rem); }

footer { background: var(--steel-deep); border-radius: 1.8rem 1.8rem 0 0; }

@media (max-width: 1000px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero { border-radius: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
