/* Responsive shop: stable portrait cards, touch navigation, bounded content. */
.shop-page{--shop-width:1440px;--shop-gutter:clamp(18px,4vw,64px);background:#fff}
.shop-page .shell{box-sizing:content-box;width:auto;max-width:var(--shop-width);padding-inline:var(--shop-gutter);background:#fff;margin-inline:auto}
.shop-page .site-footer .container{width:calc(100% - var(--shop-gutter)*2);max-width:var(--shop-width)}

/* The dialog scrolls its content; close and purchase controls stay reachable. */
dialog.product-detail[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.product-detail{padding:0;width:calc(100% - 48px);max-width:1080px;max-height:calc(100dvh - 48px);overflow:hidden}
.detail-dialog-header{display:flex;align-items:center;justify-content:space-between;min-height:62px;padding:10px 24px;border-bottom:1px solid #edf1f4;font-size:13px;font-weight:600;color:#667d8b;background:#fff}
.product-detail .dialog-close{position:static;width:42px;height:42px;font-size:28px;flex-shrink:0}
.detail-scroll{overflow:auto;overscroll-behavior:contain;padding:28px 32px}
.detail-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start}
.detail-main-image{width:100%;height:auto;aspect-ratio:4 / 5;max-width:420px;margin-inline:auto}
.detail-copy h2{font-size:clamp(26px,3vw,34px)}
.detail-actions{gap:10px}.detail-actions .primary,.detail-actions .secondary{min-height:46px}
.detail-quantity{margin:24px 0 0}
.detail-purchase-bar{border-top:1px solid #dfe8ec;background:#fff;padding:16px 32px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:28px}
.detail-fulfillment{margin:0;gap:16px;grid-template-columns:1fr 1.5fr}
.detail-fulfillment strong{font-size:12px}
.detail-information{margin-top:28px;gap:32px}
#detail-options .filter-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#detail-options .filter-chip{min-height:44px;padding:8px 7px;font-size:11px;white-space:normal;text-align:center}
.detail-main-image img.softeners{width:calc(100% - 50px);max-width:100%;transform:none}

@media(min-width:1700px){.shop-page .shell{border-inline:0}
}
@media(min-width:701px) and (max-width:1100px){

 .detail-layout{gap:24px}.detail-scroll{padding:24px}
 .detail-purchase-bar{padding:16px 24px;gap:18px}
}
@media(max-width:900px){

 .detail-purchase-bar{grid-template-columns:1fr}.detail-purchase-bar .detail-fulfillment{display:flex;justify-content:space-between;gap:20px}
}
@media(max-width:700px){

 .filter-toggle{width:44px;height:44px;padding:10px;flex-shrink:0}
 .filter-toggle>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

 .product-detail{width:100%;height:100dvh;max-height:100dvh;max-width:none;border-radius:0;margin:0}
 .detail-dialog-header{min-height:60px;padding:8px 18px;font-size:14px}
 .detail-scroll{padding:18px 20px 24px}
 .detail-layout,.detail-information{grid-template-columns:minmax(0,1fr);gap:20px}
 .detail-main-image{width:min(100%,240px)}
 .detail-copy>.product-brand,.detail-copy>.detail-sku{display:none}
 .detail-copy h2{font-size:28px}.detail-sku{font-size:10px;margin-bottom:12px}
 #detail-description{font-size:13px;line-height:1.55}
 .detail-quantity{margin-top:16px}
 .detail-purchase-bar{padding:12px 20px calc(14px + env(safe-area-inset-bottom));gap:12px;box-shadow:0 -4px 18px #173d4d08}
 .detail-purchase-bar .detail-fulfillment{gap:12px}
 .detail-fulfillment strong{font-size:11px}.detail-fulfillment svg{width:18px;height:18px}
 .detail-actions{gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}
 .detail-inquire{width:44px;height:46px;padding:10px}
 .detail-information{margin-top:24px}.detail-information h3{font-size:16px}
 .shop-page .site-footer{padding-top:48px;border-top-left-radius:32px}
 .shop-page .site-footer .footer-columns{gap:28px 18px}
 .shop-page .site-footer .footer-brand-row{gap:28px}
}
@media(max-width:360px){

 .detail-purchase-bar,.detail-scroll{padding-inline:16px}
 .detail-fulfillment strong{font-size:10px}
}
/* Single-line categories and a concise bag before checkout. */

#shop-cart{max-width:760px;padding:40px;color:#1d1d1f}
#shop-cart h2{font-size:36px;letter-spacing:-1.2px;margin-bottom:12px}
#shop-cart .eyebrow{display:none}
#shop-cart .cart-line{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:22px;padding:26px 0;align-items:start}
.bag-photo{width:90px;height:112px;object-fit:contain;background:#f5f7f9;border-radius:12px;padding:8px}
#shop-cart .cart-line strong{font-size:19px;line-height:1.25;letter-spacing:-.4px;margin:4px 0 7px;font-weight:650}
.bag-item-option{font-size:13px;color:#6e6e73}
#shop-cart .bag-item-price{font-size:18px;font-weight:650;color:#1d1d1f;text-align:right;padding-top:4px;white-space:nowrap}
.bag-item-price small{display:block;font-size:11px;font-weight:400;color:#6e6e73;margin-top:5px}
#shop-cart .quantity{gap:10px;font-size:13px;flex-wrap:wrap}
#shop-cart .quantity button{border-radius:50%;background:#f5f5f7;border:0;min-width:36px}
#shop-cart .quantity .remove{margin-left:4px;background:none;color:var(--brand-blue);text-decoration:none;min-width:54px}
#shop-cart .cart-total{font-size:17px;padding-top:20px}
.bag-note,.bag-preview-note{font-size:12px;color:#6e6e73;line-height:1.5;margin:18px 0}
.bag-preview-note{text-align:center;margin:12px 0 0}
#shop-cart #checkout-button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:50px;border-radius:12px;font-size:15px}
#question-dialog{max-width:600px}
.question-logo{width:210px;height:auto;margin:4px 0 14px}
#question-product{color:#617888;font-size:14px;margin-bottom:24px}
#question-form{display:grid;gap:18px}
.question-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#question-form label{display:grid;gap:8px;font-size:13px}
#question-form input,#question-form textarea{width:100%;border:1px solid #d4e0e7;border-radius:10px;background:#f7fafc;padding:12px;font:inherit;min-height:46px}
#question-form textarea{resize:none}
#question-form .primary{min-height:46px}
#question-form .bag-preview-note{margin:0}
#question-draft{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8fa;padding:18px;border-radius:12px;font:13px/1.6 inherit}

@media(max-width:500px){
 #shop-cart{width:calc(100% - 24px);padding:28px 20px;max-height:calc(100dvh - 32px)}
 #shop-cart h2{font-size:29px}
 #shop-cart .cart-line{grid-template-columns:64px minmax(0,1fr) auto;gap:12px;padding:22px 0}
 .bag-photo{width:64px;height:85px;padding:5px}
 #shop-cart .cart-line strong{font-size:16px}
 #shop-cart .bag-item-price{font-size:15px}.bag-item-option{font-size:11px}
 #shop-cart .quantity{gap:5px}#shop-cart .quantity button{width:32px;height:36px;min-width:32px}
 #shop-cart .quantity .remove{margin-left:0;font-size:11px}
 .question-fields{grid-template-columns:1fr}
}

/* One white catalog and one set of browsing controls across screen sizes. */
.shop-intro{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:24px;padding:38px 0 24px}
.shop-intro h1{margin:0;font-size:clamp(36px,4vw,56px);line-height:1.1;letter-spacing:-1.8px;color:#202226;white-space:nowrap}
.shop-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:10px;padding:0;min-width:0}
.shop-search{display:flex;align-items:center;width:44px;height:44px;flex-shrink:0;overflow:hidden;border:1px solid transparent;border-radius:24px;background:#fff;transition:width .24s ease,border-color .2s ease}
.search-toggle,#close-search{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:0;background:none;padding:10px;color:#253d4a}
.search-toggle svg,#close-search svg{width:22px;height:22px}
.search-toggle:hover,#close-search:hover{color:var(--brand-blue)}
.search-toggle:focus-visible{outline-offset:-4px}
.search-field{display:flex;align-items:center;min-width:0;width:0;opacity:0;visibility:hidden;transition:opacity .16s ease}
.search-field input{min-width:0;width:100%;height:42px;flex:1;border:0;background:none;padding:0 2px;font-size:16px;outline:none}
.shop-search.is-open{width:300px;border-color:#cbd7dc}
.shop-search.is-open .search-field{width:calc(100% - 42px);opacity:1;visibility:visible}
.shop-search:focus-within{border-color:var(--brand-blue)}
.filter-toggle{height:44px;min-height:44px;gap:8px;padding:10px 15px;border:1px solid #dce2e6;border-radius:24px;background:#fff;font-size:13px}
.filter-toggle svg{width:20px;height:20px}
.browse-toolbar{display:block;padding:0;border-bottom:1px solid #e9ecef}
.category-navigation{position:relative;min-width:0;margin:0}
.category-navigation.has-overflow{padding-inline:36px}
.category-bar{display:flex;flex-wrap:nowrap;align-items:stretch;gap:14px;padding:10px 0 0;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
.category-bar::-webkit-scrollbar{display:none}
.category{flex:1 0 auto;min-width:94px;min-height:86px;padding:8px 6px 0;gap:10px;border:0;border-radius:0;background:transparent;color:#53565a;scroll-snap-align:start}
.category:hover,.category[aria-pressed=true]{background:transparent;color:#008ebc;border:0}
.category-icon{width:30px;height:30px;color:#388298}
.category-caption{font-size:12px;font-weight:550;line-height:1.4;white-space:nowrap;max-width:none;min-height:0;padding-bottom:15px;border-bottom:2px solid transparent}
.category[aria-pressed=true] .category-caption{border-bottom-color:var(--brand-blue)}
.category-label-short{display:none}
.category-arrow{position:absolute;top:19px;display:grid;place-items:center;width:32px;height:44px;padding:6px;border:0;border-radius:0;background:#fff;color:#53636b;z-index:1;transform:none}
.category-arrow:first-child{left:0}.category-arrow:last-child{right:0}
.category-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.category-arrow:disabled{opacity:.25}.category-arrow:hover:not(:disabled){color:var(--brand-blue);background:#fff}
.catalog-divider{display:none}
.results{padding:28px 0 0;margin:0;background:#fff}
.product-grid{gap:36px}
.shelf-heading{font-size:26px;line-height:1.3;margin-bottom:20px;color:#202226}
.shelf-heading span{display:inline}
.product-row{grid-auto-columns:calc((100% - 48px)/3);gap:24px;padding:0 0 12px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}
.product-card{aspect-ratio:4/5;container-type:inline-size;border:1px solid #e6e8eb;border-radius:16px;background:#fafafa}
.product-card-open{height:100%;min-height:0;padding:20px}
.product-card-open:hover{background:transparent}
.product-card-open .product-copy{order:0;min-height:0;flex:0 0 auto}
.product-card-open .card-header{order:1;margin:8px 0 0;flex:0 0 auto}
.product-card-open .card-header .product-brand{display:none}
.product-card-open .card-stock{font-size:12px;margin:0}
.card-title-row{gap:10px;align-items:flex-start}
.product-card-open .product-title,.card-title-row .card-price{font-size:clamp(17px,5.8cqi,23px);line-height:1.2;letter-spacing:-.4px;color:#202226}
.product-card-open .product-title>span{white-space:normal}
.card-price small{font-size:10px;margin-top:5px}
.product-card-open .product-visual{order:2;min-height:0;flex:1 1 0;padding:14px 4px}
.card-actions{order:3;gap:8px}
.card-actions button{min-height:44px;padding:8px 5px;font-size:12px;line-height:1.2}
.shelf-controls{gap:8px;padding-top:0}
.shelf-controls button{width:44px;height:44px;background:#f1f2f3;color:#535f65}
.shelf-controls button:disabled{opacity:.25}
.price-note{padding-bottom:28px;margin-bottom:0}
.floating-cart{right:max(24px,calc((100vw - var(--shop-width))/2));bottom:24px;border-radius:28px}
@media(min-width:1700px){.product-row{grid-auto-columns:calc((100% - 72px)/4)}}
@media(min-width:701px) and (max-width:1000px){.product-row{grid-auto-columns:calc((100% - 24px)/2)}}
@media(max-width:700px){
 .shop-page{--shop-gutter:18px;padding-bottom:0;color:#202226}
 .shop-page:has(.floating-cart:not([hidden])){padding-bottom:88px}
 .shop-intro{gap:12px;padding:20px 0 14px;min-height:78px}
 .shop-intro h1{font-size:30px;letter-spacing:-1.2px}
 .shop-tools{gap:6px;flex-shrink:0}
 .filter-toggle{width:44px;height:44px;padding:11px;border:0}
 .filter-toggle>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .shop-intro:has(.shop-search.is-open) h1{display:none}
 .shop-intro:has(.shop-search.is-open) .shop-tools{width:100%}
 .shop-search.is-open{width:calc(100% - 50px);flex:1}
 .category-navigation.has-overflow{padding-inline:0}
 .category-arrow{display:none}
 .category-bar{gap:24px;margin-right:calc(-1*var(--shop-gutter));padding:6px 18px 0 0;scroll-padding-left:0}
 .category{flex:0 0 auto;min-width:70px;min-height:80px;padding:6px 0 0;gap:9px}
 .category-icon{width:28px;height:28px}
 .category-caption{font-size:12px;line-height:1.4;padding-bottom:14px}
 .category-label-full{display:none}.category-label-short{display:inline}
 .results{padding-top:24px;background:#fff}
 .product-grid{gap:30px}
 .product-shelf{position:relative}
 .shelf-heading{padding:7px 92px 0 0;font-size:22px;min-height:44px;display:block;margin-bottom:18px;letter-spacing:-.5px}
 .shelf-heading span{display:block;margin-top:6px;font-size:14px;line-height:1.5;letter-spacing:0}
 .product-row{grid-auto-columns:min(380px,calc(100% - 24px));gap:14px;margin-right:calc(-1*var(--shop-gutter));padding-right:18px;padding-bottom:0}
 .product-card{background:#fafafa;border-color:#e6e8eb;border-radius:14px}
 .product-card-open{padding:16px}
 .product-card-open .product-title,.card-title-row .card-price{font-size:clamp(18px,6cqi,22px)}
 .product-card-open .card-stock{font-size:12px}
 .product-card-open .product-visual{padding:10px 0}
 .card-actions button{font-size:12px;min-height:44px}
 .shelf-controls{position:absolute;right:0;top:0;gap:4px}
 .shelf-controls button{width:44px;height:44px;background:transparent}
 .shelf-controls button:hover:not(:disabled){background:#f5f5f5}
 .shelf-controls button svg{width:20px;height:20px}
 .floating-cart{left:18px;right:18px;bottom:calc(16px + env(safe-area-inset-bottom));min-height:52px;padding:10px 16px;border-radius:14px;justify-content:center;font-size:14px;box-shadow:0 4px 18px #173d4d26}
 .floating-cart .cart-count{margin-left:auto}.floating-cart>svg{width:21px;height:21px}
 .toast{bottom:calc(86px + env(safe-area-inset-bottom));font-size:12px}
}
@media(max-width:370px){.shop-intro h1{font-size:26px}.category-bar{gap:20px}.product-card-open{padding:14px}.card-actions button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.shop-search,.search-field{transition:none}}

/* Compensate for transparent source padding without changing product scale. */
.detail-main-image #detail-image[data-padded-image]{transform:translate(var(--detail-shift-x,0px),var(--detail-shift-y,0px))}

.bag-photo-frame{display:flex;align-items:center;justify-content:center;width:90px;height:112px;padding:8px;background:#f5f7f9;border-radius:12px;overflow:hidden}.bag-photo-frame .bag-photo{display:block;width:100%;height:100%;padding:0;border-radius:0;background:transparent;object-fit:contain;object-position:center}.bag-photo-frame .bag-photo-padded{transform:translateX(-24.1%)}@media(max-width:600px){.bag-photo-frame{width:64px;height:85px;padding:5px}}

#shop-cart .square-payment-brand{display:flex;align-items:center;justify-content:center;gap:8px;margin:20px 0 0;color:#526774;font-size:12px}
#shop-cart .square-payment-brand svg{width:20px;height:20px;flex-shrink:0;color:#243746}

/* Categories expose every family in rows; All products retains its shelves. */
.shop-page .category-product-grid .product-row{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;scroll-snap-type:none;margin-right:0;padding-right:0;gap:24px}
.shop-page .category-product-grid .product-card{min-width:0}
@media(min-width:1700px){.shop-page .category-product-grid .product-row{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:1000px){.shop-page .category-product-grid .product-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.shop-page .category-product-grid .product-row{grid-template-columns:minmax(0,1fr);gap:20px}}
