/* ==========================================================================
   BENTO SAND THEME — Shared Theme Stylesheet (Loaded LAST)
   Warm Editorial 3B Design System for all 7 storefront pages
   ========================================================================== */

/* ===== Body Warm Radial Accents & Smooth Typography ===== */
html, body { overflow-x: hidden; width: 100%; max-width: 100%; }
body {
  padding-bottom: 0;
  min-height: 100vh;
  background-color: var(--bg-app);
  background-image:
    radial-gradient(circle at 14% 6%, rgba(180, 83, 9, 0.055), transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(29, 78, 216, 0.045), transparent 42%);
  color: var(--text-primary);
}
[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 14% 6%, rgba(245, 158, 11, 0.055), transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.05), transparent 42%);
}

/* ===== SVG Precision Sizing Utilities ===== */
svg { display: block; flex-shrink: 0; }
.w-3 { width: 12px !important; height: 12px !important; }
.w-4 { width: 16px !important; height: 16px !important; }
.w-5 { width: 20px !important; height: 20px !important; }
.w-6 { width: 24px !important; height: 24px !important; }
.w-7 { width: 28px !important; height: 28px !important; }
.w-12 { width: 48px !important; height: 48px !important; }
.w-16 { width: 64px !important; height: 64px !important; }

/* ===== Phase Badge Pill ===== */
.phase-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: var(--bento-amber-soft);
  color: var(--bento-amber);
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(180, 83, 9, 0.22);
}
[data-theme="dark"] .phase-badge-pill {
  border-color: rgba(245, 158, 11, 0.30);
}

/* ==========================================================================
   HEADER & SUB-NAVBAR (FROSTED WARM SAND + UNIFIED CAPSULE/CIRCLE ICONS)
   ========================================================================== */
[data-theme="light"] .main-header,
[data-theme="light"] .desktop-header {
  background: rgba(246, 243, 236, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(24, 24, 27, 0.08);
}
[data-theme="dark"] .main-header,
[data-theme="dark"] .desktop-header {
  background: rgba(17, 20, 26, 0.90);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-title-accent {
  background: linear-gradient(135deg, #b45309 0%, #1d4ed8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
[data-theme="dark"] .brand-title-accent {
  background: linear-gradient(135deg, #fbbf24 0%, #60a5fa 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Omnisearch Warm Sand */
[data-theme="light"] .omnisearch-input-box {
  background: #ffffff;
  border: 1px solid rgba(24, 24, 27, 0.11);
  box-shadow: 0 2px 10px rgba(42, 34, 24, 0.03);
  border-radius: 9999px;
}
[data-theme="light"] .omnisearch-input-box:focus-within,
[data-theme="dark"] .omnisearch-input-box:focus-within {
  border-color: var(--bento-cobalt);
  box-shadow: 0 0 0 3px var(--bento-cobalt-soft);
}
[data-theme="dark"] .omnisearch-input-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9999px;
}
.omnisearch-smart-badge {
  background: var(--bento-cobalt-soft);
  border-color: rgba(29, 78, 216, 0.24);
  color: var(--bento-cobalt);
}
[data-theme="dark"] .omnisearch-smart-badge {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.30);
}

/* Unified Desktop Capsule Icons (9999px) */
.hotline-badge,
.account-btn,
.theme-toggle-header-btn,
.cart-header-btn,
.megamenu-trigger {
  border-radius: 9999px !important;
}

[data-theme="light"] .hotline-badge,
[data-theme="light"] .account-btn,
[data-theme="light"] .theme-toggle-header-btn {
  background: #ffffff;
  border: 1px solid rgba(24, 24, 27, 0.10);
  color: #18181b;
  box-shadow: 0 2px 8px rgba(42, 34, 24, 0.04);
}
[data-theme="light"] .hotline-badge:hover,
[data-theme="light"] .account-btn:hover,
[data-theme="light"] .theme-toggle-header-btn:hover {
  background: #f2ede3;
  border-color: var(--bento-amber);
  color: var(--bento-amber);
}
[data-theme="dark"] .hotline-badge,
[data-theme="dark"] .account-btn,
[data-theme="dark"] .theme-toggle-header-btn {
  background: #181c24;
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #f4f4f5;
}
[data-theme="dark"] .hotline-badge:hover,
[data-theme="dark"] .account-btn:hover,
[data-theme="dark"] .theme-toggle-header-btn:hover {
  background: #202632;
  border-color: #f59e0b;
  color: #fbbf24;
}

/* Header Icon SVG Colors */
[data-theme="light"] #searchIconBox svg,
[data-theme="light"] #hotlineIconBox svg,
[data-theme="light"] #accountIconBox svg {
  color: #b45309 !important;
  stroke: #b45309 !important;
}
[data-theme="dark"] #searchIconBox svg,
[data-theme="dark"] #hotlineIconBox svg,
[data-theme="dark"] #accountIconBox svg {
  color: #fbbf24 !important;
  stroke: #fbbf24 !important;
}

/* Cart Button */
.cart-header-btn {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(24, 24, 27, 0.15) !important;
  box-shadow: 0 6px 16px -6px rgba(24, 24, 27, 0.35) !important;
}
.cart-header-btn:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
  border-color: transparent !important;
}
[data-theme="dark"] .cart-header-btn {
  background: linear-gradient(135deg, #b45309 0%, #1d4ed8 100%) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}
.cart-header-btn .cart-badge-count {
  background: #ffffff !important;
  color: #b45309 !important;
}

/* Sub-Navbar & Megamenu */
[data-theme="light"] .sub-navbar {
  background: rgba(246, 243, 236, 0.78);
  border-bottom: 1px solid rgba(24, 24, 27, 0.08);
}
[data-theme="dark"] .sub-navbar {
  background: rgba(17, 20, 26, 0.80);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .megamenu-trigger {
  background: #18181b;
  border-color: #18181b;
  color: #ffffff;
}
[data-theme="light"] .megamenu-trigger:hover,
[data-theme="light"] .megamenu-trigger.active {
  background: #b45309;
  border-color: #b45309;
}
[data-theme="dark"] .megamenu-trigger {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.30);
  color: #fbbf24;
}
[data-theme="dark"] .megamenu-trigger #gridIconBox svg {
  color: #fbbf24 !important;
  stroke: #fbbf24 !important;
}
[data-theme="dark"] .megamenu-trigger:hover,
[data-theme="dark"] .megamenu-trigger.active {
  background: linear-gradient(135deg, #b45309 0%, #1d4ed8 100%);
  border-color: transparent;
  color: #ffffff;
}
[data-theme="dark"] .megamenu-trigger:hover #gridIconBox svg,
[data-theme="dark"] .megamenu-trigger.active #gridIconBox svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
[data-theme="light"] .quick-nav-item a { color: #57534e; }
[data-theme="light"] .quick-nav-item a:hover { color: #b45309; }
[data-theme="dark"] .quick-nav-item a { color: #a1a1aa; }
[data-theme="dark"] .quick-nav-item a:hover { color: #fbbf24; }
[data-theme="light"] .quick-nav-item.blue a { color: #1d4ed8; }
[data-theme="dark"] .quick-nav-item.blue a { color: #60a5fa; }
.quick-nav-item a:hover::after {
  background: linear-gradient(90deg, #b45309, #1d4ed8) !important;
}
.megamenu-l1-item:hover,
.megamenu-l1-item.active,
.megamenu-l3-item a:hover {
  color: var(--bento-amber) !important;
}

/* Mobile Top Bar & Search Strip */
[data-theme="light"] .mobile-top-bar,
[data-theme="light"] .mobile-search-strip {
  background: rgba(246, 243, 236, 0.94);
  border-bottom: 1px solid rgba(24, 24, 27, 0.08);
}
[data-theme="dark"] .mobile-top-bar,
[data-theme="dark"] .mobile-search-strip {
  background: rgba(17, 20, 26, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .mobile-top-bar .btn-icon,
[data-theme="light"] .mobile-theme-btn {
  background: #ffffff;
  border: 1px solid rgba(24, 24, 27, 0.11);
  color: #18181b;
}
[data-theme="dark"] .mobile-top-bar .btn-icon,
[data-theme="dark"] .mobile-theme-btn {
  background: #181c24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
}
.mobile-top-bar .cart-header-btn .cart-badge-count {
  background: #b45309 !important;
  color: #ffffff !important;
}

/* Hide Theme Label <= 1024px & Unify Circular Icons <= 900px */
@media (max-width: 1024px) {
  #headerThemeText,
  .theme-toggle-label {
    display: none !important;
  }
  .theme-toggle-header-btn {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    gap: 0 !important;
  }
}
@media (max-width: 900px) {
  .theme-toggle-header-btn,
  .mobile-top-bar .btn-icon,
  .mobile-top-bar .mobile-theme-btn,
  .mobile-top-bar .cart-header-btn {
    border-radius: 50% !important;
  }
}

/* ==========================================================================
   1. EDITORIAL BENTO HERO GRID (64% HERO + 36% COMPANION)
   ========================================================================== */
.bento-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 64fr) minmax(0, 36fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 8px;
  margin-bottom: 22px;
}
.bento-hero-primary {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bento-companion-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bento-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--bento-radius);
  box-shadow: var(--bento-shadow);
}

/* Hero Slider inside 64% Bento Cell */
.hero-slider-container {
  flex: 1;
  display: grid;
  width: 100%;
  height: 100%;
  aspect-ratio: auto !important;
  min-height: 390px;
  max-height: none !important;
  border-radius: var(--bento-radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--bento-shadow);
  background: var(--bg-surface);
}
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 18px;
  padding: 28px 64px 56px;
}
.hero-slide::after {
  background: radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.14) 0%, transparent 56%),
              radial-gradient(circle at 18% 82%, rgba(0, 0, 0, 0.14) 0%, transparent 52%);
}

/* Slide Variants */
.hero-slide.is-warm-sand {
  background: linear-gradient(135deg, #f3ebdc 0%, #e7dcc8 100%) !important;
  color: #18181b !important;
}
[data-theme="dark"] .hero-slide.is-warm-sand {
  background: linear-gradient(135deg, #1b1f29 0%, #242936 100%) !important;
  color: #f4f4f5 !important;
}
.hero-slide.is-warm-sand .hero-title { color: #18181b; text-shadow: none; }
[data-theme="dark"] .hero-slide.is-warm-sand .hero-title { color: #f4f4f5; }
.hero-slide.is-warm-sand .hero-subtitle { color: #57534e; text-shadow: none; }
[data-theme="dark"] .hero-slide.is-warm-sand .hero-subtitle { color: #a1a1aa; }
.hero-slide.is-warm-sand .hero-badge-pill {
  background: rgba(180, 83, 9, 0.12);
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.28);
  box-shadow: none;
}
[data-theme="dark"] .hero-slide.is-warm-sand .hero-badge-pill {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.34);
}
.hero-slide.is-warm-sand .hero-cta-btn {
  background: #18181b;
  color: #ffffff;
  border-color: transparent;
}
.hero-slide.is-warm-sand .hero-cta-btn:hover {
  background: #b45309;
  color: #ffffff;
}
[data-theme="dark"] .hero-slide.is-warm-sand .hero-cta-btn {
  background: #f59e0b;
  color: #11141a;
}

.hero-slide.is-charcoal-studio {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%) !important;
}
.hero-slide.is-cobalt-terracotta {
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 55%, #b45309 100%) !important;
}

/* Hero Content */
.hero-content {
  max-width: 100%;
  min-width: 0;
  gap: 10px;
}
.hero-title {
  font-size: clamp(1.2rem, 2.15vw, 1.85rem);
  line-height: 1.32;
}
.hero-subtitle {
  font-size: clamp(0.78rem, 1.05vw, 0.92rem);
  line-height: 1.65;
  max-width: 42ch;
}
.hero-cta-btn {
  padding: 10px 20px;
  font-size: 0.82rem;
}
.hero-cta-btn:hover { color: #b45309; }

/* Hero Studio Vignette */
.hero-studio-vignette {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(24, 24, 27, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px -16px rgba(24, 24, 27, 0.16);
}
.hero-slide:not(.is-warm-sand) .hero-studio-vignette {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 38px -16px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .hero-slide.is-warm-sand .hero-studio-vignette {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}
.hero-vignette-stage {
  height: 164px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-vignette-stage img {
  max-height: 156px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: var(--warm-cutout-shadow);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-slide.active:hover .hero-vignette-stage img {
  transform: translateY(-4px) scale(1.03);
}
.hero-vignette-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.hero-mini-vignette {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(24, 24, 27, 0.08);
  color: #18181b;
  min-width: 0;
}
.hero-slide:not(.is-warm-sand) .hero-mini-vignette {
  background: rgba(24, 24, 27, 0.56);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f4f4f5;
}
[data-theme="dark"] .hero-slide.is-warm-sand .hero-mini-vignette {
  background: rgba(24, 28, 36, 0.84);
  border-color: rgba(255, 255, 255, 0.10);
  color: #f4f4f5;
}
.hero-mini-vignette-thumb {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f2ede3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  flex-shrink: 0;
}
.hero-mini-vignette-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hero-mini-vignette-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hero-mini-vignette-title {
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-mini-vignette-sub {
  font-size: 0.61rem;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom-Corner Slider Arrows & Pagination — Zero Overlap */
.slider-arrow-prev { right: 14px !important; left: auto !important; }
.slider-arrow-next { left: 14px !important; right: auto !important; }
.slider-arrow-btn,
.hero-nav-btn {
  top: auto !important;
  bottom: 12px !important;
  transform: none !important;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(24, 24, 27, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.slider-arrow-btn:hover,
.hero-nav-btn:hover {
  background: #ffffff;
  color: #18181b;
}
.slider-pagination {
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(24, 24, 27, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}
.slider-dot { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.5); }
.slider-dot.active { width: 24px; background: #ffffff; }

/* Companion Card (a): Compatibility Quick-Selector inside 36% Bento */
.bento-finder-card {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--bento-radius);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--bento-shadow);
}
.bento-finder-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.compatibility-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--bento-amber-soft);
  color: var(--bento-amber);
  border: 1px solid rgba(180, 83, 9, 0.24);
  box-shadow: none;
  flex-shrink: 0;
}
.compatibility-title-text {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.35;
}
.compatibility-desc-text {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.5;
}
.bento-finder-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.bento-finder-controls .compatibility-select {
  min-width: 0;
  width: 100%;
  border-radius: 9999px;
  background-color: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  padding: 9px 14px 9px 32px;
  font-size: 0.78rem;
}
.bento-finder-controls .compatibility-select:focus {
  border-color: var(--bento-cobalt);
  box-shadow: 0 0 0 3px var(--bento-cobalt-soft);
}
.bento-finder-controls .compatibility-filter-btn {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  border-radius: 9999px;
  background: #18181b;
  color: #ffffff;
  padding: 9px 16px;
  font-size: 0.78rem;
}
.bento-finder-controls .compatibility-filter-btn:hover {
  background: var(--bento-amber);
}
[data-theme="dark"] .bento-finder-controls .compatibility-filter-btn {
  background: #202632;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .bento-finder-controls .compatibility-filter-btn:hover {
  background: #f59e0b;
  color: #11141a;
}
.compat-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}
.compat-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
}
.compat-quick-chip:hover {
  border-color: var(--bento-amber);
  color: var(--text-primary);
}
.compat-quick-chip.is-active {
  background: var(--bento-cobalt);
  border-color: var(--bento-cobalt);
  color: #ffffff;
}
[data-theme="dark"] .compat-quick-chip.is-active {
  color: #11141a;
}

/* Companion Card (b): 2-Badge Seller Trust Bento Tile */
.bento-trust-tile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: var(--bento-radius);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--bento-shadow);
}
.bento-trust-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 16px;
  background: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}
.bento-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bento-trust-icon.is-cobalt {
  background: var(--bento-cobalt-soft);
  color: var(--bento-cobalt);
}
.bento-trust-icon.is-amber {
  background: var(--bento-amber-soft);
  color: var(--bento-amber);
}
.bento-trust-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.bento-trust-title {
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.35;
}
.bento-trust-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   MOBILE-ONLY PHONE MODEL DETECTOR (#mobileAutoDetectBanner)
   Hidden on desktop; reveals cleanly on mobile via .is-mobile-visible or JS
   ========================================================================== */
.mobile-detect-banner {
  display: none;
}
.mobile-detect-banner,
.mobile-auto-detect-banner {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--bento-radius);
  background: linear-gradient(135deg, #ffffff 0%, #f4ede0 100%);
  border: 1px solid rgba(180, 83, 9, 0.24);
  box-shadow: var(--bento-shadow);
}
[data-theme="dark"] .mobile-detect-banner,
[data-theme="dark"] .mobile-auto-detect-banner {
  background: linear-gradient(135deg, #181c24 0%, #1e2430 100%);
  border-color: rgba(245, 158, 11, 0.30);
}
.mobile-detect-banner.is-mobile-visible,
.mobile-auto-detect-banner.is-mobile-visible,
#mobileAutoDetectBanner.is-mobile-visible {
  display: block !important;
}
.mobile-detect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.mobile-detect-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mobile-detect-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bento-amber-soft);
  color: var(--bento-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-detect-title {
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.35;
}
.mobile-detect-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.45;
}
.mobile-detect-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.mobile-detect-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 180ms ease;
}
.mobile-detect-chip:hover {
  border-color: var(--bento-amber);
  color: var(--bento-amber);
}
.mobile-detect-chip.is-active {
  background: var(--bento-amber);
  border-color: var(--bento-amber);
  color: #ffffff;
}
[data-theme="dark"] .mobile-detect-chip.is-active {
  color: #11141a;
}

/* ==========================================================================
   2. SINGLE-ROW 9-CATEGORY DISC RAIL (#categoryRailGrid)
   ========================================================================== */
.category-rail-section {
  margin: 6px 0 26px;
}
.category-rail-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.cat-pedestal-disc {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(24, 24, 27, 0.08);
  box-shadow: 0 8px 20px -8px rgba(42, 34, 24, 0.14);
}
.cat-item-link:hover .cat-pedestal-disc {
  border-color: var(--bento-amber);
  box-shadow: 0 12px 26px -8px rgba(180, 83, 9, 0.28);
}
[data-theme="dark"] .cat-pedestal-disc {
  background: #f6f3ec;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.14), 0 8px 20px rgba(0, 0, 0, 0.65);
}
[data-theme="dark"] .cat-item-link:hover .cat-pedestal-disc {
  border-color: #f59e0b;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.35), 0 10px 24px rgba(0, 0, 0, 0.8);
}
.cat-optical-stage {
  width: 48px;
  height: 48px;
  color: #18181b;
}
.cat-optical-stage svg {
  width: 26px;
  height: 26px;
  color: #b45309;
}
.cat-label {
  font-size: 0.77rem;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-item-link:hover .cat-label {
  color: var(--bento-amber);
}
[data-theme="dark"] .cat-item-link:hover .cat-label {
  color: #fbbf24;
  text-shadow: none;
}

@media (max-width: 1024px) and (min-width: 901px) {
  .cat-pedestal-disc { width: 62px; height: 62px; }
  .cat-optical-stage { width: 40px; height: 40px; }
  .cat-label { font-size: 0.71rem; }
}
@media (max-width: 900px) {
  .category-rail-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 14px;
    padding: 8px 4px 12px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .category-rail-grid::-webkit-scrollbar { display: none; }
  .cat-pedestal-disc { border-radius: 50% !important; width: 66px; height: 66px; }
  .compatibility-icon-badge,
  .bento-trust-icon,
  .pillar-icon-capsule,
  .seal-icon-box {
    border-radius: 50% !important;
  }
}

/* ==========================================================================
   3. WARM CHARCOAL FLASH DEALS (#flash-deals)
   ========================================================================== */
.flash-deals-section {
  margin-bottom: 30px;
}
.flash-deals-box {
  background: linear-gradient(135deg, #1c1917 0%, #292524 55%, #451a03 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 20px 44px -16px rgba(124, 45, 18, 0.35) !important;
  border-radius: var(--bento-radius);
}
[data-theme="dark"] .flash-deals-box {
  background: linear-gradient(135deg, #14171f 0%, #221814 55%, #5c220d 100%) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}
.flash-view-all-btn {
  color: #b45309 !important;
}
.flash-view-all-btn:hover {
  color: #1d4ed8 !important;
}
.flash-product-card {
  width: 242px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--bento-radius);
  box-shadow: var(--bento-shadow);
}
.flash-product-card:hover {
  border-color: var(--bento-amber);
  box-shadow: var(--bento-shadow-hover);
}
.flash-card-img-box {
  background: var(--warm-stage-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  padding: 46px 12px 12px !important;
  border-radius: 16px;
}
.flash-card-img-box img.flash-cutout-img {
  width: 100%;
  height: 100%;
  max-height: 138px;
  object-fit: contain;
  filter: var(--warm-cutout-shadow);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.flash-product-card:hover .flash-card-img-box img.flash-cutout-img {
  transform: translateY(-4px) scale(1.04);
}
.flash-product-card .color-swatch-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.flash-product-card .color-swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(24, 24, 27, 0.16);
  display: inline-block;
  flex-shrink: 0;
}

/* Zero-overlap .flash-card-footer */
.flash-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 9px;
  margin-top: auto;
}
.flash-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}
.flash-product-card .text-price-primary {
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text-primary);
  font-weight: 900;
}
.flash-product-card .text-price-strike {
  font-size: 0.71rem;
  white-space: nowrap;
  color: var(--text-muted);
  text-decoration: line-through;
}
.sales-progress-fill {
  background: linear-gradient(90deg, #b45309 0%, #1d4ed8 100%) !important;
}
.flash-product-card .btn-primary {
  width: 100%;
  justify-content: center;
  border-radius: 9999px;
  padding: 7px 12px;
  font-size: 0.76rem;
  background: #18181b !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.flash-product-card .btn-primary:hover {
  background: #b45309 !important;
}
[data-theme="dark"] .flash-product-card .btn-primary {
  background: #b45309 !important;
}
.badge-discount-circle {
  background: #b45309 !important;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.35) !important;
  z-index: 3;
}

/* ==========================================================================
   4. ZERO-OVERLAP CATALOG CARDS (.catalog-card)
   border-radius: 22px, stacked footer (price above full-width pill CTA)
   Preserves PLP 3-col desktop / 100px mobile horizontal row / list-view
   ========================================================================== */
#catalogGridContainer.catalog-grid,
.catalog-section .catalog-grid:not(.plp-products-container) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1120px) {
  #catalogGridContainer.catalog-grid,
  .catalog-section .catalog-grid:not(.plp-products-container) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 840px) {
  #catalogGridContainer.catalog-grid,
  .catalog-section .catalog-grid:not(.plp-products-container) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  #catalogGridContainer.catalog-grid,
  .catalog-section .catalog-grid:not(.plp-products-container) {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.catalog-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--bento-radius);
  padding: 14px;
  box-shadow: var(--bento-shadow) !important;
  gap: 10px;
}
.catalog-card:hover {
  border-color: rgba(180, 83, 9, 0.42) !important;
  box-shadow: var(--bento-shadow-hover) !important;
}
.card-stage-dual {
  background: var(--warm-stage-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 16px;
  padding: 0;
}
#catalogGridContainer .stage-view-default,
.catalog-section .stage-view-default {
  padding: 46px 14px 14px;
}
.card-stage-dual img.catalog-card-img,
.card-stage-dual img.card-preview-img {
  width: 100%;
  height: 100%;
  max-height: 158px;
  object-fit: contain;
  filter: var(--warm-cutout-shadow);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.catalog-card:hover .card-stage-dual img.catalog-card-img,
.catalog-card:hover .card-stage-dual img.card-preview-img {
  transform: translateY(-4px) scale(1.04);
}
@media (max-width: 768px) {
  .plp-products-container .card-stage-dual img.catalog-card-img,
  .plp-products-container .card-stage-dual img.card-preview-img {
    max-height: 100%;
  }
}

/* Seller fallback empty studio capsule */
.card-empty-studio-capsule {
  width: 86px;
  height: 86px;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--bento-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--bento-shadow);
}
.swatch-pill:hover,
.swatch-pill.active {
  box-shadow: 0 0 0 2px var(--bento-amber) !important;
}

/* Stacked Footer: price row above full-width pill CTA — ZERO COLLISION */
.catalog-card-footer {
  background: var(--bg-surface-muted) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 16px !important;
  padding: 11px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 9px !important;
  margin-top: auto !important;
}
.catalog-card:hover .catalog-card-footer {
  background: var(--bg-surface) !important;
  border-color: rgba(180, 83, 9, 0.28) !important;
}
.card-price-group {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 24px;
  width: 100%;
}
.card-main-price {
  font-size: 0.94rem !important;
  font-weight: 900;
  color: var(--text-primary);
  white-space: nowrap;
}
.card-strike-price {
  font-size: 0.72rem !important;
  white-space: nowrap;
}
.card-buy-btn {
  width: 100%;
  justify-content: center;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px -4px rgba(24, 24, 27, 0.30) !important;
  padding: 9px 14px !important;
  font-size: 0.78rem !important;
  gap: 6px !important;
  margin-inline-start: 0;
}
.card-buy-btn:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
  box-shadow: 0 6px 16px -4px rgba(180, 83, 9, 0.40) !important;
}
[data-theme="dark"] .card-buy-btn {
  background: linear-gradient(135deg, #b45309 0%, #1d4ed8 100%) !important;
}
.card-buy-btn.is-out-of-stock {
  background: var(--bg-surface-sunken) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
}

/* Installment Badges (Active gateways only) */
.card-snapppay-breakdown {
  background: rgba(29, 78, 216, 0.09) !important;
  color: #1d4ed8 !important;
  border-color: rgba(29, 78, 216, 0.24) !important;
}
[data-theme="dark"] .card-snapppay-breakdown {
  background: rgba(96, 165, 250, 0.14) !important;
  color: #93c5fd !important;
  border-color: rgba(96, 165, 250, 0.30) !important;
}
.card-installment-pill.is-torobpay,
.card-bnpl-badge.is-torob {
  background: rgba(180, 83, 9, 0.10) !important;
  color: #b45309 !important;
  border-color: rgba(180, 83, 9, 0.24) !important;
}
[data-theme="dark"] .card-installment-pill.is-torobpay,
[data-theme="dark"] .card-bnpl-badge.is-torob {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.30) !important;
}
.card-installment-pill.is-digipay,
.card-bnpl-badge.is-digipay {
  background: rgba(29, 78, 216, 0.09) !important;
  color: #1d4ed8 !important;
  border-color: rgba(29, 78, 216, 0.24) !important;
}
[data-theme="dark"] .card-installment-pill.is-digipay,
[data-theme="dark"] .card-bnpl-badge.is-digipay {
  background: rgba(96, 165, 250, 0.14) !important;
  color: #93c5fd !important;
  border-color: rgba(96, 165, 250, 0.30) !important;
}

/* ==========================================================================
   5. INSTITUTIONAL FOOTER & NORMAL-FLOW MOBILE DOCK
   ========================================================================== */
.luxury-footer-shell {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--bento-radius) !important;
  box-shadow: var(--bento-shadow) !important;
  position: relative;
  overflow: hidden;
}
.luxury-footer-shell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, #b45309 45%, #1d4ed8 75%, transparent 95%) !important;
  opacity: 0.85;
}
[data-theme="dark"] .luxury-footer-shell {
  background: #181c24 !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}
.footer-brand-accent,
[data-theme="dark"] .footer-brand-accent,
[data-theme="dark"] .designer-credit-name,
[data-theme="dark"] .contact-chip svg {
  color: var(--bento-amber) !important;
}
[data-theme="dark"] .pillar-bento-card,
[data-theme="dark"] .seal-bento-card,
[data-theme="dark"] .contact-chip,
[data-theme="dark"] .btn-back-to-top {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.09);
  color: #f4f4f5;
}
[data-theme="dark"] .btn-back-to-top:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: #f59e0b;
  color: #fbbf24;
}
[data-theme="dark"] .footer-nav-list a:hover {
  color: #fbbf24;
}
@media (max-width: 768px) {
  .institutional-footer {
    padding: 16px 0 14px !important;
  }
}

/* In-flow mobile dock (position: relative, never fixed over content) */
.mobile-bottom-dock {
  background: rgba(246, 243, 236, 0.96) !important;
  border: 1px solid rgba(24, 24, 27, 0.10) !important;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
}
[data-theme="dark"] .mobile-bottom-dock {
  background: rgba(24, 28, 36, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.dock-tab-link.active,
.dock-tab-link.active .dock-tab-label {
  color: var(--bento-amber) !important;
}

/* ==========================================================================
   6. SUBPAGE & SHARED SURFACE CONTRAST POLISH
   (category, product, checkout, account, about, faq, cart drawer, reviews)
   ========================================================================== */
.plp-breadcrumb a:hover,
.pdp-breadcrumb a:hover {
  color: var(--bento-amber);
}

/* Cart Drawer Light & Dark Bento Sand Harmony */
[data-theme="dark"] .cart-drawer,
[data-theme="dark"] .cart-drawer-header,
[data-theme="dark"] .coupon-box,
[data-theme="dark"] .cart-drawer-footer {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.09);
}
[data-theme="dark"] .shipping-meter,
[data-theme="dark"] .gateway-selection,
[data-theme="dark"] .cart-item-card,
[data-theme="dark"] .gateway-card,
[data-theme="dark"] .coupon-input {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.10);
}
[data-theme="dark"] .cart-item-thumb,
[data-theme="dark"] .cart-qty-stepper {
  background: #141820;
  border-color: rgba(255, 255, 255, 0.09);
}
[data-theme="dark"] .gateway-card.is-selected {
  background: rgba(96, 165, 250, 0.14);
  border-color: #60a5fa;
}
.cart-checkout-btn {
  border-radius: 9999px;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  box-shadow: 0 6px 18px -6px rgba(24, 24, 27, 0.35);
}
.cart-checkout-btn:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}
[data-theme="dark"] .cart-checkout-btn {
  background: linear-gradient(135deg, #b45309 0%, #1d4ed8 100%);
  box-shadow: 0 8px 22px rgba(180, 83, 9, 0.35);
}

/* Reviews & Q&A Surfaces */
.reviews-scorecard-grid,
.review-item-card,
.qa-card,
.review-modal-box {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  border-radius: var(--bento-radius);
}
[data-theme="dark"] .reviews-scorecard-grid,
[data-theme="dark"] .review-item-card,
[data-theme="dark"] .qa-card,
[data-theme="dark"] .review-modal-box {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.09);
}
[data-theme="dark"] .review-taxonomy-grid,
[data-theme="dark"] .qa-answer-box {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.09);
}
.btn-write-review {
  border-radius: 9999px;
  background: #18181b;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.22);
}
.btn-write-review:hover {
  background: #b45309;
}
[data-theme="dark"] .btn-write-review {
  background: linear-gradient(135deg, #b45309 0%, #1d4ed8 100%);
}

/* Checkout & Account Surface & Button Harmony */
.checkout-form-card,
.checkout-summary-card,
.order-success-card,
.auth-card,
.account-user-banner,
.account-kpi-card,
.order-tracking-card,
.about-cms-card,
.faq-card {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  border-radius: var(--bento-radius);
  box-shadow: var(--bento-shadow);
}
[data-theme="dark"] .checkout-form-card,
[data-theme="dark"] .checkout-summary-card,
[data-theme="dark"] .order-success-card,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .account-user-banner,
[data-theme="dark"] .account-kpi-card,
[data-theme="dark"] .order-tracking-card,
[data-theme="dark"] .about-cms-card,
[data-theme="dark"] .faq-card {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.09);
}
.checkout-next-btn,
.auth-btn-primary:not(.is-outline) {
  border-radius: 9999px;
}

/* ==========================================================================
   7. RESPONSIVE BENTO COLLAPSE (TABLET 768px & MOBILE 360px)
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero-slider-container {
    min-height: 0;
  }
  .bento-companion-col {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .hero-slide {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 20px 54px;
  }
  .hero-vignette-stage {
    height: 136px;
  }
  .hero-vignette-stage img {
    max-height: 128px;
  }
}
@media (max-width: 600px) {
  .bento-trust-tile {
    grid-template-columns: 1fr;
  }
  .bento-finder-controls {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 12px 12px 18px !important;
  }
  .hero-slider-container {
    min-height: 0 !important;
    border-radius: var(--bento-radius);
  }
  .hero-slide {
    padding: 18px 16px 52px;
    gap: 12px;
  }
  .hero-title {
    font-size: 1.12rem !important;
  }
  .hero-subtitle {
    display: block;
    -webkit-line-clamp: unset;
    font-size: 0.77rem !important;
  }
  .hero-studio-vignette {
    padding: 10px;
    gap: 8px;
  }
  .hero-vignette-stage {
    height: 112px;
  }
  .hero-vignette-stage img {
    max-height: 106px;
  }
  .hero-vignette-chips {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .flash-product-card {
    width: 205px;
  }
  .institutional-footer {
    padding: 16px 0 14px !important;
  }
}

/* ==========================================================================
   8. BILINGUAL BRAND CHIPS, SUBCATEGORY FILTERS & PDP QUICK-SPECS GRID
   ========================================================================== */
.omnisearch-brands-section {
  padding: 6px 8px 10px;
  border-bottom: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  margin-bottom: 6px;
}
.omnisearch-section-label {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-muted, #78716c);
  margin-bottom: 7px;
}
.omnisearch-brands-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.omnisearch-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: var(--bento-amber-soft, rgba(180, 83, 9, 0.10));
  border: 1px solid rgba(180, 83, 9, 0.24);
  color: var(--bento-amber, #b45309);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 160ms ease;
}
.omnisearch-brand-pill:hover {
  background: var(--bento-amber, #b45309);
  border-color: var(--bento-amber, #b45309);
  color: #ffffff;
}
.omnisearch-brand-en {
  font-size: 0.6875rem;
  font-weight: 700;
  opacity: 0.85;
  direction: ltr;
}
[data-theme="dark"] .omnisearch-brand-pill {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.30);
  color: #fbbf24;
}
[data-theme="dark"] .omnisearch-brand-pill:hover {
  background: #f59e0b;
  color: #11141a;
}

/* Subcategory & Brand Sidebar Wrapping Guard */
#sidebarSubcategoryList .filter-checkbox-label span,
#sidebarBrandList .filter-checkbox-label span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

/* Mobile Sheet Dynamic Filter Chips */
.mobile-sheet-filters-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
}
.mobile-sheet-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-sheet-filter-title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-primary, #18181b);
}
.mobile-sheet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mobile-sheet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.14));
  background: var(--bg-surface-muted, #f2ede3);
  color: var(--text-primary, #18181b);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
}
.mobile-sheet-pill.is-active {
  background: var(--bento-cobalt, #1d4ed8);
  border-color: var(--bento-cobalt, #1d4ed8);
  color: #ffffff;
}
[data-theme="dark"] .mobile-sheet-filter-title {
  color: #f4f4f5;
}
[data-theme="dark"] .mobile-sheet-pill {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
}
[data-theme="dark"] .mobile-sheet-pill.is-active {
  background: #60a5fa;
  border-color: #60a5fa;
  color: #11141a;
}

/* PDP Mobile Key-Specs Highlight Grid */
.pdp-quick-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.pdp-quick-spec-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  box-shadow: var(--bento-shadow, 0 8px 22px -12px rgba(42, 34, 24, 0.08));
  min-width: 0;
  transition: border-color 180ms ease, transform 180ms ease;
}
.pdp-quick-spec-card:hover {
  border-color: rgba(180, 83, 9, 0.35);
  transform: translateY(-2px);
}
.pdp-quick-spec-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bento-amber-soft, rgba(180, 83, 9, 0.10));
  border: 1px solid rgba(180, 83, 9, 0.22);
  color: var(--bento-amber, #b45309);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pdp-quick-spec-body {
  min-width: 0;
  flex: 1;
}
.pdp-quick-spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #78716c);
  line-height: 1.35;
}
.pdp-quick-spec-value {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--text-primary, #18181b);
  margin-top: 2px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
[data-theme="dark"] .pdp-quick-spec-card {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.09);
}
[data-theme="dark"] .pdp-quick-spec-card:hover {
  border-color: rgba(245, 158, 11, 0.40);
}
[data-theme="dark"] .pdp-quick-spec-icon {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.30);
  color: #fbbf24;
}
[data-theme="dark"] .pdp-quick-spec-label {
  color: #a1a1aa;
}
[data-theme="dark"] .pdp-quick-spec-value {
  color: #f4f4f5;
}
@media (max-width: 900px) {
  .pdp-quick-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 440px) {
  .pdp-quick-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pdp-quick-spec-card {
    padding: 11px 12px;
    border-radius: 16px;
  }
}

/* ==========================================================================
   9. 3-LAYER MEGAMENU COLUMNS, SCOPED BRAND SIDEBAR & SMART DEVICE QUICK BAR
   ========================================================================== */
.megamenu-panel {
  border-radius: 0 0 22px 22px;
  background: var(--bg-surface, #ffffff);
  border-color: var(--border-subtle, rgba(24, 24, 27, 0.09));
}
[data-theme="dark"] .megamenu-panel {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.09);
}
.megamenu-content.is-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.megamenu-l2-block {
  min-width: 0;
}
.megamenu-brands-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}
.megamenu-brand-item {
  display: inline-flex;
}
.megamenu-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: var(--bg-surface-muted, #f2ede3);
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.10));
  color: var(--text-primary, #18181b) !important;
  font-size: 0.74rem !important;
  font-weight: 700;
  transition: all 160ms ease;
}
.megamenu-brand-pill:hover {
  background: var(--bento-amber-soft, rgba(180, 83, 9, 0.10));
  border-color: var(--bento-amber, #b45309);
  color: var(--bento-amber, #b45309) !important;
}
.megamenu-device-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--bg-surface-muted, #f2ede3);
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  color: var(--text-primary, #18181b) !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  transition: all 160ms ease;
}
.megamenu-device-pill:hover {
  background: var(--bento-cobalt-soft, rgba(29, 78, 216, 0.09));
  border-color: rgba(29, 78, 216, 0.28);
  color: var(--bento-cobalt, #1d4ed8) !important;
}
.megamenu-col-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(29, 78, 216, 0.10);
  color: #1d4ed8;
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="dark"] .megamenu-brand-pill,
[data-theme="dark"] .megamenu-device-pill {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.10);
  color: #f4f4f5 !important;
}
[data-theme="dark"] .megamenu-brand-pill:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: #f59e0b;
  color: #fbbf24 !important;
}
[data-theme="dark"] .megamenu-device-pill:hover {
  background: rgba(96, 165, 250, 0.14);
  border-color: #60a5fa;
  color: #93c5fd !important;
}
[data-theme="dark"] .megamenu-col-badge {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}

/* Scoped Brand Hint & Expand Toggle in Sidebar */
.filter-scope-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #78716c);
  background: var(--bg-surface-muted, #f2ede3);
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.08));
  border-radius: 10px;
  padding: 6px 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.filter-scope-hint.is-scoped {
  background: var(--bento-amber-soft, rgba(180, 83, 9, 0.10));
  border-color: rgba(180, 83, 9, 0.22);
  color: var(--bento-amber, #b45309);
}
.btn-toggle-all-brands {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  margin-top: 4px;
  border-radius: 9999px;
  border: 1px dashed rgba(29, 78, 216, 0.35);
  background: var(--bento-cobalt-soft, rgba(29, 78, 216, 0.07));
  color: var(--bento-cobalt, #1d4ed8);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 160ms ease;
}
.btn-toggle-all-brands:hover {
  background: var(--bento-cobalt, #1d4ed8);
  border-style: solid;
  border-color: var(--bento-cobalt, #1d4ed8);
  color: #ffffff;
}
[data-theme="dark"] .filter-scope-hint {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}
[data-theme="dark"] .filter-scope-hint.is-scoped {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}
[data-theme="dark"] .btn-toggle-all-brands {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}
[data-theme="dark"] .btn-toggle-all-brands:hover {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #ffffff;
}
.mobile-sheet-pill.is-toggle {
  border-style: dashed;
  border-color: rgba(29, 78, 216, 0.35);
  color: var(--bento-cobalt, #1d4ed8);
  background: var(--bento-cobalt-soft, rgba(29, 78, 216, 0.08));
}
[data-theme="dark"] .mobile-sheet-pill.is-toggle {
  border-color: rgba(96, 165, 250, 0.38);
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.14);
}

/* Quick Device Selector Multi-line Hint & Overflow Guard */
.plp-device-quick-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.plp-device-quick-label {
  white-space: normal;
  flex-shrink: 1;
  align-items: flex-start;
  min-width: 0;
}
.plp-device-quick-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.plp-device-quick-title {
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--text-primary, #18181b);
  line-height: 1.4;
}
.plp-device-quick-hint {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted, #78716c);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
[data-theme="dark"] .plp-device-quick-title {
  color: #f4f4f5;
}
[data-theme="dark"] .plp-device-quick-hint {
  color: #a1a1aa;
}

/* ==========================================================================
   10. MULTI-IMAGE PDP THUMBNAIL RAIL, PLP MULTI-COLOR & HOVER SECOND ANGLE
   ========================================================================== */
.pdp-main-stage {
  transition: opacity 180ms ease;
}
.pdp-thumbs-rail {
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}
.pdp-thumbs-rail::-webkit-scrollbar {
  display: none;
}
.pdp-thumb-item {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 14px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface, #ffffff);
  border: 1.5px solid var(--border-subtle, rgba(24, 24, 27, 0.12));
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.pdp-thumb-item:hover {
  border-color: rgba(180, 83, 9, 0.55);
  transform: translateY(-1px);
}
.pdp-thumb-item.active {
  border: 2px solid var(--bento-amber, #b45309) !important;
  box-shadow: 0 0 0 3px var(--bento-amber-soft, rgba(180, 83, 9, 0.16)) !important;
}
[data-theme="dark"] .pdp-thumb-item {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .pdp-thumb-item:hover {
  border-color: rgba(245, 158, 11, 0.6);
}
[data-theme="dark"] .pdp-thumb-item.active {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22) !important;
}
@media (max-width: 868px) {
  .pdp-thumbs-rail {
    justify-content: flex-start;
    overflow-x: auto;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 4px 2px 6px;
  }
  .pdp-thumb-item {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    scroll-snap-align: start;
  }
}

/* PLP Multi-Color Swatches (+N count pill) */
.card-color-swatches {
  flex-wrap: wrap;
}
.swatch-more-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 9999px;
  background: var(--bg-surface-muted, #f2ede3);
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.12));
  color: var(--text-muted, #57534e);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.45;
  direction: ltr;
}
[data-theme="dark"] .swatch-more-pill {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
}

/* PLP Second Gallery Angle on Hover Stage */
.stage-view-hover.has-hover-image {
  background: var(--warm-stage-bg, radial-gradient(circle at 50% 45%, #fcfaf6 22%, #f1ebe0 100%));
  padding: 44px 12px 10px;
  gap: 6px;
}
.stage-view-hover.has-hover-image img.card-hover-img {
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 136px;
  object-fit: contain;
  filter: var(--warm-cutout-shadow);
}
.stage-hover-caption {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--bg-surface, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.10));
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-primary, #18181b);
  flex-shrink: 0;
}
[data-theme="dark"] .stage-hover-caption {
  background: rgba(24, 28, 36, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
}
