:root {
  color-scheme: light;
  --ink: #100c0d;
  --muted: #75676b;
  --line: #dfc9cf;
  --paper: #efe2dc;
  --soft: #f8efeb;
  --green: #4f9f25;
  --rose: #b77a91;
  --rose-dark: #91596e;
  --marigold: #d09b38;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(80, 54, 60, 0.13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4, h5, h6, button, label, input, textarea, select, a, span, p, li, small { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 180px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--white); background: var(--rose); font-weight: 800; }
.brand-mark[hidden], .brand-logo[hidden] { display: none; }
.brand-logo { width: 54px; height: 54px; display: block; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; background: var(--soft); }
.brand strong, .brand small { display: block; font-family: inherit; }
.brand strong { font-weight: 900; letter-spacing: 0.01em; }
.brand strong::first-letter, .brand-letter, .brand-wear { color: var(--rose); }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav { display: flex; align-items: center; justify-content: center; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--rose); }

.nav-cta, .primary-btn, .secondary-btn, .card-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; white-space: nowrap;
}
.nav-cta, .primary-btn, .card-button { color: var(--white); background: var(--green); }
.secondary-btn { color: var(--green); background: var(--white); border-color: #bcd8ce; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 42px;
}

.hero-copy { min-width: 0; }

.eyebrow { margin: 0 0 10px; color: var(--rose); font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 820px; margin: 0; font-size: clamp(40px, 7vw, 76px); line-height: 0.96; letter-spacing: 0; }
.hero-text { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero h1 { position: relative; }
.hero h1::after {
  content: ""; position: absolute; left: 0; bottom: -10px;
  width: 80px; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--marigold));
}

.site-footer {
  display: flex; justify-content: center;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 2px solid var(--rose);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,226,220,0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 -1px 0 rgba(183,122,145,0.08);
  align-items: start;
}
.site-footer .footer-copy { text-align: center; }
.site-footer .footer-socials { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.footer-copy strong { display: block; font-weight: 900; margin-bottom: 10px; letter-spacing: 0.02em; }
.footer-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-copy a { color: var(--ink); text-decoration: none; font-weight: 700; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; color: var(--white); background: transparent;
  border-radius: 50%; font-size: 13px; font-weight: 700; transition: all 0.3s ease;
}
.footer-socials a:hover { transform: translateY(-2px); }
.instagram-icon { background: var(--rose); }
.instagram-icon:hover { background: var(--rose-dark); }
.facebook-icon { background: transparent; }
.facebook-icon:hover { opacity: 0.8; transform: translateY(-2px); }
.footer-socials a.tiktok-icon { background: #000; }
.footer-socials a.tiktok-icon:hover { background: #1a1a1a; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; }
.social-icon svg { width: 20px; height: 20px; display: block; }
.footer-since { margin: 8px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.footer-since span { font-weight: 700; color: var(--rose); }

.footer-brand-identity { padding: 16px; background: rgba(183,122,145,0.08); border-radius: 8px; text-align: center; }
.footer-brand-identity h4 { margin: 0 0 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--rose); }
.brand-colors-mini { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.color-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.2s ease; }
.color-dot:hover { transform: scale(1.2); }
.color-rose { background-color: #b77a91; }
.color-rose-dark { background-color: #91596e; }
.color-blush { background-color: #efe2dc; }
.color-green { background-color: #4f9f25; }
.color-black { background-color: #100c0d; }
.brand-details { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.brand-font { font-weight: 700; color: var(--ink); }
.brand-guide-link { display: inline-block; padding: 6px 12px; background: var(--rose); color: var(--white); border-radius: 6px; font-size: 12px; font-weight: 700; text-decoration: none; transition: background 0.3s ease; }
.brand-guide-link:hover { background: var(--rose-dark); }

.hero-panel { position: relative; min-height: 520px; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow); background: var(--soft); }
.hero-panel img { width: 100%; height: 100%; min-height: 520px; display: block; object-fit: cover; }
.hero-badge { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 8px; background: rgba(255,255,255,0.92); }
.hero-badge span { color: var(--muted); font-size: 13px; }

.trust-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 clamp(18px, 5vw, 72px); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.trust-strip div { padding: 22px; background: var(--white); }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip span { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.section-heading { padding: 76px clamp(18px, 5vw, 72px) 22px; }
.section-heading h2, .order-band h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 clamp(18px, 5vw, 72px) 24px; }
.filter-btn { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
.filter-btn.active { color: var(--white); background: var(--rose); border-color: var(--rose); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0 clamp(18px, 5vw, 72px) 74px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.product-image { position: relative; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.product-image-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.product-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.stock-pill { position: absolute; left: 12px; top: 12px; padding: 7px 10px; border-radius: 999px; color: var(--white); background: rgba(17,121,95,0.94); font-size: 12px; font-weight: 800; }
.stock-pill.sold-out { background: rgba(111,102,107,0.94); }
.product-body { padding: 16px; }
.product-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.product-top h3 { margin: 0; font-size: 17px; }
.code { color: var(--rose); font-size: 13px; font-weight: 800; }
.price { margin: 10px 0 0; color: var(--green); font-size: 20px; font-weight: 800; }
.meta { display: grid; gap: 6px; margin: 14px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card-button { width: 100%; }
.card-button.disabled { color: #8a7f84; background: #eee8e2; cursor: not-allowed; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--white); }

.order-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 clamp(18px, 5vw, 72px) 70px; padding: clamp(28px, 5vw, 44px); border-radius: 8px; color: var(--white); background: #2c2621; }
.order-band .eyebrow, .order-band p { color: #f6c7d3; }
.order-band p { max-width: 720px; margin: 14px 0 0; line-height: 1.65; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 clamp(18px, 5vw, 72px) 70px; }
.info-grid .footer-brand-identity { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); text-align: center; }
.info-grid .footer-brand-identity h3 { margin: 0 0 12px; font-size: 16px; }
.info-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.info-grid h3 { margin: 0 0 10px; }
.info-grid p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }

.modal-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--white); border-radius: 12px; padding: 32px; max-width: 420px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--muted); }
.modal-box h2 { margin: 0 0 18px; font-size: 20px; }
.modal-box label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.modal-box input, .modal-box select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.modal-box .primary-btn { width: 100%; margin-top: 8px; }
.modal-success { text-align: center; font-size: 16px; padding: 20px 0; }
.card-actions { display: flex; gap: 8px; margin-top: 10px; }
.card-actions .card-button { flex: 1; text-align: center; }
.card-actions .card-button.primary { background: var(--rose); color: white; border: none; cursor: pointer; }
.card-actions .card-button.primary:hover { background: var(--rose-dark); }

.checkout-payment-box { background: var(--paper); border-radius: 8px; padding: 14px 16px; margin: 6px 0 14px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.checkout-pay-title { margin: 0; font-weight: 600; font-size: 13px; width: 100%; }
.checkout-pay-row { font-size: 13px; }
.checkout-qr { margin-left: auto; text-align: center; }
.checkout-qr img { display: block; width: 80px; height: 80px; border-radius: 6px; background: white; padding: 4px; }
.checkout-qr-label { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }

.top-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn, .cart-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: none; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; padding: 0 10px; }
.theme-btn:hover { color: var(--rose); background: var(--soft); }
.cart-toggle:hover { color: var(--rose); }
.cart-count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.cart-modal-box { max-width: 500px; }
.cart-empty { text-align: center; padding: 20px 0; color: var(--muted); }
.cart-empty p { margin: 4px 0; }
.cart-items { max-height: 50vh; overflow-y: auto; margin-bottom: 12px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item-img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--soft); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info strong { display: block; font-size: 14px; }
.cart-item-info span { display: block; font-size: 12px; color: var(--muted); }
.cart-item-price { color: var(--green); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); cursor: pointer; font-size: 16px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--soft); }
.cart-remove { background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; padding: 4px; line-height: 1; }
.cart-remove:hover { color: #b4233a; }
.cart-total { display: flex; justify-content: space-between; padding: 12px 0; font-size: 16px; border-top: 2px solid var(--line); }
.checkout-heading { margin: 16px 0 12px; font-size: 16px; }
.cart-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; border: none; background: transparent; cursor: pointer; flex-shrink: 0; }
.hamburger span { display: block; width: 100%; height: 2.5px; background: var(--muted); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 20; background: rgba(255,250,246,0.98); border-bottom: 1px solid var(--line); padding: 8px 16px; flex-direction: column; backdrop-filter: blur(18px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 12px; font-weight: 600; color: var(--muted); border-radius: 6px; font-size: 15px; }
.mobile-nav a:hover { background: var(--soft); color: var(--rose); }

.cart-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1000;
  background: var(--ink); color: var(--white);
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
  opacity: 0; pointer-events: none;
}
body.dark {
  --ink: #f0e6e0;
  --muted: #a8948b;
  --line: #4a3a3e;
  --paper: #1a1412;
  --soft: #2a221f;
  --white: #221a17;
  --shadow: 0 18px 48px rgba(0,0,0,0.4);
}
body.dark .product-card,
body.dark .trust-strip div,
body.dark .info-grid article,
body.dark .info-grid .footer-brand-identity,
body.dark .empty-state,
body.dark .modal-box { background: var(--white); color: var(--ink); }
body.dark .topbar { background: rgba(26,20,18,0.95); }
body.dark .site-footer { background: linear-gradient(180deg, rgba(34,26,23,0.98), rgba(26,20,18,0.95)); }
body.dark .theme-btn { color: var(--muted); }
body.dark .theme-btn:hover { color: var(--rose); background: var(--soft); }

.hidden { display: none !important; }
.toast-show { opacity: 1; pointer-events: auto; }
.toast-hide { opacity: 0; pointer-events: none; }

@media (max-width: 980px) {
  .hero, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-panel, .hero-panel img { min-height: 340px; }
}

@media (max-width: 720px) {
  .topbar { align-items: center; padding: 10px clamp(14px, 4vw, 24px); gap: 10px; }
  .hamburger { display: flex; }
  .nav { display: none; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; font-size: 14px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 11px; }
  .hero { padding: 28px clamp(14px, 4vw, 24px) 28px; gap: 20px; }
  h1 { font-size: 34px; line-height: 1.05; }
  .hero-text { font-size: 16px; }
  .hero-panel, .hero-panel img { min-height: 260px; }
  .hero-badge { padding: 10px 14px; }
  .hero-badge strong { font-size: 14px; }
  .hero-badge span { font-size: 12px; }
  .trust-strip div { padding: 16px; }
  .trust-strip strong { font-size: 15px; }
  .trust-strip span { font-size: 13px; }
  .section-heading { padding: 40px clamp(14px, 4vw, 24px) 16px; }
  .section-heading h2 { font-size: 28px; }
  .filters { padding: 0 clamp(14px, 4vw, 24px) 16px; gap: 8px; }
  .filter-btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
  .product-grid { padding: 0 clamp(14px, 4vw, 24px) 50px; grid-template-columns: 1fr; gap: 14px; }
  .product-body { padding: 12px; }
  .product-top h3 { font-size: 15px; }
  .price { font-size: 18px; }
  .meta { font-size: 12px; gap: 4px; margin: 10px 0 12px; }
  .card-button, .card-actions .card-button { min-height: 42px; font-size: 13px; padding: 0 14px; }
  .card-actions { gap: 6px; }
  .hero-badge, .order-band { align-items: flex-start; flex-direction: column; }
  .order-band { margin: 0 clamp(14px, 4vw, 24px) 40px; padding: 24px; }
  .order-band h2 { font-size: 24px; }
  .order-band p { font-size: 14px; }
  .order-band .primary-btn { width: 100%; }
  .info-grid { padding: 0 clamp(14px, 4vw, 24px) 40px; grid-template-columns: 1fr; gap: 14px; }
  .info-grid article, .info-grid .footer-brand-identity { padding: 16px; }
  .site-footer { flex-direction: column; align-items: center; gap: 16px; padding: 20px clamp(14px, 4vw, 24px); }
  .footer-copy p { font-size: 13px; }
  .top-actions { gap: 6px; }
  .nav-cta { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .modal-box { padding: 24px 20px; }
  .cart-item { gap: 8px; padding: 8px 0; }
  .cart-item-img { width: 40px; height: 40px; }
  .cart-item-info strong { font-size: 13px; }
  .cart-item-info span { font-size: 11px; }
  .qty-btn { width: 26px; height: 26px; font-size: 14px; }
}
