/* BERTA atelier — gallery-led product page, native WooCommerce purchase forms. */
body.single-product{background:#f6f3ee!important;color:#302a23}
body.single-product .site-header{background:rgba(15,14,12,.98)!important}
body.single-product .berta-back-navigation{background:#f6f3ee;color:#6a583e}
body.single-product .berta-back-navigation a{border-color:#c4b59d}
.berta-product-detail{--store-muted:#786b5b;--store-line:#d8cebf;--store-champagne:#8c7047;background:#f6f3ee!important;color:#302a23!important;padding-bottom:72px}
.berta-product-detail__top{width:calc(100% - 80px)!important;padding:10px 0 24px!important;font-size:11px!important;letter-spacing:0!important;text-transform:none!important}
.berta-product-detail__top .woocommerce-breadcrumb,.berta-product-detail__top .woocommerce-breadcrumb a{color:#7a6b58!important}
.berta-product-detail>.product{width:calc(100% - 80px)!important;max-width:1600px;display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr)!important;column-gap:clamp(40px,6vw,100px)!important;row-gap:65px!important;direction:ltr;align-items:start}
.berta-product-detail>.product>.woocommerce-product-gallery{grid-column:1;grid-row:1;position:sticky;top:90px;min-width:0}
.berta-product-detail .woocommerce-product-gallery__image{background:#eeece8!important}
.berta-product-detail .woocommerce-product-gallery__image>a>img{height:min(72vh,780px)!important;width:100%!important;object-fit:contain;display:block}
.berta-product-detail .woocommerce-product-gallery__trigger{width:38px!important;height:38px!important;top:18px!important;right:18px!important;background:#fffdf8!important;box-shadow:0 2px 16px #302a2310}
.berta-product-detail .flex-viewport{border:1px solid #ded8cf}
.berta-product-detail .flex-control-thumbs{display:flex!important;justify-content:center;gap:10px;padding:14px 0!important;margin:0!important;list-style:none;overflow-x:auto}
.berta-product-detail .flex-control-thumbs li{float:none!important;width:55px!important;flex:0 0 55px;margin:0!important;border:1px solid transparent}
.berta-product-detail .flex-control-thumbs img{width:55px!important;height:65px!important;object-fit:cover;opacity:.55;border-bottom:2px solid transparent}
.berta-product-detail .flex-control-thumbs img.flex-active{opacity:1;border-color:#8c7047}
.berta-product-detail .flex-direction-nav{list-style:none;margin:0;padding:0}
.berta-product-detail .flex-direction-nav a{position:absolute;top:45%;z-index:5;width:36px;height:36px;display:grid;place-items:center;border:1px solid #d8cebf;background:#fffdf8df;border-radius:50%;font-size:0;color:#302a23;opacity:1;transform:none}
.berta-product-detail .flex-prev{left:12px}.berta-product-detail .flex-next{right:12px}
.berta-product-detail .flex-prev:after{content:'‹';font:26px/1 Georgia}.berta-product-detail .flex-next:after{content:'›';font:26px/1 Georgia}
.berta-product-detail .flex-disabled{opacity:.3!important;pointer-events:none}
.berta-product-detail .summary{grid-column:2;grid-row:1;min-width:0;max-width:470px;width:100%!important;margin:0 auto!important;padding:35px 0 0!important;text-align:start;direction:ltr}
html[dir=rtl] .berta-product-detail .summary{direction:rtl}
.berta-product-detail .summary h1.product_title{font:400 clamp(25px,2.25vw,34px)/1.5 var(--berta-font-body,sans-serif)!important;color:#302a23!important;letter-spacing:0!important;margin:0 0 16px!important;text-transform:none}
.berta-product-detail .summary .price{font:400 19px/1.6 var(--berta-font-body,sans-serif)!important;color:#5a4a34!important;margin:0 0 30px!important}
.berta-product-detail .summary .woocommerce-product-details__short-description{font-size:14px;line-height:1.9;color:#756858;margin:0 0 24px}
.berta-product-detail .summary .stock{font-size:12px;color:#6e654f}
.berta-product-detail .summary form.cart{margin:24px 0 14px!important;display:flex;gap:12px;align-items:stretch}
.berta-product-detail .summary form.cart .quantity{flex:0 0 62px}.berta-product-detail input.qty{width:62px!important;padding:0!important;color:#302a23!important;background:transparent!important;border-color:#c4b59d!important;min-height:49px!important}
.berta-product-detail .single_add_to_cart_button{flex:1;min-height:49px!important;font:400 13px/1.6 var(--berta-font-body,sans-serif)!important;padding:12px 18px!important;letter-spacing:0!important;text-transform:none!important;background:#302a23!important;color:#f7f2e8!important;border-color:#302a23!important;border-radius:3px!important}
.berta-product-detail .single_add_to_cart_button:hover{background:#51422e!important}
.berta-product-detail select{color:#302a23!important;background:#fffdf8!important;border-color:#c4b59d!important}
.berta-product-detail .variations_form,.berta-product-detail .single_variation_wrap{width:100%}.berta-product-detail .woocommerce-variation-add-to-cart{display:flex;gap:12px;align-items:stretch}
.berta-product-detail .variations label{color:#302a23;font-size:13px}.berta-product-detail .reset_variations{font-size:12px;color:#78613f}
.berta-fitting-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.berta-fitting-actions :is(a,button){display:flex;justify-content:center;align-items:center;gap:9px;min-height:49px;border:1px solid #bfb09a;border-radius:3px;padding:10px 8px;background:transparent;color:#4d3d28;font:400 12px/1.6 var(--berta-font-body,sans-serif);text-decoration:none;cursor:pointer;transition:background .2s,border-color .2s}
.berta-fitting-actions :is(a,button):hover{background:#eae2d5;border-color:#8c7047}.berta-fitting-actions svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.25;flex-shrink:0}
.berta-atelier-assistance{font-size:11px!important;line-height:1.8;color:#877760;text-align:center;margin:16px 0 30px}
.berta-atelier-details{border-top:1px solid #d8cebf}
.berta-atelier-details details{border-bottom:1px solid #d8cebf;padding:0}
.berta-atelier-details summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;cursor:pointer;font-size:13px;list-style:none;color:#302a23}
.berta-atelier-details summary::-webkit-details-marker{display:none}.berta-atelier-details summary:after{content:'+';font-size:20px;font-weight:300}.berta-atelier-details details[open]>summary:after{content:'−'}
.berta-atelier-details details>div{font-size:13px;line-height:1.95;padding:0 0 22px;color:#756858}
.berta-atelier-details p{font:inherit!important;margin:0 0 14px!important;color:inherit!important}.berta-atelier-details a{color:#79603a;text-underline-offset:4px}
.berta-atelier-details h2{font-size:17px!important;color:#302a23!important}.berta-atelier-details textarea{width:100%;background:#fffdf8;color:#302a23;border:1px solid #c4b59d}.berta-atelier-details input{color:#302a23!important;background:#fffdf8!important}
.berta-product-detail .related,.berta-product-detail .upsells{grid-column:1/-1;direction:inherit;border-top:1px solid #d8cebf;padding-top:40px}
.berta-product-detail :is(.related,.upsells)>h2{font:400 24px/1.5 var(--berta-font-body,sans-serif)!important;color:#302a23;margin-bottom:25px}
.berta-product-detail :is(.related,.upsells) li.product a{color:#302a23!important}.berta-product-detail :is(.related,.upsells) h2{font:400 13px/1.8 var(--berta-font-body,sans-serif)!important;letter-spacing:0!important;margin:12px 0 5px!important}.berta-product-detail :is(.related,.upsells) .price{color:#79603a!important;font-size:13px!important}
.berta-product-detail :is(.related,.upsells) li.product img{aspect-ratio:4/5;object-fit:contain;background:#eeece8}
.berta-product-detail .woocommerce-message,.berta-product-detail .woocommerce-error,.berta-product-detail .woocommerce-info{color:#302a23;background:#e9e1d3}
/* Native dialog supplies focus containment and Escape handling. */
.berta-fitting-dialog{width:min(510px,calc(100% - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;padding:32px;border:1px solid #c9b89c;border-radius:12px;background:#f6f1e8;color:#302a23;box-shadow:0 20px 100px #0005;font:400 13px/1.8 var(--berta-font-body,sans-serif);overflow-y:auto}
.berta-fitting-dialog::backdrop{background:#100e0bc4;backdrop-filter:blur(5px)}
.berta-fitting-close{position:absolute;inset-inline-end:16px;top:12px;border:0;background:transparent;color:#78613f;font:28px/1.3 sans-serif;padding:4px 10px;cursor:pointer}
.berta-fitting-heading>p{font:13px/1.6 Georgia,serif;color:#9a815a;letter-spacing:.05em;margin:0 0 8px}.berta-fitting-heading h2{font:500 24px/1.6 var(--berta-font-body,sans-serif);color:#302a23;margin:0 0 22px}
.berta-fitting-piece{display:flex;align-items:center;gap:15px;padding:12px;background:#ede5d8;margin-bottom:20px;font-size:12px}.berta-fitting-piece img{width:48px;height:60px;object-fit:contain}
.berta-fitting-dialog form{display:grid;gap:14px}.berta-fitting-dialog label{display:grid;gap:6px;font-size:12px}.berta-fitting-dialog :is(input:not([type=hidden]),textarea){width:100%;box-sizing:border-box;min-height:42px;border:1px solid #cbbda8;border-radius:3px;background:#fffdf8;color:#302a23;padding:8px 11px;font:inherit}.berta-fitting-dialog textarea{resize:vertical;min-height:68px}
.berta-fitting-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.berta-fitting-note{font-size:11px;line-height:1.9;color:#786b58;margin:0}.berta-fitting-status{font-size:12px;margin:0;color:#6b5231}.berta-fitting-status[data-error=true]{color:#a2382e}
.berta-fitting-submit{min-height:46px;padding:10px 20px;border:1px solid #302a23;background:#302a23;color:#f7f2e8;border-radius:3px;font:400 13px/1.6 var(--berta-font-body,sans-serif);cursor:pointer}.berta-fitting-submit:disabled{opacity:.6;cursor:wait}
:is(.berta-fitting-dialog,.berta-product-detail) :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid #9a815a;outline-offset:4px}
.berta-online-fitting{min-height:65vh;background:#f6f3ee;color:#302a23;padding:60px 24px 90px;text-align:center}.berta-online-fitting>div{max-width:560px;margin:auto}.berta-online-fitting h1{font:400 34px/1.5 var(--berta-font-body,sans-serif);margin:0 0 25px;color:#302a23}.berta-online-fitting p{font-size:15px;line-height:2;color:#786b58}.berta-online-fitting img{height:240px;width:200px;object-fit:contain;background:#eeece8;margin:25px auto}.berta-online-fitting a{display:inline-block;color:#79603a;padding:12px 20px;border:1px solid #bfb09a;text-decoration:none;margin-top:15px}
@media(max-width:850px){.berta-product-detail>.product{width:calc(100% - 40px)!important;grid-template-columns:1fr!important;gap:30px!important}.berta-product-detail>.product>.woocommerce-product-gallery{position:relative;top:auto;grid-column:1;grid-row:auto}.berta-product-detail .summary{grid-column:1;grid-row:auto;max-width:600px;padding:8px 0 0!important}.berta-product-detail .woocommerce-product-gallery__image>a>img{height:60vh!important;max-height:620px}.berta-product-detail__top{width:calc(100% - 40px)!important}.berta-product-detail .summary h1.product_title{font-size:26px!important}.berta-product-detail :is(.related,.upsells) ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.berta-fitting-dialog{padding:26px 20px}.berta-fitting-heading h2{font-size:21px}.berta-fitting-actions :is(a,button){font-size:11px}.berta-fitting-fields{gap:10px}.berta-product-detail .woocommerce-product-gallery__image>a>img{height:53vh!important}.berta-product-detail .summary h1.product_title{font-size:24px!important}}
@media(prefers-reduced-motion:reduce){.berta-fitting-actions :is(a,button){transition:none}}
/* WooCommerce sets position:relative inline; keep the gallery aligned at its row start. */
.berta-product-detail>.product>.woocommerce-product-gallery{position:sticky!important;top:90px!important}
html[dir=rtl] .berta-product-detail .summary .price{text-align:right}
@media(max-width:850px){.berta-product-detail>.product>.woocommerce-product-gallery{position:relative!important;top:auto!important}}
/* Match BERTA's dark mineral palette; keep the photographic plate neutral. */
body.single-product{background:#100f0d!important;color:#efe3ca}
body.single-product .berta-back-navigation{background:#100f0d;color:#cdbb99}
body.single-product .berta-back-navigation a{border-color:#564a37}
.berta-product-detail{--store-muted:#aa9d87;--store-line:#3d352a;--store-champagne:#c7aa83;background:linear-gradient(#100f0df5,#100f0df2),url('/wp-content/themes/luxe-landing-images/berta-mineral-veins.webp') center/cover!important;color:#efe3ca!important}
.berta-product-detail__top .woocommerce-breadcrumb,.berta-product-detail__top .woocommerce-breadcrumb a{color:#a89b85!important}
.berta-product-detail .summary h1.product_title{color:#efe3ca!important}
.berta-product-detail .summary .price{color:#d2b78c!important}
.berta-product-detail .summary .woocommerce-product-details__short-description,.berta-product-detail .summary .stock{color:#bfb29a}
.berta-product-detail input.qty,.berta-product-detail select{color:#efe3ca!important;background:#191713!important;border-color:#66563f!important}
.berta-product-detail .single_add_to_cart_button{background:#e2cfab!important;color:#17140e!important;border-color:#e2cfab!important}
.berta-product-detail .single_add_to_cart_button:hover{background:#efdfc2!important}
.berta-product-detail .variations label{color:#efe3ca}.berta-product-detail .reset_variations{color:#cfb789}
.berta-fitting-actions :is(a,button){border-color:#66563f;color:#e0ccaa;background:#c7aa8306}
.berta-fitting-actions :is(a,button):hover{background:#c7aa8315;border-color:#b79b6b}
.berta-atelier-assistance{color:#a9997d}.berta-atelier-details,.berta-atelier-details details{border-color:#3d352a}
.berta-atelier-details summary{color:#e8d9bd}.berta-atelier-details details>div{color:#b8aa93}.berta-atelier-details a{color:#d2b78c}.berta-atelier-details h2{color:#e8d9bd!important}
.berta-atelier-details :is(input,textarea){background:#191713!important;color:#efe3ca!important;border-color:#66563f}
.berta-product-detail .related,.berta-product-detail .upsells{border-color:#3d352a}.berta-product-detail :is(.related,.upsells)>h2,.berta-product-detail :is(.related,.upsells) li.product a{color:#efe3ca!important}.berta-product-detail :is(.related,.upsells) .price{color:#cfb789!important}
.berta-product-detail .woocommerce-message,.berta-product-detail .woocommerce-error,.berta-product-detail .woocommerce-info{color:#efe3ca;background:#211c15}
.berta-product-detail .woocommerce-product-gallery__image{overflow:hidden}
.berta-product-detail .berta-preview-view-1>a>img{transform:scale(2.2);transform-origin:50% 15%}
.berta-product-detail .berta-preview-view-2>a>img{transform:scale(1.8);transform-origin:50% 38%}
.berta-product-detail .berta-preview-view-3>a>img{transform:scale(2.8);transform-origin:55% 54%}
.berta-product-detail .berta-preview-view-4>a>img{transform:scale(2);transform-origin:50% 86%}
.berta-gallery-caption{display:flex;justify-content:space-between;gap:15px;align-items:center;color:#ac9d84;font:400 11px/1.7 var(--berta-font-body,sans-serif);padding:9px 1px 0}
.berta-gallery-caption [data-gallery-count]{direction:ltr;font-size:12px;color:#d2b78c}
.berta-product-detail .flex-control-thumbs li{position:relative;overflow:hidden;background:#eeece8}.berta-product-detail .flex-control-thumbs img{opacity:.75}.berta-product-detail .flex-control-thumbs img.flex-active{border-color:#d2b78c;opacity:1}
.berta-product-detail .flex-control-thumbs li:nth-child(2) img{object-fit:cover;object-position:50% 15%;transform:scale(1.5)}
.berta-product-detail .flex-control-thumbs li:nth-child(3) img{object-fit:cover;object-position:50% 38%;transform:scale(1.3)}
.berta-product-detail .flex-control-thumbs li:nth-child(4) img{object-fit:cover;object-position:50% 54%;transform:scale(1.8)}
.berta-product-detail .flex-control-thumbs li:nth-child(5) img{object-fit:cover;object-position:50% 86%;transform:scale(1.5)}
.berta-fitting-dialog{background:#1c1914;color:#efe3ca;border-color:#66563f;box-shadow:0 25px 120px #0009}
.berta-fitting-heading h2{color:#efe3ca}.berta-fitting-heading>p,.berta-fitting-close{color:#c7aa83}.berta-fitting-piece{background:#2b251b}.berta-fitting-dialog :is(input:not([type=hidden]),textarea){background:#14120f;color:#efe3ca;border-color:#66563f;color-scheme:dark}
.berta-fitting-note{color:#ad9d83}.berta-fitting-status{color:#d2b78c}.berta-fitting-status[data-error=true]{color:#f0ad9f}.berta-fitting-submit{background:#e2cfab;color:#17140e;border-color:#e2cfab}
.berta-online-fitting{background:#100f0d;color:#efe3ca}.berta-online-fitting h1{color:#efe3ca}.berta-online-fitting p{color:#b8aa93}.berta-online-fitting a{color:#d2b78c;border-color:#66563f}
