/* Compact catalogue controls and a separate, deliberate add-to-cart flow. */
.catalog-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.catalog-meta .catalog-guide{order:1;font-size:11px;color:#8b7895}
.catalog-heading-tools{display:flex;align-items:center;gap:16px}
.catalog-heading-tools .item-count{display:inline-flex;align-items:baseline;gap:3px;font-family:inherit;font-size:12px;letter-spacing:0;white-space:nowrap}
.catalog-heading-tools .item-count strong{margin:0;font-family:inherit;font-size:inherit;font-style:normal;font-weight:600;letter-spacing:0}
.catalog-tools-toggle{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid #e5dce9;border-radius:999px;background:transparent;color:#6e587d;font:inherit;font-size:12px;cursor:pointer;transition:background .2s,border-color .2s}
.catalog-tools-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.catalog-tools-toggle .catalog-close-symbol{display:none}
.catalog-tools-toggle[aria-expanded="true"]{background:#eee5f5;border-color:#d9c9e4}
.catalog-tools-toggle[aria-expanded="true"] .catalog-close-symbol{display:block}
.catalog-tools-toggle[aria-expanded="true"] .catalog-search-symbol{display:none}
.catalog-tools-toggle.has-selection:after{content:"";position:absolute;right:4px;top:4px;width:6px;height:6px;border:2px solid #fffdfb;border-radius:50%;background:#84619d}
.catalog-tools-toggle:focus-visible,.catalog-selection button:focus-visible{outline:2px solid #9572ad;outline-offset:3px}
.catalog-tools-collapse{overflow:hidden;overflow-anchor:none}
.catalog-tools-collapse[hidden]{display:none}
.catalog-tools-content{padding-bottom:22px}
.catalog-tools-moving{overflow-anchor:none}
.catalog-tools{display:grid;grid-template-columns:minmax(0,1fr) 240px;align-items:center;gap:16px;margin:0;padding:16px;background:#f8f4fa;border:1px solid #ece3f0;border-radius:16px}
.catalog-tools[hidden],.catalog-selection[hidden]{display:none}
.catalog-search{max-width:none;min-width:0;width:auto;border-radius:10px;min-height:46px}
.catalog-search input{font-size:16px}
.catalog-sort{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:0;min-width:0}
.catalog-sort-label{font-size:12px;color:#897493;white-space:nowrap}
.catalog-sort-control{display:block;position:relative;min-width:0}
.catalog-sort select{-webkit-appearance:none;appearance:none;display:block;box-sizing:border-box;width:100%;max-width:none;min-width:0;height:48px;min-height:48px;padding:0 42px 0 14px;border:1px solid #e7deec;border-radius:10px;background:#fff;color:#65516f;line-height:normal;font-size:14px}
.catalog-sort-control svg{position:absolute;right:15px;top:50%;transform:translateY(-50%);width:17px;height:17px;fill:none;stroke:#9377a2;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.catalog-selection{display:flex;align-items:center;gap:12px;margin:0 0 18px;color:#7c638d;font-size:12px;line-height:1.6}
.catalog-selection span{min-width:0;overflow-wrap:anywhere}
.catalog-selection button{flex:none;background:transparent;border:0;color:#7b608f;font:inherit;text-decoration:underline;text-underline-offset:3px;min-height:36px;padding:0 4px;cursor:pointer}
.product-card .product-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:8px}
.product-card .product-actions .detail-button,.product-card .product-actions .add-button{width:100%;min-width:0;min-height:44px;padding:10px 8px;border-radius:9px;font-size:11px;line-height:1.3;white-space:nowrap}
.product-card .product-actions .add-button:not(:disabled){width:100%;flex:initial;padding:10px 8px}
.product-card .product-actions .add-button .product-add-label{display:inline}
.product-card .product-actions .product-add-glyph{flex:0 0 17px;width:17px;height:17px}
.product-card .product-actions .product-add-icon,.product-card .product-actions .product-add-check{width:17px;height:17px}
.quick-add-dialog{width:min(480px,calc(100vw - 40px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #e8dfee;border-radius:24px;background:#fffdfa;color:#47344f;box-shadow:0 24px 90px #33243e40;overscroll-behavior:contain}
.quick-add-dialog::backdrop{background:#30223775;backdrop-filter:blur(5px)}
html:has(.quick-add-dialog[open]){overflow:hidden}
.quick-add-dialog[open]{animation:quick-add-in .24s cubic-bezier(.2,.7,.2,1)}
.quick-add-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 24px 19px;border-bottom:1px solid #eee6f1}
.quick-add-header span{font-size:11px;letter-spacing:.08em;color:#9c83aa}
.quick-add-header h2{font-size:22px;line-height:1.4;font-weight:600;margin:5px 0 0;letter-spacing:-.025em}
.quick-add-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:50%;background:#f5eff8;color:#80638e;cursor:pointer}
.quick-add-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.quick-add-body{padding:22px 24px}
.quick-add-product{display:grid;grid-template-columns:88px minmax(0,1fr);gap:17px;align-items:center;margin-bottom:26px}
.quick-add-product img{width:88px;height:88px;object-fit:contain;background:#f4f0f5;border-radius:12px}
.quick-add-product p{font-size:10px;letter-spacing:.045em;color:#a18baa;margin:0 0 6px}
.quick-add-product h3{font-size:14px;line-height:1.55;font-weight:500;margin:0 0 8px}
.quick-add-product strong{display:block;font-size:17px;font-weight:600;color:#5f426e}
.quick-add-product small{display:block;font-size:10px;line-height:1.5;color:#9b88a5;margin-top:4px}
.quick-add-options{border:0;margin:0;padding:0;min-width:0}
.quick-add-options legend{font-size:12px;font-weight:600;margin-bottom:12px}
.quick-add-options>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.quick-add-options button{position:relative;min-width:0;min-height:48px;padding:13px 24px 13px 12px;background:#fffdfa;border:1px solid #e5dce9;border-radius:10px;color:#755b85;font:inherit;font-size:12px;line-height:1.5;text-align:left;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.quick-add-options button[aria-pressed="true"]{background:#f2eaf7;border-color:#9671ab;box-shadow:0 0 0 1px #9671ab}
.quick-add-options button[aria-pressed="true"]:after{content:"✓";position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#7d5597}
.quick-add-options button:disabled{background:#f8f6f9;color:#b3a7ba;border-color:#ede7f0;cursor:not-allowed}
.quick-add-options small{display:block;font-size:10px;margin-top:4px}
.quick-add-selection{min-height:20px;margin:13px 0 23px;color:#92789f;font-size:11px;line-height:1.6}
.quick-add-quantity{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #eee6f1;padding-top:18px;font-size:12px}
.quick-add-quantity>div{display:flex;align-items:center;border:1px solid #e7deed;border-radius:999px;overflow:hidden}
.quick-add-quantity button{width:42px;height:40px;border:0;background:transparent;color:#725383;font:inherit;font-size:18px;cursor:pointer}
.quick-add-quantity button:disabled{color:#c6bbcd;cursor:default}
.quick-add-quantity #quickAddQuantity{width:30px;text-align:center;font-variant-numeric:tabular-nums}
.quick-add-footer{position:sticky;bottom:0;padding:16px 24px 22px;background:#fffdfa;border-top:1px solid #eee6f1}
.quick-add-footer .button{width:100%;min-height:48px;border-radius:12px;font-size:14px;font-weight:500}
.quick-add-footer .button:disabled{background:#eae3ee;color:#aa99b4;border-color:#eae3ee;cursor:default;box-shadow:none}
.quick-add-dialog button:focus-visible{outline:2px solid #9772ae;outline-offset:3px}
@keyframes quick-add-in{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:680px){
 .catalog-meta{gap:0}.catalog-meta .catalog-guide{display:none}.catalog-heading-tools{gap:10px}.catalog-tools-toggle{width:44px;padding:0}.catalog-tools-toggle>span{display:none}.catalog-tools-toggle svg{width:20px;height:20px}
 .catalog-tools{grid-template-columns:minmax(0,1fr);padding:12px;gap:12px;margin:0;border-radius:14px}.catalog-search{min-height:48px}.catalog-sort{width:100%;grid-template-columns:36px minmax(0,1fr);gap:10px}.catalog-sort select{height:48px;min-height:48px;font-size:16px}.catalog-tools-content{padding-bottom:20px}.catalog-selection{font-size:11px;gap:10px}
 .product-card .product-actions{gap:6px;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr)}.product-card .product-actions .detail-button,.product-card .product-actions .add-button,.product-card .product-actions .add-button:not(:disabled){min-height:44px;padding:10px 4px;font-size:10px;flex:initial}.product-card .product-actions .product-add-glyph{display:none}
 .quick-add-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:88dvh;border-bottom:0;border-radius:24px 24px 0 0}.quick-add-header{padding:22px 20px 17px}.quick-add-body{padding:20px}.quick-add-footer{padding:14px 20px max(20px,env(safe-area-inset-bottom))}.quick-add-dialog[open]{animation:quick-add-rise .27s cubic-bezier(.2,.7,.2,1)}
}
@keyframes quick-add-rise{from{opacity:.5;transform:translateY(70px)}to{opacity:1;transform:none}}
@media(max-width:360px){
 .header-inner>.brand{gap:5px}
 .header-inner>.brand img{width:28px;height:28px}
 .header-inner>.brand strong{font-size:18px}
 .header-inner>.brand small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.quick-add-dialog[open]{animation:none}.catalog-tools-toggle,.quick-add-options button{transition:none}}
.no-motion .quick-add-dialog[open]{animation:none}.no-motion .catalog-tools-toggle,.no-motion .quick-add-options button{transition:none}
/* One clear action per card: the card (image or name) opens the details. */
.product-card .product-actions{grid-template-columns:minmax(0,1fr)}
.product-card{cursor:pointer}
.product-card .product-image-wrap{overflow:hidden}
.product-card .product-image-wrap img{transition:transform .32s ease}
@media (hover:hover){.product-card:hover .product-image-wrap img{transform:scale(1.025)}}
@media (prefers-reduced-motion:reduce){.product-card .product-image-wrap img{transition:none}.product-card:hover .product-image-wrap img{transform:none}}
/* Gentle motion (off when the visitor prefers reduced motion). */
.js-image-fade .product-image-wrap img,.js-image-fade .detail-image-stage img{opacity:0;transition:opacity .22s ease,transform .32s ease}
.js-image-fade .product-image-wrap img.is-loaded,.js-image-fade .detail-image-stage img.is-loaded{opacity:1}
.cart-nav.cart-bump{animation:stelmy-cart-bump .38s cubic-bezier(.3,1.6,.5,1)}
.cart-nav.cart-bump #cartCount{animation:stelmy-count-pop .38s ease}
@keyframes stelmy-cart-bump{0%{transform:none}35%{transform:scale(1.12) rotate(-6deg)}70%{transform:scale(.97)}100%{transform:none}}
@keyframes stelmy-count-pop{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.js-image-fade .product-image-wrap img,.js-image-fade .detail-image-stage img{opacity:1;transition:none}.cart-nav.cart-bump,.cart-nav.cart-bump #cartCount{animation:none}}
.no-motion .cart-nav.cart-bump,.no-motion .cart-nav.cart-bump #cartCount{animation:none}
/* Card text takes only the space it needs; price and button stay aligned at the card bottom. */
.product-card .product-info h3{min-height:0;margin:6px 0 4px}
.product-card .product-info .variant{min-height:0;margin:0 0 12px}
.product-card .price-row{min-height:0;margin-bottom:12px}
@media (max-width:680px){.product-card .product-info h3{margin:5px 0 3px}.product-card .product-info .variant{margin-bottom:10px}.product-card .price-row{margin-bottom:10px}}
