﻿/* ============================================
   蓝鲸酒柜 BLUEWHALE · Design System
   Anchor: 法式酒庄年鉴 × 现代奢品电商
   Palette: cream / wine / ink / brass
   ============================================ */

:root {
  --cream: #f6f1ea;
  --cream-2: #efe7dc;
  --ink: #1c1614;
  --ink-soft: #4a3f3a;
  --wine: #3b0f14;
  --wine-2: #6b1e2a;
  --wine-3: #8b2635;
  --brass: #c4a46c;
  --brass-2: #d4bc8a;
  --rose: #b08b7a;
  --line: rgba(28, 22, 20, 0.1);
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(28, 22, 20, 0.1);
  --shadow-soft: 0 8px 28px rgba(28, 22, 20, 0.08);
  --radius: 4px;
  --radius-lg: 12px;
  --font-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --font-body: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

/* ---------- Typography ---------- */
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-2);
}

.eyebrow.dark {
  color: var(--wine-2);
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.section-desc {
  margin: 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
}

.section-head {
  margin-bottom: 56px;
  max-width: 640px;
}

.section-head.light .section-title,
.section-head.light .section-desc {
  color: var(--cream);
}

.section-head.light .eyebrow {
  color: var(--brass);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: var(--wine);
  color: var(--cream);
  box-shadow: 0 10px 28px rgba(59, 15, 20, 0.22);
}

.btn-primary:hover {
  background: var(--wine-2);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 241, 234, 0.35);
}

.btn-ghost:hover {
  background: rgba(246, 241, 234, 0.1);
  border-color: var(--cream);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}

.btn-dark:hover {
  background: var(--wine-2);
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--wine-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}

.text-link:hover {
  border-color: var(--wine-2);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: background 0.25s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--cream);
  transition: background 0.35s, color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.site-header.scrolled {
  background: rgba(246, 241, 234, 0.92);
  color: var(--ink);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.scrolled .icon-btn:hover {
  background: rgba(28, 22, 20, 0.06);
}

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

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

.logo-mark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.logo-en {
  font-size: 10px;
  letter-spacing: 0.32em;
  opacity: 0.72;
}

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

.nav a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.88;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after {
  transform: scaleX(1);
}

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

.cart-btn .cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--wine-3);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(28, 10, 12, 0.88) 0%, rgba(59, 15, 20, 0.62) 48%, rgba(28, 16, 14, 0.35) 100%),
    linear-gradient(to top, rgba(20, 10, 10, 0.55), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 40px) 0 100px;
  max-width: 760px;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 40px, 760px);
}

.hero-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--brass-2);
  font-weight: 400;
}

.hero-lead {
  margin: 0 0 36px;
  max-width: 520px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(246, 241, 234, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-meta {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(246, 241, 234, 0.18);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--brass-2);
  line-height: 1.1;
}

.hero-meta span {
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.7;
  z-index: 1;
}

.hero-scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--cream), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
}

.culture {
  background: var(--cream);
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.culture-card {
  padding: 36px 32px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.culture-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.culture-num {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--brass);
}

.culture-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
}

.culture-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
}

/* ---------- Terroir ---------- */
.terroir {
  background: var(--wine);
  color: var(--cream);
}

.region-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.region-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.region-card.reverse {
  direction: rtl;
}

.region-card.reverse > * {
  direction: ltr;
}

.region-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 11;
  background: rgba(0, 0, 0, 0.2);
}

.region-visual img {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}

.region-card:hover .region-visual img {
  transform: scale(1.04);
}

.region-tag {
  margin: 0 0 10px;
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.region-body h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.15;
}

.region-body h3 span {
  display: block;
  margin-top: 6px;
  font-size: 0.48em;
  letter-spacing: 0.18em;
  opacity: 0.55;
  font-family: var(--font-body);
  font-weight: 400;
}

.region-body p {
  margin: 0;
  max-width: 420px;
  color: rgba(246, 241, 234, 0.78);
  font-weight: 300;
  line-height: 1.9;
}

.region-body .text-link {
  color: var(--brass-2);
}

.region-body .text-link:hover {
  border-color: var(--brass-2);
}

/* ---------- Collection / Products ---------- */
.collection {
  background: var(--cream-2);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(28, 22, 20, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover {
  border-color: var(--wine-2);
  color: var(--wine-2);
}

.filter-btn.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(28, 22, 20, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #ebe2d4, #d9cbb8);
  overflow: hidden;
  cursor: pointer;
}

.product-media img {
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease);
}

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 15, 20, 0.92);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.product-vintage {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1;
  pointer-events: none;
}

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

.product-region {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}

.product-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.product-en {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(28, 22, 20, 0.45);
  font-style: italic;
  font-family: var(--font-display);
}

.product-notes {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.product-price .price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--wine-2);
}

.product-price .original {
  font-size: 12px;
  color: rgba(28, 22, 20, 0.4);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-outline {
  background: transparent;
  border-color: rgba(28, 22, 20, 0.16);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--wine);
  color: var(--wine);
  background: transparent;
}

.collection-note {
  margin-top: 48px;
  padding: 22px 28px;
  border: 1px dashed rgba(59, 15, 20, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.45);
  text-align: center;
  color: var(--ink-soft);
}

.collection-note a {
  color: var(--wine-2);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

/* ---------- Tasting ---------- */
.tasting {
  background: var(--cream);
}

.tasting-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.tasting-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.tasting-visual img {
  width: 100%;
  height: 100%;
}

.tasting-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(59, 15, 20, 0.92);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  backdrop-filter: blur(8px);
}

.tasting-badge .num {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--brass-2);
}

.tasting-badge .label {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.tasting-steps {
  list-style: none;
  margin: 32px 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: step;
}

.tasting-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.tasting-steps li::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brass);
  line-height: 1.4;
}

.tasting-steps strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.tasting-steps span {
  display: block;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- Club ---------- */
.club {
  background: var(--cream-2);
  padding-top: 80px;
  padding-bottom: 80px;
}

.club-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--wine);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.club-copy {
  padding: 56px 48px;
}

.club-copy .section-title {
  color: var(--cream);
}

.club-copy .section-desc {
  color: rgba(246, 241, 234, 0.78);
  max-width: none;
}

.club-perks {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.club-perks li {
  position: relative;
  padding-left: 22px;
  color: rgba(246, 241, 234, 0.88);
  font-size: 14.5px;
  font-weight: 300;
}

.club-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
}

.club-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.club-form input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(246, 241, 234, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  outline: none;
  transition: border-color 0.25s;
}

.club-form input::placeholder {
  color: rgba(246, 241, 234, 0.5);
}

.club-form input:focus {
  border-color: var(--brass);
}

.form-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--brass-2);
}

.club-visual {
  min-height: 420px;
  position: relative;
}

.club-visual img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ---------- Trust ---------- */
.trust {
  padding: 48px 0;
  background: var(--ink);
  color: var(--cream);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  text-align: center;
  padding: 8px 12px;
  border-right: 1px solid rgba(246, 241, 234, 0.12);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--brass-2);
}

.trust-item span {
  font-size: 13px;
  opacity: 0.7;
  letter-spacing: 0.06em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #140f0e;
  color: rgba(246, 241, 234, 0.78);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246, 241, 234, 0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
  color: var(--cream);
}

.footer-brand p {
  margin: 0;
  max-width: 280px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  opacity: 0.72;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.08em;
}

.footer-col a,
.footer-col span {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.72;
  transition: opacity 0.25s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--brass-2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12px;
  opacity: 0.55;
}

/* ---------- Cart Drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 12, 0.45);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.35s;
}

.drawer-backdrop.open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  width: min(420px, 100%);
  height: 100%;
  background: var(--cream);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}

.cart-drawer.open {
  transform: translateX(0);
}

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

.drawer-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

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

.cart-empty {
  text-align: center;
  padding: 64px 12px;
  color: var(--ink-soft);
}

.cart-empty p {
  margin: 0 0 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item img {
  width: 72px;
  height: 88px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--cream-2);
}

.cart-item h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.cart-item .meta {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.8;
}

.cart-item .line-price {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--wine-2);
  font-weight: 600;
}

.cart-item .remove {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
  opacity: 0.65;
  padding: 0;
  margin-top: 6px;
  text-decoration: underline;
}

.qty-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.qty-mini button {
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.drawer-foot {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 15px;
}

.cart-total strong {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--wine-2);
  font-weight: 600;
}

.cart-hint {
  margin: 12px 0 0;
  font-size: 11px;
  text-align: center;
  color: rgba(28, 22, 20, 0.5);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 12, 12, 0.55);
  backdrop-filter: blur(4px);
}

.modal[hidden],
.drawer-backdrop[hidden],
.toast[hidden] {
  display: none !important;
}

.modal-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--cream);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: modalIn 0.4s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 480px;
}

.modal-image {
  background: linear-gradient(160deg, #ebe2d4, #d9cbb8);
  min-height: 360px;
}

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

.modal-body {
  padding: 40px 36px;
}

.modal-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
}

.modal-en {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(28, 22, 20, 0.5);
  font-size: 15px;
}

.modal-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-price .now {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--wine-2);
}

.modal-price .was {
  text-decoration: line-through;
  color: rgba(28, 22, 20, 0.4);
  font-size: 15px;
}

.modal-story {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.9;
  font-size: 15px;
}

.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.modal-meta div {
  font-size: 13px;
}

.modal-meta span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--rose);
  margin-bottom: 2px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.qty-control button {
  width: 42px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
}

.qty-control input {
  width: 48px;
  height: 48px;
  border: 0;
  text-align: center;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  z-index: 400;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s, transform 0.35s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .culture-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tasting-layout,
  .club-panel,
  .region-card,
  .region-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .tasting-visual {
    max-height: 420px;
    aspect-ratio: 16 / 10;
  }

  .club-visual {
    min-height: 280px;
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 280px;
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(246, 241, 234, 0.98);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-meta {
    gap: 24px;
  }

  .hero-meta strong {
    font-size: 26px;
  }

  .section {
    padding: 80px 0;
  }

  .culture-grid,
  .product-grid,
  .trust-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid rgba(246, 241, 234, 0.12);
    padding: 18px 0;
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .club-copy {
    padding: 36px 24px;
  }

  .club-form {
    flex-direction: column;
  }

  .club-form .btn {
    width: 100%;
  }

  .tasting-steps li {
    grid-template-columns: 44px 1fr;
  }

  .product-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .product-actions {
    width: 100%;
  }

  .product-actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
