/* =============================================
   ZIVON STORES — styles.css
   Max-width: 900px · Mobile-first · v3 Final
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0a0a0a;
  --off-black:  #111111;
  --dark:       #1a1a1a;
  --mid:        #2e2e2e;
  --border:     #282828;
  --muted:      #666;
  --silver:     #a0a0a0;
  --light:      #e8e8e8;
  --white:      #fff;
  --accent:     #c8f65a;
  --accent-dim: #a8d040;
  --danger:     #ff4444;
  --success:    #22c55e;
  --font:       'Montserrat', sans-serif;
  --nav-h:      62px;
  --ann-h:      34px;   /* announcement bar height */
  --max-w:      900px;
  --r:          6px;
  --rlg:        12px;
  --ease:       0.22s cubic-bezier(0.4,0,0.2,1);
  --slide-dur:  0.65s;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.05;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
/* IMPORTANT: don't override height on img globally — breaks object-fit */
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: var(--font); }

/* ── Typography ── */
h1 { font-size: clamp(1.9rem, 5vw, 3rem);   font-weight: 800; line-height: 1;    letter-spacing: -0.03em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.85rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
h3 { font-size: clamp(1rem, 2vw, 1.2rem);   font-weight: 600; line-height: 1.05; }
h4 { font-size: 0.88rem; font-weight: 600; line-height: 1.1; }
p  { line-height: 1.6; }

/* ── Layout ── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.section    { padding: 60px 0; }
.section-sm { padding: 36px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; border-radius: var(--r);
  transition: all var(--ease); white-space: nowrap; cursor: pointer; border: none;
}
.btn-primary  { background: var(--accent); color: var(--black); }
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--silver); background: rgba(255,255,255,0.04); }
.btn-dark     { background: var(--mid); color: var(--white); border: 1px solid var(--border); }
.btn-dark:hover { background: #3a3a3a; }
.btn-danger   { background: var(--danger); color: var(--white); }
.btn-sm  { padding: 8px 16px; font-size: 0.66rem; }
.btn-lg  { padding: 14px 32px; font-size: 0.78rem; }
.btn-full { width: 100%; }

/* ── Navbar ── */
#navbar {
   position: sticky;
   left: 0;
   right: 0;
   z-index: 1000;
   top: 0;                     /* JS will shift this when announce bar is present */
  height: var(--nav-h);
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), top var(--ease);
}
/* When announce bar is visible, push navbar down */

body.has-announce #navbar { top: var(--ann-h); }

#navbar.scrolled {
  background: rgba(10,10,10,0.99); }

.nav-inner {
  height: 100%; display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo img,
.nav-logo svg,
.nav-logo i {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  flex-shrink: 0;
   display: flex;              /* ADD THIS */
  align-items: center;        /* ADD THIS */
}
.nav-logo span {
  color: var(--accent);

  gap: 8px;                   /* ADD THIS (space between icon & text) */
  }

.logo-icon {
  width: 30px;
  height: 30px;
    object-fit: contain;

}

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--silver);
  transition: color var(--ease); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform var(--ease); transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 13px;
  background: var(--mid); border-radius: var(--r);
  font-size: 0.69rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--white);
  transition: all var(--ease); border: 1px solid var(--border); white-space: nowrap;
}
.cart-btn:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }
.cart-count {
  background: var(--accent); color: var(--black); border-radius: 50%;
  width: 16px; height: 16px; font-size: 0.58rem; font-weight: 800;
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-btn:hover .cart-count { background: var(--black); color: var(--accent); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 6px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  top: var(--nav-h);
  background: var(--off-black); padding: 20px;
  flex-direction: column; border-top: 1px solid var(--border); overflow-y: auto;
}
body.has-announce .mobile-nav { top: calc(var(--nav-h) + var(--ann-h)); }
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--silver); padding: 15px 0; border-bottom: 1px solid var(--border);
  transition: color var(--ease);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .cart-btn { margin-top: 20px; width: 100%; justify-content: center; }



/* ── Section label ── */
.section-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section-label::before { content: ''; width: 16px; height: 1px; background: var(--accent); }

/* ══════════════════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════════════════ */

/* Outer wrapper — clips the track */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: var(--black);
  min-height: 420px;
  /* Prevent the slider from overflowing page width */
  width: 100%;
}

/* Progress bar at top of slider */
.hero-progress {
  position: absolute; top: 0; left: 0; z-index: 20;
  height: 2px; background: var(--accent);
  width: 0%; /* driven by JS */
  transition: width linear;
  border-radius: 0 2px 2px 0;
}

/* Track — all slides sit side by side, JS translates it */
.hero-track {
  display: flex;
  /* Width = 100% × slide count. Must match SLIDES.length in JS */
  width: 300%;
  height: 100%;
  /* Smooth slide transition — duration synced with --slide-dur */
  transition: transform var(--slide-dur) cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

/* Individual slide — exactly 1/slideCount of track width */
.hero-slide {
  position: relative;
  width: calc(100% / 3);   /* 1 ÷ 3 */
  flex-shrink: 0;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Full-bleed background per slide */
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Start zoomed-in; active slide zooms out (Ken Burns) */
  transform: scale(1.06);
  transition: transform 7s ease;
}
.hero-slide.is-active .hero-slide-bg { transform: scale(1); }

/* Dark overlay — readable on any photo */
.hero-slide-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(
50deg, rgba(0, 0, 0, 0.82) 0%, rgb(0 0 0 / 67%) 55%, rgb(0 0 0 / 10%) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, #000000b0 50%);
}

/* Content inner — sits above overlay */
.hero-slide-inner {
  position: relative; z-index: 2;
  width: 85%;
  padding: 70px 0 108px; /* bottom padding makes room for stats bar + dots */
}

/* Text block — left-aligned */
.hero-content { width: 55%; max-width: 420px; }

/* Animate slide content in when active */
.hero-slide .hero-eyebrow,
.hero-slide .hero-content h1,
.hero-slide .hero-desc,
.hero-slide .hero-actions {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: justify;
}
.hero-slide.is-active .hero-eyebrow  { opacity: 1; transform: none; transition-delay: 0.08s; }
.hero-slide.is-active h1             { opacity: 1; transform: none; transition-delay: 0.2s;  }
.hero-slide.is-active .hero-desc     { opacity: 1; transform: none; transition-delay: 0.32s; }
.hero-slide.is-active .hero-actions  { opacity: 1; transform: none; transition-delay: 0.44s; }

/* Hero text elements */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hero-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.hero-content h1 { color: var(--white); margin-bottom: 14px; }
.hero-content h1 em { font-style: normal; color: var(--accent); }
.hero-desc {
  font-size: 0.85rem; color: rgba(255,255,255,0.72); line-height: 1.65;
  margin-bottom: 28px; max-width: 340px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Stats bar — absolute at bottom of banner */
.hero-stats-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.hero-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 13px 10px; border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-size: 1.3rem; font-weight: 800; color: var(--white); line-height: 1;
}
.hero-stat-num em { font-style: normal; color: var(--accent); }
.hero-stat-label {
  font-size: 0.57rem; font-weight: 600; color: rgba(255,255,255,0.45);
  letter-spacing: 0.07em; text-transform: uppercase; margin-top: 3px;
}

/* Arrows */
.hero-arrow {
  position: absolute; top: 50%; z-index: 15;
  transform: translateY(-60%); /* shift up slightly to clear stats bar */
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease); cursor: pointer; user-select: none;
}
.hero-arrow:hover  { background: var(--accent); color: var(--black); border-color: var(--accent); transform: translateY(-60%) scale(1.08); }
.hero-arrow:active { transform: translateY(-60%) scale(0.96); }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }

/* Dots */
.hero-dots {
  position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 15;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: none; cursor: pointer;
  transition: all 0.3s ease; padding: 0; flex-shrink: 0;
}
.hero-dot.active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ── Marquee ── */
.marquee-wrap {
  background: var(--accent);
  overflow: hidden;
  padding: 10px 0;

  position: sticky;   /* ADD THIS */
  top: 0;             /* ADD THIS */
  z-index: 1001;      /* ADD THIS */
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  padding: 0 24px;
}

.marquee-track span::before {
  content: '✦';
  margin-right: 24px;
}

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Value Strip ── */
.value-strip { background: var(--off-black); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.value-strip-inner { display: grid; grid-template-columns: repeat(3,1fr); }
.value-strip-item { display: flex; align-items: center; gap: 12px; padding: 20px 16px; border-right: 1px solid var(--border); }
.value-strip-item:last-child { border-right: none; }
.value-strip-icon { font-size: 1.4rem; flex-shrink: 0; }
.value-strip-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.value-strip-desc  { font-size: 0.64rem; color: var(--muted); line-height: 1.4; }

/* ── Promo Mosaic ── */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}
.promo-card {
  position: relative; overflow: hidden; border-radius: var(--rlg);
  background: var(--dark); min-height: 150px;
  display: flex; align-items: flex-end; cursor: pointer;
  transition: transform var(--ease);
  text-decoration: none;
}
.promo-card:hover { transform: scale(1.015); }
.promo-card.tall { grid-row: span 2; min-height: 308px; }
.promo-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6; transition: opacity var(--ease);
}
.promo-card:hover img { opacity: 0.75; }
.promo-card-body {
  position: relative; z-index: 1; padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  width: 100%;
}
.promo-card-sub   { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.promo-card-title { font-size: 0.9rem; font-weight: 800; line-height: 1.1; color: var(--white); margin-bottom: 7px; }
.promo-card-cta   { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid rgba(200,246,90,0.4); padding-bottom: 1px; }

/* ── Category Pills ── */
.cat-pills { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: 7px 16px; border-radius: 40px;
  border: 1px solid var(--border); background: var(--off-black);
  font-size: 0.67rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--silver); cursor: pointer; transition: all var(--ease); white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active { background: var(--accent); color: var(--black); border-color: var(--accent); }

/* ── Product Tab Bar ── */
.tab-bar { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 18px; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--ease); cursor: pointer;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Product Card ── */
.product-card {
  background: var(--off-black); border: 1px solid var(--border);
  border-radius: var(--rlg); overflow: hidden; transition: all var(--ease);
}
.product-card:hover {
  border-color: rgba(200,246,90,0.3); transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}
.product-img-wrap {
  aspect-ratio: 1; overflow: hidden; background: var(--dark); position: relative;
}
/* Override the global img rule inside cards */
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 9px; left: 9px;
  background: var(--accent); color: var(--black);
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 2px;
}
.product-badge.sale { background: var(--danger); color: var(--white); }
.product-body { padding: 12px 12px 14px; }
.product-cat   { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.product-stars { color: var(--accent); font-size: 0.65rem; letter-spacing: 1px; margin-bottom: 4px; }
.product-name  {
  font-size: 0.78rem; font-weight: 600; line-height: 1.25; color: var(--white); margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.product-price     { font-size: 0.95rem; font-weight: 800; color: var(--accent); }
.product-price-old { font-size: 0.68rem; color: var(--muted); text-decoration: line-through; }
/* Full-width "Add to Cart" button */
.product-atc-btn {
  width: 100%; padding: 9px 10px;
  background: var(--mid); color: var(--white);
  border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--font); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all var(--ease); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.product-atc-btn:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }

/* ── Page Header ── */
.page-header { padding: 44px 0 32px; border-bottom: 1px solid var(--border); }
.page-header h1 { margin-bottom: 5px; }
.page-header p  { color: var(--silver); font-size: 0.85rem; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; color: var(--muted); padding: 12px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--silver); }

/* ── Shop toolbar ── */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.shop-toolbar-count { font-size: 0.72rem; color: var(--muted); }
.sort-select {
  background: var(--off-black); border: 1px solid var(--border); color: var(--white);
  padding: 8px 12px; border-radius: var(--r); font-size: 0.72rem; cursor: pointer;
  transition: border-color var(--ease);
}
.sort-select:focus { outline: none; border-color: var(--accent); }

/* Filter chips */
.filter-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip {
  padding: 6px 13px; border-radius: 40px; border: 1px solid var(--border);
  background: var(--off-black); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--silver);
  cursor: pointer; transition: all var(--ease);
  display: flex; align-items: center; gap: 6px;
}
.filter-chip:hover    { border-color: var(--accent); color: var(--accent); }
.filter-chip.active   { background: rgba(200,246,90,0.08); border-color: var(--accent); color: var(--accent); }
.filter-chip input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }

/* ── Product Detail ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail-imgs { position: sticky; top: calc(var(--nav-h) + 24px); }
body.has-announce .product-detail-imgs { top: calc(var(--nav-h) + var(--ann-h) + 24px); }

.product-main-img {
  aspect-ratio: 1; overflow: hidden; background: var(--dark);
  border-radius: var(--rlg); border: 1px solid var(--border); margin-bottom: 10px;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }

.product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-thumb {
  width: 60px; height: 60px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; transition: border-color var(--ease); flex-shrink: 0;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb.active, .product-thumb:hover { border-color: var(--accent); }

.product-detail-cat  { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.product-detail-name {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  text-align: justify;
  }

.product-detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.stars { color: var(--accent); font-size: 0.82rem; letter-spacing: 2px; }
.rating-count { font-size: 0.68rem; color: var(--muted); }
.product-detail-price     { font-size: 1.7rem; font-weight: 800; color: var(--accent); margin-bottom: 3px; }
.product-detail-price-old { font-size: 0.88rem; color: var(--muted); text-decoration: line-through; margin-bottom: 18px; }
.product-detail-desc { color: var(--silver); font-size: 0.83rem; line-height: 1.65; margin-bottom: 20px; text-align: justify; }

.product-specs { margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--rlg); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-key { padding: 9px 12px; font-size: 0.66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; background: var(--off-black); }
.spec-val { padding: 9px 12px; font-size: 0.75rem; color: var(--light); }

.qty-row   { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qty-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.qty-ctrl  { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.qty-btn   { width: 36px; height: 36px; background: var(--off-black); color: var(--white); font-size: 0.95rem; display: flex; align-items: center; justify-content: center; transition: background var(--ease); cursor: pointer; border: none; }
.qty-btn:hover { background: var(--mid); }
.qty-num { width: 42px; text-align: center; font-size: 0.85rem; font-weight: 700; background: var(--dark); color: var(--white); border: none; outline: none; padding: 0; height: 36px; font-family: var(--font); }

.add-cart-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-size: 0.76rem; }

.product-detail-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 16px; }
.tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--border); border-radius: 20px; color: var(--muted); }
.trust-row { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.trust-row p { font-size: 0.73rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }

/* ── Cart ── */
.cart-layout { display: grid; grid-template-columns: 1fr 290px; gap: 24px; align-items: start; }
.cart-empty { text-align: center; padding: 60px 24px; border: 1px solid var(--border); border-radius: var(--rlg); }
.cart-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.cart-empty h3 { margin-bottom: 8px; }
.cart-empty p  { color: var(--muted); margin-bottom: 20px; font-size: 0.85rem; }

.cart-item {
  display: grid; 
  gap: 10px; align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  margin-bottom: 8px;
  background: var(--off-black);
  transition: border-color var(--ease);
  text-align: justify;
}
.cart-item:hover { border-color: var(--mid); }
.cart-item-img { width: 60px; height: 60px; border-radius: var(--r); overflow: hidden; background: var(--dark); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-name  { font-size: 0.8rem; font-weight: 600; line-height: 1.2; margin-bottom: 3px; }
.cart-item-cat   { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; }
.cart-item-price { font-size: 0.82rem; font-weight: 700; }
.cart-item-total { font-size: 0.92rem; font-weight: 800; color: var(--accent); text-align: right; }
.cart-remove     {
  width: 28px; height: 28px; background: none; color: var(--muted); font-size: 0.9rem;
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  transition: all var(--ease); cursor: pointer; border: none;
}
.cart-remove:hover { background: rgba(255,68,68,0.12); color: var(--danger); }

.order-summary {
  background: var(--off-black); border: 1px solid var(--border); border-radius: var(--rlg);
  padding: 22px; position: sticky; top: calc(var(--nav-h) + 16px);
}
body.has-announce .order-summary { top: calc(var(--nav-h) + var(--ann-h) + 16px); }
.order-summary h3  { font-size: 0.95rem; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.summary-row       { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.8rem; }
.summary-row .label { color: var(--muted); }
.summary-row .value { font-weight: 600; }
.summary-divider   { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.summary-total .label { font-size: 0.85rem; font-weight: 700; }
.summary-total .value { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.summary-note { font-size: 0.63rem; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.5; }

/* ── Checkout ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 290px; gap: 24px; align-items: start; }
.form-section { margin-bottom: 28px; }
.form-section-title {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px;
}
.form-section-title::before { content: ''; width: 14px; height: 1px; background: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--silver); }
.form-input {
  background: var(--off-black); border: 1px solid var(--border); border-radius: var(--r);
  color: var(--white); padding: 11px 13px; font-size: 0.83rem; font-family: var(--font);
  transition: border-color var(--ease); width: 100%;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-input::placeholder { color: var(--muted); }

.checkout-summary {
  background: var(--off-black); border: 1px solid var(--border); border-radius: var(--rlg);
  padding: 22px; position: sticky; top: calc(var(--nav-h) + 16px);
}
body.has-announce .checkout-summary { top: calc(var(--nav-h) + var(--ann-h) + 16px); }
.checkout-summary h3  { font-size: 0.95rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.checkout-item { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.checkout-item-img { width: 48px; height: 48px; border-radius: var(--r); overflow: hidden; background: var(--dark); flex-shrink: 0; }
.checkout-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checkout-item-name  { font-size: 0.75rem; font-weight: 600; line-height: 1.2; margin-bottom: 2px; }
.checkout-item-meta  { font-size: 0.65rem; color: var(--muted); }
.checkout-item-price { font-size: 0.8rem; font-weight: 700; margin-left: auto; flex-shrink: 0; }
.pay-btn { gap: 8px; }
.secure-badge { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.63rem; color: var(--muted); margin-top: 8px; }

/* ── Success Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.88); align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--off-black); border: 1px solid var(--border); border-radius: var(--rlg);
  padding: 44px 32px; max-width: 400px; width: 92%; text-align: center;
  animation: modalIn 0.26s ease;
}
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-icon { font-size: 2.8rem; margin-bottom: 14px; }
.modal h2   { font-size: 1.3rem; margin-bottom: 10px; }
.modal p    { color: var(--silver); line-height: 1.6; margin-bottom: 20px; font-size: 0.85rem; }
.modal-ref  { font-size: 0.65rem; font-family: monospace; background: var(--dark); padding: 6px 12px; border-radius: var(--r); color: var(--accent); display: inline-block; margin-bottom: 18px; }

/* ── Toast ── */
.toast-wrap { position: fixed; bottom: 20px; right: 16px; z-index: 1500; display: flex; flex-direction: column; gap: 7px; }
.toast {
  background: var(--dark); border: 1px solid var(--border); border-radius: var(--rlg);
  padding: 11px 14px; display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 500; min-width: 200px; max-width: 280px;
  animation: toastIn 0.26s ease;
}
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast-icon { font-size: 0.95rem; }

/* ── Footer ── */
footer { background: var(--off-black); border-top: 1px solid var(--border); padding: 40px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .nav-logo { font-size: 1.05rem; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.75rem; color: var(--muted); line-height: 1.6; max-width: 200px; text-align:justify; }
.footer-col-title { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); margin-bottom: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: 0.75rem; color: var(--muted); transition: color var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.67rem; color: var(--muted); }
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.68rem;
  color: var(--muted); transition: all var(--ease);
}
.footer-social:hover { border-color: var(--accent); color: var(--accent); }

/* ── No results ── */
.no-results { text-align: center; padding: 60px; border: 1px solid var(--border); border-radius: var(--rlg); }
.no-results p { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

/* ═══════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════ */

/* ── Tablet ≤ 780px ── */
@media (max-width: 780px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-banner      { min-height: 340px; }
  .hero-slide       { min-height: 340px; }
  .hero-slide-inner { padding: 56px 0 100px; }
  .hero-content     { width: 80%; max-width: 100%; }
  .hero-desc        { max-width: 100%; }
  .hero-dots        { bottom: 48px; }
  .hero-arrow       { width: 34px; height: 34px; font-size: 1.1rem; }

  /* Layout */
  .products-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .promo-grid    { grid-template-columns: 1fr 1fr; }
  .promo-card.tall { grid-row: span 1; min-height: 150px; }

  /* Value strip */
  .value-strip-inner { grid-template-columns: 1fr; }
  .value-strip-item  { border-right: none; border-bottom: 1px solid var(--border); }
  .value-strip-item:last-child { border-bottom: none; }

  /* Product detail */
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-imgs { position: static; }

  /* Cart & checkout */
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary, .checkout-summary { position: static; order: -1; }
  body.has-announce .order-summary,
  body.has-announce .checkout-summary { top: auto; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* ── Mobile ≤ 540px ── */
@media (max-width: 540px) {
  /* Hero */
  .hero-banner        { min-height: 300px; }
  .hero-slide         { min-height: 300px; }
  .hero-slide-inner   { padding: 44px 35px 94px; }
  .hero-content       { width: 96%; }
  .hero-content h1    { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .hero-dots          { bottom: 55px; }
  .hero-arrow         { width: 30px; height: 30px; font-size: 1rem; }
  .hero-arrow.prev    { left: 6px; }
  .hero-arrow.next    { right: 6px; }
  .hero-stats-bar     { flex-wrap: nowrap; }
  .hero-stat          { padding: 10px 6px; }
  .hero-stat-num      { font-size: 1rem; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .product-body  { padding: 10px 9px 12px; }
  .product-name  { font-size: 0.73rem; }
  .product-price { font-size: 0.85rem; }
  .product-atc-btn { font-size: 0.57rem; padding: 8px 6px; letter-spacing: 0.03em; }

  /* Promo */
  .promo-grid { grid-template-columns: 1fr 1fr; }

  /* Sections */
  .section    { padding: 40px 0; }
  .section-sm { padding: 26px 0; }

  /* Checkout form */
  .form-grid { grid-template-columns: 1fr; }

  /* Cart item — simplified on mobile */
  .cart-item { grid-template-columns: 56px 1fr auto 32px; }
  .cart-item-price { display: none; }
  .cart-item-total { text-align: right; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand p { max-width: 100%; }

  /* Toast */
  .toast-wrap { left: 10px; right: 10px; bottom: 14px; }
  .toast { min-width: unset; max-width: 100%; }
}

/* ── XS ≤ 360px ── */
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .promo-grid    { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.5rem; }
}
