/* ================================================================
   ZwipKart - Master Stylesheet
   Premium Home Appliances | Smart Savings
================================================================ */

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

/* ================================================================
   1. CSS VARIABLES
================================================================ */
:root {
  /* ── Surfaces (50%+ white/off-white) ── */
  --bg-page:      #f7f7f7;
  --bg-card:      #ffffff;
  --bg-subtle:    #f0f0f0;
  --white:        #ffffff;
  --black:        #000000;

  /* ── Ink / Dark (20-30%) — Uber-bold blacks ── */
  --ink-primary:  #000000;
  --ink-secondary:#333333;
  --ink-muted:    #6b6b6b;
  --dark:         #000000;
  --dark-2:       #111111;
  --dark-3:       #1a1a1a;

  /* ── Legacy text aliases (keep for compatibility) ── */
  --text-primary:   #000000;
  --text-secondary: #333333;
  --text-muted:     #6b6b6b;
  --text-white:     #ffffff;

  /* ── Accent — ZwipKart Purple (CTAs, active states, highlights ~8%) ── */
  --accent:       #6C3CE1;
  --accent-dark:  #5A2DC7;
  --accent-light: #F3EFFE;
  --accent-blue:  #3B82F6;

  /* ── Deal / Discount — Red (savings badges only ~3%) ── */
  --deal:         #e63946;
  --deal-light:   #fdecea;

  /* ── Legacy aliases ── */
  --grey:         #c8c8cc;
  --grey-light:   #f0f0f0;
  --grey-mid:     #e4e4e8;
  --grey-dark:    #6e6e73;
  --danger:       #e63946;
  --success:      #22c55e;
  --warning:      #F59E0B;
  --info:         #3b82f6;

  /* ── Borders & Shadows ── */
  --border:       #e5e5e5;
  --border-dark:  #d0d0d0;
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:    0 2px 6px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 24px rgba(0,0,0,0.10);
  --shadow-xl:    0 14px 40px rgba(0,0,0,0.12);
  --shadow-card:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(108,60,225,0.10), 0 4px 12px rgba(0,0,0,0.06);

  /* ── Radius — sharp, angular tech feel ── */
  --r-xs:   3px;
  --r-sm:   5px;
  --r-md:   8px;
  --r-lg:   10px;
  --r-xl:   14px;
  --r-full: 999px;

  /* ── Transitions — snappy ── */
  --t-fast: all 0.12s cubic-bezier(0.4,0,0.2,1);
  --t-base: all 0.18s cubic-bezier(0.4,0,0.2,1);
  --t-slow: all 0.35s cubic-bezier(0.4,0,0.2,1);

  /* ── Typography ── */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Layout ── */
  --container:      1300px;
  --container-wide: 1520px;
  --header-h:       116px;
  --announce-h:     40px;
}

/* ================================================================
   1b. UTILITY CLASSES
================================================================ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-32 { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.rounded { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.border { border: 1.5px solid var(--border); }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.78rem; }

/* ================================================================
   2. RESET & BASE
================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink-primary);
  background: var(--bg-page);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }
svg { display: inline-block; vertical-align: middle; }

/* ================================================================
   3. TYPOGRAPHY
================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; }
.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* ================================================================
   4. UTILITIES
================================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 96px 0; }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-tag::before {
  content: '';
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  border-radius: 1px;
}

.section-title { margin-bottom: 12px; }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.section-header.center .section-sub { margin: 0 auto; }

/* Flex / Grid helpers */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

/* Text */
.text-white   { color: var(--white); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ================================================================
   5. BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}

/* ── Metallic shine sweep (shared by all solid buttons) ── */
.btn-primary::before,
.btn-accent::before,
.btn-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.22) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
  z-index: 1;
}
.btn-primary:hover::before,
.btn-accent:hover::before,
.btn-dark:hover::before {
  left: 160%;
}
/* keep text above the sweep */
.btn-primary > *,
.btn-accent > *,
.btn-dark > * { position: relative; z-index: 2; }

/* Primary = ZwipKart Purple */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(108,60,225,0.25);
  transform: translateY(-1px);
}

/* Dark = ZwipKart gradient (hero CTA) */
.btn-dark {
  background: linear-gradient(
    135deg,
    #7C4DFF 0%,
    #6C3CE1 40%,
    #5A2DC7 70%,
    #4A20B0 100%
  );
  color: #fff;
  border-color: #4A20B0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 2px 6px rgba(108,60,225,0.30);
}
.btn-dark:hover {
  background: linear-gradient(
    135deg,
    #8F62FF 0%,
    #7C4DFF 40%,
    #6C3CE1 70%,
    #5A2DC7 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 6px 18px rgba(108,60,225,0.35);
  transform: translateY(-1px);
}

/* Outline dark */
.btn-outline,
.btn-outline-dark {
  background: transparent;
  color: var(--ink-primary);
  border-color: var(--ink-primary);
}
.btn-outline:hover,
.btn-outline-dark:hover {
  background: var(--ink-primary);
  color: #fff;
}

/* Outline white (for dark backgrounds) */
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--ink-primary);
  border-color: #fff;
}

/* Deal / accent CTA */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: none;
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(108,60,225,0.25);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 40px; font-size: 1rem; border-radius: var(--r-full); }
.btn-sm { padding: 10px 22px; font-size: 0.8rem; border-radius: var(--r-full); }
.btn-xl { padding: 18px 48px; font-size: 1.05rem; font-weight: 600; border-radius: var(--r-full); }
.btn-full { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn-icon-sm { width: 34px; height: 34px; padding: 0; border-radius: 50%; }

/* ================================================================
   6. BADGES
================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-new        { background: #111; color: #fff; }
.badge-like-new   { background: #1d2024; color: #fff; }
.badge-excellent  { background: #3a3f45; color: #fff; }
.badge-good-value { background: #6C3CE1; color: #fff; }
.badge-sale     { background: var(--deal); color: var(--white); }
.badge-hot      { background: var(--danger); color: var(--white); }
.badge-dark     { background: var(--dark); color: var(--white); }

/* ================================================================
   7. FORM ELEMENTS
================================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--t-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,60,225,0.12);
}

.form-textarea { resize: vertical; min-height: 130px; }

/* ================================================================
   8. ANNOUNCEMENT BAR
================================================================ */
.announcement-bar {
  background: #0f0f0f;
  color: #f0f0f0;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1001;
  border-bottom: none;
}

.announcement-bar a {
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-bar .close-announce {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--t-fast);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-bar .close-announce:hover { color: var(--text-primary); }

/* ================================================================
   9. HEADER & NAVIGATION
================================================================ */
/* ── Gradient accent strip — top of page ── */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #6C3CE1 0%, #3B82F6 50%, #6C3CE1 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

.site-header {
  position: sticky;
  top: 3px;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: box-shadow 0.18s cubic-bezier(0.4,0,0.2,1);
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

/* ── Two-row header layout (index.html) ── */
.header-top {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 20px;
}

/* ── Single-row header layout (all other pages: product, shop, about…) ── */
.header-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 20px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 100%;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  letter-spacing: 0.015em;
  text-decoration: none;
  position: relative;
  transition: color 0.18s ease;
}

/* Sliding underline */
.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-nav-link:hover {
  color: var(--ink-primary);
  background: none;
}

.header-nav-link:hover::after {
  transform: scaleX(1);
}

/* Deals — red + pulsing live dot */
.header-nav-link--deals {
  color: var(--deal);
  font-weight: 700;
}

.header-nav-link--deals::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--deal);
  border-radius: 50%;
  flex-shrink: 0;
  animation: nav-pulse 2s ease-in-out infinite;
}

.header-nav-link--deals::after {
  background: var(--deal);
}

.header-nav-link--deals:hover {
  color: var(--deal);
  background: none;
}

.header-nav-link.active {
  color: var(--ink-primary);
}

.header-nav-link.active::after {
  transform: scaleX(1);
}

@keyframes nav-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.6); }
}

/* ── Mega Menu ── */
.site-header .container { position: relative; }

.header-nav-link[data-mega-menu] {
  cursor: pointer;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted, #6b7280);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mega-menu-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-secondary, #374151);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mega-menu-link:hover {
  background: var(--bg-subtle, #f9fafb);
  color: var(--ink-primary, #111);
}

.mega-menu-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mega-menu-footer {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-menu-footer a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-primary, #111);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.mega-menu-footer a:hover {
  color: var(--accent);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

/* Invert icon on dark/footer backgrounds */
.site-footer .site-logo .logo-icon { filter: invert(1); }

/* PNG logo image sizing */
.site-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

/* Animated logo container */
.zk-anim-logo {
  height: 48px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.zk-anim-svg {
  height: 48px;
  width: auto;
  display: block;
  overflow: visible;
}

/* Mobile compact logo — after animation collapses text into basket icon */
@media (max-width: 768px) {
  .zk-mobile-compact {
    min-width: 34px;
    max-width: 34px;
  }
  .zk-mobile-icon {
    height: 34px !important;
    width: 34px !important;
    border-radius: 8px;
  }
  .zk-anim-logo {
    height: 34px;
  }
  .zk-anim-svg {
    height: 34px;
  }
}

/* Navigation */
.main-nav { flex: 1; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--r-full);
  transition: var(--t-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: transparent;
}

.nav-link svg { width: 14px; height: 14px; transition: var(--t-fast); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Mega Dropdown */
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(210,210,215,0.5);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  min-width: 680px;
  opacity: 0;
  pointer-events: none;
  transition: var(--t-base);
  z-index: 999;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  transition: var(--t-fast);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.mega-link:hover {
  background: var(--grey-light);
  color: var(--accent);
}

.mega-icon {
  width: 36px;
  height: 36px;
  background: var(--grey-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-icon img { width: 22px; height: 22px; display: block; }

.mega-link:hover .mega-icon { background: var(--accent-light); }

/* ── Tech department nav + mega-menu ── */
.nav-link--tech:hover,
.nav-link--tech.active { color: var(--tech-green) !important; }

.mega-menu--tech { min-width: 520px; }
.mega-menu--tech .mega-link:hover { background: var(--tech-green-light); color: var(--tech-green); }
.mega-menu--tech .mega-link:hover .mega-cat-icon { background: rgba(76,175,80,0.08); }

/* ── Tech department section overrides ── */
.dept-tech .section-tag { color: var(--tech-green); }
.dept-tech .category-card:hover { border-color: rgba(76,175,80,0.3); }
.dept-tech .category-card:hover .cat-icon { background: rgba(76,175,80,0.08); color: var(--tech-green); }
.dept-tech .btn-primary { background: var(--tech-green); border-color: var(--tech-green); }
.dept-tech .btn-primary:hover { background: var(--tech-green-dark); border-color: var(--tech-green-dark); box-shadow: 0 4px 12px rgba(76,175,80,0.25); }
.dept-tech .btn-outline { color: var(--tech-green); border-color: var(--tech-green); }
.dept-tech .btn-outline:hover { background: var(--tech-green); color: #fff; }

.categories-grid--tech {
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

/* ── Shop filter bar: tech category buttons ── */
.btn-tech-cat { border-color: var(--tech-green) !important; color: var(--tech-green) !important; }
.btn-tech-cat:hover,
.btn-tech-cat.active { background: var(--tech-green) !important; color: #fff !important; border-color: var(--tech-green) !important; }

/* ── Sidebar category group headers ── */
.filter-group-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-dark);
  padding: 10px 0 4px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.filter-group-header:first-child { border-top: none; margin-top: 0; }
.filter-group-header--tech { color: var(--tech-green); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0 6px 0 16px;
  height: 46px;
  transition: var(--t-fast);
}

.header-search-icon {
  color: var(--ink-muted);
  flex-shrink: 0;
}

.header-search:focus-within {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108,60,225,0.08);
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-primary);
  outline: none;
  min-width: 0;
}

.header-search input::placeholder { color: var(--ink-muted); }

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(
    165deg,
    #363C42 0%,
    #272D32 28%,
    #1D2024 55%,
    #141618 80%,
    #0E1012 100%
  );
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: var(--t-base);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 2px 5px rgba(0,0,0,0.14);
}

.header-search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.20) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.header-search-btn:hover {
  background: linear-gradient(
    165deg,
    #454C54 0%,
    #353C42 28%,
    #2A3035 55%,
    #1F2428 80%,
    #161A1E 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(0,0,0,0.30),
    0 4px 12px rgba(0,0,0,0.22);
}

.header-search-btn:hover::before { left: 160%; }

.header-icon-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--r-md);
  color: var(--ink-secondary);
  transition: var(--t-fast);
  flex-shrink: 0;
}

.header-icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.header-icon-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--deal);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--t-base);
}

/* ================================================================
   10. HERO SECTION
================================================================ */
.hero {
  background: #FFFFFF;
  color: var(--dark);
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,60,225,0.04);
  border: 1.5px solid rgba(108,60,225,0.12);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-tag span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}

.hero-title .accent { color: var(--accent); }

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.6;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.hero-stat-num span { color: var(--accent); }
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* Hero Image */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3/2;
  background: var(--grey-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  display: block;
}

/* Hero floating cards */
.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 12px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(108,60,225,0.06), var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatUp 3s ease-in-out infinite alternate;
}

.hero-float-card.card-1 { bottom: -16px; left: -24px; }
.hero-float-card.card-2 { top: -16px; right: -16px; animation-delay: 1.5s; }

.hero-float-card .card-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.hero-float-card .card-title { font-size: 0.8rem; font-weight: 700; color: var(--dark); }
.hero-float-card .card-sub   { font-size: 0.7rem; color: var(--text-muted); }

/* ================================================================
   10b. HERO SECTION
================================================================ */
.hero-section {
  background: linear-gradient(160deg, #fafafa 0%, #f5f3ff 40%, #f0eef8 100%);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  position: relative;
}

/* subtle decorative circles */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  pointer-events: none;
}
.hero-section::before {
  width: 400px; height: 400px;
  background: var(--accent);
  top: -120px; right: -80px;
}
.hero-section::after {
  width: 250px; height: 250px;
  background: var(--accent);
  bottom: -60px; left: -40px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 64px 24px;
  max-width: 640px;
  margin: 0 auto;
}

.hero-section .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108,60,225,0.06);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  border: 1px solid rgba(108,60,225,0.12);
  backdrop-filter: blur(4px);
}

.hero-section .hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  padding: 10px 24px;
  border-radius: var(--r-full);
  border: 1px solid rgba(0,0,0,0.06);
}

.hero-trust span {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  font-weight: 600;
}

/* ── Mobile hero ── */
@media (max-width: 768px) {
  .hero-inner { min-height: auto; }
  .hero-content { padding: 44px 16px 36px; }
  .hero-trust { gap: 14px; padding: 8px 16px; }
  .hero-section::before { width: 250px; height: 250px; top: -80px; right: -60px; }
  .hero-section::after { width: 150px; height: 150px; }
}

/* ================================================================
   11. TRUST BAR
================================================================ */
.trust-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.trust-item-icon {
  width: 42px;
  height: 42px;
  background: var(--grey-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-item-title { font-size: 0.88rem; font-weight: 700; color: var(--dark); }
.trust-item-sub   { font-size: 0.75rem; color: var(--text-muted); }

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ================================================================
   12. CATEGORIES SECTION
================================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: var(--t-base);
  text-align: center;
  cursor: pointer;
}

.category-card:hover {
  border-color: rgba(108,60,225,0.18);
  box-shadow: 0 6px 20px rgba(108,60,225,0.06);
  transform: translateY(-2px);
}

.category-card:hover .cat-icon { background: rgba(108,60,225,0.08); color: var(--accent); }

.cat-icon {
  width: 64px;
  height: 64px;
  background: var(--grey-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t-base);
}
.cat-icon img { width: 36px; height: 36px; display: block; }
.mobile-nav-sub-link img, .mega-icon img, .btn-filter-icon { vertical-align: middle; margin-right: 5px; width: 18px; height: 18px; }

.cat-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.cat-count { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ── Categories Showcase (homepage, horizontal scroll row) ── */
.categories-section {
  background: var(--bg-page);
  padding: 36px 0 28px;
}

.section-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.categories-showcase {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.categories-showcase::-webkit-scrollbar { display: none; }

.cat-showcase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px 12px;
  min-width: 80px;
  background: transparent;
  border: none;
  border-radius: var(--r-lg);
  text-decoration: none;
  text-align: center;
  transition: var(--t-fast);
  cursor: pointer;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.cat-showcase-card:hover {
  background: var(--bg-subtle);
}

.cat-showcase-icon {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--t-fast);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
}

.cat-showcase-card:hover .cat-showcase-icon {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.cat-showcase-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.cat-showcase-icon svg {
  width: 28px;
  height: 28px;
  stroke: #555;
}
.cat-showcase-card:hover .cat-showcase-icon svg {
  stroke: #111;
}

.cat-showcase-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.2;
  white-space: nowrap;
}

.cat-showcase-card:hover .cat-showcase-label {
  color: var(--ink-primary);
}

@media (max-width: 560px) {
  .cat-showcase-card { min-width: 70px; padding: 12px 6px 10px; }
  .cat-showcase-icon { width: 48px; height: 48px; border-radius: 14px; }
  .cat-showcase-icon img { width: 28px; height: 28px; }
  .cat-showcase-label { font-size: 0.68rem; }
}

/* ================================================================
   13. PRODUCT CARD
================================================================ */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t-base);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  border-color: var(--border-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

/* Condition badge on image (bottom-left) */
.product-cond-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-full);
  text-transform: none;
  letter-spacing: 0;
}

/* Savings/discount badge on image (top-right) */
.product-savings-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1/1;
  background: #ffffff;
  overflow: hidden;
  border-bottom: none;
}

.product-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: img-shimmer 1.4s infinite;
  z-index: 1;
  pointer-events: none;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.product-card-img img[src] {
  animation: none;
}

@keyframes img-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--grey);
  font-size: 2.5rem;
}

.product-img-placeholder svg { width: 48px; height: 48px; opacity: 0.35; }
.product-img-placeholder span { font-size: 0.75rem; color: var(--grey); font-family: var(--font); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  transform: translateX(48px);
  transition: var(--t-base);
}

.product-card:hover .product-actions { transform: translateX(0); }

.product-action-btn {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--t-fast);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.product-action-btn:hover { background: #111; color: var(--white); }
.product-action-btn.wished { color: var(--danger); }

.product-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 0.75rem;
}

.stars { color: var(--warning); letter-spacing: 1px; }
.rating-count { color: var(--text-muted); }

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-save {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(108,60,225,0.12);
  padding: 2px 7px;
  border-radius: var(--r-full);
}

.product-card-footer { margin-top: auto; }

.btn-add-cart {
  width: 100%;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  letter-spacing: -0.01em;
  min-height: 42px;
}

/* shine sweep on hover */
.btn-add-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.18) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-add-cart:hover::before { left: 160%; }

.btn-add-cart:hover {
  background: linear-gradient(
    165deg,
    #454C54 0%,
    #353C42 28%,
    #2A3035 55%,
    #1F2428 80%,
    #161A1E 100%
  );
  border-color: #161A1E;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(0,0,0,0.32),
    0 4px 14px rgba(0,0,0,0.24);
  transform: translateY(-1px);
}

/* ================================================================
   14. DEALS SECTION
================================================================ */
.deals-section {
  background: var(--bg-page);
  color: var(--dark);
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.deals-header { margin-bottom: 36px; }
.deals-section .section-title { color: var(--dark); }
.deals-section .section-sub { color: var(--text-secondary); }

/* Countdown timer */
.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.countdown-label { font-size: 0.82rem; color: var(--text-muted); margin-right: 4px; }

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  min-width: 56px;
  box-shadow: var(--shadow-xs);
}

.countdown-num { font-size: 1.4rem; font-weight: 800; color: var(--dark); line-height: 1; }
.countdown-unit { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-top: 2px; }
.countdown-sep { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }

.deals-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.deals-carousel::-webkit-scrollbar { display: none; }

.deal-card {
  background: #ffffff;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t-base);
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 6px rgba(0,0,0,0.03);
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 200px;
  min-width: 200px;
}

.deal-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.05);
  transform: translateY(-3px);
}

.deal-card-img {
  aspect-ratio: 1/1;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.deal-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: img-shimmer 1.4s infinite;
  z-index: 1;
  pointer-events: none;
}

.deal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.deal-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  z-index: 3;
  backdrop-filter: blur(4px);
}

.deal-card-body { padding: 10px 12px 14px; }
.deal-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-price { font-size: 1rem; font-weight: 800; color: var(--ink-primary); }
.deal-price-old { font-size: 0.72rem; color: var(--ink-muted); text-decoration: line-through; margin-left: 5px; }

/* Hide the View Deal button — card itself is clickable */
.deal-card .btn { display: none; }
.deal-card .btn:hover {
  background: var(--dark-3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.32),
    0 5px 14px rgba(0,0,0,0.28);
  transform: translateY(-1px);
}


/* ================================================================
   15. WHY CHOOSE SECTION
================================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: var(--t-base);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  display: none;
}

.why-card:hover {
  border-color: rgba(108,60,225,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-card:hover::before { opacity: 0; }

.why-icon {
  width: 56px;
  height: 56px;
  background: var(--grey-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--t-base);
}

.why-card:hover .why-icon {
  background: rgba(108,60,225,0.08);
}

.why-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.why-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ================================================================
   16. REVIEWS SECTION
================================================================ */
.reviews-section { background: #FFFFFF; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: none;
  border: 1px solid var(--border);
  transition: var(--t-base);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.reviewer { display: flex; align-items: center; gap: 12px; }

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.reviewer-name { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.reviewer-date { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.review-stars { color: var(--warning); font-size: 0.85rem; letter-spacing: 2px; }
.review-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.review-text  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.review-product { font-size: 0.75rem; color: var(--accent); margin-top: 12px; font-weight: 600; }
.verified-badge { font-size: 0.7rem; color: var(--success); font-weight: 600; margin-top: 4px; }

/* ================================================================
   17. NEWSLETTER SECTION
================================================================ */
.newsletter-section {
  background: var(--dark);
  padding: 80px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.newsletter-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--white); margin-bottom: 10px; }
.newsletter-desc  { font-size: 1rem; color: rgba(255,255,255,0.8); }

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: var(--t-fast);
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); }

/* ================================================================
   18. FOOTER
================================================================ */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--t-fast);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: var(--t-fast);
  text-decoration: none;
}

.footer-link:hover { color: var(--accent); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.footer-contact-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-pay-icons { display: flex; align-items: center; gap: 8px; }

.pay-icon {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-xs);
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================================================
   19. SHOP PAGE
================================================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0;
}
/* When sidebar is hidden (browse levels 1-2), use full width */
.shop-layout:has(.filter-sidebar[style*="display: none"]),
.shop-layout:has(.filter-sidebar[style*="display:none"]) {
  grid-template-columns: 1fr;
}

/* Sidebar */
.filter-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}

.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-track { background: transparent; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.filter-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.filter-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-title { font-size: 0.95rem; font-weight: 700; }

.clear-filters {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
}

.filter-group {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child { border-bottom: none; }

.filter-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.filter-option label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.filter-count { color: var(--text-muted); font-size: 0.75rem; }

/* Price Range */
.price-range-wrap { padding: 8px 0; }

.price-range-input {
  width: 100%;
  accent-color: var(--accent);
  margin: 8px 0;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Condition filter badges */
.condition-options { display: flex; flex-direction: column; gap: 8px; }

.condition-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t-fast);
}

.condition-opt:hover, .condition-opt.selected {
  border-color: var(--accent);
  background: rgba(108,60,225,0.06);
}

.condition-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-new        { background: var(--success); }
.dot-like-new   { background: var(--info); }
.dot-excellent  { background: #9333ea; }
.dot-good-value { background: var(--warning); }

.condition-opt-label { font-size: 0.82rem; font-weight: 600; }

/* Shop Main */
.shop-main {}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.shop-result-count { font-size: 0.88rem; color: var(--text-muted); }
.shop-result-count strong { color: var(--text-primary); }

.shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label { font-size: 0.85rem; color: var(--text-muted); }

.sort-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  cursor: pointer;
}

.sort-select:focus { border-color: #111; }

/* View toggle */
.view-toggle { display: flex; gap: 4px; }

.view-btn {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--t-fast);
  background: var(--white);
}

.view-btn.active, .view-btn:hover {
  border-color: #111;
  color: #111;
  background: var(--accent-light);
}

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

.products-grid.view-list {
  grid-template-columns: 1fr;
}

.products-grid.view-list .product-card {
  flex-direction: row;
}

.products-grid.view-list .product-card-img {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
}

/* Active filters */
.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f0f0f0;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
}

.active-filter-tag span { font-size: 0.9rem; line-height: 1; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--t-fast);
  background: var(--white);
}

.page-btn:hover, .page-btn.active {
  background: #111;
  border-color: #111;
  color: var(--white);
}

/* ================================================================
   19b. SHOP PAGE — DRILL-DOWN BROWSE & COMPARISON (v2)
================================================================ */

/* ── Compact Header Bar ─────────────────────────────────────── */
.shop-header-bar {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border, #e8e8e8);
}
.shop-header-bar .breadcrumb { margin-bottom: 6px; }
.shop-header-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-header-row h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
}
.shop-subtitle {
  color: #888;
  font-size: 0.82rem;
  margin: 0;
  font-weight: 400;
}

/* ── Toolbar ─────────────────────────────────────────────────── */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.shop-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-result-count {
  font-size: 0.82rem;
  color: #888;
}
.shop-result-count strong {
  color: #1a1a1a;
  font-weight: 700;
}

/* Filter trigger button (mobile + desktop) */
.filter-sheet-trigger {
  display: none; /* shown via media query on mobile */
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: #1a1a1a;
}
.filter-sheet-trigger:hover { border-color: #111; }
.filter-sheet-trigger svg { opacity: 0.6; }
.filter-count-badge {
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ── Category & Brand Pill Rows ─────────────────────────────── */
.shop-cat-row {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  z-index: 90;
  margin: 0;
  padding: 0;
}
/* JS sets the exact top value based on actual header height */

.shop-cat-pills,
.shop-brand-pills {
  display: flex;
  gap: 6px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.shop-cat-pills::-webkit-scrollbar,
.shop-brand-pills::-webkit-scrollbar { display: none; }

/* Pill Button */
.shop-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: #86868b;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.shop-pill:hover {
  background: #f5f5f7;
  color: #111111;
}
.shop-pill--active {
  background: #6C3CE1;
  color: #fff;
  border-radius: 8px;
}
.shop-pill--active:hover {
  color: #fff;
  background: #333;
}
.shop-pill-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  object-fit: contain;
  border-radius: 3px;
}
.shop-pill--active .shop-pill-icon {
  filter: brightness(10);
}
.shop-pill-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shop-pill-svg svg {
  width: 18px;
  height: 18px;
}
.shop-pill--active .shop-pill-svg svg {
  stroke: white;
}
.shop-pill-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 2px;
}
.shop-pill-count {
  font-size: 0.68rem;
  background: rgba(0,0,0,0.08);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
}
.shop-pill--active .shop-pill-count {
  background: rgba(255,255,255,0.2);
}

/* Brand pill variant — slightly smaller */
.shop-pill--brand {
  padding: 6px 14px;
  font-size: 0.78rem;
}

/* ── Comparison View ────────────────────────────────────────── */
.compare-hero {
  display: flex;
  gap: 32px;
  padding: 28px;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  margin-bottom: 20px;
}
.compare-hero-img {
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
}
.compare-hero-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.compare-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.compare-hero-info .product-brand {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  font-weight: 600;
  margin: 0;
}
.compare-hero-info h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
}
.compare-price-range {
  font-size: 1rem;
  color: #666;
}
.compare-price-range strong {
  font-size: 1.5rem;
  color: #1a1a1a;
}
.compare-seller-count {
  font-size: 0.82rem;
  color: #aaa;
}

/* Compare Sort Bar */
.compare-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: #888;
  flex-wrap: wrap;
}
.compare-sort-btn {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 160ms;
  font-weight: 500;
  color: #555;
}
.compare-sort-btn:hover { border-color: #111; color: #111; }
.compare-sort-btn.active {
  background: #111;
  color: white;
  border-color: #111;
}

/* ── Offer List ─────────────────────────────────────────────── */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Offer Card */
.offer-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 160ms;
  position: relative;
  border-left: 3px solid transparent;
}
.offer-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.offer-card--best {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.offer-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.offer-badge--best {
  background: #10b981;
  color: white;
}

.offer-card-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr auto;
  gap: 24px;
  align-items: center;
}

.offer-seller-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #555;
  flex-shrink: 0;
}
.offer-seller {
  display: flex;
  align-items: center;
  gap: 10px;
}
.offer-seller-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1a1a1a;
}
.offer-seller-badge {
  font-size: 0.68rem;
  color: #888;
  font-weight: 500;
}

.offer-condition { white-space: nowrap; }
.offer-condition .badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.offer-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.offer-detail-item {
  font-size: 0.75rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}
.offer-detail-item::before {
  content: '✓';
  color: #10b981;
  font-weight: 700;
  font-size: 0.7rem;
}

.offer-price-col {
  text-align: right;
  min-width: 140px;
}
.offer-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
}
.offer-savings {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 600;
  margin-top: 2px;
}
.offer-savings s {
  color: #aaa;
  font-weight: 400;
}
.offer-buy-btn {
  margin-top: 10px;
  display: inline-block;
  padding: 10px 24px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

/* ── Mobile Bottom Sheet Filter ─────────────────────────────── */
.filter-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s;
}
.filter-sheet-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Mobile Responsive — Browse & Comparison ──────────────── */
@media (max-width: 1024px) {
  .filter-sheet-trigger { display: flex; }
  .filter-sidebar {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto !important;
    max-height: 75vh !important;
    z-index: 1000;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: block !important;
  }
  .filter-sidebar.sheet-open {
    transform: translateY(0);
  }
  .filter-panel::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 12px;
  }
}

@media (max-width: 768px) {
  .shop-header-row h1 { font-size: 1.2rem; }
  .shop-subtitle { font-size: 0.75rem; }

  .shop-pill { padding: 7px 12px; font-size: 0.78rem; }
  .shop-pill-icon { width: 16px; height: 16px; }
  .shop-pill--brand { padding: 5px 10px; font-size: 0.72rem; }

  .compare-hero {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  .compare-hero-img {
    width: 100%;
    height: 200px;
  }
  .compare-hero-info h2 { font-size: 1.25rem; }

  .offer-card { padding: 16px; }
  .offer-card-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .offer-seller { margin-bottom: 4px; }
  .offer-price-col {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
  }
  .offer-buy-btn { margin-top: 0; flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  .shop-pill { padding: 6px 10px; font-size: 0.75rem; gap: 4px; }
  .shop-pill-icon { width: 14px; height: 14px; }
}

/* ================================================================
   20. PRODUCT DETAIL PAGE
================================================================ */
.product-detail {
  padding: 32px 0 64px;
  background: #fff;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.breadcrumb a { color: var(--text-muted); transition: var(--t-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border-dark); }
.breadcrumb-current { color: var(--text-primary); font-weight: 600; }

/* Product Layout — Uber-premium */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Prevent CSS grid min-width:auto blowout */
.product-gallery,
.product-info {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Gallery — horizontal thumbnails below main image */
.product-gallery {
  position: sticky;
  top: 90px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1/1;
  background: #f5f5f7;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
  border: none;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-main:hover img {
  transform: scale(1.05);
}

.gallery-main[data-category="phones"] {
  aspect-ratio: auto;
}
.gallery-main[data-category="phones"] img,
.gallery-main[data-category="laptops"] img {
  padding: 8px;
  transform: scale(1.0);
}
.gallery-main[data-category="phones"]:hover img,
.gallery-main[data-category="laptops"]:hover img {
  transform: scale(1.03);
}

.gallery-main[data-category="phones"] ~ .gallery-thumbs .gallery-thumb img,
.gallery-main[data-category="laptops"] ~ .gallery-thumbs .gallery-thumb img {
  transform: scale(1.0);
}

.gallery-main-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 5rem;
  color: var(--grey);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #ececec;
  cursor: pointer;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--grey);
  transition: all 0.2s ease;
}

.gallery-thumb:hover { border-color: #aaa; }
.gallery-thumb.active { border-color: #000; box-shadow: 0 0 0 1px #000; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* Product Info — BackMarket-inspired */
.product-info {
  padding-top: 4px;
}

.product-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.product-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  color: #000;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.product-sku { color: #86868b; font-size: 0.78rem; }
.product-availability { display: flex; align-items: center; gap: 6px; color: #000; font-weight: 600; font-size: 0.85rem; }
.availability-dot { width: 8px; height: 8px; background: #6C3CE1; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.product-price-section {
  padding: 24px 0;
  margin-bottom: 24px;
  border: none;
  background: none;
}

.product-price-current {
  font-size: 2.4rem;
  font-weight: 900;
  color: #000;
  letter-spacing: -0.04em;
  line-height: 1;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.product-price-was { font-size: 1rem; color: #86868b; text-decoration: line-through; }
.product-price-save {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: #6C3CE1;
  padding: 4px 12px;
  border-radius: 20px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.product-price-vat  { font-size: 0.78rem; color: #86868b; margin-top: 4px; }

/* Condition Box — Uber-premium */
.condition-box {
  background: #f5f5f7;
  border: none;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.condition-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1.4; }
.condition-box-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; color: #111111; }
.condition-box-desc { font-size: 0.82rem; color: #6e6e73; line-height: 1.5; }

/* Key Features */
.key-features { margin-bottom: 20px; }
.key-features-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #86868b; margin-bottom: 10px; }

.feature-list { display: flex; flex-direction: column; gap: 5px; }

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.feature-item::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--accent-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23007AFF'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Quantity */
.quantity-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.quantity-label { font-size: 0.88rem; font-weight: 600; }

.quantity-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.qty-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-light);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--t-fast);
  border: none;
}

.qty-btn:hover { background: var(--accent); color: var(--white); }

.qty-input {
  width: 52px;
  height: 38px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
}

/* CTA Buttons — BackMarket-style */
.product-cta { display: flex; gap: 10px; margin-bottom: 20px; }

.btn-buy-now {
  flex: 1;
  padding: 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.btn-buy-now:hover { background: #1a1a1a; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.btn-add-to-cart {
  flex: 1;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-to-cart:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108,60,225,0.25);
}

.product-secondary-actions {
  display: flex;
  gap: 12px;
}

.product-secondary-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  cursor: pointer;
  transition: var(--t-fast);
}

.product-secondary-actions button:hover { border-color: var(--accent); color: var(--accent); }

/* Delivery Info — BackMarket-style trust strip */
.delivery-info {
  margin-top: 20px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #f0f0f0;
}

.delivery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: #4a4f55;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.delivery-item strong { color: #111111; font-weight: 600; }
.delivery-item svg { color: #111111; flex-shrink: 0; width: 18px; height: 18px; }

/* Sticky Add to Cart */
.sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 14px 24px;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
  z-index: 900;
  transform: translateY(100%);
  transition: var(--t-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-info { display: flex; flex-direction: column; }
.sticky-atc-name { font-size: 0.9rem; font-weight: 600; }
.sticky-atc-price { font-size: 1.1rem; font-weight: 800; color: #111111; }
.sticky-atc-actions { display: flex; gap: 12px; }

/* Product Tabs — BackMarket-style */
.product-tabs {
  margin-top: 48px;
  position: relative;
  background: #f5f5f7;
  border-radius: 20px;
  padding: 32px;
}

.tab-nav {
  display: flex;
  border-bottom: none;
  gap: 4px;
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  background: #ebebed;
  border-radius: 10px;
  padding: 3px;
}

.tab-nav::-webkit-scrollbar { display: none; }

/* Scroll fade hint on right edge */
.product-tabs::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 46px;
  background: linear-gradient(to right, transparent, #fff 80%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-tabs.tabs-scrollable::after { opacity: 1; }

.tab-btn {
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.tab-btn:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.tab-btn.active { color: #000; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; }

.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }

.specs-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  vertical-align: top;
}

.specs-table td:first-child {
  width: 40%;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--grey-light);
}

.specs-table td:last-child { color: var(--text-primary); }

.specs-table tr:nth-child(even) td:first-child { background: #f5f5f7; }

/* ================================================================
   20b. VARIANT CONFIGURATOR (Back Market–style tabs)
================================================================ */
#variant-configurator {
  margin-top: 16px;
  margin-bottom: 20px;
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  overflow: clip;
  background: #fff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* ── Tab Bar ── */
/* ── Stepped Configurator (Apple-style) ── */
.config-stepped {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.config-step {
  border-bottom: 1px solid #d2d2d7;
  background: #fff;
  transition: all 0.3s ease;
}

.config-step:last-child {
  border-bottom: none;
}

.config-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.config-step-header:hover {
  background-color: #f5f5f7;
}

.config-step-header.collapsed {
  padding: 12px 20px;
}
.config-step-header.collapsed:hover {
  background-color: #e8e8ed;
}
.config-step-header.collapsed .config-step-value::after {
  content: 'Edit';
  font-size: 0.72rem;
  color: #0066cc;
  margin-left: 8px;
  font-weight: 500;
}

.config-step-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6C3CE1;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.config-step-header.collapsed .config-step-number {
  background: #e8e8ed;
  color: #86868b;
}

.config-step-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111111;
}

.config-step-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6e6e73;
}

/* ── Step Body (content) ── */
.config-step-body {
  padding: 0 20px 20px 20px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 16px;
}

/* ── Info Banner ── */
.config-info-banner {
  background: #f5f5f7;
  border: none;
  color: #6e6e73;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ── Option Cards ── */
.config-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}

.config-option-card:hover {
  border-color: #86868b;
}

.config-option-card.selected {
  border-color: #111111;
  background: #f5f5f7;
  box-shadow: 0 0 0 1px #111111;
}

.config-option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #d2d2d7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.config-option-card.selected .config-option-radio {
  border-color: #111111;
}

.config-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}

.config-option-card.selected .config-radio-dot {
  background: #6C3CE1;
}

.config-option-body {
  flex: 1;
  min-width: 0;
}

.config-option-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: #111111;
}

.config-option-desc {
  font-size: 0.75rem;
  color: #86868b;
  margin-top: 2px;
  line-height: 1.4;
}

.config-option-price {
  font-size: 0.82rem;
  font-weight: 500;
  color: #6e6e73;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Gallery Condition Badge Overlay — BackMarket-style ── */
.gallery-condition-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: #fff;
  color: #111111;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #ececec;
}

/* ── Inline Variant Configurator (inside product-info column) ── */
#variant-configurator.config-inline {
  margin-top: 0;
  margin-bottom: 24px;
}

/* ── Mobile: hide secondary actions (CTA stays visible for direct product pages) ── */
@media (max-width: 768px) {
  .product-secondary-actions { display: none !important; }
}

/* ── Mobile: stepped configurator ── */
@media (max-width: 768px) {
  #variant-configurator {
    margin-top: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    width: 100%;
    box-sizing: border-box;
  }

  .config-stepped {
    gap: 0;
  }

  .config-step {
    border-bottom: 1px solid #d2d2d7;
  }

  .config-step-header {
    padding: 12px 16px;
  }

  .config-step-body {
    padding: 0 16px 16px 16px;
  }

  .config-step-number {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

  .config-step-label {
    font-size: 0.88rem;
  }

  .config-panel-title {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .config-options {
    width: 100%;
    box-sizing: border-box;
  }

  .config-option-card {
    padding: 12px 12px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
  }

  .config-color-dots {
    gap: 14px;
  }

  .config-color-dot {
    width: 30px;
    height: 30px;
  }

  .config-step-actions {
    margin-top: 16px;
  }

  .config-next-btn,
  .config-recap-atc {
    padding: 12px 14px;
    font-size: 0.82rem;
  }
}

/* ── Unavailable Option State ── */
.config-option-card.config-unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: #fafafa;
  border-color: #e8e8ed;
}
.config-option-card.config-unavailable .config-option-radio {
  border-color: var(--gray-300, #d1d5db);
}
.config-option-card.config-unavailable .config-option-desc {
  color: var(--gray-400, #9ca3af);
  font-style: italic;
}
.config-color-card.config-unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.config-color-card.config-unavailable .config-color-name {
  color: var(--gray-400, #9ca3af);
  font-style: italic;
}

/* ── Color Dots (Apple-style) ── */
.config-color-dots-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.config-color-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.config-color-dot {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  padding: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.config-color-dot:hover {
  transform: scale(1.08);
  outline-color: rgba(0, 0, 0, 0.25);
}

.config-color-dot.selected {
  outline: 2.5px solid #111111;
  outline-offset: 3px;
  transform: scale(1);
}

.config-color-dot.selected::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  pointer-events: none;
}

.config-color-dot:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.config-color-dot:disabled:hover {
  transform: none;
  outline-color: transparent;
}

.config-color-name-display {
  font-size: 0.88rem;
  font-weight: 400;
  color: #111111;
  text-align: center;
  height: 22px;
  min-width: 100px;
  letter-spacing: -0.01em;
}

/* ── Step Actions ── */
.config-step-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ── Next Button ── */
.config-next-btn,
.config-recap-atc {
  display: block;
  flex: 1;
  padding: 15px 16px;
  border: none;
  border-radius: 980px;
  background: linear-gradient(180deg, #2d2d2f 0%, #111111 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.config-next-btn::before,
.config-recap-atc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  border-radius: 980px 980px 0 0;
  pointer-events: none;
}

.config-next-btn:hover,
.config-recap-atc:hover {
  background: linear-gradient(180deg, #3a3a3c 0%, #2d2d2f 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.config-next-btn:active,
.config-recap-atc:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* ── Recap Panel ── */
.config-recap {
  text-align: center;
  padding: 20px 0;
}

.config-recap-image {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.config-recap-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.config-recap-icon {
  font-size: 4rem;
}

.config-recap-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.config-recap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.config-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--grey-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}

.config-chip-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.config-recap-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

.config-recap-atc {
  display: inline-block;
  padding: 14px 48px;
  border: none;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 14px;
}

.config-recap-atc:hover { opacity: 0.85; }

.config-recap-seller {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Seller Offers Panel ── */
#seller-offers-panel {
  margin-top: 20px;
  border-top: 1.5px solid var(--border);
  padding-top: 16px;
}

.seller-offers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.seller-offers-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

/* ── Seller Offer Card ── */
.seller-offer-card {
  padding: 16px;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  margin-bottom: 8px;
  background: #fff;
  transition: all 0.15s;
  cursor: pointer;
}

.seller-offer-card:hover {
  border-color: #86868b;
}

.seller-offer-card.best-match {
  border-color: #111111;
  box-shadow: 0 0 0 1px #111111;
  background: #fff;
}

/* Top row: seller name + badge on left, price on right */
.seller-offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.seller-offer-info {
  min-width: 0;
  flex: 1;
}

.seller-offer-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.2;
}

.seller-offer-rating {
  font-size: 0.72rem;
  color: #86868b;
  margin-top: 0;
  margin-left: 4px;
  font-weight: 400;
}

.seller-offer-condition {
  font-size: 0.72rem;
  color: #86868b;
  margin-top: 3px;
  line-height: 1.35;
}

.seller-offer-price-col {
  text-align: right;
  flex-shrink: 0;
}

.seller-offer-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
  line-height: 1;
}

/* Bottom row: match badge + ATC button */
.seller-offer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
}

.match-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.match-badge--exact {
  background: #f5f5f7;
  color: #111111;
}

.match-badge--partial {
  background: #f5f5f7;
  color: #6e6e73;
}

.match-badge--closest {
  background: #f5f5f7;
  color: #6e6e73;
}

.seller-offer-atc {
  padding: 8px 20px;
  background: #6C3CE1;
  color: #fff;
  border: none;
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.seller-offer-atc:hover {
  background: #333;
}

.seller-offer-expand {
  display: none;
  padding: 10px 0 0;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.seller-offer-card.expanded .seller-offer-expand {
  display: block;
}

/* Hide old actions container — layout is now in top/bottom divs */
.seller-offer-actions { display: contents; }

.badge-sellers {
  background: var(--accent);
  color: var(--white);
}

/* ── Sticky Price Bar ── */
.config-sticky-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid #d2d2d7;
  background: #fff;
}

.config-sticky-price {
  display: flex;
  flex-direction: column;
}

.config-sticky-label {
  font-size: 0.72rem;
  color: #86868b;
  font-weight: 400;
}

.config-sticky-amount {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111111;
}

.config-sticky-atc {
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.config-sticky-atc:hover { opacity: 0.85; }

/* ── Mobile responsive ── */
@media (max-width: 640px) {
  .config-tab { padding: 10px 14px; font-size: 0.8rem; }
  .config-tab-num { width: 20px; height: 20px; font-size: 0.65rem; }
  .config-panel { padding: 20px 16px; }
  .config-color-grid { grid-template-columns: 1fr; }
  .config-option-card { padding: 12px 14px; }
  .config-sticky-bar { padding: 10px 16px; }
  .config-sticky-atc { padding: 8px 16px; font-size: 0.82rem; }
}

/* ================================================================
   21. ABOUT PAGE
================================================================ */
.about-hero {
  background: linear-gradient(135deg, #eef7ff 0%, #f5fbff 100%);
  color: var(--dark);
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.about-hero h1 { color: var(--dark); margin-bottom: 16px; }
.about-hero p  { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-block {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--grey-light) 0%, var(--grey-mid) 100%);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.value-card {
  padding: 32px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  transition: var(--t-base);
}

.value-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.value-icon { font-size: 2.4rem; margin-bottom: 16px; }
.value-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.value-desc  { font-size: 0.85rem; color: var(--text-secondary); }

.stats-bar {
  background: var(--accent);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
}

.stat-num span { color: rgba(255,255,255,0.75); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ================================================================
   22. CONTACT PAGE
================================================================ */
.contact-hero {
  background: var(--grey-light);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  padding: 64px 0;
}

.contact-info-card {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 40px;
  height: fit-content;
}

.contact-info-card h3 { color: var(--white); margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,0.8); margin-bottom: 36px; font-size: 0.9rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: rgba(108,60,225,0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.contact-detail-value { font-size: 0.92rem; color: var(--white); font-weight: 500; }

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #25d366;
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 28px;
  transition: var(--t-fast);
}

.whatsapp-btn:hover { background: #1ea952; transform: translateY(-1px); }

.contact-form-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
}

.contact-form-wrap h3 { margin-bottom: 8px; }
.contact-form-wrap > p { color: var(--text-secondary); margin-bottom: 28px; font-size: 0.9rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* ================================================================
   23. POLICY PAGES
================================================================ */
.policy-hero {
  background: var(--grey-light);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 0;
}

.policy-nav {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  height: fit-content;
}

.policy-nav-list { display: flex; flex-direction: column; gap: 4px; }

.policy-nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: var(--t-fast);
  text-decoration: none;
}

.policy-nav-link:hover, .policy-nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.policy-content { max-width: 820px; }

.policy-section { margin-bottom: 56px; }

.policy-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-top: 16px;
}

.policy-section h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.policy-section p {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.policy-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.policy-section li {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ================================================================
   24. CART DRAWER
================================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: var(--t-base);
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
}

.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title { font-size: 1.05rem; font-weight: 700; }
.cart-close { font-size: 1.4rem; cursor: pointer; color: var(--text-muted); transition: var(--t-fast); }
.cart-close:hover { color: var(--text-primary); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 24px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  max-height: 200px;
  overflow: hidden;
}

.cart-item.removing {
  opacity: 0;
  transform: translateX(40px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  background: var(--grey-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cart-item-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-variant { font-size: 0.75rem; color: var(--text-muted); }
.cart-item-price { font-size: 0.95rem; font-weight: 700; color: var(--accent); margin-top: 6px; }

.cart-item-remove {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--t-fast);
}

.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--grey-light);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 800;
}

/* ================================================================
   25. SEARCH MODAL
================================================================ */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: var(--t-base);
}

.search-modal.open { opacity: 1; pointer-events: all; }

.search-modal-inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(-20px);
  transition: var(--t-base);
}

.search-modal.open .search-modal-inner { transform: translateY(0); }

.search-modal-input-wrap {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  border-bottom: 1px solid var(--border);
}

.search-modal-input {
  flex: 1;
  padding: 14px 10px;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.search-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--t-fast);
}

.search-modal-close:hover { color: var(--text-primary); }

.search-suggestions { padding: 12px 0; max-height: 400px; overflow-y: auto; }

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--t-fast);
  font-size: 0.875rem;
}

.search-suggestion-item:hover { background: var(--grey-light); }
.search-suggestion-icon { color: var(--text-muted); }
.search-suggestion-text strong { color: var(--accent); }

/* ================================================================
   26. NEWSLETTER POPUP
================================================================ */
.newsletter-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--border);
  z-index: 1050;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
  overflow: hidden;
}

.newsletter-popup.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

.popup-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 28px 28px 20px;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--t-fast);
  font-size: 1rem;
}

.popup-close:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.popup-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.popup-title { font-size: 1.3rem; font-weight: 800; color: var(--white); line-height: 1.25; }
.popup-title span { color: var(--accent); }

.popup-body { padding: 20px 28px 28px; }
.popup-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; }

.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-form input { padding: 11px 16px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 0.88rem; outline: none; transition: var(--t-fast); }
.popup-form input:focus { border-color: var(--accent); }
.popup-disclaimer { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ================================================================
   27. ANIMATIONS
================================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.85); }
}

@keyframes floatUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.animate-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--grey-light) 25%, var(--grey-mid) 50%, var(--grey-light) 75%);
  background-size: 2000px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--r-sm);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

/* ================================================================
   28. PAGE HEADER (inner pages)
================================================================ */
.page-hero {
  background: var(--grey-light);
  color: var(--dark);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::after {
  display: none;
}

.page-hero h1 { color: var(--dark); margin-bottom: 8px; }
.page-hero p  { color: var(--text-secondary); font-size: 1rem; }

/* ================================================================
   29. SMART DEVICES SECTION
================================================================ */
.smart-devices-section {
  background: var(--grey-light);
}

.smart-devices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.smart-showcase-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 36px;
  text-align: center;
  transition: var(--t-base);
}

.smart-showcase-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.smart-showcase-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: var(--grey-light);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.smart-showcase-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.smart-showcase-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.smart-showcase-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   30. RESPONSIVE
================================================================ */
@media (max-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-grid     { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  .hero-grid       { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .hero-visual     { max-width: 480px; margin: 0 auto; }
  .product-layout  { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .gallery-main    { }      /* no cap on tablet — use aspect-ratio */
  .about-mission   { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout  { grid-template-columns: 1fr; gap: 40px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 28px; }
  .shop-layout     { grid-template-columns: 1fr; }
  .filter-sidebar  { position: static; max-height: none; display: none; }
  .filter-sidebar.open { display: block; }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .policy-layout   { grid-template-columns: 1fr; }
  .policy-nav      { position: static; display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  /* ── Mobile Header ── */
  .site-header .container { overflow: hidden; }
  .header-top {
    height: 56px;
    gap: 8px;
    padding: 0;
    overflow: hidden;
  }
  /* Show compact search bar (was display:none) */
  .header-search {
    display: flex;
    height: 38px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  /* Hide text "Search" button — icon only on mobile */
  .header-search-btn { display: none; }
  /* Hide Account, Wishlist & redundant search icon on mobile (search bar is visible) */
  [data-open-auth],
  [data-open-wishlist],
  .header-icon-btn[data-open-search] { display: none !important; }
  /* Hide the category nav row on mobile */
  .header-nav { display: none; }
  /* Show hamburger */
  .mobile-menu-toggle { display: flex; }
  /* Smaller logo on mobile */
  .site-logo-img { height: 34px; }
  .main-nav { display: none; }

  /* ── Layout ── */
  .section    { padding: 40px 0; }
  .section-sm { padding: 32px 0; }
  .section-lg { padding: 48px 0; }
  .section--marketplace { padding: 32px 0; }
  .container  { padding: 0 14px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .products-grid   { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .smart-devices-grid { grid-template-columns: 1fr; }
  .reviews-grid    { grid-template-columns: 1fr; }
  .why-grid        { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-grid       { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-showcase { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  /* ── Hero section (new two-col) ── */
  .hero-inner         { grid-template-columns: 1fr; min-height: auto; }
  .hero-content       { padding: 36px 0 24px; order: 1; }
  .hero-img-wrap      { min-height: 200px; order: 2; }
  .hero-section .hero-title { font-size: 1.9rem; }
  .hero-sub           { font-size: 0.9rem; }
  .hero-trust         { gap: 12px; }

  /* ── Old hero ── */
  .hero            { min-height: auto; }
  .hero-grid       { padding: 32px 0 40px; }
  .hero-stats      { gap: 20px; flex-wrap: wrap; }
  .hero-actions    { gap: 10px; flex-wrap: wrap; }

  /* ── Misc ── */
  .trust-items     { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-item      { justify-content: flex-start; background: var(--white); border-radius: 10px; padding: 12px; }
  .trust-divider   { display: none; }
  .product-cta     { flex-direction: column; }
  .newsletter-popup { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
  .deals-section   { padding: 40px 0; }
  .deals-header    { flex-direction: column !important; align-items: flex-start; gap: 16px; }
  .section-header.flex-between { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-heading { font-size: 1.1rem; margin-bottom: 16px; }
  .header-inner    { height: 56px; gap: 8px; overflow: hidden; }
}

@media (max-width: 480px) {
  :root { --container: 100%; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .container { padding: 0 14px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .categories-showcase { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .cat-showcase-card { padding: 14px 8px; }
  .cat-showcase-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .cat-showcase-label { font-size: 0.7rem; }
  .categories-grid--tech { grid-template-columns: 1fr; max-width: 100%; }
  .deals-carousel  { gap: 10px; }
  .deal-card { width: 160px; min-width: 160px; }
  .products-grid   { grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer-grid     { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: 1fr 1fr; }
  .cart-drawer     { width: 100vw; }
  .product-gallery  { margin-bottom: 24px; position: static; }
  .gallery-main     { border-radius: 12px; }
  .gallery-main img { padding: 20px; }
  .gallery-main[data-category="phones"] img,
  .gallery-main[data-category="laptops"] img { padding: 16px; }
  .gallery-thumb { width: 56px; height: 56px; min-width: 56px; border-radius: 8px; }
  .hero-float-card { display: none; }
  .sticky-atc      { padding: 12px 14px; }
  .sticky-atc-info { display: none; }
  /* Smaller hero for small phones */
  .hero-section .hero-title { font-size: 1.65rem; }
  .hero-img-wrap    { min-height: 180px; }
  /* Tighter deal cards on small screens */
  .deal-card-body   { padding: 12px; }
  .deal-title       { font-size: 0.82rem; }
  .product-card-body { padding: 12px; }
  .product-title    { font-size: 0.85rem; }
  .price-current    { font-size: 1.05rem; }
  .btn-add-cart     { padding: 10px; font-size: 0.8rem; }

  /* ── Mobile Hero Overhaul ── */
  .hero-grid        { padding: 16px 0 28px; gap: 20px; }
  .hero-visual      { order: -1; max-width: 100%; overflow: hidden; }
  .hero-image-wrap  { aspect-ratio: 16/9; border-radius: 14px; }
  .hero-tag         { font-size: 0.68rem; padding: 5px 11px; margin-bottom: 14px; }
  .hero-title       { font-size: 2rem; line-height: 1.1; margin-bottom: 10px; }
  .hero-tagline     { font-size: 0.92rem; margin-bottom: 18px; line-height: 1.5; }
  .hero-actions     { flex-direction: row; align-items: stretch; gap: 8px; margin-bottom: 22px; }
  .hero-actions .btn { flex: 1; text-align: center; justify-content: center; font-size: 0.85rem; padding: 12px 10px; }
  .hero-stats       { flex-direction: row; justify-content: space-between; gap: 0; padding-top: 20px; }
  .hero-stats > div { flex: 1; text-align: center; }
  .hero-stats > div:not(:last-child) { border-right: 1px solid var(--border); }
  .hero-stat-num    { font-size: 1.35rem; }
  .hero-stat-label  { font-size: 0.7rem; }

  /* ── Trust bar — centered column cards on small screens ── */
  .trust-item       { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 8px; }
  .trust-item-icon  { width: 36px; height: 36px; font-size: 1rem; margin: 0; }
  .trust-item-title { font-size: 0.78rem; }
  .trust-item-sub   { font-size: 0.68rem; }

  /* ── Flash Deals section ── */
  .deals-section    { padding: 36px 0; }
  .countdown        { margin-top: 0; gap: 6px; }
  .countdown-item   { min-width: 46px; padding: 6px 8px; }
  .countdown-num    { font-size: 1.1rem; }
  .countdown-label  { font-size: 0.72rem; }

  /* ── Section headers ── */
  .section          { padding: 36px 0; }
  .section-header   { margin-bottom: 24px; }
  .section-header.flex-between .btn { font-size: 0.82rem; padding: 9px 16px; }

  /* ── Warranty & Returns strip — single column on small screens ── */
  .warranty-strip-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* ── Newsletter — stack form vertically ── */
  .newsletter-section { padding: 40px 0; }
  .newsletter-form    { flex-direction: column; gap: 10px; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}

/* ================================================================
   30. MOBILE MENU
================================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close { font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

.mobile-nav { flex: 1; padding: 16px; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: var(--t-fast);
}

.mobile-nav-link:hover { background: var(--grey-light); color: var(--accent); }

.mobile-nav-sub { padding: 8px 20px; display: none; }
.mobile-nav-sub.open { display: block; }

.mobile-nav-sub-link {
  display: block;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: var(--t-fast);
}

.mobile-nav-sub-link:hover { color: var(--accent); background: var(--accent-light); }

.mobile-menu-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mob-cat-icon { width: 20px; height: 20px; object-fit: contain; }

/* ── Help Center Tabs ── */
.help-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.help-tabs::-webkit-scrollbar { display: none; }

.help-tab {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.help-tab:hover { color: var(--text-primary); }

.help-tab.active {
  color: var(--ink-primary, #111);
  border-bottom-color: var(--ink-primary, #111);
}

.help-tab-content {
  display: none;
  animation: helpFadeIn 0.25s ease;
}

.help-tab-content.active { display: block; }

@keyframes helpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Shops Directory ── */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.shop-card {
  background: var(--white, #fff);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: var(--ink-primary, #111);
}

.shop-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.shop-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-subtle, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-primary, #111);
  flex-shrink: 0;
}

.shop-card-name {
  font-size: 1rem;
  font-weight: 700;
}

.shop-card-rating {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-card-rating .star { color: #f59e0b; }

.shop-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.shop-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.shop-tag {
  padding: 4px 10px;
  background: var(--bg-subtle, #f3f4f6);
  border-radius: var(--r-full, 999px);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
}

.shop-tag--more {
  background: transparent;
  color: var(--ink-muted, #9ca3af);
  font-weight: 600;
}

/* Trust tier badges */
.shop-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted, #9ca3af);
}

.shop-tier-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.shop-tier-badge--featured {
  color: #111;
  font-weight: 600;
}
.shop-tier-badge--featured::before {
  background: #111;
}

.shop-tier-badge--top-rated {
  color: #b45309;
}
.shop-tier-badge--top-rated::before {
  background: #f59e0b;
}

.shop-tier-badge--verified {
  color: #6b7280;
}
.shop-tier-badge--verified::before {
  background: #10b981;
}

/* Follow button */
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full, 999px);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-primary, #111);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.follow-btn:hover {
  border-color: var(--ink-primary, #111);
  background: var(--bg-subtle, #f9fafb);
}

.follow-btn.following {
  background: var(--ink-primary, #111);
  border-color: var(--ink-primary, #111);
  color: #fff;
}

.follow-btn.following:hover {
  background: #333;
}

.follow-btn-sm {
  padding: 5px 14px;
  font-size: 0.75rem;
}

/* Shop search */
.shops-search {
  position: relative;
  margin-bottom: 20px;
}

.shops-search input {
  width: 100%;
  padding: 12px 18px 12px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full, 999px);
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.15s;
}

.shops-search input:focus {
  outline: none;
  border-color: var(--ink-primary, #111);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.shops-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ── Shops Filter Chips ── */
.shops-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.shops-filter-chip {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full, 999px);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #6b7280);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.shops-filter-chip:hover {
  border-color: var(--ink-primary, #111);
  color: var(--ink-primary, #111);
}

.shops-filter-chip.active {
  background: var(--ink-primary, #111);
  border-color: var(--ink-primary, #111);
  color: #fff;
}

/* ================================================================
   31. COMPARE MODAL
================================================================ */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  padding: 12px 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.compare-bar.visible { transform: translateY(0); }

.compare-bar-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.compare-items {
  display: flex;
  gap: 10px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.compare-items::-webkit-scrollbar { display: none; }

.compare-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.compare-item-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.compare-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.compare-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.compare-item-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.compare-item-brand {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
}

.compare-item-remove {
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.compare-item-remove:hover { color: #ef4444; }

.compare-bar .btn-primary {
  background: #fff;
  color: #111;
  border: none;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  flex-shrink: 0;
}
.compare-bar .btn-primary:hover { background: #f0f0f0; }

.compare-bar .btn-outline {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}
.compare-bar .btn-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

@media (max-width: 768px) {
  .compare-bar {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px;
  }
  .compare-bar-title { width: 100%; margin-bottom: -4px; }
  .compare-items { width: 100%; }
  .compare-item-name { max-width: 80px; }
}

/* ================================================================
   32. SCROLL TO TOP
================================================================ */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: var(--t-base);
  font-size: 1.1rem;
}

.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover   { background: var(--accent); transform: translateY(-2px); }

/* ================================================================
   33. WISHLIST & COMPARE ICONS FEEDBACK
================================================================ */
.product-action-btn.compare-added { background: var(--dark); color: var(--white); }
.product-action-btn.wished { color: var(--danger); }

/* ================================================================
   34. TOAST NOTIFICATIONS
================================================================ */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.toast {
  background: #6C3CE1;
  border: none;
  border-radius: 980px;
  padding: 12px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  max-width: 400px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: none;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.success,
.toast.error,
.toast.warning,
.toast.info { border-left: none; }

.toast-icon { flex-shrink: 0; display: flex; align-items: center; color: #fff; }
.toast-icon svg { stroke: #fff; }
.toast-text { font-size: 0.85rem; font-weight: 500; color: #ffffff; }

/* ================================================================
   35. MISC COMPONENTS
================================================================ */
/* Warranty Banner */
.warranty-strip {
  background: #f5f5f7;
  border: 1px solid #e8e8ed;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.warranty-strip-icon {
  width: 20px;
  height: 20px;
  color: #111111;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warranty-strip-icon svg {
  stroke: #111111;
}
.warranty-strip-text { font-size: 0.84rem; color: #424245; line-height: 1.5; }
.warranty-strip-text strong { color: #111111; }

/* Product condition explanation (legacy — kept for backwards compat) */
.condition-guide {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.condition-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.condition-guide-item:last-child { border-bottom: none; }

/* ── NEW Condition Guide — minimalist card-with-accent-bar design ── */
.cond-guide-wrap { max-width: 640px; }

.cond-guide-intro {
  font-size: 0.88rem;
  color: var(--ink-secondary, var(--text-secondary));
  line-height: 1.7;
  margin-bottom: 20px;
}

.cond-guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cond-guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  transition: box-shadow 0.15s;
}

.cond-guide-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); }

.cond-guide-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.cond-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cond-guide-head {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-primary, var(--dark));
}

.cond-guide-desc {
  font-size: 0.82rem;
  color: var(--ink-secondary, var(--text-secondary));
  line-height: 1.6;
  margin: 0;
}

.cond-guide-footer {
  font-size: 0.77rem;
  color: var(--ink-muted, var(--text-muted));
  padding-top: 2px;
  line-height: 1.5;
}

/* Condition colour variants */
.cond-new             { border-left-color: #1d2024; }
.cond-new .cond-pill  { background: #1d2024; color: #fff; }

.cond-likenew              { border-left-color: #2563eb; }
.cond-likenew .cond-pill   { background: #eff6ff; color: #2563eb; }

.cond-excellent              { border-left-color: #16a34a; }
.cond-excellent .cond-pill   { background: #f0fdf4; color: #16a34a; }

.cond-good              { border-left-color: #d97706; }
.cond-good .cond-pill   { background: #fffbeb; color: #d97706; }

/* Empty cart */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 12px;
}

.cart-empty-icon { font-size: 3.5rem; margin-bottom: 8px; }
.cart-empty h4 { font-size: 1rem; }
.cart-empty p { font-size: 0.85rem; color: var(--text-muted); }

/* Promo chip on nav */
.nav-promo {
  background: var(--danger);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 4px;
}

/* ================================================================
   36. WISHLIST DRAWER
================================================================ */
.wishlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.wishlist-item:last-child { border-bottom: none; }
.wishlist-item-icon { font-size: 1.8rem; flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 10px; }
.wishlist-item-info { flex: 1; min-width: 0; }
.wishlist-item-name { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dark); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wishlist-item-name:hover { color: var(--accent); }
.wishlist-item-price { font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-top: 3px; }
.wishlist-item-remove { background: none; border: none; cursor: pointer; color: #aaa; font-size: 0.9rem; padding: 4px 6px; flex-shrink: 0; transition: color 0.2s; }
.wishlist-item-remove:hover { color: var(--danger); }
.wishlist-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.wishlist-empty p { margin: 8px 0 0; font-size: 0.9rem; }
.wishlist-count { display: none; }
.wishlist-count[style*="display:flex"], .wishlist-count[style*="display: flex"] { display: flex !important; }


/* ================================================================
   37. AUTH MODAL
================================================================ */
.auth-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 1199; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.auth-modal-overlay.open { opacity: 1; pointer-events: all; }

.auth-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(440px, calc(100vw - 32px));
  background: #fff; border-radius: 20px;
  padding: 32px 32px 28px;
  z-index: 1200; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.10);
}
.auth-modal.open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.auth-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: #f5f5f5; border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #666; transition: background 0.15s;
}
.auth-modal-close:hover { background: #e8e8e8; color: #111; }

.auth-modal-logo {
  display: flex; align-items: center;
  margin-bottom: 22px;
}
.auth-logo-img {
  height: 32px; width: auto;
}

.auth-tabs {
  display: flex; gap: 4px; background: #f5f5f5;
  border-radius: 10px; padding: 4px; margin-bottom: 20px;
}
.auth-tab {
  flex: 1; padding: 8px 0; border: none; cursor: pointer;
  border-radius: 8px; font-size: 0.875rem; font-weight: 600;
  background: transparent; color: var(--text-muted);
  transition: background 0.18s, color 0.18s;
}
.auth-tab.active { background: #fff; color: var(--dark); box-shadow: 0 1px 4px rgba(0,0,0,0.10); }

.auth-social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.auth-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px; border-radius: 10px; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: background 0.18s, box-shadow 0.18s; width: 100%;
}
.auth-google-btn {
  background: #fff; border: 1.5px solid #e0e0e0; color: #111;
}
.auth-google-btn:hover { background: #f8f8f8; box-shadow: 0 2px 8px rgba(0,0,0,0.10); }
.auth-apple-btn {
  background: #111; border: 1.5px solid #111; color: #fff;
}
.auth-apple-btn:hover { background: #222; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 0.8rem; margin-bottom: 16px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e8e8e8;
}

.auth-field { margin-bottom: 14px; }
.auth-label { display: block; font-size: 0.78rem; font-weight: 600; color: #444; margin-bottom: 5px; }
.auth-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid #e0e0e0;
  border-radius: 9px; font-size: 0.875rem; color: var(--dark);
  outline: none; transition: border-color 0.18s;
  box-sizing: border-box;
}
.auth-input:focus { border-color: var(--accent, #6C3CE1); }
.auth-pw-wrap { position: relative; }
.auth-pw-wrap .auth-input { padding-right: 42px; }
.auth-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #999; padding: 2px;
}
.auth-pw-toggle:hover { color: #555; }

.auth-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 8px; padding: 9px 12px; font-size: 0.82rem;
  margin-bottom: 12px;
}
.auth-forgot { margin-bottom: 16px; }

.auth-submit {
  width: 100%; padding: 12px; border: none; border-radius: 10px;
  background: var(--dark, #111); color: #fff;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.18s; min-height: 44px;
}
.auth-submit:hover:not(:disabled) { background: #222; }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-toggle-text {
  text-align: center; margin-top: 16px; font-size: 0.83rem; color: var(--text-muted);
}
.auth-link {
  background: none; border: none; cursor: pointer;
  color: var(--accent, #6C3CE1); font-size: inherit; font-weight: 600; padding: 0;
}
.auth-link:hover { text-decoration: underline; }

/* ── Signed-in avatar ── */
.auth-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.auth-avatar-img {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; display: block;
}

/* ── User dropdown ── */
.auth-user-dropdown {
  position: fixed; background: #fff; border-radius: 12px;
  border: 1px solid #e8e8e8; box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  min-width: 220px; z-index: 1201; padding: 8px;
}
.auth-dropdown-user {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px;
}
.auth-dropdown-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.auth-dropdown-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 10px; border: none; background: none; cursor: pointer;
  border-radius: 8px; font-size: 0.85rem; color: var(--dark);
  transition: background 0.15s;
}
.auth-dropdown-item:hover { background: #f5f5f5; }

/* ── OTP screen titles ── */
.auth-screen-title {
  font-size: 1.2rem; font-weight: 800; color: var(--dark);
  margin: 0 0 6px; text-align: center;
}
.auth-screen-sub {
  font-size: 0.82rem; color: var(--text-muted);
  text-align: center; line-height: 1.55; margin-bottom: 20px;
}

/* ── Back button ── */
.auth-back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  padding: 4px 8px 4px 2px; border-radius: 7px;
  margin-bottom: 14px; transition: color 0.15s, background 0.15s;
}
.auth-back-btn:hover { color: var(--dark); background: #f4f4f4; }

/* ── 6-digit code row ── */
.auth-code-row {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 16px;
}
.auth-code-digit {
  width: 44px; height: 54px; text-align: center;
  font-size: 1.4rem; font-weight: 700; letter-spacing: 0;
  border: 2px solid #e0e0e0; border-radius: 10px;
  color: var(--dark); background: #fafafa;
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
  caret-color: transparent; box-sizing: border-box;
}
.auth-code-digit:focus {
  border-color: var(--accent, #6C3CE1);
  box-shadow: 0 0 0 3px rgba(108,60,225,0.13);
  background: #fff;
}
.auth-code-digit:not(:placeholder-shown) { background: #fff; }

/* Shake animation on wrong code */
@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-7px); }
  40%       { transform: translateX(7px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.auth-code-row.shake { animation: auth-shake 0.44s ease; }

@media (max-width: 480px) {
  .auth-modal { padding: 24px 20px 20px; }
  .auth-code-digit { width: 38px; height: 48px; font-size: 1.2rem; }
}

/* ================================================================
   PRODUCT REVIEWS — Dynamic Review System
================================================================ */

/* ── Summary ─────────────────────────────────────────────────── */
.reviews-summary-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 8px;
}

.reviews-summary-left {
  background: var(--grey-light, #f7f7f7);
  border-radius: var(--r-lg, 16px);
  padding: 28px;
  text-align: center;
}

.reviews-avg-number {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--dark, #111);
}

.reviews-avg-stars { margin: 8px 0; letter-spacing: 3px; }
.reviews-avg-count { font-size: 0.82rem; color: var(--text-muted, #999); }

.reviews-summary-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.reviews-dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}

.reviews-dist-row:hover { background: var(--grey-light, #f5f5f5); }

.reviews-dist-label {
  width: 42px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-secondary, #666);
}

.reviews-dist-bar-bg {
  flex: 1;
  height: 8px;
  background: var(--border, #e5e5e5);
  border-radius: 4px;
  overflow: hidden;
}

.reviews-dist-bar-fill {
  height: 100%;
  background: var(--warning, #f59e0b);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.reviews-dist-pct {
  width: 38px;
  text-align: right;
  color: var(--text-muted, #999);
  font-size: 0.78rem;
}

/* Write a Review button */
.btn-write-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--dark, #111);
  color: #fff;
  border: none;
  border-radius: var(--r-full, 50px);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-write-review:hover { background: var(--accent, #6C3CE1); transform: translateY(-1px); }

/* ── Toolbar (Sort + Filter) ─────────────────────────────────── */
.reviews-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border, #eee);
  flex-wrap: wrap;
}

.reviews-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary, #666);
}

.reviews-sort select {
  padding: 6px 12px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: var(--r-md, 10px);
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  outline: none;
}

.reviews-sort select:focus {
  border-color: var(--accent, #6C3CE1);
  box-shadow: 0 0 0 3px rgba(108,60,225,0.1);
}

.reviews-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.review-filter-chip {
  padding: 5px 14px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: var(--r-full, 50px);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-secondary, #666);
}

.review-filter-chip:hover { border-color: var(--accent, #6C3CE1); color: var(--accent, #6C3CE1); }

.review-filter-chip.active {
  background: var(--dark, #111);
  color: #fff;
  border-color: var(--dark, #111);
}

/* ── Review Cards ────────────────────────────────────────────── */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.review-card .verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--success, #10b981);
  font-weight: 600;
  margin-bottom: 8px;
}

.review-photos {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.review-photo-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border, #eee);
  transition: transform 0.15s, box-shadow 0.15s;
}

.review-photo-thumb:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.12));
}

.review-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Actions row */
.review-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #f0f0f0);
}

.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: var(--r-full, 50px);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary, #666);
  transition: all 0.15s;
}

.helpful-btn:hover:not(:disabled) { border-color: var(--accent, #6C3CE1); color: var(--accent, #6C3CE1); }

.helpful-btn.voted {
  background: var(--accent-light, #e8f4ff);
  border-color: var(--accent, #6C3CE1);
  color: var(--accent, #6C3CE1);
}

.helpful-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.review-edit-btn,
.review-delete-btn {
  padding: 5px 12px;
  border: none;
  background: none;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}

.review-edit-btn { color: var(--accent, #6C3CE1); }
.review-edit-btn:hover { background: var(--accent-light, #e8f4ff); }

.review-delete-btn { color: var(--danger, #ef4444); }
.review-delete-btn:hover { background: #fef2f2; }

/* Empty state */
.reviews-empty {
  text-align: center;
  padding: 60px 20px;
}

.reviews-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.reviews-empty-title { font-size: 1.1rem; font-weight: 700; color: var(--dark, #111); margin-bottom: 6px; }
.reviews-empty-desc { font-size: 0.88rem; color: var(--text-muted, #999); }

/* Load More */
.btn-load-more {
  display: block;
  margin: 24px auto 0;
  padding: 12px 36px;
  background: #fff;
  border: 1.5px solid var(--border, #ddd);
  border-radius: var(--r-full, 50px);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--dark, #111);
}

.btn-load-more:hover { border-color: var(--dark, #111); background: var(--grey-light, #f7f7f7); }

/* ── Review Form ─────────────────────────────────────────────── */
.review-form-container {
  margin-bottom: 24px;
}

.review-form {
  background: #fff;
  border: 1.5px solid var(--border, #eee);
  border-radius: var(--r-xl, 20px);
  padding: 32px;
  box-shadow: var(--shadow-lg, 0 8px 30px rgba(0,0,0,0.08));
}

.review-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.review-form-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.review-form-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted, #999);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.review-form-close:hover { background: #f0f0f0; }

.review-form-group {
  margin-bottom: 20px;
}

.review-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark, #111);
}

.review-form-group label .required { color: var(--danger, #ef4444); }
.review-form-group label .optional { font-weight: 400; color: var(--text-muted, #999); font-size: 0.8rem; }

.review-form-group input[type="text"],
.review-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: var(--r-md, 10px);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.review-form-group input[type="text"]:focus,
.review-form-group textarea:focus {
  border-color: var(--accent, #6C3CE1);
  box-shadow: 0 0 0 3px rgba(108,60,225,0.1);
}

.review-form-group textarea { resize: vertical; min-height: 120px; }

.review-char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted, #999);
  margin-top: 4px;
}

/* Star rating input */
.star-rating-input {
  display: inline-flex;
  gap: 4px;
}

.star-input {
  font-size: 2rem;
  cursor: pointer;
  color: #ddd;
  transition: color 0.1s, transform 0.1s;
  user-select: none;
}

.star-input:hover { transform: scale(1.15); }
.star-input.active { color: var(--warning, #f59e0b); }

.star-rating-label {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary, #666);
  vertical-align: super;
}

/* Photo upload zone */
.photo-upload-zone {
  border: 2px dashed var(--border, #ddd);
  border-radius: var(--r-lg, 16px);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.photo-upload-zone:hover { border-color: var(--accent, #6C3CE1); background: rgba(108,60,225,0.02); }

.photo-upload-zone.drag-over {
  border-color: var(--accent, #6C3CE1);
  background: rgba(108,60,225,0.05);
}

.photo-upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted, #999);
  font-size: 0.88rem;
}

.photo-upload-prompt strong { color: var(--accent, #6C3CE1); }

.photo-upload-hint { font-size: 0.75rem; color: var(--text-muted, #bbb); }

/* Photo preview grid */
.photo-preview-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.photo-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border, #eee);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.photo-preview-remove:hover { background: var(--danger, #ef4444); }

/* Form error */
.review-form-error {
  padding: 10px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r-md, 10px);
  color: var(--danger, #ef4444);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Form actions */
.review-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-submit-review {
  padding: 12px 32px;
  background: var(--dark, #111);
  color: #fff;
  border: none;
  border-radius: var(--r-full, 50px);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit-review:hover:not(:disabled) { background: var(--accent, #6C3CE1); transform: translateY(-1px); }
.btn-submit-review:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-cancel-review {
  padding: 12px 24px;
  background: none;
  border: 1.5px solid var(--border, #ddd);
  border-radius: var(--r-full, 50px);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary, #666);
  transition: all 0.15s;
}

.btn-cancel-review:hover { border-color: var(--dark, #111); color: var(--dark, #111); }

/* ── Photo Lightbox ──────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.2s ease;
}

@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .reviews-summary-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reviews-summary-left {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    text-align: left;
    padding: 20px;
  }

  .reviews-avg-number { font-size: 2.5rem; grid-row: 1 / 3; }
  .reviews-avg-stars { margin: 0; }

  .reviews-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-form { padding: 20px; }

  .photo-upload-zone { padding: 20px; }

  .review-photo-thumb { width: 56px; height: 56px; }

  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   MARKETPLACE UI COMPONENTS
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Product card seller link ──────────────────────────────────────────────── */
.product-seller-link {
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-seller-link:hover { text-decoration: underline; }

/* ── Product card discount badge ───────────────────────────────────────────── */
.product-discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--danger);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-full);
  z-index: 2;
  line-height: 1.3;
}

/* ── Product card delivery hint ────────────────────────────────────────────── */
.product-delivery-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ── Compact Marketplace Hero ──────────────────────────────────────────────── */
.marketplace-hero {
  padding: 48px 0;
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
}
.marketplace-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.marketplace-hero-content { max-width: 520px; }
.marketplace-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
}
.marketplace-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 12px 0 24px;
  line-height: 1.6;
}
.marketplace-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.marketplace-hero-stats {
  display: flex;
  gap: 40px;
}
.mh-stat { text-align: center; }
.mh-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  color: var(--dark);
}
.mh-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .marketplace-hero { padding: 32px 0; }
  .marketplace-hero-inner { flex-direction: column; text-align: center; }
  .marketplace-hero-actions { justify-content: center; }
  .marketplace-hero-stats { gap: 24px; }
  .mh-stat-num { font-size: 1.4rem; }
}

/* ── Sticky Category Quick-Access Bar ──────────────────────────────────────── */
.category-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 90;
}
.category-bar-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--gutter, 24px);
}
.category-bar-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--grey-light);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--t-fast);
  border: 1.5px solid transparent;
  flex-shrink: 0;
}
.cat-pill:hover, .cat-pill.active { border-color: #111; color: #111; background: rgba(0,0,0,0.03); }
.cat-pill-icon { width: 18px; height: 18px; object-fit: contain; }
.cat-pill-divider {
  width: 1px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
  align-self: stretch;
}

/* ── Department Tabs (row 1 of category bar) ─────────────────────────────── */
.dept-tabs {
  display: flex;
  gap: 6px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dept-tabs::-webkit-scrollbar { display: none; }

.dept-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  background: var(--grey-light);
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--t-fast);
  flex-shrink: 0;
}
.dept-tab:hover {
  border-color: #111;
  color: #111;
  background: rgba(0,0,0,0.03);
}
.dept-tab.active {
  background: #111;
  color: white;
  border-color: #111;
  font-weight: 700;
}
.dept-tab--deals {
  background: #FF3B3010;
  color: #FF3B30;
  border-color: transparent;
}
.dept-tab--deals:hover {
  background: #FF3B3018;
  border-color: #FF3B30;
  color: #FF3B30;
}

/* ── Horizontal Scroll Grid (recently viewed, popular shops) ───────────────── */
.horizontal-scroll-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.horizontal-scroll-grid::-webkit-scrollbar { display: none; }
.horizontal-scroll-grid > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}
.horizontal-scroll-grid > .product-card {
  width: 220px;
  min-width: 220px;
}

/* ── Section Title (smaller marketplace variant) ───────────────────────────── */
.section-title-sm {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Seller / Shop Card (for Popular Shops carousel) ───────────────────────── */
.shop-card {
  width: 200px;
  min-width: 200px;
  padding: 24px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--t-base);
}
.shop-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.shop-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5856D6);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}
.shop-card-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.shop-card-meta { font-size: 0.72rem; color: var(--text-muted); }

/* ── Seller Profile Page ───────────────────────────────────────────────────── */
.seller-profile-header { margin-bottom: 32px; }
.seller-cover {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.seller-cover img { width: 100%; height: 100%; object-fit: cover; }
.seller-info-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  margin-top: -36px;
  position: relative;
  z-index: 1;
}
.seller-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: white;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}
.seller-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.seller-name { font-size: 1.4rem; font-weight: 800; margin: 0; }
.seller-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.seller-stats { margin-left: auto; display: flex; gap: 24px; }
.seller-stat { text-align: center; }
.seller-stat-num { font-size: 1.1rem; font-weight: 700; display: block; }
.seller-stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; }

/* ── All Shops Page Grid ──────────────────────────────────────────────────── */
.shops-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.shops-page-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.shops-page-card:hover {
  border-color: #111;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.shops-page-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.shops-page-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.shops-page-card-info {
  flex: 1;
  min-width: 0;
}
.shops-page-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shops-page-card-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.shops-page-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}
.shops-page-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.shops-page-card-footer span + span::before {
  content: '\00B7';
  margin-right: 6px;
}

@media (max-width: 480px) {
  .shops-page-grid { grid-template-columns: 1fr; }
}

.seller-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
}
.seller-tab {
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--t-fast);
  white-space: nowrap;
}
.seller-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.seller-tab:hover { color: var(--text-primary); }
.seller-tab-panel { display: none; }
.seller-tab-panel.active { display: block; }

@media (max-width: 768px) {
  .seller-cover { height: 140px; }
  .seller-info-bar { flex-wrap: wrap; padding: 0 16px; }
  .seller-stats { margin-left: 0; width: 100%; justify-content: space-around; margin-top: 12px; }
  .seller-tab { padding: 10px 16px; font-size: 0.82rem; }
}

/* ── Seller Badge Card (on product page) ───────────────────────────────────── */
.seller-badge-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: 16px 0;
  background: var(--grey-light);
}
.seller-badge-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5856D6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.seller-badge-name { font-size: 0.88rem; }
.seller-badge-meta { font-size: 0.72rem; color: var(--success); font-weight: 600; margin-top: 2px; }

/* ── Marketplace sections spacing ──────────────────────────────────────────── */
.section--marketplace {
  padding: 40px 0;
  background: var(--bg-subtle);
}
.section--marketplace + .section--marketplace {
  padding-top: 0;
}

/* ================================================================
   FLY-TO-CART ANIMATION
================================================================ */
.cart-fly-dot {
  position: fixed;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  /* transition applied by JS after first paint */
}

@keyframes cart-count-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.65); }
  65%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}

.cart-count.popping {
  animation: cart-count-pop 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* ── ZwipKart Animated Cart Icon ────────────────────────────── */
.zk-cart-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  position: relative;
}
.zk-cart-svg {
  width: 22px;
  height: 22px;
  display: block;
  will-change: transform;
}
.zk-cart-top {
  will-change: transform;
}
.zk-cart-product {
  will-change: transform, opacity;
}

/* ── Mobile: header search tweak (placeholder text) ── */
@media (max-width: 480px) {
  .header-search input::placeholder { font-size: 0.78rem; }
}

/* ================================================================
   SKELETON LOADING STATES
================================================================ */
@keyframes skel-shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

.skel-block,
.skel-line {
  background: linear-gradient(
    90deg,
    #ebebeb 25%,
    #d8d8d8 50%,
    #ebebeb 75%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
  display: block;
}

/* skel-block fills its container (used for image areas) */
.skel-block {
  width: 100%;
  height: 100%;
  min-height: 140px;
  border-radius: 0;
}

/* skel-line is an inline-block text placeholder */
.skel-line {
  display: block;
  margin-bottom: 6px;
}

/* deal-card image area needs full height of 16/9 container */
.deal-card-img .skel-block {
  position: absolute;
  inset: 0;
  min-height: 0;
}

/* product-card image area */
.product-card-img .skel-block {
  position: absolute;
  inset: 0;
  min-height: 0;
}

/* ── Gallery Carousel ──────────────────────────────────────────── */
.gallery-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-carousel-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.gallery-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.gallery-carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 4px;
  image-rendering: -webkit-optimize-contrast;
}

.gallery-carousel-prev,
.gallery-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s;
  color: #111111;
}

.gallery-carousel:hover .gallery-carousel-prev,
.gallery-carousel:hover .gallery-carousel-next {
  opacity: 1;
}

.gallery-carousel-prev { left: 10px; }
.gallery-carousel-next { right: 10px; }

.gallery-carousel-prev:hover,
.gallery-carousel-next:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d2d2d7;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-dot.active {
  background: #6C3CE1;
  transform: scale(1.25);
}

/* ── Seller Offer Cards — row layout with logo ──────────────── */
.seller-offer-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.seller-offer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.seller-offer-logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.seller-offer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.seller-offer-logo-initial {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  line-height: 1;
}

.seller-offer-price-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-offer-arrow {
  color: #86868b;
  flex-shrink: 0;
}

.seller-offer-card:hover .seller-offer-arrow {
  color: #111111;
}

/* ── Responsive carousel adjustments ───────────────────────── */
@media (max-width: 767px) {
  .gallery-carousel-prev,
  .gallery-carousel-next {
    width: 30px;
    height: 30px;
    opacity: 0.7;
  }
  .gallery-carousel:hover .gallery-carousel-prev,
  .gallery-carousel:hover .gallery-carousel-next {
    opacity: 0.85;
  }
  .gallery-carousel-slide img {
    padding: 2px;
  }
  .gallery-dot {
    width: 6px;
    height: 6px;
  }
  .seller-offer-logo {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
}


/* ══════════════════════════════════════════════════════════════════════════════
   MESSAGING MODAL — Customer ↔ Seller (Back Market–inspired)
   ══════════════════════════════════════════════════════════════════════════════ */
.msg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: center;
}
.msg-modal.open { display: flex; }

/* Container — slides up from bottom like a sheet */
.msg-modal-content {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  animation: msgSlideUp 0.3s ease-out;
}
@keyframes msgSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Header — clean with avatar */
.msg-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.msg-back-btn {
  width: 36px; height: 36px; border: none; background: none;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: #111;
  transition: background 0.15s; flex-shrink: 0;
}
.msg-back-btn:hover { background: #f3f4f6; }
.msg-header-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #6C3CE1, #00c6ff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.msg-header-info { flex: 1; min-width: 0; }
.msg-modal-title { font-weight: 700; font-size: 0.95rem; color: #111; }
.msg-modal-subtitle { font-size: 0.75rem; color: #22c55e; margin-top: 1px; }
.msg-header-actions { flex-shrink: 0; }
.msg-status-pill {
  padding: 4px 10px; border-radius: 20px; font-size: 0.7rem;
  font-weight: 600; background: #d1fae5; color: #059669; text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Order context banner */
.msg-order-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: #f8f9fa; border-bottom: 1px solid #f0f0f0;
  font-size: 0.8rem; color: #6b7280; flex-shrink: 0;
}
.msg-order-banner svg { opacity: 0.5; flex-shrink: 0; }

/* Thread */
.msg-thread {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8f9fa;
}

/* Date separator */
.msg-date-sep {
  text-align: center; padding: 12px 0 8px;
}
.msg-date-sep span {
  background: #e8eaed; color: #6b7280; font-size: 0.7rem; font-weight: 600;
  padding: 4px 12px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.3px;
}

/* Message rows */
.msg-row { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 2px; }
.msg-row-right { justify-content: flex-end; }
.msg-row-left { justify-content: flex-start; }

/* Small avatar for seller messages */
.msg-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #6C3CE1, #00c6ff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.7rem; flex-shrink: 0;
}

/* Bubbles */
.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
  position: relative;
}
.msg-customer {
  background: #111;
  color: #fff;
  border-radius: 18px 18px 4px 18px;
}
.msg-seller {
  background: #fff;
  color: #111;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.msg-bubble-text { white-space: pre-wrap; }
.msg-bubble-time {
  font-size: 0.65rem;
  margin-top: 4px;
  text-align: right;
}
.msg-customer .msg-bubble-time { color: rgba(255,255,255,0.5); }
.msg-seller .msg-bubble-time { color: #9ca3af; }

/* Empty state */
.msg-empty-state {
  text-align: center; padding: 48px 20px; color: #9ca3af;
}
.msg-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.msg-empty-state p { margin: 0; font-size: 0.95rem; font-weight: 500; color: #374151; }
.msg-empty-hint { font-size: 0.82rem !important; color: #9ca3af !important; font-weight: 400 !important; margin-top: 4px !important; }

/* Return bar — redesigned */
.msg-return-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border-top: 1px solid #fecaca;
  flex-shrink: 0;
}
.msg-return-icon { font-size: 1.2rem; flex-shrink: 0; }
.msg-return-text { flex: 1; min-width: 0; }
.msg-return-text strong { display: block; font-size: 0.85rem; color: #991b1b; }
.msg-return-text span { font-size: 0.75rem; color: #b91c1c; }
.msg-return-btn {
  background: #dc2626; color: #fff; border: none; border-radius: 10px;
  padding: 8px 16px; font-weight: 600; font-size: 0.8rem; cursor: pointer;
  white-space: nowrap; transition: background 0.15s; flex-shrink: 0;
}
.msg-return-btn:hover { background: #b91c1c; }

/* Input area — modern */
.msg-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.msg-input-wrap {
  flex: 1;
  background: #f3f4f6;
  border-radius: 22px;
  padding: 2px;
}
.msg-input {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 0.9rem;
  resize: none;
  font-family: inherit;
  outline: none;
  max-height: 120px;
  color: #111;
}
.msg-input::placeholder { color: #9ca3af; }
.msg-send-btn {
  width: 42px; height: 42px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.msg-send-btn:hover { background: #6C3CE1; transform: scale(1.05); }
.msg-send-btn:disabled { opacity: 0.3; cursor: default; transform: none; }

/* Mobile full-screen */
@media (max-width: 640px) {
  .msg-modal { align-items: stretch; }
  .msg-modal-content {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════
   ZWIPKART BUYER PROTECTION — Homepage Banner
   ══════════════════════════════════════════════════════════════════ */
.buyer-protection-banner {
  background: linear-gradient(135deg, #f8f5ff 0%, #ede7ff 50%, #f3effe 100%);
  border: 1.5px solid #e0d4fc;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.buyer-protection-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(108,60,225,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.bp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.bp-shield {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6C3CE1, #8B5CF6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(108,60,225,0.25);
}
.bp-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.2;
}
.bp-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 2px 0 0;
}
.bp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.75);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid rgba(108,60,225,0.08);
}
.bp-item-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.bp-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-item-text strong {
  font-size: 0.85rem;
  color: #111;
  font-weight: 600;
}
.bp-item-text span {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.35;
}
.bp-footer {
  text-align: center;
  margin-top: 20px;
}
.bp-learn-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent, #6C3CE1);
  text-decoration: none;
  transition: opacity 0.2s;
}
.bp-learn-more:hover { opacity: 0.7; }

@media (max-width: 640px) {
  .buyer-protection-banner { padding: 20px 16px; }
  .bp-grid { grid-template-columns: 1fr; gap: 10px; }
  .bp-header { gap: 10px; }
  .bp-shield { width: 40px; height: 40px; }
}

/* ══════════════════════════════════════════════════════════════════
   PRODUCT PAGE — Buyer Protection Badge
   ══════════════════════════════════════════════════════════════════ */
.product-buyer-protection {
  margin-top: 20px;
  border: 1.5px solid #e0d4fc;
  border-radius: 12px;
  overflow: hidden;
  background: #faf8ff;
}
.pbp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #6C3CE1, #8B5CF6);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}
.pbp-items {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pbp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #374151;
}
.pbp-item svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════
   PRODUCT PAGE — "Save £X vs buying new" price badge
   ══════════════════════════════════════════════════════════════════ */
.product-price-save {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 980px;
  border: 1px solid #a7f3d0;
}

/* ══════════════════════════════════════════════════════════════════
   CONDITION GRADING GUIDE PAGE
   ══════════════════════════════════════════════════════════════════ */
.grading-hero {
  background: linear-gradient(135deg, #f8f5ff 0%, #ede7ff 100%);
  padding: 48px 0 32px;
  text-align: center;
}
.grading-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 8px;
}
.grading-hero p {
  font-size: 1rem;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto;
}
.grading-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
.grade-card {
  border: 1.5px solid var(--border, #e5e5e5);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}
.grade-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.grade-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.grade-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.grade-badge--new { background: #111; color: #fff; }
.grade-badge--like-new { background: #1d2024; color: #fff; }
.grade-badge--excellent { background: #3a3f45; color: #fff; }
.grade-badge--good-value { background: #6C3CE1; color: #fff; }
.grade-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #111;
}
.grade-card-header p {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
}
.grade-card-body {
  padding: 20px 24px;
}
.grade-criteria {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.grade-criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.4;
}
.grade-criteria-item svg { flex-shrink: 0; margin-top: 2px; }

@media (max-width: 640px) {
  .grading-hero { padding: 32px 16px 20px; }
  .grading-hero h1 { font-size: 1.5rem; }
  .grade-card-header { padding: 16px; }
  .grade-card-body { padding: 16px; }
}

/* ── Seller Trust Indicators Strip ──────────────────────────────────────────── */
.seller-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.st-badge svg { flex-shrink: 0; }
.st-verified      { background: #dcfce7; color: #15803d; }
.st-top-rated     { background: #fef3c7; color: #92400e; }
.st-highly-rated  { background: #fef9c3; color: #854d0e; }
.st-fast-response { background: #dbeafe; color: #1e40af; }
.st-power-seller  { background: #f3e8ff; color: #6b21a8; }
.st-established   { background: #ede9fe; color: #5b21b6; }
.st-low-disputes  { background: #d1fae5; color: #065f46; }
.st-protection    { background: #f0e6ff; color: #6C3CE1; }

@media (max-width: 640px) {
  .seller-trust-strip { gap: 6px; }
  .st-badge { font-size: 0.72rem; padding: 4px 10px; }
}

/* ── Help Support Widget ──────────────────────────────────────────────────── */
.support-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}
.support-widget-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C3CE1, #8b5cf6);
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(108,60,225,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.support-widget-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(108,60,225,0.5);
}
.support-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.support-panel.open { display: flex; }
.support-panel-header {
  background: linear-gradient(135deg, #6C3CE1, #8b5cf6);
  color: #fff;
  padding: 20px;
}
.support-panel-header h3 { font-size: 1rem; margin-bottom: 4px; }
.support-panel-header p { font-size: 0.8rem; opacity: 0.85; }
.support-panel-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}
.support-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  color: inherit;
}
.support-option:hover { border-color: #6C3CE1; background: #f8f5ff; }
.support-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0e6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-option-text { font-size: 0.88rem; font-weight: 600; }
.support-option-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 480px) {
  .support-panel { width: calc(100vw - 32px); right: -8px; }
  .support-widget { bottom: 16px; right: 16px; }
}
