/* FashionMafia / product and catalog. Native commerce handlers remain unchanged. */
:root{--fm-product-accent:#ad176d;--fm-product-soft:#faf4f7;--fm-product-border:#e9dde4}
.fm-logo{background:transparent;padding:0}.fm-logo img{aspect-ratio:2555/586}
.fm-card-picture{display:block;width:100%;height:100%}.fm-card-picture img{display:block;width:100%;height:100%;object-fit:cover}
.fm-card-picture-second{position:absolute;inset:0;opacity:0;transition:opacity .25s ease}
@media(hover:hover){.product-thumbnail:hover .fm-card-picture-second{opacity:1}}
/* One listing toolbar, with a disclosure panel only when requested. */
body #wrapper #js-product-list-top.fm-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;margin:0 0 24px;border-top:1px solid var(--fm-border);border-bottom:1px solid var(--fm-border);background:transparent}
.fm-list-tools{display:flex;gap:12px;align-items:center}.fm-filter-toggle{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:9px 16px;border:1px solid var(--fm-product-border);border-radius:6px;background:var(--fm-surface);color:var(--fm-ink);font-size:13px;font-weight:650;cursor:pointer}
.fm-filter-toggle:hover,.fm-filter-toggle[aria-expanded=true]{background:var(--fm-product-soft);border-color:var(--fm-product-accent);color:var(--fm-product-accent)}
.fm-result-count{min-width:32px;padding:4px 9px;border-radius:30px;background:var(--fm-soft);font-size:12px;font-weight:650;text-align:center;color:var(--fm-muted)}
#js-product-list-top .fm-sort{margin:0;max-width:65%;position:relative;font-size:13px;float:none}
#js-product-list-top .fm-sort>.select-title{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:42px;max-width:100%;margin:0;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:var(--fm-ink);box-shadow:none;font-size:13px;cursor:pointer}
.fm-sort .select-title-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.fm-sort svg{flex-shrink:0}
.fm-sort .dropdown-menu{min-width:230px;padding:6px;border:1px solid var(--fm-product-border);border-radius:8px;box-shadow:0 10px 30px #30102512}
.fm-sort .dropdown-item{padding:10px 12px;font-size:13px;border-radius:4px}.fm-sort .dropdown-item.current{background:var(--fm-product-soft);color:var(--fm-product-accent)!important}
body #wrapper details.fm-filters{margin:0;border:0;background:var(--fm-surface)}
body #wrapper details.fm-filters>.fm-filter-summary{display:none}
body #wrapper details.fm-filters[open]{margin:-12px 0 28px;border-bottom:1px solid var(--fm-product-border)}
body #wrapper .fm-filter-panel{padding:16px 18px 24px;background:var(--fm-product-soft);border-radius:8px}
body #wrapper .fm-filter-panel .facet-title{font-size:13px;font-weight:700}.fm-filter-panel .facet-label{font-size:13px}
body#category #wrapper .block-category{margin-bottom:28px}body#category #wrapper .block-category h1{font-size:clamp(28px,3vw,42px);line-height:1.15;letter-spacing:-.8px}
/* Gallery is a single image, not a stack of enlarged thumbnails. */
#product #wrapper .product-info-row{align-items:start;row-gap:28px;margin-top:24px}
#product #wrapper .col-product-image,#product #wrapper .col-product-info{min-width:0}
.fm-product-gallery{width:100%}.fm-gallery{width:100%;min-width:0}
.fm-gallery-stage{position:relative;overflow:hidden;border-radius:10px;background:#f6f4f5;isolation:isolate}
.fm-gallery-picture{display:block;width:100%}.fm-gallery-image{display:block;width:100%;height:auto;max-height:min(78vh,900px);object-fit:contain;aspect-ratio:3/4;background:#f6f4f5;touch-action:pan-y}
.fm-gallery-stage .product-flags{left:18px;top:18px;z-index:2;margin:0}.fm-gallery-stage .product-flag{font-size:11px;background:#fff;color:#171717;border:0;border-radius:4px;padding:5px 10px}
.fm-gallery-zoom{position:absolute;right:16px;top:16px;z-index:3;width:40px;height:40px;display:grid;place-items:center;border:1px solid #ffffffb3;border-radius:50%;background:#ffffffeb;color:#171717;cursor:pointer;box-shadow:0 2px 10px #00000008}
.fm-gallery-navigation{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:4px;border-radius:30px;background:#fffffff0;color:#171717;box-shadow:0 2px 12px #0000000a}
.fm-gallery-navigation button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}.fm-gallery-navigation button:hover{background:#f4e6ee;color:var(--fm-product-accent)}
.fm-gallery-navigation span{min-width:34px;text-align:center;font-size:11px;font-weight:650;font-variant-numeric:tabular-nums}
.fm-gallery-thumbs{display:flex;gap:10px;margin-top:12px;padding:3px 2px 8px;overflow-x:auto;scrollbar-width:thin}
.fm-gallery-thumb{position:relative;flex:0 0 72px;width:72px;padding:3px;border:1px solid transparent;border-radius:6px;background:#f6f4f5;overflow:hidden;cursor:pointer}
.fm-gallery-thumb picture,.fm-gallery-thumb img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:3px}
.fm-gallery-thumb.is-active{border-color:var(--fm-product-accent);box-shadow:0 0 0 1px var(--fm-product-accent)}
.fm-gallery-lightbox{max-width:96vw;max-height:96dvh;padding:42px 12px 12px;margin:auto;border:0;border-radius:12px;background:#fff;color:#171717;overflow:auto}.fm-gallery-lightbox::backdrop{background:#171017d9;backdrop-filter:blur(4px)}
.fm-gallery-lightbox img{display:block;max-width:90vw;max-height:85dvh;width:auto;height:auto;margin:auto}.fm-gallery-lightbox [data-fm-lightbox-close]{position:absolute;top:5px;right:8px;width:38px;height:38px;display:grid;place-items:center;border:0;background:transparent;color:#171717;border-radius:50%;cursor:pointer}
/* Product information and purchase panel. */
#product #wrapper .product_header_container.fm-product-heading{padding:0;margin:0 0 16px;border:0}
#product #wrapper .fm-product-heading h1{font-size:clamp(27px,2.7vw,40px);line-height:1.15;letter-spacing:-.9px;margin:10px 0 0;text-align:left}
#product #wrapper .fm-product-maker{display:inline-block;font-size:11px;line-height:1.4;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--fm-product-accent)!important}
#product #wrapper .product-description{font-size:14px;line-height:1.7;color:var(--fm-muted)}
#product #wrapper .product-information>.product-description{margin:0 0 22px;padding:0;border:0;max-width:56ch}
#product #wrapper .product-information>.product-description p{margin:0 0 8px}
#product #wrapper .fm-purchase-panel{padding:22px;border:1px solid var(--fm-product-border);border-radius:10px;background:linear-gradient(145deg,#fdfafb,#fff 70%)}
#product #wrapper .fm-purchase-panel .product-prices{display:flex;flex-direction:column;gap:5px;padding:0;margin:0 0 20px;border:0}
#product #wrapper .fm-purchase-panel .product-prices>.has-discount,#product #wrapper .fm-purchase-panel .product-prices>div:first-of-type{order:-2}
#product #wrapper .fm-purchase-panel .current-price,#product #wrapper .fm-purchase-panel .current-price .product-price{font-size:32px;font-weight:750;letter-spacing:-.8px;color:var(--fm-product-accent)!important}
#product #wrapper .fm-purchase-panel .product-discount{margin-left:9px;font-size:14px;color:#817780}.fm-purchase-panel .badge-discount{margin-left:6px;padding:4px 7px;border-radius:4px;background:#f2e1eb;color:#8f1459;font-size:11px;font-weight:700}
#product #wrapper .fm-purchase-panel .tax-shipping-delivery-label{font-size:11px;line-height:1.5;margin:0;color:var(--fm-muted)}
#product #wrapper .fm-purchase-panel .product-availability{order:2;align-self:flex-start;margin:7px 0 0;padding:0;border:0;background:transparent;box-shadow:none}
#product #wrapper .fm-purchase-panel #product-availability{font-size:12px;font-weight:600;background:transparent;border:0;padding:0;color:#3b6550;white-space:normal;line-height:1.6}
#product #wrapper .fm-purchase-panel #product-availability i{display:none}
#product #wrapper .fm-purchase-panel #product-availability::before{content:'';display:inline-block;width:6px;height:6px;margin:0 7px 1px 0;border-radius:50%;background:currentColor}
#product #wrapper .fm-purchase-panel #product-availability.product-unavailable{color:#9b2849}
#product #wrapper .fm-product-variants{margin:0 0 20px;padding-top:18px;border-top:1px solid var(--fm-product-border)}
#product #wrapper .fm-product-variants fieldset{margin:0 0 12px}
#product #wrapper .fm-product-variants legend{margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:.02em}
#product #wrapper .fm-variant-options{gap:8px}
#product #wrapper .fm-variant-choice{min-width:50px;min-height:46px;justify-content:center;padding:10px 14px;border-radius:6px;border:1px solid #d8c9d2;background:#fff;box-shadow:none;transition:background-color .15s,border-color .15s}
#product #wrapper .fm-variant-name{font-size:14px;font-weight:600;line-height:1.2}
#product #wrapper .fm-variant-choice:hover{border-color:var(--fm-product-accent)}
#product #wrapper .fm-variant-choice:has(input:checked){border-color:var(--fm-product-accent);background:var(--fm-product-accent);box-shadow:none}
#product #wrapper .fm-variant-choice:has(input:checked) .fm-variant-name{color:#fff}
#product #wrapper .attribute-not-in-stock .fm-variant-choice{background:#f6f3f5;border-style:dashed;opacity:.65}
#product #wrapper .fm-purchase-panel .product-add-to-cart{padding-top:0!important}.fm-purchase-panel .product-minimal-quantity:empty{display:none}
#product #wrapper .fm-purchase-panel .product-quantity{margin:0;gap:10px}
#product #wrapper .fm-purchase-panel .product-quantity .col-add-qty{flex:0 0 116px;max-width:116px}
#product #wrapper .fm-purchase-panel .product-quantity .qty,#product #wrapper .fm-purchase-panel .product-quantity .bootstrap-touchspin{width:116px}
#product #wrapper .fm-purchase-panel .product-quantity .bootstrap-touchspin{border-radius:6px;border-color:#dccbd5;height:48px}
#product #wrapper .fm-purchase-panel .product-quantity .bootstrap-touchspin button{width:36px;background:#f5edf1;color:#4a263c}
#product #wrapper .fm-purchase-panel .add-to-cart{min-height:48px;background:var(--fm-product-accent)!important;border:1px solid var(--fm-product-accent)!important;border-radius:6px;color:white!important;font-weight:700;font-size:14px}
#product #wrapper .fm-purchase-panel .add-to-cart:hover{background:#891254!important;border-color:#891254!important;box-shadow:0 4px 12px #ad176d20}
#product #wrapper .fm-purchase-panel .product-add-to-cart .btn:not(.add-to-cart){border-radius:6px}
#product #wrapper .presta-studio-price-history{margin:5px 0 0!important;padding:0!important;border:0!important;background:transparent!important;color:#716570!important;box-shadow:none!important}
#product #wrapper .presta-studio-price-history p{font-size:12px!important;line-height:1.55!important;margin:0!important;color:inherit!important}
#product #wrapper .presta-studio-price-history strong{font-weight:600;color:#5d4e58}
#product #wrapper #loyalty{margin:18px 0 24px;padding:12px 0 0;border-top:1px solid var(--fm-product-border);font-size:12px;line-height:1.7;color:var(--fm-muted)}
#product #wrapper #loyalty b,#product #wrapper #loyalty_price{color:var(--fm-product-accent);font-weight:650}#loyalty+br.clear{display:none}
#product #wrapper .product-tabs{margin-top:28px}#product #wrapper .product-tabs .card{border:0;border-top:1px solid var(--fm-product-border);border-radius:0}
#product #wrapper .product-tabs .card-header{background:transparent;padding:16px 0;border:0;font-weight:650}#product #wrapper .product-tabs .card-body{padding:4px 0 20px;font-size:14px;line-height:1.8}
@media(min-width:992px){#product #wrapper .product-info-row>.col-product-image{flex:0 0 53%;max-width:53%}#product #wrapper .product-info-row>.col-product-info{flex:0 0 47%;max-width:47%;padding-left:clamp(28px,4vw,64px)}}
@media(max-width:767px){
 #product #wrapper .product-info-row{margin-top:12px;row-gap:24px}#product #wrapper .fm-product-heading h1{font-size:28px;letter-spacing:-.6px}
 .fm-gallery-image{max-height:72dvh}.fm-gallery-stage{border-radius:7px}.fm-gallery-thumb{flex-basis:58px;width:58px}.fm-gallery-thumbs{gap:8px}
 #product #wrapper .fm-purchase-panel{padding:18px}#product #wrapper .fm-purchase-panel .current-price,#product #wrapper .fm-purchase-panel .current-price .product-price{font-size:29px}
 #product #wrapper .fm-purchase-panel .product-quantity .col-add-btn{flex:1 1 calc(100% - 126px)}
 body #wrapper #js-product-list-top.fm-list-toolbar{padding:10px 0;margin-bottom:20px;gap:8px}.fm-filter-toggle{font-size:12px;padding:9px 12px}.fm-list-tools{gap:7px}.fm-result-count{font-size:11px}
 #js-product-list-top .fm-sort>.select-title{font-size:12px;gap:8px;padding:10px 4px}.fm-sort .dropdown-menu{min-width:210px}.fm-filter-panel{max-height:60dvh;overflow:auto}
}
@media(prefers-reduced-motion:reduce){.fm-card-picture-second,#product #wrapper .fm-variant-choice{transition:none}}
/* Warehouse's stock badge has important block sizing; keep it a quiet status line. */
#product #wrapper .fm-purchase-panel #product-availability{align-self:flex-start;display:inline-flex!important;align-items:center;justify-content:flex-start;width:auto!important;max-width:100%;padding:0!important;margin:7px 0 0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#3b6550!important;font-size:12px!important;text-align:left!important}
#product #wrapper .fm-purchase-panel #product-availability.product-unavailable{color:#9b2849!important}
#product #wrapper .fm-purchase-panel :is(.col-add-wishlist,.col-add-compare){flex:0 0 40px;max-width:40px;padding:0}
#product #wrapper .fm-purchase-panel :is(.col-add-wishlist,.col-add-compare) .btn{width:40px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:1px solid var(--fm-product-border);background:#fff;color:var(--fm-product-accent)}
#product #wrapper .fm-purchase-panel .product-minimal-quantity{margin:0}
@media(max-width:767px){#product #wrapper .fm-purchase-panel :is(.col-add-wishlist,.col-add-compare){margin-top:4px}}
.fm-filter-panel #search_filters>.facet>ul{display:block!important;max-height:220px;overflow-y:auto;padding-right:8px;scrollbar-width:thin}
.fm-filter-panel #search_filters>.facet>ul.faceted-slider{overflow:visible}
.fm-filter-panel .magnitude{font-size:11px;color:var(--fm-muted);margin-left:3px}

/* Sticky navigation: announcement scrolls away, shopping controls remain. */
body #header{position:sticky!important;top:calc(-1 * var(--fm-announcement-height,0px));z-index:1040!important;overflow:visible;isolation:isolate}
body #header .fm-header{box-shadow:0 4px 16px rgb(25 15 22 / 6%)}
html{scroll-padding-top:var(--fm-sticky-nav-height,100px)}
@media(max-width:1000px){
 body #header .fm-menu{max-height:calc(100dvh - var(--fm-sticky-nav-height,90px));overscroll-behavior:contain}
 body #header .fm-search{max-height:calc(100dvh - var(--fm-sticky-nav-height,90px));overflow-y:auto}
}
