/* WordPress integration only; accepted reference CSS is kept unchanged. */
[hidden]{display:none!important}#orimat-cart .quote-item{padding:24px 0;border-bottom:1px solid var(--line)}#orimat-cart input{max-width:160px;padding:10px;border:1px solid var(--line)}#orimat-cart button{min-height:44px}button:disabled{opacity:.5;cursor:not-allowed}.admin-bar #header{top:32px}@media(max-width:782px){.admin-bar #header{top:46px}}.shop-card-photo img{width:100%;object-fit:contain}body{margin:0}

/* v130-shaped quantity field, decimal input with a small vertical control rail. */
.orimat-quantity{position:relative;width:100%}.orimat-quantity input{width:100%;padding-right:32px!important}.orimat-quantity-controls{position:absolute;right:1px;top:1px;bottom:1px;width:26px;display:grid;grid-template-rows:1fr 1fr;border-left:1px solid var(--line)}.orimat-quantity-controls button{border:0;background:transparent;color:inherit;display:grid;place-items:center;padding:0;min-width:0;min-height:0}.orimat-quantity-controls button+button{border-top:1px solid var(--line)}.orimat-quantity-controls .icon{width:12px;height:12px}.admin-bar #header.fixed{top:var(--orimat-admin-offset,32px)}
@media(max-width:782px){.admin-bar #header.fixed{top:var(--orimat-admin-offset,46px)}}
@media(max-width:760px){#app .shop-layout{display:block;grid-template-columns:none}#app .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#app .shop-card-copy{padding:12px 4px 4px}#app .shop-card-link,#app .shop-card-copy{min-width:0}#app .shop-card-copy h3{word-break:normal;overflow-wrap:break-word;hyphens:none}}
/* Empty galleries retain the theme's content width. */
.realization-page.orimat-no-photos{display:block}.realization-page.orimat-no-photos .realization-intro,.realization-page.orimat-no-photos .realization-facts{max-width:900px;margin-inline:auto}.orimat-product-description ul,.orimat-product-description ol{padding-left:1.5em}
.detail-downloads>.downloads{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.detail-downloads .download{min-width:0;overflow-wrap:anywhere}.detail-downloads>.footer-downloads-actions{grid-column:1/-1}

/* ODB-022: same v130 color; permalinks replace the demo's hash URL. */
.menu-inner nav a[data-orimat-shop]{color:#b8c1e2;font-weight:600}
.orimat-narrative p{margin-top:0}.orimat-narrative p+p{margin-top:20px}.orimat-narrative ul,.orimat-narrative ol{padding-left:1.5em}
.realization-list-layout .realization-results{min-width:0;grid-column:2}
@media(max-width:760px){.realization-list-layout .realization-results{grid-column:auto}}
/* Fewer steps occupy real cells, without the old five-slot reservation. */
.values-photo-row[data-step-count="0"],.thumb-strip:empty{display:none}
.values-photo-row[data-step-count="1"]{grid-template-columns:minmax(0,1fr)}
.values-photo-row[data-step-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:761px){.values-photo-row[data-step-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.values-photo-row[data-step-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Conditional layout only when content is removed/reordered; v130's full layout stays intact. */
#app .split-layout.orimat-no-visual{display:block}
#app .realization-page.orimat-custom-order{grid-template-areas:var(--orimat-desktop-areas)}
#app .realization-page.orimat-no-photos{grid-template-columns:minmax(0,1fr)}
@media(max-width:760px){#app .realization-page.orimat-custom-order{grid-template-areas:var(--orimat-mobile-areas)}}
#app .split-layout.orimat-no-copy,#app .about-block.orimat-no-visual{display:block}
#app .about-photo.orimat-no-main-photo{height:auto;min-height:0;margin-bottom:0}
#app .about-photo.orimat-no-main-photo .thumb-strip{position:static;width:100%;height:120px}
#app .about-photo.orimat-no-thumbs{margin-bottom:0}
#app .partner-card.orimat-no-partner-photo{grid-template-columns:minmax(0,1fr)}
#app .detail-copy .orimat-extra-visual .sticky-image{position:relative;top:auto;height:auto;min-height:0}
/* Native WP/Woo selectors must not replace the accepted Hero typeface. */
#app .hero h1{font-family:var(--serif);font-weight:400}
/* Full catalog retains v130's desktop sidebar and mobile filter panel. */
#app [data-orimat-filters].shop-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:45px}
[data-catalog-fields]{display:contents}
[data-orimat-filters] .shop-results,[data-orimat-filters] .realization-results{min-width:0}
[data-orimat-filters] select{max-width:100%}
@media(max-width:1000px){#app [data-orimat-filters].shop-layout{grid-template-columns:190px minmax(0,1fr);gap:25px}}
@media(max-width:760px){#app [data-orimat-filters].shop-layout{display:block}[data-orimat-filters] .shop-filters.is-open,[data-orimat-filters] .project-filters.is-open{grid-template-columns:1fr}}
[data-orimat-filters] .shop-results-head>a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}

/* 0.6.1: v130 control rail and cart CTA remain readable on touch and desktop. */
#orimat-add .orimat-quantity-controls{z-index:1;overflow:hidden}
#orimat-add .orimat-quantity-controls button{cursor:pointer;line-height:1;appearance:none}
#orimat-add .orimat-quantity-controls button:disabled{cursor:default}
#orimat-add .link-arrow{display:inline-flex;align-items:center;justify-self:start;gap:14px;font-size:12px;line-height:1.5}
#orimat-add .link-arrow .icon{width:20px;height:20px;flex:none}
#shop-quantity[aria-invalid="true"],#orimat-cart input[aria-invalid="true"]{border-color:#a52b2b}
[data-orimat-filters].realization-list-layout [data-catalog-shown]{display:none!important}

/* 0.6.2: the cart uses the actual v130 image/main/quantity structure. */
#orimat-cart .quote-item-main{min-width:0}
#orimat-cart .quote-product-name{max-width:100%;overflow-wrap:break-word;word-break:normal}
#orimat-cart .quote-item-image{display:block;overflow:hidden}
#orimat-cart .quote-item-image img{width:100%;height:100%;display:block;object-fit:contain}
#orimat-cart .quote-quantity{width:100%;max-width:180px}
#orimat-cart .quote-quantity input{width:100%;padding-right:30px}
#orimat-cart .quote-item-main p{font-size:14px;line-height:1.6}
#orimat-cart .quote-item-main .shop-item-price{margin-top:12px;font-weight:600}
#orimat-cart .orimat-quantity-controls button{cursor:pointer}
.quote-form [data-cart-total]{font-size:24px;line-height:1.4;color:var(--navy)}
.quote-form .shop-summary{margin-top:0}
[data-orimat-filters].shop-layout .shop-more{text-align:center;padding-top:28px}
[data-orimat-filters].shop-layout [data-catalog-shown]{display:block;font-size:13px;margin-bottom:16px}
@media(max-width:760px){#orimat-cart .quote-product-name{font-size:20px}#orimat-cart .quote-quantity{max-width:180px}}
#orimat-cart .orimat-quantity-controls{grid-template-rows:repeat(2,minmax(0,1fr));overflow:hidden;z-index:1}
#orimat-cart .orimat-quantity-controls button{min-height:0!important;height:100%;line-height:1;min-width:0}
#app .quote-form [data-cart-total]{font-size:24px!important;line-height:1.4}

.quote-layout.is-empty{grid-template-columns:minmax(0,1fr)}
.quote-layout .quote-form[hidden],.quote-list-heading[hidden]{display:none}

/* 0.6.3: keep the control rail inside the INPUT, not just its wider wrapper. */
#orimat-cart .quote-quantity .orimat-quantity input{width:100%;max-width:100%;display:block;box-sizing:border-box}
@media(max-width:760px){
 #menu .menu-inner nav a{font-size:clamp(32px,8.2vw,38px)}
}

/* 0.6.4: keep the existing mobile badge geometry without suppressing its value. */
@media(max-width:760px){
 #header .quote-header-link #quote-count{display:flex;align-items:center;justify-content:center}
}
/* Continue the existing menu frame through the opaque desktop navbar only when open. */
@media(min-width:761px){
 body.lock #header::before{content:'';position:absolute;inset-block:0;left:50%;transform:translateX(-50%);width:var(--page-frame);border-inline:1px solid #ffffff26;box-sizing:border-box;pointer-events:none;z-index:0}
}

/* 0.6.5: the expanded value continues at normal line spacing, without a blank paragraph gap. */
.value-card p + p.extra{margin-top:0}

/* 0.6.6: remove the mobile shop title box, including its own padding and margins. */
@media(max-width:760px){.shop-all-title{display:none}}

/* ODB-049: two presentation profiles only; technical images and other brands keep v130. */
#app [data-orimat-brand-visuals] .split-visual .sticky-image.product-main{height:auto;min-height:0;overflow:visible;display:flex;justify-content:center;align-items:flex-start;padding:0;background:#fff}
#app [data-orimat-brand-visuals] .split-visual .sticky-image.product-main>img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;object-position:center;padding:0}
@media(max-width:760px){#app [data-orimat-brand-visuals] .split-visual .sticky-image.product-main{position:relative;top:auto;padding:0}}
/* ODB-050: white column throughout the content; centered viewport-height image. */
#app [data-orimat-brand-visuals] .split-visual{background:#fff}
@media(min-width:761px){
 #app [data-orimat-brand-visuals] .split-visual .sticky-image.product-main{position:sticky;top:78px;height:calc(100vh - 78px);overflow:hidden;align-items:center}
 #app [data-orimat-brand-visuals] .split-visual .sticky-image.product-main>img{height:100%;object-fit:cover;object-position:50% 50%}
}

/* ODB-051: every brand uses ORIWOOD's two-column square gallery rhythm. */
.single-orimat_brand #app .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.single-orimat_brand #app .gallery-grid .gallery-btn{grid-column:auto;width:100%;height:auto;min-width:0;min-height:0;aspect-ratio:1;align-self:start;padding:0;border:0;overflow:hidden}
.single-orimat_brand #app .gallery-grid .gallery-btn>img{position:absolute;inset:0;width:100%;height:100%;object-position:center}
.single-orimat_brand #app .gallery-grid:not(.material-gallery) .gallery-btn{background:#fff}
.single-orimat_brand #app .gallery-grid:not(.material-gallery) .gallery-btn>img{object-fit:contain;padding:12px}
.single-orimat_brand #app .gallery-grid:not(.material-gallery) .gallery-btn:hover>img{transform:none}
@media(max-width:760px){.single-orimat_brand #app .gallery-grid{gap:8px}.single-orimat_brand #app .gallery-grid:not(.material-gallery) .gallery-btn>img{padding:8px}}

/* Editable brand detail body; never changes the visual/gallery columns. */
.single-orimat_brand #app .brand-detail-content img,.single-orimat_brand #app .detail-block .orimat-brand-details img{width:100%;height:auto;object-fit:contain}
.single-orimat_brand #app .brand-detail-content figure,.single-orimat_brand #app .orimat-brand-details figure{margin:24px 0}
.single-orimat_brand #app .brand-detail-content h3,.single-orimat_brand #app .orimat-brand-details h3{font-size:clamp(24px,2.4vw,32px);margin:28px 0 18px}
.single-orimat_brand #app .brand-detail-content ul,.single-orimat_brand #app .orimat-brand-details ul{padding-left:24px}

/* Brand and product presentations: the same subtle striped mark as the home section.
   This replaces both grid layers without affecting the column or its content. */
:is(.single-orimat_brand,.single-product) #app .detail-copy{position:relative;background-image:none;isolation:isolate;overflow:hidden}
:is(.single-orimat_brand,.single-product) #app .detail-copy:after{content:'';position:absolute;top:-110px;right:-35px;width:80%;height:auto;aspect-ratio:8/5;background:url('brand-o.svg?ver=0.6.13') center/contain no-repeat;opacity:.045;clip-path:none;pointer-events:none;z-index:-1}
@media(max-width:760px){:is(.single-orimat_brand,.single-product) #app .detail-copy:after{top:-35px}}
