/* Entertainment Zone Retail Styling System (Amazon & eBay Inspired) */

:root {
  /* Retail Color Palette */
  --retail-navy: #131921;     /* Amazon primary dark navy */
  --retail-slate: #232f3e;    /* Amazon secondary slate nav */
  --retail-bg: #eaeded;       /* Amazon clean light gray background */
  --retail-orange: #f0c14b;   /* Primary yellow/orange CTA */
  --retail-orange-hover: #e5b230;
  --retail-orange-border: #a88734;
  --retail-accent-orange: #e47911; /* Deal/Deal alert red-orange */
  
  --bg: var(--retail-bg);
  --surface: #ffffff;
  --surface-strong: #f7f9fa;
  --ink: #0f1111;             /* Deep black for proper readability */
  --muted: #565959;           /* Clean muted gray */
  --line: #dddddd;            /* Sharp retail border */
  
  /* Brand Accents (integrated naturally) */
  --blue: #007185;            /* Premium retail teal-blue */
  --blue-dark: #004b57;
  --cyan: #007185;
  --cyan-soft: #e7f4f6;
  --red: #b12704;             /* Deal urgency red */
  --red-soft: #fdf0ed;
  --green: #007600;           /* Clean retail green for instock */
  --green-soft: #ecf7ec;
  
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-sm: 4px;
  --max-width: 100%;
  
  --font-retail: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-retail);
  font-size: 14px;
  line-height: 1.4;
  max-width: 100%;
  overflow-x: hidden;
  padding-top: 106px; /* Primary header + Subnav height */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

body.drawer-open,
body.message-open {
  overflow: hidden;
  /* iOS Safari scroll-lock: prevent background body from scrolling under the drawer */
  position: fixed;
  width: 100%;
  left: 0;
}

img {
  display: block;
  max-width: 100%;
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.whatsapp-brand-icon {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 auto;
  fill: currentColor;
  vertical-align: -0.28em;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--retail-accent-orange);
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

/* Lucide Icon override */
i[data-lucide] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header & Promo Bar */
.promo-bar {
  display: none; /* Merged into modern retail subnav header */
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--retail-navy);
  color: #ffffff;
  border-bottom: 0;
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.1;
}

.brand-deliver {
  font-size: 11px;
  color: #cccccc;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.brand-deliver i {
  width: 12px;
  height: 12px;
  color: #ffffff;
}

/* Retail Search Bar */
.header-search {
  flex: 1;
  max-width: 640px;
  height: 40px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 150ms ease;
}

.header-search:focus-within {
  border-color: #ffa41c; /* Amazon orange-yellow focus ring */
}

.search-category-select {
  height: 100%;
  padding: 0 12px;
  background: #f3f3f3;
  color: #555555;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #cccccc;
  cursor: pointer;
  user-select: none;
}

.search-category-select:hover {
  background: #e7e7e7;
  color: #111111;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #111111;
  font-size: 14px;
  outline: 0;
}

.header-search button {
  width: 48px;
  height: 100%;
  background: #febd69; /* Amazon warm yellow */
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}

.header-search button:hover {
  background: #f3a847;
}

.header-search button i {
  width: 20px;
  height: 20px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-retail-link {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-align: left;
}

.nav-retail-link:hover {
  border-color: #ffffff;
  text-decoration: none;
  color: #ffffff;
}

.nav-retail-small {
  font-size: 11px;
  color: #cccccc;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 2px;
}

.nav-retail-bold {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-retail-bold i {
  color: #ffa41c; /* Orange support bubble */
}

/* Cart Button */
.cart-retail-btn {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  color: #ffffff;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.cart-retail-btn:hover {
  border-color: #ffffff;
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-icon-wrapper i {
  width: 24px;
  height: 24px;
}

#cartCount {
  position: absolute;
  top: -8px;
  left: 10px;
  background: var(--retail-accent-orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cart-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}

/* Subheader menu (Slate blue bar) */
.site-subheader {
  background: var(--retail-slate);
  height: 38px;
  display: flex;
  align-items: center;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 92;
}

.subnav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.sub-nav a,
.subnav-all-btn {
  color: #ffffff;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.subnav-all-btn {
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.sub-nav a:hover,
.subnav-all-btn:hover,
.subnav-all-btn[aria-expanded="true"] {
  border-color: #ffffff;
  text-decoration: none;
  color: #ffffff;
}

.subnav-all-btn {
  font-weight: 700 !important;
}

.subnav-all-btn i {
  width: 16px;
  height: 16px;
}

.shop-menu-wrap {
  position: relative;
  z-index: 95;
}

.shop-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  width: min(360px, calc(100vw - 32px));
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.shop-menu-dropdown[hidden] {
  display: none;
}

.shop-menu-wrap.open .shop-menu-dropdown {
  display: block;
}

.shop-menu-dropdown a,
.shop-menu-dropdown button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #101820;
  text-align: left;
  cursor: pointer;
}

.shop-menu-dropdown a:hover,
.shop-menu-dropdown button:hover {
  background: #f3f6f8;
  color: #101820;
  text-decoration: none;
}

.shop-menu-dropdown i {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.shop-menu-dropdown span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-menu-dropdown strong {
  font-size: 13px;
  line-height: 1.1;
}

.shop-menu-dropdown small {
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
}

.subheader-promo {
  position: relative;
  flex: 0 1 370px;
  max-width: 370px;
  min-width: 240px;
  overflow: hidden;
  color: #febd69;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.subheader-promo-track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: promoMarquee 16s linear infinite;
  will-change: transform;
}

.subheader-promo:hover .subheader-promo-track {
  animation-play-state: paused;
}

@keyframes promoMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 22px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .subheader-promo-track {
    animation: none;
  }
}

/* Hero Section */
.hero {
  background: var(--retail-bg);
  border-bottom: 0;
  margin-bottom: 0;
}

.hero-carousel {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 0 72px;
  background-image: 
    linear-gradient(to bottom, rgba(234, 237, 237, 0) 40%, rgba(234, 237, 237, 1) 98%), /* Soft transition into the page */
    linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.08) 76%),
    var(--slide-image);
  background-position: center top;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-gift-cards {
  background-image:
    linear-gradient(to bottom, rgba(234, 237, 237, 0) 48%, rgba(234, 237, 237, 1) 98%),
    linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 32%, rgba(255, 255, 255, 0.02) 58%),
    var(--slide-image);
  background-position: center top;
}

.hero-slide-electronics {
  background-image:
    linear-gradient(to bottom, rgba(234, 237, 237, 0) 48%, rgba(234, 237, 237, 1) 98%),
    linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 31%, rgba(255, 255, 255, 0.03) 62%),
    var(--slide-image);
  background-position: center center;
}

.hero-slide-subscriptions {
  background-image:
    linear-gradient(to bottom, rgba(234, 237, 237, 0) 46%, rgba(234, 237, 237, 1) 98%),
    linear-gradient(to right, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 30%, rgba(0, 0, 0, 0.08) 62%),
    var(--slide-image);
  background-position: center center;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 620px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-slide-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.hero-slide-content p {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 18px;
  color: #e8e8e8;
  max-width: 440px;
}

.hero-kicker {
  display: inline-block;
  background: var(--retail-accent-orange);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: none;
  letter-spacing: 0.3px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-btn {
  height: 31px;
  min-width: 0;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero-btn i,
.hero-btn .whatsapp-brand-icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.hero-btn.button.primary {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.hero-btn.button.primary:hover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-btn.button.light {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.16);
  color: #101820;
}

.hero-btn.button.light:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.28);
  color: #007600;
  transform: translateY(-1px);
  text-decoration: none;
}

/* AI chat button on hero — distinct hover from WhatsApp green */
.hero-chat-btn.button.light:hover {
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.35);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  transition: all 120ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.button.primary {
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid var(--retail-orange-border);
  color: #111111;
}

.button.primary:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeb933);
  border-color: #a27d2c;
  text-decoration: none;
}

.button.secondary {
  background: #ffffff;
  border: 1px solid #a8a8a8;
  color: #111111;
}

.button.secondary:hover {
  background: #f7f7f7;
  border-color: #888888;
  text-decoration: none;
}

.button.light {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cccccc;
  color: #111111;
}

.button.light:hover {
  background: #ffffff;
  color: var(--blue);
  text-decoration: none;
}

.button.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 150px;
  z-index: 5;
  width: 44px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 150ms ease, border 150ms ease;
  border: 1px solid transparent;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--retail-navy);
}

.hero-arrow i {
  width: 24px;
  height: 24px;
  color: #333333;
}

.hero-arrow-prev {
  left: 20px;
}

.hero-arrow-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-dots button.active {
  background: #ffffff;
  width: 28px;
  border-radius: var(--radius-sm);
}

/* Section styling */
.section {
  padding: 38px 0;
  scroll-margin-top: 120px;
}

.section-heading {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--retail-accent-orange);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* Shop / Product Catalog */
.shop-section {
  background: transparent;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ── Skeleton loading ── */
.skeleton-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.skeleton-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
}

.skeleton-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
}

.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.thick { height: 18px; }

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

/* Lazy section fade-in */
.section[data-lazy] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.section[data-lazy].visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 200ms ease, border-color 200ms ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #c0c0c0;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-link:hover {
  text-decoration: none;
}

.product-media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}

.product-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.product-title-row h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.status-pill.available,
.status-pill.instock {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.waitlist,
.status-pill.low {
  background: #fff3e0;
  color: #e65100;
}

.product-summary {
  font-size: 12px;
  color: #888888;
  line-height: 1.4;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.product-card-meta-row span:first-child {
  color: var(--blue);
}

/* Stars & Retail Meta */
.product-card-meta {
  display: none;
}

.retail-stars-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.retail-stars {
  color: #ffa41c;
  font-size: 13px;
  letter-spacing: -1px;
}

.retail-rating-count {
  color: var(--blue);
  font-weight: 500;
}

.retail-badge-express {
  display: inline-flex;
  align-items: center;
  background: var(--cyan-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.tier-field {
  margin-top: auto;
  margin-bottom: 12px;
}

.tier-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.tier-field select {
  width: 100%;
  height: 32px;
  border: 1px solid #cccccc;
  border-radius: var(--radius-sm);
  background: #f7f7f7;
  padding: 0 8px;
  font-size: 13px;
  outline: 0;
}

.tier-field select:focus {
  border-color: var(--blue);
}

/* Pricing layout */
.price-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 0;
  border-top: 0;
  margin-top: auto;
}

.card-price-line {
  margin-bottom: 0;
  padding-top: 10px;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-prefix {
  font-size: 10px;
  font-weight: 500;
  color: #999999;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.pricing-note {
  font-size: 11px;
  color: var(--muted);
}

.card-link-cta {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.card-link-cta i {
  width: 13px;
  height: 13px;
}

.product-card:hover .card-link-cta {
  color: var(--retail-accent-orange);
}

/* Add to Cart Yellow Button inside cards */
.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 4px;
}

.product-card-btn {
  height: 32px;
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid var(--retail-orange-border);
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.product-card-btn:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeb933);
  text-decoration: none;
}

.product-card-btn.whatsapp {
  background: linear-gradient(to bottom, #25d366, #1ebd58);
  border-color: #159c44;
  color: #ffffff;
}

.product-card-btn.whatsapp:hover {
  background: linear-gradient(to bottom, #22c35e, #1aab4f);
}

.empty-state {
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 38px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* API Connection warning */
.product-load-state {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 20px;
  grid-column: 1 / -1;
  color: #5d4037;
}

.product-load-state strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #3e2723;
}

/* Category breadcrumb and title banner */
.category-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-page-hero {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.category-page-copy h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.category-page-copy p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 500px;
}

.category-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
}

.category-page-toolbar span:first-child {
  font-weight: 600;
  color: var(--ink);
}

.category-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-toolbar-copy small {
  color: var(--muted);
  font-size: 11px;
}

.category-results-shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.category-results-main {
  min-width: 0;
}

.refinement-panel {
  position: sticky;
  top: 124px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.refinement-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.refinement-heading strong {
  font-size: 14px;
}

.refinement-heading button,
.active-refinements button {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.refinement-heading button:hover,
.active-refinements button:hover {
  color: var(--retail-accent-orange);
  text-decoration: underline;
}

.refinement-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.refinement-group > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

/* Collapsible filter group toggle */
.refinement-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.refinement-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.refinement-active-label {
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  color: var(--blue);
  background: var(--cyan-soft);
  border-radius: 10px;
  padding: 1px 7px;
}

.refinement-group-toggle i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 180ms ease;
}

.refinement-group.collapsed .refinement-group-toggle i {
  transform: rotate(-90deg);
}

.refinement-group.collapsed .refinement-options {
  display: none;
}

/* Filter toggle button — hidden on desktop, shown on mobile */
.filter-toggle-btn {
  display: none;
}

.refinement-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.refinement-option {
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.refinement-option:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.refinement-option.active {
  background: var(--cyan-soft);
  border-color: color-mix(in srgb, var(--blue), transparent 62%);
  color: var(--blue);
}

.active-refinements {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.active-refinement-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.category-product-grid {
  gap: 16px;
  min-width: 0;
}

.category-product-grid .product-card {
  padding: 0;
}

@media (min-width: 601px) {
  body.category-view #filterToggleBtn {
    display: none !important;
  }

  body.category-view #refinementPanel {
    display: flex !important;
  }
}

/* Buying flow */
.flow-section {
  background: #f7f8fa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}

.flow-header {
  text-align: center;
  margin-bottom: 24px;
}

.flow-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.flow-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.flow-step:hover {
  border-color: var(--retail-accent-orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.flow-step > i {
  width: 24px;
  height: 24px;
  color: var(--retail-accent-orange);
}

.flow-step h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.flow-step-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

.flow-step-action i {
  width: 13px;
  height: 13px;
}

/* Support band */
.support-section {
  padding: 32px 0;
  background: var(--retail-navy);
  color: #ffffff;
}

.support-grid {
  display: flex;
  align-items: center;
  gap: 32px;
}

.support-copy {
  flex: 1;
  min-width: 0;
}

.support-copy h2 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.support-copy p {
  margin: 0;
  color: #b0bec5;
  font-size: 13px;
}

.support-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.support-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #ffffff;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.support-option:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.support-option i {
  width: 20px;
  height: 20px;
  color: #febd69;
  flex-shrink: 0;
}

.support-option strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.support-option span {
  display: block;
  font-size: 11px;
  color: #90a4ae;
  font-weight: 400;
}

.site-footer {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f1419;
  color: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
}

.footer-copy {
  font-size: 12px;
  color: #64748b;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-nav a,
.footer-nav button {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  transition: color 120ms ease;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: #febd69;
  text-decoration: none;
}

/* Product Detail Landing Page (Amazon Style) */
.product-page-section {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  padding: 24px 0;
  box-shadow: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.back-link:hover {
  color: var(--retail-accent-orange);
  text-decoration: none;
}

.back-link i {
  width: 14px;
  height: 14px;
}

.product-landing {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 32px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 120px;
}

.product-page-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid var(--line);
}

.product-page-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #f5f5f5;
  transition: border-color 150ms ease;
}

.product-thumb.active {
  border-color: var(--retail-accent-orange);
}

.product-thumb:hover {
  border-color: var(--blue);
}

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

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #444444;
}

.detail-list li i {
  color: var(--green);
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Product info column */
.product-page-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-page-header {
  display: flex;
  flex-direction: column;
}

.product-page-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--retail-accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}

.product-page-summary {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

.product-page-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.product-page-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-page-facts div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 9px 10px;
}

.product-page-facts span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.product-page-facts strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

/* Buy box */
.purchase-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafafa;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-page-tier label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  display: block;
}

.product-page-tier select {
  width: 100%;
  height: 36px;
  border: 1px solid #cccccc;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0 10px;
  font-size: 13px;
  outline: 0;
}

.product-page-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.product-page-price-row > span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.product-page-help {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.product-page-help button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.product-page-help button:hover {
  color: var(--retail-accent-orange);
}

.product-page-help button i {
  width: 14px;
  height: 14px;
}

.product-page-help span {
  font-size: 11px;
  color: #999999;
}

/* Product price block (prominent, outside buy box) */
.product-page-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-page-big-price {
  font-size: 26px;
  font-weight: 700;
  color: #b12704;
}

.product-page-price-note {
  font-size: 12px;
  color: var(--muted);
}

/* Product description */
.product-page-description {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.product-page-description h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}

.product-page-description p {
  font-size: 13px;
  color: #444444;
  line-height: 1.55;
  margin: 0;
}

/* Product details section */
.product-page-details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.product-page-details h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
}

.product-contact-footer p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 500px;
}

.product-contact-footer .contact-options {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 280px;
}

.contact-option {
  flex: 1;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.contact-option.whatsapp {
  background: linear-gradient(to bottom, #25d366, #1ebd58);
  border: 1px solid #159c44;
  color: #ffffff;
}

.contact-option.whatsapp:hover {
  background: linear-gradient(to bottom, #22c35e, #1aab4f);
}

.contact-option.web {
  background: #ffffff;
  border: 1px solid #a8a8a8;
  color: #111111;
}

.contact-option.web:hover {
  background: #f7f7f7;
}

/* Side Drawers (Cart and Support Message) */
.cart-drawer,
.message-drawer {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
}

.cart-drawer.open,
.message-drawer.open {
  display: flex;
}

.drawer-panel {
  width: 100%;
  max-width: 370px;
  height: 100%;
  max-height: 100dvh;
  background: #ffffff;
  box-shadow: -2px 0 12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  animation: slideIn 250ms ease-out forwards;
}

.message-shell {
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 100dvh;
  background: #ffffff;
  box-shadow: -2px 0 12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  animation: slideIn 250ms ease-out forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 12px 16px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--retail-navy);
  color: #ffffff;
}

.drawer-header h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  line-height: 1.2;
}

.drawer-header .icon-button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
}

.drawer-header .icon-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-header-left > i {
  width: 20px;
  height: 20px;
  color: #febd69;
}

.drawer-header-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  background: #f5f5f5;
}

.cart-empty {
  padding: 48px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cart-empty i {
  width: 40px;
  height: 40px;
  color: #d0d0d0;
  margin-bottom: 6px;
}

.cart-empty p {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.cart-empty span {
  font-size: 12px;
  color: var(--muted);
}

.cart-line {
  display: flex;
  gap: 9px;
  padding: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.cart-line:last-child {
  margin-bottom: 0;
}

.cart-line img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f5f5f5;
  flex-shrink: 0;
}

.cart-line-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-line-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-line h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
}

.cart-line-tier {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}

.cart-line-remove {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #aaa;
  flex-shrink: 0;
}

.cart-line-remove:hover {
  background: #fee2e2;
  color: var(--red);
}

.cart-line-remove i {
  width: 14px;
  height: 14px;
}

.cart-line-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.cart-line-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d0d0d0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border: none;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-controls button:hover {
  background: #e0e0e0;
}

.qty-controls button i {
  width: 12px;
  height: 12px;
}

.qty-controls span {
  font-size: 13px;
  font-weight: 700;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-left: 1px solid #d0d0d0;
  border-right: 1px solid #d0d0d0;
}

.remove-item {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

.remove-item:hover {
  color: var(--red);
  text-decoration: underline;
}

/* Cart drawer footer & checkout form */
.cart-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.total-row span {
  font-size: 14px;
  font-weight: 600;
}

.total-row strong {
  font-size: 18px;
  color: #b12704;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-form label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 6px 8px;
  font-size: 12px;
  outline: 0;
}

.cart-footer .button.full {
  height: 34px;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--blue);
}

/* Message Drawer (Support Chat Interface) */
.message-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.message-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--retail-navy);
  color: #ffffff;
  border-bottom: none;
}

.message-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-avatar i {
  width: 16px;
  height: 16px;
  color: #febd69;
}

.message-topbar h2 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.message-status-dot {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.message-topbar .icon-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
}

.message-topbar .icon-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.message-context {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.message-context-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.message-context-mark i {
  width: 13px;
  height: 13px;
}

.message-context-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-context strong {
  min-width: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-context-copy span {
  flex-shrink: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.message-context-clear {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-context-clear:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.message-context-clear i {
  width: 14px;
  height: 14px;
}

.message-thread {
  flex-grow: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS momentum scroll */
  overscroll-behavior: contain;      /* prevent pull-to-refresh inside chat */
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f6f7f8;
}

.message-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 18px;
  flex: 1;
}

.message-welcome-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}

.message-welcome-icon i {
  width: 18px;
  height: 18px;
  color: var(--retail-accent-orange);
}

.message-welcome p {
  font-size: 13px;
  color: #666666;
  line-height: 1.45;
  margin: 0;
  max-width: 280px;
}

.message-bubble {
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}

.message-bubble.customer {
  align-self: flex-end;
  background: var(--retail-navy);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.message-bubble.support {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 2px;
}

.message-bubble-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.72;
}

.message-bubble-meta span {
  font-weight: 700;
}

.message-bubble-meta time {
  font-weight: 500;
}

.message-bubble p {
  margin: 0;
}

.message-bubble small {
  font-size: 10px;
  color: #888888;
  display: block;
  margin-top: 4px;
  text-align: right;
}

.message-bubble.customer small {
  color: #cccccc;
}

.message-bubble.ai {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #dbe4ff;
  color: var(--ink);
  border-bottom-left-radius: 2px;
}

.message-bubble.ai small {
  color: #6366f1;
}

.typing-bubble {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #dbe4ff;
  border-radius: 10px;
  border-bottom-left-radius: 2px;
  padding: 8px 14px;
  max-width: 80%;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 18px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: #6366f1;
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.message-quick-actions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.message-quick-actions::-webkit-scrollbar {
  display: none;
}

.message-quick-actions button {
  height: 24px;
  white-space: nowrap;
  border: 1px solid #d0d0d0;
  background: #ffffff;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.message-quick-actions button:hover {
  background: var(--retail-navy);
  border-color: var(--retail-navy);
  color: #ffffff;
}

.message-composer {
  padding: 8px 12px 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  /* Stick to bottom even when keyboard pushes the view */
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
}

.message-send-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.message-send-row textarea {
  flex: 1;
  min-height: 34px;
  max-height: 80px;
  border: 1px solid #e0e0e0;
  border-radius: 17px;
  background: #f5f5f5;
  padding: 7px 13px;
  font-size: 13px;
  outline: 0;
  resize: none;
  line-height: 1.4;
}

.message-send-row textarea:focus {
  border-color: var(--blue);
  background: #ffffff;
}

.message-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--retail-accent-orange);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms ease;
}

.message-send-btn i {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

.message-send-btn:hover {
  background: #e0a800;
}

/* Dialog layout */
.product-dialog {
  width: 90%;
  max-width: 800px;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  background: #ffffff;
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 400px;
}

.dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

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

.dialog-top h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.dialog-top .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-top .icon-button:hover {
  background: #f0f0f0;
}

.dialog-content p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 16px;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 35;
  transition: transform 150ms ease;
}

.floating-whatsapp:hover {
  transform: scale(1.05);
}

.floating-whatsapp .whatsapp-brand-icon {
  width: 32px;
  height: 32px;
}

html[data-theme] body .drawer-header,
html[data-theme] body .message-topbar {
  background: var(--theme-header, var(--retail-navy));
  color: var(--theme-nav-text, #ffffff);
}

html[data-theme] body .drawer-header h2,
html[data-theme] body .message-topbar h2 {
  color: var(--theme-nav-text, #ffffff);
}

html[data-theme] body .drawer-header-sub,
html[data-theme] body .message-status-dot {
  color: color-mix(in srgb, var(--theme-nav-text, #ffffff), transparent 34%);
}

body.category-view .theme-switcher,
body.product-view .theme-switcher,
body.drawer-open .theme-switcher,
body.message-open .theme-switcher,
body.category-view .floating-whatsapp,
body.product-view .floating-whatsapp,
body.drawer-open .floating-whatsapp,
body.message-open .floating-whatsapp {
  display: none;
}

/* Toast Message */
.toast {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 100px);
  bottom: 30px;
  background: #333333;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  opacity: 0;
  z-index: 300;
  transition: all 200ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ─── Auth Modal ─── */

.auth-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.auth-overlay[hidden] { display: none; }

.auth-modal {
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 380px;
  padding: 32px 28px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.auth-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  font-size: 24px; color: #64748b; cursor: pointer;
  line-height: 1;
}

.auth-title {
  font-size: 22px; font-weight: 700; color: #0f172a;
  margin: 0 0 4px; text-align: center;
}

.auth-subtitle {
  font-size: 13px; color: #64748b;
  margin: 0 0 20px; text-align: center;
}

.auth-form-group {
  margin-bottom: 14px;
}

.auth-form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: #334155; margin-bottom: 4px;
}

.auth-form-group input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: 15px; font-family: inherit;
  transition: border-color .2s;
  box-sizing: border-box;
}

.auth-form-group input:focus {
  outline: none; border-color: var(--retail-orange, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}

.auth-btn {
  width: 100%; padding: 12px;
  background: var(--retail-orange, #f59e0b);
  color: #fff; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  margin-top: 6px; transition: background .2s;
}
.auth-btn:hover { background: #d97706; }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }

.auth-error {
  color: #dc2626; font-size: 13px;
  margin: 8px 0 0; text-align: center;
}

.auth-switch {
  text-align: center; margin-top: 16px;
  font-size: 13px; color: #64748b;
}

.auth-switch a {
  color: var(--retail-orange, #f59e0b);
  font-weight: 600; cursor: pointer; text-decoration: none;
}

.auth-logged-in {
  text-align: center;
}

.auth-logged-in .auth-user-name {
  font-size: 20px; font-weight: 700; color: #0f172a;
  margin: 8px 0;
}

.auth-logged-in .auth-user-phone {
  font-size: 14px; color: #64748b; margin-bottom: 20px;
}

.auth-logout-btn {
  padding: 10px 24px;
  background: none; border: 1.5px solid #dc2626;
  color: #dc2626; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.auth-logout-btn:hover { background: #dc2626; color: #fff; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: ""; flex: 1; height: 1px;
  background: #e2e8f0;
}
.auth-divider span {
  font-size: 12px; color: #94a3b8; text-transform: uppercase;
  letter-spacing: .05em; font-weight: 500;
}

.auth-google-wrap {
  display: flex; justify-content: center;
  margin-bottom: 8px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  body {
    padding-top: 146px; /* Stacked primary header + subnav on mobile */
  }

  .nav-shell {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
  }

  .header-search {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
  }

  .site-subheader {
    top: auto;
    font-size: 12px;
  }

  .product-landing {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .product-gallery {
    position: static;
  }

  .support-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .support-actions {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-media {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 132px; /* nav-shell ~92px + subheader 38px + 2px border */
  }

  .container {
    padding: 0 16px;
  }

  /* ── Mobile header: logo+cart row → search row → categories row ── */
  /* All flush, no gaps, one solid block */

  .nav-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 0;
    height: auto;
    padding: 8px 12px;
  }

  .nav-shell > .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    gap: 8px;
  }

  .nav-shell > .nav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 2px;
  }

  /* On mobile: show AI chat, hide WhatsApp nav link (WA accessible via floating btn + hero + footer) */
  .nav-retail-link.whatsapp-link {
    display: none;
  }

  .nav-shell > .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    height: 38px;
    margin: 0;
    border-radius: 8px;
    order: initial;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-deliver {
    display: none;
  }

  /* Mobile: collapse nav utility links to icon-only buttons */
  .nav-retail-link {
    padding: 5px 4px;
    border: 1px solid transparent;
  }
  .nav-retail-link .nav-retail-small {
    display: none;
  }
  .nav-retail-link .nav-retail-bold {
    /* Collapse text nodes but keep SVG/icon visible */
    font-size: 0;
    line-height: 0;
    gap: 0;
  }
  .nav-retail-link .nav-retail-bold i {
    width: 21px;
    height: 21px;
    color: #ffa41c;
  }
  .nav-retail-link .nav-retail-bold svg.whatsapp-brand-icon {
    width: 20px;
    height: 20px;
  }
  #accountName {
    display: none;
  }

  .cart-retail-btn {
    gap: 4px;
    padding: 2px 0 2px 6px;
  }

  .cart-label {
    font-size: 12px;
  }

  .search-category-select {
    display: none;
  }

  .header-search input {
    padding: 0 12px;
    font-size: 13px;
  }

  .header-search button {
    width: 40px;
  }

  /* Subheader / categories bar — flush against nav-shell, no gap */
  .site-subheader {
    top: auto;
    height: 36px;
    overflow: visible;
    scrollbar-width: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .subnav-shell {
    gap: 0;
    padding: 0 0 0 6px;
  }

  .sub-nav {
    overflow-x: auto;
    width: 100%;
    white-space: nowrap;
    gap: 0;
    padding: 2px 8px 2px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sub-nav a,
  .subnav-all-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .shop-menu-dropdown {
    position: fixed;
    top: 122px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }

  .subheader-promo {
    display: none; /* Hide promo line on small mobile */
  }

  /* Two-column product grid on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-body {
    padding: 10px 10px 12px;
  }

  .product-title-row h3 {
    font-size: 13px;
    line-height: 1.3;
  }

  .product-summary {
    display: none; /* Hide summary on mobile cards to save space */
  }

  .card-price-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .price {
    font-size: 15px;
  }

  .price-prefix {
    font-size: 11px;
  }

  .card-link-cta {
    display: none; /* Hide "View →" on mobile, whole card is tappable */
  }

  .product-badge {
    font-size: 7px;
    padding: 2px 5px;
    top: 6px;
    left: 6px;
  }

  .product-media {
    aspect-ratio: 1 / 1; /* Square thumbnails on mobile */
  }

  .hero-carousel {
    height: 356px;
  }

  .hero-slide {
    align-items: flex-end;
    padding: 18px 0 54px;
    background-position: 62% top;
  }

  .hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(10, 16, 28, 0.78) 0%, rgba(10, 16, 28, 0.28) 34%, rgba(234, 237, 237, 0.08) 62%, rgba(234, 237, 237, 0.96) 100%),
      linear-gradient(to right, rgba(10, 16, 28, 0.9) 0%, rgba(10, 16, 28, 0.62) 48%, rgba(10, 16, 28, 0.12) 84%);
    z-index: 1;
  }

  .hero-slide-content {
    max-width: 100%;
    padding-right: 16px;
  }

  .hero-slide-content h1 {
    font-size: 24px;
  }

  .hero-slide-content p {
    font-size: 13px;
    max-width: 300px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-btn {
    flex: 1 1 145px;
    min-height: 40px;
    height: auto;
    padding: 10px 12px;
    justify-content: center;
  }

  .hero-arrow {
    display: none; /* Hide slider arrows on mobile, swipe or dots only */
  }

  .category-page-hero {
    padding: 0;
  }

  .category-page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-right {
    width: 100%;
    gap: 8px;
  }

  .sort-select {
    flex: 1;
    height: 36px;
  }

  .filter-toggle-btn {
    flex: 0 0 auto;
  }

  .category-results-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .category-results-main {
    min-width: 0;
    overflow: hidden;
  }

  /* Filter toggle button */
  .filter-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  .filter-toggle-btn i {
    width: 16px;
    height: 16px;
  }

  .filter-toggle-btn[aria-expanded="true"] {
    background: var(--cyan-soft);
    border-color: var(--blue);
    color: var(--blue);
  }

  /* Refinement panel: hidden on mobile until toggled */
  .refinement-panel {
    display: none !important;
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 12px;
    gap: 10px;
    order: -1; /* sit above the product grid when shown */
  }

  body.category-view.category-filters-open #refinementPanel {
    display: flex !important;
  }

  body.category-view:not(.category-filters-open) #refinementPanel {
    display: none !important;
  }

  /* Collapsible options become horizontal pills on mobile */
  .refinement-options {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .refinement-option {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .active-refinements {
    gap: 6px;
  }

  /* 2-column product grid on mobile */
  .category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .category-product-grid .product-media {
    height: 130px;
  }

  .category-product-grid .product-card-title {
    font-size: 12px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .category-product-grid .product-card-meta {
    font-size: 11px;
  }

  .product-page-section {
    padding: 18px 0 28px;
  }

  .product-landing {
    gap: 16px;
  }

  .product-gallery {
    width: 100%;
  }

  .product-thumbnails {
    margin-top: 10px;
  }

  .product-page-info {
    gap: 16px;
  }

  .product-page-facts {
    grid-template-columns: 1fr;
  }

  .product-page-price-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .product-page-big-price {
    font-size: 24px;
  }

  .purchase-panel {
    padding: 14px;
  }

  .product-page-help {
    align-items: flex-start;
    gap: 8px 12px;
  }

  .product-page-help span {
    display: none;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .product-page-help {
    flex-wrap: wrap;
  }

  .drawer-panel,
  .message-shell {
    max-width: 100%;
    /* Use parent-relative height so the shell shrinks when the soft keyboard appears */
    height: 100%;
    max-height: none;
  }

  .cart-items {
    padding: 12px;
  }

  .cart-footer {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }

  .checkout-form input,
  .checkout-form textarea {
    min-height: 44px;
    font-size: 16px;
  }

  body.category-view .floating-whatsapp,
  body.product-view .floating-whatsapp,
  body.drawer-open .floating-whatsapp,
  body.message-open .floating-whatsapp {
    display: none;
  }

  html body .theme-switcher {
    display: none;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    z-index: 70;
  }

  html body .floating-whatsapp {
    display: none;
  }
}

/* ─── Checkout auth banner ─── */
.checkout-auth-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green-soft);
  border: 1px solid #c8e6c9;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  color: #2e7d32;
  margin-bottom: 4px;
}

.checkout-auth-banner i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--green);
}

.checkout-auth-banner strong {
  color: #1b5e20;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--retail-accent-orange);
  text-decoration: underline;
}

.breadcrumb > span {
  color: var(--muted);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ─── Category toolbar sort ─── */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  height: 28px;
  border: 1px solid #cccccc;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  outline: 0;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--blue);
}

/* ─── Active subnav link ─── */
.sub-nav a.active {
  color: #febd69;
  border-color: rgba(254, 189, 105, 0.5);
}

/* ─── Product card delivery line ─── */
.card-delivery-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
  margin-top: 5px;
}

.card-delivery-line i {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* ─── Product page delivery trust box ─── */
.product-page-delivery {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--green-soft);
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
}

.delivery-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #2e7d32;
  line-height: 1.4;
}

.delivery-row i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--green);
}

.delivery-row strong {
  color: #1b5e20;
}

/* ─── Footer policy links ─── */
.footer-policy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-policy a {
  color: #64748b;
  font-size: 11px;
  font-weight: 400;
  transition: color 120ms ease;
}

.footer-policy a:hover {
  color: #febd69;
  text-decoration: none;
}

.footer-policy-sep {
  color: #334155;
  font-size: 11px;
}

@media (max-width: 600px) {
  .footer-policy {
    justify-content: center;
  }

  .breadcrumb {
    font-size: 11px;
  }

  .card-delivery-line {
    display: none;
  }
}

/* ─── Sub-category pills ─── */
.subcategory-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 4px;
}

.subcategory-pill {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.subcategory-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.subcategory-pill.active {
  background: var(--cyan-soft);
  border-color: var(--blue);
  color: var(--blue);
}

@media (max-width: 600px) {
  .subcategory-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}
