/** Shopify CDN: Minification failed

Line 1611:31 Expected ":"
Line 1612:53 Expected ":"
Line 1613:51 Expected ":"
Line 1614:43 Expected ":"
Line 1615:41 Expected ":"
Line 1616:71 Expected ":"
Line 1617:37 Expected ":"
Line 1618:29 Expected ":"
Line 1619:37 Expected ":"
Line 1620:57 Expected ":"
... and 11 more hidden warnings

**/
/* ============================================================
   SHOP / CATALOG SYSTEM  shop-system.css
   Covers: shop.html, essentials.html, limited.html, collectibles.html
   Luxury-minimal design  CSS-variable driven dark/light mode
   ============================================================ */

/*  1  PAGE-LEVEL HERO BANNERS  */
.shop-page-hero {
  position: relative;
  width: 100%;
  padding: 180px 0 80px;
  background: var(--paper);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
html.dark-mode .shop-page-hero {
  /* background: var(--paper) automatically handles the dark mode flip */
  border-bottom-color: rgba(255,255,255,0.06);
}

.shop-page-hero-bg,
.shop-page-hero-overlay {
  display: none !important;
}

.shop-page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.shop-page-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 24px;
  display: block;
  transition: color 0.4s var(--ease);
}

.shop-page-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.shop-page-title em {
  font-style: italic;
  font-weight: 400;
}

.shop-page-lede {
  margin-top: 24px;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  color: var(--stone);
  max-width: 50ch;
  transition: color 0.4s var(--ease);
}

.shop-page-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.shop-page-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.shop-page-meta-num {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  transition: color 0.4s var(--ease);
}
.shop-page-meta-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.4s var(--ease);
}

/*  2  COLLECTION HERO  Luxury editorial header  */
.otc-collection-hero {
  padding: clamp(120px, 18vh, 200px) clamp(22px, 5vw, 60px) clamp(48px, 8vh, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--ink); /* Moody dark background */
  color: var(--paper);
}

/* Subtle moving mesh gradient */
@keyframes meshGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.otc-collection-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(at 0% 0%, rgba(60,60,70,0.15) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(80,80,90,0.1) 0px, transparent 50%),
              radial-gradient(at 0% 100%, rgba(100,100,110,0.08) 0px, transparent 50%);
  background-size: 200% 200%;
  animation: meshGlow 15s ease infinite;
  z-index: 0;
  pointer-events: none;
}

/* Glassmorphism Frosted Container */
.hero-glass-container {
  background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem 4rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 680px;
}

/* Ensure content sits inside the glass cleanly */
.hero-glass-container .otc-hero-eyebrow,
.hero-glass-container .otc-hero-title,
.hero-glass-container .otc-hero-tagline,
.hero-glass-container .otc-hero-meta {
  position: relative;
  z-index: 2;
}

/*  2a  HERO MODIFIERS (Exclusivity & Vibe)  */

/*  LUXURY COLLECTION HERO (Limited Archive)  */
.hero-luxe {
  position: relative;
  min-height: 80vh;
  background: #050505; /* Deep, almost absolute black */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(24px, 5vw, 64px);
}
.hero-luxe-noise {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  animation: noisePan 8s steps(10) infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes noisePan {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
  100% { transform: translate(0, 0); }
}

.hero-luxe-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Corners */
.luxe-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.luxe-corner-tl { top: 0; left: 0; }
.luxe-corner-tr { top: 0; right: 0; text-align: right; }
.luxe-corner-bl { bottom: 0; left: 0; }
.luxe-corner-br { bottom: 0; right: 0; text-align: right; }

.luxe-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.luxe-value {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

/* Center Typography */
.luxe-center {
  text-align: center;
  animation: luxeFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.luxe-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  line-height: 0.9;
}
.luxe-title-line {
  font-family: var(--sans);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-transform: uppercase;
}
.luxe-title-line.luxe-italic {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3.5rem, 9vw, 9rem);
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.8);
  margin-top: -0.1em;
}
.luxe-subtitle {
  font-family: var(--sans);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

@keyframes luxeFadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-luxe {
    min-height: 60vh;
  }
  .hero-luxe-layout {
    min-height: 50vh;
  }
}

/* ESSENTIALS: Friendly, Warm, Soft */
.hero-essentials {
  background: #e9e4d9; /* Very warm paper */
}
html.dark-mode .hero-essentials {
  background: #2a251f; /* Soft brown in dark mode */
}
.hero-essentials .otc-hero-title {
  font-family: var(--sans); /* Use sans-serif for a friendlier look */
  font-weight: 500;
  letter-spacing: -0.04em;
}
.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: blobRotate 30s linear infinite;
  pointer-events: none;
}
html.dark-mode .hero-blob path {
  fill: #342e27;
}
@keyframes blobRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  33% { transform: translate(-50%, -50%) rotate(120deg) scale(1.1); }
  66% { transform: translate(-50%, -50%) rotate(240deg) scale(0.9); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* COLLECTIBLES: Luxury Minimal */
.hero-collectibles {
  background: var(--paper);
  padding: clamp(100px, 15vh, 140px) clamp(22px, 5vw, 60px) clamp(50px, 8vh, 80px);
}
html.dark-mode .hero-collectibles {
  background-color: #0a0a0a;
}
/* Allow the bottom subtle dividing line to show by removing the display: none override */

/* SHOP ALL: Grand, Sweeping Gradient */
.hero-shop {
  background: linear-gradient(135deg, rgba(22, 19, 15, 0.05) 0%, transparent 100%), var(--paper);
}
html.dark-mode .hero-shop {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%), var(--paper);
}
.hero-shop .otc-hero-title {
  font-size: clamp(48px, 9vw, 112px); /* Even larger for the main shop */
}

/* Premium Entrance Animations */
@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(20px);  }
  100% { opacity: 1; transform: translateY(0);  }
}

/* Subtle decorative line */
.otc-collection-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--line);
  transition: background 0.4s var(--ease);
}
html.dark-mode .otc-collection-hero::after {
  background: rgba(255,255,255,0.1);
}

.otc-hero-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
  display: block;
  transition: color 0.4s var(--ease);
  animation: heroFadeUp 1.2s var(--ease) forwards;
}

.otc-hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
  transition: color 0.4s var(--ease);
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease) 0.1s forwards;
}
.otc-hero-title em {
  font-style: italic;
  font-weight: 400;
}

.otc-hero-tagline {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: var(--stone);
  max-width: 44ch;
  margin: 0 auto;
  line-height: 1.5;
  transition: color 0.4s var(--ease);
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease) 0.2s forwards;
}

.otc-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease) 0.3s forwards;
}
.otc-hero-meta-item {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.4s var(--ease);
}
.otc-hero-meta-item span {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.4s var(--ease);
}

/*  2b  TOOLBAR  Sort & filter controls  */
.otc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(22px, 5vw, 60px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.4s var(--ease);
}
html.dark-mode .otc-toolbar {
  border-bottom-color: rgba(255,255,255,0.06);
}

.otc-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hide old filter container */
.blu-filters-container {
  display: none;
}

.blu-product-count {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.02em;
  transition: color 0.4s var(--ease);
}

/* Sort dropdown trigger */
.blu-sort-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
  user-select: none;
}
html.dark-mode .blu-sort-trigger {
  border-color: rgba(255,255,255,0.12);
}
.blu-sort-trigger:hover {
  border-color: var(--ink);
}
html.dark-mode .blu-sort-trigger:hover {
  border-color: transparent;
}
.blu-sort-trigger svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.blu-sort-trigger.is-open svg {
  transform: rotate(180deg);
}

/* Sort dropdown menu */
.blu-sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  z-index: 500;
}
html.dark-mode .blu-sort-dropdown {
  background: #1c1915;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.blu-sort-trigger.is-open .blu-sort-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.blu-sort-option {
  display: block;
  width: 100%;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--stone);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.01em;
}
.blu-sort-option:hover {
  color: var(--ink);
  background: var(--paper-2);
}
html.dark-mode .blu-sort-option:hover {
  background: rgba(255,255,255,0.05);
}
.blu-sort-option.active {
  color: var(--ink);
  font-weight: 600;
}

/* Refine button */
.blu-advance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  line-height: 1;
  white-space: nowrap;
}
html.dark-mode .blu-advance {
  border-color: rgba(255,255,255,0.12);
}
.blu-advance svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.blu-advance:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
html.dark-mode .blu-advance:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/*  Filter pills (hidden  use Filters drawer instead)  */
.blu-pills-wrap {
  display: none;
}

/* Query note */
#shop-query-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--stone);
  padding: 6px clamp(22px, 5vw, 60px) 0;
  transition: color 0.4s var(--ease);
}

/*  3  PRODUCT GRID  */
.blu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: clamp(20px, 3vw, 36px) clamp(22px, 5vw, 60px);
  background: transparent;
  transition: background 0.4s var(--ease);
}

.blu-card {
  position: relative;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  transition: transform 0.4s var(--ease);
}
html.dark-mode .blu-card {
  background: transparent;
}
.blu-card:hover {
  transform: translateY(-3px);
}
html.dark-mode .blu-card:hover {
  transform: translateY(-3px);
}

/* Image wrap */
.blu-card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: transparent;
  border-radius: 12px;
  transition: background 0.4s var(--ease);
}
html.dark-mode .blu-card-img-wrap {
  background: transparent;
}

/* Front / back images */
.blu-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.7s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.blu-card-img--front { opacity: 1; }
.blu-card-img--back  { opacity: 0; }
.blu-card:hover .blu-card-img--front { opacity: 0; transform: scale(1.04); }
.blu-card:hover .blu-card-img--back  { opacity: 1; transform: scale(1.04); }

/* "NEW" badge removed as per spec */

/* Info row */
.blu-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 0;
  background: transparent;
  flex: 1;
}
html.dark-mode .blu-card-info {
}

.blu-card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.blu-card-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  transition: color 0.4s var(--ease);
}

.blu-card-price {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.02em;
  transition: color 0.4s var(--ease);
}

/* Add button  ghost style */
.blu-card-add {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
html.dark-mode .blu-card-add {
  border-color: rgba(255,255,255,0.12);
}
.blu-card-add:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
}
html.dark-mode .blu-card-add:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.blu-card-add.is-added {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
html.dark-mode .blu-card-add.is-added {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/*  5  REFINE DRAWER  */
.blu-refine-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(16, 13, 10, 0.45);
    opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
html.dark-mode .blu-refine-overlay {
  background: rgba(0, 0, 0, 0.55);
}
.blu-refine-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.blu-refine {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 710;
  width: min(340px, 85vw);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
    will-change: transform;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
  box-shadow: -12px 0 60px rgba(0,0,0,0.12);
}
html.dark-mode .blu-refine {
  background: #161310;
  box-shadow: -12px 0 60px rgba(0,0,0,0.5);
}
.blu-refine.open {
  transform: translateX(0);
}

/* Drawer header */
.blu-refine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 32px 24px;
  flex-shrink: 0;
}

.blu-refine-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}

.blu-refine-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--stone);
  cursor: pointer;
  border: 1px solid var(--line-soft);
  background: transparent;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
html.dark-mode .blu-refine-close {
  border-color: rgba(255,255,255,0.08);
}
.blu-refine-close:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--line);
}
html.dark-mode .blu-refine-close:hover {
  background: rgba(255,255,255,0.06);
  color: var(--paper);
  border-color: rgba(255,255,255,0.15);
}

/* Drawer body */
.blu-refine-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}
html.dark-mode .blu-refine-body {
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.blu-refine-body::-webkit-scrollbar { width: 4px; }
.blu-refine-body::-webkit-scrollbar-track { background: transparent; }
.blu-refine-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}
html.dark-mode .blu-refine-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}

.blu-refine-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blu-refine-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 2px;
  transition: color 0.4s var(--ease);
}

.blu-refine-opts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blu-refine-opt {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--stone);
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  padding: 11px 16px;
  cursor: pointer;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  text-align: left;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.blu-refine-opt:hover {
  color: var(--ink);
  background: rgba(0,0,0,0.03);
  border-left-color: var(--line);
}
html.dark-mode .blu-refine-opt:hover {
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(255,255,255,0.15);
}
.blu-refine-opt.active {
  color: var(--ink);
  font-weight: 600;
  background: rgba(0,0,0,0.04);
  border-left-color: var(--ink);
  text-decoration: none;
}
html.dark-mode .blu-refine-opt.active {
  color: var(--paper);
  background: rgba(255,255,255,0.06);
  border-left-color: var(--paper);
}

/* Drawer footer */
.blu-refine-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px 32px;
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
  transition: border-color 0.4s var(--ease);
}
html.dark-mode .blu-refine-foot {
  border-top-color: rgba(255,255,255,0.06);
}

.blu-refine-reset {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.25s var(--ease);
  text-decoration: none;
  position: relative;
}
.blu-refine-reset::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
  transition: background 0.25s var(--ease);
}
.blu-refine-reset:hover {
  color: var(--ink);
}
.blu-refine-reset:hover::after {
  background: var(--ink);
}

.blu-refine-done {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 14px 32px;
  cursor: pointer;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
html.dark-mode .blu-refine-done {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.blu-refine-done:hover {
  background: transparent;
  color: var(--ink);
}
html.dark-mode .blu-refine-done:hover {
  background: transparent;
  color: var(--paper);
  border-color: transparent;
}

/*  6  RESPONSIVE  */
@media (max-width: 1200px) {
  .blu-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .blu-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .otc-hero-meta { gap: 24px; }
}
@media (max-width: 600px) {
  .shop-page-title { font-size: clamp(38px, 13vw, 72px); }
  .otc-collection-hero { padding: 100px 22px 40px; }
  .otc-hero-title { font-size: clamp(36px, 10vw, 56px); }
  .otc-hero-meta { flex-direction: column; gap: 16px; }
  .otc-toolbar {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
  }
  .otc-toolbar-left {
    display: contents;
  }
  .blu-grid { gap: 10px; padding: 14px 18px; }
  .blu-card-info { padding: 10px 12px 12px; }
  .blu-card-add { padding: 6px 12px; font-size: 9.5px; }
  .blu-sort-trigger { font-size: 11px; padding: 6px 12px; grid-column: 2; }
  .blu-advance { font-size: 11px; padding: 6px 12px; grid-column: 1; }
  .blu-product-count {
    grid-column: 3;
    justify-self: end;
    font-size: 11px;
    text-align: right;
  }
  .blu-sort-dropdown { right: auto; left: 0; }
}

/*  7  EMPTY STATE  */
.blu-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  font-family: var(--sans);
  color: var(--stone);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/*  8  ADDITIONAL MOBILE FIXES  */
@media (max-width: 480px) {
  /* Hero */
  .shop-page-hero {
    padding: 130px 0 50px;
  }
  .shop-page-title {
    font-size: clamp(32px, 11vw, 56px);
  }
  .shop-page-meta {
    gap: 20px;
    margin-top: 28px;
  }
  .shop-page-meta-item {
    gap: 4px;
  }
  .otc-collection-hero {
    padding: 90px 16px 32px;
  }
  /* Grid */
  .blu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px 14px;
  }
  .blu-card-info {
    padding: 8px 10px 10px;
  }
  .blu-card-title {
    font-size: 12px;
  }
  .blu-card-price {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .blu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
/*  PRODUCT DETAIL MODAL (FLIP Transition)  */
.pdm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  display: flex;
}
.pdm-modal.is-active {
  pointer-events: all;
  visibility: visible;
}
.pdm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244, 244, 244, 0.7); /* Light dim/blur */
    opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
html.dark-mode .pdm-overlay {
  background: rgba(0, 0, 0, 0.7);
}
.pdm-modal.is-active .pdm-overlay {
  opacity: 1;
}

/*  Panel Layout (Desktop Split)  */
.pdm-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40%;
  max-width: 500px;
  height: calc(100% - 40px);
  background: #1A1A1A;
  border-radius: 20px;
  transform: translateX(120%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15);
}
.pdm-modal.is-active .pdm-panel {
  transform: translateX(0);
}
.pdm-panel-inner {
  padding: 48px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

/*  Custom Close Button  */
.pdm-close-custom {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #2A2A2A;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1070; /* Higher than pdm-flip-clone-wrapper */
  overflow: hidden;
  padding: 0;
  transition: background 0.3s ease;
}
.pdm-close-custom:hover {
  background: #333333;
}
.pdm-close-text {
  font-family: var(--sans);
  font-size: 10px;
  color: #fff;
  z-index: 2;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: -6px;
  background: rgba(42, 42, 42, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
}
.pdm-close-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 1;
}

/*  Panel Content  */
.pdm-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 24px;
}
.pdm-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #ffffff;
}
.pdm-price {
  font-family: var(--sans);
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 32px;
}
.pdm-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: #aaaaaa;
  margin-bottom: 40px;
}
.pdm-size-chart {
  margin: 16px 0;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  font-family: monospace;
  font-size: 12px;
  color: #cccccc;
}

/*  Custom Add Button  */
.pdm-footer {
  margin-top: auto;
  padding-top: 24px;
}
.pdm-add-btn-custom {
  width: 100%;
  background: #ffffff;
  color: #000000;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}
.pdm-add-btn-custom:hover {
  background: #f0f0f0;
  transform: scale(0.98);
}

/*  Thumbnails  */
.pdm-thumbnails {
  position: absolute;
  bottom: 12vh;
  left: 12vw;
  display: flex;
  gap: 16px;
  z-index: 1060; /* Higher than pdm-flip-clone-wrapper (1050) */
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  will-change: transform;
}
.pdm-thumbnails::-webkit-scrollbar {
  display: none;
}
.pdm-modal.is-active .pdm-thumbnails {
  opacity: 1;
  pointer-events: all;
  transition-delay: 0.3s;
}
.pdm-thumb-item {
  width: 72px;
  height: 96px;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  isolation: isolate;
  flex-shrink: 0; /* Prevents squishing */
}
html.dark-mode .pdm-thumb-item {
  background: transparent;
}
.pdm-thumb-item.active {
  border-color: #000000;
}
html.dark-mode .pdm-thumb-item.active {
  border-color: #ffffff;
}
.pdm-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*  Panel Layout (Mobile Bottom Sheet)  */
@media (max-width: 900px) {
  .pdm-panel {
    width: 100%;
    max-width: 100%;
    height: 60vh; /* Fixed height perfectly meets 40vh image */
    top: auto;
    bottom: 0;
    right: 0;
    transform: translateY(100%);
    border-radius: 24px 24px 0 0;
  }
  .pdm-modal.is-active .pdm-panel {
    transform: translateY(0);
  }
  .pdm-panel-inner {
    padding: 16px 24px 100px; /* Reduced top padding */
    height: 100%;
    overflow-y: auto; /* Allow internal scrolling for long descriptions */
  }
  .pdm-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px 32px;
    background: linear-gradient(to top, #1A1A1A 80%, transparent);
  }
  .pdm-thumbnails {
    position: static;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    left: auto;
    bottom: auto;
    top: auto;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 8px; /* Room for scroll */
  }
  .pdm-thumb-item {
    width: 64px;
    height: 84px;
  }
  
  /* Fix Mobile Typography Sizes */
  .pdm-title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .pdm-price {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .pdm-desc {
    font-size: 12px;
    line-height: 1.5;
  }
  .pdm-size-chart {
    font-size: 10px;
    padding: 10px;
    margin: 12px 0;
  }

  /* Fixed Floating Close Button for Mobile */
  .pdm-close-custom {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.9);
        z-index: 1070;
  }
  .pdm-close-text, .pdm-close-thumb {
    display: none; /* Hide visual clutter */
  }
  .pdm-close-custom::before, .pdm-close-custom::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #ffffff;
    top: 50%;
    left: 50%;
    margin-top: -1px;
    margin-left: -8px;
  }
  .pdm-close-custom::before { transform: rotate(45deg); }
  .pdm-close-custom::after { transform: rotate(-45deg); }
}

/*  FLIP Clone (The animating image)  */
.pdm-flip-clone-wrapper {
  position: fixed;
  z-index: 1050; /* Strictly higher than thumbnails (1002) and modal (1000) */
  border-radius: 16px;
  background: transparent; /* Fixed white border */
  overflow: hidden;
  isolation: isolate; /* Isolate the blend mode */
  transform-origin: top left;
}
html.dark-mode .pdm-flip-clone-wrapper {
  background: transparent; /* Fixed white border */
}
.pdm-flip-clone-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevent stretching and overlap */
  transition: opacity 0.15s ease;
}

/*  MOBILE GRID VIEW TOGGLES  */
.mobile-grid-toggles {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}
.mobile-grid-toggles button {
  background: transparent;
  border: 1.5px solid var(--line-soft);
  border-radius: 6px;
  cursor: pointer;
  padding: 5px;
  opacity: 0.4;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.mobile-grid-toggles button.active {
  opacity: 1;
  border-color: var(--ink);
  background: rgba(0,0,0,0.04);
}
html.dark-mode .mobile-grid-toggles button.active {
  border-color: var(--paper);
  background: rgba(255,255,255,0.08);
}
.mobile-grid-toggles button svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  display: block;
}
html.dark-mode .mobile-grid-toggles button svg { stroke: #fff; }

@media (max-width: 900px) {
  .mobile-grid-toggles { display: flex; }
}

/*  GRID COLUMN SWITCHING  */
@media (max-width: 900px) {
  .blu-grid.is-1-col {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .blu-grid.is-1-col .blu-card-img {
    aspect-ratio: 3/4;
  }
  .blu-grid.is-2-col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/*  GLASSMORPHISM REFINE DRAWER  */
.blu-refine {
  background: rgba(255, 255, 255, 0.65) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow:
    -12px 0 48px rgba(0, 0, 0, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.4) !important;
  width: min(320px, 82vw) !important;
}
html.dark-mode .blu-refine {
  background: rgba(18, 16, 14, 0.7) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    -12px 0 48px rgba(0, 0, 0, 0.45),
    inset 1px 0 0 rgba(255, 255, 255, 0.04) !important;
}

.blu-refine-overlay {
  background: rgba(0, 0, 0, 0.18) !important;
    }
html.dark-mode .blu-refine-overlay {
  background: rgba(0, 0, 0, 0.4) !important;
}

/* Glassmorphism option pills */
.blu-refine-opt {
  border-radius: 8px !important;
  border-left: none !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
}
.blu-refine-opt:hover {
  background: rgba(0,0,0,0.05) !important;
}
html.dark-mode .blu-refine-opt:hover {
  background: rgba(255,255,255,0.06) !important;
}
.blu-refine-opt.active {
  background: rgba(0,0,0,0.07) !important;
  border-left: none !important;
  box-shadow: inset 0 0 0 1.5px var(--ink) !important;
}
html.dark-mode .blu-refine-opt.active {
  background: rgba(255,255,255,0.08) !important;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5) !important;
}

.blu-refine-body {
  overflow-y: auto !important;
  max-height: calc(100vh - 150px) !important;
  padding: 0 24px 24px !important;
  gap: 28px !important;
}

.blu-refine-head {
  padding: 24px 24px 18px !important;
}

.blu-refine-foot {
  padding: 16px 24px 24px !important;
}

/*  SMALLER DRAWER ON MOBILE  */
@media (max-width: 600px) {
  .blu-refine {
    width: min(260px, 78vw) !important;
  }
  .blu-refine-head {
    padding: 20px 20px 14px !important;
  }
  .blu-refine-body {
    padding: 0 20px 20px !important;
    gap: 22px !important;
  }
  .blu-refine-foot {
    padding: 14px 20px 20px !important;
  }
  .blu-refine-title {
    font-size: 20px !important;
  }
  .blu-refine-opt {
    padding: 8px 12px !important;
    font-size: 12.5px !important;
  }
  .blu-refine-label {
    font-size: 9px !important;
  }
}

/* Low Stock Badge */
.blu-card-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #ff3333;
    color: white;
    font-size: 10px;
    font-family: var(--sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
}

 . p d m - s i z e - b t n   { 
     b a c k g r o u n d :   t r a n s p a r e n t ; 
     b o r d e r :   1 p x   s o l i d   # c c c ; 
     b o r d e r - r a d i u s :   4 p x ; 
     p a d d i n g :   8 p x   1 6 p x ; 
     f o n t - f a m i l y :   ' I n t e r ' ,   s a n s - s e r i f ; 
     f o n t - s i z e :   1 4 p x ; 
     c o l o r :   # 0 0 0 ; 
     c u r s o r :   p o i n t e r ; 
     t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; 
 } 
 h t m l . d a r k - m o d e   . p d m - s i z e - b t n   { 
     b o r d e r - c o l o r :   # 5 5 5 ; 
     c o l o r :   # f f f ; 
 } 
 . p d m - s i z e - b t n . s e l e c t e d   { 
     b a c k g r o u n d :   # 0 0 0 ; 
     c o l o r :   # f f f ; 
     b o r d e r - c o l o r :   # 0 0 0 ; 
 } 
 h t m l . d a r k - m o d e   . p d m - s i z e - b t n . s e l e c t e d   { 
     b a c k g r o u n d :   # f f f ; 
     c o l o r :   # 0 0 0 ; 
     b o r d e r - c o l o r :   # f f f ; 
 } 
 
 
 
/* PDM overrides */
.pdm-images .pdm-img-main {
  border-radius: 12px;
  max-width: 100% !important;
  max-height: 85vh !important; /* increased from 40vh or similar to be larger */
}
