@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Mono';
  src: url('../fonts/DMMono-Regular.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Courbes d'animation (identiques au design d'origine) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radius-card: 12px;
  --radius-pill: 999px;

  /* ===== UNE SEULE COULEUR À CONFIGURER : --brand (injectée par head-theme.blade.php) =====
     Toutes les teintes neutres, le mode sombre, l'ombre et le shader en sont dérivés. */
  --brand: #3d5740;
  --on-accent: #ffffff;
  --on-accent-dark: #ffffff;

  --bg: color-mix(in srgb, var(--brand) 6%, #ffffff);
  --surface: color-mix(in srgb, var(--brand) 12%, #ffffff);
  --surface-elevated: color-mix(in srgb, var(--brand) 17%, #ffffff);
  --text-primary: color-mix(in srgb, var(--brand) 12%, #0a0c0b);
  --text-secondary: color-mix(in srgb, var(--text-primary) 76%, #ffffff);
  --border: color-mix(in srgb, var(--text-primary) 12%, transparent);
  --border-strong: color-mix(in srgb, var(--text-primary) 24%, transparent);
  --accent: var(--brand);
  --accent-hover: color-mix(in srgb, var(--brand) 82%, #000000);
  --accent-text: var(--on-accent);
  --glass-bg: color-mix(in srgb, var(--bg) 80%, transparent);
  --glass-border: color-mix(in srgb, var(--text-primary) 14%, transparent);
  --shadow-tinted: 0 24px 64px color-mix(in srgb, var(--text-primary) 12%, transparent);

  --ok: #2f7d4f;
  --warn: #b7791f;
  --danger: #b3382c;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: color-mix(in srgb, var(--brand) 10%, #050605);
  --surface: color-mix(in srgb, var(--brand) 26%, #050605);
  --surface-elevated: color-mix(in srgb, var(--brand) 34%, #050605);
  --text-primary: #eff3f1;
  --text-secondary: #98a49e;
  --border: rgba(239, 243, 241, 0.12);
  --border-strong: rgba(239, 243, 241, 0.24);
  --accent: color-mix(in srgb, var(--brand) 88%, #ffffff);
  --accent-hover: color-mix(in srgb, var(--brand) 78%, #ffffff);
  --accent-text: var(--on-accent-dark);
  --glass-bg: color-mix(in srgb, var(--bg) 72%, transparent);
  --glass-border: rgba(239, 243, 241, 0.16);
  --shadow-tinted: 0 24px 64px rgba(5, 8, 7, 0.56);
  --ok: #4fb57a;
  --warn: #e0a64a;
  --danger: #e2776b;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Guarantee HTML [hidden] beats display:flex on drawers and empty states */
[hidden] {
  display: none !important;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  font-size: 17.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 280ms var(--ease-out), color 280ms var(--ease-out);
}

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

button,
a {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* Fixed subtle film grain (pointer-events-none, zero scroll repaint) */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.025;
  background-image: radial-gradient(rgba(128, 128, 128, 0.5) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Single-line Navigation (64px height) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-mark {
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--text-primary);
  }
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 19px;
  transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.icon-btn:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    border-color: var(--border-strong);
    background: var(--surface);
  }
}

[data-theme='dark'] #theme-icon-moon {
  display: none;
}

[data-theme='light'] #theme-icon-sun {
  display: none;
}

.bag-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Buttons (Single CTA intent, zero wrap, tactile scale(0.97) on :active) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 16px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
  padding-block: 18px;
  font-size: 17px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-hover);
  }
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    background: var(--surface);
  }
}

/* Typography Helpers */
.section-title {
  font-size: clamp(2.5rem, 4.7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 42ch;
  margin-top: 16px;
}

/* SECTION 1: Asymmetric Split Hero (min-h-[100dvh], pt-24 max) */
.hero {
  position: relative;
  min-height: 100dvh;
  padding-top: 84px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  max-width: 580px;
}

.hero-title {
  font-size: clamp(3.4rem, 6.4vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero-sub {
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 22px;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.flask-tilt-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  transform-style: preserve-3d;
  will-change: transform;
}

.flask-hero-img {
  position: relative;
  z-index: 1;
  width: auto;
  height: min(60dvh, 520px);
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 28px 42px rgba(5, 8, 7, 0.36));
  transition: filter 320ms var(--ease-out);
  user-select: none;
}

:root[data-theme='dark'] .flask-hero-img {
  filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.65));
}

/* Finish CSS color-calibration filters preserving studio highlights & logo */
.flask-hero-img[data-finish='basalt'],
.order-flask-img[data-finish='basalt'],
.bag-item-thumb[data-finish='basalt'] {
  filter: saturate(0.14) brightness(0.68) contrast(1.18) drop-shadow(0 28px 42px rgba(5, 8, 7, 0.5));
}

.flask-hero-img[data-finish='glacier'],
.order-flask-img[data-finish='glacier'],
.bag-item-thumb[data-finish='glacier'] {
  filter: saturate(0.08) brightness(1.38) contrast(1.08) drop-shadow(0 28px 42px rgba(5, 8, 7, 0.34));
}

.flask-shadow {
  width: 180px;
  height: 22px;
  margin-top: -10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(5, 8, 7, 0.42) 0%, transparent 72%);
  filter: blur(8px);
}

.hero-swatches {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  padding: 6px;
  max-width: 100%;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
}

.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}

.swatch-btn:active {
  transform: scale(0.96);
}

.swatch-btn.is-active {
  background: var(--surface-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.swatch-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* SECTION 2: Pinned 360-Style Multi-Angle Environmental Showcase */
.showcase-pin {
  position: relative;
  width: 100%;
  min-height: 100dvh;
}

.showcase-viewport {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--surface);
}

/* Soft edge scrim so oversized editorial typography reads sharply without a card box */
.showcase-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 14, 12, 0.72) 0%,
    rgba(10, 14, 12, 0.28) 38%,
    transparent 70%
  );
}

.showcase-frames {
  position: relative;
  width: 100%;
  height: 100%;
}

.showcase-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 0 100%);
  will-change: clip-path, transform;
}

.showcase-frame.is-active {
  clip-path: inset(0 0 0 0);
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 0%;
}

.showcase-hud {
  position: absolute;
  bottom: clamp(28px, 4.5vw, 56px);
  left: clamp(20px, 4vw, 52px);
  right: clamp(20px, 4vw, 52px);
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.glass-pill {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Oversized editorial typography directly on scene (zero card container) */
.showcase-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 620px;
  color: #f4f6f5;
  transition: filter 220ms var(--ease-out), opacity 220ms var(--ease-out);
}

.showcase-caption.is-blurring {
  filter: blur(3px);
  opacity: 0.65;
}

.caption-title {
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.caption-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: rgba(244, 246, 245, 0.88);
  line-height: 1.4;
}

.showcase-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(18, 24, 21, 0.65);
  border: 1px solid rgba(239, 243, 241, 0.18);
  backdrop-filter: blur(20px);
}

.stage-dot {
  width: 24px;
  height: 6px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(239, 243, 241, 0.35);
  cursor: pointer;
  transition: width 240ms var(--ease-out), background-color 240ms var(--ease-out);
}

.stage-dot.is-active {
  width: 44px;
  background: #f4f6f5;
}

/* SECTION 3: Interactive Thermal Comparison Slider */
.thermal-section {
  padding-block: clamp(88px, 12vw, 150px);
}

.thermal-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.comparison-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.comparison-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.comparison-cold {
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

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

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  outline: none;
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #eff3f1;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  transition: opacity 240ms var(--ease-out);
}

.handle-knob {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 160ms var(--ease-out), opacity 240ms var(--ease-out);
}

.comparison-handle.is-edge .handle-line {
  opacity: 0;
}

.comparison-handle.is-edge .handle-knob {
  opacity: 0.78;
}

.comparison-handle:active .handle-knob {
  transform: scale(0.94);
}

.thermal-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.segmented-control {
  display: inline-flex;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-top: 28px;
}

.seg-btn {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 140ms var(--ease-out);
}

.seg-btn:active {
  transform: scale(0.97);
}

.seg-btn.is-active {
  background: var(--accent);
  color: var(--accent-text);
}

.thermal-metrics {
  display: flex;
  gap: 36px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 15px;
  color: var(--text-secondary);
}

/* SECTION 4: Asymmetric 3-Tile Editorial Bento */
.bento-section {
  padding-block: clamp(72px, 10vw, 130px);
}

.section-header-stack {
  margin-bottom: 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, minmax(260px, 320px));
  gap: 20px;
}

.bento-tile {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-tall {
  grid-column: span 7;
  grid-row: span 2;
}

.bento-top {
  grid-column: span 5;
  grid-row: span 1;
}

.bento-bottom {
  grid-column: span 5;
  grid-row: span 1;
  background: var(--surface-elevated);
}

.bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .bento-tile:hover .bento-img {
    transform: scale(1.03);
  }
}

.specs-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bento-footer {
  position: relative;
  z-index: 2;
  padding: 28px 30px;
  background: linear-gradient(to top, rgba(12, 16, 14, 0.84) 0%, rgba(12, 16, 14, 0.36) 62%, transparent 100%);
  color: #eff3f1;
}

.bento-footer-specs {
  background: none;
  color: var(--text-primary);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.bento-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.bento-sub {
  font-size: 16px;
  opacity: 0.85;
  margin-top: 6px;
}

.spec-badge {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--glass-bg);
}

/* SECTION 5: Interactive Finish & Size Configurator + Order */
.order-section {
  padding-block: clamp(88px, 12vw, 150px);
}

.order-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.order-preview {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.order-plinth {
  position: absolute;
  bottom: 12%;
  width: 240px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 32%, transparent) 0%, transparent 72%);
  filter: blur(10px);
}

.order-flask-img {
  position: relative;
  z-index: 2;
  width: auto;
  height: 76%;
  max-width: 58%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 28px 44px rgba(5, 8, 7, 0.36));
  transition: transform 360ms var(--ease-out), filter 280ms var(--ease-out);
}

.order-panel {
  display: flex;
  flex-direction: column;
}

.order-price {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 8px;
}

.config-group {
  margin-top: 28px;
}

.config-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.pill-option:active {
  transform: scale(0.97);
}

.pill-option.is-active {
  border-color: var(--accent);
  background: var(--surface-elevated);
}

.pill-option .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.spec-list {
  margin-block: 32px;
  border-top: 1px solid var(--border);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.spec-key {
  color: var(--text-secondary);
}

.spec-val {
  font-weight: 500;
}

/* Minimal Single-Row Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-secondary);
}

.footer-brand {
  font-weight: 700;
  color: var(--text-primary);
}

/* Slide-Over Order Bag Drawer (emil-design-eng spring curve + @starting-style) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 8, 7, 0.6);
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity 260ms var(--ease-out);
}

.drawer-backdrop[hidden] {
  opacity: 0;
}

.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  z-index: 80;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 340ms var(--ease-drawer);
}

.bag-drawer[hidden] {
  transform: translateX(100%);
}

@starting-style {
  .bag-drawer {
    transform: translateX(100%);
  }
  .drawer-backdrop {
    opacity: 0;
  }
}

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

.drawer-title {
  font-size: 20px;
  font-weight: 700;
}

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

.drawer-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
}

.bag-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.bag-item-thumb {
  width: 56px;
  height: 78px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg);
  padding: 6px;
}

.bag-item-info {
  flex: 1;
}

.bag-item-name {
  font-weight: 700;
  font-size: 17px;
}

.bag-item-meta {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.bag-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 140ms var(--ease-out);
}

.qty-btn:active {
  transform: scale(0.92);
}

.bag-qty {
  font-size: 15px;
  font-weight: 500;
}

.drawer-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
}

.drawer-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.drawer-total {
  font-family: var(--font-mono);
}

/* Mobile Responsive Collapse (< 768px) */
@media (max-width: 768px) {
  .nav-link {
    display: none;
  }

  .hero-grid,
  .thermal-grid,
  .order-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    order: 1;
    min-width: 0;
  }

  .hero-stage {
    order: 2;
    min-width: 0;
    width: 100%;
  }

  .hero-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 5px;
    width: fit-content;
    max-width: 100%;
    border-radius: 24px;
  }

  .swatch-btn {
    gap: 6px;
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .swatch-dot {
    width: 9px;
    height: 9px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-tall,
  .bento-top,
  .bento-bottom {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 300px;
  }

  .showcase-hud {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-aspect-ratio: 3 / 4) {
  .showcase-img {
    object-position: 72% 0%;
  }
}

/* Reduced Motion Respect (taste-skill Section 6.B & emil-design-eng) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .flask-tilt-wrap {
    transform: none !important;
  }
}
