/* =====================================================================
   NovaMarket — Design tokens
   Palette: deep teal ink + coral accent + warm gold, on warm paper.
   Display face: Fraunces (used sparingly) · Body: Inter · Data: IBM Plex Mono
   Signature: a "market ticket" motif — perforated dividers + die-cut
   corner notches on product cards, echoing a price tag torn from a roll.
   ===================================================================== */
:root {
  --ink: #0F2A2E;
  --ink-2: #173B40;
  --paper: #F8F5EF;
  --paper-2: #EFE9DB;
  --accent: #FF5A3C;
  --accent-dark: #E8482D;
  --gold: #E8A33D;
  --deep: #142023;
  --line: #E1D9C8;
  --white: #FFFFFF;
  --success: #2F9E6B;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(15,42,46,.06);
  --shadow-md: 0 10px 30px rgba(15,42,46,.10);
  --shadow-lg: 0 24px 60px rgba(15,42,46,.18);
  --ease: cubic-bezier(.22,.9,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--deep);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
p { line-height: 1.6; margin: 0 0 1em; color: #3E4C4E; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mobile-only { display: none; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: var(--accent); display: inline-block; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: rgba(255,255,255,.14); color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.26); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------------- Topbar + Header ---------------- */
.topbar { background: var(--ink); color: rgba(248,245,239,.8); font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; padding: 8px 24px; letter-spacing: .02em; }
.topbar-contact { font-family: var(--font-mono); }

.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(248,245,239,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 24px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px;
  transform: rotate(-4deg);
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--ink); white-space: nowrap; }

/* Category row sits BELOW the brand/search/account row so it always has
   its own full-width line and never competes with the search box for
   space (this is what caused nav items to wrap mid-word before). */
.cat-nav-row { border-top: 1px solid var(--line); }
.main-nav {
  display: flex; align-items: center; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 9px 24px;
  overflow-x: auto; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--deep); position: relative; padding: 4px 0;
  white-space: nowrap; flex-shrink: 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent);
  transition: width .25s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-search {
  display: flex; align-items: center; background: var(--white); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 4px 6px 4px 16px; width: 300px; max-width: 100%; flex: 1 1 auto; min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,60,.12); }
.header-search input { border: none; outline: none; flex: 1; background: transparent; font-size: 14px; }
.header-search button { background: var(--ink); color: var(--paper); border: none; border-radius: 999px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.header-search button:hover { background: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--paper-2); }
.search-toggle { display: none; }
.cart-count {
  position: absolute; top: 2px; right: 1px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
  font-family: var(--font-mono); box-shadow: 0 0 0 2px var(--paper);
}
.account-menu { position: relative; }
.account-dropdown {
  position: absolute; right: 0; top: 46px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  min-width: 190px; padding: 10px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .2s var(--ease);
  border: 1px solid var(--line);
}
.account-menu:hover .account-dropdown, .account-dropdown:hover { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown a, .dropdown-hello { display: block; padding: 9px 10px; border-radius: 6px; font-size: 14px; }
.account-dropdown a:hover { background: var(--paper-2); }
.dropdown-hello { font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--line); margin-bottom: 4px; border-radius: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; flex-shrink: 0; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-scrim { position: fixed; inset: 0; background: rgba(15,42,46,.5); z-index: 55; opacity: 0; visibility: hidden; transition: opacity .3s; }
.nav-scrim.active { opacity: 1; visibility: visible; }

.mobile-search-panel { display: none; max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); background: var(--paper); }
.mobile-search-panel form { display: flex; align-items: center; gap: 8px; padding: 0 24px; }
.mobile-search-panel input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px;
  background: var(--white); outline: none;
}
.mobile-search-panel input:focus { border-color: var(--accent); }
.mobile-search-panel button {
  background: var(--ink); color: var(--paper); border: none; border-radius: 999px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mobile-search-panel.open { max-height: 70px; padding: 10px 0 14px; }

/* ---------------- Flash / Toast ---------------- */
.flash { text-align: center; padding: 12px; font-size: 14px; font-weight: 500; }
.flash-success { background: #E4F5EC; color: var(--success); }
.flash-error { background: #FDEAE6; color: var(--accent-dark); }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper);
  padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .35s var(--ease); z-index: 200; display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast::before { content: '✓'; background: var(--accent); color: #fff; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* ---------------- Reveal-on-scroll ---------------- */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-aos].aos-in { opacity: 1; transform: translateY(0); }
[data-aos="zoom"] { transform: scale(.94); }
[data-aos="zoom"].aos-in { transform: scale(1); }
[data-aos="fade-left"] { transform: translateX(28px); }
[data-aos="fade-left"].aos-in { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="fade-right"].aos-in { transform: translateX(0); }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 60%, #1F4A48 100%);
  color: var(--paper); position: relative; overflow: hidden; padding: 64px 0 0;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 20px 0 60px; }
.hero-copy .eyebrow { color: var(--gold); }
.hero-copy .eyebrow::before { background: var(--gold); }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { color: rgba(248,245,239,.78); font-size: 17px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 24px; color: var(--gold); }
.hero-stats div span { font-size: 12.5px; color: rgba(248,245,239,.65); }

.ticker { overflow: hidden; border-top: 1px solid rgba(248,245,239,.14); margin-top: 10px; }
.ticker-track { display: flex; gap: 46px; white-space: nowrap; padding: 14px 0; animation: scroll-left 26s linear infinite; width: max-content; }
.ticker-track span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(248,245,239,.55); display: flex; align-items: center; gap: 46px; }
.ticker-track span::after { content: '✦'; color: var(--gold); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-visual { position: relative; height: 420px; }
.float-card {
  position: absolute; background: var(--paper); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-lg);
  width: 172px; animation: float 6s ease-in-out infinite;
}
.float-card img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; margin-bottom: 8px; }
.float-card .fc-price { font-family: var(--font-mono); font-weight: 600; color: var(--accent); font-size: 14px; }
.float-card .fc-name { font-size: 12.5px; font-weight: 600; color: var(--deep); }
.float-card.fc-1 { top: 0; left: 30px; animation-delay: 0s; }
.float-card.fc-2 { top: 110px; right: 0; width: 152px; animation-delay: 1.2s; }
.float-card.fc-3 { bottom: 0; left: 90px; width: 160px; animation-delay: .6s; }
.badge-ring {
  position: absolute; top: -18px; right: 60px; width: 92px; height: 92px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; line-height: 1.3; box-shadow: var(--shadow-lg);
  animation: spin-slow 16s linear infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---------------- Sections ---------------- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-alt { background: var(--white); }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/3.6; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,42,46,.82), rgba(15,42,46,.05) 55%); }
.cat-card span { position: absolute; left: 14px; bottom: 14px; color: #fff; font-weight: 600; font-size: 14.5px; z-index: 2; }

/* ---------------- Product Card (signature: ticket / price-tag) ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pc-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.09) rotate(-.4deg); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.badge { font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; letter-spacing: .03em; }
.badge-sale { background: var(--accent); color: #fff; }
.badge-new { background: var(--ink); color: var(--gold); }
.pc-wishlist {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; z-index: 3; opacity: 0; transform: translateY(-6px);
  transition: all .25s var(--ease); box-shadow: var(--shadow-sm);
}
.product-card:hover .pc-wishlist { opacity: 1; transform: translateY(0); }
.pc-wishlist.saved, .pd-wishlist-btn.saved { color: var(--accent); }
.pc-wishlist.saved svg path, .pd-wishlist-btn.saved svg path { fill: var(--accent); }
.pc-wishlist.saved { opacity: 1; transform: translateY(0); }
.pc-quickadd {
  position: absolute; left: 10px; right: 10px; bottom: -46px; background: var(--ink); color: var(--paper); border: none;
  border-radius: 999px; padding: 11px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: bottom .3s var(--ease), background .2s; z-index: 3;
}
.product-card:hover .pc-quickadd { bottom: 10px; }
.pc-quickadd:hover { background: var(--accent); }

.pc-body { padding: 16px 16px 18px; position: relative; }
.pc-perf {
  height: 0; border-top: 1.5px dashed var(--line); margin: 0 -16px 14px; position: relative;
}
.pc-perf::before, .pc-perf::after {
  content: ''; position: absolute; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper);
}
.pc-perf::before { left: -6px; } .pc-perf::after { right: -6px; }
.pc-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8B9A97; font-weight: 600; margin-bottom: 4px; }
.pc-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.pc-name a { transition: color .2s; }
.pc-name a:hover { color: var(--accent); }
.stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.stars .empty { color: #E4DFD3; }
.rating-count { font-size: 11.5px; color: #8B9A97; margin-left: 4px; }
.pc-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-family: var(--font-mono); }
.price-now { font-size: 17px; font-weight: 600; color: var(--ink); }
.price-was { font-size: 13px; color: #A8A199; text-decoration: line-through; }
.pc-buynow { display: block; width: 100%; text-align: center; margin-top: 10px; padding: 9px 0; font-size: 13.5px; }

.cod-advance-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #FFF6E8; border: 1px solid #F0DCAE;
  font-size: 13px; line-height: 1.5; color: var(--deep);
}
.google-btn-wrap { display: flex; justify-content: center; margin-bottom: 4px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #A8A199; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Section CTA row */
.section-foot { text-align: center; margin-top: 40px; }

/* ---------------- Promo strip ---------------- */
.promo-strip { background: var(--ink); color: var(--paper); }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 46px 0; }
.promo-item { display: flex; gap: 16px; align-items: flex-start; }
.promo-item .pi-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(232,163,61,.14); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promo-item h4 { font-family: var(--font-body); font-size: 15px; margin-bottom: 2px; }
.promo-item p { color: rgba(248,245,239,.65); font-size: 13.5px; margin: 0; }

/* ---------------- Banner slider ---------------- */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.slide { display: none; position: relative; }
.slide.active { display: block; animation: fadein .6s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.slide img { width: 100%; aspect-ratio: 2.5/1; object-fit: cover; }
.slide-copy { position: absolute; left: 5%; bottom: 10%; color: #fff; max-width: 460px; }
.slide-copy h3 { font-size: clamp(24px, 3vw, 34px); color: #fff; }
.slide-copy p { color: rgba(255,255,255,.85); font-size: 14.5px; }
.slider-dots { position: absolute; bottom: 18px; right: 24px; display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); transition: all .25s; }
.slider-dots button.active { background: #fff; width: 22px; border-radius: 6px; }

/* ---------------- Testimonials ---------------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.testi-card .stars { margin-bottom: 12px; }
.testi-card p { font-size: 14.5px; color: var(--deep); }
.testi-who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }
.testi-who strong { font-size: 13.5px; display: block; }
.testi-who span { font-size: 12px; color: #8B9A97; }

/* =====================================================================
   Breadcrumb / Page header
   ===================================================================== */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 26px 0; }
.breadcrumb { font-size: 13px; color: #8B9A97; display: flex; gap: 6px; align-items: center; }
.breadcrumb a:hover { color: var(--accent); }

/* =====================================================================
   Shop page (filters + grid)
   ===================================================================== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: flex-start; padding: 40px 0 80px; }
.filters { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.filter-group { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.filter-group:last-child { border: none; margin: 0; padding: 0; }
.filter-group h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.filter-group label { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 5px 0; cursor: pointer; color: var(--deep); }
.filter-group input[type=radio], .filter-group input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
.price-range { display: flex; gap: 10px; align-items: center; }
.price-range input { width: 100%; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.shop-toolbar select { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 13.5px; }
.result-count { font-size: 13.5px; color: #8B9A97; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; border: 1.5px solid var(--line); transition: all .2s; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state h3 { margin-bottom: 6px; }

/* =====================================================================
   Product detail
   ===================================================================== */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; padding: 44px 0 60px; }
.pd-gallery { position: sticky; top: 96px; align-self: start; }
.pd-main-image { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 1; box-shadow: var(--shadow-sm); position: relative; }
.pd-main-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; cursor: zoom-in; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumbs button { width: 78px; height: 78px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; opacity: .65; transition: all .2s; }
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--accent); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .eyebrow { margin-bottom: 8px; }
.pd-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.pd-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 13.5px; color: #8B9A97; }
.pd-price-block { display: flex; align-items: baseline; gap: 12px; padding: 18px 0; border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); margin-bottom: 20px; font-family: var(--font-mono); }
.pd-price-now { font-size: 30px; font-weight: 600; color: var(--ink); }
.pd-price-was { font-size: 17px; color: #A8A199; text-decoration: line-through; }
.pd-save { background: #FDEAE6; color: var(--accent-dark); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pd-desc { color: #3E4C4E; margin-bottom: 22px; }
.pd-stock { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 24px; }
.pd-stock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.pd-stock.low .dot { background: var(--gold); }
.pd-stock.out .dot { background: var(--accent); }

.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 44px; background: var(--white); border: none; font-size: 17px; color: var(--ink); transition: background .2s; }
.qty-stepper button:hover { background: var(--paper-2); }
.qty-stepper input { width: 46px; text-align: center; border: none; font-size: 15px; font-weight: 600; font-family: var(--font-mono); }
.pd-buy-row { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.pd-buy-row .btn { flex: 1; min-width: 160px; }
.pd-wishlist-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; }
.pd-wishlist-btn:hover { border-color: var(--accent); color: var(--accent); }

.trust-row { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.trust-item { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #6B7A78; font-weight: 500; }

.pd-tabs { margin-top: 60px; }
.tab-nav { display: flex; gap: 6px; border-bottom: 1.5px solid var(--line); margin-bottom: 28px; }
.tab-nav button { padding: 12px 22px; background: none; border: none; font-weight: 600; font-size: 14.5px; color: #8B9A97; position: relative; }
.tab-nav button.active { color: var(--ink); }
.tab-nav button.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 2.5px; background: var(--accent); border-radius: 2px; }
.tab-panel { display: none; animation: fadein .4s; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 560px; }
.spec-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { color: #8B9A97; width: 40%; }
.review-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: #8B9A97; }

/* Related products */
.related-section { padding: 60px 0 130px; }

/* Sticky bottom buy bar — fixed to viewport bottom, not the page */
.sticky-buy-bar {
  position: fixed; left: 0; right: 0; bottom: -100px; background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(15,42,46,.10); z-index: 80; transition: bottom .4s var(--ease); padding: 12px 0;
}
.sticky-buy-bar.show { bottom: 0; }
.sbb-inner { display: flex; align-items: center; gap: 18px; }
.sbb-inner img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.sbb-info { flex: 1; min-width: 0; }
.sbb-info .sbb-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbb-info .sbb-price { font-family: var(--font-mono); color: var(--accent); font-weight: 600; font-size: 14px; }
.sbb-actions { display: flex; gap: 10px; flex-shrink: 0; }
.sbb-actions .btn { padding: 12px 20px; }
.sbb-qty { display: none; }

/* =====================================================================
   Cart page
   ===================================================================== */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; padding: 44px 0 90px; align-items: flex-start; }
.cart-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.cart-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border: none; }
.cart-row img { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; }
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-info a { font-weight: 600; font-size: 14.5px; }
.cart-row-info .cr-cat { font-size: 12px; color: #8B9A97; margin-top: 2px; }
.cart-row-price { font-family: var(--font-mono); font-weight: 600; width: 90px; text-align: right; }
.cart-row-remove { color: #A8A199; transition: color .2s; }
.cart-row-remove:hover { color: var(--accent); }

.summary-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 9px 0; color: #3E4C4E; }
.summary-row.total { border-top: 1.5px dashed var(--line); margin-top: 8px; padding-top: 16px; font-size: 17px; font-weight: 700; color: var(--ink); font-family: var(--font-mono); }
.empty-cart { text-align: center; padding: 90px 20px; }
.empty-cart svg { color: var(--line); margin-bottom: 20px; }
.coupon-box { margin-bottom: 16px; }
.coupon-input { display: flex; gap: 8px; }
.coupon-input input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; text-transform: uppercase; }
.coupon-input input:focus { outline: none; border-color: var(--accent); }
.coupon-msg { font-size: 12.5px; color: var(--accent-dark); margin-top: 8px; display: none; }
.coupon-msg.show { display: block; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; background: #E4F5EC; color: var(--success); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.coupon-applied button { background: none; border: none; color: var(--success); text-decoration: underline; font-size: 12.5px; font-weight: 600; }
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-row span { font-size: 12.5px; color: #8B9A97; font-weight: 600; }
.share-btn { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); transition: all .2s; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* =====================================================================
   Checkout
   ===================================================================== */
.checkout-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; padding: 44px 0 90px; align-items: flex-start; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; margin-bottom: 22px; }
.form-card h3 { font-size: 18px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--deep); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,60,.1); outline: none; }
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-option { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; transition: border-color .2s; }
.pay-option:has(input:checked) { border-color: var(--accent); background: #FFF6F4; }
.mini-cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini-cart-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.mini-cart-item .mci-name { font-size: 13.5px; font-weight: 600; }
.mini-cart-item .mci-qty { font-size: 12px; color: #8B9A97; }
.mini-cart-item .mci-price { margin-left: auto; font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; }

/* =====================================================================
   Auth pages
   ===================================================================== */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.auth-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 40px; width: 100%; max-width: 420px; }
.auth-card h2 { text-align: center; }
.auth-card p.sub { text-align: center; margin-bottom: 26px; color: #8B9A97; font-size: 14px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: #8B9A97; }
.auth-switch a { color: var(--accent); font-weight: 600; }

/* =====================================================================
   User dashboard
   ===================================================================== */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; padding: 40px 0 90px; }
.dash-side { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; align-self: start; position: sticky; top: 96px; }
.dash-side .user-chip { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.dash-side .user-chip .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }
.dash-side a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--deep); transition: all .2s; margin-bottom: 2px; }
.dash-side a:hover { background: var(--paper-2); }
.dash-side a.active { background: var(--ink); color: var(--paper); }
.dash-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; margin-bottom: 20px; }
.order-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }
.order-row:last-child { border: none; }
.status-pill { font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: capitalize; }
.status-pending { background: #FDF2E0; color: #B5790C; }
.status-processing { background: #E4EEFB; color: #2563AF; }
.status-shipped { background: #EAE4FB; color: #6A32C9; }
.status-delivered { background: #E4F5EC; color: var(--success); }
.status-cancelled { background: #FDEAE6; color: var(--accent-dark); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--ink); color: rgba(248,245,239,.85); margin-top: 60px; }
.footer-newsletter { border-bottom: 1px solid rgba(248,245,239,.12); }
.news-inner { display: flex; justify-content: space-between; align-items: center; padding: 44px 0; gap: 24px; flex-wrap: wrap; }
.news-inner h3 { color: #fff; margin-bottom: 4px; }
.news-inner p { color: rgba(248,245,239,.6); margin: 0; }
.news-form { display: flex; gap: 10px; }
.news-form input { padding: 13px 18px; border-radius: 999px; border: none; width: 260px; font-size: 14px; }
.news-form button { background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 13px 22px; font-weight: 600; transition: background .2s; }
.news-form button:hover { background: var(--accent-dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; padding: 50px 0; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(248,245,239,.6); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-about p { max-width: 320px; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(248,245,239,.1); display: flex; align-items: center; justify-content: center; font-size: 12px; text-transform: uppercase; transition: background .2s; }
.social-row a:hover { background: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; padding: 20px 0; border-top: 1px solid rgba(248,245,239,.12); font-size: 12.5px; color: rgba(248,245,239,.5); flex-wrap: wrap; gap: 8px; }
.ticket-note { font-family: var(--font-mono); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-layout { grid-template-columns: 1fr; gap: 34px; }
  .pd-gallery { position: static; }
}
@media (max-width: 860px) {
  .topbar-contact { display: none; }
  .header-search, .desktop-only { display: none; }
  .search-toggle { display: flex; }
  .hamburger { display: flex; }
  .mobile-search-panel { display: block; }
  .cat-nav-row { border-top: none; }
  .main-nav {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: var(--paper); z-index: 56;
    flex-direction: column; align-items: flex-start; padding: 90px 26px 26px; gap: 4px; transition: left .35s var(--ease);
    box-shadow: var(--shadow-lg); overflow-x: visible; overflow-y: auto; max-width: none; margin: 0;
  }
  .main-nav.open { left: 0; display: flex; }
  .main-nav a { padding: 11px 0; width: 100%; font-size: 15.5px; }
  .mobile-only { display: block; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; width: 100%; }
  .mobile-account a { padding: 10px 0; display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .promo-grid { grid-template-columns: 1fr; padding: 30px 0; gap: 20px; }
  .testi-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; margin-bottom: 20px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-inner { flex-direction: column; align-items: flex-start; }
  .news-form { width: 100%; }
  .news-form input { flex: 1; width: auto; }
  .sbb-info .sbb-name { display: none; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 0 16px; }
}
