:root {
  --brown-900: #3b2417;
  --brown-800: #4a3222;
  --brown-700: #6b4a34;
  --brown-600: #8a6549;
  --cream-50: #fbf6ee;
  --cream-100: #f5ede0;
  --peach-200: #f3ddc0;
  --peach-300: #eecda2;
  --gold-500: #c8862e;
  --orange-600: #e2632b;
  --green-600: #5b8c5a;
  --green-100: #e7f1e3;
  --pink-500: #e88aa0;
  --pink-100: #fbe8ee;
  --red-500: #e4483a;
  --border: #ece1d2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 4px 18px rgba(59, 36, 23, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--brown-800);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }

.btn-dark {
  background: var(--brown-900);
  color: var(--cream-50);
}
.btn-dark:hover { background: #2c1a10; box-shadow: 0 8px 20px rgba(59,36,23,0.25); }

.btn-dark-sm {
  background: var(--brown-900);
  color: var(--cream-50);
  padding: 10px 22px;
  font-size: 0.85rem;
}
.btn-dark-sm:hover { background: #2c1a10; }

.btn-outline-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
  border: 1.5px solid var(--brown-900);
  background: transparent;
  color: var(--brown-900);
}
.btn-outline-sm:hover { background: var(--brown-900); color: var(--cream-50); }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 30px;
  height: 30px;
  stroke: var(--gold-500);
  stroke-width: 1.6;
}
.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--brown-900);
  line-height: 1.1;
}
.logo-text small {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-500);
}

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: 28px;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brown-700);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--brown-900);
  border-bottom-color: var(--gold-500);
}
.main-nav .caret { width: 10px; height: 7px; stroke-width: 2.4; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--cream-100);
  border-radius: 999px;
  padding: 0 6px 0 16px;
  height: 40px;
  width: 220px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 0.85rem;
  color: var(--brown-800);
}
.search-box input::placeholder { color: var(--brown-600); }
.search-box button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--brown-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-box svg { width: 17px; height: 17px; }

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--brown-800);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--cream-100); }

.cart-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--orange-600);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--brown-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--cream-100) 0%, var(--peach-200) 55%, var(--peach-300) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.eyebrow { margin: 0 0 6px; font-size: 1rem; color: var(--brown-700); }
.hero-content h1 {
  margin: 0 0 14px;
  font-size: 2.75rem;
  letter-spacing: 1px;
  color: var(--brown-900);
}
.hero-desc {
  max-width: 460px;
  color: var(--brown-700);
  line-height: 1.6;
  margin: 0 0 26px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 16px 34px;
  margin-bottom: 30px;
}
.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hero-features svg {
  width: 22px; height: 22px;
  color: var(--gold-500);
  flex-shrink: 0;
  margin-top: 2px;
}
.hero-features span {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brown-900);
}
.hero-features small {
  font-weight: 400;
  color: var(--brown-700);
  font-size: 0.78rem;
}

.hero-media { position: relative; text-align: center; }
.hero-image {
  aspect-ratio: 4 / 5;
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #efc9a3, #dba26f 60%, #c98753);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(90, 55, 27, 0.25);
}
.hero-image-icon {
  width: 64px; height: 64px;
  color: rgba(255,255,255,0.75);
}
.hero-tagline {
  position: absolute;
  top: 10%;
  right: -6px;
  font-family: "Brush Script MT", cursive;
  font-size: 1.4rem;
  color: var(--brown-800);
  line-height: 1.3;
}
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.hero-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(107,74,52,0.3);
}
.hero-dots span.active { background: var(--brown-900); width: 22px; border-radius: 5px; }

/* ---------- Category strip ---------- */
.category-strip { padding: 34px 0; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--brown-800);
  font-size: 0.8rem;
  font-weight: 600;
}
.category-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
  transition: background 0.15s ease, transform 0.15s ease;
}
.category-item:hover .category-icon {
  background: var(--peach-200);
  transform: translateY(-3px);
}

/* ---------- Sections ---------- */
.section { padding: 38px 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-header h2 {
  font-size: 1.4rem;
  color: var(--brown-900);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-500);
}
.section-link svg { width: 15px; height: 15px; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.product-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(59,36,23,0.14);
}
.product-thumb {
  aspect-ratio: 1 / 1;
  position: relative;
}
.product-thumb.ph-1 { background: linear-gradient(150deg, #d7c3ee, #a98fce); }
.product-thumb.ph-2 { background: linear-gradient(150deg, #cfe4bd, #8bb96a); }
.product-thumb.ph-3 { background: linear-gradient(150deg, #ffe0c2, #f0a860); }
.product-thumb.ph-4 { background: linear-gradient(150deg, #f3c6a6, #d98a4c); }
.product-thumb.ph-5 { background: linear-gradient(150deg, #f6d5df, #e792a8); }
.product-thumb.ph-6 { background: linear-gradient(150deg, #c7e2e6, #86b6bd); }

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
}
.tag-green { background: var(--green-600); }
.tag-pink { background: var(--pink-500); }
.tag-brown { background: var(--brown-700); }

.product-info { padding: 14px 14px 16px; }
.product-info h3 {
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.35;
  color: var(--brown-900);
  min-height: 2.7em;
}
.product-info .price {
  margin: 0 0 4px;
  color: var(--orange-600);
  font-weight: 700;
  font-size: 0.95rem;
}
.product-info .rating {
  margin: 0;
  font-size: 0.78rem;
  color: var(--brown-600);
}

/* ---------- Promo banners ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.promo-card {
  border-radius: var(--radius-md);
  padding: 30px 26px;
  min-height: 150px;
  display: flex;
  align-items: center;
}
.promo-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--brown-900);
}
.promo-card p {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--brown-700);
  line-height: 1.4;
}
.promo-tan { background: linear-gradient(120deg, var(--peach-200), var(--peach-300)); }
.promo-pink { background: linear-gradient(120deg, var(--pink-100), #f6cdd9); }
.promo-green { background: linear-gradient(120deg, var(--green-100), #d3e8c8); }

/* ---------- Affiliate ---------- */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.affiliate-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.affiliate-logo {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  color: #fff;
}
.affiliate-shopee { background: #ee4d2d; }
.affiliate-lazada { background: #0f146d; }
.affiliate-tiktok { background: #111; }
.affiliate-tiki { background: #1a94ff; }
.affiliate-name { margin: 0 0 2px; font-weight: 700; color: var(--brown-900); font-size: 0.92rem; }
.affiliate-desc { margin: 0 0 16px; font-size: 0.8rem; color: var(--brown-600); }

/* ---------- Feature strip ---------- */
.feature-strip {
  background: var(--cream-100);
  padding: 30px 0;
  margin-top: 10px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-item svg { width: 30px; height: 30px; color: var(--gold-500); flex-shrink: 0; }
.feature-item strong { display: block; font-size: 0.88rem; color: var(--brown-900); }
.feature-item span { font-size: 0.78rem; color: var(--brown-600); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-900);
  color: #e9dcce;
  padding-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbb9a5;
  margin: 14px 0 18px;
  max-width: 300px;
}
.logo-footer .logo-text { color: #fff; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.social-links svg { width: 16px; height: 16px; }
.social-links a:hover { background: var(--gold-500); }

.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.85rem; color: #cbb9a5; }
.footer-col a:hover { color: #fff; }

.newsletter p { font-size: 0.85rem; color: #cbb9a5; margin: 0 0 14px; line-height: 1.5; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input {
  flex: 1;
  padding: 11px 14px;
  border: none;
  border-radius: 999px 0 0 999px;
  outline: none;
  font-size: 0.85rem;
}
.newsletter-form button {
  padding: 11px 18px;
  border: none;
  border-radius: 0 999px 999px 0;
  background: var(--gold-500);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.newsletter-form button:hover { background: #b3761f; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 0.8rem;
  color: #b3a08c;
}
.payment-icons { display: flex; gap: 8px; }
.pay-badge {
  background: rgba(255,255,255,0.08);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e9dcce;
}

/* ---------- Order modal ---------- */
.order-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 36, 23, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.order-modal-overlay[hidden] { display: none; }

.order-modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 32px 28px 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  animation: order-modal-in 0.2s ease;
}
@keyframes order-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.order-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  background: var(--cream-100);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--brown-800);
  cursor: pointer;
}
.order-modal-close:hover { background: var(--peach-200); }

.order-modal-body h3, .order-modal-thanks h3 {
  margin: 0 0 6px;
  color: var(--brown-900);
  font-size: 1.25rem;
}
.order-modal-product {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--orange-600);
  font-weight: 600;
}

#orderForm label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown-800);
  margin-bottom: 14px;
}
#orderForm label span { color: var(--red-500); }
#orderForm input, #orderForm textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--brown-900);
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}
#orderForm input:focus, #orderForm textarea:focus { border-color: var(--gold-500); }

.order-form-error {
  color: var(--red-500);
  font-size: 0.82rem;
  margin: -6px 0 14px;
}

.order-submit-btn { width: 100%; justify-content: center; }
.order-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.order-modal-thanks { text-align: center; padding: 10px 0; }
.thanks-icon { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--green-600); }
.order-modal-thanks p { color: var(--brown-700); font-size: 0.9rem; margin: 0 0 22px; line-height: 1.5; }

/* ---------- Product detail page ---------- */
.breadcrumb {
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--brown-600);
}
.breadcrumb a { color: var(--brown-600); }
.breadcrumb a:hover { color: var(--brown-900); }
.breadcrumb span { margin: 0 6px; }
.breadcrumb .current { color: var(--brown-900); font-weight: 600; }

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
}

.pdp-gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #f3c6a6, #d98a4c);
  position: relative;
  overflow: hidden;
}
.pdp-gallery-main .tag { top: 16px; left: 16px; }

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.pdp-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
}
.pdp-thumb.active { border-color: var(--gold-500); }
.pdp-thumb.pt-1 { background: linear-gradient(150deg, #f3c6a6, #d98a4c); }
.pdp-thumb.pt-2 { background: linear-gradient(150deg, #d7c3ee, #a98fce); }
.pdp-thumb.pt-3 { background: linear-gradient(150deg, #cfe4bd, #8bb96a); }
.pdp-thumb.pt-4 { background: linear-gradient(150deg, #ffe0c2, #f0a860); }

.pdp-info h1 {
  font-size: 1.55rem;
  color: var(--brown-900);
  margin: 0 0 10px;
  line-height: 1.35;
}
.pdp-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--brown-600);
  margin-bottom: 16px;
}
.pdp-meta .stars { color: var(--gold-500); }
.pdp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--peach-200);
  color: var(--brown-800);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.pdp-price { font-size: 1.7rem; font-weight: 800; color: var(--orange-600); }
.pdp-price-old { font-size: 1rem; color: var(--brown-600); text-decoration: line-through; }
.pdp-discount { font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--red-500); padding: 3px 8px; border-radius: 6px; }

.pdp-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--green-600);
  font-weight: 600;
  margin-bottom: 22px;
}
.pdp-guarantee svg { width: 18px; height: 18px; }

.pdp-actions { margin-bottom: 24px; }
.pdp-order-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 15px 26px;
}

.pdp-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.pdp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--brown-700);
}
.pdp-trust-item svg { width: 22px; height: 22px; color: var(--gold-500); flex-shrink: 0; }
.pdp-trust-item strong { display: block; color: var(--brown-900); font-size: 0.82rem; }

.pdp-endorsement {
  background: var(--cream-100);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.pdp-endorsement-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(150deg, #f6d5df, #e792a8);
}
.pdp-endorsement h4 { margin: 0 0 4px; font-size: 0.9rem; color: var(--brown-900); }
.pdp-endorsement p { margin: 0; font-size: 0.8rem; color: var(--brown-700); line-height: 1.4; }

.pdp-origin {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--brown-700);
}
.pdp-origin li { display: flex; gap: 10px; align-items: center; }
.pdp-origin svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; }

@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .affiliate-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .search-box { display: none; }
  .menu-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-tagline { position: static; margin-top: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  }
  .main-nav.open ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav.open li { border-bottom: 1px solid var(--border); }
  .main-nav.open a { padding: 13px 0; border-bottom: none; }
}

@media (max-width: 640px) {
  .header-inner { height: 64px; gap: 12px; }
  .logo-text { font-size: 0.95rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-features { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .affiliate-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); }
  .pdp-trust { grid-template-columns: 1fr; }
  .order-modal { padding: 26px 20px 22px; }
}
