/* ============================================================
   HAIRNERGY — Main Stylesheet
   Emerald Green · Electric Coral · Cream Editorial Theme
   Fonts: Playfair Display + DM Sans
   ============================================================ */

:root {
  --emerald: #0D4A3A;
  --emerald-mid: #165a47;
  --emerald-light: #1e7258;
  --coral: #FF5C35;
  --coral-dark: #e04a25;
  --coral-light: #ff7a5a;
  --cream: #FFF8F0;
  --cream-dark: #f0e8dc;
  --champagne: #C9A96E;
  --dark: #1a1208;
  --dark-2: #2c1f0e;
  --white: #ffffff;
  --gray: #7a6e65;
  --gray-light: #c5bdb6;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --header-h: 110px;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 12px rgba(13,74,58,0.08);
  --shadow: 0 8px 32px rgba(13,74,58,0.12);
  --shadow-lg: 0 20px 60px rgba(13,74,58,0.15);
  --transition: 0.22s ease;
  --border: rgba(13,74,58,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   WATERMARK
   ============================================================ */
.watermark-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  overflow: hidden; display: flex; flex-wrap: wrap;
  align-items: flex-start; gap: 56px 36px; padding: 60px 40px;
  transform: rotate(-28deg) scale(1.6); transform-origin: center center;
}
.watermark-overlay span {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: rgba(255, 92, 53, 0.12); white-space: nowrap; letter-spacing: 4px;
  text-transform: uppercase; user-select: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--emerald);
}
.header-top-bar {
  background: var(--coral); color: var(--white);
  text-align: center; padding: 8px 24px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.header-top-bar a { color: var(--white); text-decoration: underline; opacity: 0.9; }
.header-top-bar a:hover { opacity: 1; }
.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 74px;
  gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px; justify-self: center;
  text-decoration: none;
}
.logo-mark {
  width: 40px; height: 40px; background: var(--coral); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; flex-shrink: 0;
}
.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo-main {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--white); letter-spacing: 3px;
}
.logo-sub {
  font-size: 9px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.main-nav {
  display: flex; align-items: center; gap: 28px;
  justify-self: start;
}
.nav-link {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.7); transition: color var(--transition);
  position: relative; padding-bottom: 2px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--coral); transition: width var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.header-actions {
  display: flex; align-items: center; gap: 8px; justify-self: end;
}
.icon-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75); border-radius: var(--radius); transition: all var(--transition);
  position: relative; text-decoration: none;
}
.icon-btn:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.cart-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--coral); color: var(--white);
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
  transition: transform 0.2s;
}
.cart-badge.bump { transform: scale(1.5); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

.search-drawer {
  background: var(--emerald-mid); max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.search-drawer.open { max-height: 70px; }
.search-form {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
}
.search-input {
  flex: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 10px 16px; color: var(--white);
  font-size: 14px; outline: none; transition: border-color var(--transition);
}
.search-input::placeholder { color: rgba(255,255,255,0.4); }
.search-input:focus { border-color: var(--coral); }
.search-form button {
  color: rgba(255,255,255,0.7); width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); transition: all var(--transition); font-size: 22px;
}
.search-form button:hover { color: var(--coral); background: rgba(255,255,255,0.1); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius); font-family: var(--font-body);
  font-weight: 600; font-size: 13px; letter-spacing: 0.5px;
  transition: all var(--transition); cursor: pointer; border: none;
  text-decoration: none; white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,92,53,0.3); }
.btn-ghost { background: transparent; color: var(--emerald); border: 1.5px solid var(--emerald); }
.btn-ghost:hover { background: var(--emerald); color: var(--white); }
.btn-wa { background: var(--whatsapp); color: var(--white); }
.btn-wa:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.btn-emerald { background: var(--emerald); color: var(--white); }
.btn-emerald:hover { background: var(--emerald-mid); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 88px 0; }
.section--cream { background: var(--cream-dark); }
.section--emerald { background: var(--emerald); }
.section-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; color: var(--coral);
  margin-bottom: 10px; display: block;
}
.section-heading-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 44px; flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px);
  font-weight: 700; color: var(--dark); line-height: 1.15;
}
.section--emerald .section-title { color: var(--cream); }
.see-all {
  font-size: 13px; font-weight: 600; color: var(--coral); letter-spacing: 0.5px;
  border-bottom: 1px solid transparent; transition: border-color var(--transition);
  padding-bottom: 2px; white-space: nowrap;
}
.see-all:hover { border-color: var(--coral); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--emerald); min-height: 100vh;
  padding-top: var(--header-h);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 55vw; height: 120%;
  background: radial-gradient(ellipse at center, rgba(255,92,53,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; min-height: calc(100vh - var(--header-h));
  gap: 60px; padding: 60px 0;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,248,240,0.5);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity:1; }
  50% { transform: scale(1.4); opacity:0.7; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 900; color: var(--cream); line-height: 0.95;
  letter-spacing: -2px; margin-bottom: 28px;
}
.hero-title em {
  font-style: italic; color: var(--coral);
  display: inline-block;
}
.hero-body {
  font-size: 16px; color: rgba(255,248,240,0.6); max-width: 420px;
  line-height: 1.75; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-right { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-img-main {
  position: relative; width: 100%; max-width: 400px;
  border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 3/4;
  border: 2px solid rgba(201,169,110,0.25);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--coral); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius);
}
.hero-img-secondary {
  position: absolute; top: -20px; right: -30px;
  width: 160px; height: 200px; border-radius: var(--radius-lg);
  overflow: hidden; border: 2px solid rgba(201,169,110,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.hero-img-secondary img { width: 100%; height: 100%; object-fit: cover; }
.hero-counter {
  position: absolute; bottom: -10px; right: 60px;
  background: var(--champagne); color: var(--dark);
  padding: 14px 18px; border-radius: var(--radius-lg);
  text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.counter-num { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.counter-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: 0.7; }
.hero-scroll-text {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  color: rgba(255,248,240,0.3); text-transform: uppercase; white-space: nowrap;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-bar {
  background: var(--coral); color: var(--white);
  padding: 11px 0; overflow: hidden; white-space: nowrap;
}
.ticker-inner {
  display: inline-flex; gap: 48px;
  animation: ticker 30s linear infinite;
}
.ticker-inner span {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; flex-shrink: 0;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories { background: var(--cream); }
.categories-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px;
}
.cat-stack { display: flex; flex-direction: column; gap: 16px; }
.cat-card {
  display: block; position: relative; border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; background: var(--dark);
  transition: transform var(--transition);
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card:hover img { transform: scale(1.04); }
.cat-card:hover .cat-arrow { transform: translateX(5px); color: var(--coral); }
.cat-card--large { aspect-ratio: 2/3; }
.cat-card:not(.cat-card--large) { aspect-ratio: 16/7; }
.cat-card--accent { background: var(--emerald); }
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
  filter: brightness(0.65);
}
.cat-card-body {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: var(--white);
}
.cat-card-body h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin-bottom: 4px;
}
.cat-card-body span { font-size: 12px; color: rgba(255,255,255,0.65); display: block; margin-bottom: 10px; }
.cat-arrow { font-size: 18px; font-weight: 700; transition: all var(--transition); display: block; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.products-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(13,74,58,0.07);
  transition: all var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card:hover .img-alt { opacity: 1; }
.product-card:hover .product-card-img img:first-child { opacity: 0; }
.product-card--hero { grid-row: span 2; }
.product-card--hero .product-card-img { aspect-ratio: 2/3; }

.product-card-img {
  display: block; position: relative; overflow: hidden; aspect-ratio: 3/4;
  background: var(--cream-dark);
}
.product-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: opacity 0.4s ease;
}
.img-alt { opacity: 0; }
.product-cat-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--emerald); color: var(--white);
  font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-card-body h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--dark); line-height: 1.3;
}
.product-card-body h3 a { color: inherit; transition: color var(--transition); }
.product-card-body h3 a:hover { color: var(--coral); }
.product-sizes { font-size: 11px; color: var(--gray); letter-spacing: 0.5px; }
.product-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto; padding-top: 10px;
}
.product-price {
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--emerald);
}
.add-cart-btn {
  background: var(--emerald); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  padding: 8px 14px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.add-cart-btn:hover { background: var(--coral); }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px;
}
.why-item { color: rgba(255,248,240,0.8); }
.why-num {
  font-family: var(--font-display); font-size: 52px; font-weight: 900;
  color: rgba(255,92,53,0.25); line-height: 1; margin-bottom: 12px;
}
.why-item h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--cream); margin-bottom: 10px;
}
.why-item p { font-size: 13px; line-height: 1.75; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; align-items: start;
}
.testi-card {
  background: var(--white); border: 1px solid rgba(13,74,58,0.08);
  border-radius: var(--radius-lg); padding: 28px;
}
.testi-card--featured {
  background: var(--emerald); border-color: transparent;
  padding: 36px 28px;
}
.testi-stars { color: var(--coral); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-card blockquote {
  font-family: var(--font-display); font-size: 15px; font-style: italic;
  line-height: 1.7; color: var(--dark); margin-bottom: 16px;
}
.testi-card--featured blockquote { color: rgba(255,248,240,0.85); }
.testi-card cite { font-size: 12px; font-weight: 600; color: var(--gray); letter-spacing: 0.5px; }
.testi-card--featured cite { color: rgba(255,248,240,0.5); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--dark); padding: 80px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band-text h2 {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; color: var(--cream); margin-bottom: 10px;
}
.cta-band-text p { font-size: 15px; color: rgba(255,248,240,0.55); max-width: 480px; }
.cta-band-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--emerald); color: rgba(255,248,240,0.65); padding: 64px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,248,240,0.6); transition: all var(--transition);
}
.footer-socials a:hover { background: var(--coral); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--cream); margin-bottom: 16px; letter-spacing: 0.5px;
}
.footer-col a, .footer-col p {
  display: block; font-size: 13px; color: rgba(255,248,240,0.55);
  margin-bottom: 8px; transition: color var(--transition);
}
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; flex-wrap: wrap; gap: 8px;
}

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-page { padding-top: var(--header-h); }
.page-banner {
  background: var(--emerald); padding: 48px 0;
  border-bottom: 2px solid var(--coral);
}
.page-banner h1 {
  font-family: var(--font-display); font-size: clamp(32px,4vw,48px);
  font-weight: 700; color: var(--cream); margin-bottom: 8px;
}
.page-banner p { color: rgba(255,248,240,0.55); font-size: 15px; }
.shop-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px;
  padding: 48px 0 80px;
}
.shop-sidebar {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid rgba(13,74,58,0.08); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 16px); align-self: start;
}
.sidebar-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.sidebar-top h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.sidebar-close-btn {
  font-size: 22px; color: var(--gray); cursor: pointer; display: none;
  background: none; border: none; line-height: 1;
}
.filter-block {
  margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.filter-block:last-of-type { border-bottom: none; }
.filter-block h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 12px;
}
.filter-block label {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  color: var(--dark); cursor: pointer; padding: 5px 0;
}
.filter-block label input { accent-color: var(--coral); }
.filter-block label span { transition: color var(--transition); }
.filter-block label:hover span { color: var(--coral); }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-row input {
  flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 8px 10px; font-size: 13px; outline: none; transition: border-color var(--transition);
}
.price-row input:focus { border-color: var(--coral); }
.filter-block select {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 9px 12px; font-size: 13px; background: var(--white);
  outline: none; cursor: pointer; transition: border-color var(--transition);
}
.filter-block select:focus { border-color: var(--coral); }

.shop-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.results-count { font-size: 13px; color: var(--gray); }
.results-count strong { color: var(--dark); font-weight: 600; }
.filter-toggle {
  display: none; align-items: center; gap: 6px;
  background: var(--white); border: 1.5px solid var(--border);
  padding: 8px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.filter-toggle:hover { border-color: var(--coral); color: var(--coral); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn {
  padding: 8px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; color: var(--dark); transition: all var(--transition);
}
.page-btn:hover { border-color: var(--coral); color: var(--coral); }
.page-btn.active { background: var(--coral); border-color: var(--coral); color: var(--white); }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail-page { padding-top: var(--header-h); }
.product-detail-page .container { padding-top: 32px; padding-bottom: 80px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--gray); margin-bottom: 36px;
}
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb span { color: var(--gray-light); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 80px; align-items: start; }
.gallery-main {
  border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 3/4; background: var(--cream-dark);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.thumb-btn {
  width: 70px; height: 88px; border-radius: var(--radius); overflow: hidden;
  flex-shrink: 0; border: 2px solid transparent; transition: border-color var(--transition);
  background: none; padding: 0; cursor: pointer;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn.active { border-color: var(--coral); }
.detail-cat {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--coral); display: block; margin-bottom: 10px;
}
.detail-name {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px);
  font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 14px;
}
.detail-price {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  color: var(--emerald); margin-bottom: 20px;
}
.detail-desc {
  font-size: 14px; line-height: 1.8; color: var(--gray); margin-bottom: 28px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.variant-row { margin-bottom: 20px; }
.variant-row > label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--dark); margin-bottom: 10px;
}
.req { color: var(--coral); }
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.var-btn {
  padding: 7px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 12px; font-weight: 600; color: var(--dark); cursor: pointer;
  transition: all var(--transition); background: var(--white);
}
.var-btn:hover { border-color: var(--coral); color: var(--coral); }
.var-btn.active { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.qty-row { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.qty-row > label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); }
.qty-ctrl {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.qty-ctrl button {
  width: 36px; height: 36px; font-size: 18px; font-weight: 500; display: flex;
  align-items: center; justify-content: center; transition: all var(--transition);
}
.qty-ctrl button:hover { background: var(--coral); color: var(--white); }
.qty-ctrl input {
  width: 48px; text-align: center; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  font-size: 15px; font-weight: 700; color: var(--dark); height: 36px; outline: none;
}
.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.product-perks {
  display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; font-weight: 600;
  color: var(--emerald); letter-spacing: 0.5px;
}
.related-section { margin-top: 64px; }

/* ============================================================
   CART
   ============================================================ */
.cart-page { padding-top: var(--header-h); }
.cart-page .container { padding-top: 40px; padding-bottom: 80px; }
.page-header-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px; gap: 16px;
}
.page-header-row h1 { font-family: var(--font-display); font-size: 36px; font-weight: 700; }
.cart-layout { display: flex; gap: 32px; align-items: flex-start; }
.cart-items-list { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: flex; align-items: center; gap: 18px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px;
  transition: all var(--transition);
}
.cart-row:hover { border-color: rgba(255,92,53,0.2); }
.cart-row img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-info h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.cart-variant { font-size: 12px; color: var(--gray); display: block; margin-bottom: 4px; }
.cart-price { font-size: 14px; color: var(--emerald); font-weight: 700; }
.cart-qty-ctrl {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 4px 10px;
}
.cart-qty-ctrl button {
  font-size: 18px; color: var(--dark); background: none; border: none;
  cursor: pointer; width: 20px; display: flex; align-items: center; justify-content: center;
  transition: color var(--transition);
}
.cart-qty-ctrl button:hover { color: var(--coral); }
.cart-qty-ctrl span { font-weight: 700; font-size: 15px; min-width: 20px; text-align: center; }
.cart-row-sub { font-family: var(--font-display); font-weight: 700; font-size: 16px; min-width: 90px; text-align: right; }
.remove-btn {
  color: var(--gray-light); padding: 6px; border-radius: var(--radius);
  transition: all var(--transition); cursor: pointer;
}
.remove-btn:hover { color: var(--coral); background: rgba(255,92,53,0.08); }
.cart-sidebar { width: 300px; flex-shrink: 0; }
.summary-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.summary-box h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.sum-total { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-top: 4px; }
.sum-divider { border-top: 1px solid var(--border); margin: 10px 0; }
.coral-text { color: var(--coral); font-weight: 600; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-page { padding-top: var(--header-h); }
.checkout-page .container { padding-top: 40px; padding-bottom: 80px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.checkout-form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.checkout-form-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dark); }
.opt { font-weight: 400; color: var(--gray); text-transform: none; letter-spacing: 0; }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 11px 14px; font-size: 14px; color: var(--dark); background: var(--white);
  outline: none; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--coral); }
.checkout-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(13,74,58,0.05); border: 1px solid rgba(13,74,58,0.12);
  border-radius: var(--radius); padding: 14px; font-size: 13px; line-height: 1.6;
  margin-bottom: 20px; color: var(--emerald);
}
.checkout-summary-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.checkout-summary-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.co-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.co-item:last-child { border-bottom: none; }
.co-item img { width: 46px; height: 58px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-info span { font-size: 13px; font-weight: 600; display: block; }
.co-item-info small { font-size: 11px; color: var(--gray); display: block; }
.co-item > span:last-child { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page { padding-top: var(--header-h); min-height: 80vh; display: flex; align-items: center; }
.error-inner { text-align: center; padding: 80px 24px; }
.error-code { font-family: var(--font-display); font-size: 100px; font-weight: 900; color: var(--coral); opacity: 0.25; display: block; line-height: 1; margin-bottom: 12px; }
.error-inner h1 { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.error-inner p { color: var(--gray); font-size: 15px; margin-bottom: 28px; }
.error-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: 80px 24px; color: var(--gray);
}
.empty-state svg { margin: 0 auto 20px; opacity: 0.2; }
.empty-state h2, .empty-state p { margin-bottom: 20px; }
.empty-state h2 { font-family: var(--font-display); font-size: 24px; color: var(--dark); }
.empty-state.hidden { display: none; }
.hidden { display: none !important; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--emerald); color: var(--cream); padding: 14px 20px;
  border-radius: var(--radius-lg); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px; max-width: 320px;
  box-shadow: var(--shadow); animation: toastIn 0.3s ease;
  border-left: 3px solid var(--coral);
}
.toast.success { border-left-color: #38a169; }
.toast.error { background: var(--dark); border-left-color: var(--coral); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-grid { gap: 32px; }
  .hero-img-secondary { display: none; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .cat-card--large { aspect-ratio: 3/4; }
}
@media (max-width: 768px) {
  :root { --header-h: 100px; }
  .header-main { grid-template-columns: auto 1fr auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--emerald);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.35s ease; z-index: 190;
  }
  .main-nav.open { max-height: 500px; }
  .nav-link { width: 100%; padding: 16px 28px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
  .nav-link::after { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 48px 0; }
  .hero-right { display: none; }
  .hero-title { font-size: 58px; letter-spacing: -1px; }
  .hero-actions { justify-content: center; }
  .hero-scroll-text { display: none; }
  .categories-grid { grid-template-columns: 1fr; }
  .cat-stack { flex-direction: row; flex-wrap: wrap; }
  .cat-stack .cat-card { flex: 1; min-width: 140px; }
  .products-grid, .products-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card--hero { grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    display: none; position: fixed; inset: 0; z-index: 300; border-radius: 0; overflow-y: auto;
  }
  .shop-sidebar.open { display: block; }
  .sidebar-close-btn { display: block; }
  .filter-toggle { display: flex; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-layout { flex-direction: column; }
  .cart-sidebar { width: 100%; }
  .summary-box { position: static; }
  .page-header-row { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-btns { justify-content: center; }
}
@media (max-width: 480px) {
  .products-grid, .products-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-title { font-size: 46px; }
  .product-card-body { padding: 10px; }
  .product-price { font-size: 15px; }
  .add-cart-btn { font-size: 11px; padding: 7px 10px; }
  .product-card-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .add-cart-btn { width: 100%; justify-content: center; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
