/* ============================================================
   WARPIX COSMETICS — style.css
   Design: Soft Luxury Beauty | Mobile-First
   Designed & Developed by Warpix (https://warpix.studio/)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-primary:     #FEFCFA;
  --bg-secondary:   #F7F2EC;
  --bg-card:        #FFFFFF;
  --bg-dark:        #1C1218;

  --accent:         #9B6B8A;
  --accent-dark:    #7A5070;
  --accent-light:   #D4AECA;
  --accent-muted:   #EFE4EB;

  --emerald:        #4A7C6F;
  --gold:           #C9A96E;

  --text-primary:   #1C1C1C;
  --text-secondary: #6E6E6E;
  --text-muted:     #ABABAB;
  --text-on-dark:   #F7F2EC;

  --border:         #EDE8E1;
  --border-strong:  #9B6B8A;

  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;

  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      24px;
  --radius-full:    999px;

  --shadow-sm:      0 1px 4px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.07);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.10);

  --transition:     0.28s ease;
  --navbar-h:       64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* --- Intro Animation --- */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
#intro-overlay.hidden {
  animation: introFadeOut 0.8s ease forwards;
}
@keyframes introFadeOut {
  to { opacity: 0; }
}
.intro-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(212,174,202,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: introPulse 1.5s ease infinite;
}
.intro-circle-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: introScale 0.6s ease 0.3s forwards;
}
@keyframes introPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes introScale {
  to { opacity: 1; transform: scale(1); }
}
.intro-brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 3rem);
  font-weight: 400;
  color: var(--text-on-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: introUp 0.7s ease 0.5s forwards;
}
.intro-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-light);
  opacity: 0;
  animation: introUp 0.6s ease 0.85s forwards;
}
.intro-line {
  width: 0;
  height: 1px;
  background: var(--accent);
  margin: 12px 0 10px;
  animation: introLineW 0.7s ease 0.4s forwards;
}
@keyframes introLineW { to { width: clamp(80px, 20vw, 140px); } }
@keyframes introUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 400;
}
.announcement-bar a { color: var(--accent-light); text-decoration: underline; }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(155,107,138,0.08); }
.navbar-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--accent-dark); }
.cart-count {
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 4px;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 32px;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--navbar-h);
  background: var(--bg-primary);
  z-index: 99;
  padding: 36px 28px;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  animation: slideDown 0.22s ease;
}
.mobile-nav.open { display: flex; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }

/* --- Hero --- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  max-height: 960px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,18,24,0.90) 0%,
    rgba(28,18,24,0.50) 40%,
    rgba(28,18,24,0.10) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 52px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent-light);
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 6rem);
  font-weight: 300;
  line-height: 1.06;
  color: var(--text-on-dark);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-light);
}
.hero-sub {
  font-size: 0.9rem;
  color: rgba(247,242,236,0.65);
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 400px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(247,242,236,0.45);
  color: var(--text-on-dark);
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border-strong);
  color: var(--accent);
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.btn-outline-dark:hover { background: var(--accent); color: #fff; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-1px); }

/* --- Section Base --- */
.section { padding: 64px 20px; }
.section-lg { padding: 80px 20px; }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 12px;
  font-weight: 300;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin: 16px auto 0;
}

/* --- Category Cards --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-muted);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-card:hover::before { opacity: 1; }
.cat-icon { font-size: 2rem; margin-bottom: 12px; display: block; position: relative; z-index: 1; }
.cat-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.04em;
}
.cat-count { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.06em; position: relative; z-index: 1; }

/* --- Product Card --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-secondary);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.product-label.best-seller { background: var(--accent); }
.product-label.limited { background: var(--emerald); }
.product-info { padding: 14px 14px 16px; }
.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.product-cat-tag { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.product-price { font-size: 0.98rem; font-weight: 600; color: var(--accent-dark); }
.product-price-currency { font-size: 0.82rem; }
.product-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-add-cart {
  flex: 1;
  background: var(--accent);
  color: #fff;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 500;
  text-align: center;
  transition: background var(--transition);
  cursor: pointer;
  letter-spacing: 0.04em;
}
.btn-add-cart:hover { background: var(--accent-dark); }
.btn-view {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 9px 12px;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  display: block;
}
.btn-view:hover { border-color: var(--accent); color: var(--accent); }

/* --- Category Section --- */
.cat-section { padding: 48px 20px; border-bottom: 1px solid var(--border); }
.cat-section:last-child { border-bottom: none; }
.cat-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
}
.cat-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.cat-section-link {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}
.cat-section-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }

/* --- Trust Section --- */
.trust-section { background: var(--bg-dark); }
.trust-section .section-title { color: var(--text-on-dark); }
.trust-section .section-eyebrow { color: var(--accent-light); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.trust-item { text-align: center; }
.trust-icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.trust-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-on-dark);
  letter-spacing: 0.03em;
}
.trust-desc { font-size: 0.8rem; color: rgba(247,242,236,0.55); line-height: 1.7; font-weight: 300; }

/* --- Ingredients Strip --- */
.ingredients-strip {
  background: var(--accent-muted);
  padding: 20px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ingredients-track {
  display: flex;
  gap: 48px;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.ingredients-track span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent-dark);
  font-style: italic;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.ingredients-track span::before { content: '✦'; margin-right: 12px; font-style: normal; font-size: 0.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Footer --- */
footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 56px 20px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto 48px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-brand-name span { color: var(--accent-light); }
.footer-desc { font-size: 0.82rem; color: rgba(247,242,236,0.45); line-height: 1.9; max-width: 280px; font-weight: 300; }
.footer-heading { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 600; color: rgba(247,242,236,0.35); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.85rem; color: rgba(247,242,236,0.65); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(247,242,236,0.08);
  padding-top: 24px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.footer-copy { font-size: 0.75rem; color: rgba(247,242,236,0.3); }
.footer-warpix { font-size: 0.75rem; color: rgba(247,242,236,0.3); }
.footer-warpix a { color: var(--accent-light); font-weight: 600; transition: color var(--transition); }
.footer-warpix a:hover { color: #fff; }
.footer-cod-note {
  background: rgba(155,107,138,0.15);
  border: 1px solid rgba(155,107,138,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.78rem;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 300;
}

/* --- Toast --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 400;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease forwards;
  max-width: 280px;
  border-left: 3px solid var(--accent);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(16px); }
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 32px;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition);
  background: transparent;
  letter-spacing: 0.04em;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Product Detail --- */
.detail-layout { display: flex; flex-direction: column; gap: 36px; }
.gallery-main {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }
.detail-name { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 400; line-height: 1.15; margin-bottom: 12px; letter-spacing: 0.02em; }
.detail-price { font-size: 1.4rem; font-weight: 600; color: var(--accent-dark); margin-bottom: 20px; }
.detail-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: 24px; font-weight: 300; }
.size-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 12px; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.size-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: transparent;
}
.size-btn.active, .size-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-muted); }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-controls { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-full); overflow: hidden; }
.qty-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--text-primary); transition: background var(--transition); }
.qty-btn:hover { background: var(--bg-secondary); }
.qty-num { width: 40px; text-align: center; font-size: 0.95rem; font-weight: 600; }
.detail-btn-row { display: flex; flex-direction: column; gap: 10px; }

/* --- Cart --- */
.cart-layout { display: flex; flex-direction: column; gap: 28px; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; display: flex; gap: 14px; }
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-secondary); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; margin-bottom: 4px; }
.cart-item-size { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-price { font-size: 0.92rem; font-weight: 600; color: var(--accent-dark); }
.cart-item-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.btn-remove { font-size: 0.7rem; color: #C0392B; border: 1px solid rgba(192,57,43,0.2); padding: 5px 10px; border-radius: var(--radius-full); transition: all var(--transition); }
.btn-remove:hover { background: #C0392B; color: #fff; }
.cart-summary { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.summary-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin-bottom: 20px; letter-spacing: 0.02em; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.summary-row.total { font-size: 1rem; font-weight: 700; color: var(--text-primary); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.cod-badge { background: rgba(155,107,138,0.1); border: 1px solid rgba(155,107,138,0.25); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.78rem; color: var(--accent-dark); margin: 16px 0; display: flex; align-items: center; gap: 6px; }

/* --- Checkout --- */
.checkout-layout { display: flex; flex-direction: column; gap: 32px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 7px; }
.form-input, .form-select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text-primary); font-size: 0.9rem; transition: border-color var(--transition); appearance: none; }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--accent); }
.form-select-wrap { position: relative; }
.form-select-wrap::after { content: '▾'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 0.8rem; }
.privacy-note { background: var(--accent-muted); border-left: 3px solid var(--accent); padding: 12px 14px; font-size: 0.78rem; color: var(--text-secondary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: 20px; line-height: 1.7; font-weight: 300; }

/* --- Thank You --- */
.thankyou-wrap { min-height: calc(100vh - var(--navbar-h)); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.thankyou-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 52px 28px; text-align: center; max-width: 480px; width: 100%; }
.thankyou-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.thankyou-title { font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 400; margin-bottom: 12px; letter-spacing: 0.02em; }
.thankyou-sub { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.85; font-weight: 300; }
.thankyou-details { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 20px; margin-bottom: 28px; font-size: 0.85rem; color: var(--text-secondary); line-height: 2; font-weight: 300; }

/* --- Page Header --- */
.page-header { background: var(--bg-secondary); padding: 48px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.page-header-title { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 400; letter-spacing: 0.03em; }
.page-header-sub { font-size: 0.88rem; color: var(--text-secondary); margin-top: 8px; font-weight: 300; }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 72px 16px; }
.empty-state-icon { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Related --- */
.related-section { padding: 56px 20px; background: var(--bg-secondary); }

/* ============================================================
   TABLET (640px+)
   ============================================================ */
@media (min-width: 640px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-btn-row { flex-direction: row; }
}

/* ============================================================
   DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  :root { --navbar-h: 72px; }
  .navbar { padding: 0 48px; }
  .nav-links { display: flex; }
  .hamburger { display: none; }

  .hero-content { padding: 0 80px 80px; }
  .hero h1 { font-size: clamp(4rem, 5.5vw, 7rem); }

  .section { padding: 100px 48px; }
  .section-lg { padding: 120px 48px; }
  .cat-section { padding: 72px 48px; }
  .related-section { padding: 80px 48px; }
  .page-header { padding: 72px 48px; }

  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }

  .detail-layout { flex-direction: row; gap: 72px; align-items: flex-start; }
  .detail-gallery { flex: 0 0 500px; position: sticky; top: calc(var(--navbar-h) + 24px); }
  .detail-info { flex: 1; }

  .cart-layout { flex-direction: row; align-items: flex-start; }
  .cart-items { flex: 1; }
  .cart-summary { flex: 0 0 360px; position: sticky; top: calc(var(--navbar-h) + 24px); }

  .checkout-layout { flex-direction: row; align-items: flex-start; }
  .checkout-form { flex: 1; }
  .checkout-summary-col { flex: 0 0 380px; position: sticky; top: calc(var(--navbar-h) + 24px); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
}
