.mv-shelf {
    --mv-bottle-width: calc(clamp(84px, 11vw, 145px) + var(--mv-spacing, 28px));
    --mv-bottle-height: clamp(155px, 23vw, 244px);
    --mv-rail: #613b29;
    --mv-wall: #171411;
    color: #282520;
}
.mv-shelf[data-material="light"] { --mv-wall: #443224; --mv-rail: #946940; }
.mv-shelf[data-material="metal"] { --mv-wall: #202629; --mv-rail: var(--mv-metal); }
.mv-shelf *, .mv-shelf *::before, .mv-shelf *::after { box-sizing: border-box; }
.mv-shelf [hidden] { display: none !important; }
.mv-stage {
    isolation: isolate;
    position: relative;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    border-radius: 12px;
    background:
       radial-gradient(ellipse at 42% 0, rgb(251 205 151 / 15%), transparent 57%),
       radial-gradient(ellipse at 58% 100%, rgb(251 205 151 / 9%), transparent 56%), var(--mv-wall);
    box-shadow: inset 0 0 32px rgb(0 0 0 / 31%);
    overflow: hidden;
    direction: ltr;
}
.mv-shelf[data-width="module"] .mv-stage { width: 100%; }
.mv-shelf[data-width="viewport"] .mv-stage {
    width: var(--mv-viewport-width, 100vw);
    max-width: none;
    margin-inline: 0;
    margin-left: var(--mv-viewport-offset, calc((100% - 100vw) / 2));
    border-radius: 0;
}
.mv-scene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mv-scroll {
    position: relative;
    padding: 18px 49px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #966944 var(--mv-wall);
}
.mv-track { display: grid; width: max-content; grid-template-rows: repeat(var(--mv-rows, 2), auto); grid-auto-flow: column; grid-auto-columns: var(--mv-bottle-width); row-gap: 7px; }
.mv-shelf[data-desktop="1"] { --mv-rows: 1; }
.mv-shelf[data-desktop="2"] { --mv-rows: 2; }
@media (max-width: 980px) {
    .mv-shelf[data-tablet="1"] .mv-track { --mv-rows: 1; }
    .mv-shelf[data-tablet="2"] .mv-track { --mv-rows: 2; }
}
@media (max-width: 767px) {
    .mv-shelf[data-mobile="1"] .mv-track { --mv-rows: 1; }
    .mv-shelf[data-mobile="2"] .mv-track { --mv-rows: 2; }
    .mv-scroll { padding-inline: 37px; }
}
.mv-card { min-width: 0; }
.mv-bottle { display: grid; place-items: end center; height: var(--mv-bottle-height); position: relative; border-radius: 6px; padding: 10px 14px 5px; }
.mv-bottle img { width: auto; height: 100%; object-fit: contain; max-width: 100%; max-height: 100%; pointer-events: none; }
.mv-placeholder { display: block; width: 28%; height: 78%; background: linear-gradient(90deg, #1d271b, #5c6446 28%, #242b1d 60%, #141815); clip-path: polygon(39% 0, 61% 0, 64% 27%, 83% 36%, 95% 43%, 95% 97%, 88% 100%, 12% 100%, 5% 97%, 5% 43%, 17% 36%, 36% 27%); }
.mv-model-loaded > * { opacity: 0; }
.mv-tag { display: grid; min-height: 50px; padding: 7px 5px; place-content: center; grid-template-areas: 'tag'; box-shadow: inset 0 10px 0 var(--mv-rail); }
.mv-scene-loaded .mv-tag { box-shadow: none; }

.mv-price, .mv-actions, .mv-name, .mv-price-art { grid-area: tag; }
.mv-price-art { width: min(100%, 130px); height: 33px; object-fit: fill; place-self: center; }
.mv-tag:has(.mv-price-art) :is(.mv-price, .mv-name, .mv-actions) { background: transparent; box-shadow: none; position: relative; }

.mv-shelf button, .mv-shelf input { font: inherit; }
.mv-price, .mv-name, .mv-actions {
    background: var(--mv-price-bg);
    color: var(--mv-price-ink);
    box-shadow: 0 1px 5px #0005;
    border: 0;
    border-radius: 2px;
    line-height: 1.15;
    padding: 5px 7px;
    min-height: 32px;
    text-align: center;
    font-weight: 650;
    font-size: clamp(.72rem, 1.7vw, .92rem);
}
.mv-name { display: grid; place-content: center; max-width: calc(var(--mv-bottle-width) - 12px); }
.mv-shelf[data-price-style="round"] :is(.mv-price, .mv-actions, .mv-name) { border-radius: 100vw; }
.mv-price[aria-expanded="true"] { visibility: hidden; }
.mv-price, .mv-icon, .mv-label-buttons button, .mv-label-zoom, .mv-buy-row button { cursor: pointer; }
.mv-actions { display: flex; padding: 0 4px; justify-content: center; gap: 5px; }
.mv-actions form { display: flex; }
.mv-icon {
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: inherit;
    min-width: 37px;
    min-height: 34px;
    padding: 6px;
}
.mv-icon svg { width: 21px; height: 21px; }
.mv-arrow {
    display: none;
    z-index: 1;
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
    background: #171513dd;
    color: #f9f1e4;
    border: 1px solid #ffffff3b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.mv-interactive .mv-arrow { display: grid; }
.mv-arrow:disabled { visibility: hidden; }
.mv-prev { left: 5px; }
.mv-next { right: 5px; }
.mv-shelf :focus-visible { outline: 2px solid #d48630; outline-offset: 3px; }
.mv-dialog {
    background: transparent;
    color: #38281f;
    position: fixed;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border: 0;
    padding: clamp(20px, 4vw, 56px);
    inset: 0;
    overflow: auto;
}
.mv-dialog[open] { display: grid; place-items: center; }
.mv-dialog::backdrop {
    background: radial-gradient(ellipse at 42% 46%, rgb(15 10 8 / 42%) 0%, rgb(13 10 8 / 65%) 100%);
    backdrop-filter: blur(4px);
}
.mv-dialog-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 440px);
    gap: clamp(26px, 6vw, 92px);
    align-items: center;
    width: min(100%, 1030px);
    pointer-events: none;
}
.mv-showcase {
    min-height: clamp(330px, 69dvh, 590px);
    position: relative;
}
.mv-flying-visual, .mv-showcase canvas, .mv-detail-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.mv-showcase canvas { touch-action: none; opacity: 0; pointer-events: none; cursor: grab; }
.mv-showcase canvas.mv-ready {
    opacity: 1;
    pointer-events: auto;
    filter: drop-shadow(0 16px 21px rgb(6 4 3 / 60%));
}
.mv-showcase canvas:active { cursor: grabbing; }
.mv-detail-fallback { object-fit: contain; padding: 24px; filter: drop-shadow(0 16px 21px rgb(6 4 3 / 60%)); }
.mv-notebook {
    --mv-paper: #f9f1e2;
    --mv-ink: #38281f;
    --mv-rule: #c7b49b;
    --mv-accent: #763c40;
    color: var(--mv-ink);
    position: relative;
    min-width: 0;
    pointer-events: auto;
    border: 1px solid #e8dac2;
    border-radius: 2px;
    background:
        linear-gradient(to right, #e5d7bf 0, #f8efdf 20px, transparent 56px),
        var(--mv-paper);
    box-shadow: 3px 4px 0 #d9c8ac, 6px 7px 0 #a58768, 0 15px 48px #0e0807a8;
}
.mv-notebook::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 26px;
    right: auto;
    width: 1px;
    background: #ad6d674f;
    pointer-events: none;
}
.mv-binding {
    position: absolute;
    z-index: 1;
    top: 28px;
    bottom: 28px;
    left: -9px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}
.mv-binding i {
    width: 19px;
    height: 9px;
    display: block;
    border-radius: 5px;
    background: linear-gradient(180deg, #55392a 0%, #a78259 34%, #ccb18a 43%, #7c563b 65%, #301f19 100%);
    box-shadow: 1px 2px 3px #24150c70, 5px 0 0 -3px #3a2a27;
}
.mv-info {
    display: flex;
    flex-direction: column;
    max-height: min(79dvh, 610px);
    overflow: auto;
    padding: 27px 26px 26px 43px;
    font-size: .92rem;
    line-height: 1.56;
}
.mv-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 12px;
    align-items: end;
    padding: 0 0 15px;
    border-bottom: 1px solid var(--mv-rule);
}
.mv-info .mv-notebook-title {
    margin: 0 0 .45rem;
    padding: 0;
    color: var(--mv-accent);
    font-size: .67rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.mv-info h2 {
    margin: 0;
    padding: 0;
    color: var(--mv-ink);
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(1.7rem, 3.25vw, 2.55rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.026em;
    overflow-wrap: anywhere;
}
.mv-wine-sample {
    display: grid;
    justify-items: center;
    align-self: end;
    gap: 4px;
    margin: 10px 0 0;
    padding: 0;
}
.mv-wine-glass {
    display: block;
    width: 48px;
    aspect-ratio: 1;
    padding: 4px;
    border-radius: 50%;
    border: 1px solid #d5c1a8;
    background: #fffaef;
    box-shadow: 1px 2px 4px #62442c38;
}
.mv-wine-glass::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 30% 23%, #ffffff63 0 5%, transparent 20%),
        radial-gradient(circle at 34% 72%, #ffffff33, transparent 55%),
        radial-gradient(circle at 30% 35%, transparent 48%, #2f182b65 100%),
        var(--mv-wine-color);
    box-shadow: inset 0 0 0 1px #57323b58;
}
.mv-wine-sample figcaption {
    color: #6a4e42;
    font-size: .67rem;
    line-height: 1.18;
    text-align: center;
}
.mv-notes {
    min-height: 0;
    overflow-y: auto;
    margin: 13px -4px 0 0;
    padding: 1px 6px 3px 0;
    scrollbar-width: thin;
    scrollbar-color: #b19d82 transparent;
    background: repeating-linear-gradient(to bottom, transparent 0 25px, #bba78e31 25px 26px);
    background-attachment: local;
}
.mv-notes:focus-visible { outline-offset: -2px; }
.mv-description { overflow-wrap: anywhere; }
.mv-description + .mv-description { margin-top: 13px; }
.mv-intro { color: #583f32; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 1.03rem; }
.mv-description h3, .mv-description h4 {
    padding: 0;
    margin: 10px 0 8px;
    color: var(--mv-accent);
    font: 600 1.13rem/1.2 Georgia, "Noto Serif SC", "Songti SC", serif;
}
.mv-description p { margin: 0 0 .48em; padding: 0; }
.mv-description > :last-child { margin-bottom: 0; }
.mv-box { max-width: 100%; max-height: 220px; object-fit: contain; margin-top: 14px; }
.mv-purchase {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-top: 1px solid var(--mv-rule);
    margin-top: 14px;
    padding-top: 12px;
}
.mv-selected-price { font-size: 1.06rem; font-weight: 700; }
.mv-selected-price:empty { display: none; }
.mv-close {
    position: absolute;
    z-index: 2;
    top: 5px;
    right: 7px;
    border-radius: 50%;
    width: 33px;
    height: 33px;
    min-width: 0;
    min-height: 0;
    background: transparent;
    color: #645043;
}
.mv-close:hover { background: #77574318; }
.mv-label-buttons { position: absolute; bottom: 0; inset-inline: 8px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mv-label-buttons button {
    pointer-events: auto;
    padding: .48em .75em;
    color: #fff4e6;
    border: 1px solid #f2debea3;
    border-radius: 2px;
    background: #211b17e8;
    font-size: .79rem;
}
.mv-label-zoom {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: #211c17f2;
    box-shadow: 0 12px 30px #130d0a76;
    border: 1px solid #eedcbb57;
    padding: 17px;
    pointer-events: auto;
}
.mv-label-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mv-buy { min-width: 0; }
.mv-buy:has(fieldset) { flex-basis: 100%; max-height: 26dvh; overflow-y: auto; }
.mv-buy fieldset { display: flex; flex-wrap: wrap; gap: 7px; border: 0; margin: 0 0 10px; padding: 0; }
.mv-buy legend { font-weight: 650; font-size: .86rem; padding: 0 0 6px; }
.mv-choice { position: relative; display: inline-block; cursor: pointer; }
.mv-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.mv-choice span { display: inline-block; padding: 5px 10px; border-radius: 2px; border: 1px solid #b8a78d; background: #fffaef; color: #423a31; }
.mv-choice input:disabled + span { opacity: .48; cursor: default; }
.mv-choice input:checked + span { background: var(--mv-accent); color: #fffaef; border-color: var(--mv-accent); }
.mv-choice input:focus-visible + span { outline: 2px solid #a35431; outline-offset: 2px; }
.mv-buy-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-buy-row input { width: 54px; min-height: 33px; height: 100%; padding: 5px; background: #fffaef; color: var(--mv-ink); border: 1px solid #b8a78d; border-radius: 2px; }
.mv-buy-row button { color: #fffaf0; background: var(--mv-accent); border: 0; border-radius: 2px; padding: 6px 10px; font-size: .86rem; }
.mv-buy-row button:disabled { opacity: .52; cursor: default; }
.mv-closing .mv-notebook { opacity: 0; transition: opacity .24s; }
.mv-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
    .mv-dialog { padding: 15px 19px 25px; }
    .mv-dialog-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; width: min(100%, 440px); margin-block: auto; }
    .mv-showcase { min-height: clamp(225px, 40dvh, 360px); }
    .mv-info { max-height: none; padding: 23px 18px 22px 36px; }
    .mv-heading { grid-template-columns: minmax(0, 1fr) 64px; gap: 8px; }
    .mv-notebook::before { left: 22px; }
    .mv-notes, .mv-buy:has(fieldset) { max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .mv-closing .mv-notebook { transition: none; } }
