/* Card rows remain independent when product names wrap. */
.product-card .card-details{margin-bottom:0;min-height:0;line-height:1.4}
.product-card .card-title{line-height:1.25;overflow-wrap:normal;word-break:normal}
.product-card .card-price{margin-top:24px;padding-top:0}
.stepper{overflow:hidden;border:1px solid #e3d7ce;border-radius:8px}
.stepper button{border:0!important;border-radius:0!important;flex-shrink:0}
.stepper button:first-child{border-right:1px solid #e3d7ce!important}
.stepper button:last-child{border-left:1px solid #e3d7ce!important}
.stepper span{border:0!important;min-width:0;flex:1;display:grid;place-items:center}
button:disabled{cursor:default;opacity:.45}
.home-horizontal-track{align-items:stretch}
.home-horizontal-track>.product-card{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto minmax(70px,1fr) auto auto;height:auto;min-height:336px;column-gap:16px}
.home-horizontal-track .card-image{grid-area:1/1/6/2;margin:0;height:100%;min-height:300px}
.home-horizontal-track .card-image img{max-width:100%;height:270px}
.home-horizontal-track .card-meta{grid-area:1/2;min-width:0;flex-wrap:wrap;gap:4px;font-size:14px}
.home-horizontal-track .card-meta svg{width:16px;height:16px}
.home-horizontal-track .card-meta .stars svg{width:14px;height:14px}
.home-horizontal-track .card-heart{width:32px;height:32px}
.home-horizontal-track .card-heart svg{width:20px;height:20px}
.home-horizontal-track .card-leaf{width:32px;height:32px;display:grid;place-items:center;top:40px}
.home-horizontal-track .card-leaf svg{width:24px;height:24px}
.home-horizontal-track .card-title{grid-area:2/2;font-size:24px;line-height:1.25;margin:12px 0 8px;min-height:0}
.home-horizontal-track .card-details{grid-area:3/2;font-size:14px;margin:0;gap:4px;align-self:start}
.home-horizontal-track .card-price{grid-area:4/2;margin:12px 0 16px;padding:0 0 16px}
.home-horizontal-track .card-price strong{font-size:24px}
.home-horizontal-track .card-buy{grid-area:5/2;min-width:0;gap:16px}
.home-horizontal-track .card-stepper{min-width:0}
.home-horizontal-track .card-buy>button{width:64px;flex:0 0 64px}
.rarity-card{grid-template-columns:minmax(0,45fr) minmax(0,55fr);gap:16px;min-height:310px}
.rarity-card>a{display:flex;align-items:center;justify-content:center;min-width:0}
.rarity-card img{max-width:100%;height:290px;object-fit:contain}
.rarity-card>div{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.rarity-card .card-title{font-size:24px;min-height:0;margin:16px 0 8px}
.rarity-card p{font-size:14px;line-height:1.35;margin:0 0 12px}
.rarity-card .button{margin-top:auto;min-height:50px;line-height:1.25;width:100%;padding:12px 8px;font-size:14px}
.rarity-card .button svg{flex-shrink:0}
.purchase-choices .size-choices{min-height:0;margin-bottom:24px}
.product-content-sidebar{align-self:stretch;position:relative;min-width:0}
.bounded-purchase{position:sticky;top:152px;max-height:calc(100dvh - 176px);overflow:auto;scrollbar-width:thin}
.bounded-purchase .purchase-card{width:100%}
.product-content{padding-bottom:64px}
.mobile-dock-only{display:none}
.choice-list label small{margin-left:auto;color:#82766c}
.filter-empty{font-size:14px;padding:8px}
.filter-choice summary{white-space:normal;line-height:1.35}
.dual-range:before{background:linear-gradient(to right,#ded5ce 0 var(--range-start),#82766c var(--range-start) var(--range-end),#ded5ce var(--range-end) 100%)}
.price-fields input{min-width:0;max-width:100%}
.currency-field input{width:100%;flex:1}
.filters .feature-checks{grid-template-columns:1fr;gap:8px}.demo-panel{border:1px solid #e3d7ce;border-radius:16px;padding:32px;background:white;margin-bottom:24px;min-width:0}
.demo-panel h2{font:400 28px/1.4 Prata;margin:0 0 24px}.demo-panel h2:not(:first-child){margin-top:32px}.demo-panel h3{font:600 20px Urbanist;margin:0 0 16px}.demo-panel p{line-height:1.5}.demo-panel form label{display:flex;flex-direction:column;gap:8px;font-size:16px;color:#76665c}.text-button{background:transparent;border:0;padding:0;text-decoration:underline;font:500 16px Urbanist;cursor:pointer}.demo-check{display:flex;gap:12px;align-items:center;margin:24px 0;line-height:1.4}.demo-check input{accent-color:#160c04}.confirmation{max-width:850px;text-align:center}.confirmation>svg{color:#76665c}.confirmation h2{font:400 28px/1.4 Prata}.confirmation p{line-height:1.6}
.producer-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.producer-list .demo-panel{margin:0;display:flex;flex-direction:column}.producer-list h2{font-size:24px;overflow-wrap:anywhere}.producer-list span{display:flex;align-items:center;gap:12px;margin-top:auto}
@media(min-width:761px) and (max-width:1500px){.home-horizontal-track .card-title{font-size:18px}.home-horizontal-track .card-meta{font-size:10px}.home-horizontal-track .card-details{font-size:11px}.home-horizontal-track .card-price strong{font-size:18px}.home-horizontal-track .card-buy{gap:8px}.home-horizontal-track .card-buy>button{width:44px;flex-basis:44px}.home-horizontal-track .card-stepper button{width:24px}.rarity-card .card-title{font-size:20px}.rarity-card .button{font-size:12px}}
@media(max-width:760px){.demo-panel{padding:20px;border-radius:12px}.demo-panel h2{font-size:24px}.producer-list{grid-template-columns:1fr;gap:16px}
 .product-content-sidebar{display:none}.mobile-dock-only{display:block}.product-content{padding-bottom:48px}
 body:has(.purchase-dock) .site-footer{padding-bottom:0}
 .product-card .card-title{font-size:18px;margin:12px 0 8px;min-height:45px}
 .product-card .card-price{margin-top:20px;padding-bottom:12px}
 .home-horizontal-track>.product-card{min-height:300px;grid-template-columns:minmax(0,42fr) minmax(0,58fr);column-gap:12px;padding:12px}
 .home-horizontal-track .card-image{min-height:260px}.home-horizontal-track .card-image img{height:240px}
 .home-horizontal-track .card-title{font-size:18px;min-height:0}.home-horizontal-track .card-details{font-size:max(11px,var(--twc-mobile-text-min,0px))}
 .home-horizontal-track .card-price{margin-top:12px}.home-horizontal-track .card-buy>button{width:44px;flex-basis:44px}
 .home-horizontal-track .card-stepper button{width:24px}.home-horizontal-track .card-stepper span{font-size:max(12px,var(--twc-mobile-text-min,0px))}
 .rarity-card{min-height:285px}.rarity-card .card-title{font-size:20px;min-height:0}.rarity-card img{height:250px}.rarity-card p{font-size:max(12px,var(--twc-mobile-text-min,0px))}.rarity-card .button{font-size:max(12px,var(--twc-mobile-text-min,0px));min-height:40px}
}

/* One original purchase panel, constrained by the complete product page. */
.product-page{position:relative}
.product-purchase-rail{position:absolute;top:0;bottom:64px;right:max(32px,calc((100vw - 1440px)/2));width:350px;padding-top:69px;pointer-events:none}
.product-purchase-rail .purchase-wrap{position:sticky;top:152px;padding:0;max-height:calc(100dvh - 176px);overflow:auto;scrollbar-width:thin;pointer-events:auto}


.cart-page-layout{max-width:1504px;grid-template-columns:minmax(0,1fr) 350px;gap:16px;padding-top:64px;padding-bottom:64px;align-items:start}
.cart-products{gap:16px;min-width:0}
.cart-product{grid-template-columns:128px minmax(0,1fr) 114px 146px 90px 184px 40px;gap:16px;min-height:160px;padding:16px;border-radius:16px;min-width:0}
.cart-product-image{height:126px;min-width:0;grid-column:auto;grid-row:auto}
.cart-product-image img{height:122px;width:100%;max-width:100%;object-fit:contain}
.cart-product-main{min-width:0;grid-column:auto;grid-row:auto}
.cart-product-name{font:600 24px/1.25 Urbanist;display:block;overflow-wrap:break-word}
.cart-product-meta{font-size:14px;line-height:1.35;margin-top:8px;gap:6px}
.cart-product-meta span,.cart-vintage-producer{display:flex;align-items:center;gap:6px}
.cart-vintage-producer{flex-wrap:wrap;gap:6px 8px}
.cart-product-meta svg{width:16px;height:16px;flex-shrink:0}
.cart-wine-icon{color:#b22048}
.cart-size,.cart-amount,.cart-unit,.cart-line-total{font-size:14px;line-height:1.4;gap:8px;grid-column:auto;grid-row:auto;min-width:0;text-align:left}
.cart-size>span,.cart-amount>span{display:flex;gap:8px;align-items:center}
.cart-size svg,.cart-amount>span svg{width:16px;height:16px;flex-shrink:0}
.cart-size select{height:50px;font-size:16px;padding:0 14px;border-radius:8px;width:100%;color:#555}
.cart-amount .stepper{height:50px;width:100%;max-width:none;border-radius:8px}
.cart-amount .stepper button{height:48px;width:40px}
.cart-amount .stepper span{font-size:16px;color:#555}
.cart-unit{display:flex}.cart-unit strong{font-size:20px;font-weight:400}.cart-unit del{display:block;color:#888;text-decoration-color:#b22048;font-size:14px}
.cart-line-total strong{font-size:24px;font-weight:700;white-space:nowrap}
.cart-remove{width:40px;height:40px;border-radius:8px;grid-column:auto;grid-row:auto}
.cart-page-sidebar{gap:16px;margin:0;min-width:0}
.cart-summary{padding:16px;border-radius:16px}
.cart-summary h2{font:600 16px/1.4 Urbanist;padding:16px;margin:-16px -16px 16px}
.cart-summary label{font-size:16px;line-height:1.4;display:block}
.cart-summary form{height:50px;border-radius:8px;margin:8px 0 16px}
.cart-summary input{font-size:16px;padding:0 16px}
.cart-summary form button{font-size:14px;gap:8px;padding:0 16px;font-weight:var(--twc-button-weight);border-radius:0 8px 8px 0}
.cart-summary dl{border-top:1px solid #e3d7ce;padding-top:4px}
.cart-summary dl>div{font-size:16px;margin:16px 0;line-height:1.2}.cart-summary dd{font-weight:600}
.cart-summary-total{font-size:16px!important;margin-top:20px!important;padding-top:16px}
.cart-summary .button{height:50px;font-size:14px;border-radius:var(--twc-button-radius);padding:12px;gap:8px}
.cart-payment{text-align:center;color:#796e66;padding-top:16px;font-size:max(12px,var(--twc-mobile-text-min,0px));line-height:1.4}.cart-payment p{font-size:14px;display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 12px}.cart-payment span{display:block;margin:6px 0}
.coupon-message{font-size:14px}.back-to-shop{font-size:14px;gap:8px}
@media(min-width:761px) and (max-width:1500px){
 .product-purchase-rail{width:310px;right:32px}
 .cart-page-layout{grid-template-columns:minmax(0,1fr) 310px}
 .cart-product{grid-template-columns:64px minmax(0,1fr) 88px 106px 112px 36px;gap:12px;padding:16px}
 .cart-unit{display:none}.cart-product-name{font-size:20px}.cart-product-meta{font-size:12px}.cart-product-image{height:126px}.cart-line-total strong{font-size:20px}.cart-remove{width:36px;height:36px}.cart-size select{padding-inline:8px}.cart-amount .stepper button{width:30px}
}
@media(min-width:761px) and (max-width:1100px){.cart-page-layout{grid-template-columns:1fr}.cart-page-sidebar{width:350px;justify-self:end}.cart-product{grid-template-columns:100px minmax(0,1fr) 114px 146px 90px 140px 40px}.cart-unit{display:flex}}
@media(min-width:761px) and (max-width:1000px){.product-purchase-rail{padding-top:32px}.cart-product{grid-template-columns:64px minmax(0,1fr) 90px 112px 124px 40px}.cart-unit{display:none}}
@media(max-width:760px){
 .product-purchase-rail{position:static;width:auto;padding:0;pointer-events:auto}
 .product-purchase-rail .purchase-wrap{position:static;max-height:none;overflow:visible;padding:0 16px 32px}
 .cart-page-layout{display:block;padding-top:16px;padding-bottom:32px}
 .cart-product{display:grid;grid-template-columns:96px minmax(0,1fr) 36px;gap:12px 16px;padding:12px;border-radius:8px;min-height:252px;align-items:center}
 .cart-product-image{grid-column:1;grid-row:1;height:94px}.cart-product-image img{height:94px}
 .cart-product-main{grid-column:2/4;grid-row:1;padding-right:42px}.cart-product-name{font-size:20px}.cart-product-meta{font-size:max(12px,var(--twc-mobile-text-min,0px));gap:6px}.cart-product-meta svg{width:14px;height:14px}.cart-vintage-producer{gap:4px 6px}
 .cart-remove{grid-column:3;grid-row:1;align-self:center;width:36px;height:36px;border-radius:4px}.cart-remove svg{width:16px}
 .cart-size,.cart-amount{font-size:max(12px,var(--twc-mobile-text-min,0px));gap:8px;grid-row:2}.cart-size{grid-column:1/4;width:calc(50% - 8px)}.cart-amount{grid-column:1/4;width:calc(50% - 8px);justify-self:end}
 .cart-size select{height:40px;font-size:max(12px,var(--twc-mobile-text-min,0px));border-radius:4px;padding:0 12px}.cart-amount .stepper{height:40px;border-radius:4px}.cart-amount .stepper button{height:38px;width:34px}.cart-amount .stepper span{font-size:max(12px,var(--twc-mobile-text-min,0px))}
 .cart-unit,.cart-line-total{font-size:max(12px,var(--twc-mobile-text-min,0px));grid-row:3;gap:2px}.cart-unit{display:flex;grid-column:1/3}.cart-unit strong{font-size:16px}.cart-line-total{grid-column:2/4;text-align:right}.cart-line-total strong{font-size:20px}
 .cart-page-sidebar{margin-top:16px;width:100%}.cart-summary{border-radius:8px}.cart-summary label,.cart-summary dl>div{font-size:14px}
}

/* Keep mobile navigation visible and reserve room below page content. */
@media(max-width:760px){
 :root{--mobile-nav-height:calc(70px + env(safe-area-inset-bottom,0px))}
 body:has(.mobile-bottom){padding-bottom:var(--mobile-nav-height)}
 .mobile-bottom{position:fixed;inset:auto 0 0;z-index:90;height:var(--mobile-nav-height);padding-bottom:env(safe-area-inset-bottom,0px);border-top:1px solid #e3d7ce;background:#fff;align-items:stretch}
 .mobile-bottom>a{flex:1 1 0;min-width:0;height:auto;justify-content:flex-start;padding:16px 8px 0;text-align:center;font:400 12px/14px Urbanist,Arial,sans-serif}
 .mobile-bottom>a>span{color:#555}
 .mobile-bottom>a>svg{display:block;flex:none;width:20px;height:20px}
 .mobile-bottom i{top:10px;right:calc(50% - 19px);min-width:14px;height:14px;padding:0 4px;font:400 10px/14px Urbanist,Arial,sans-serif}
 .purchase-dock{bottom:var(--mobile-nav-height)}
 .toast{bottom:calc(var(--mobile-nav-height) + 16px)}
 body:has(.purchase-dock) .toast{bottom:calc(var(--mobile-nav-height) + 180px)}
}
