/* ==========================================================================
   潮汐蚝门 · MARÉE OYSTER — Deep Atlantic Luxury Design System
   Modern CSS: Native <dialog>, @starting-style, :user-invalid, Reduced Motion
   ========================================================================== */

:root {
  --bg-abyss: #050b13;
  --bg-deep: #091422;
  --bg-slate: #0f1e30;
  --bg-elevated: rgba(15, 30, 48, 0.72);
  --bg-glass: rgba(9, 20, 34, 0.68);
  --border-subtle: rgba(214, 178, 110, 0.16);
  --border-strong: rgba(214, 178, 110, 0.42);
  --border-mist: rgba(169, 198, 218, 0.14);

  --gold: #d6b26e;
  --gold-bright: #f2d9a2;
  --gold-deep: #9c793e;
  --pearl: #f5f1e8;
  --mist: #a6bccd;
  --muted: #6f879a;
  --emerald: #4fb393;
  --crimson: #e06b65;

  --font-serif: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-deep: 0 24px 60px rgba(2, 6, 12, 0.62);
  --shadow-gold: 0 12px 36px rgba(214, 178, 110, 0.16);

  --container-max: 1320px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-abyss);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--pearl);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(28, 62, 92, 0.32), transparent 70%),
    linear-gradient(180deg, #050b13 0%, #07111e 48%, #040910 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* Visually hidden live region utility (Modern Web Guidance) */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.container {
  width: min(100% - 48px, var(--container-max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--pearl);
}

.section-lead {
  margin: 12px 0 0;
  max-width: 56ch;
  font-size: 0.96rem;
  color: var(--mist);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.22s ease,
    box-shadow 0.25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, #e5c687 0%, #c89f56 100%);
  color: #08111c;
  box-shadow: 0 10px 28px rgba(214, 178, 110, 0.28);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f3db9f 0%, #d6b26e 100%);
  box-shadow: 0 14px 36px rgba(214, 178, 110, 0.42);
  transform: translateY(-1px);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(12, 26, 42, 0.56);
  color: var(--pearl);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(214, 178, 110, 0.14);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(5, 11, 19, 0.88) 0%, rgba(5, 11, 19, 0.35) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 11, 19, 0.92);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  width: min(100% - 40px, var(--container-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(214, 178, 110, 0.22), rgba(7, 17, 30, 0.9));
  color: var(--gold-bright);
}

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

.brand-cn {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--pearl);
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--mist);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--pearl);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

/* Audio Soundscape Pill */
.audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(14, 28, 45, 0.68);
  color: var(--mist);
  font-size: 0.78rem;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.audio-pill:hover {
  border-color: var(--border-strong);
  color: var(--pearl);
}

.audio-pill[data-active='true'] {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(214, 178, 110, 0.12);
}

.audio-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}

.audio-bars i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transition: height 0.2s ease;
}

.audio-pill[data-active='true'] .audio-bars i {
  height: 11px;
}

@media (prefers-reduced-motion: no-preference) {
  .audio-pill[data-active='true'] .audio-bars i:nth-child(1) {
    animation: eqBar 0.85s ease-in-out infinite alternate;
  }
  .audio-pill[data-active='true'] .audio-bars i:nth-child(2) {
    animation: eqBar 0.62s ease-in-out 0.15s infinite alternate;
  }
  .audio-pill[data-active='true'] .audio-bars i:nth-child(3) {
    animation: eqBar 0.95s ease-in-out 0.3s infinite alternate;
  }
  .audio-pill[data-active='true'] .audio-bars i:nth-child(4) {
    animation: eqBar 0.72s ease-in-out 0.08s infinite alternate;
  }
}

@keyframes eqBar {
  from {
    transform: scaleY(0.28);
  }
  to {
    transform: scaleY(1);
  }
}

.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(214, 178, 110, 0.16), rgba(15, 30, 48, 0.86));
  color: var(--pearl);
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-trigger:hover {
  border-color: var(--gold-bright);
  box-shadow: var(--shadow-gold);
}

.cart-trigger.is-bump {
  transform: scale(1.08);
}

.cart-badge {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #06101b;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.coupon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(214, 178, 110, 0.45);
  background: rgba(214, 178, 110, 0.08);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.coupon-pill:hover {
  background: rgba(214, 178, 110, 0.18);
}

/* ==========================================================================
   Section 1: Full-Screen Video Sensory Switcher Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 36px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media-stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #040910;
}

/* Instant LCP image backing first scene */
.hero-lcp-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.76);
}

.hero-scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-scene-layer.is-active {
  opacity: 1;
}

.hero-scene-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 10, 18, 0.80) 0%, rgba(4, 10, 18, 0.40) 46%, rgba(4, 10, 18, 0.14) 100%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.56) 0%, rgba(4, 10, 18, 0.04) 36%, rgba(4, 10, 18, 0.84) 100%);
}

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

.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--container-max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.hero-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 32px;
  align-items: end;
}

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

.hero-appellation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(214, 178, 110, 0.34);
  background: rgba(6, 15, 26, 0.64);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  margin-bottom: 18px;
}

.hero-appellation .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: 0.02em;
  color: var(--pearl);
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.hero-subcopy {
  margin: 18px 0 28px;
  font-size: clamp(0.95rem, 1.3vw, 1.06rem);
  color: rgba(235, 241, 246, 0.86);
  max-width: 54ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-telemetry {
  justify-self: end;
  width: 100%;
  max-width: 340px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(7, 17, 29, 0.64);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
}

.hero-telemetry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.hero-metric-list {
  display: grid;
  gap: 12px;
}

.hero-metric-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hero-metric-item span {
  font-size: 0.82rem;
  color: var(--mist);
}

.hero-metric-item strong {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  color: var(--pearl);
  font-weight: 600;
}

.hero-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.motion-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  color: var(--mist);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.motion-toggle-btn:hover {
  color: var(--pearl);
  border-color: var(--gold);
}

/* Sensory Video Switcher Dock */
.sensory-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sensory-tab {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--radius-md);
  background: rgba(8, 19, 32, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  text-align: left;
  overflow: hidden;
  transition:
    border-color 0.28s ease,
    background-color 0.28s ease,
    transform 0.24s ease;
}

.sensory-tab:hover {
  border-color: var(--border-strong);
  background: rgba(15, 32, 52, 0.82);
  transform: translateY(-2px);
}

.sensory-tab[aria-selected='true'] {
  border-color: var(--gold);
  background: rgba(20, 38, 60, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(214, 178, 110, 0.22);
}

.sensory-tab::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.sensory-tab[aria-selected='true']::after {
  transform: scaleX(1);
}

.sensory-thumb {
  width: 74px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.sensory-tab-meta {
  min-width: 0;
}

.sensory-tab-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.14em;
}

.sensory-tab-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--pearl);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sensory-tab-sound {
  font-size: 0.72rem;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Telemetry Trust Ribbon */
.tide-ribbon {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 20, 34, 0.85);
}

.tide-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0;
}

.tide-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tide-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(214, 178, 110, 0.08);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

.tide-stat small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tide-stat strong {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--pearl);
  font-weight: 500;
}

/* ==========================================================================
   Section 2: Appetite-Inducing Visual Gallery (感官赏味画廊)
   ========================================================================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mist);
  background: rgba(12, 26, 42, 0.54);
  color: var(--mist);
  font-size: 0.84rem;
  transition: all 0.22s ease;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--pearl);
}

.filter-pill[aria-pressed='true'] {
  background: linear-gradient(135deg, rgba(214, 178, 110, 0.24), rgba(214, 178, 110, 0.1));
  border-color: var(--gold);
  color: var(--gold-bright);
  font-weight: 600;
}

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

.appetite-card {
  position: relative;
  grid-column: span 4;
  min-height: 310px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-mist);
  background: var(--bg-slate);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: border-color 0.3s ease, transform 0.32s ease, box-shadow 0.32s ease;
}

.appetite-card.span-wide {
  grid-column: span 6;
  min-height: 350px;
}

.appetite-card.span-tall {
  grid-column: span 6;
  min-height: 390px;
}

.appetite-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.appetite-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.appetite-card:hover .appetite-card-img {
  transform: scale(1.06);
}

.appetite-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(5, 11, 19, 0.08) 0%,
    rgba(5, 11, 19, 0.22) 45%,
    rgba(5, 11, 19, 0.92) 100%
  );
}

.appetite-card-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.appetite-tag {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(5, 11, 19, 0.72);
  border: 1px solid rgba(214, 178, 110, 0.32);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}

.icon-zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(5, 11, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--pearl);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-zoom-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #06101b;
}

.appetite-card-body {
  padding: 22px 24px 24px;
}

.appetite-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 6px;
}

.appetite-card-body h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 500;
  color: var(--pearl);
}

.appetite-card-body p {
  margin: 8px 0 16px;
  font-size: 0.86rem;
  color: rgba(224, 234, 242, 0.85);
}

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

/* ==========================================================================
   Section 3: Interactive Flavor Hotspot Explorer (热区味觉探秘)
   ========================================================================== */
.taste-section {
  background:
    radial-gradient(circle at 22% 50%, rgba(26, 62, 96, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(8, 18, 30, 0.5) 0%, rgba(5, 11, 19, 0.9) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.taste-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.92fr);
  gap: 32px;
  align-items: stretch;
}

.hotspot-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #060d16;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-deep);
}

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

.hotspot-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(4, 10, 18, 0.65);
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}

.hotspot-pin-core {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(7, 17, 29, 0.86);
  border: 1.5px solid var(--gold-bright);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px rgba(214, 178, 110, 0.5);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hotspot-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 217, 162, 0.65);
  opacity: 0.65;
}

@media (prefers-reduced-motion: no-preference) {
  .hotspot-pin::before {
    animation: hotspotPulse 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  }
}

@keyframes hotspotPulse {
  0% {
    transform: scale(0.76);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.hotspot-pin:hover .hotspot-pin-core,
.hotspot-pin[aria-pressed='true'] .hotspot-pin-core {
  background: var(--gold-bright);
  color: #07111d;
  transform: scale(1.16);
}

.hotspot-pin-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6, 15, 26, 0.88);
  border: 1px solid var(--border-strong);
  font-size: 0.72rem;
  color: var(--pearl);
  pointer-events: none;
  opacity: 0.88;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.hotspot-pin[aria-pressed='true'] .hotspot-pin-label {
  opacity: 1;
  background: rgba(214, 178, 110, 0.94);
  color: #06101b;
  font-weight: 700;
}

.hotspot-hud-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(6, 14, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hotspot-hud-tip {
  font-size: 0.78rem;
  color: var(--mist);
}

.taste-panel {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(165deg, rgba(16, 33, 52, 0.86), rgba(7, 16, 28, 0.94));
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-deep);
}

.taste-zone-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.taste-code-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(214, 178, 110, 0.1);
}

.taste-nav-arrows {
  display: inline-flex;
  gap: 6px;
}

.circle-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-mist);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pearl);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.circle-nav-btn:hover {
  border-color: var(--gold);
  background: rgba(214, 178, 110, 0.14);
}

.taste-title {
  margin: 12px 0 4px;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--pearl);
}

.taste-french {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.taste-tagline {
  margin: 12px 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.taste-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mist);
}

.taste-metrics-wrap {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(5, 11, 19, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.radar-svg {
  width: 128px;
  height: 128px;
}

.radar-polygon {
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-bars {
  display: grid;
  gap: 8px;
}

.metric-bar-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.metric-bar-row span {
  color: var(--mist);
}

.metric-track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-bar-row strong {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: right;
  color: var(--pearl);
}

.taste-pairing-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(214, 178, 110, 0.07);
  border-left: 2px solid var(--gold);
  font-size: 0.82rem;
  color: var(--pearl);
}

.taste-recommend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.taste-recommend-info small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.taste-recommend-info strong {
  font-size: 0.9rem;
  color: var(--pearl);
}

/* ==========================================================================
   Section 4: Curated Oyster Catalog (严选鲜蚝矩阵)
   ========================================================================== */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.sort-select {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mist);
  background: rgba(12, 26, 42, 0.82);
  color: var(--pearl);
  font-size: 0.84rem;
}

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

.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-mist);
  background: linear-gradient(180deg, rgba(16, 33, 52, 0.72) 0%, rgba(8, 17, 29, 0.94) 100%);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-deep);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #07111d;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.product-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.badge-gold {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(6, 15, 26, 0.8);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.badge-fresh {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(12, 42, 37, 0.82);
  border: 1px solid rgba(79, 179, 147, 0.45);
  color: #9be4cb;
  font-size: 0.7rem;
  backdrop-filter: blur(8px);
}

.quickview-trigger {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(6, 15, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--pearl);
  font-size: 0.74rem;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quickview-trigger:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #06101b;
}

.product-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.product-origin {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.product-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--pearl);
}

.product-en {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: -8px;
}

.product-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--mist);
}

.product-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(5, 11, 19, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-stat {
  text-align: center;
}

.mini-stat small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

.mini-stat strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-bright);
}

.spec-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.spec-btn {
  padding: 7px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.74rem;
  color: var(--mist);
  transition: all 0.2s ease;
}

.spec-btn:hover {
  border-color: var(--border-strong);
  color: var(--pearl);
}

.spec-btn[aria-pressed='true'] {
  border-color: var(--gold);
  background: rgba(214, 178, 110, 0.16);
  color: var(--gold-bright);
  font-weight: 600;
}

.product-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.price-now {
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.price-old {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* Sommelier Add-on Strip */
.addons-strip {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(11, 24, 39, 0.72);
}

.addons-strip-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.addons-strip-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 500;
}

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

.addon-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 15, 26, 0.72);
}

.addon-card img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.addon-meta h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pearl);
}

.addon-meta p {
  margin: 3px 0 8px;
  font-size: 0.74rem;
  color: var(--muted);
}

.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.addon-price {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-bright);
}

/* ==========================================================================
   Section 5: Interactive Fingertip Shucking & Coupon Ritual (指尖开蚝领券)
   ========================================================================== */
.shucking-section {
  background:
    radial-gradient(ellipse 65% 60% at 50% 45%, rgba(214, 178, 110, 0.11), transparent 72%),
    linear-gradient(180deg, rgba(6, 14, 24, 0.85) 0%, rgba(9, 21, 35, 0.96) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.shucking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: stretch;
}

.shucking-stage {
  position: relative;
  min-height: 490px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 54%, rgba(28, 59, 86, 0.56), rgba(5, 11, 19, 0.96) 72%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  user-select: none;
  touch-action: none;
  box-shadow: var(--shadow-deep);
}

.shucking-stage.is-shaking {
  animation: shellShake 0.24s ease-in-out;
}

@keyframes shellShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 2px); }
  50% { transform: translate(4px, -2px); }
  75% { transform: translate(-2px, -1px); }
}

.shucking-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.shucking-top-bar {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.shucking-phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(6, 15, 26, 0.8);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  color: var(--gold-bright);
}

.shucking-chances {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mist);
}

.shucking-arena {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 330px;
}

/* Revealed interior: Real Macro Oyster + Pearl Glow */
.oyster-reveal-bed {
  position: relative;
  width: min(420px, 88%);
  aspect-ratio: 16 / 10;
  border-radius: 52% 48% 54% 46% / 56% 52% 48% 44%;
  overflow: hidden;
  border: 2px solid rgba(214, 178, 110, 0.48);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(214, 178, 110, 0.2);
}

.oyster-reveal-bed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
  transform: scale(1.06);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.shucking-stage[data-opened='true'] .oyster-reveal-bed img {
  transform: scale(1);
  filter: brightness(1.05);
}

.pearl-orb {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle at 32% 30%, #ffffff 0%, #f9ebd0 38%, #d6b26e 82%, #7d5f2c 100%);
  box-shadow: 0 0 38px rgba(255, 240, 200, 0.95), 0 0 80px rgba(214, 178, 110, 0.65);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  z-index: 4;
}

.shucking-stage[data-opened='true'] .pearl-orb {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Interactive Calcified Upper Oyster Shell Lid */
.oyster-lid-layer {
  position: absolute;
  inset: -6%;
  z-index: 5;
  display: grid;
  place-items: center;
  transform-origin: 18% 58%;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease;
}

.shucking-stage[data-opened='true'] .oyster-lid-layer {
  transform: translate(-44px, -74px) rotate(-32deg) scale(0.92);
  opacity: 0;
  pointer-events: none;
}

.oyster-lid-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.78));
}

/* Knife Guide Track & Interactive Handle */
.shucking-guide-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  pointer-events: none;
}

.shucking-stage[data-opened='true'] .shucking-guide-svg {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.shucking-knife-handle {
  position: absolute;
  z-index: 8;
  width: 68px;
  height: 68px;
  margin-left: -34px;
  margin-top: -34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(242, 217, 162, 0.35), rgba(8, 18, 30, 0.9));
  border: 2px solid var(--gold-bright);
  box-shadow: 0 0 28px rgba(214, 178, 110, 0.55);
  display: grid;
  place-items: center;
  cursor: grab;
  transition: box-shadow 0.2s ease, opacity 0.35s ease;
}

.shucking-knife-handle:active {
  cursor: grabbing;
  box-shadow: 0 0 42px rgba(242, 217, 162, 0.9);
}

.shucking-stage[data-opened='true'] .shucking-knife-handle {
  opacity: 0;
  pointer-events: none;
}

.shucking-controls-foot {
  position: relative;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.shucking-progress-wrap {
  flex: 1;
  min-width: 190px;
}

.shucking-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--mist);
  margin-bottom: 6px;
}

.shucking-progress-bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.shucking-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.14s ease-out;
}

/* Shucking Reward Panel */
.shucking-reward-panel {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(170deg, rgba(16, 33, 52, 0.86), rgba(7, 16, 28, 0.96));
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.coupon-ticket {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 217, 162, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(24, 42, 64, 0.95) 0%, rgba(10, 22, 36, 0.98) 100%);
  border: 1px dashed var(--gold);
  box-shadow: var(--shadow-gold);
}

.coupon-tier {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.coupon-value {
  margin: 8px 0 4px;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.1;
}

.coupon-code-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(5, 11, 19, 0.72);
  border: 1px solid rgba(214, 178, 110, 0.28);
}

.coupon-code-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--pearl);
}

.wallet-list {
  display: grid;
  gap: 10px;
}

.wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(214, 178, 110, 0.25);
  background: rgba(214, 178, 110, 0.06);
  font-size: 0.82rem;
}

.wallet-item strong {
  color: var(--gold-bright);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Section 6: Cold-Chain Promise & Footer
   ========================================================================== */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.promise-card {
  padding: 26px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-mist);
  background: rgba(11, 24, 39, 0.65);
}

.promise-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.promise-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
}

.promise-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mist);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 36px;
  background: #040910;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   Native <dialog> Modals & Slide-Over Cart Drawer (Modern Web Guidance)
   ========================================================================== */
dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pearl);
  max-width: none;
  max-height: none;
}

/* MANDATORY: Prevent background page scroll chaining */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(2, 7, 14, 0.76);
  backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: contain;
  transition: opacity 0.28s ease, display 0.28s allow-discrete, overlay 0.28s allow-discrete;
}

/* Slide-Over Cart Drawer */
.cart-dialog {
  margin: 0 0 0 auto;
  width: min(460px, 100vw);
  height: 100dvh;
  background: linear-gradient(180deg, #0b1827 0%, #060e18 100%);
  border-left: 1px solid var(--border-strong);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateX(36px);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    display 0.32s,
    overlay 0.32s;
  transition-behavior: allow-discrete;
}

.cart-dialog[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateX(0);
}

@starting-style {
  .cart-dialog[open] {
    opacity: 0;
    transform: translateX(36px);
  }
  .cart-dialog[open]::backdrop {
    opacity: 0;
  }
}

.dialog-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--pearl);
}

.dialog-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--pearl);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dialog-close-btn:hover {
  border-color: var(--gold);
  background: rgba(214, 178, 110, 0.16);
}

.shipping-bar-box {
  padding: 14px 24px;
  background: rgba(214, 178, 110, 0.07);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--mist);
}

.shipping-bar-box strong {
  color: var(--gold-bright);
}

.shipping-track {
  margin-top: 8px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.shipping-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.35s ease;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  margin: auto 0;
  text-align: center;
  padding: 36px 12px;
  color: var(--mist);
}

.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 27, 43, 0.7);
}

.cart-item img {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pearl);
}

.cart-remove-btn {
  font-size: 0.74rem;
  color: var(--muted);
}

.cart-remove-btn:hover {
  color: var(--crimson);
}

.cart-item-spec {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 2px 0 10px;
}

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

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--pearl);
}

.qty-stepper button:hover {
  background: rgba(214, 178, 110, 0.16);
}

.qty-stepper span {
  min-width: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.cart-coupon-box {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 17, 29, 0.86);
}

.coupon-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.coupon-input-row input {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 11, 19, 0.8);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.coupon-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.coupon-chip {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--gold);
  background: rgba(214, 178, 110, 0.1);
  color: var(--gold-bright);
  font-size: 0.72rem;
}

.coupon-chip.is-applied {
  background: var(--gold);
  color: #06101b;
  border-style: solid;
  font-weight: 700;
}

.cart-footer {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--border-subtle);
  background: #060e18;
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--mist);
}

.summary-row.discount {
  color: var(--emerald);
}

.summary-row.total {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  color: var(--pearl);
  font-weight: 600;
}

.summary-row.total strong {
  font-family: var(--font-mono);
  font-size: 1.32rem;
  color: var(--gold-bright);
}

/* Centered Modals (Checkout, Lightbox, Quick-View) */
.center-dialog {
  margin: auto;
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  border-radius: var(--radius-lg);
  background: linear-gradient(175deg, #0e1d30 0%, #060e18 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 0.26s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    display 0.3s,
    overlay 0.3s;
  transition-behavior: allow-discrete;
}

.center-dialog[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .center-dialog[open] {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  .center-dialog[open]::backdrop {
    opacity: 0;
  }
}

.modal-scroll-body {
  padding: 24px;
  overflow-y: auto;
}

/* Lightbox Layout */
.lightbox-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: center;
}

.lightbox-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #040910;
}

.lightbox-photo img {
  width: 100%;
  max-height: 62dvh;
  object-fit: cover;
}

/* Checkout Steps & Form Validation (:user-invalid + ARIA sync) */
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 24px;
  background: rgba(5, 11, 19, 0.56);
  border-bottom: 1px solid var(--border-subtle);
}

.step-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.step-chip .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.step-chip.is-active {
  color: var(--gold-bright);
  font-weight: 600;
}

.step-chip.is-active .num,
.step-chip.is-done .num {
  background: var(--gold);
  border-color: var(--gold);
  color: #06101b;
}

.step-chip.is-done {
  color: var(--emerald);
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pearl);
  margin-bottom: 4px;
}

.field .hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 11, 19, 0.78);
  color: var(--pearl);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: none;
}

/* Modern Web Guidance: defer validation styling until after user interaction */
.field :is(input, textarea, select):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--crimson);
  background-color: rgba(224, 107, 101, 0.1);
}

.field :is(input, textarea, select):is(:user-valid, .user-valid-fallback) {
  border-color: var(--emerald);
}

.error-msg {
  display: none;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #ff9c97;
}

.field :is(input, textarea, select):is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

.radio-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 11, 19, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(214, 178, 110, 0.12);
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card strong {
  font-size: 0.84rem;
  color: var(--pearl);
}

.radio-card span {
  font-size: 0.73rem;
  color: var(--mist);
}

/* Traceability Certificate (Order Success) */
.trace-cert {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold);
  background:
    radial-gradient(circle at 85% 15%, rgba(214, 178, 110, 0.16), transparent 55%),
    rgba(6, 15, 26, 0.92);
}

.trace-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trace-cell {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.trace-cell small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.trace-cell strong {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--gold-bright);
}

/* Toast Notification */
.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(9, 21, 35, 0.95);
  border: 1px solid var(--gold);
  color: var(--pearl);
  font-size: 0.84rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) {
  .hero-main-grid,
  .taste-grid,
  .shucking-layout,
  .lightbox-grid {
    grid-template-columns: 1fr;
  }
  .hero-telemetry {
    justify-self: start;
    max-width: 100%;
  }
  .sensory-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid,
  .addons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tide-ribbon-grid,
  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .appetite-card,
  .appetite-card.span-wide,
  .appetite-card.span-tall {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .coupon-pill {
    display: none;
  }
  .container,
  .hero-content-wrap {
    width: calc(100% - 28px);
  }
  .sensory-dock,
  .product-grid,
  .addons-grid,
  .tide-ribbon-grid,
  .promise-grid,
  .form-grid-2,
  .radio-card-grid,
  .trace-grid {
    grid-template-columns: 1fr;
  }
  .appetite-card,
  .appetite-card.span-wide,
  .appetite-card.span-tall {
    grid-column: span 12;
  }
  .taste-metrics-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .metric-bars {
    width: 100%;
  }
}
