.mode-picker{display:flex;gap:.7rem;overflow:auto;margin:0 0 2rem}.mode-picker button{border:1px solid var(--line);background:var(--paper);border-radius:14px;padding:.7rem 1rem;min-width:145px;text-align:left;color:var(--ink)}.mode-picker button.selected{border:2px solid var(--teal);background:var(--mint)}.mode-picker b,.mode-picker small{display:block}.mode-picker small{color:var(--muted);margin-top:.25rem}
.recommendation-box{border-top:1px solid var(--line);margin-top:1rem;padding-top:1rem}.recommendation-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.55rem 0}.recommendation-row span{display:grid;gap:.15rem}.recommendation-row small{color:var(--muted)}.recommendation-row button{border:1px solid var(--teal);border-radius:999px;background:transparent;color:var(--teal);padding:.35rem .65rem}
.chat-toggle{position:fixed;right:1.25rem;bottom:1.25rem;z-index:8;border:0;border-radius:999px;background:var(--teal);color:white;padding:.8rem 1rem;font-weight:700;box-shadow:0 10px 25px #073b3b2b}.chat-panel{display:none;position:fixed;right:1.25rem;bottom:4.8rem;z-index:9;width:min(360px,calc(100vw - 2rem));max-height:min(560px,calc(100vh - 6rem));grid-template-rows:auto 1fr auto;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 60px #073b3b2b;overflow:hidden}.chat-panel.is-open{display:grid}.chat-panel[hidden]{display:none!important}.chat-head{display:flex;justify-content:space-between;align-items:flex-start;padding:1rem;border-bottom:1px solid var(--line)}.chat-head h2{margin:.2rem 0 0;font-size:1.1rem}.chat-messages{min-height:180px;overflow:auto;padding:1rem;display:grid;align-content:start;gap:.55rem}.chat-message{max-width:85%;padding:.65rem .8rem;border-radius:14px;white-space:pre-wrap;word-break:break-word}.from-customer{justify-self:end;background:var(--teal);color:white;border-bottom-right-radius:4px}.from-store{justify-self:start;background:var(--mint);border-bottom-left-radius:4px}.chat-form{display:grid;gap:.55rem;padding:1rem;border-top:1px solid var(--line)}.chat-form textarea{resize:vertical;min-height:52px}.web-chat-panel{margin-top:1rem}.chat-layout{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(220px,1.2fr);gap:1rem}.conversation-entry{cursor:pointer}.conversation-entry.selected{outline:2px solid var(--teal);outline-offset:-2px;border-radius:8px}.inline-message{display:flex;gap:.5rem;margin-top:.75rem}.inline-message input{flex:1}@media(max-width:700px){.chat-layout{grid-template-columns:1fr}.chat-panel{right:1rem;bottom:4.5rem}.chat-toggle{right:1rem;bottom:1rem}}
.store-header{height:76px;padding-inline:clamp(1rem,5vw,4.5rem);box-shadow:0 1px 0 #1936370b}.brand-mark strong{font-size:1.7rem}.cart-chip{border:0;background:var(--ink);color:#fff;box-shadow:0 8px 20px #19363722}.cart-chip b{background:var(--coral)}main{max-width:1240px;padding-top:clamp(2rem,5vw,4rem)}.hero{max-width:900px}.hero h1{font-size:clamp(2.7rem,6vw,5.5rem);max-width:680px}.hero-copy{font-size:1rem}.category-tabs{gap:.7rem;padding:1.4rem 0 1.5rem}.category-tabs button{display:flex;align-items:center;gap:.55rem;padding:.55rem .85rem;font-weight:700;box-shadow:0 4px 15px #19363708}.category-tabs button.active{background:var(--teal);border-color:var(--teal)}.category-icon{width:2rem;height:2rem;display:grid;place-items:center;border-radius:10px;background:var(--mint);color:var(--teal);font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:1.05rem}.category-tabs button.active .category-icon{background:#ffffff33;color:#fff}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.product-card{border-radius:18px}.product-open{display:block;width:100%;padding:0;text-align:left;background:var(--paper);color:var(--ink);font-weight:400}.product-open:hover{background:var(--paper)}.product-picture{height:180px}.product-info{padding:1rem}.product-info h3{font-size:1.2rem}.product-info p{font-size:.84rem}.add-button{background:var(--teal);color:#fff;border-radius:999px;padding:.55rem .75rem;font-size:.82rem}.mode-picker{margin-bottom:1rem}.mode-picker button{min-width:135px}.mode-picker button.selected{border-color:var(--teal);box-shadow:0 0 0 2px color-mix(in srgb,var(--color-brand) 13%,transparent)}.cart-panel{border-radius:24px 0 0 24px}.dialog-card{border-radius:22px}@media(max-width:1000px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){main{padding-top:1.5rem}.hero h1{font-size:3.4rem}.category-tabs{margin-inline:-.2rem}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.product-picture{height:140px}.product-info{padding:.75rem}.product-info p{min-height:4.2em}.product-info h3{font-size:1rem}.product-bottom{gap:.4rem;align-items:end}.add-button{font-size:.74rem;padding:.45rem .55rem}.store-header{height:68px}.brand-mark strong{font-size:1.45rem}}
.quantity-control{display:grid;grid-template-columns:2.6rem minmax(3rem,1fr) 2.6rem;gap:.45rem;align-items:center}.quantity-control button{height:2.6rem;border:1px solid var(--line);border-radius:50%;background:var(--mint);color:var(--teal);font-size:1.25rem;font-weight:700}.quantity-control input{text-align:center}.quantity-control input::-webkit-inner-spin-button{opacity:1}
html,body{width:100%;max-width:100%;overflow-x:hidden}main{min-width:0}.category-tabs{max-width:100%;scrollbar-width:thin}.product-grid,.product-card,.product-open,.product-info{min-width:0}.product-info h3,.product-info p{overflow-wrap:anywhere}.product-bottom{min-width:0}.price{white-space:nowrap}.add-button{white-space:nowrap}
html,body{overscroll-behavior-x:none}body{touch-action:pan-y}.dialog-card,.cart-panel,.chat-panel{overscroll-behavior:contain}
html,body{overflow-x:clip}
.store-header{position:relative}.catalog-filters{position:relative;top:auto;z-index:6}.catalog-filters-spacer{width:100%}
.product-open{height:100%;display:flex;flex-direction:column}.product-info{flex:1;display:flex;flex-direction:column}.product-info p:not(.eyebrow){flex:1}.product-bottom{margin-top:auto}.catalog-filters{position:sticky;top:76px;z-index:4;margin-inline:calc(clamp(1rem,5vw,4rem) * -1);padding:.2rem clamp(1rem,5vw,4rem) .7rem;background:color-mix(in srgb,var(--color-canvas) 96%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid transparent}.mode-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;overflow:visible;margin:0}.mode-picker button{min-width:0;width:100%}.category-tabs{padding:1rem 0 .4rem}.category-select-wrap{display:none}.payment-list{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-choice{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.catalog-filters{margin-inline:-.75rem;padding-inline:.75rem;padding-bottom:.55rem}.category-tabs{display:none}.category-select-wrap{display:grid;gap:.25rem;margin:.45rem 0 0;font-size:.72rem;font-weight:700;color:var(--muted)}.category-select-wrap select{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);padding:.6rem .7rem}.mode-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.mode-picker button{padding:.55rem .35rem;font-size:clamp(.65rem,2.5vw,.78rem);line-height:1.15;text-align:center}.mode-picker b,.mode-picker small{overflow-wrap:anywhere}.mode-picker small{margin-top:.18rem}.payment-list{grid-template-columns:1fr}.payment-choice{width:100%}}
@media(max-width:520px){.store-header{padding-inline:.85rem}.brand-mark span{font-size:.58rem}.brand-mark strong{font-size:1.25rem}.cart-chip{padding:.55rem .7rem;font-size:.82rem}main{padding-inline:.75rem}.hero h1{font-size:2.8rem;line-height:.95}.hero-copy{font-size:.9rem}.category-tabs{padding-block:1rem 1.15rem;gap:.45rem}.category-tabs button{padding:.4rem .55rem;gap:.35rem;font-size:.75rem}.category-icon{width:1.65rem;height:1.65rem;border-radius:8px;font-size:.9rem}.product-grid{gap:.5rem}.product-picture{height:112px}.product-info{padding:.6rem}.product-info .eyebrow{font-size:.58rem;letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-info h3{font-size:.92rem;line-height:1.1}.product-info p{font-size:.72rem;line-height:1.3;min-height:3.8em;margin-bottom:.65rem}.product-bottom{align-items:center}.price{font-size:.76rem}.add-button{font-size:.65rem;padding:.38rem .42rem}.mode-picker{gap:.45rem}.mode-picker button{min-width:115px;padding:.55rem .65rem;font-size:.78rem}.choice-grid{grid-template-columns:1fr}.contact-fields,.two-fields{grid-template-columns:1fr}.dialog-card{max-width:calc(100vw - 1rem);padding:1rem}.dialog-image{margin:-1rem -1rem 1rem;height:145px}.dialog-actions{flex-direction:column-reverse}.dialog-actions button{width:100%}.cart-panel{width:100%;border-radius:0;padding:1rem}.chat-panel{right:.5rem;bottom:4.25rem;width:calc(100vw - 1rem);max-height:calc(100vh - 5rem)}.chat-toggle{right:.75rem;bottom:.75rem;font-size:.8rem;padding:.65rem .8rem}}
.store-header{position:fixed!important;top:0;left:0;right:0;width:100%;z-index:25;box-shadow:0 4px 18px #19363712}main{padding-top:calc(76px + clamp(2rem,5vw,4rem))}.catalog-filters{position:sticky!important;top:76px!important;z-index:20}
@media(max-width:760px){main{padding-top:calc(68px + 1.5rem)}.catalog-filters{top:68px!important}}
.cart-feedback{position:fixed;top:5.6rem;right:clamp(1rem,5vw,4rem);z-index:30;max-width:min(300px,calc(100vw - 2rem));padding:.7rem 1rem;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);box-shadow:0 12px 30px #19363722;font-size:.84rem;font-weight:700;opacity:0;transform:translateY(-.5rem);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.cart-feedback.is-visible{opacity:1;transform:none}.cart-chip.is-bouncing{animation:cart-button-pulse .7s ease}.cart-chip.is-bouncing b{animation:cart-count-pulse .7s ease}@keyframes cart-button-pulse{0%,100%{transform:scale(1)}35%{transform:scale(1.06)}65%{transform:scale(.98)}}@keyframes cart-count-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--color-warm) 0%,transparent)}40%{box-shadow:0 0 0 .35rem color-mix(in srgb,var(--color-warm) 30%,transparent)}}@media(max-width:760px){.cart-feedback{top:4.8rem;right:.75rem;left:.75rem;max-width:none;text-align:center}}
/* Capas y controles finales: el contenido nunca queda por debajo de las superficies activas. */
.catalog-filters{overflow:visible!important}.category-tabs{overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;scrollbar-width:none!important}.category-tabs::-webkit-scrollbar{display:none}.category-tabs button{flex:0 0 auto}.cart-panel{z-index:50!important}.backdrop{z-index:49!important}.chat-panel{z-index:60!important}.chat-toggle{z-index:61!important}.brand-identity{display:flex;align-items:center;gap:.8rem;min-width:0}.brand-logo{width:76px;height:76px;object-fit:contain;flex:0 0 auto}.store-footer{margin-top:3rem;padding:1.5rem 0;border-top:1px solid var(--line);color:var(--muted);font-size:.85rem;text-align:center;white-space:pre-wrap}
@media(max-width:760px){.category-tabs{display:flex!important;gap:.45rem!important;padding-block:.65rem .75rem!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none!important}.category-tabs::-webkit-scrollbar{display:none}.category-tabs button{flex:0 0 auto}.category-select-wrap{display:none!important}.brand-logo{width:60px;height:60px}.cart-panel{z-index:50!important}}

#evidence-upload { padding: 12px; overflow-wrap:anywhere; } #evidence-file { max-width:100%; } .chat-message { white-space:pre-wrap; } #order-tracking { margin-bottom:24px; }
.catalog-search-spacer{height:0}.catalog-search-control{display:flex;align-items:center;gap:.35rem;flex:1;min-width:0}.catalog-search-control input{box-sizing:border-box;width:0;max-width:none;margin-top:.3rem;min-width:0;flex:1}.search-clear{flex:0 0 44px;width:44px;height:44px;border:0;border-radius:50%;background:var(--mint);color:var(--teal);font-size:1.5rem;line-height:1;cursor:pointer}.search-clear[hidden]{display:none}
/* Search and categories share one sticky layout region. */
.catalog-filters{position:sticky!important;top:76px!important;z-index:20;margin-inline:calc(clamp(1rem,5vw,4rem) * -1);padding:.2rem clamp(1rem,5vw,4rem) .7rem;background:var(--cream);border-bottom:1px solid var(--line)}
.catalog-filters .catalog-search{position:relative!important;display:flex;transform:none!important;opacity:1;visibility:visible;margin:0;padding-top:.3rem;background:transparent;border:0;box-shadow:none;transition:opacity .16s ease}
.catalog-filters .category-nav{position:static!important;top:auto!important;transform:none!important;margin:0;padding:0;background:transparent;border:0;backdrop-filter:none}
@media(max-width:760px){.catalog-filters{top:102px!important;margin-inline:-.75rem;padding-inline:.75rem;padding-bottom:.55rem}.catalog-filters .catalog-search{display:flex}.catalog-filters .catalog-search input{width:100%;margin-top:.3rem}}
@media(prefers-reduced-motion:reduce){.catalog-filters{scroll-behavior:auto}}
/* Categorías compactas y adjunto accesible en pantallas pequeñas. */
@media(min-width:761px){.category-tabs{gap:.4rem}.category-tabs button{padding:.5rem .65rem;font-size:.88rem}.category-icon{display:none}}
.chat-panel{grid-template-rows:auto minmax(60px,1fr) auto auto;max-height:calc(100dvh - 6rem);width:min(420px,calc(100vw - 1rem))}.chat-messages{min-height:0}.payment-attachment{font-size:.8rem;border-top:1px solid var(--line);max-height:35dvh;overflow:auto}.payment-attachment>p{margin:.6rem 1rem}#evidence-upload .primary-button{margin-top:.5rem}#evidence-upload p:empty{display:none}
.chat-panel{grid-template-rows:auto auto minmax(60px,1fr) auto auto}#payment-alert{margin:0;padding:.7rem 1rem;background:#fff0cf;font-weight:700}#evidence-paste{margin-right:.4rem}
@media(max-width:760px){body.chat-open{overflow:hidden}body.chat-open>*:not(#chat-panel){visibility:hidden!important;pointer-events:none!important}.chat-panel.is-open{position:fixed;inset:0!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;border:0;border-radius:0;box-shadow:none;box-sizing:border-box;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);background:var(--paper)}.chat-panel .chat-head{padding:.65rem 1rem}.chat-panel .chat-form{padding:.65rem 1rem}.payment-attachment{max-height:34dvh}}
.chat-head{grid-row:1}#payment-alert{grid-row:2}.chat-messages{grid-row:3}.payment-attachment{grid-row:4}.chat-form{grid-row:5}
#mobile-cart-bar{display:none}#evidence-preview{display:block;max-width:100%;max-height:110px;object-fit:contain;margin:.5rem auto}.checkout-summary small{display:block;color:var(--muted);font-size:.8rem}.dialog-actions{position:sticky;bottom:-1rem;background:var(--paper);padding:.75rem 0;margin-top:1rem;z-index:2}.cart-footer{position:sticky;bottom:0;background:var(--paper)}button:disabled{opacity:.6;cursor:wait}
.cart-undo{position:fixed;left:clamp(1rem,5vw,4rem);bottom:1rem;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:min(420px,calc(100vw - 2rem));padding:.7rem .8rem .7rem 1rem;border-radius:12px;background:var(--ink);color:#fff;box-shadow:0 12px 30px #19363733;font-size:.86rem;font-weight:700}.cart-undo[hidden]{display:none}.cart-undo .secondary-button{padding:.5rem .8rem;background:#fff;color:var(--ink);border-color:#fff;white-space:nowrap}
@media(max-width:760px){.hero{padding-block:.5rem}.hero h1{font-size:2rem;line-height:1.05;margin-block:.5rem}.hero-copy{font-size:.85rem;margin-bottom:1rem}body{padding-bottom:5.5rem}#mobile-cart-bar:not([hidden]){display:block;position:fixed;bottom:0;left:0;right:0;width:100%;border:0;border-radius:0;background:var(--teal);color:white;padding:1rem .5rem calc(1rem + env(safe-area-inset-bottom));z-index:45;font-weight:700}body:has(#mobile-cart-bar:not([hidden])) .chat-toggle{bottom:4.5rem}body.cart-open #mobile-cart-bar{display:none}body.cart-open{overflow:hidden}.product-dialog,.checkout-dialog{max-height:100dvh;width:100%;max-width:100%;margin:0;height:100dvh;border-radius:0}.product-dialog .dialog-card,.checkout-dialog .dialog-card{max-width:none;min-height:100%;border-radius:0}.dialog-actions{bottom:-1rem;padding-bottom:calc(.75rem + env(safe-area-inset-bottom))}.cart-panel{padding-bottom:env(safe-area-inset-bottom)}}
/* Checkout sin controles flotantes que compitan con los datos. */
.checkout-dialog .dialog-actions{position:static;padding-bottom:0}.text-button{background:transparent;color:var(--teal);border:0;padding:.5rem 0;text-align:left;font-weight:700}.text-button:hover{background:transparent;text-decoration:underline}.remember-choice{display:flex;align-items:flex-start;gap:.5rem;margin-top:1rem}.remember-choice input{width:auto;margin-top:.2rem}#customer-summary{background:var(--mint);padding:1rem;border-radius:12px;margin:1rem 0}#customer-summary-copy{white-space:pre-wrap;overflow-wrap:anywhere}body:has(.checkout-dialog[open]) .chat-toggle,body.cart-open .chat-toggle,body:has(.product-dialog[open]) .chat-toggle{display:none!important}#checkout-title:focus{outline:none}#payment-toast{position:fixed;bottom:1rem;left:1rem;right:1rem;background:var(--ink);color:white;padding:1rem;border-radius:12px;z-index:80;pointer-events:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #d47752;outline-offset:3px}

.has-purchase .hero,.has-purchase #catalog-filters,.has-purchase #product-grid{display:none}.has-purchase.browsing-additions #catalog-filters{display:block}.has-purchase.browsing-additions #product-grid{display:grid}.has-purchase #mode-picker{display:none}#addition-help:not([hidden]){display:block}.has-purchase #order-tracking{margin-top:0;scroll-margin-top:100px}.has-purchase #order-tracking h2{overflow-wrap:anywhere}.has-purchase #order-tracking button{margin:.5rem .5rem .5rem 0}#addition-help{scroll-margin-top:100px}

/* Purchase navigation and order recovery. */
[hidden]{display:none!important}.store-navigation{display:flex;align-items:center;gap:1rem}.store-navigation button{min-height:44px;white-space:nowrap}.catalog-search{display:flex;align-items:center;gap:1rem;font-size:.85rem;padding-top:.75rem}.catalog-search input{flex:1;min-width:0;max-width:420px;padding:.7rem;border:1px solid var(--line);border-radius:12px;background:var(--paper)}#store-conditions{font-size:.8rem;margin:.6rem 0}.quick-add{margin:0 .75rem .75rem;width:calc(100% - 1.5rem);min-height:44px;border:0;border-radius:12px;background:var(--teal);color:white;font-weight:700}.product-card{display:flex;flex-direction:column}.product-open{flex:1}.orders-dialog .dialog-card{padding-top:3rem}.saved-order{padding:1rem 0;border-bottom:1px solid var(--line)}.saved-order h3{overflow-wrap:anywhere}.saved-order button{min-height:44px}.orders-dialog #orders-new{margin-top:1rem}.message-alert{padding:1rem;border:2px solid var(--teal);border-radius:12px;background:var(--mint);color:var(--ink);width:100%;margin-bottom:1rem;text-align:left;font-weight:700}#chat-error{padding:.6rem 1rem;color:#922a1c;margin:0}#chat-context{font-size:.75rem;padding:0 1rem;margin:0;overflow-wrap:anywhere}.chat-panel{display:flex!important;flex-direction:column}.chat-panel[hidden]{display:none!important}.chat-messages{flex:1;overflow:auto;min-height:60px}.chat-form,.chat-head,.payment-attachment,#chat-context,#chat-error,#payment-alert{flex-shrink:0}#checkout-availability:not(:empty){padding:1rem;background:#fff0cf;border-radius:12px}.line-controls button{min-width:44px;min-height:44px}#order-tracking ul{padding-left:1.2rem;line-height:1.7}#order-tracking p{overflow-wrap:anywhere}
@media(max-width:760px){.store-header{height:auto!important;min-height:102px;display:grid;grid-template-columns:1fr;padding:.35rem .75rem!important}.brand-logo{width:38px;height:38px}.brand-mark strong{font-size:1.1rem}.brand-mark span{display:none}.store-navigation{justify-content:space-between;gap:.5rem}.store-navigation button{font-size:.8rem}.store-navigation .cart-chip{padding:.4rem .65rem}main{padding-top:120px!important}.catalog-filters{top:102px!important}.catalog-search{display:block}.catalog-search input{display:block;width:100%;max-width:none;margin-top:.3rem}.orders-dialog{margin:0;max-width:100%;width:100%;height:100dvh;max-height:100dvh}.orders-dialog .dialog-card{min-height:100%;max-height:none;border-radius:0}.cart-feedback{top:110px}.product-info p{min-height:0}.quick-add{font-size:.85rem}.has-purchase #order-tracking{scroll-margin-top:115px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.address-extra summary{cursor:pointer;padding:.6rem 0;color:var(--teal);font-size:.88rem}.orders-dialog #orders-title:focus{outline:none}.cart-item-name{cursor:pointer;display:inline-block}.cart-item-name:hover{text-decoration:underline;text-underline-offset:.15em}.cart-item-name:focus-visible{outline:3px solid #9ac9c1;outline-offset:3px;border-radius:4px}.line-controls{gap:.5rem}.line-controls span{min-width:1.5rem;text-align:center;font-weight:700}

@media(max-width:760px){.hero{padding:0}.hero h1{font-size:1.6rem;margin:.35rem 0 .6rem}.hero-copy{display:none}.hero .eyebrow{margin:.2rem 0}.hero h1 br{display:none}.category-icon{display:none!important}.catalog-search{padding-top:.2rem}.catalog-filters{padding-top:.5rem}.mode-picker{margin-bottom:.5rem}}

@media(max-width:760px){input,textarea,select{font-size:16px}#order-tracking h2{font-size:1.4rem;line-height:1.25}}

/* One attachment entry point; only show choices or send after a deliberate action. */
.chat-form{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:.5rem;align-items:end}
.chat-form:has(#attachment-toggle:not([hidden])){grid-template-columns:44px minmax(0,1fr) 44px}
.chat-form textarea{min-height:44px;max-height:110px;resize:vertical;border-radius:22px;padding:.7rem .9rem}
#chat-send,.attachment-toggle{width:44px;height:44px;min-height:44px;border-radius:50%;padding:0;font-size:1.5rem}
.attachment-toggle{background:transparent;color:var(--teal);border:1px solid var(--line)}
.attachment-menu{display:flex;gap:.5rem;padding:.25rem;justify-content:space-between}
.attachment-menu button{flex:1;min-height:48px;padding:.65rem .4rem;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font-size:.85rem}
#evidence-upload{padding:.5rem .75rem}.payment-attachment{border:0}.payment-attachment:has(#attachment-menu[hidden]):has(#evidence-draft[hidden]):has(#evidence-status:empty){display:none}
.evidence-draft{position:relative;text-align:center;padding:.5rem}.evidence-draft #evidence-preview{max-height:28dvh;max-width:100%;margin:.4rem auto;object-fit:contain}.evidence-draft #evidence-remove{position:absolute;right:0;top:0;background:var(--paper);border-radius:50%;width:44px;height:44px;z-index:1}
#chat-form.has-attachment{display:none}#evidence-draft #evidence-send{width:100%;margin-top:.5rem}
body.chat-open .chat-toggle{display:none!important}#chat-panel{overscroll-behavior:contain}

/* On phones, keep category filters reachable without hiding products in carousels. */
.category-nav{display:block}
.fulfillment-summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid var(--line);border-radius:12px;background:var(--mint);margin:1rem 0}.fulfillment-summary small,.fulfillment-summary strong{display:block}.fulfillment-summary small{color:var(--muted);font-size:.8rem}.fulfillment-summary strong{margin-top:.2rem}.fulfillment-summary .text-button{padding:.5rem .25rem;white-space:nowrap}.checkout-card #mode-options{margin-top:.6rem}.checkout-card #onsite-fields{margin:.7rem 0 1rem}.checkout-card #onsite-fields small{display:block;color:var(--muted);margin-top:-.45rem}
@media(max-width:760px){
  .category-nav{position:sticky;top:102px;z-index:19;margin:0 -.75rem;padding:0 .75rem;background:color-mix(in srgb,var(--color-canvas) 96%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
  #category-tabs{display:flex!important;flex-wrap:nowrap!important;gap:.45rem;max-width:100%;overflow-x:auto!important;overflow-y:hidden!important;padding:.55rem 0;scrollbar-width:thin;scroll-snap-type:x proximity;touch-action:pan-x;overscroll-behavior-x:contain}
  #category-tabs button{flex:0 0 auto;min-height:44px;scroll-snap-align:start}
  #product-grid{scroll-margin-top:160px}
  body.has-purchase:not(.browsing-additions) #category-nav{display:none}
}

/* Keep catalog search and category navigation consistent on desktop and mobile. */
@media(min-width:761px){
  .catalog-filters{margin-inline:0;padding:.2rem 0 .7rem}
  .catalog-search-control,.catalog-search input{width:100%;max-width:none}
  .category-nav{position:sticky;top:76px;z-index:19;margin:0;padding:0;background:color-mix(in srgb,var(--color-canvas) 96%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
  #category-tabs{display:flex;flex-wrap:nowrap;gap:.4rem;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:.55rem 0;scrollbar-width:thin;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
  #category-tabs button{flex:0 0 auto;min-height:44px;scroll-snap-align:start}
}
@media(min-width:761px){


}
body.has-purchase:not(.browsing-additions) #category-nav{display:none}

.catalog-search.is-floating,.catalog-search.is-floating.is-entering{transform:translateY(0)!important}
.catalog-search.is-floating input{margin-top:0}
body.search-floating.search-visible::before{content:"";position:fixed;top:102px;left:0;right:0;height:var(--floating-search-height,0px);background:var(--cream);z-index:21;pointer-events:none}
@media(min-width:761px){body.search-floating.search-visible::before{top:76px}}
.category-nav{background:var(--cream)!important}
body.search-floating:not(.search-exiting) #category-nav{top:calc(76px + var(--floating-search-height,0px))}
@media(max-width:760px){body.search-floating:not(.search-exiting) #category-nav{top:calc(102px + var(--floating-search-height,0px))}}

/* Table service stays reachable from the persistent storefront header. */
.table-service-menu{position:relative;align-self:center}
.table-service-menu>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:.55rem .85rem;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--teal);font-weight:700;cursor:pointer;list-style:none;white-space:nowrap}
.table-service-menu>summary::-webkit-details-marker{display:none}
.table-service-menu[open]>summary{background:var(--mint);border-color:var(--teal)}
.table-service-table-wrap{display:block;margin:.75rem 0;color:var(--ink);font-size:.85rem;font-weight:650}
.table-service-table-wrap select{display:block;width:100%;margin-top:.35rem}
.table-service-popover{position:absolute;right:0;top:calc(100% + .6rem);z-index:75;width:min(340px,calc(100vw - 1.5rem));padding:1rem;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 40px #173b3426}
.table-service-popover h2{font-size:1rem;margin:.35rem 0 .75rem}
.table-service-buttons{display:flex;flex-wrap:wrap;gap:.5rem}
.table-service-buttons button{min-height:44px;flex:1 1 125px}
#table-service-status,#table-service-checkout-status{margin:.65rem 0 0;color:var(--muted);font-size:.85rem}
#table-service-status[data-state="error"],#table-service-checkout-status[data-state="error"],.table-service-feedback[data-state="error"]{color:#a8321a}
#table-service-status[data-state="success"],#table-service-checkout-status[data-state="success"],.table-service-feedback[data-state="success"]{color:#176b4d}
.table-qr-summary{padding:.85rem 1rem;margin:.75rem 0 1rem;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.table-qr-summary>strong{display:block;margin-bottom:.65rem}
@media(max-width:760px){.table-service-menu>summary{padding:.45rem .6rem;font-size:.78rem}.table-service-popover{position:fixed;top:calc(102px + .5rem);left:.5rem;right:.5rem;width:auto;max-width:340px;margin-inline:auto}.store-navigation{gap:.3rem}.table-service-buttons{display:grid;grid-template-columns:1fr 1fr}.table-service-buttons button{font-size:.78rem;padding:.55rem .4rem}}
.cart-table-actions{padding:1rem;margin:.75rem 0;border-radius:14px;background:var(--mint)}.cart-table-actions>p:first-child{font-size:.72rem;font-weight:700;letter-spacing:.08em;margin:0 0 .7rem}.cart-table-actions .table-service-feedback{margin:.6rem 0 0;color:var(--muted);font-size:.85rem}

/* Product dialogs stay compact so the complete action area remains visible on phones. */
@media(max-width:760px){.product-dialog{height:auto;max-height:calc(100dvh - 1rem);overflow:hidden}.product-dialog .dialog-card{min-height:0;max-height:calc(100dvh - 1rem);overflow:hidden;padding:.85rem}.product-dialog .dialog-image{height:105px;margin:-.85rem -.85rem .8rem;border-radius:18px 18px 0 0}.product-dialog .dialog-card h2{font-size:1.55rem;margin:.25rem 0}.product-dialog .muted{font-size:.85rem;line-height:1.3;margin:.35rem 0}.product-dialog .dialog-price{font-size:1.05rem;margin:.55rem 0}.product-dialog .dialog-options{gap:.45rem;margin:.65rem 0}.product-dialog .option-group h3{font-size:.8rem;margin-bottom:.35rem}.product-dialog .option-list{gap:.3rem}.product-dialog .option-label{padding:.5rem;font-size:.85rem}.product-dialog .field{margin:.55rem 0;font-size:.8rem;gap:.25rem}.product-dialog .field textarea{padding:.5rem}.product-dialog .dialog-actions{margin-top:.65rem;padding-top:.55rem}.product-dialog .dialog-actions button{padding:.6rem .7rem}.product-dialog .quantity-control button{width:34px;height:34px}}

/* Keep the product choice sheet within the viewport. */
.dialog-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}.dialog-title-row h2{margin:.25rem 0}.dialog-title-row .dialog-price{margin:0;white-space:nowrap;font-size:1.15rem}@media(min-width:761px){.product-dialog{max-height:calc(100vh - 1rem)}.product-dialog .dialog-card{max-height:calc(100vh - 1rem);overflow:hidden;padding:1.25rem}.product-dialog .dialog-image{height:110px;margin:-1.25rem -1.25rem .8rem}.product-dialog .dialog-options{gap:.45rem;margin:.7rem 0}.product-dialog .field{margin:.55rem 0}.product-dialog .dialog-actions{margin-top:.7rem}}@media(max-width:760px){.product-dialog .dialog-title-row h2{font-size:1.45rem}.product-dialog .dialog-title-row .dialog-price{font-size:1rem}.product-dialog .dialog-card{max-height:calc(100dvh - 1rem);overflow:hidden}.product-dialog .dialog-description{font-size:.8rem}}
