/* Shared storefront layout, based on the existing home v2 design. No home or admin overrides. */
body:not(.home) .wp-site-blocks {
 --oom-layout-max:1440px;
 --oom-layout-gutter:clamp(16px,4vw,48px);
 --oom-layout-gap:16px;
 --oom-layout-radius:14px;
 --oom-layout-border:1px solid #ffffff1a;
}
body:not(.home) .wp-site-blocks>main:not(.oomc-page),
body:not(.home) .wp-site-blocks>.wp-block-post-content:not(:has(>.oomc-page)) {
 width:min(calc(100% - 2 * var(--oom-layout-gutter)),var(--oom-layout-max))!important;
 max-width:var(--oom-layout-max)!important;
 margin-inline:auto!important;
 box-sizing:border-box;
 padding:32px 0 56px!important;
 min-width:0;
}
body:not(.home) .wp-site-blocks>main.oomc-page,
body:not(.home) .wp-site-blocks>.wp-block-post-content:has(>.oomc-page),
body:not(.home) .wp-site-blocks .wp-block-post-content>.oomc-page {
 width:100%!important;max-width:none!important;margin-inline:0!important;padding:0!important;
}
body:not(.home) .wp-site-blocks :is(.oomc-shell,.oomc-directory):not(.oom-rec-section) {
 width:min(calc(100% - 2 * var(--oom-layout-gutter)),var(--oom-layout-max))!important;
 max-width:var(--oom-layout-max)!important;
 margin-inline:auto!important;padding:32px 0 56px!important;box-sizing:border-box;min-width:0;
}
/* Nested recommendations stay within the parent. Authentication cards remain narrow. */
body:not(.home) .wp-site-blocks .oomc-shell :is(.oomc-shell,.oomc-directory),
body:not(.home) .wp-site-blocks .oomc-directory .oomc-directory {
 width:100%!important;max-width:none!important;padding:0!important;
}
body:not(.home) .wp-site-blocks>main.oomp-main>.oomc-shell+.oomc-shell{padding-top:0!important}
body:not(.home) .wp-site-blocks .oomc-auth{justify-content:center}
/* Woo archive is a constrained block template; remove its old content/alignwide caps. */
body:not(.home):is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag,.search-results.woocommerce) .wp-site-blocks>main>* {
 max-width:none!important;width:100%!important;box-sizing:border-box;margin-inline:0!important;
}
body:not(.home) .wp-site-blocks :is(.oomc-directory,.oomc-shell,main)>h1,
body:not(.home) .wp-site-blocks .wp-block-query-title {
 font-family:var(--wp--preset--font-family--dmsans,Arial,sans-serif)!important;
 font-size:clamp(26px,3vw,34px)!important;letter-spacing:-.04em!important;line-height:1.2!important;
 font-weight:700!important;margin:0 0 20px!important;
}
body:not(.home) .wp-site-blocks :is(.oomc-directory,.oomc-shell) h2 {letter-spacing:-.035em;line-height:1.25}
body:not(.home) .wp-site-blocks :is(.oomc-directory .oomc-grid,.oomx-auction-list,.woocommerce ul.products:has(.oom-native-loop-item),.wc-block-product-template,.wp-block-woocommerce-product-template) {
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--oom-layout-gap)!important;align-items:stretch!important;margin-inline:0!important;width:100%!important;max-width:none!important;padding:0!important;list-style:none;
}
body:not(.home) .wp-site-blocks :is(.wc-block-product-template,.wp-block-woocommerce-product-template) > li,
body:not(.home) .wp-site-blocks .woocommerce ul.products li.oom-native-loop-item {
 width:auto!important;min-width:0!important;max-width:none!important;float:none!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column;list-style:none;
}
body:not(.home) .wp-site-blocks .woocommerce ul.products:has(.oom-native-loop-item):before,
body:not(.home) .wp-site-blocks .woocommerce ul.products:has(.oom-native-loop-item):after {display:none!important}
body:not(.home) .wp-site-blocks :is(.oom-native-product,.oomc-directory .oomd-card,.oomx-auction-preview) {
 box-sizing:border-box;min-width:0!important;width:100%!important;height:100%;margin:0!important;border-radius:var(--oom-layout-radius)!important;border:var(--oom-layout-border)!important;background:var(--oomc-surface)!important;overflow:hidden!important;
}
body:not(.home) .wp-site-blocks .oom-native-product{display:flex;flex-direction:column;gap:10px;padding:10px!important;flex:1 1 auto}
body:not(.home) .wp-site-blocks .oom-native-product-info{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}
body:not(.home) .wp-site-blocks .oom-native-product-info .oom-native-price{margin-top:auto!important;padding-top:8px}
body:not(.home) .wp-site-blocks .oomx-auction-preview{display:flex;flex-direction:column;gap:10px;padding:10px!important;align-items:stretch}
body:not(.home) .wp-site-blocks .oomx-auction-preview>div:last-child{display:flex;flex-direction:column;gap:7px;flex:1}
body:not(.home) .wp-site-blocks .oomx-auction-preview p,body:not(.home) .wp-site-blocks .oomx-auction-preview h2{margin:0!important;overflow-wrap:anywhere}
body:not(.home) .wp-site-blocks .oomx-auction-preview h2{font-size:clamp(15px,1.4vw,19px)}
body:not(.home) .wp-site-blocks .oomx-auction-preview .oomc-btn{margin-top:auto;width:100%}
body:not(.home) .wp-site-blocks .oomx-auction-preview .oomx-auction-media{aspect-ratio:2/3!important;border-radius:9px!important}
body:not(.home) .wp-site-blocks .oomx-auction-preview .oomx-auction-image{object-fit:cover!important}
body:not(.home) .wp-site-blocks :is(.oomc-directory .oomd-carousel,.oom-native-product-media){aspect-ratio:2/3!important}
body:not(.home) .wp-site-blocks .oomc-search {gap:10px;align-items:center;margin-bottom:12px}
body:not(.home) .wp-site-blocks :is(.oomc-search input:not([type=checkbox]),.oom-presence-sort select,.woocommerce-ordering select,.wc-block-catalog-sorting select){border:1px solid #ffffff20!important;border-radius:9px!important;background:var(--oomc-surface)!important;color:var(--oomc-white)!important;min-height:44px;font:inherit;box-sizing:border-box}
body:not(.home) .wp-site-blocks :is(.oomc-btn,.oom-native-secondary){min-height:44px;border-radius:9px}
body:not(.home) .wp-site-blocks .oomc-panel{border:var(--oom-layout-border);border-radius:var(--oom-layout-radius)}
body:not(.home) .wp-site-blocks .oom-footer .oom-footer-inner{display:grid!important;grid-template-columns:minmax(0,1.3fr) repeat(4,minmax(0,1fr));gap:20px!important;align-items:start!important}
body:not(.home) .wp-site-blocks .oom-footer .oom-footer-inner>*{min-width:0;margin:0!important}
body:not(.home) .wp-site-blocks .oom-footer-inner,body:not(.home) .wp-site-blocks .oom-header-inner{max-width:var(--oom-layout-max)!important}
@media(max-width:1050px){body:not(.home) .wp-site-blocks :is(.oomc-directory .oomc-grid,.oomx-auction-list,.woocommerce ul.products:has(.oom-native-loop-item),.wc-block-product-template,.wp-block-woocommerce-product-template){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){
 body:not(.home) .wp-site-blocks{--oom-layout-gutter:14px;--oom-layout-gap:10px}
 body:not(.home) .wp-site-blocks :is(.oomc-directory .oomc-grid,.oomx-auction-list,.woocommerce ul.products:has(.oom-native-loop-item),.wc-block-product-template,.wp-block-woocommerce-product-template){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body:not(.home) .wp-site-blocks :is(.oomc-shell,.oomc-directory):not(.oom-rec-section),body:not(.home) .wp-site-blocks>main:not(.oomc-page),body:not(.home) .wp-site-blocks>.wp-block-post-content:not(:has(>.oomc-page)){padding:18px 0 32px!important}
 body:not(.home) .wp-site-blocks .oomc-search{flex-wrap:wrap}
 body:not(.home) .wp-site-blocks .oomc-search input[name=oom_q]{flex:1 0 100%}
 body:not(.home) .wp-site-blocks :is(.oom-native-product,.oomx-auction-preview){padding:8px!important;gap:7px}
 body:not(.home) .wp-site-blocks .oomx-auction-preview .oomx-price{font-size:18px}
 body:not(.home) .wp-site-blocks .oomx-auction-preview p{font-size:12px}
 body:not(.home) .wp-site-blocks .oom-footer .oom-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body:not(.home) .wp-site-blocks .oom-footer-brand{grid-column:1/-1}
}

/* Height-first portrait media, v0.4.17. */
body .wp-site-blocks :is(.oomd-carousel,.oom-native-product-media,.oomc-directory .oomd-photo,.oomc-directory .oomc-card-photo){aspect-ratio:2/3!important;min-height:0!important;overflow:hidden}
body .wp-site-blocks .oomd-carousel :is(.oomd-photo,.oomd-slide){width:100%!important;height:100%!important;aspect-ratio:auto!important}
body .wp-site-blocks .oomd-carousel .oomd-img,body .wp-site-blocks .oom-native-gallery .oomp-hero-photo>img{width:auto!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;display:block;margin:auto!important}
body .wp-site-blocks .oom-native-gallery .oomp-hero-photo>img{left:0!important;right:0!important}
body .wp-site-blocks .oom-native-gallery .oomp-hero-photo{height:min(75vh,900px)!important;width:min(100%,50vh,600px)!important;max-width:100%!important;max-height:none!important;margin-inline:auto!important;aspect-ratio:2/3!important}
body dialog.oom-square-lightbox{height:min(84vh,1200px)!important;width:min(90vw,56vh,800px)!important;aspect-ratio:2/3!important}
body dialog.oom-square-lightbox>img{height:100%!important;width:auto!important;max-width:100%!important;object-fit:contain!important;margin:auto!important;left:0!important;right:0!important}
@media(max-width:760px){body .wp-site-blocks .oom-native-gallery .oomp-hero-photo{height:auto!important;width:100%!important;max-height:75vh!important}}

/* Discovery interface v0.4.18 — shared card component, no private attributes. */
body .wp-site-blocks .oomc-directory .oomd-card.oomc-card,body .wp-site-blocks .oom-rec-section .oomd-card.oomc-card{display:flex!important;flex-direction:column!important;padding:7px!important;gap:0!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important}
body .wp-site-blocks .oomc-directory .oomd-card.oomc-card>.oomd-carousel,body .wp-site-blocks .oom-rec-section .oomd-card.oomc-card>.oomd-carousel{aspect-ratio:5/4!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;border-radius:8px!important;overflow:hidden!important}
body .wp-site-blocks .oomc-directory .oomd-card.oomc-card>.oomd-carousel .oomd-img,body .wp-site-blocks .oom-rec-section .oomd-card.oomc-card>.oomd-carousel .oomd-img{width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;object-fit:cover!important;object-position:center!important;margin:0!important}
body .wp-site-blocks .oomc-directory .oomd-card.oomc-card>.oomd-info,body .wp-site-blocks .oom-rec-section .oomd-card.oomc-card>.oomd-info{display:flex!important;flex-direction:column!important;gap:5px!important;align-items:flex-start!important;justify-content:flex-start!important;flex:1 1 auto!important;min-width:0!important;padding:8px 3px 4px!important;box-sizing:border-box!important}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info h3{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:4px!important;font-size:15px!important;line-height:1.3!important;min-height:0!important;margin:0!important;overflow-wrap:anywhere!important;order:0}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info:after{display:none!important;content:none!important}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info .oomd-activity-slot{order:1;min-height:0!important;margin:0!important;padding:0!important;font-size:11px!important}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info .oomd-activity-slot:not(:has(.oom-presence-status:not([hidden]))){display:none!important}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info .oom-presence-joined{display:none!important}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info .oomd-rating{order:2;min-height:0!important;margin:0!important;gap:4px!important;font-size:11px!important;line-height:1.3!important;align-items:center!important;flex-wrap:wrap!important}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info .oomd-kind{order:3;line-height:1.2!important}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info .oom-attr-card{display:none!important}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info .oomd-facts{order:4;display:flex!important;flex-wrap:wrap!important;gap:4px!important;min-width:0!important;max-width:100%!important;margin:1px 0!important}
body .wp-site-blocks .oomd-card .oomd-fact{display:inline-block;font-size:11px;line-height:1.25;color:var(--wp--preset--color--oom-white,#fff);padding:3px 5px;border:1px solid #ffffff25;border-radius:5px;max-width:100%;overflow-wrap:anywhere;box-sizing:border-box}
body .wp-site-blocks .oomd-card .oomd-fact.oomd-lifestyle{background:#ff418912;border-color:#ff418945;color:#ffb5d1}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info .oomd-unavailable{order:5;font-size:11px!important;margin:0!important}
body .wp-site-blocks .oomd-card.oomc-card>.oomd-info p{order:6;font-size:12px!important;line-height:1.4!important;margin:0!important;min-height:0!important;max-height:2.8em!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important}
body .wp-site-blocks .oom-discovery-search{display:grid;gap:8px;margin:0 0 16px;min-width:0}
body .wp-site-blocks .oom-discovery-query{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
body .wp-site-blocks .oom-discovery-query input,body .wp-site-blocks .oom-discovery-sort select{width:100%;box-sizing:border-box;min-width:0;min-height:42px;font-size:16px;border:1px solid #ffffff26;border-radius:9px;padding:8px 10px;background:var(--wp--preset--color--oom-surface,#25222b);color:white}
body .wp-site-blocks .oom-discovery-query .oomc-btn{margin:0;min-height:42px;padding:8px 14px;white-space:nowrap}
body .wp-site-blocks .oom-discovery-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start;position:relative}
body .wp-site-blocks .oom-discovery-filters{min-width:0;grid-column:1;grid-row:1}
body .wp-site-blocks .oom-discovery-filters summary{display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;min-height:42px;padding:9px 12px;border:1px solid #ffffff26;border-radius:9px;background:var(--wp--preset--color--oom-surface,#25222b);font-size:14px;font-weight:600;cursor:pointer;list-style:none}
body .wp-site-blocks .oom-discovery-filters summary::-webkit-details-marker{display:none}
body .wp-site-blocks .oom-discovery-filters summary:after{content:'+';font-size:18px;color:var(--wp--preset--color--oom-accent,#ff4189)}
body .wp-site-blocks .oom-discovery-filters[open] summary:after{content:'−'}
body .wp-site-blocks .oom-discovery-sort{grid-column:2;grid-row:1;min-width:0}
body .wp-site-blocks .oom-discovery-tools:has(.oom-discovery-filters[open]){grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto}
body .wp-site-blocks .oom-discovery-filters[open]{display:contents}
body .wp-site-blocks .oom-discovery-filters[open]>summary{grid-column:1;grid-row:1}
body .wp-site-blocks .oom-discovery-filter-panel{grid-column:1/-1;grid-row:2;min-width:0;padding:12px;border:1px solid #ffffff20;border-radius:10px;background:var(--wp--preset--color--oom-surface,#25222b);box-sizing:border-box}
body .wp-site-blocks .oom-discovery-filter-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:13px}
body .wp-site-blocks .oom-footer .oom-footer-disclosure{width:100%;min-width:0}
body .wp-site-blocks .oom-footer .oom-footer-disclosure>summary{display:none}
body .wp-site-blocks .oom-footer .oom-footer-disclosure>h3{margin-bottom:8px!important}
@media(max-width:781px){
 body .wp-site-blocks .oomc-directory .oomd-card.oomc-card,body .wp-site-blocks .oom-rec-section .oomd-card.oomc-card{padding:6px!important}
 body .wp-site-blocks .oomd-card.oomc-card>.oomd-info h3{font-size:13px!important}
 body .wp-site-blocks .oomd-card .oomd-fact{font-size:10px;padding:3px 4px}
 body .wp-site-blocks .oomd-card.oomc-card>.oomd-info p{font-size:11px!important}
 body .wp-site-blocks .oom-footer .oom-footer-inner{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
 body .wp-site-blocks .oom-footer .oom-footer-inner .oom-footer-brand{margin-bottom:14px!important}
 body .wp-site-blocks .oom-footer .oom-footer-inner .oom-footer-col{border-top:1px solid #ffffff18;padding:0!important;margin:0!important}
 body .wp-site-blocks .oom-footer .oom-footer-disclosure>summary{display:flex!important;align-items:center;justify-content:space-between;min-height:44px;padding:7px 0;box-sizing:border-box;font-size:14px;line-height:1.3;font-weight:650;list-style:none;cursor:pointer}
 body .wp-site-blocks .oom-footer .oom-footer-disclosure>summary::-webkit-details-marker{display:none}
 body .wp-site-blocks .oom-footer .oom-footer-disclosure>summary:after{content:'+';color:var(--wp--preset--color--oom-accent,#ff4189);font-size:19px}
 body .wp-site-blocks .oom-footer .oom-footer-disclosure[open]>summary:after{content:'−'}
 body .wp-site-blocks .oom-footer .oom-footer-disclosure>h3{display:none!important}
 body .wp-site-blocks .oom-footer .oom-footer-disclosure[open]>nav{padding-bottom:10px!important}
}

/* Discovery controls: consistent height, typography and alignment. */
body .wp-site-blocks .oom-discovery-tools .oom-discovery-filters>summary,
body .wp-site-blocks .oom-discovery-tools .oom-discovery-sort>select{
 box-sizing:border-box!important;width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;
 margin:0!important;padding:0 12px!important;font-size:14px!important;font-weight:600!important;line-height:20px!important;
 border:1px solid #ffffff26!important;border-radius:9px!important;background-color:var(--wp--preset--color--oom-surface,#25222b)!important;color:inherit;
}
body .wp-site-blocks .oom-discovery-tools .oom-discovery-sort{display:block;margin:0!important;padding:0!important;align-self:start;}
body .wp-site-blocks .oom-discovery-tools .oom-discovery-sort>select{color-scheme:dark;display:block;}
body .wp-site-blocks .oom-discovery-tools .oom-discovery-filters{margin:0!important;padding:0!important;}
body .wp-site-blocks .oom-discovery-tools .oom-discovery-filters>summary:after{line-height:1;}
