/* ==========================================================================
   XclusivePleasures — Cozy Shop CSS
   Luxury Cyber-Minimalist Commerce Experience
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design Tokens
   -------------------------------------------------------------------------- */

:root {
  --c-black:      #000000;
  --c-gold:       #D4AF37;
  --c-gold-light: #E8CC6B;
  --c-gold-dim:   rgba(212, 175, 55, 0.15);
  --c-purple:     #9D4EDD;
  --c-purple-dim: rgba(157, 78, 221, 0.12);
  --c-white:      #FFFFFF;
  --c-white-10:   rgba(255,255,255,0.10);
  --c-white-06:   rgba(255,255,255,0.06);
  --c-white-03:   rgba(255,255,255,0.03);
  --c-white-60:   rgba(255,255,255,0.60);
  --c-white-40:   rgba(255,255,255,0.40);

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --radius-sm:    4px;
  --radius-md:    10px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  --ease-luxury:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);

  --dur-fast:     0.15s;
  --dur-mid:      0.3s;
  --dur-slow:     0.55s;
  --dur-cinematic:0.85s;

  /* Bug Fix 3: raise modal z-indices above sticky headers (Elementor Pro
     and Hello theme use up to z-index: 9999 for sticky nav) */
  --z-card:       10;
  --z-filters:    99990;
  --z-overlay:    99991;
  --z-panel:      99992;
  --z-qv:         99993;
  --z-cart:       99994;
  --z-toast:      99999;

  --sidebar-w:    240px;
  --card-gap:     16px;

  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);
  --glass-blur:   saturate(180%) blur(20px);
}

/* --------------------------------------------------------------------------
   1. Base Reset & Scope
   -------------------------------------------------------------------------- */

.cozy-shop *,
.cozy-shop *::before,
.cozy-shop *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cozy-shop {
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding: 0 0 80px;
}

.cozy-shop a {
  color: inherit;
  text-decoration: none;
}

.cozy-shop button {
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
}

.cozy-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible — keyboard nav */
.cozy-shop :focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   2. Google Fonts Import
   -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400&display=swap');

/* --------------------------------------------------------------------------
   3. Shop Header
   -------------------------------------------------------------------------- */

.cozy-shop__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 64px 48px 40px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.cozy-shop__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, var(--c-purple-dim), transparent),
    radial-gradient(ellipse 40% 60% at 80% 20%, var(--c-gold-dim), transparent);
  pointer-events: none;
}

.cozy-shop__header-inner {
  position: relative;
  z-index: 1;
}

.cozy-shop__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

.cozy-shop__title-pre {
  display: block;
  font-size: 0.35em;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.cozy-shop__title-main {
  display: block;
}

.cozy-shop__subtitle {
  margin-top: 16px;
  color: var(--c-white-60);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  max-width: 400px;
}

.cozy-shop__header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Filter toggle — mobile only visible */
.cozy-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  transition: border-color var(--dur-fast) var(--ease-luxury),
              background var(--dur-fast) var(--ease-luxury);
}

.cozy-filter-toggle svg {
  width: 18px; height: 18px;
}

.cozy-filter-toggle:hover {
  border-color: var(--c-gold);
  background: var(--c-gold-dim);
}

/* Sort select */
.cozy-sort select {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 20px;
  cursor: pointer;
  appearance: none;
  backdrop-filter: blur(10px);
  transition: border-color var(--dur-fast);
  min-width: 160px;
}

.cozy-sort select:hover {
  border-color: var(--c-gold);
}

.cozy-sort select option {
  background: #111;
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   4. Shop Body Layout
   -------------------------------------------------------------------------- */

.cozy-shop__body {
  display: flex;
  gap: 0;
  align-items: flex-start;
  min-height: 80vh;
}

.cozy-shop__sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
  padding: 32px 24px 32px 48px;
  border-right: 1px solid var(--glass-border);
}

.cozy-shop__sidebar::-webkit-scrollbar {
  width: 3px;
}

.cozy-shop__sidebar::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}

.cozy-shop__main {
  flex: 1;
  min-width: 0;
  padding: 32px 48px 32px 32px;
}

/* Active filter tags */
.cozy-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cozy-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background var(--dur-fast), opacity var(--dur-fast);
}

.cozy-filter-tag svg {
  width: 12px; height: 12px;
}

.cozy-filter-tag:hover {
  background: var(--c-gold-dim);
}

.cozy-filter-tag--clear {
  border-color: var(--glass-border);
  color: var(--c-white-60);
}

/* --------------------------------------------------------------------------
   5. Product Grid
   -------------------------------------------------------------------------- */

.cozy-grid {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(3, 1fr);
}

.cozy-grid--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cozy-no-results {
  padding: 80px 40px;
  text-align: center;
  color: var(--c-white-60);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   6. Product Card
   -------------------------------------------------------------------------- */

.cozy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition:
    border-color var(--dur-mid) var(--ease-luxury),
    box-shadow var(--dur-mid) var(--ease-luxury),
    transform var(--dur-mid) var(--ease-luxury);
  will-change: transform;
  cursor: pointer;

  /* Staggered entrance */
  opacity: 0;
  transform: translateY(24px);
  animation: cozy-card-in var(--dur-slow) var(--ease-out) forwards;
}

@keyframes cozy-card-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger delays — CSS target by nth-child */
.cozy-grid > .cozy-card:nth-child(1)  { animation-delay: 0.05s; }
.cozy-grid > .cozy-card:nth-child(2)  { animation-delay: 0.10s; }
.cozy-grid > .cozy-card:nth-child(3)  { animation-delay: 0.15s; }
.cozy-grid > .cozy-card:nth-child(4)  { animation-delay: 0.20s; }
.cozy-grid > .cozy-card:nth-child(5)  { animation-delay: 0.25s; }
.cozy-grid > .cozy-card:nth-child(6)  { animation-delay: 0.30s; }
.cozy-grid > .cozy-card:nth-child(n+7) { animation-delay: 0.35s; }

.cozy-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.6),
    0 0 0 1px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-4px);
}

/* Media area */
.cozy-card__media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #0a0a0a;
}

.cozy-card__image-link {
  display: block;
  width: 100%; height: 100%;
}

.cozy-card__image-wrap {
  position: relative;
  width: 100%; height: 100%;
}

.cozy-card__image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-slow) var(--ease-luxury),
              transform var(--dur-cinematic) var(--ease-luxury);
}

.cozy-card__image--primary {
  opacity: 1;
  z-index: 2;
}

.cozy-card__image--secondary {
  opacity: 0;
  z-index: 1;
}

.cozy-card:hover .cozy-card__image--primary {
  opacity: 0;
  transform: scale(1.03);
}

.cozy-card:hover .cozy-card__image--secondary {
  opacity: 1;
  transform: scale(1.0);
}

.cozy-card:hover .cozy-card__image--primary:last-child {
  opacity: 1;
  transform: scale(1.04);
}

/* Badge */
.cozy-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  color: var(--c-white);
  pointer-events: none;
}

.badge--new        { border-color: var(--c-gold); color: var(--c-gold); }
.badge--exclusive  { border-color: var(--c-purple); color: var(--c-purple); }
.badge--trending   { border-color: rgba(255,255,255,0.3); color: var(--c-white-60); }
.badge--low-stock  { border-color: #E06B6B; color: #E06B6B; }
.badge--sold-out   { border-color: var(--glass-border); color: var(--c-white-40); }
.badge--sale       { border-color: var(--c-gold); color: var(--c-gold-light); }
.badge--private    { border-color: var(--c-purple); color: var(--c-purple); }

/* Wishlist button */
.cozy-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    transform var(--dur-fast) var(--ease-spring);
}

.cozy-card__wishlist:hover {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.cozy-card__wishlist--active {
  background: rgba(212,175,55,0.15);
  border-color: var(--c-gold);
}

.cozy-card__wishlist-icon {
  width: 16px; height: 16px;
  transition: fill var(--dur-fast), stroke var(--dur-fast);
}

.cozy-card__wishlist--active .cozy-card__wishlist-icon {
  fill: var(--c-gold);
  stroke: var(--c-gold);
}

/* Quick View trigger */
.cozy-card__qv-trigger {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 5;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--glass-border);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity var(--dur-mid) var(--ease-luxury),
    transform var(--dur-mid) var(--ease-luxury);
}

.cozy-card:hover .cozy-card__qv-trigger {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hover overlay with ATC */
.cozy-card__overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 4;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--dur-mid) var(--ease-luxury),
    transform var(--dur-mid) var(--ease-luxury);
  pointer-events: none;
}

.cozy-card:hover .cozy-card__overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cozy-card__atc {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--c-gold);
  color: var(--c-black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.cozy-card__atc:hover {
  background: var(--c-gold-light);
  transform: scale(1.02);
}

.cozy-card__atc--options {
  background: transparent;
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
}

.cozy-card__atc--options:hover {
  background: var(--c-gold);
  color: var(--c-black);
}

.cozy-card__atc--oos {
  background: var(--glass-bg);
  color: var(--c-white-40);
  border: 1px solid var(--glass-border);
  cursor: not-allowed;
}

.cozy-card__atc.cozy-card__atc--loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Card body */
.cozy-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cozy-card__name-link {
  display: block;
}

.cozy-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-white);
  transition: color var(--dur-fast);
}

.cozy-card:hover .cozy-card__name {
  color: var(--c-gold-light);
}

.cozy-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cozy-price {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-white-60);
}

.cozy-price del {
  color: var(--c-white-40);
  margin-right: 4px;
}

.cozy-price ins {
  text-decoration: none;
  color: var(--c-gold);
}

/* Out of stock card */
.cozy-card--oos .cozy-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 3;
}

/* --------------------------------------------------------------------------
   7. Breaker Blocks
   -------------------------------------------------------------------------- */

.cozy-breaker {
  grid-column: 1 / -1;
  position: relative;
  min-height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--c-white-03);
  display: flex;
  align-items: center;
  padding: 60px;
  margin: 8px 0;
}

.cozy-breaker::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 10% 50%, var(--c-purple-dim), transparent),
    radial-gradient(ellipse 60% 80% at 90% 80%, var(--c-gold-dim), transparent);
  pointer-events: none;
}

.cozy-breaker--alt::before {
  background:
    radial-gradient(ellipse 80% 120% at 90% 50%, var(--c-gold-dim), transparent),
    radial-gradient(ellipse 60% 80% at 10% 80%, var(--c-purple-dim), transparent);
}

.cozy-breaker__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Quote breaker */
.cozy-breaker__quote {
  text-align: center;
}

.cozy-breaker__quote-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--c-white);
  letter-spacing: -0.01em;
  max-width: 700px;
  margin: 0 auto 20px;
}

.cozy-breaker__byline {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
}

/* Editorial breaker */
.cozy-breaker__editorial,
.cozy-breaker__promo {
  max-width: 560px;
}

.cozy-breaker__headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cozy-breaker__subline {
  font-size: 15px;
  font-weight: 300;
  color: var(--c-white-60);
  margin-bottom: 28px;
  max-width: 420px;
}

.cozy-breaker__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-pill);
  color: var(--c-gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast) var(--ease-spring);
}

.cozy-breaker__cta svg {
  width: 16px; height: 16px;
  transition: transform var(--dur-fast);
}

.cozy-breaker__cta:hover {
  background: var(--c-gold);
  color: var(--c-black);
  transform: scale(1.02);
}

.cozy-breaker__cta:hover svg {
  transform: translateX(4px);
}

/* Promo breaker */
.cozy-breaker__promo-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: 16px;
}

/* Stats breaker */
.cozy-breaker__stats {
  display: flex;
  gap: 80px;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.cozy-breaker__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.cozy-breaker__stat-label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-white-60);
}

/* Ambient orb */
.cozy-breaker__orb {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-purple-dim) 0%, transparent 70%);
  right: -80px;
  bottom: -80px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. Email Capture Card
   -------------------------------------------------------------------------- */

.cozy-email-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-white-03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: stretch;
  opacity: 0;
  transform: translateY(24px);
  animation: cozy-card-in var(--dur-slow) var(--ease-out) 0.2s forwards;
}

.cozy-email-card__inner {
  position: relative;
  width: 100%;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.cozy-email-card__orb {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157,78,221,0.25) 0%, transparent 70%);
  right: -60px;
  bottom: -60px;
  pointer-events: none;
}

.cozy-email-card__content {
  position: relative;
  z-index: 1;
}

.cozy-email-card__eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 12px;
}

.cozy-email-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-white);
  margin-bottom: 12px;
}

.cozy-email-card__body {
  font-size: 13px;
  font-weight: 300;
  color: var(--c-white-60);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cozy-email-card__field-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: border-color var(--dur-fast);
}

.cozy-email-card__field-wrap:focus-within {
  border-color: var(--c-gold);
}

.cozy-email-card__input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  min-width: 0;
}

.cozy-email-card__input::placeholder {
  color: var(--c-white-40);
}

.cozy-email-card__submit {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-gold);
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast);
  color: var(--c-black);
}

.cozy-email-card__submit svg {
  width: 16px; height: 16px;
}

.cozy-email-card__submit:hover {
  background: var(--c-gold-light);
}

.cozy-email-card__note {
  font-size: 10px;
  color: var(--c-white-40);
  margin-top: 10px;
}

.cozy-email-card__success {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-gold);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 0;
}

.cozy-email-card__success svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Filters — Desktop
   -------------------------------------------------------------------------- */

.cozy-filters__header {
  margin-bottom: 32px;
}

.cozy-filters__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--c-white);
}

.cozy-filters__group {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 24px;
}

.cozy-filters__group:last-child {
  border-bottom: none;
}

.cozy-filters__group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 14px;
  color: var(--c-white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cozy-filters__group-toggle svg {
  width: 16px; height: 16px;
  transition: transform var(--dur-fast);
  opacity: 0.6;
}

.cozy-filters__group-toggle[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.cozy-filters__group-body {
  overflow: hidden;
}

.cozy-filters__group-body[hidden] {
  display: none;
}

.cozy-filters__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cozy-filters__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--c-white-60);
  text-align: left;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.cozy-filters__option:hover {
  color: var(--c-white);
  background: var(--c-white-06);
}

.cozy-filters__option--active {
  color: var(--c-gold);
  background: var(--c-gold-dim);
}

.cozy-filters__count {
  font-size: 11px;
  color: var(--c-white-40);
}

/* Price Range */
.cozy-price-range {
  padding: 8px 0;
}

.cozy-price-range__track {
  position: relative;
  height: 2px;
  background: var(--glass-border);
  border-radius: 2px;
  margin: 20px 0 12px;
}

.cozy-price-range__fill {
  position: absolute;
  height: 100%;
  background: var(--c-gold);
  border-radius: 2px;
  pointer-events: none;
}

.cozy-price-range__thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 20px;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
}

.cozy-price-range__thumb::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 2px solid var(--c-black);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 0 2px var(--c-gold);
  transition: box-shadow var(--dur-fast);
}

.cozy-price-range__thumb::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 4px var(--c-gold-dim);
}

.cozy-price-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--c-white-60);
  font-variant-numeric: tabular-nums;
}

/* Color swatches */
.cozy-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.cozy-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--swatch-color, #888);
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast),
    transform var(--dur-fast) var(--ease-spring);
  flex-shrink: 0;
}

.cozy-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.cozy-swatch--active {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-gold-dim);
}

/* Tags */
.cozy-filters__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cozy-tag-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  font-size: 11px;
  color: var(--c-white-60);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.cozy-tag-pill:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--c-white);
}

.cozy-tag-pill--active {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: var(--c-gold-dim);
}

/* --------------------------------------------------------------------------
   10. Mobile Filter Panel
   -------------------------------------------------------------------------- */

.cozy-mobile-filters {
  position: fixed;
  inset: 0;
  z-index: var(--z-filters);
  display: flex;
  align-items: stretch;
  pointer-events: none;
}

.cozy-mobile-filters[hidden] {
  display: none;
}

.cozy-mobile-filters__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-luxury);
}

.cozy-mobile-filters.is-open {
  pointer-events: auto;
}

.cozy-mobile-filters.is-open .cozy-mobile-filters__overlay {
  opacity: 1;
}

.cozy-mobile-filters__panel {
  position: relative;
  z-index: 1;
  width: min(90vw, 400px);
  background: #0d0d0d;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow: hidden;
}

.cozy-mobile-filters.is-open .cozy-mobile-filters__panel {
  transform: translateX(0);
}

.cozy-mobile-filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.cozy-mobile-filters__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

/* MASSIVE close button — user must never feel trapped */
.cozy-mobile-filters__close {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  min-height: 48px; /* Large touch target */
  min-width: 100px;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  backdrop-filter: blur(10px);
}

.cozy-mobile-filters__close svg {
  width: 20px; height: 20px;
}

.cozy-mobile-filters__close:hover {
  border-color: var(--c-gold);
  background: var(--c-gold-dim);
}

.cozy-mobile-filters__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}

.cozy-mobile-filters__section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-white-60);
  margin-bottom: 14px;
}

.cozy-mobile-filters__sort-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cozy-mobile-sort-btn {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--c-white-60);
  text-align: center;
  min-height: 48px;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.cozy-mobile-sort-btn.active,
.cozy-mobile-sort-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: var(--c-gold-dim);
}

.cozy-mobile-filters__pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cozy-mobile-pill {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--c-white-60);
  min-height: 44px;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.cozy-mobile-pill.active,
.cozy-mobile-pill:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: var(--c-gold-dim);
}

.cozy-mobile-filters__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.cozy-mobile-filters__apply {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--c-gold);
  color: var(--c-black);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 54px;
  transition: background var(--dur-fast);
}

.cozy-mobile-filters__apply:hover {
  background: var(--c-gold-light);
}

.cozy-mobile-filters__reset {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  color: var(--c-white-60);
  font-size: 13px;
  min-height: 48px;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}

.cozy-mobile-filters__reset:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   11. Quick View Modal
   -------------------------------------------------------------------------- */

.cozy-qv {
  position: fixed;
  inset: 0;
  z-index: var(--z-qv);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.cozy-qv[hidden] { display: none; }

.cozy-qv.is-open { pointer-events: auto; }

.cozy-qv__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-luxury);
}

.cozy-qv.is-open .cozy-qv__overlay { opacity: 1; }

.cozy-qv__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  background: #0d0d0d;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.04);
  transform: scale(0.96) translateY(20px);
  opacity: 0;
  transition:
    transform var(--dur-slow) var(--ease-out),
    opacity var(--dur-mid) var(--ease-luxury);
  display: flex;
  flex-direction: column;
}

.cozy-qv.is-open .cozy-qv__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.cozy-qv__close {
  position: absolute;
  top: 20px;
  right: 20px;
  /* Bug Fix 3: explicit z-index that sits above the panel's own stacking
     context — critical when Elementor transforms break inherited stacking */
  z-index: 99995;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
  backdrop-filter: blur(10px);
  /* Isolate stacking context so nothing inside the panel can overlap it */
  isolation: isolate;
}

.cozy-qv__close svg {
  width: 18px; height: 18px;
}

.cozy-qv__close:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.cozy-qv__inner {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}

.cozy-qv__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.cozy-spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--c-gold);
  border-radius: 50%;
  animation: cozy-spin 0.8s linear infinite;
}

@keyframes cozy-spin {
  to { transform: rotate(360deg); }
}

/* Bug Fix 1: guarantee spinner is invisible when hidden attribute is set,
   even if a parent theme overrides [hidden] with display:block */
.cozy-qv__loading[hidden] {
  display: none !important;
}

/* Also stop the spin animation when element is hidden — prevents
   GPU layer from persisting off-screen */
.cozy-qv__loading[hidden] .cozy-spinner {
  animation-play-state: paused;
}

.cozy-qv__content[hidden] { display: none; }

.cozy-qv__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

/* Gallery */
.cozy-qv__gallery {
  position: relative;
  background: #0a0a0a;
}

.cozy-qv__gallery-main {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.cozy-qv__gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-luxury);
}

.cozy-qv__gallery-slide--active { opacity: 1; }

.cozy-qv__gallery-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cozy-qv__gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cozy-qv__gallery-thumbs::-webkit-scrollbar { display: none; }

.cozy-qv__thumb {
  flex-shrink: 0;
  width: 56px; height: 72px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--dur-fast);
  opacity: 0.6;
  transition: opacity var(--dur-fast), border-color var(--dur-fast);
}

.cozy-qv__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cozy-qv__thumb--active,
.cozy-qv__thumb:hover {
  opacity: 1;
  border-color: var(--c-gold);
}

/* Details */
.cozy-qv__details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--glass-border);
}

.cozy-qv__details-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cozy-qv__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cozy-qv__price {
  font-size: 20px;
  color: var(--c-white-60);
}

.cozy-qv__price ins {
  text-decoration: none;
  color: var(--c-gold);
}

.cozy-qv__price del {
  color: var(--c-white-40);
  font-size: 16px;
}

.cozy-qv__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
}

.cozy-qv__stock-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.qv__stock--available .cozy-qv__stock-dot { background: #4CAF50; }
.qv__stock--low .cozy-qv__stock-dot       { background: #FF9800; }
.qv__stock--oos .cozy-qv__stock-dot       { background: #E06B6B; }

.cozy-qv__stock--available { color: #4CAF50; }
.cozy-qv__stock--low       { color: #FF9800; }
.cozy-qv__stock--oos       { color: #E06B6B; }

.cozy-qv__description {
  font-size: 14px;
  font-weight: 300;
  color: var(--c-white-60);
  line-height: 1.7;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
}

/* Variations */
.cozy-qv__attr-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cozy-qv__attr-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-white-60);
}

.cozy-qv__attr-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cozy-qv__attr-option {
  padding: 8px 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--c-white-60);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
  min-height: 40px;
}

.cozy-qv__attr-option:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--c-white);
}

.cozy-qv__attr-option[aria-pressed="true"] {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: var(--c-gold-dim);
}

/* Trust signals */
.cozy-qv__trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
}

.cozy-qv__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--c-white-60);
}

.cozy-qv__trust-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--c-gold);
}

/* Actions */
.cozy-qv__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.cozy-qv__atc {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--c-gold);
  color: var(--c-black);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  min-height: 50px;
}

.cozy-qv__atc:hover:not([disabled]) {
  background: var(--c-gold-light);
  transform: scale(1.01);
}

.cozy-qv__atc[disabled] {
  background: var(--glass-bg);
  color: var(--c-white-40);
  border: 1px solid var(--glass-border);
  cursor: not-allowed;
  transform: none;
}

.cozy-qv__full-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white-60);
  transition: border-color var(--dur-fast), color var(--dur-fast);
  min-height: 46px;
}

.cozy-qv__full-link svg { width: 14px; height: 14px; }

.cozy-qv__full-link:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--c-white);
}

.cozy-qv__sku {
  font-size: 11px;
  color: var(--c-white-40);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   12. Side Cart
   -------------------------------------------------------------------------- */

.cozy-cart {
  position: fixed;
  inset: 0;
  z-index: var(--z-cart);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.cozy-cart[hidden] { display: none; }
.cozy-cart.is-open { pointer-events: auto; }

.cozy-cart__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-luxury);
}

.cozy-cart.is-open .cozy-cart__overlay { opacity: 1; }

.cozy-cart__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100vw);
  height: 100%;
  background: #0d0d0d;
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}

.cozy-cart.is-open .cozy-cart__panel { transform: translateX(0); }

.cozy-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.cozy-cart__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.cozy-cart__close {
  /* Bug Fix 3: explicit z-index matches QV close treatment */
  position: relative;
  z-index: 99995;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  transition: background var(--dur-fast), border-color var(--dur-fast);
  min-width: 40px;
  flex-shrink: 0;
  isolation: isolate;
}

.cozy-cart__close svg { width: 18px; height: 18px; }

.cozy-cart__close:hover {
  background: var(--c-white-10);
  border-color: rgba(255,255,255,0.3);
}

/* ─────────────────────────────────────────────────────────────────────────
   Bug Fix 4: Desktop cart close button — enlarged, labelled, high-contrast
   ───────────────────────────────────────────────────────────────────────── */

@media (min-width: 769px) {

  .cozy-cart__close {
    /* Expand to pill shape to accommodate label text */
    width: auto;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-pill);
    padding: 0 16px 0 12px;
    gap: 8px;
    /* Stronger resting border for desktop visibility */
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
  }

  /* Show a "Close" text label on desktop — hidden via sr-only on mobile */
  .cozy-cart__close::after {
    content: 'Close';
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-white);
    white-space: nowrap;
    opacity: 0.75;
    transition: opacity var(--dur-fast);
  }

  .cozy-cart__close:hover::after {
    opacity: 1;
  }

  .cozy-cart__close svg {
    /* Slightly larger icon to match enlarged button */
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .cozy-cart__close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
  }

  /* High-contrast focus ring for keyboard users on desktop */
  .cozy-cart__close:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 3px;
    border-color: var(--c-gold);
  }

  /* ── QV close button gets matching desktop treatment ── */
  .cozy-qv__close {
    width: auto;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-pill);
    padding: 0 16px 0 12px;
    gap: 8px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.72);
  }

  .cozy-qv__close::after {
    content: 'Close';
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-white);
    white-space: nowrap;
    opacity: 0.75;
    transition: opacity var(--dur-fast);
  }

  .cozy-qv__close:hover::after {
    opacity: 1;
  }

  .cozy-qv__close svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .cozy-qv__close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .cozy-qv__close:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 3px;
    border-color: var(--c-gold);
  }
}

.cozy-cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}

.cozy-cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--c-white-03);
  animation: cozy-card-in 0.3s var(--ease-out) forwards;
}

.cozy-cart-item__image {
  width: 72px;
  height: 88px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0a0a0a;
}

.cozy-cart-item__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cozy-cart-item__details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cozy-cart-item__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-white);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cozy-cart-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cozy-cart-item__price {
  font-size: 14px;
  color: var(--c-gold);
}

.cozy-cart-item__qty {
  font-size: 12px;
  color: var(--c-white-60);
}

.cozy-cart-item__remove {
  padding: 4px;
  color: var(--c-white-40);
  font-size: 12px;
  transition: color var(--dur-fast);
}

.cozy-cart-item__remove:hover { color: #E06B6B; }

.cozy-cart__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  color: var(--c-white-60);
  padding: 40px;
}

.cozy-cart__empty[hidden] { display: none; }

.cozy-cart__continue {
  padding: 12px 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--c-white-60);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}

.cozy-cart__continue:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--c-white);
}

.cozy-cart__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.cozy-cart__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cozy-cart__subtotal-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white-60);
}

.cozy-cart__subtotal-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--c-gold);
}

.cozy-cart__shipping-note {
  font-size: 11px;
  color: var(--c-white-40);
  text-align: center;
}

.cozy-cart__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--c-gold);
  color: var(--c-black);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 54px;
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
}

.cozy-cart__checkout svg { width: 16px; height: 16px; }

.cozy-cart__checkout:hover {
  background: var(--c-gold-light);
  transform: scale(1.01);
}

.cozy-cart__view-cart {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--c-white-60);
  font-size: 13px;
  min-height: 46px;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}

.cozy-cart__view-cart:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   13. Toast Notification
   -------------------------------------------------------------------------- */

.cozy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: var(--z-toast);
  opacity: 0;
  transition:
    opacity var(--dur-mid) var(--ease-luxury),
    transform var(--dur-mid) var(--ease-luxury);
  pointer-events: none;
}

.cozy-toast[hidden] { display: none; }

.cozy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cozy-toast__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(10,10,10,0.95);
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.cozy-toast__icon {
  width: 16px; height: 16px;
  color: var(--c-gold);
}

.cozy-toast__message {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   14. Pagination
   -------------------------------------------------------------------------- */

.cozy-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.cozy-pagination__page,
.cozy-pagination__prev,
.cozy-pagination__next {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--c-white-60);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.cozy-pagination__page:hover,
.cozy-pagination__prev:hover,
.cozy-pagination__next:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--c-white);
}

.cozy-pagination__page--active {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: var(--c-gold-dim);
}

.cozy-pagination__prev:disabled,
.cozy-pagination__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   15. Upsells Strip
   -------------------------------------------------------------------------- */

.cozy-upsells {
  padding: 60px 48px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 60px;
}

.cozy-upsells__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.cozy-upsells__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.cozy-upsells__line {
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.cozy-upsells__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cozy-upsells__track::-webkit-scrollbar { display: none; }

.cozy-upsell-card {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition:
    border-color var(--dur-mid) var(--ease-luxury),
    transform var(--dur-mid) var(--ease-luxury);
}

.cozy-upsell-card:hover {
  border-color: rgba(212,175,55,0.35);
  transform: translateY(-4px);
}

.cozy-upsell-card__image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #0a0a0a;
}

.cozy-upsell-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-luxury);
}

.cozy-upsell-card:hover .cozy-upsell-card__image img {
  transform: scale(1.05);
}

.cozy-upsell-card__info {
  padding: 12px;
}

.cozy-upsell-card__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-white);
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cozy-upsell-card__price {
  font-size: 12px;
  color: var(--c-white-60);
}

.cozy-upsell-card__link {
  position: absolute;
  inset: 0;
}

/* --------------------------------------------------------------------------
   16. Grid Loading State
   -------------------------------------------------------------------------- */

.cozy-grid--loading {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity var(--dur-mid);
}

.cozy-grid--refreshing {
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   17. Responsive — Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .cozy-shop__header {
    padding: 48px 32px 32px;
  }

  .cozy-shop__sidebar {
    display: none;
  }

  .cozy-shop__main {
    padding: 32px;
  }

  .cozy-filter-toggle {
    display: flex;
  }

  .cozy-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cozy-upsells {
    padding: 48px 32px 0;
  }
}

/* --------------------------------------------------------------------------
   18. Responsive — Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .cozy-shop__header {
    padding: 40px 20px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cozy-shop__header-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cozy-sort select {
    flex: 1;
  }

  .cozy-shop__main {
    padding: 20px;
  }

  .cozy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cozy-grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cards — mobile touch optimized */
  .cozy-card__qv-trigger {
    display: none; /* Use card tap to navigate */
  }

  .cozy-card__overlay {
    opacity: 1;
    transform: none;
  }

  .cozy-card__atc {
    font-size: 11px;
    padding: 10px;
  }

  /* Breakers */
  .cozy-breaker {
    padding: 40px 24px;
    min-height: 180px;
  }

  .cozy-breaker__stats {
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Quick view — full screen on mobile */
  .cozy-qv {
    padding: 0;
    align-items: flex-end;
  }

  .cozy-qv__panel {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .cozy-qv__layout {
    grid-template-columns: 1fr;
  }

  .cozy-qv__gallery {
    max-height: 50vh;
  }

  .cozy-qv__gallery-main {
    aspect-ratio: auto;
    height: 40vh;
  }

  .cozy-qv__details {
    padding: 24px;
    border-left: none;
    border-top: 1px solid var(--glass-border);
  }

  /* Side cart full width */
  .cozy-cart__panel {
    width: 100vw;
  }

  .cozy-upsells {
    padding: 40px 20px 0;
  }

  .cozy-upsells__title {
    font-size: 22px;
  }

  .cozy-upsell-card {
    width: 140px;
  }

  /* Toast */
  .cozy-toast {
    bottom: 80px;
    width: calc(100% - 40px);
    max-width: 400px;
  }
}

/* --------------------------------------------------------------------------
   19. Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .cozy-shop *,
  .cozy-shop *::before,
  .cozy-shop *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}