/* FMBD Vision Glass compact storefront — v1.1.0.
 * Header, mobile bottom navigation and footer are intentionally not changed here.
 */
.fmbd-compact-home{padding:108px 0 30px}
.fmbd-home-carousel,.fmbd-category-strip{width:min(1320px,calc(100% - 48px));margin-inline:auto}
.fmbd-home-carousel{position:relative;aspect-ratio:11/4;border:1px solid rgba(255,255,255,.72);border-radius:clamp(22px,2.2vw,34px);box-shadow:0 20px 60px rgba(45,37,31,.13),inset 0 1px 0 rgba(255,255,255,.75);isolation:isolate;overflow:hidden;background:#ded7d1}
.fmbd-carousel-track,.fmbd-carousel-slide{position:absolute;inset:0}
.fmbd-carousel-slide{display:grid;grid-template-columns:minmax(260px,44%) 1fr;align-items:center;opacity:0;visibility:hidden;transform:scale(1.015);transition:opacity .55s ease,transform .75s cubic-bezier(.2,.75,.2,1),visibility .55s}
.fmbd-carousel-slide.is-active{z-index:2;opacity:1;visibility:visible;transform:none}
.fmbd-carousel-backdrop{position:absolute;z-index:-2;inset:-30px;background-image:var(--slide-image);background-size:cover;background-position:center;filter:blur(24px) saturate(.85);transform:scale(1.1)}
.fmbd-carousel-slide:after{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(238,234,230,.84),rgba(238,234,230,.3) 48%,rgba(239,235,231,.14));content:""}
.fmbd-carousel-offer{z-index:2;display:flex;flex-direction:column;align-items:flex-start;width:min(390px,calc(100% - 48px));margin-left:clamp(20px,4vw,58px);padding:clamp(18px,2.5vw,34px);border-radius:clamp(18px,2vw,28px)}
.fmbd-carousel-offer>span:first-child{color:var(--fmbd-accent);font-size:clamp(12px,1.25vw,17px);font-weight:700}
.fmbd-carousel-offer strong{margin:2px 0;font-size:clamp(34px,4vw,64px);font-weight:500;letter-spacing:-.06em;line-height:1}
.fmbd-carousel-offer small{max-width:100%;color:var(--fmbd-muted);font-size:clamp(11px,1vw,14px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmbd-carousel-price{margin-top:3px;color:var(--fmbd-text)!important;font-weight:700!important}
.fmbd-carousel-offer>a{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:42px;margin-top:13px;padding:0 8px 0 16px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(255,255,255,.42);font-size:12px;font-weight:700;text-decoration:none}
.fmbd-carousel-offer>a svg{box-sizing:content-box;padding:7px;border-radius:50%;background:rgba(255,255,255,.68)}
.fmbd-carousel-product{position:absolute;z-index:1;top:3%;right:1.5%;bottom:1%;left:40%;display:grid;place-items:center;text-decoration:none}
.fmbd-carousel-product img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 24px 24px rgba(48,34,28,.22));transform:scale(1.02);transition:transform .8s cubic-bezier(.2,.75,.2,1)}
.fmbd-carousel-slide.is-active .fmbd-carousel-product img{transform:scale(1.06)}
.fmbd-carousel-arrow{position:absolute;z-index:5;top:50%;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(255,255,255,.55);color:var(--fmbd-text);box-shadow:0 8px 22px rgba(0,0,0,.08);backdrop-filter:blur(14px);cursor:pointer;transform:translateY(-50%)}
.fmbd-carousel-arrow.is-prev{left:12px}.fmbd-carousel-arrow.is-next{right:12px}
.fmbd-carousel-dots{position:absolute;z-index:6;bottom:12px;left:50%;display:flex;gap:6px;transform:translateX(-50%)}
.fmbd-carousel-dots button{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:0 1px 4px rgba(0,0,0,.2);cursor:pointer;transition:width .25s,background .25s}
.fmbd-carousel-dots button.is-active{width:20px;border-radius:99px;background:#fff}
.fmbd-category-strip{height:54px;margin-top:14px;overflow:hidden}
.fmbd-category-rail{display:flex;align-items:stretch;gap:9px;height:100%;padding:0 1px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}
.fmbd-category-rail::-webkit-scrollbar{display:none}
.fmbd-category-pill{display:flex;flex:0 0 auto;align-items:center;gap:8px;height:100%;padding:0 16px;border-radius:18px;color:var(--fmbd-text);scroll-snap-align:start;text-decoration:none;transition:background .25s,transform .25s}
.fmbd-category-pill:hover,.fmbd-category-pill.is-active{background:rgba(255,255,255,.79);transform:translateY(-1px)}
.fmbd-category-pill strong{font-size:13px;font-weight:600;white-space:nowrap}
.fmbd-category-pill img,.fmbd-category-dot,.fmbd-category-mark{display:block;width:24px;height:24px;border-radius:8px;object-fit:cover}
.fmbd-category-dot{border:1px solid rgba(0,0,0,.09);background:linear-gradient(135deg,#d96f4e,#eee9e3)}
.fmbd-category-mark{background:linear-gradient(90deg,var(--fmbd-accent) 40%,transparent 40% 60%,var(--fmbd-accent) 60%),linear-gradient(0deg,var(--fmbd-accent) 40%,transparent 40% 60%,var(--fmbd-accent) 60%);background-size:10px 10px}
.fmbd-compact-home .fmbd-products-section.is-compact{padding:20px 0 54px}
.fmbd-compact-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}
.fmbd-compact-heading h1{margin:0;font-size:clamp(26px,3vw,40px);font-weight:600;letter-spacing:-.045em;line-height:1}
.fmbd-compact-heading>a{display:flex;align-items:center;gap:10px;color:var(--fmbd-muted);font-size:13px;text-decoration:none}
.fmbd-compact-heading i{position:relative;display:block;width:22px;height:16px;background:linear-gradient(var(--fmbd-muted),var(--fmbd-muted)) 0 3px/22px 1px no-repeat,linear-gradient(var(--fmbd-muted),var(--fmbd-muted)) 0 12px/22px 1px no-repeat}
.fmbd-compact-heading i:before,.fmbd-compact-heading i:after{position:absolute;width:5px;height:5px;border:1px solid var(--fmbd-muted);border-radius:50%;background:var(--fmbd-bg);content:""}
.fmbd-compact-heading i:before{top:0;left:5px}.fmbd-compact-heading i:after{right:4px;bottom:1px}
.fmbd-product-card-inner{padding:0;border-radius:var(--fmbd-radius);background:transparent;box-shadow:none!important;overflow:hidden}
.fmbd-product-card:hover .fmbd-product-card-inner{box-shadow:none!important}
.fmbd-product-media{position:relative;display:block;aspect-ratio:4/5;border:1px solid rgba(255,255,255,.72);border-radius:var(--fmbd-radius);background:rgba(255,255,255,.42);box-shadow:0 14px 42px rgba(45,37,31,.11);overflow:hidden}
.fmbd-product-image{position:absolute;inset:0;display:block}
.fmbd-product-image:after{position:absolute;right:0;bottom:0;left:0;height:38%;background:linear-gradient(transparent,rgba(111,94,83,.16));content:"";pointer-events:none}
.fmbd-product-image img{width:100%!important;height:100%!important;margin:0!important;object-fit:cover;mix-blend-mode:normal}
.fmbd-product-copy{position:absolute;z-index:3;right:8px;bottom:8px;left:8px;display:block;min-height:92px;padding:14px 15px 12px;border-radius:calc(var(--fmbd-radius) - 8px)}
.fmbd-product-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fmbd-product-copy h2,.fmbd-product-card .woocommerce-loop-product__title{min-width:0;margin:0!important;padding:0!important;font-size:16px!important;font-weight:650!important;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmbd-product-title-row .fmbd-card-rating{display:flex;flex:0 0 auto;align-items:center;gap:3px;color:#9a7147;font-size:10px}
.fmbd-product-title-row .fmbd-card-rating svg{fill:currentColor}
.fmbd-card-bottom{display:flex;align-items:center;gap:8px;margin-top:10px}
.fmbd-card-bottom .price{margin-right:auto;color:var(--fmbd-text)!important;font-size:15px!important;font-weight:750!important}
.fmbd-card-swatches{display:flex;align-items:center;gap:4px}
.fmbd-card-swatches i{display:block;width:15px;height:15px;border:2px solid rgba(255,255,255,.85);border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.fmbd-quick-add{width:34px!important;min-width:34px!important;height:34px!important}
.fmbd-card-wishlist{z-index:4;width:36px;height:36px;border:1px solid rgba(255,255,255,.75);background:rgba(255,255,255,.56);box-shadow:0 7px 20px rgba(0,0,0,.07)}
.fmbd-sale-badge{z-index:4}
@media(max-width:782px){
	.fmbd-compact-home{padding-top:80px}
	.fmbd-home-carousel,.fmbd-category-strip{width:calc(100% - 20px)}
	.fmbd-home-carousel{aspect-ratio:11/4;border-radius:20px}
	.fmbd-carousel-slide{grid-template-columns:45% 55%}
	.fmbd-carousel-offer{width:calc(100% - 14px);margin-left:7px;padding:9px;border-radius:15px}
	.fmbd-carousel-offer>span:first-child{font-size:9px}.fmbd-carousel-offer strong{margin:1px 0;font-size:clamp(24px,8.3vw,34px)}
	.fmbd-carousel-offer small{font-size:8px}.fmbd-carousel-price{display:none}
	.fmbd-carousel-offer>a{min-height:27px;margin-top:5px;padding:0 4px 0 9px;font-size:8px;gap:5px}
	.fmbd-carousel-offer>a svg{width:11px;height:11px;padding:4px}
	.fmbd-carousel-product{top:0;right:-3%;bottom:-2%;left:38%}
	.fmbd-carousel-arrow{display:none}.fmbd-carousel-dots{bottom:5px;gap:4px}.fmbd-carousel-dots button{width:5px;height:5px}.fmbd-carousel-dots button.is-active{width:13px}
	.fmbd-category-strip{height:42px;margin-top:8px}.fmbd-category-rail{gap:6px}
	.fmbd-category-pill{gap:5px;padding:0 10px;border-radius:14px}.fmbd-category-pill strong{font-size:10px}
	.fmbd-category-pill img,.fmbd-category-dot,.fmbd-category-mark{width:19px;height:19px;border-radius:6px}
	.fmbd-compact-home .fmbd-products-section.is-compact{padding:14px 0 30px}
	.fmbd-compact-home .fmbd-products-section .fmbd-container{width:calc(100% - 20px)}
	.fmbd-compact-heading{margin-bottom:10px}.fmbd-compact-heading h1{font-size:25px}.fmbd-compact-heading>a{font-size:11px}
	.fmbd-product-grid,.woocommerce ul.products{gap:9px!important}
	.fmbd-product-media{aspect-ratio:4/5;border-radius:18px}
	.fmbd-product-copy{right:5px;bottom:5px;left:5px;min-height:70px;padding:9px 10px 8px;border-radius:14px}
	.fmbd-product-copy h2,.fmbd-product-card .woocommerce-loop-product__title{font-size:12px!important}
	.fmbd-product-title-row .fmbd-card-rating{font-size:8px}.fmbd-product-title-row .fmbd-card-rating svg{width:9px;height:9px}
	.fmbd-card-bottom{gap:5px;margin-top:7px}.fmbd-card-bottom .price{font-size:12px!important}.fmbd-card-bottom .price del{display:none}.fmbd-card-bottom .price ins{text-decoration:none}
	.fmbd-card-swatches{gap:3px}.fmbd-card-swatches i{width:11px;height:11px;border-width:1px}
	.fmbd-quick-add{display:none!important}
	.fmbd-card-wishlist{top:7px;right:7px;width:30px;height:30px}.fmbd-card-wishlist svg{width:15px;height:15px}
	.fmbd-sale-badge{top:8px;left:8px;padding:5px 7px;font-size:8px}
}
@media(max-width:390px){.fmbd-carousel-offer small{display:none}.fmbd-carousel-offer strong{font-size:23px}.fmbd-category-pill{padding-inline:9px}}

/* ALA Glass Header already inserts its own flow spacer. Avoid double clearance. */
body.ala-gh-enabled .fmbd-compact-home,
body:has(.ala-gh-shell) .fmbd-compact-home{padding-top:8px!important}

/* App-style scroll direction animation: upper chrome exits upward, lower chrome exits downward. */
body.ala-gh-enabled .ala-gh-shell,
body:has(.ala-gh-shell) .ala-gh-shell,
body .fmbd-header-inner,
body .fmbd-bottom-nav{
	transition:transform .34s cubic-bezier(.22,.61,.36,1),opacity .26s ease!important;
}
body.fmbd-bars-hidden.ala-gh-enabled .ala-gh-shell,
body.fmbd-bars-hidden:has(.ala-gh-shell) .ala-gh-shell,
body.fmbd-bars-hidden .fmbd-header-inner{
	transform:translateY(calc(-100% - 28px))!important;
	opacity:0!important;
	pointer-events:none!important;
}
body.fmbd-bars-hidden .fmbd-bottom-nav{
	transform:translateY(calc(100% + 28px))!important;
	opacity:0!important;
	pointer-events:none!important;
}
@media(max-width:782px){
	body.ala-gh-enabled .ala-gh-flow-spacer{height:calc(74px + env(safe-area-inset-top,0px))!important}
	body.ala-gh-enabled .fmbd-compact-home,
	body:has(.ala-gh-shell) .fmbd-compact-home{padding-top:0!important}
	body.ala-gh-enabled.single-product .fmbd-site-content,
	body.ala-gh-enabled.woocommerce-cart .fmbd-site-content,
	body.ala-gh-enabled.woocommerce-checkout .fmbd-site-content,
	body.ala-gh-enabled.woocommerce-account .fmbd-site-content{padding-top:0!important}
}
