/* ============================================================
   SITE — the "more room" layer (2026-10). Front page, Explore, the wine page hero, the
   guest save sheet. Fewer things per row, bigger type, twice the space between sections,
   sentence-case labels (no CAPITALS), one accent per screen. Bottles stand on a quiet
   stone plinth everywhere so shop photos with mixed backgrounds stop fighting each other.
   Tokens live in base.css :root (--color-stone, --wrap, --gutter, --space-section, …).
   Classes are prefixed .vb-*.
   ============================================================ */

/* ── Page shell: a .vb-page takes the whole content area, on white ── */
main:has(.vb-page),
.content:has(.vb-page) {
    background: var(--color-card-bg);
}
.content:has(.vb-page) {
    padding: 0;
}
.vb-page {
    background: var(--color-card-bg);
    color: var(--color-ink);
    font-family: var(--font-body);
    padding-bottom: var(--space-section);
}
.vb-wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    box-sizing: border-box;
}
.vb-section { padding-top: var(--space-section); }

/* base/reset.css makes every svg width:100%; here an icon keeps the size its width/height
   attributes give it (the drawn bottle and the like set their own size below). */
.vb-page svg,
.vb-sheet svg,
.wdk-hero svg,
.header-bar svg { width: auto; }

/* Read by screen readers, not shown (labels for search fields). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ── Type ── */
.vb-h1 {
    margin: 0;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 600;
    color: var(--color-ink);
}
.vb-h1--page { font-size: clamp(2.25rem, 4.4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.vb-h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3.2vw, 2.375rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: var(--color-ink);
}
.vb-h3 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--color-ink); }
.vb-kicker { margin: 0 0 1.75rem; font-size: 0.875rem; color: var(--color-muted); }
.vb-lede { margin: 2rem 0 0; font-size: 1.1875rem; line-height: 1.6; color: var(--color-body); max-width: 33em; }
.vb-sub { margin: 0.875rem 0 0; font-size: 1.0625rem; line-height: 1.6; color: var(--color-body); max-width: 38em; }
.vb-meta { font-size: 0.875rem; color: var(--color-muted); }
.vb-fine { margin: 1rem 0 0; font-size: 0.8125rem; line-height: 1.6; color: var(--color-muted); }
.vb-credit { margin: 0.75rem 0 0; font-size: 0.75rem; line-height: 1.6; color: var(--color-muted); }

.vb-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.vb-section-head--ruled {
    align-items: baseline;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-line);
}

.vb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-brand);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex: none;
}
.vb-link:hover { color: var(--color-brand-dark); text-decoration: none; }
.vb-link svg { transition: transform 0.18s ease; }
.vb-link:hover svg { transform: translateX(3px); }

/* ── Buttons ── */
.vb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 3.25rem;
    padding: 0 1.625rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}
.vb-btn--primary { background: var(--color-brand); color: var(--color-light-text); }
.vb-btn--primary:hover { background: var(--color-brand-dark); color: var(--color-light-text); text-decoration: none; }
.vb-btn--secondary { background: var(--color-card-bg); color: var(--color-brand); border-color: var(--color-line-strong); }
.vb-btn--secondary:hover { border-color: var(--color-brand); color: var(--color-brand); text-decoration: none; }
.vb-btn--block { width: 100%; }
.vb-btn--small { min-height: 2.75rem; padding: 0 1.25rem; font-size: 0.9375rem; }
.vb-btn:disabled { opacity: 0.6; cursor: default; }
.vb-btn.is-on { background: var(--color-wine-soft); color: var(--color-wine); border-color: transparent; }

/* ── Search ── */
.vb-search {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 4rem;
    max-width: 36.25rem;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-sizing: border-box;
    border: 1px solid var(--color-field);
    border-radius: 999px;
    background: var(--color-card-bg);
    box-shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 10px 30px rgba(20, 24, 40, 0.07);
}
.vb-search:focus-within { border-color: var(--color-brand); }
.vb-search > svg { flex: none; width: 20px; height: 20px; color: var(--color-muted); }
.vb-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1.0625rem;
    color: var(--color-ink);
}
.vb-search input::-webkit-search-cancel-button { display: none; }
.vb-search--compact { min-height: 3.5rem; padding-left: 1.25rem; box-shadow: none; flex: 1 1 26rem; }
.vb-search-clear {
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 0;
    background: var(--color-stone);
    color: var(--color-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Chips ── */
.vb-chips { display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: center; }
.vb-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 1.125rem;
    border-radius: 999px;
    border: 1px solid var(--color-field);
    background: var(--color-card-bg);
    color: var(--color-ink);
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.12s ease, background 0.12s ease;
    box-sizing: border-box;
}
.vb-chip:hover { border-color: var(--color-muted); color: var(--color-ink); text-decoration: none; }
.vb-chip.is-on { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-light-text); }
.vb-chip.is-set { border-color: var(--color-brand); }
.vb-chip--soft { min-height: 2.5rem; padding: 0 1rem; border-color: transparent; background: var(--color-stone); font-size: 0.875rem; }
.vb-chip--soft:hover { border-color: transparent; background: var(--color-line); }
.vb-chip-dot { flex: none; width: 9px; height: 9px; border-radius: 999px; }
.vb-chip-sep { width: 1px; height: 1.5rem; background: var(--color-field); margin: 0 0.375rem; }
.vb-chip svg { flex: none; }

/* Filter popovers under a chip */
.vb-pop-wrap { position: relative; }
.vb-pop {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 60;
    min-width: 18rem;
    max-width: min(26rem, calc(100vw - 2.5rem));
    max-height: 26rem;
    overflow: auto;
    padding: 1.25rem;
    box-sizing: border-box;
    background: var(--color-card-bg);
    border: 1px solid var(--color-line);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(16, 24, 43, 0.14);
}
.vb-pop-backdrop { position: fixed; inset: 0; z-index: 55; }
.vb-pop-title { margin: 0 0 0.875rem; font-size: 0.875rem; font-weight: 600; color: var(--color-muted); }
.vb-pop-list { display: flex; flex-direction: column; gap: 0.125rem; }
.vb-pop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    border-radius: 10px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--color-ink);
    text-align: left;
    cursor: pointer;
}
.vb-pop-item:hover { background: var(--color-stone); }
.vb-pop-item.is-on { background: var(--color-brand-soft); font-weight: 600; }
.vb-pop-item--child { padding-left: 1.75rem; }
.vb-pop-count { font-size: 0.8125rem; color: var(--color-muted); }
.vb-pop-price { display: flex; align-items: center; gap: 0.625rem; }
.vb-pop-price input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0 0.875rem;
    box-sizing: border-box;
    border: 1px solid var(--color-field);
    border-radius: 12px;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--color-ink);
}
.vb-pop-price input:focus { outline: none; border-color: var(--color-brand); }
.vb-pop-presets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* ── Wine card: bottle on a plinth, then producer → name → meta → price ── */
.vb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 3.5rem 2rem;
}
.vb-grid--shelf { gap: 2.5rem 2rem; }
.vb-wine { position: relative; display: flex; flex-direction: column; min-width: 0; }
.vb-plinth {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-plinth);
    background: var(--color-stone);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}
.vb-plinth > img,
.vb-plinth > svg,
.vb-plinth > a > img,
.vb-plinth > a > svg { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.vb-wine:hover .vb-plinth > img,
.vb-wine:hover .vb-plinth > svg,
.vb-wine:hover .vb-plinth > a > img,
.vb-wine:hover .vb-plinth > a > svg { transform: translateY(-5px); }
.vb-plinth-link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* The AI bottle (transparent PNG/WebP, 2:3) */
.vb-bottle { height: 84%; width: auto; max-width: 92%; object-fit: contain; display: block; }
/* A shop's product photo, usually on white: multiply melts the white into the plinth */
.vb-photo { height: 76%; width: auto; max-width: 76%; object-fit: contain; display: block; mix-blend-mode: multiply; filter: brightness(1.07) contrast(1.03); }
/* The drawn bottle (Utilities/WineBottle.cs) */
.vb-drawn { height: 72%; width: auto; display: block; }
.vb-wine-link {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-top: 1.375rem;
    color: var(--color-ink);
    text-decoration: none;
    min-width: 0;
}
.vb-wine-link:hover { color: var(--color-ink); text-decoration: none; }
.vb-wine-link:hover .vb-wine-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.vb-wine-producer { font-size: 0.875rem; color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-wine-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.vb-wine-meta { font-size: 0.875rem; color: var(--color-muted); }
.vb-wine-price { margin-top: 0.625rem; font-size: 1rem; color: var(--color-ink); }
.vb-wine-price b { font-weight: 600; margin-right: 0.3em; }
.vb-wine-price s { color: var(--color-muted); font-size: 0.875rem; margin-right: 0.375rem; }
.vb-wine-price span { color: var(--color-muted); }
.vb-wine-note { font-size: 0.8125rem; color: var(--color-brand); font-weight: 500; }
.vb-tag {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    z-index: 2;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--color-card-bg);
    color: var(--color-ink);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(20, 24, 40, 0.08);
}
.vb-tag--wine { color: var(--color-wine); }
.vb-save {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 0;
    background: var(--color-card-bg);
    color: var(--color-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(20, 24, 40, 0.08);
    transition: transform 0.15s ease;
}
.vb-save:hover { transform: scale(1.06); }
.vb-save.is-on { color: var(--color-wine); }
.vb-save.is-on svg path { fill: currentColor; }

/* Loading */
.vb-sk {
    border-radius: 10px;
    background: linear-gradient(90deg, var(--color-stone) 0%, var(--color-line) 50%, var(--color-stone) 100%);
    background-size: 200% 100%;
    animation: vbShimmer 1.4s ease-in-out infinite;
}
.vb-sk--plinth { aspect-ratio: 4 / 5; border-radius: var(--radius-plinth); }
.vb-sk--line { height: 0.875rem; margin-top: 0.75rem; }
.vb-sk--line.short { width: 55%; }
@keyframes vbShimmer { to { background-position: -200% 0; } }
.vb-empty { padding: 5rem 0; text-align: center; }
.vb-empty p { margin: 0.75rem auto 0; max-width: 28em; color: var(--color-body); line-height: 1.6; }
.vb-more { display: flex; justify-content: center; margin-top: 4.5rem; }
/* Explore: a search with no results, and what we have that is close. */
.vb-close-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.vb-close-head .vb-sub { margin: 0; }
.vb-close + .vb-close { margin-top: 4.5rem; }
.vb-close > .vb-section-head { margin-bottom: 1.75rem; align-items: baseline; }
.vb-close-grapes .vb-chips { margin-top: 1.25rem; }

/* ── Front page hero ── */
.vb-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: 8.5rem;
}
.vb-hero-text { flex: 1 1 30rem; min-width: 0; }
.vb-hero-text .vb-search { margin-top: 2.75rem; }
.vb-hero-try { margin-top: 1.375rem; }
.vb-hero-try > span { font-size: 0.875rem; color: var(--color-muted); margin-right: 0.25rem; }
.vb-hero-media { flex: 1 1 26rem; margin: 0; min-width: 0; }
.vb-hero-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-stone);
}
.vb-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-hero-card {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-ink);
    text-decoration: none;
    backdrop-filter: blur(6px);
}
.vb-hero-card:hover { color: var(--color-ink); text-decoration: none; background: var(--color-card-bg); }
.vb-hero-card > span { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; flex: 1; }
.vb-hero-card b { font-size: 0.9375rem; font-weight: 600; }
.vb-hero-card > span > span { font-size: 0.875rem; color: var(--color-muted); }
.vb-hero-card > svg { flex: none; }

/* ── An alternate band (mist) ── */
.vb-band { background: var(--color-mist); padding: 8rem 0; margin-top: var(--space-section); }
.vb-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr));
    gap: 3.5rem;
    margin-top: 4rem;
}
.vb-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand);
}
.vb-feature h3 { margin-top: 1.75rem; }
.vb-feature p { margin: 0.75rem 0 0; font-size: 1rem; line-height: 1.65; color: var(--color-body); }
.vb-feature .vb-link { margin-top: 1.125rem; }

/* ── Estates rail ── */
.vb-rail {
    display: flex;
    gap: 1.75rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); /* snap to the content edge, not the padding edge */
    scrollbar-width: thin;
}
.vb-estate { flex: 0 0 17.5rem; scroll-snap-align: start; display: flex; flex-direction: column; color: var(--color-ink); text-decoration: none; }
.vb-estate:hover { color: var(--color-ink); text-decoration: none; }
.vb-estate-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-plinth); overflow: hidden; background: var(--color-stone); }
.vb-estate-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.vb-estate:hover .vb-estate-photo img { transform: scale(1.04); }
.vb-estate-name { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.vb-estate-region { margin-top: 0.375rem; font-size: 0.875rem; color: var(--color-muted); }
.vb-estate-count { margin-top: 0.625rem; font-size: 0.875rem; font-weight: 500; color: var(--color-brand); }

/* ── Split: text + a card ── */
.vb-split { display: flex; flex-wrap: wrap; gap: 5rem; align-items: center; }
.vb-split > * { flex: 1 1 27.5rem; min-width: 0; }
.vb-checks { display: flex; flex-direction: column; gap: 1.125rem; margin-top: 2.25rem; font-size: 1.0625rem; line-height: 1.5; }
.vb-check { display: flex; gap: 0.875rem; align-items: flex-start; }
.vb-check svg { flex: none; margin-top: 0.2rem; color: var(--color-wine); }
.vb-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.75rem; }
.vb-panel {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sheet);
    padding: 1.75rem 2rem;
    background: var(--color-card-bg);
    box-shadow: 0 20px 50px rgba(20, 24, 40, 0.07);
}
.vb-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--color-line); }
.vb-panel-head b { font-size: 1.0625rem; font-weight: 600; }
.vb-row { display: flex; align-items: center; gap: 1.125rem; padding: 1rem 0; border-bottom: 1px solid var(--color-line); color: var(--color-ink); text-decoration: none; }
.vb-row:last-child { border-bottom: 0; }
.vb-row-thumb { width: 3rem; height: 4rem; flex: none; border-radius: 10px; background: var(--color-stone); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vb-row-thumb img { height: 3.5rem; width: auto; }
.vb-row-thumb svg { height: 3.25rem; width: auto; }
.vb-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.vb-row-text b { font-size: 1rem; font-weight: 600; }
.vb-row-text span { font-size: 0.875rem; color: var(--color-muted); }
.vb-row-end { font-size: 0.875rem; white-space: nowrap; }

/* ── Explore collections ── */
.vb-collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); gap: 1.75rem; }
.vb-collection {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 18.75rem;
    padding: 2rem 2rem 0;
    box-sizing: border-box;
    border: 0;
    border-radius: var(--radius-sheet);
    background: var(--color-stone);
    color: var(--color-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}
.vb-collection.is-on { box-shadow: inset 0 0 0 2px var(--color-brand); }
.vb-collection-title { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; }
.vb-collection-sub { display: block; margin-top: 0.5rem; font-size: 0.9375rem; color: var(--color-body); }
.vb-collection-bottles { display: flex; justify-content: center; align-items: flex-end; height: 11.25rem; margin-top: 1.5rem; }
.vb-collection-bottles img { height: 150px; width: auto; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.vb-collection-bottles img:nth-child(1) { margin-right: -1.125rem; }
.vb-collection-bottles img:nth-child(2) { height: 178px; position: relative; }
.vb-collection-bottles img:nth-child(3) { margin-left: -1.125rem; }
.vb-collection-bottles svg { height: 130px; width: auto; margin: 0 0.25rem; }
.vb-collection-bottles .vb-photo { height: 130px; max-width: none; }
.vb-collection:hover .vb-collection-bottles img { transform: translateY(-4px); }

/* ── Explore header ── */
.vb-explore-head { padding-top: 5rem; position: relative; z-index: 5; }
/* Above the grid below, so the filter popovers open over it (marketplace.css lifts every
   child of .mkt-page to z-index 1 for the producer photo wash). */
.mkt-page > .vb-explore-head.vb-wrap { z-index: 5; }
.vb-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 2.75rem; }
.vb-sort { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: var(--color-ink); }
.vb-sort select {
    appearance: none;
    -webkit-appearance: none;
    min-height: 2.75rem;
    padding: 0 2.25rem 0 0.875rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231c2420' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.875rem center;
    font: inherit;
    font-weight: 600;
    color: var(--color-ink);
    cursor: pointer;
}
.vb-sort select:hover, .vb-sort select:focus { border-color: var(--color-field); outline: none; }
.vb-filters { margin-top: 1.25rem; }
.vb-seg { display: inline-flex; padding: 0.25rem; border-radius: 999px; background: var(--color-stone); gap: 0.25rem; }
.vb-seg button {
    min-height: 2.5rem;
    padding: 0 1.125rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--color-ink);
    cursor: pointer;
}
.vb-seg button.is-on { background: var(--color-card-bg); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 24, 40, 0.1); }

/* Signed-in strips on Explore */
.vb-strip { margin-top: 4.5rem; }
.vb-strip-row { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.vb-strip-row > .vb-wine { flex: 0 0 13.5rem; }

/* Friends' cellars: one shelf per friend */
.vb-friend-shelf { margin-top: 4rem; }
.vb-friend-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.vb-friend-who { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; flex: 1; }
.vb-friend-who b { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.vb-avatar {
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light-text);
    font-weight: 600;
    font-size: 1rem;
}

/* Sellers line */
.vb-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    align-items: baseline;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-line);
    font-size: 0.9375rem;
}
.vb-sources b { font-weight: 600; }
.vb-sources a { color: var(--color-body); text-decoration: none; }
.vb-sources a:hover { color: var(--color-ink); text-decoration: underline; }

/* ── Sheet (dialog): a centred card, a bottom sheet on a phone ── */
.vb-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(16, 24, 43, 0.42);
    animation: vbFade 0.16s ease both;
}
.vb-sheet {
    position: relative;
    width: 100%;
    max-width: 32.5rem;
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    box-sizing: border-box;
    padding: 2.5rem 2.75rem 2.25rem;
    border-radius: 26px;
    background: var(--color-card-bg);
    color: var(--color-ink);
    box-shadow: 0 30px 80px rgba(10, 14, 28, 0.28);
    animation: vbRise 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.vb-sheet-close {
    position: absolute;
    top: 1.125rem;
    right: 1.125rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 0;
    background: var(--color-stone);
    color: var(--color-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.vb-sheet-wine { display: flex; align-items: center; gap: 1rem; padding-right: 3rem; }
.vb-sheet-wine .vb-row-thumb { width: 3.5rem; height: 4.5rem; border-radius: 12px; }
.vb-sheet-wine .vb-row-thumb img { height: 3.9rem; }
.vb-sheet-title { margin: 2rem 0 0; font-size: 1.875rem; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.vb-sheet p { margin: 0.75rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--color-body); }
.vb-sheet .vb-checks { margin-top: 1.5rem; gap: 0.75rem; font-size: 0.9375rem; }
.vb-sheet-actions { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1.75rem; }
.vb-sheet-foot { margin: 1.25rem 0 0; text-align: center; font-size: 0.875rem; color: var(--color-muted); }
.vb-sheet-foot a { font-weight: 600; color: var(--color-brand); }
.vb-sheet .guest-panel { margin-top: 0; }
.vb-sheet .guest-panel-box { max-width: none; border-radius: 16px; padding: 1rem 1.125rem; }
@keyframes vbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vbRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Public footer: same content, more room ── */
.public-footer { background: var(--color-card-bg); border-top: 1px solid var(--color-line); }

/* ── Phone ── */
@media (max-width: 640px) {
    .vb-hero { padding-top: 3.5rem; padding-bottom: 5rem; gap: 3rem; }
    .vb-band { padding: 5rem 0; }
    .vb-features { gap: 2.75rem; margin-top: 3rem; }
    .vb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1rem; }
    .vb-wine-name { font-size: 1rem; }
    .vb-wine-link { padding-top: 1rem; }
    .vb-save { width: 2.5rem; height: 2.5rem; top: 0.625rem; right: 0.625rem; }
    .vb-tag { top: 0.625rem; left: 0.625rem; }
    .vb-section-head { margin-bottom: 2rem; }
    .vb-search { min-height: 3.5rem; padding-left: 1.125rem; }
    .vb-split { gap: 3rem; }
    .vb-panel { padding: 1.25rem 1.25rem; }
    .vb-collection { min-height: 15rem; padding: 1.5rem 1.5rem 0; }
    .vb-collection-bottles { height: 8.5rem; }
    .vb-collection-bottles img { height: 112px; }
    .vb-collection-bottles img:nth-child(2) { height: 132px; }
    .vb-explore-head { padding-top: 2.5rem; }
    .vb-estate { flex-basis: 14rem; }
    .vb-sheet-backdrop { align-items: flex-end; padding: 0; }
    .vb-sheet { max-width: none; border-radius: 24px 24px 0 0; padding: 2rem 1.5rem 1.75rem; max-height: 92vh; }
}

/* ── Cellar (Pages/CellarDetails.razor, Components/VbCellarCard) ── */
.vb-cellar-head {
    padding-top: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}
.vb-cellar-titles { min-width: 0; }
.vb-cellar-titlerow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.vb-cellar-actions { margin-top: 0; }
.vb-cellar-tabs { margin-top: 2rem; }
.vb-chip-n { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.vb-chip.is-on .vb-chip-n { color: inherit; opacity: 0.7; }
.vb-chip--dashed { border-style: dashed; color: var(--color-body); }
.vb-chip--select { padding: 0 0.5rem 0 0.25rem; }
.vb-chip--select select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231c2420' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.5rem center;
    font: inherit;
    color: inherit;
    padding: 0 1.75rem 0 0.75rem;
    min-height: 2.6rem;
    cursor: pointer;
    outline: none;
}
.vb-cellar-form { margin-top: 1.75rem; max-width: 32rem; }
.vb-field { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1rem; font-size: 0.9375rem; font-weight: 500; }
.vb-field input {
    min-height: 3rem;
    padding: 0 1rem;
    border: 1px solid var(--color-field);
    border-radius: 12px;
    font: inherit;
    font-weight: 400;
    color: var(--color-ink);
}
.vb-field input:focus { outline: none; border-color: var(--color-brand); }
.vb-cellar-status { margin-top: 1.5rem; color: var(--color-body); }

.vb-cellar-stats {
    margin-top: 4rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--color-line);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 3.5rem;
}
.vb-cellar-stats .vb-meta { margin: 0; }
.vb-cellar-big { margin: 0.6rem 0 0; font-size: 2.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--color-ink); }
.vb-cellar-colours { margin-top: 1.125rem; display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.vb-cellar-note { margin: 0.875rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--color-body); }
.vb-cellar-stats .vb-link { padding: 0.375rem 0 0; font-size: 0.875rem; }
.vb-cellar-tools { margin-top: 3rem; }
.vb-cellar-map { margin-top: 3rem; }

.vb-cellar-shelf { margin-top: 5.5rem; }
.vb-cellar-shelf .vb-section-head { margin-bottom: 2rem; }
.vb-cellar-shelf-title { margin: 0; font-size: 1.875rem; letter-spacing: -0.025em; font-weight: 600; color: var(--color-ink); }
.vb-grid--cellar { grid-template-columns: repeat(auto-fill, minmax(11.875rem, 1fr)); gap: 2.75rem 1.75rem; }

/* One wine's card on a shelf */
.vb-cellar-bottle { height: 78%; width: auto; display: block; }
.vb-cwine .vb-tag { font-variant-numeric: tabular-nums; }
.vb-cwine-bar {
    position: absolute;
    left: 0.625rem;
    right: 0.625rem;
    bottom: 0.625rem;
    z-index: 2;
    display: flex;
    gap: 0.375rem;
    padding: 0.375rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px rgba(20, 24, 40, 0.12);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.vb-cwine:hover .vb-cwine-bar,
.vb-cwine:focus-within .vb-cwine-bar { opacity: 1; transform: none; }
/* Touch: no hover, so no bar; one glass button in the corner, clear of the bottle */
.vb-cwine-touch {
    display: none;
    position: absolute;
    right: 0.625rem;
    bottom: 0.625rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 0;
    background: var(--color-brand);
    color: var(--color-light-text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(20, 24, 40, 0.18);
}
@media (hover: none) {
    .vb-cwine-bar { display: none; }
    .vb-cwine-touch { display: flex; }
}
.vb-cwine-drink {
    flex: 1;
    min-height: 2.25rem;
    border-radius: 999px;
    border: 0;
    background: var(--color-brand);
    color: var(--color-light-text);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}
.vb-cwine-drink:hover { background: var(--color-brand-dark); }
.vb-cwine-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex: none;
    border-radius: 999px;
    border: 0;
    background: var(--color-stone);
    color: var(--color-ink);
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.vb-cwine-icon:hover { background: var(--color-line); }

/* The cellar as a list */
.vb-cellar-list { margin-top: 3rem; }
.vb-crow {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 2.4fr) minmax(0, 1.4fr) 5.5rem 9.5rem 8rem 10rem;
    gap: 1.5rem;
    align-items: center;
    min-height: 6.5rem;
    border-bottom: 1px solid var(--color-line);
}
.vb-crow--head { min-height: 0; padding-bottom: 0.875rem; font-size: 0.8125rem; color: var(--color-muted); }
.vb-crow .vb-row-thumb { width: 4rem; height: 5.25rem; }
.vb-crow-bottle { height: 4.5rem; width: auto; display: block; }
.vb-crow-wine { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; color: var(--color-ink); text-decoration: none; }
.vb-crow-wine:hover { color: var(--color-ink); text-decoration: none; }
.vb-crow-wine b { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-crow-wine:hover b { text-decoration: underline; text-underline-offset: 3px; }
.vb-crow-wine span { font-size: 0.875rem; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-crow-muted { color: var(--color-body); font-size: 0.9375rem; }
.vb-crow-r { text-align: right; }
.vb-crow-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.vb-crow-qty { display: inline-flex; align-items: center; gap: 0.375rem; }
.vb-crow-qty b { min-width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.vb-crow-qty button {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--color-field);
    background: var(--color-card-bg);
    color: var(--color-ink);
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
}
.vb-crow-qty button:hover { border-color: var(--color-brand); }
.vb-crow-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.375rem; }

@media (max-width: 900px) {
    .vb-crow { grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 0.5rem 1rem; padding: 0.75rem 0; }
    .vb-crow--head { display: none; }
    .vb-crow .vb-row-thumb { grid-row: span 3; }
    .vb-crow-muted, .vb-crow > span:nth-child(4) { font-size: 0.8125rem; }
    .vb-crow-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .vb-cellar-head { padding-top: 2.5rem; }
    .vb-cellar-big { font-size: 2.25rem; }
    .vb-grid--cellar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
    .vb-cellar-shelf { margin-top: 3.5rem; }
}
