/* ============================================================
   ATuttoVino — Design System
   Tokens from design_handoff_atuttovino/tokens.css
   ============================================================ */

:root {
  --bg:        #FAF8F5;
  --surface:   #FFFFFF;
  --sidebar:   #F3F0EA;
  --ink:       #1B1918;
  --ink-2:     #3B3836;
  --muted:     #807A74;
  --muted-2:   #B8B2AB;
  --line:      #E6E1D8;
  --line-2:    #EFEAE1;
  --accent:    #D62828;
  --accent-ink:#A71D1D;
  --success:   #3F8F3F;
  --error-bg:  #FBEAEA;
  --error-bd:  #F3C8C8;

  --font-display: "DM Serif Display", Georgia, serif;
  --font-ui:      "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-pill: 999px;

  --shadow-soft:  0 10px 30px -18px rgba(0,0,0,.18);
  --shadow-modal: 0 40px 100px -20px rgba(0,0,0,.45);

  --ease-soft: cubic-bezier(.2,.9,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }

.tool-btns-hidden {
  display: none !important;
}

.tool-btn-hidden {
  display: none !important;
}

/* ── Shared utilities ────────────────────────────────────────── */
.dot {
  display: inline-block;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  transform: translateY(-8px);
  margin-left: 2px;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.accent-word { color: var(--accent); font-style: italic; }

/* ── Age Gate ────────────────────────────────────────────────── */
.ag-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(27,25,24,0.72);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: agFade 350ms ease;
}
@keyframes agFade { from { opacity:0; } to { opacity:1; } }

.ag-modal {
  width: 100%; max-width: 560px;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  animation: agPop 450ms var(--ease-soft);
}
@keyframes agPop {
  from { opacity:0; transform: translateY(14px) scale(.97); }
  to   { opacity:1; transform: none; }
}

.ag-top {
  padding: 42px 36px 24px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(214,40,40,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #FAF8F5 0%, #F5F1EA 100%);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.ag-logo {
  width: 90px; height: auto;
  display: block; margin: 0 auto;
}
.ag-tagline {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.ag-tagline::before,
.ag-tagline::after {
  content: ""; width: 28px; height: 1px; background: var(--line);
}

.ag-body { padding: 36px 36px 28px; }
.ag-body h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 38px; line-height: 1.05; letter-spacing: 0;
  text-align: center; margin: 0 0 12px;
}
.ag-body h1 em { font-style: italic; color: var(--accent); }
.ag-lead {
  text-align: center;
  font-size: 14px; line-height: 1.6; color: var(--muted);
  max-width: 400px; margin: 0 auto 24px;
}

/* DOB */
.dob-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 10px;
}
.dob-label::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
}
.dob-grid {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 4px; margin-bottom: 8px;
}
.dob-grid input {
  text-align: center;
  font-family: var(--font-display); font-size: 30px; letter-spacing: 0;
  padding: 10px 0 8px;
  background: transparent; border: none;
  border-bottom: 1.5px solid var(--line);
  outline: none;
  transition: border-color .15s;
  color: var(--ink);
}
.dob-grid input:focus { border-bottom-color: var(--accent); }
.dob-grid input.error { border-bottom-color: var(--accent); color: var(--accent); }
.dob-grid input::placeholder { color: var(--muted-2); }
#dob-day, #dob-month { width: 72px; }
#dob-year { width: 104px; }
.dob-sep {
  font-family: var(--font-display); font-size: 26px;
  color: var(--muted-2); padding-bottom: 10px;
}
.dob-caps {
  display: flex; justify-content: center; gap: 16px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.dob-caps span:nth-child(1) { width: 72px; text-align: center; }
.dob-caps span:nth-child(2) { width: 72px; text-align: center; }
.dob-caps span:nth-child(3) { width: 104px; text-align: center; }

.ag-error {
  background: var(--error-bg); border: 1px solid var(--error-bd);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-size: 13px; color: var(--accent); text-align: center;
  margin-bottom: 16px;
  animation: shake .35s ease;
}
@keyframes shake {
  0%,100% { transform: none; }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.ag-remember {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 20px;
  user-select: none; cursor: pointer;
}
.ag-check-box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--muted-2);
  border-radius: 5px; display: grid; place-items: center;
  transition: all .15s;
  flex-shrink: 0;
}
.ag-remember.on .ag-check-box { background: var(--ink); border-color: var(--ink); }
.ag-check-icon { opacity: 0; transform: scale(.6); transition: all .15s; color: #fff; }
.ag-remember.on .ag-check-icon { opacity: 1; transform: scale(1); }

.ag-cta {
  width: 100%; padding: 16px;
  background: var(--ink); color: var(--bg);
  border-radius: 13px;
  font-size: 15px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s, transform .1s;
}
.ag-cta:hover { background: #000; }
.ag-cta:active { transform: translateY(1px); }
.ag-cta:disabled { opacity:.4; cursor:not-allowed; }
.ag-cta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.ag-leave {
  display: block; width: 100%;
  text-align: center; color: var(--muted);
  font-size: 13px; padding: 12px;
  margin-top: 4px;
}
.ag-leave:hover { color: var(--ink-2); text-decoration: underline; }

.ag-foot {
  padding: 14px 36px 20px;
  border-top: 1px solid var(--line);
  background: #FBFAF7;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ag-disclaimer {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  flex: 1;
}
.ag-links {
  display: flex; gap: 12px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.ag-links a:hover { color: var(--ink); }

/* AG success */
.ag-success {
  text-align: center; padding: 24px 0 12px;
  animation: agFade .4s ease;
}
.ag-success-ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  color: #fff; margin: 0 auto 16px;
  animation: agPop .5s var(--ease-soft);
}
.ag-success h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 26px; margin: 0 0 6px; letter-spacing: 0;
}
.ag-success p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ── App shell ───────────────────────────────────────────────── */
#app {
  display: grid;
  grid-template-columns: 288px 1fr;
  height: 100vh; width: 100%;
  overflow: hidden;
}
@supports (height: 100dvh) {
  #app { height: 100dvh; }
}
#app.sidebar-collapsed { grid-template-columns: 64px 1fr; }

.sidebar-overlay { display: none; position: fixed; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
  transition: width 200ms ease;
}
.sidebar-brand {
  padding: 16px 18px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--sidebar);
}
.sidebar-logo {
  width: 32px; height: auto; flex-shrink: 0;
}
.sidebar-name {
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: 0; line-height: 1.1;
}
.sidebar-tag {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
  margin-top: 1px;
}

.sidebar-inner {
  padding: 12px 10px 8px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1; min-height: 0; overflow: hidden;
  background: transparent;
}
.new-chat-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
  background: var(--sidebar);
  transition: border-color .15s, transform .12s, box-shadow .15s;
  flex-shrink: 0;
}
.new-chat-btn:hover { border-color: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.new-chat-plus {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; line-height: 1; flex-shrink: 0;
}
.sidebar-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted); font-size: 13px;
  flex-shrink: 0;
}
.sidebar-search input {
  flex: 1; border: none; outline: none;
  background: transparent; font-size: 13px; color: var(--ink);
}
.sidebar-section-label {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  padding: 8px 8px 4px;
  flex-shrink: 0;
}
.conv-list {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px;
}
.conv-list::-webkit-scrollbar { width: 4px; }
.conv-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.conv-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  cursor: pointer; font-size: 13.5px; color: var(--ink-2);
  transition: background .12s, color .12s;
}
.conv-row:hover { background: var(--line-2); }
.conv-row.active {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.conv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted-2); flex-shrink: 0;
}
.conv-row.active .conv-dot { background: var(--accent); }
.conv-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time {
  font-size: 10.5px; color: var(--muted);
  font-family: var(--font-mono); flex-shrink: 0;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  background: transparent;
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #FAF8F5;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 13px;
  flex-shrink: 0;
}
.user-avatar.guest {
  background: var(--line-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.user-meta { line-height: 1.2; flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 500; }
.user-sub { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.user-entry-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  transition: background .12s, border-color .12s, color .12s;
}
.user-entry-btn:hover {
  background: var(--line-2);
  border-color: var(--ink);
  color: var(--ink);
}
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; color: var(--muted);
  transition: background .12s, color .12s;
}
.icon-btn:hover { background: rgba(0,0,0,.05); color: var(--ink); }

/* collapsed sidebar hides text */
#app.sidebar-collapsed .sidebar-name,
#app.sidebar-collapsed .sidebar-tag,
#app.sidebar-collapsed .new-chat-btn span:not(.new-chat-plus),
#app.sidebar-collapsed .sidebar-search,
#app.sidebar-collapsed .sidebar-section-label,
#app.sidebar-collapsed .conv-list,
#app.sidebar-collapsed .user-avatar,
#app.sidebar-collapsed .user-meta,
#app.sidebar-collapsed .user-entry-btn,
#atv2-app.sidebar-collapsed .sidebar-name,
#atv2-app.sidebar-collapsed .sidebar-tag,
#atv2-app.sidebar-collapsed .new-chat-btn span:not(.new-chat-plus),
#atv2-app.sidebar-collapsed .sidebar-search,
#atv2-app.sidebar-collapsed .sidebar-section-label,
#atv2-app.sidebar-collapsed .conv-list,
#atv2-app.sidebar-collapsed .user-avatar,
#atv2-app.sidebar-collapsed .user-meta,
#atv2-app.sidebar-collapsed .user-entry-btn { display: none; }
#app.sidebar-collapsed .sidebar-brand,
#atv2-app.sidebar-collapsed .sidebar-brand { justify-content: center; padding: 18px 0; }
#app.sidebar-collapsed .sidebar-inner,
#atv2-app.sidebar-collapsed .sidebar-inner { padding: 12px 0; align-items: center; }
#app.sidebar-collapsed .new-chat-btn,
#atv2-app.sidebar-collapsed .new-chat-btn { padding: 10px; justify-content: center; width: 44px; }
#app.sidebar-collapsed .sidebar-footer,
#atv2-app.sidebar-collapsed .sidebar-footer { justify-content: center; padding: 10px 0; }

/* collapse button */
.collapse-btn {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--muted);
  transition: background .12s, color .12s;
}
.collapse-btn:hover { background: var(--line-2); color: var(--ink); }

/* ── Main pane ───────────────────────────────────────────────── */
.main {
  display: flex; flex-direction: column;
  width: 100%;
  min-width: 0; min-height: 0;
  background: var(--bg);
  overflow-x: hidden;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  flex-shrink: 0; z-index: 2;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.atv-unified-topbar {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
}
.atv-unified-topbar .topbar-left,
.atv-unified-topbar .topbar-right {
  min-width: 0;
}
.atv-brand-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.atv-topbar-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 54px;
  border-radius: 14px;
  transition: background .12s ease;
}
.atv-topbar-brand-mark:hover { background: var(--line-2); }
.atv-topbar-logo {
  width: 24px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.atv-topbar-actions {
  justify-content: flex-end;
}
.atv-topbar-cart {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.mobile-auth-btn {
  display: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-auth-btn:hover { background: var(--line-2); color: var(--ink); }
.toggle-sidebar-btn {
  width: 36px; height: 36px; border-radius: 9px;
  display: none; place-items: center; color: var(--muted);
  transition: background .12s; flex-shrink: 0;
}
.toggle-sidebar-btn:hover { background: var(--line-2); color: var(--ink); }
.ghost-btn {
  padding: 6px 11px; border-radius: 10px;
  font-size: 13px; color: var(--ink-2);
  border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s;
}
.ghost-btn:hover { background: var(--line-2); border-color: var(--line); color: var(--ink); }
.primary-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.26);
  transition: background .12s ease, transform .12s ease;
}
.primary-btn:hover {
  background: #2a2624;
  transform: translateY(-1px);
}

/* model pill in topbar */
.model-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; background: var(--surface); color: var(--ink);
  cursor: default; user-select: none;
}
.model-chip {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); position: relative; flex-shrink: 0;
}
.model-chip::after {
  content: ""; position: absolute; right: 2px; bottom: 2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.model-caret { color: var(--muted); font-size: 10px; }
.atv-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 24px -22px rgba(0,0,0,.28);
}
.atv-mode-switch a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.atv-mode-switch a:hover {
  color: var(--ink);
}
.atv-mode-switch a.active {
  background: var(--ink);
  color: #fff;
}
.atv-mode-switch-compact {
  margin-left: 10px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang-toggle button {
  min-width: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lang-toggle button.on {
  background: var(--ink);
  color: #fff;
}

/* quick chips below suggest-grid */
.quick-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: -2px;
  max-width: 760px;
}
.quick-chip {
  border: 1px solid var(--line); background: var(--surface);
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2);
  cursor: pointer; transition: border-color .12s, color .12s;
}
.quick-chip:hover { border-color: var(--ink); color: var(--ink); }

.empty-center {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.atv2-product-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 308px;
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.atv2-product-card:hover {
  transform: translateY(-2px);
  border-color: #d8d0c5;
  box-shadow: 0 18px 34px -26px rgba(0,0,0,.18);
}
.atv2-product-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}
.atv2-product-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.atv2-product-stage {
  width: 100%;
  height: 154px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbf8f2 0%, #f0e9de 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.atv2-product-stage::before {
  content: "";
  position: absolute;
  inset: auto 18px 14px;
  height: 18px;
  border-radius: 50%;
  background: rgba(40,32,24,.08);
  filter: blur(10px);
}
.atv2-product-stage img {
  display: block;
  max-width: 100%;
  max-height: 136px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.atv2-product-kicker {
  min-height: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atv2-product-name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.02;
  color: var(--ink);
  min-height: 56px;
  text-wrap: balance;
}
.atv2-product-sub {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .1em;
  min-height: 30px;
}
.atv2-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
}
.atv2-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--ink-2);
  background: var(--surface);
}
.atv2-product-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
}
.atv2-product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.atv2-product-price {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}
.atv2-product-price small {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--muted);
  margin-left: 2px;
}
.atv2-product-cta {
  font-size: 12px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.atv2-product-cta::after {
  content: "→";
  font-family: var(--font-mono);
}
.atv2-page-foot {
  width: 100%;
  margin-top: 4px;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.atv2-page-foot-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.atv2-page-foot-brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  line-height: 1;
}
.atv2-page-foot-sep { color: var(--muted-2); }
.atv2-page-foot-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Chat scroll area ───────────────────────────────────────── */
.chat-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
}
.chat-scroll::-webkit-scrollbar { width: 8px; }
.chat-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 48px 24px 32px;
  min-height: 100%;
}
.empty-logo {
  width: 96px; height: 140px; margin-bottom: 0;
  object-fit: contain;
}
.empty-state h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: .98; letter-spacing: 0;
  margin: 0; max-width: 760px;
  text-align: center;
}
.empty-state h1 .accent-word { color: var(--accent); font-style: italic; }
.empty-state h1 .dot { width: 9px; height: 9px; transform: translateY(-9px); display:inline-block; margin-left:4px; background:var(--accent); border-radius:50%; }
.empty-sub {
  color: var(--muted); font-size: 15px;
  max-width: 56ch; margin: 0; line-height: 1.55;
  text-align: center;
}
.suggest-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px; width: 100%; max-width: 760px;
}
.suggest-card {
  text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 16px 14px;
  cursor: pointer; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 7px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.suggest-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-2);
  box-shadow: var(--shadow-soft);
}
.suggest-card .s-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.suggest-card .s-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.suggest-card .s-q {
  font-family: var(--font-display); font-size: 17px;
  line-height: 1.22; letter-spacing: 0; color: var(--ink);
}
.suggest-card .s-hint { font-size: 12px; color: var(--muted); }
.suggest-card::after {
  content: "→"; position: absolute; right: 13px; bottom: 9px;
  color: var(--muted-2); font-family: var(--font-mono);
  transition: transform .18s, color .18s;
}
.suggest-card:hover::after { color: var(--accent); transform: translateX(3px); }
.commerce-link-chip {
  white-space: nowrap;
}

/* ── Messages ───────────────────────────────────────────────── */
.messages {
  max-width: 800px; margin: 0 auto; width: 100%;
  padding: 30px 24px 44px;
  display: flex; flex-direction: column; gap: 24px;
  min-width: 0;
}
.msg { display: flex; gap: 16px; animation: msgIn .30s ease both; }
@keyframes msgIn {
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: none; }
}
.msg-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 13px;
  margin-top: 2px;
}
.msg.user .msg-avatar { background: var(--line-2); color: var(--ink-2); }
.msg.ai .msg-avatar {
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 8px 22px -18px rgba(0,0,0,.35);
}
.msg.ai .msg-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.msg-body { flex: 1; min-width: 0; }
.msg-role {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.msg-content {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.68;
  letter-spacing: 0;
}
.msg.ai .msg-content h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; margin: 14px 0 7px; letter-spacing: 0;
  line-height: 1.06;
}
.msg.ai .msg-content p { margin: 0 0 11px; }
.msg.ai .msg-content p:last-child { margin-bottom: 0; }
.msg.ai .msg-content ul { padding-left: 0; list-style: none; margin: 8px 0 10px; }
.msg.ai .msg-content li { position: relative; padding-left: 17px; margin-bottom: 4px; }
.msg.ai .msg-content li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.msg.ai .msg-content em { color: var(--ink-2); font-style: italic; }
.msg.ai .msg-content strong { font-weight: 600; }
.msg.ai .msg-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 13px;
}
.msg.ai .msg-content th,
.msg.ai .msg-content td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

/* Wine card inside message */
.wine-card-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  margin-top: 12px;
  scroll-snap-type: x proximity;
}
.wine-card-group {
  margin-top: 14px;
}
.wine-card-group-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 2px 8px;
}
.wine-card-group-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.wine-card-strip::-webkit-scrollbar { height: 6px; }
.wine-card-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.wine-card-msg {
  margin: 10px 0 4px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; background: var(--surface);
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.wine-card-strip .wine-card-msg {
  min-width: 252px;
  max-width: 320px;
  margin: 0;
  scroll-snap-align: start;
}
.wine-card-msg:hover {
  border-color: var(--ink-2);
  box-shadow: var(--shadow-soft);
}
.wine-card-bottle {
  width: 36px; height: 54px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(238,233,226,.84));
  position: relative; flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(30,26,22,.08);
  margin: 0;
}
.wine-card-bottle img {
  width: 100%; height: 100%; object-fit: contain; border-radius: inherit;
  padding: 2px;
}
.wine-card-bottle::before {
  content: ""; position: absolute; left: 50%; top: -5px;
  transform: translateX(-50%);
  width: 8px; height: 7px; background: var(--ink); border-radius: 2px;
}
.wine-card-bottle:not(.no-img)::before { display: none; }
.wine-card-bottle.no-img {
  background: linear-gradient(180deg,#3a0d0f 0%,#5c1416 45%,#2a0608 100%);
  border-color: transparent;
}
.wine-card-info .wc-name {
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: 0; line-height: 1.15;
  text-align: left;
}
.wine-card-info .wc-meta {
  font-size: 12px; color: var(--muted);
  margin-top: 2px; font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.wine-card-info .wc-reason {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-2);
}
.wine-card-price {
  text-align: right; flex-shrink: 0;
}
.wine-card-msg.consulting .wine-card-price {
  text-align: right;
}
.wine-card-price .wc-price {
  font-family: var(--font-display); font-size: 22px;
  letter-spacing: 0;
}
.wine-card-price .wc-avail {
  font-size: 11px; color: var(--muted); font-family: var(--font-mono);
  letter-spacing: 0.08em; margin-top: 2px;
}
.wine-card-price .wc-avail.green { color: var(--success); }
.wine-card-price.soft .wc-avail {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
}

/* Typing indicator */
.typing-dots {
  display: flex; align-items: center; gap: 5px;
  padding: 14px 16px; background: var(--surface);
  border-radius: 4px 18px 18px 18px;
  width: fit-content;
}
.typing-dots span {
  display: block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--muted-2);
  animation: bounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .18s; }
.typing-dots span:nth-child(3) { animation-delay: .36s; background: var(--accent); }
@keyframes bounce {
  0%,80%,100% { transform: translateY(0); opacity:.45; }
  40%          { transform: translateY(-4px); opacity:1; }
}

/* ── Composer ───────────────────────────────────────────────── */
.composer-bar {
  padding: 0 20px 20px;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  flex-shrink: 0;
}
.composer-wrap { max-width: 760px; margin: 0 auto; }
.composer {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 42px -34px rgba(0,0,0,.26);
  transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within {
  border-color: var(--ink-2);
  box-shadow: 0 18px 42px -30px rgba(0,0,0,.32);
}
.composer textarea {
  display: block; width: 100%;
  background: transparent; border: none; outline: none;
  font-size: 15px; font-weight: 400; color: var(--ink);
  resize: none; line-height: 1.58;
  padding: 17px 64px 17px 18px;
  min-height: 64px; max-height: 200px;
  overflow-y: auto;
}
.composer textarea::placeholder { color: var(--muted); }
.composer-row {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: flex-start;
  gap: 8px;
  padding: 0;
  pointer-events: none;
}
.tool-btns { display: flex; gap: 2px; }
.tool-btns-voice-only { display: flex; }
.tool-btns button {
  width: 32px; height: 32px; border-radius: 8px;
  color: var(--muted); display: grid; place-items: center;
  transition: background .12s, color .12s;
  pointer-events: auto;
}
.tool-btns button:hover { background: var(--line-2); color: var(--ink); }
.tool-btns button svg { display: block; }
.voice-btn.recording {
  background: rgba(214,40,40,.12);
  color: var(--accent);
}
.voice-btn.recording svg {
  animation: voicePulse 1s ease-in-out infinite;
}
.voice-btn.busy {
  opacity: .6;
  cursor: wait;
}
@keyframes voicePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.send-btn {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  transition: transform .12s, background .15s, opacity .12s;
  flex-shrink: 0;
  margin-left: 0;
  pointer-events: auto;
}
.send-btn:disabled { opacity: .35; cursor: not-allowed; }
.send-btn:not(:disabled):hover { transform: translateY(-1px); }
.send-btn.ready { background: var(--accent); }
.send-btn svg { width: 14px; height: 14px; fill: currentColor; }
.composer-hint {
  text-align: center; padding: 7px 0 0;
  font-size: 10.5px; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
}

/* ================================================================
   WINE DETAIL PAGE
   ================================================================ */

.wd-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.wd-topbar-left, .wd-topbar-right { display: flex; align-items: center; gap: 12px; }
.wd-topbar-left,
.wd-topbar-center,
.wd-topbar-right {
  min-width: 0;
  flex: 1;
}
.wd-topbar-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.wd-topbar-right {
  justify-content: flex-end;
}
.atv2-topbar-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 42px;
  flex: 0 0 auto;
}
.atv2-topbar-logo {
  display: block;
  width: 24px;
  height: 38px;
  max-width: 24px;
  max-height: 38px;
  object-fit: contain;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px; border-radius: 10px;
  font-size: 13px; color: var(--ink-2);
  transition: background .12s;
}
.back-btn:hover { background: var(--line-2); }
.wd-brand { display: flex; align-items: center; gap: 10px; }
.wd-brand-logo { width: 22px; height: auto; }
.wd-brand-name { font-family: var(--font-display); font-size: 16px; letter-spacing: 0; }
.crumbs {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.crumbs .sep { margin: 0 6px; color: var(--muted-2); }
.wd-icon-btn {
  position: relative;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: var(--ink-2);
  transition: background .12s;
}
.wd-icon-btn:hover { background: var(--line-2); }
.cart-count-badge {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--bg);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0;
}

.wd-page {
  max-width: 1200px; margin: 0 auto;
  padding: 36px 40px 72px;
}

/* Hero 2-col */
.wd-hero {
  display: grid; grid-template-columns: 440px 1fr;
  gap: 64px; align-items: stretch;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.wd-info-col { display: flex; flex-direction: column; }

/* Bottle stage */
.bottle-stage {
  background:
    radial-gradient(ellipse at 50% 85%, rgba(0,0,0,.08) 0%, transparent 55%),
    linear-gradient(180deg, #F5F1EA 0%, #EDE7DB 100%);
  border-radius: 20px;
  display: grid; place-items: center;
  padding: 40px 0;
  position: relative; overflow: hidden;
  align-self: stretch;
}
.bottle-stage .bs-counter {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
}
.bottle-stage .bs-wm {
  position: absolute; left: 18px; top: 18px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.bottle-stage .bs-wm::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
}

/* Real bottle image */
.bottle-img {
  width: 130px; height: 420px; object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0,0,0,.20));
}

/* CSS bottle fallback */
.css-bottle {
  width: 130px; height: 440px; position: relative;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.18));
}
.css-bottle .b-cap {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 44px; height: 38px;
  background: linear-gradient(180deg,#2a1210 0%,#1a0807 100%);
  border-radius: 3px 3px 2px 2px;
}
.css-bottle .b-neck {
  position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 110px;
  background: linear-gradient(90deg,#240809 0%,#5c1416 50%,#240809 100%);
  border-radius: 4px 4px 0 0;
}
.css-bottle .b-body {
  position: absolute; top: 140px; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg,#1a0606 0%,#4a1012 40%,#6a1820 55%,#4a1012 75%,#1a0606 100%);
  border-radius: 10px 10px 14px 14px;
}
.css-bottle .b-label {
  position: absolute; top: 210px; left: 14px; right: 14px;
  background: #FAF8F5; padding: 16px 8px 12px;
  text-align: center; border: 1px solid rgba(0,0,0,.08);
}
.css-bottle .b-label .bl-top {
  font-family: var(--font-mono); font-size: 7px;
  letter-spacing: 0.22em; color: var(--ink-2); text-transform: uppercase;
}
.css-bottle .b-label .bl-mid {
  font-family: var(--font-display); font-size: 13px; color: var(--ink);
  margin-top: 5px; line-height: 1.1;
}
.css-bottle .b-label .bl-line { height: 1px; background: var(--line); margin: 6px 12px; }
.css-bottle .b-label .bl-bot {
  font-family: var(--font-mono); font-size: 7px;
  letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase;
}

/* Info column */
.wd-producer {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.wd-producer::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.wd-wine-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 5vw, 68px); line-height: 1;
  letter-spacing: 0; margin: 8px 0 4px;
}
.wd-wine-name em { font-style: italic; color: var(--accent); }
.wd-subtitle {
  font-size: 17px; color: var(--ink-2);
  font-family: var(--font-display); font-style: italic;
}

.wd-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 20px 0 22px;
}
.wd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line);
  border-radius: var(--r-pill); font-size: 12px; color: var(--ink-2);
  background: var(--surface);
}
.wd-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.wd-badge.hot .wd-badge-dot { background: var(--accent); }

/* Stats grid */
.wd-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; margin-bottom: 26px; gap: 0;
}
.wd-stat {
  padding: 0 14px;
  border-right: 1px solid var(--line);
}
.wd-stat:last-child { border-right: none; }
.wd-stat:first-child { padding-left: 0; }
.wd-stat .sk {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.wd-stat .sv {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: 0; line-height: 1.05;
}
.wd-stat .sv small {
  font-family: var(--font-ui); font-size: 12px;
  color: var(--muted); margin-left: 3px;
}
.wd-stat .sv.award-label {
  font-size: 17px;
  line-height: 1.18;
  max-width: 170px;
}
.wd-stat .sv.award-source {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.2;
  padding-top: 3px;
}

/* Purchase block */
.wd-purchase {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 20px; align-items: center;
  margin-top: auto;
}
.wd-price-col .old-price {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); text-decoration: line-through;
}
.wd-price-big {
  font-family: var(--font-display); font-size: 44px;
  letter-spacing: 0; line-height: 1; margin: 2px 0 3px;
}
.wd-price-big.market {
  font-size: 34px;
  color: var(--ink-2);
}
.wd-price-big.unavailable {
  font-size: 24px;
  color: var(--muted);
}
.wd-price-vat {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.wd-market-source {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.wd-stock {
  display: flex; align-items: center; gap: 7px;
  margin-top: 8px; font-size: 13px; color: var(--ink-2);
}
.wd-stock-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  animation: wdPulse 2s infinite;
}
@keyframes wdPulse {
  0%   { box-shadow: 0 0 0 0 rgba(63,143,63,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(63,143,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,143,63,0); }
}
.wd-buy-col { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.wd-qty {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg);
}
.wd-qty-btn {
  width: 30px; height: 30px; border-radius: 8px;
  font-size: 18px; line-height: 1; color: var(--ink-2);
  transition: background .12s;
}
.wd-qty-btn:hover { background: var(--line-2); color: var(--ink); }
.wd-qty-val {
  font-family: var(--font-display); font-size: 18px; padding: 0 12px;
}
.wd-buy-btn {
  padding: 13px 18px; background: var(--ink); color: var(--bg);
  border-radius: 11px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s, background .12s;
}
.wd-buy-btn:hover { transform: translateY(-1px); background: #000; }
.wd-buy-btn .btn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.wd-buy-alt {
  padding: 11px; border: 1px solid var(--line);
  border-radius: 11px; font-size: 13px; color: var(--ink-2);
  text-align: center; background: var(--surface);
  transition: border-color .12s;
}
.wd-buy-alt:hover { border-color: var(--ink); color: var(--ink); }
.wd-buy-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.wd-buy-note.wide {
  font-family: var(--font-ui);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  color: var(--ink-2);
}
.cart-added-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(63, 143, 63, .22);
  border-radius: 12px;
  background: rgba(63, 143, 63, .08);
  color: var(--ink);
}
.cart-added-panel.error {
  border-color: rgba(178, 74, 55, .22);
  background: rgba(178, 74, 55, .08);
}
.cart-added-panel strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}
.cart-added-panel span {
  display: block;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.35;
}
.cart-added-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cart-added-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.cart-added-actions a:first-child {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Sections */
.wd-sections { padding-top: 48px; display: grid; gap: 52px; }
.wd-section-h {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.wd-section-h h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 30px; letter-spacing: 0; margin: 0;
}
.wd-kicker {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.wd-kicker::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
}

/* Tasting note */
.wd-taste {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
}
.wd-taste-note {
  font-family: var(--font-display); font-size: 20px;
  line-height: 1.5; letter-spacing: 0;
  color: var(--ink); margin: 0;
}
.wd-taste-note::first-letter {
  font-size: 58px; float: left;
  line-height: .9; padding: 4px 10px 0 0;
  color: var(--accent);
}
.wd-taste-right { display: flex; flex-direction: column; gap: 14px; }
.wd-pull {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 16px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.6;
}
.wd-signed {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* Structure bars */
.wd-bars {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 26px 48px;
}
.bar-row .bar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 7px;
}
.bar-lbl {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.bar-ends {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--muted);
}
.bar-track {
  height: 6px; border-radius: 4px;
  background: var(--line-2); overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 100%);
  width: 0;
  transition: width .8s ease;
}

/* Aromas */
.wd-aromas {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 34px; align-items: start;
}
.aroma-score-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  min-height: 150px;
  padding: 24px 20px;
  display: flex; flex-direction: column; justify-content: center;
}
.aroma-score-value {
  font-family: var(--font-display); font-size: 54px; line-height: .9;
  color: var(--ink);
}
.aroma-score-label,
.aroma-score-scale {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.aroma-score-label { margin-top: 14px; color: var(--ink-2); }
.aroma-score-scale { margin-top: 6px; }
.aroma-profile-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}
.aroma-row {
  min-width: 0;
}
.aroma-row-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 7px;
}
.aroma-name {
  display: inline-flex; align-items: center; gap: 7px;
  min-width: 0;
  font-size: 13px; color: var(--ink-2);
}
.aroma-value {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; color: var(--muted);
  flex: 0 0 auto;
}
.aroma-track {
  height: 7px; border-radius: 999px;
  background: var(--line-2); overflow: hidden;
}
.aroma-fill {
  height: 100%; border-radius: 999px;
  min-width: 0;
}
.aroma-tag {
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 13px; background: var(--surface);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 7px;
}
.aroma-tag-dot { width: 7px; height: 7px; border-radius: 50%; }
.aroma-tag small {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; color: var(--muted);
}

/* Pairings */
.wd-pairings {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
}
.pairing-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 18px 18px;
  min-height: 126px;
  display: flex; flex-direction: column; justify-content: center;
  text-align: left; transition: border-color .15s, transform .15s;
}
.pairing-card:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.pairing-name {
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: 0; margin-bottom: 8px; line-height: 1.25;
}
.pairing-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Technical facts */
.wd-tech {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.tech-row {
  display: grid; grid-template-columns: 140px 1fr;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.tech-row:nth-child(odd) { background: var(--surface); }
.tech-row:nth-last-child(-n+2) { border-bottom: none; }
.tech-key {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); align-self: center;
}
.tech-val { color: var(--ink-2); }

/* Producer card */
.wd-producer-card {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 32px; align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
}
.wd-producer-card:hover {
  border-color: var(--ink-2);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.producer-photo {
  width: 200px; height: 160px; border-radius: var(--r-md);
  background: repeating-linear-gradient(
    45deg, var(--line) 0, var(--line) 1px,
    var(--line-2) 0, var(--line-2) 8px
  );
  overflow: hidden;
}
.producer-photo img { width: 100%; height: 100%; object-fit: cover; }
.producer-name-big {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: 0; margin-bottom: 10px;
}
.producer-narrative {
  font-size: 14.5px; line-height: 1.65; color: var(--ink-2);
  margin-bottom: 14px;
}
.producer-facts {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.producer-fact {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.producer-fact strong { color: var(--ink); font-style: normal; }
.producer-copy { min-width: 0; }
.producer-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
}

/* Vintages rail */
.vintages-rail {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.vintage-pill {
  padding: 7px 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; color: var(--ink-2);
  cursor: pointer; transition: all .12s;
  text-decoration: none;
}
.vintage-pill:hover { border-color: var(--ink); color: var(--ink); }
.vintage-pill.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vintage-pill.sold-out { opacity: .4; cursor: default; }

/* Ask-AI banner */
.ask-ai-banner {
  background: var(--ink); border-radius: 18px;
  padding: 36px 40px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
}
.aab-text .aab-kicker {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 10px;
}
.aab-text h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 26px; letter-spacing: 0;
  color: var(--bg); margin: 0 0 8px;
}
.aab-text p {
  font-size: 14px; color: rgba(255,255,255,.55); margin: 0;
}
.aab-btn {
  padding: 13px 22px;
  background: rgba(255,255,255,.1); color: var(--bg);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; font-size: 14px; font-weight: 500;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  transition: background .15s;
}
.aab-btn:hover { background: rgba(255,255,255,.18); }

/* Related wines */
.related-wines {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}
.related-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.related-card:hover {
  border-color: var(--ink-2); box-shadow: var(--shadow-soft);
}
.rc-stage {
  height: 120px; background: linear-gradient(180deg,#F5F1EA 0%,#EDE7DB 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.rc-stage img { height: 100px; width: auto; object-fit: contain; }
.rc-body { padding: 14px; }
.rc-producer {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 4px;
}
.rc-name {
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: 0; margin-bottom: 4px;
}
.rc-type { font-size: 12px; color: var(--muted); }
.rc-price {
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: 0; margin-top: 8px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  #app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 288px; z-index: 100;
    transform: translateX(-100%);
    transition: transform 260ms ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.12);
  }
  .sidebar.open { transform: none; }
  .sidebar-overlay {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,.35);
    display: none;
  }
  .sidebar-overlay.open { display: block; }
  .toggle-sidebar-btn { display: grid; }
  .topbar { padding: 12px 18px; }
  .topbar-right .ghost-btn,
  .topbar-right .primary-btn { display: none; }
  .atv-mode-switch a { padding: 6px 10px; }
  .mobile-auth-btn { display: inline-flex; align-items: center; justify-content: center; }
  .lang-toggle { margin-left: auto; }
}
@media (max-width: 680px) {
  :root {
    --mobile-composer-space: 168px;
  }
  html, body, #app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }
  html,
  body {
    min-width: 0;
    position: relative;
    touch-action: pan-y;
  }
  #app {
    display: flex;
    flex-direction: column;
    height: 100svh;
    min-height: 100svh;
  }
  @supports (height: 100dvh) {
    #app {
      height: 100dvh;
      min-height: 100dvh;
    }
  }
  .main,
  .topbar,
  .chat-scroll,
  .messages,
  .empty-state,
  .composer-bar,
  .composer-wrap,
  .composer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .main { flex: 1; }
  .topbar {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .topbar-left,
  .topbar-right {
    min-width: 0;
  }
  .topbar-right {
    flex-shrink: 0;
  }
  .empty-state { padding-top: 18px; }
  .empty-center { gap: 14px; }
  .empty-logo { width: 72px; height: 104px; margin-bottom: 10px; }
  .empty-state h1 { font-size: 40px; line-height: .95; }
  .empty-state h1 .dot { width: 9px; height: 9px; transform: translateY(-7px); }
  .empty-sub { font-size: 14px; margin-bottom: 0; }
  .chat-scroll { padding: 18px 14px var(--mobile-composer-space); }
  .messages,
  .suggest-grid { max-width: 100%; }
  .messages { padding-left: 0; padding-right: 0; padding-bottom: 36px; }
  .suggest-card:nth-child(n+3) { display: none; }
  .quick-chips { display: none; }
  .msg { gap: 12px; }
  .msg-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
    margin-top: 1px;
  }
  .msg.ai .msg-avatar img { padding: 3px; }
  .msg-role {
    font-size: 10px;
    letter-spacing: 0.16em;
    margin-bottom: 5px;
  }
  .msg-content {
    font-size: 14px;
    line-height: 1.58;
    font-weight: 400;
    letter-spacing: 0;
  }
  .msg.ai .msg-content h3 {
    font-size: 17px;
    margin: 10px 0 5px;
  }
  .msg.ai .msg-content p { margin-bottom: 9px; }
  .msg.ai .msg-content li {
    padding-left: 17px;
    margin-bottom: 5px;
  }
  .msg.ai .msg-content li::before {
    top: 8px;
    width: 5px;
    height: 5px;
  }
  .msg.ai .msg-content table { font-size: 13px; }
  .msg.ai .msg-content table,
  .msg.ai .msg-content pre,
  .wine-card-msg {
    max-width: 100%;
  }
  .wine-card-strip .wine-card-msg {
    min-width: min(248px, 72vw);
  }
  .wine-card-msg {
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }
  .wine-card-bottle {
    width: 28px;
    height: 42px;
  }
  .wine-card-info .wc-name { font-size: 14px; }
  .wine-card-info .wc-meta { font-size: 10px; }
  .wine-card-price .wc-price { font-size: 18px; }
  .composer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    width: 100vw;
    max-width: 100vw;
    padding: 0 12px calc(10px + env(safe-area-inset-bottom));
    flex-shrink: 0;
  }
  .composer-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .composer {
    width: 100%;
    max-width: 100%;
    contain: layout paint;
  }
  .composer textarea {
    min-height: 52px;
    padding: 16px 58px 16px 14px;
    font-size: 16px;
    line-height: 1.5;
    transform: translateZ(0);
  }
  .composer textarea:focus {
    font-size: 16px;
  }
  .composer-row { right: 10px; gap: 6px; }
  .tool-btns button { width: 30px; height: 30px; }
  .send-btn { width: 32px; height: 32px; border-radius: 9px; }
  .composer-hint { display: none; }
  .sidebar-footer { display: none; }
  .topbar { padding: 10px 12px; }
  .atv2-page-foot { flex-direction: column; align-items: flex-start; }
  .model-pill span:nth-child(2) { max-width: 96px; }
  .atv-mode-switch {
    gap: 2px;
    padding: 2px;
  }
  .atv-mode-switch a {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
  .atv-mode-switch-compact {
    margin-left: 6px;
  }
  .mobile-auth-btn { padding: 5px 10px; font-size: 11px; }
  .suggest-grid { grid-template-columns: 1fr; }
  .ag-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ag-modal .ag-top { padding: 28px 20px 18px; }
  .ag-body { padding: 26px 22px 22px; }
  .ag-body h1 { font-size: 30px; }
  .dob-grid input { font-size: 26px; }
  #dob-day, #dob-month { width: 60px; }
  #dob-year { width: 88px; }

  .wd-hero { grid-template-columns: 1fr; gap: 0; }
  .bottle-stage { min-height: 320px; border-radius: 16px 16px 0 0; }
  .wd-page { padding: 20px 18px 48px; }
  .wd-topbar { padding: 10px 12px; }
  .crumbs { display: none; }
  .wd-brand-name { font-size: 14.5px; }
  .wd-brand-logo { width: 20px; }
  .wd-wine-name { font-size: 32px; line-height: 1.02; }
  .wd-subtitle { font-size: 14px; }
  .wd-stats { grid-template-columns: repeat(2,1fr); }
  .wd-purchase { grid-template-columns: 1fr; }
  .wd-buy-col { min-width: unset; }
  .wd-taste { grid-template-columns: 1fr; }
  .wd-taste-note { font-size: 16px; line-height: 1.5; }
  .wd-taste-note::first-letter { font-size: 42px; padding-right: 7px; }
  .wd-aromas { grid-template-columns: 1fr; }
  .aroma-profile-bars { grid-template-columns: 1fr; }
  .wd-bars { grid-template-columns: 1fr; }
  .wd-pairings { grid-template-columns: repeat(2,1fr); }
  .wd-tech { grid-template-columns: 1fr; }
  .wd-producer-card { grid-template-columns: 1fr; }
  .ask-ai-banner { grid-template-columns: 1fr; padding: 24px; }
  .related-wines { grid-template-columns: 1fr; }
  .topbar-left { gap: 10px; min-width: 0; }
  .model-pill { padding: 6px 10px 6px 8px; }
  .model-pill span:nth-child(2) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lang-toggle button {
    min-width: 30px;
    padding: 5px 8px;
  }
}
@media (max-height: 760px) {
  .ag-top { padding: 24px 32px 14px; }
  .ag-logo { width: 70px; }
  .ag-body h1 { font-size: 32px; }
  .ag-body { padding: 22px 32px 20px; }
}

.cart-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 20px 84px;
}
.cart-page .wd-section-h {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 24px;
  align-items: start;
}
.checkout-main,
.checkout-side {
  display: grid;
  gap: 18px;
}
.checkout-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 22px 24px;
}
.checkout-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.checkout-panel-head h3 {
  margin: 0;
  font: 400 28px/1 var(--font-display);
}
.checkout-panel-head span,
.checkout-muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.checkout-grid {
  display: grid;
  gap: 14px;
}
.checkout-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-grid .full {
  grid-column: 1 / -1;
}
.checkout-grid label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--ink);
}
.checkout-grid label span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
}
.checkout-grid input,
.checkout-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 13px 14px;
  font: 500 14px/1.4 var(--font-sans);
  color: var(--ink);
}
.checkout-grid textarea {
  resize: vertical;
  min-height: 88px;
}
.checkout-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--ink);
}
.checkout-check input {
  width: 16px;
  height: 16px;
}
.checkout-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-summary-row.total {
  font-size: 18px;
  border-bottom: none;
  padding-bottom: 0;
}
.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.checkout-actions.stacked {
  flex-direction: column;
}
.checkout-secondary-link,
.cart-inline-link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
}
.checkout-alert {
  border: 1px solid rgba(178, 74, 55, .18);
  background: rgba(178, 74, 55, .08);
  color: #8f3929;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 14px;
}
.cart-lines {
  display: grid;
  gap: 14px;
}
.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  padding: 16px 18px;
}
.cart-line-alert {
  border-color: rgba(178, 74, 55, .28);
}
.cart-line-image {
  width: 72px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf8f4 0%, #f0ebe4 100%);
}
.cart-line-image img {
  max-width: 52px;
  max-height: 96px;
  object-fit: contain;
}
.cart-line-producer {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
}
.cart-line-name {
  margin-top: 3px;
  font: 400 28px/1 var(--font-display);
}
.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.cart-line-actions form {
  margin: 0;
}
.cart-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.cart-line-note {
  margin-top: 10px;
  font-size: 13px;
  color: #8f3929;
}
.cart-line-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 160px;
}
.cart-line-price {
  font: 400 28px/1 var(--font-display);
}
.cart-line-total-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.cart-qty-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-qty-input {
  width: 76px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
}
.cart-inline-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.cart-inline-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 0;
}
.checkout-mini-list {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.checkout-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.checkout-payment-placeholder {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.65);
}
.checkout-payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 28, 46, .18);
  background: rgba(122, 28, 46, .06);
  color: var(--wine);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}
.checkout-success-card {
  max-width: 760px;
  margin: 36px auto 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  padding: 30px 32px;
}
.checkout-success-card h1 {
  margin: 0 0 14px;
  font: 400 48px/.95 var(--font-display);
}
.is-hidden {
  display: none !important;
}

/* ── ATV coherence pass 2026-05-02 ──────────────────────────── */
.wd-wine-name,
.wd-price-big,
.wd-stat .sv,
.atv2-product-name,
.atv2-product-price,
.atv2-results-title,
.atv2-hero-panel h1,
.atv2-landing-hero h1,
.empty-center h1,
.ag-body h1,
.sidebar-name,
.wd-brand-name {
  letter-spacing: 0 !important;
}

.atv2-app,
#app,
.wd-page,
.cart-page,
.checkout-shell {
  background: var(--bg);
}

.atv2-topbar-shell .topbar,
.wd-topbar,
.topbar {
  min-height: 66px;
  background: rgba(250, 248, 245, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.atv-mode-switch,
.lang-toggle,
.model-pill,
.wd-icon-btn,
.ghost-btn,
.user-entry-btn {
  border-radius: 10px;
}

.atv2-product-card,
.atv-commerce-card,
.atv-agent-feature,
.checkout-panel,
.cart-line,
.wd-purchase,
.wd-stat,
.wd-taste,
.wd-aromas,
.wd-bars,
.wd-tech,
.wd-producer-card,
.ask-ai-banner,
.related-card,
.pd-map-card,
.pd-sites-card,
.pd-catalog-card,
.pd-atv-card {
  border-radius: 8px !important;
  box-shadow: none !important;
}

.atv2-product-card {
  background: #fff;
  min-height: 388px;
}

.atv2-product-link {
  grid-template-rows: 198px 1fr;
}

.atv2-product-stage {
  height: 198px;
  border-radius: 8px 8px 0 0 !important;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(0,0,0,.08) 0%, transparent 57%),
    linear-gradient(180deg, #fbf8f2 0%, #eee8dd 100%) !important;
}

.atv2-product-stage img {
  max-height: 172px;
  max-width: 76%;
}

.atv2-product-body {
  padding: 15px 15px 16px;
}

.atv2-product-name {
  font-size: 23px;
  line-height: 1.06;
  min-height: 74px;
  overflow-wrap: anywhere;
}

.atv2-product-sub {
  min-height: 34px;
  color: var(--muted);
}

.atv2-product-foot {
  align-items: center;
}

.atv2-product-price {
  font-size: 29px;
  white-space: nowrap;
}

.atv2-product-cta {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.bottle-stage {
  border-radius: 8px;
}

.wd-purchase {
  padding: 14px;
  gap: 14px;
}

.wd-price-col {
  min-width: 0;
}

.wd-price-vat {
  letter-spacing: .08em;
}

.wd-buy-btn,
.ag-cta,
.primary-btn,
.new-chat-btn,
.atv-commerce-link,
.atv2-landing-link,
.atv2-filter-actions .ghost-btn,
.cart-qty-input,
.cart-inline-btn,
.checkout-payment-placeholder,
.checkout-success-card {
  border-radius: 8px !important;
}

.atv2-page-foot {
  border-top-color: var(--line);
}

@media (max-width: 760px) {
  .atv2-product-card {
    min-height: 398px;
  }

  .atv2-product-link {
    grid-template-rows: 210px 1fr;
  }

  .atv2-product-stage {
    height: 210px;
  }

  .wd-price-big {
    font-size: 38px;
  }
}

@media (max-width: 1024px) {
  .checkout-shell,
  .checkout-grid.two {
    grid-template-columns: 1fr;
  }
}
