.product-theme {
    --paper:#f6f0e7;
    --surface:#fffdf9;
    --wine:#a74523;
    --wine-dark:#33231c;
    --rose:#ae4825;
    --ink:#30251f;
    --muted:#6e5749;
    --edge:#e6d6c8;
    --purchase-red:#bd251c;
    --purchase-hover:#9c1d16;
    --serif:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    background:var(--paper);
    color:var(--ink);
}

.product-theme :focus-visible { outline-color:var(--wine); }
.product-theme .site-header { background:var(--wine); border-bottom-color:#853719; }
.product-theme .site-header :focus-visible { outline-color:#fff3df; }
.product-theme .site-header .mobile-menu nav :focus-visible { outline-color:var(--wine); }
.product-theme .site-header .brand { font-weight:800; letter-spacing:.035em; }
.product-theme .header-search { max-width:320px; border-color:transparent; }
.product-theme .header-actions a b { background:var(--purchase-red); color:#fff; border:1px solid #ffffff72; }
.product-theme .site-footer { background:#fff9ef; border-top-color:var(--edge); color:var(--ink); }
.product-theme .site-footer :is(.brand,h2,dt) { color:var(--wine-dark); }
.product-theme .site-footer :is(dd,.footer-description,.footer-navigation a,.footer-bottom) { color:var(--muted); }
.product-theme .site-footer :is(.footer-bottom,.footer-social a) { border-color:var(--edge); }

.product-theme .product-page { padding-top:24px; padding-bottom:48px; }
.product-theme .product-path { gap:5px 9px; }
.product-theme .product-detail { grid-template-columns:minmax(0,1.16fr) minmax(0,1fr); gap:clamp(18px,3.8vw,54px); margin:17px 0 30px; }
.product-theme .product-gallery { align-self:start; }
.product-theme .product-stage { background:#fdf8f1; border:1px solid var(--edge); border-radius:16px; overflow:hidden; cursor:zoom-in; }
.product-theme .product-main { width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
.product-theme .gallery-arrow,.product-theme .photo-dialog button { color:var(--wine-dark); background:var(--surface); border-color:var(--edge); }
.product-theme .gallery-arrow { font-size:1.7rem; }
.product-theme .product-thumbs { flex-wrap:nowrap; gap:9px; margin:10px 0 0; padding:3px 2px; overflow:auto; }
.product-theme .product-thumbs a { flex:none; padding:2px; border-radius:8px; }
.product-theme .product-thumbs img { width:clamp(57px,7.5vw,87px); height:clamp(57px,7.5vw,87px); object-fit:contain; background:#fff9f1; }
.product-theme .photo-dialog-view { background:#f3e6d8; }
.product-share { display:flex; flex-wrap:wrap; align-items:center; gap:5px 10px; margin-top:9px; }
.product-share p { margin:0; color:var(--muted); font-size:.83rem; }
.product-share input { width:100%; }
.product-secondary-button { min-height:44px; padding:5px 13px; background:none; border:1px solid var(--edge); border-radius:8px; color:var(--wine); font-size:.84rem; font-weight:700; }
.product-secondary-button:hover { background:#f6e9df; }

.product-theme .product-copy.panel { padding:clamp(18px,3vw,34px); border-radius:16px; }
.product-theme .product-copy h1 { font-size:clamp(1.55rem,3vw,2.85rem); line-height:1.18; margin-bottom:.5em; letter-spacing:-.025em; }
.product-theme .taste { color:var(--wine); font-size:.82rem; }
.product-price-box { display:flex; flex-wrap:wrap; align-items:center; gap:7px 15px; padding:12px 15px; margin:14px 0; border-radius:9px; background:#fcf0e5; }
.product-price-box .price { color:var(--purchase-red); font-size:clamp(1.54rem,3vw,2.4rem); line-height:1.2; margin:0; }
.product-price-box .stock-status { margin:0; align-self:center; }
.product-theme .variant-choice span { background:var(--surface); }
.product-theme .variant-choice input:checked + span { background:#f9e9dd; }
.product-theme .variant-choice input:focus-visible + span { outline-color:var(--wine); }
.product-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.product-buy-bar { display:grid; grid-template-columns:auto minmax(0,1fr); gap:9px; flex:1 1 245px; }
.quantity-picker { display:flex; min-width:0; border:1px solid var(--edge); border-radius:8px; overflow:hidden; background:var(--surface); }
.quantity-picker button { width:34px; flex:none; border:0; padding:0; background:#f8eee4; color:var(--wine); font-size:1.24rem; }
.quantity-picker button:hover { background:#eedbcd; }
.quantity-picker input { appearance:textfield; -moz-appearance:textfield; width:42px; padding:4px; border:0; border-radius:0; text-align:center; font-weight:700; }
.quantity-picker input::-webkit-inner-spin-button,.quantity-picker input::-webkit-outer-spin-button { appearance:none; margin:0; }
.quantity-picker :focus-visible { outline-offset:-3px; }
.product-theme .product-add { background:var(--purchase-red); border-color:var(--purchase-red); font-size:.83rem; }
.product-theme .product-add:hover { background:var(--purchase-hover); }
.product-theme .product-buy-now { border-color:var(--wine); background:transparent; color:var(--wine); }
.product-theme .product-buy-now:hover { background:#f8eee4; }
.product-theme .product-purchase [data-stock-control]:disabled { cursor:not-allowed; }
.product-vouchers { display:grid; gap:9px; margin-top:23px; }
.product-vouchers h2 { margin:0; font-size:1rem; }
.product-vouchers .voucher-card { padding:10px 12px; border:1px dashed #c79675; border-radius:9px; background:#fff7ed; color:var(--ink); }
.product-vouchers .voucher-card h3 { font-size:.94rem; color:var(--wine); margin-bottom:2px; }
.product-vouchers .voucher-card p { color:var(--muted); }
.product-vouchers .voucher-card-action { border-color:var(--edge); margin-top:6px; padding-top:6px; }
.product-vouchers .voucher-card-action button { background:#f5e3d5; color:var(--wine); }

.product-description,.product-theme .product-info { padding:clamp(15px,2.8vw,27px); background:var(--surface); border:1px solid var(--edge); border-radius:12px; margin-bottom:9px; }
.product-description h2,.product-rail h2 { font-size:clamp(1.24rem,2.3vw,1.68rem); letter-spacing:-.015em; }
.product-description h2::after { content:""; display:block; width:36px; margin:9px 0 0; border-bottom:3px solid var(--rose); }
.product-description p { max-width:78ch; margin:0; line-height:1.66; }
.product-description p.is-collapsed { max-height:8.3em; overflow:hidden; mask-image:linear-gradient(#000 78%,transparent); }
.product-description button { margin-top:9px; }
.product-theme .product-info { padding-block:0; }
.product-theme .product-info[open] { padding-bottom:16px; }
.product-theme .product-info .stack { max-width:42ch; }
.product-rail { margin-top:30px; }
.product-rail-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:9px; }
.product-rail-heading h2 { margin:0; }
.product-rail-buttons { display:flex; gap:5px; }
.product-rail-buttons button { min-width:42px; min-height:42px; padding:0; border:1px solid var(--edge); border-radius:100%; background:var(--surface); color:var(--wine); font-size:1.4rem; }
.product-rail-buttons button:disabled { color:#8a7365; opacity:.65; }
.product-rail-content { padding:2px 2px 8px; overflow-x:auto; scroll-snap-type:x mandatory; }
.product-rail .product-grid { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:calc((100% - 48px) / 4); }
.product-rail .product-card { scroll-snap-align:start; }
.product-rail .card-image { aspect-ratio:1; background:#fcf5eb; }
.product-rail .card-content { font-size:.9rem; }
.product-rail .card-content .price { margin-top:auto; color:var(--purchase-red); }
.product-rail .card-content .button { color:var(--wine); background:transparent; border-color:var(--edge); }
.product-rail .card-content .button:hover { background:#f8eee4; }
.product-theme [hidden] { display:none; }

@media (max-width:720px) {
    .product-theme { padding-bottom:calc(68px + env(safe-area-inset-bottom, 0px)); }
    .product-theme .site-header { position:relative; }
    .product-theme .product-page { padding-top:13px; padding-bottom:25px; }
    .product-theme .product-detail { grid-template-columns:minmax(0,1fr); gap:12px; margin:10px 0 16px; }
    .product-theme .product-stage { border-radius:10px; }
    .product-theme .product-copy.panel { padding:15px; border-radius:11px; }
    .product-theme .product-copy h1 { font-size:clamp(1.43rem,6vw,1.9rem); }
    .product-theme .product-buy-now { flex:1; }
    .product-buy-bar { position:fixed; z-index:2; bottom:0; left:0; right:0; padding:8px max(10px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px)); background:var(--surface); box-shadow:0 -4px 16px #35221418; border-top:1px solid var(--edge); }
    .product-theme:has(#shop-menu[open]) .product-buy-bar { display:none; }
    .product-theme .product-add { padding-inline:6px; }
    .product-rail .product-grid { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:46%; gap:8px; }
    .product-theme .footer-content > * + * { border-color:var(--edge); }
}

@media (max-width:640px) {
    .product-theme .header-search { max-width:none; }
}
