/* Shared finishing layer: same controls and rhythm on every store route. */
:root{--paper:#f3ede3;--wine:#702d40;--ink:#32292a;--muted:#70635e;--line:#ded3c4;--surface:#fbf7f0;--radius-control:10px;--radius-photo:16px;--ease-ui:160ms ease}
body{color:var(--ink);background:var(--paper)}
button,input,select{font:inherit}button{cursor:pointer;color:inherit}a{text-decoration:none;color:inherit}
header{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:16px;padding:18px max(24px,4%);border:0;background:var(--paper)}
header .brand{font:700 38px/1 Georgia,serif;letter-spacing:-2px;color:var(--wine)}
header .actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}
header .actions .icon{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;width:auto;border:0;border-radius:50%;padding:8px;background:transparent;color:var(--ink);box-shadow:none}
header .actions .icon:hover{background:#702d4008}
header .actions .menu-toggle{order:3}
header .actions svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
header .actions #count{order:-1;display:grid;place-items:center;min-width:20px;height:20px;font:500 .875rem/1 system-ui,sans-serif;background:transparent;color:var(--wine);border-radius:0}
header .actions #count[hidden]{display:none!important}
.overlay{background:#29212466;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.drawer{padding:28px;background:var(--paper);color:var(--ink);line-height:1.5;overscroll-behavior:contain}
.drawer h2,.menu-heading h2{font:400 2rem/1.15 Georgia,serif;letter-spacing:-.06em;margin:8px 0 24px}
.close{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink);font:300 28px/1 system-ui,sans-serif;cursor:pointer}
.menu-heading .close{margin-top:-8px}.menu-heading h2{margin:0}
.menu-drawer{width:380px;max-width:90vw;box-shadow:none}
.menu-drawer .search{margin:26px 0 16px;padding:0!important;border:0!important;gap:8px;display:flex;background:none}
.menu-drawer .search input{border:1px solid var(--line);border-radius:var(--radius-control);height:48px;background:var(--surface);font-size:1rem;padding:12px;outline-offset:3px}
.menu-drawer .search-submit{border:0;height:48px;font-size:.875rem;padding:0 14px;border-radius:var(--radius-control);background:var(--wine);color:var(--surface)}
.menu-drawer .side-nav{display:flex;flex-direction:column;padding:0;margin:0;gap:0;border:0}
.menu-drawer .side-nav a{padding:15px 0;min-height:48px;font:400 1rem/1.4 system-ui,sans-serif;border-bottom:1px solid var(--line);text-decoration:none}
.menu-drawer .side-nav a:nth-last-child(-n+2){font-size:.875rem;color:var(--muted)}
.drawer .cart-row{padding:20px 0;gap:16px;border-color:var(--line)}
.drawer .cart-row img{border-radius:8px;flex-shrink:0;width:72px;height:90px;object-fit:cover}
.drawer .cart-row h3{font:500 1rem/1.4 system-ui,sans-serif;margin:0 0 6px}
.drawer .cart-row h3 a{text-decoration:none}
.drawer .cart-row .meta{font-size:.875rem;line-height:1.4;margin:0 0 10px;color:var(--muted)}
.drawer .cart-row strong{font-size:1rem;font-weight:600}
.drawer .qty{gap:8px;flex-wrap:wrap}
.drawer .qty button,body:has(#productDetail) #cart .qty button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:transparent;font:400 1rem system-ui,sans-serif;padding:0}
.drawer .qty button.remove{font-size:.875rem!important;border:0!important;width:auto!important;min-width:0!important;padding:0 8px!important;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.drawer .total{font-size:1rem;gap:16px;line-height:1.4;margin:20px 0;padding:0}
.drawer .notice{background:none;padding:0;margin:12px 0 18px;font-size:.875rem;line-height:1.5;color:var(--muted)}
.drawer .primary,body:has(#productDetail) #cart .primary{width:100%;border:1px solid var(--wine);border-radius:var(--radius-control);min-height:52px;padding:14px 20px;background:var(--wine);color:var(--surface);font:500 1rem/1.4 system-ui,sans-serif}
.toast{border-radius:10px;font:400 .875rem/1.4 system-ui,sans-serif;padding:12px 18px;box-shadow:0 6px 24px #32292a16}
/* Catalog: fewer competing labels, clearer photography and price. */
.product .photo{border-radius:var(--radius-photo)}
.product h3{font-weight:400;line-height:1.4;margin-bottom:8px}
.product>.meta{display:none!important}
.product .price{font-weight:500;font-size:1.125rem;margin:0 0 8px;padding:0}
.product .choose{font-size:.875rem;min-height:44px;display:inline-flex;align-items:center;margin:0;padding:0;border:0;border-radius:0;color:var(--wine)}
.chip{font-size:.875rem;min-height:44px;border-color:var(--line);padding:10px 15px}.chip:not(.active){color:var(--muted)}
.toolbar select{font-size:.875rem;min-height:44px}.preview-note{font-size:.875rem}
/* Product: photography first; a single, compact buying sequence. */
body:has(#productDetail) main{max-width:1240px;padding:20px 32px 64px}
body:has(#productDetail) main>a{display:inline-block;font:.875rem/1.4 system-ui,sans-serif;color:var(--muted);margin:0 0 20px;text-decoration:none;min-height:28px}
.product-layout{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:48px;margin:0;align-items:start}
.product-layout .detail-photo{border-radius:var(--radius-photo)}
.product-layout .pdp-content h1{font:400 clamp(1.875rem,3vw,2.5rem)/1.12 Georgia,serif;letter-spacing:-.045em;margin:0 0 12px}
.pdp-pricing{margin-bottom:26px}.pdp-price{font-size:1.5rem;font-weight:500;letter-spacing:-.035em;margin:0 0 6px}
.pdp-caption{font-size:.875rem;line-height:1.5}.pdp-variants legend{font-size:.875rem;font-weight:500;display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}
.pdp-variants legend .pdp-caption{display:inline;margin:0;font-weight:400}
.pdp-options{gap:8px}.pdp-option>span{min-width:82px;min-height:46px;border:1px solid var(--line);border-radius:8px;padding:11px 16px;font-size:.875rem;background:transparent;flex-direction:row}
.pdp-option input:checked+span{padding:11px 16px;border:1px solid var(--wine);background:var(--wine);color:var(--surface);font-weight:500}
.pdp-option.is-unavailable>span{border-style:solid;color:var(--muted);text-decoration:line-through}
.pdp-option.is-unavailable small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.product-layout .pdp-buy,.pdp-sheet .pdp-buy{min-height:52px;margin-top:22px;border-radius:var(--radius-control);font-weight:500}
.pdp-description{margin-top:28px;border-bottom:0}.pdp-description summary{font-size:1rem;font-weight:400;min-height:62px;padding:18px 0}
.pdp-description-body{color:var(--muted)}
.pdp-reviews{padding-top:22px;border-top:1px solid var(--line)}
.product-layout .pdp-reviews h2{font:400 1rem/1.4 system-ui,sans-serif;letter-spacing:0;margin:0 0 12px}
.pdp-no-reviews{padding:0;background:none;border-radius:0}.pdp-no-reviews .pdp-stars{display:none}.pdp-no-reviews p{font-size:.875rem;color:var(--muted);margin:0}.pdp-no-reviews>.pdp-caption{display:none}
.pdp-sticky-buy{box-shadow:0 -6px 24px #32292a06}.pdp-sticky-buy .primary{border-radius:var(--radius-control);font-weight:500}
.pdp-sheet{border-radius:20px 20px 0 0;padding:22px 24px max(24px,env(safe-area-inset-bottom))}.pdp-sheet-heading h2{font:400 1.5rem/1.2 Georgia,serif;letter-spacing:-.035em}.pdp-sheet-price{font-weight:500}
button,a,input,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--wine);outline-offset:4px}
@media(hover:hover){.pdp-option>span,.primary,.icon{transition:background var(--ease-ui),color var(--ease-ui),border-color var(--ease-ui)}.primary:hover{filter:brightness(.94)}}
@media(max-width:600px){header{padding:12px 16px;min-height:68px;gap:12px}header .brand{font-size:31px}header .actions{gap:2px}header .actions svg{width:23px;height:23px}body:has(#productDetail) main{padding:8px 16px 40px}body:has(#productDetail) main>a{margin-bottom:10px;min-height:24px}.product-layout{grid-template-columns:minmax(0,1fr);gap:22px}.product-layout .pdp-content h1{font-size:1.875rem;line-height:1.15}.pdp-pricing{margin-bottom:22px}.pdp-option>span{min-width:80px}.pdp-description{margin-top:26px}.pdp-reviews{padding-top:20px}.drawer{padding:22px}.drawer h2{font-size:1.75rem}.product .price{font-size:1rem}.product h3{font-size:.9375rem}.products{gap:24px 14px}.chip{padding:9px 12px}.pdp-sticky-buy{gap:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Shared navigation primitives also serve institutional pages. */
.menu-overlay.open{justify-content:flex-start}.menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.menu-heading .close{float:none;flex-shrink:0}
.menu-drawer .search>svg{display:none}.menu-drawer .search input{min-width:0;flex:1;width:100%}.menu-drawer .search-submit{flex-shrink:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
footer .brand{color:#fff8f1}footer .foot p{color:#fff8f1cc}
/* Audit corrections: readable availability and accurate fractional ratings. */
.pdp-unavailable-note{font-size:.875rem;line-height:1.5;color:var(--muted);margin:10px 0 0}
.pdp-precise-stars{position:relative;display:inline-block;white-space:nowrap;color:var(--line)}
.pdp-precise-stars .pdp-star-fill{position:absolute;left:0;top:0;width:var(--rating-fill);overflow:hidden;color:var(--wine);white-space:nowrap}
.pdp-photo-open{position:relative;width:100%;align-self:start;display:block;padding:0;border:0;border-radius:var(--radius-photo);background:none;cursor:zoom-in;overflow:hidden}
.pdp-photo-open .detail-photo{width:100%;display:block}
.pdp-photo-open>span{position:absolute;right:12px;bottom:12px;border-radius:20px;background:#fbf7f0ee;color:var(--ink);padding:7px 12px;font:.875rem/1.4 system-ui,sans-serif}
.pdp-zoom-overlay.open{align-items:center;justify-content:center;z-index:15}
.pdp-zoom{width:min(1100px,96%);max-height:94dvh;padding:20px;background:var(--paper);border-radius:16px;overflow:auto}
.pdp-zoom .pdp-sheet-heading h2{font-size:1.25rem}
.pdp-zoom>img{display:block;width:100%;height:auto;max-height:75dvh;object-fit:contain;margin:16px 0;touch-action:pan-x pan-y pinch-zoom}
.pdp-zoom .pdp-caption{margin:0}

.brand.brand-reference{display:inline-block;position:relative;width:220px;height:36px;flex-shrink:0;font-size:0;line-height:0;letter-spacing:0;color:var(--wine,#702d40);background:currentColor;-webkit-mask:url('/assets/modestia-logo.png') 50% 48%/130% 267% no-repeat;mask:url('/assets/modestia-logo.png') 50% 48%/130% 267% no-repeat}
footer .brand.brand-reference{color:#fff8f1}
@media(max-width:600px){header .brand.brand-reference{width:180px;height:30px}}

.menu-heading .brand.menu-brand{width:min(200px,calc(100% - 56px));height:33px;flex-shrink:1;color:var(--wine,#702d40)}

/* Extend the wine background to the phone edges; retain the content inset. */
@media(max-width:600px){
  .curated-section{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0;padding-left:calc(3.15vw + 12px);padding-right:calc(3.15vw + 12px)}
}
