/* Shared purchasing and motion refinements for every language. */
:root{--ease-out:cubic-bezier(.22,1,.36,1)}
html{scroll-behavior:smooth;scroll-padding-top:24px}
html:has(dialog[open]){overflow:hidden}
body{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
.hero-stats{justify-content:flex-start;gap:20px 36px}
.hero-stats span{font-size:16px!important}
.hero-stats span+span{padding-left:26px;border-left:1px solid #e8d7ac55}
.card-pack{display:grid;gap:9px;margin:0 0 20px;min-width:0;font-size:16px}
.card-pack select{display:block;width:100%;min-width:0;max-width:100%;min-height:48px;background:#f9f8f3;border:1px solid #cbd0c1;border-radius:2px;color:var(--ink);padding:10px 36px 10px 12px;font:inherit;font-size:16px;cursor:pointer}
.card-pack:focus-within{color:#73571c}
.card-pack select:hover{border-color:#9a7a3b}
.product-card{position:relative;isolation:isolate;border:1px solid #d7dbce}
.product-card::after{content:'';position:absolute;inset:-1px;pointer-events:none;z-index:2;border:1px solid #aa823b;clip-path:polygon(0 0,0 0,0 100%,0 100%);transition:clip-path .6s var(--ease-out)}
.product-card:is(:hover,:focus-within)::after{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}
.product-card:focus-within{border-color:#aa823b;box-shadow:0 12px 30px #15171412}
.product-info{min-width:0}
.product-size{min-height:1.6em}
.product-price{transition:color .2s}
.interface-arrow{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s var(--ease-out)}
.button:is(:hover,:focus-visible) .interface-arrow{transform:translateX(4px)}
.button:focus-visible{transform:translateY(-2px);box-shadow:0 5px 14px #15171416}
.button:is(:hover,:focus-visible){border-color:#a48140}
.text-link{position:relative}
.text-link::after{content:'';position:absolute;bottom:0;left:0;right:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease-out)}
.text-link:is(:hover,:focus-visible)::after{transform:scaleX(1)}
:is(.recipe-feature,.recipe-small,.contact-card,.inquiry-form,.address-card,.checkout-summary){border:1px solid #d4d8c8;transition:border-color .3s,box-shadow .35s,transform .35s}
:is(.recipe-feature,.recipe-small,.contact-card,.inquiry-form,.address-card,.checkout-summary):is(:hover,:focus-within){border-color:#a48140;box-shadow:0 12px 30px #1517140c}
.inquiry-form{padding:28px;border-radius:3px}
.address-card{padding:28px}
.company-values article{transition:border-color .3s,translate .3s}
.company-values article:hover{border-color:#a48140;translate:0 -3px}
.faq details{transition:border-color .3s}
.faq details:is(:hover,:focus-within){border-color:#a48140}
.desktop-nav a{position:relative}
.desktop-nav a::after{content:'';position:absolute;bottom:-8px;left:0;right:0;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .3s var(--ease-out)}
.desktop-nav a:is(:hover,:focus-visible,[aria-current=page])::after{transform:scaleX(1)}
.footer-grid a,.footer-bottom a{transition:color .25s,text-decoration-color .25s;text-underline-offset:5px;text-decoration-color:transparent}
.footer-grid a:is(:hover,:focus-visible),.footer-bottom a:is(:hover,:focus-visible){color:var(--gold);text-decoration:underline}
.motion-reveal{opacity:1;translate:none}
:focus-visible{outline:2px solid #9a7a3b;outline-offset:4px}

/* Native dialog behavior provides focus trapping, Escape, and an inert page. */
#cart-dialog{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:min(560px,100%);max-width:100%;border:0;border-left:1px solid #c8cebc;border-radius:0;box-shadow:-24px 0 80px #0003;overflow:hidden}
#cart-dialog[open]{display:flex;flex-direction:column;animation:cart-enter .42s var(--ease-out) both}
#cart-dialog .dialog-header{position:relative;flex:0 0 auto;padding:25px 28px;border-bottom:1px solid #d3d8c7;background:var(--paper)}
#cart-dialog .dialog-header h2{font-size:26px;font-weight:550;letter-spacing:-.5px}
.close-dialog{width:44px;height:44px;min-width:44px;border:1px solid #cdd2c3;border-radius:2px;background:transparent;transition:background .25s,border-color .25s}
.close-dialog:is(:hover,:focus-visible){background:#e9dfc8;border-color:#a48140}
#cart-content{padding:24px 28px 30px;overflow-y:auto;overscroll-behavior:contain;flex:1;scrollbar-width:thin;scrollbar-color:#aab29b transparent}
.cart-confirmation{display:flex;gap:13px;align-items:flex-start;background:#e9efdf;border:1px solid #c3d0b0;padding:17px;margin-bottom:24px;color:#334c2e}
.cart-confirmation>svg{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.5}
.cart-confirmation strong{display:block;font-size:18px!important;font-weight:550}
.cart-confirmation p{margin-top:6px;font-size:16px;line-height:1.5}
.cart-line{padding-block:24px;gap:18px 16px;grid-template-columns:minmax(0,1fr) auto}
.cart-line h3{font-weight:550;line-height:1.45}
.cart-product{display:grid;grid-template-columns:74px minmax(0,1fr);gap:15px;align-items:start}
.cart-product>img{width:74px;height:84px;object-fit:contain;background:white;border:1px solid #dfe2d6;padding:3px}
.cart-product p{margin:5px 0 0;color:var(--muted)}
.cart-line>strong{font-size:18px!important;font-weight:550}
.cart-line.is-added .cart-product>img{border-color:#8da179}
.cart-quantity{grid-column:1/-1;grid-row:auto;width:100%;grid-template-columns:1fr 82px}
.cart-quantity input{font:inherit;font-size:16px;min-height:44px;min-width:0;width:100%;border:1px solid #bfc7b3;border-radius:2px;background:white;padding:8px 10px}
.cart-remove{grid-column:1/-1;justify-self:start;padding:4px 0;margin-top:-8px}
.cart-summary{padding-top:7px}
.cart-total{font-size:20px}
.cart-total strong{font-weight:550;font-size:26px!important}
.cart-note{line-height:1.7;color:var(--muted)}
.cart-checkout,.cart-continue{width:100%;min-height:52px;white-space:normal}
.cart-continue{margin-top:12px;justify-content:center}
.cart-empty{padding-block:24px}
.cart-empty h3{font-size:24px;font-weight:550}
@keyframes cart-enter{from{transform:translateX(100%);opacity:.75}to{transform:translateX(0);opacity:1}}
@media(max-width:700px){.inquiry-form,.address-card{padding:22px}.hero-stats{gap:14px 20px}.hero-stats span+span{padding-left:20px}.card-pack select{min-height:50px}.cart-product{grid-template-columns:64px minmax(0,1fr);gap:12px}.cart-product>img{width:64px;height:74px}#cart-dialog .dialog-header{padding:20px}#cart-content{padding:20px}.cart-line{grid-template-columns:minmax(0,1fr) auto}.cart-line>strong{font-size:16px!important}.cart-confirmation{padding:14px}}
@media(max-width:380px){.hero-stats{flex-direction:column;align-items:flex-start;gap:12px}.hero-stats span+span{padding:0;border:0}.cart-line{grid-template-columns:minmax(0,1fr)}.cart-line>strong{grid-row:2;justify-self:end}.cart-product{grid-template-columns:68px minmax(0,1fr)}.cart-product>img{width:68px;height:76px}.cart-quantity{grid-row:3}.cart-remove{grid-row:4}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button:is(:hover,:focus-visible),.company-values article:hover{transform:none;translate:none}.button:is(:hover,:focus-visible) .interface-arrow{transform:none}*,*::before,*::after{animation:none!important;transition:none!important}}

/* October 28: basket count follows the cart reference; three-column location footer. */
.site-header .cart-toggle{display:flex;align-items:flex-end;gap:4px;min-height:52px;min-width:96px;padding:5px 7px 7px;color:var(--paper);border:1px solid transparent;border-radius:3px;transition:border-color .2s,background-color .2s}
.site-header .cart-toggle:is(:hover,:focus-visible){border-color:var(--gold);background:#ffffff0a}
.cart-icon{position:relative;display:block;flex:none;width:52px;height:43px}
.cart-icon>svg{display:block;width:52px;height:43px}
.site-header .cart-toggle .cart-count{position:absolute;left:20px;right:auto;top:-5px;min-width:24px;width:auto;height:auto;min-height:24px;padding:0 1px;border-radius:0;background:#10130f;color:var(--gold);font-size:20px!important;font-weight:700;line-height:25px;text-align:center}
.site-header .cart-label{font-size:18px!important;font-weight:600;line-height:1.3;padding-bottom:2px}
.cart-product-photo{width:100%;height:80px;aspect-ratio:1;flex:none;border:1px solid #dfe2d6;border-radius:4px}
.cart-line.is-added .cart-product-photo{border-color:#8da179}
.cart-product-photo .product-fragment{width:94%;max-height:94%}
.cart-product-photo:is(.crop-tinapa-tomato-sauce,.crop-tinapa-hot-tomato-sauce) .product-fragment{width:55%}
.site-footer .footer-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1fr) minmax(0,1.2fr);gap:44px;align-items:start;padding-block:48px}
.site-footer .footer-brand{grid-column:auto}
.site-footer .footer-brand p{max-width:280px;font-size:18px!important}
.site-footer .footer-contact{justify-self:start;width:100%;padding-top:12px!important}
.site-footer .footer-location{grid-column:auto;min-width:0;padding-top:12px!important}
.site-footer .footer-location h2{font-size:20px!important;text-transform:none;letter-spacing:0;margin-bottom:20px}
.footer-map{display:block;width:100%;height:210px;border:1px solid #69735d;border-radius:4px;background:#eeeae0;color:var(--ink);color-scheme:light}
.site-footer .footer-location .footer-directions{display:inline-flex;align-items:center;gap:9px;min-height:44px;margin:10px 0 0;line-height:1.5;font-size:16px!important}
.footer-directions svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.site-footer .footer-bottom{display:flex;align-items:center;justify-content:space-between;flex-direction:row;flex-wrap:wrap;gap:16px 30px;padding-block:24px;padding-right:56px}
.site-footer .footer-bottom>span{font-size:16px!important;color:#e5e8de}
.site-footer .footer-bottom>a{font-size:16px!important;min-height:44px;display:inline-flex;align-items:center}
@media(max-width:1200px){.desktop-nav{display:none}.menu-toggle{display:block}.site-footer .footer-grid{gap:28px;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.1fr)}}
@media(max-width:900px){.site-footer .footer-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}.site-footer .footer-location{grid-column:1/-1}.footer-map{height:240px}}
@media(max-width:700px){.site-header .cart-toggle{min-width:86px;padding-inline:3px;gap:2px}.site-header .cart-label{font-size:16px!important}.cart-icon,.cart-icon>svg{width:44px;height:40px}.site-header .cart-toggle .cart-count{left:16px;top:-3px;font-size:18px!important}.language-control select{width:110px}.site-footer .footer-grid{grid-template-columns:1fr;gap:30px;padding-block:32px}.site-footer .footer-contact,.site-footer .footer-location{grid-column:auto;padding-top:0!important}.site-footer .footer-location h2{font-size:18px!important;margin-bottom:14px}.site-footer .footer-bottom{justify-content:flex-start;gap:8px}.footer-map{height:220px}}
@media(max-width:360px){.main-nav{height:126px}.nav-actions{display:grid;grid-template-columns:auto auto;gap:4px 8px}.language-control{grid-column:1/-1;justify-self:end}.language-control select{width:140px}.site-header .cart-toggle{min-width:80px;padding-inline:2px;justify-self:end}.cart-icon,.cart-icon>svg{width:40px}.site-header .cart-toggle .cart-count{left:14px}.menu-toggle{align-self:center}}
@media(prefers-reduced-motion:reduce){.site-header .cart-toggle{transition:none}}
