
/* Shared styles for inner pages */
.inner-page { background: var(--secondary); }
.inner-page .site-header { background: rgba(247,245,240,.96); box-shadow: 0 5px 20px rgba(0,0,0,.05); padding: 16px 0; }
.inner-page main { padding-top: 78px; }
.page-hero { position: relative; min-height: 430px; display:flex; align-items:flex-end; overflow:hidden; color:#fff; }
.page-hero img { position:absolute; inset:0; height:100%; object-fit:cover; }
.page-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(26,26,26,.85),rgba(26,26,26,.35)); }
html[dir="rtl"] .page-hero::after { background:linear-gradient(270deg,rgba(26,26,26,.85),rgba(26,26,26,.35)); }
.page-hero-content { position:relative; z-index:2; padding-block:110px 58px; max-width:820px; }
.page-hero h1 { font-family:var(--font-display); font-size:clamp(42px,6vw,68px); font-weight:500; margin-bottom:18px; }
html[dir="rtl"] .page-hero h1 { font-family:var(--font-arabic); }
.page-hero p { max-width:680px; font-size:18px; line-height:1.75; color:rgba(255,255,255,.88); }
.breadcrumbs { font-size:12px; letter-spacing:.1em; text-transform:uppercase; margin-bottom:22px; color:rgba(255,255,255,.74); }
.content-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:start; }
.rich-copy h2,.rich-copy h3 { font-family:var(--font-display); font-weight:500; line-height:1.2; }
html[dir="rtl"] .rich-copy h2,html[dir="rtl"] .rich-copy h3 { font-family:var(--font-arabic); }
.rich-copy h2 { font-size:clamp(32px,4vw,48px); margin-bottom:24px; }
.rich-copy h3 { font-size:25px; margin:38px 0 14px; }
.rich-copy p,.rich-copy li { color:rgba(26,26,26,.72); font-size:17px; line-height:1.8; }
.rich-copy ul { list-style:disc; padding-inline-start:22px; margin:0 0 24px; }
.page-media img { min-height:460px; object-fit:cover; }
.info-card { background:var(--cream); padding:34px; border:1px solid rgba(26,26,26,.08); }
.info-card h3 { margin-top:0; }
.page-cta { background:var(--primary); color:var(--secondary); text-align:center; padding:76px 0; }
.page-cta h2 { font-family:var(--font-display); font-weight:500; font-size:clamp(32px,4vw,48px); margin-bottom:18px; }
html[dir="rtl"] .page-cta h2 { font-family:var(--font-arabic); }
.page-cta p { max-width:680px; margin:0 auto 28px; color:rgba(247,245,240,.72); line-height:1.75; }
.cards-2,.cards-3,.cards-4 { display:grid; gap:28px; }
.cards-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cards-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.cards-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.link-card { background:var(--ivory); border:1px solid rgba(26,26,26,.08); overflow:hidden; transition:.3s ease; }
.link-card:hover { transform:translateY(-4px); box-shadow:0 18px 45px rgba(0,0,0,.08); }
.link-card img { height:280px; object-fit:cover; }
.link-card-copy { padding:25px; }
.link-card h2,.link-card h3 { font-size:20px; margin-bottom:10px; }
.link-card p { color:rgba(26,26,26,.66); line-height:1.65; }
.text-link { display:inline-flex; margin-top:8px; color:var(--gold); font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
.project-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.project-gallery article { background:var(--ivory); }
.project-gallery img { height:360px; object-fit:cover; }
.project-gallery div { padding:24px; }
.project-gallery h2 { font-size:20px; margin-bottom:8px; }
.project-gallery p { color:rgba(26,26,26,.65); line-height:1.65; }
.contact-page-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:54px; }
.contact-list { display:grid; gap:18px; }
.contact-list a { display:block; padding:18px 20px; background:var(--ivory); border:1px solid rgba(26,26,26,.08); }
.contact-form-card { background:var(--ivory); border:1px solid rgba(26,26,26,.08); padding:34px; }
.contact-form-card .field { margin-bottom:18px; }
.contact-form-card label { display:block; font-size:12px; font-weight:600; margin-bottom:8px; text-transform:uppercase; letter-spacing:.08em; }
.contact-form-card input,.contact-form-card select,.contact-form-card textarea { width:100%; border:1px solid rgba(26,26,26,.16); background:#fff; padding:14px; outline:none; }
.contact-form-card input:focus,.contact-form-card select:focus,.contact-form-card textarea:focus { border-color:var(--gold); }
.contact-form-card textarea { resize:vertical; }
.lang-only-ar { display:none; }
html[lang="ar"] .lang-only-fr { display:none; }
html[lang="ar"] .lang-only-ar { display:block; }
html[lang="fr"] .lang-only-fr { display:block; }
.legal-page { max-width:900px; }
.legal-page h1 { font-family:var(--font-display); font-size:clamp(38px,5vw,58px); font-weight:500; }
html[dir="rtl"] .legal-page h1 { font-family:var(--font-arabic); }
.legal-page h2 { margin-top:38px; }
.legal-page p,.legal-page li { line-height:1.8; color:rgba(26,26,26,.72); }
.inner-footer { background:var(--primary); color:var(--secondary); padding:48px 0 26px; }
.inner-footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:42px; }
.inner-footer h3 { font-size:13px; text-transform:uppercase; letter-spacing:.12em; color:var(--gold); }
.inner-footer a { color:rgba(247,245,240,.78); line-height:2; }
.inner-footer p { color:rgba(247,245,240,.65); line-height:1.7; }
.inner-footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:34px; padding-top:22px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; font-size:13px; }
.inner-footer-legal { display:flex; gap:20px; flex-wrap:wrap; }
@media(max-width:1000px){.desktop-nav,.desktop-actions{display:none}.menu-toggle{display:block}.mobile-menu{display:flex}.content-grid,.contact-page-grid{grid-template-columns:1fr}.cards-4{grid-template-columns:repeat(2,1fr)}.cards-3,.project-gallery{grid-template-columns:repeat(2,1fr)}.inner-footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.container{width:min(calc(100% - 32px),var(--container))}.section{padding:68px 0}.page-hero{min-height:380px}.page-hero-content{padding-block:95px 45px}.cards-2,.cards-3,.cards-4,.project-gallery,.inner-footer-grid{grid-template-columns:1fr}.project-gallery img,.link-card img{height:290px}.page-media img{min-height:320px}.inner-footer-bottom{display:block}.inner-footer-legal{margin-top:12px}}


/* Expanded service taxonomy */
.service-group + .service-group { margin-top:72px; }
.service-group-head { max-width:760px; margin-bottom:34px; }
.service-group-head h2 { font-family:var(--font-display); font-size:clamp(30px,4vw,46px); font-weight:500; margin-bottom:12px; }
html[dir="rtl"] .service-group-head h2 { font-family:var(--font-arabic); }
.service-group-head p { color:rgba(26,26,26,.66); line-height:1.75; }
.inspiration-note { margin-top:12px; color:rgba(26,26,26,.55); font-size:12px; line-height:1.6; }
.gallery-filter-wrap { margin-bottom:40px; }
.gallery-filter-wrap .portfolio-filters { margin-top:0; }
.service-solutions { background:var(--cream); }
.solution-note { max-width:760px; margin:0 auto 38px; text-align:center; color:rgba(26,26,26,.65); line-height:1.75; }
@media(max-width:640px){.service-group + .service-group{margin-top:54px}}


/* Product landing pages & inline ordering */
.page-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.page-hero-actions .btn { min-width:190px; }
.product-trust-strip { background:var(--primary); color:var(--secondary); border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); }
.product-trust-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.product-trust-item { padding:22px 26px; display:flex; align-items:flex-start; gap:13px; border-inline-end:1px solid rgba(255,255,255,.1); }
.product-trust-item:last-child { border-inline-end:0; }
.product-trust-icon { width:30px; height:30px; flex:0 0 30px; border:1px solid rgba(197,160,89,.7); display:grid; place-items:center; color:var(--gold); font-size:15px; }
.product-trust-item strong { display:block; font-size:13px; margin-bottom:4px; }
.product-trust-item span { display:block; color:rgba(247,245,240,.62); font-size:12px; line-height:1.55; }
.product-order-section { background:var(--cream); scroll-margin-top:90px; }
.product-order-layout { display:grid; grid-template-columns:.78fr 1.22fr; gap:54px; align-items:start; }
.order-summary { position:sticky; top:112px; }
.order-summary h2,.order-card h2 { font-family:var(--font-display); font-weight:500; line-height:1.2; }
html[dir="rtl"] .order-summary h2,html[dir="rtl"] .order-card h2 { font-family:var(--font-arabic); }
.order-summary h2 { font-size:clamp(32px,4vw,48px); margin-bottom:18px; }
.order-summary > p { color:rgba(26,26,26,.68); line-height:1.8; font-size:16px; }
.order-benefits { margin-top:28px; display:grid; gap:14px; }
.order-benefits li { display:flex; gap:12px; align-items:flex-start; color:rgba(26,26,26,.74); line-height:1.6; }
.order-benefits li::before { content:"✓"; color:var(--gold); font-weight:700; }
.order-card { background:var(--ivory); border:1px solid rgba(26,26,26,.09); padding:38px; box-shadow:0 20px 60px rgba(26,26,26,.06); }
.order-card-head { padding-bottom:24px; margin-bottom:26px; border-bottom:1px solid rgba(26,26,26,.09); }
.order-card h2 { font-size:clamp(27px,3vw,38px); margin-bottom:10px; }
.order-card-head p { margin:0; color:rgba(26,26,26,.62); line-height:1.7; }
.product-order-form { display:grid; gap:18px; }
.order-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.product-order-form .field { margin:0; }
.product-order-form label { display:block; font-size:12px; font-weight:600; margin-bottom:8px; text-transform:uppercase; letter-spacing:.06em; }
.product-order-form input,.product-order-form select,.product-order-form textarea { width:100%; border:1px solid rgba(26,26,26,.16); background:#fff; padding:14px; outline:none; color:var(--primary); }
.product-order-form input:focus,.product-order-form select:focus,.product-order-form textarea:focus { border-color:var(--gold); }
.product-order-form textarea { min-height:120px; resize:vertical; }
.order-product-name { background:var(--secondary); border-inline-start:3px solid var(--gold); padding:14px 16px; font-size:14px; }
.order-consent { display:flex; align-items:flex-start; gap:10px; font-size:12px; color:rgba(26,26,26,.62); line-height:1.6; }
.order-consent input { width:auto; margin-top:3px; flex:0 0 auto; }
.order-consent a { text-decoration:underline; text-underline-offset:2px; }
.order-submit { width:100%; min-height:54px; }
.order-assurance { margin:0; text-align:center; font-size:11px; color:rgba(26,26,26,.53); line-height:1.6; }
.order-form-status { min-height:18px; margin:0; font-size:12px; color:#8b6d2d; }
.product-mobile-order { display:none; }
@media(max-width:1000px){.product-order-layout{grid-template-columns:1fr}.order-summary{position:static}.product-trust-grid{grid-template-columns:1fr}.product-trust-item{border-inline-end:0;border-bottom:1px solid rgba(255,255,255,.1)}.product-trust-item:last-child{border-bottom:0}}
@media(max-width:640px){.page-hero-actions{display:grid}.page-hero-actions .btn{width:100%}.order-field-grid{grid-template-columns:1fr}.order-card{padding:26px 20px}.product-order-section{padding-bottom:100px}.product-mobile-order{display:block;position:fixed;z-index:80;left:14px;right:14px;bottom:14px;box-shadow:0 12px 35px rgba(0,0,0,.22)}body.menu-open .product-mobile-order{display:none}}


/* Hierarchical product catalogue */
.catalog-intro{max-width:820px;margin-bottom:38px}.catalog-intro h2{font-family:var(--font-display);font-size:clamp(34px,4.5vw,54px);font-weight:500;margin:7px 0 14px}.catalog-intro>p:last-child{color:rgba(26,26,26,.66);line-height:1.8}.catalog-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.catalog-category-card{position:relative;min-height:430px;border:0;padding:0;background:#111;color:#fff;text-align:start;cursor:pointer;overflow:hidden}.catalog-category-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .55s ease}.catalog-category-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.74))}.catalog-category-copy{position:absolute;inset:auto 28px 28px;display:grid;gap:9px;z-index:2}.catalog-category-copy small{color:var(--gold);font-size:12px;letter-spacing:.16em}.catalog-category-copy strong{font-family:var(--font-display);font-size:29px;line-height:1.15;font-weight:500}.catalog-category-copy>span{font-size:12px;color:rgba(255,255,255,.66)}.catalog-category-copy em{font-style:normal;font-size:13px;margin-top:6px;color:#fff}.catalog-category-card:hover img,.catalog-category-card[aria-expanded="true"] img{transform:scale(1.055)}.catalog-category-card[aria-expanded="true"]{outline:2px solid var(--gold);outline-offset:-2px}.catalog-panel{margin-top:34px;padding-top:38px;border-top:1px solid rgba(26,26,26,.14)}.catalog-panel[hidden]{display:none}.catalog-panel-head{max-width:760px;margin-bottom:28px}.catalog-panel-head h2{font-family:var(--font-display);font-size:clamp(30px,4vw,44px);font-weight:500;margin-bottom:10px}.catalog-panel-head p{color:rgba(26,26,26,.64);line-height:1.75}
html[dir="rtl"] .catalog-intro h2,html[dir="rtl"] .catalog-category-copy strong,html[dir="rtl"] .catalog-panel-head h2{font-family:var(--font-arabic)}
@media(max-width:900px){.catalog-category-grid{grid-template-columns:1fr}.catalog-category-card{min-height:300px}}@media(max-width:640px){.catalog-category-copy{inset:auto 20px 22px}.catalog-category-copy strong{font-size:25px}.catalog-intro{margin-bottom:28px}}


/* Independent category tree */
.category-page-link{display:block;text-decoration:none}.category-page-link:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.taxonomy-section{background:#f6f3ee}.taxonomy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.taxonomy-branch{background:#fff;border:1px solid rgba(26,26,26,.1);padding:26px}.taxonomy-branch-head{display:grid;grid-template-columns:42px 1fr;gap:16px;align-items:start}.taxonomy-branch-head>span{font-family:var(--font-display);font-size:26px;color:var(--gold)}.taxonomy-branch h3{font-family:var(--font-display);font-size:27px;font-weight:500;margin:0 0 8px}.taxonomy-branch h3 a{color:inherit;text-decoration:none}.taxonomy-branch h3 a:hover{text-decoration:underline;text-underline-offset:5px}.taxonomy-branch p{color:rgba(26,26,26,.62);line-height:1.7;margin:0}.taxonomy-branch ul{list-style:none;padding:18px 0 0;margin:18px 0 0;border-top:1px solid rgba(26,26,26,.1);display:grid;gap:10px}.taxonomy-branch li a{display:flex;align-items:center;gap:9px;color:var(--dark);text-decoration:none;font-weight:500}.taxonomy-branch li a:before{content:'→';color:var(--gold)}html[dir="rtl"] .taxonomy-branch li a:before{content:'←'}.category-detail-page .category-products-grid{margin-top:28px}.category-product-card .category-product-index{display:inline-block;color:var(--gold);font-size:12px;letter-spacing:.14em;margin-bottom:8px}.category-back-row{margin-top:34px;display:flex}.category-detail-page .breadcrumbs a{color:inherit}.category-detail-page .breadcrumbs a:hover{text-decoration:underline}.catalog-overview-page .catalog-category-card{cursor:pointer}
@media(max-width:900px){.taxonomy-grid{grid-template-columns:1fr}.category-detail-page .cards-2,.category-detail-page .cards-3{grid-template-columns:1fr}}
@media(max-width:640px){.taxonomy-branch{padding:20px}.taxonomy-branch-head{grid-template-columns:34px 1fr}.taxonomy-branch h3{font-size:23px}}

/* Five top-level catalogue families */
@media(min-width:1101px){.category-grid,.catalog-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:641px) and (max-width:1100px){.category-grid,.catalog-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.category-grid,.catalog-category-grid{grid-template-columns:1fr}}


/* Acoustic panels: category -> model landing pages */
.catalog-overview-page .catalog-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.acoustic-gallery-wrap{min-width:0}
.acoustic-model-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.acoustic-model-gallery figure{margin:0;background:#eee;overflow:hidden;min-height:240px}
.acoustic-model-gallery img{width:100%;height:100%;min-height:240px;max-height:430px;object-fit:cover;display:block;transition:transform .35s ease}
.acoustic-model-gallery figure:hover img{transform:scale(1.02)}
.acoustic-model-gallery figure:first-child:nth-last-child(n+3){grid-column:span 2}
.acoustic-model-gallery figure:first-child:nth-last-child(n+3) img{max-height:560px}
@media(max-width:1100px){.catalog-overview-page .catalog-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.catalog-overview-page .catalog-category-grid,.acoustic-model-gallery{grid-template-columns:1fr}.acoustic-model-gallery figure:first-child:nth-last-child(n+3){grid-column:auto}.acoustic-model-gallery img{max-height:520px}}


/* Multi-image product gallery */
.product-gallery-block{min-width:0}.product-gallery-head{margin-bottom:16px}.product-gallery-head h3{font-family:var(--font-display);font-size:clamp(24px,3vw,34px);font-weight:500;margin:5px 0 0}.product-gallery-main{margin:0;background:#eee;overflow:hidden;aspect-ratio:4/3}.product-gallery-main img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .2s ease,transform .45s ease}.product-gallery-main:hover img{transform:scale(1.012)}.product-gallery-main.is-switching img{opacity:.3}.product-gallery-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}.product-gallery-thumb{border:2px solid transparent;padding:0;background:#eee;cursor:pointer;aspect-ratio:1/1;overflow:hidden;transition:border-color .2s ease,transform .2s ease}.product-gallery-thumb:hover{transform:translateY(-2px)}.product-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}.product-gallery-thumb-active,.product-gallery-thumb[aria-pressed="true"]{border-color:var(--gold)}.product-gallery-note{margin:12px 0 0;color:rgba(26,26,26,.58);font-size:12px;line-height:1.65}.acoustic-model-page .product-gallery-main{aspect-ratio:4/3}.acoustic-model-page .product-gallery-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:720px){.product-gallery-thumbs,.acoustic-model-page .product-gallery-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}.product-gallery-main{aspect-ratio:1/1}.product-gallery-head h3{font-size:25px}}
@media(max-width:420px){.product-gallery-thumbs,.acoustic-model-page .product-gallery-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* =========================================================
   Premium product landing pages — conversion-focused layout
   ========================================================= */
.premium-product-page{background:#f7f5f0}
.premium-product-main{overflow:hidden}
.product-commerce-hero{padding:138px 0 74px;background:linear-gradient(180deg,#fbfaf7 0%,#f4f0e9 100%);border-bottom:1px solid rgba(26,26,26,.08)}
.commerce-breadcrumbs{margin-bottom:30px;color:rgba(26,26,26,.52);font-size:12px;line-height:1.7}
.commerce-breadcrumbs a{color:rgba(26,26,26,.72);transition:color .2s ease}
.commerce-breadcrumbs a:hover{color:var(--gold)}
.product-commerce-grid{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(360px,.78fr);gap:58px;align-items:start}
.commerce-gallery-card{min-width:0;background:#fff;border:1px solid rgba(26,26,26,.08);padding:14px;box-shadow:0 24px 65px rgba(35,31,25,.08)}
.premium-gallery{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;min-width:0}
.premium-gallery .product-gallery-main{grid-column:2;grid-row:1;margin:0;position:relative;aspect-ratio:1/1;background:#ede9e1;overflow:hidden;cursor:zoom-in}
.premium-gallery .product-gallery-main img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .2s ease,transform .5s cubic-bezier(.2,.7,.2,1)}
.premium-gallery .product-gallery-main:hover img{transform:scale(1.018)}
.premium-gallery .product-gallery-main.is-switching img{opacity:.35}
.gallery-zoom-label{position:absolute;inset:auto 16px 16px auto;background:rgba(26,26,26,.82);color:#fff;padding:9px 12px;font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;backdrop-filter:blur(7px)}
.premium-gallery .product-gallery-thumbs{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:9px;margin:0;max-height:calc(100% - 1px);overflow:auto;scrollbar-width:thin}
.premium-gallery .product-gallery-thumb{width:100%;aspect-ratio:1/1;flex:0 0 auto;border:1px solid transparent;background:#eee;padding:0;overflow:hidden;cursor:pointer;transition:border-color .2s ease,opacity .2s ease,transform .2s ease}
.premium-gallery .product-gallery-thumb:hover{transform:none;opacity:.84}
.premium-gallery .product-gallery-thumb img{width:100%;height:100%;object-fit:cover}
.premium-gallery .product-gallery-thumb-active,.premium-gallery .product-gallery-thumb[aria-pressed=true]{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
.product-purchase-panel{position:sticky;top:104px;background:#fff;border:1px solid rgba(26,26,26,.08);padding:40px;box-shadow:0 20px 55px rgba(35,31,25,.065)}
.product-category-line{display:flex;align-items:center;gap:11px;margin-bottom:18px;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:rgba(26,26,26,.58)}
.product-category-line>span{width:28px;height:1px;background:var(--gold)}
.product-category-line a:hover{color:var(--gold)}
.product-purchase-panel>.eyebrow{margin-bottom:9px}
.product-purchase-panel h1{font-family:var(--font-display);font-size:clamp(40px,4.4vw,62px);font-weight:500;line-height:1.03;letter-spacing:-.025em;margin:0 0 20px;color:#191919}
html[dir=rtl] .product-purchase-panel h1{font-family:var(--font-arabic);letter-spacing:0;line-height:1.18}
.product-lead{font-size:15px;line-height:1.85;color:rgba(26,26,26,.64);margin-bottom:25px}
.product-quote-line{display:flex;justify-content:space-between;gap:22px;align-items:end;padding:18px 0;border-top:1px solid rgba(26,26,26,.1);border-bottom:1px solid rgba(26,26,26,.1);margin-bottom:23px}
.quote-label{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:rgba(26,26,26,.45);font-weight:600}
.product-quote-line strong{font-size:18px;font-weight:500;color:#1a1a1a;text-align:end}
.product-quick-features{display:grid;gap:11px;margin:0 0 26px}
.product-quick-features li{position:relative;padding-inline-start:20px;font-size:13px;line-height:1.55;color:rgba(26,26,26,.72)}
.product-quick-features li:before{content:'✓';position:absolute;inset-inline-start:0;top:0;color:var(--gold);font-weight:700}
.purchase-actions{display:grid;gap:12px}
.btn-wide{width:100%;min-height:56px}
.purchase-secondary{text-align:center;font-size:12px;text-decoration:underline;text-underline-offset:5px;color:rgba(26,26,26,.62)}
.purchase-secondary:hover{color:var(--gold)}
.purchase-assurance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid rgba(26,26,26,.09);border-bottom:1px solid rgba(26,26,26,.09);margin:28px 0 18px}
.purchase-assurance>div{padding:16px 10px;display:flex;align-items:flex-start;gap:8px;border-inline-end:1px solid rgba(26,26,26,.09)}
.purchase-assurance>div:last-child{border-inline-end:0}
.purchase-assurance>div>span{font-family:var(--font-display);font-size:16px;color:var(--gold);line-height:1}
.purchase-assurance p{margin:0;display:grid;gap:4px}
.purchase-assurance strong{font-size:10px;line-height:1.2;text-transform:uppercase;letter-spacing:.05em}
.purchase-assurance small{font-size:9px;line-height:1.35;color:rgba(26,26,26,.52)}
.purchase-fineprint{margin:0;text-align:center;font-size:10px;line-height:1.6;color:rgba(26,26,26,.48)}

.product-value-strip{background:#1a1a1a;color:#f7f5f0}
.product-value-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.product-value-grid article{display:grid;grid-template-columns:46px 1fr;gap:16px;padding:29px 28px;border-inline-end:1px solid rgba(255,255,255,.09)}
.product-value-grid article:last-child{border-inline-end:0}
.value-index{font-family:var(--font-display);font-size:26px;color:var(--gold);line-height:1}
.product-value-grid h3{font-size:13px;text-transform:uppercase;letter-spacing:.07em;margin:0 0 7px;font-weight:600}
.product-value-grid p{font-size:12px;line-height:1.65;color:rgba(247,245,240,.6);margin:0}

.product-details-premium{background:#fff}
.product-details-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:90px;align-items:start}
.product-story{max-width:720px;padding-top:12px}
.product-story h2{font-family:var(--font-display);font-size:clamp(38px,5vw,60px);font-weight:500;line-height:1.08;margin:8px 0 24px;letter-spacing:-.02em}
html[dir=rtl] .product-story h2{font-family:var(--font-arabic);letter-spacing:0;line-height:1.25}
.product-story-lead{font-size:17px;line-height:1.95;color:rgba(26,26,26,.64);max-width:650px}
.text-link-arrow{display:inline-flex;align-items:center;gap:16px;margin-top:23px;font-size:12px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;border-bottom:1px solid rgba(26,26,26,.25);padding-bottom:6px}
.text-link-arrow b{font-size:18px;font-weight:400;color:var(--gold);transition:transform .2s ease}
.text-link-arrow:hover b{transform:translateX(4px)}
html[dir=rtl] .text-link-arrow b{transform:rotate(180deg)}
.product-options-card{background:#f5f2eb;border:1px solid rgba(26,26,26,.08);padding:36px}
.options-card-head{padding-bottom:22px;margin-bottom:18px;border-bottom:1px solid rgba(26,26,26,.1)}
.options-card-head>span{font-size:9px;letter-spacing:.18em;color:var(--gold);font-weight:700}
.options-card-head h3{font-family:var(--font-display);font-size:30px;font-weight:500;line-height:1.2;margin:9px 0 0}
html[dir=rtl] .options-card-head h3{font-family:var(--font-arabic)}
.product-options-card ul{display:grid;gap:0}
.product-options-card li{display:flex;gap:13px;align-items:flex-start;padding:14px 0;border-bottom:1px solid rgba(26,26,26,.08);font-size:13px;line-height:1.55}
.option-check{width:21px;height:21px;flex:0 0 21px;border:1px solid rgba(197,160,89,.5);display:grid;place-items:center;color:var(--gold);font-size:10px}
.product-options-card>p{font-size:10px;line-height:1.6;color:rgba(26,26,26,.5);margin:18px 0 0}

.product-process-section{background:#1d1c1a;color:#f7f5f0;padding:92px 0}
.process-heading{max-width:760px;margin-bottom:48px}
.process-heading h2{font-family:var(--font-display);font-size:clamp(37px,4.8vw,57px);font-weight:500;line-height:1.08;margin:9px 0 0}
html[dir=rtl] .process-heading h2{font-family:var(--font-arabic);line-height:1.25}
.product-process-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.12)}
.product-process-grid article{padding:35px 34px 10px 0;border-inline-end:1px solid rgba(255,255,255,.12);min-height:215px}
html[dir=rtl] .product-process-grid article{padding:35px 0 10px 34px}
.product-process-grid article:not(:first-child){padding-inline-start:34px}
.product-process-grid article:last-child{border-inline-end:0}
.product-process-grid article>span{font-family:var(--font-display);font-size:22px;color:var(--gold)}
.product-process-grid h3{font-size:16px;margin:27px 0 12px;font-weight:500}
.product-process-grid p{font-size:13px;line-height:1.75;color:rgba(247,245,240,.57);max-width:320px}

.premium-order-section{background:#eee8de;scroll-margin-top:90px}
.order-section-heading{max-width:790px;margin:0 auto 50px;text-align:center}
.order-section-heading h2{font-family:var(--font-display);font-size:clamp(38px,5vw,60px);font-weight:500;line-height:1.08;margin:8px 0 18px}
html[dir=rtl] .order-section-heading h2{font-family:var(--font-arabic);line-height:1.25}
.order-section-heading>p:last-child{font-size:14px;line-height:1.8;color:rgba(26,26,26,.6)}
.premium-order-grid{display:grid;grid-template-columns:minmax(290px,.72fr) minmax(0,1.28fr);gap:28px;align-items:start;max-width:1120px;margin:0 auto}
.order-product-preview{position:sticky;top:108px;background:#1a1a1a;color:#f7f5f0}
.order-preview-image{aspect-ratio:1/1;overflow:hidden}
.order-preview-image img{width:100%;height:100%;object-fit:cover}
.order-preview-copy{padding:30px}
.order-preview-copy>span{font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.order-preview-copy h3{font-family:var(--font-display);font-size:30px;font-weight:500;line-height:1.2;margin:10px 0 12px}
html[dir=rtl] .order-preview-copy h3{font-family:var(--font-arabic)}
.order-preview-copy p{font-size:12px;line-height:1.7;color:rgba(247,245,240,.6)}
.order-preview-copy ul{display:grid;gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12)}
.order-preview-copy li{font-size:11px;color:rgba(247,245,240,.74);padding-inline-start:17px;position:relative}
.order-preview-copy li:before{content:'✓';position:absolute;inset-inline-start:0;color:var(--gold)}
.premium-order-card{background:#fff;padding:40px;border:1px solid rgba(26,26,26,.08);box-shadow:0 24px 60px rgba(35,31,25,.08)}
.premium-order-card .order-card-head{margin-bottom:27px}
.premium-order-card .order-card-head h2{font-size:34px}
.premium-order-card .order-product-name{background:#f7f5f0;border-inline-start:2px solid var(--gold);padding:13px 15px}
.premium-order-card .product-order-form input,.premium-order-card .product-order-form textarea,.premium-order-card .product-order-form select{border:1px solid rgba(26,26,26,.13);background:#fcfbf9;padding:15px 14px;transition:border .2s,box-shadow .2s,background .2s}
.premium-order-card .product-order-form input:focus,.premium-order-card .product-order-form textarea:focus,.premium-order-card .product-order-form select:focus{background:#fff;border-color:var(--gold);box-shadow:0 0 0 3px rgba(197,160,89,.09)}
.premium-order-card .product-order-form label{font-size:10px;letter-spacing:.1em;color:rgba(26,26,26,.7)}
.premium-order-card .order-submit{min-height:58px;font-size:11px}

.product-faq-section{background:#fff}
.product-faq-grid{display:grid;grid-template-columns:.72fr 1.28fr;gap:90px;align-items:start}
.faq-heading{position:sticky;top:112px}
.faq-heading h2{font-family:var(--font-display);font-size:clamp(38px,4vw,52px);font-weight:500;margin:8px 0 14px}
html[dir=rtl] .faq-heading h2{font-family:var(--font-arabic)}
.faq-heading>p:last-child{color:rgba(26,26,26,.58);line-height:1.75}
.faq-list{border-top:1px solid rgba(26,26,26,.13)}
.faq-list details{border-bottom:1px solid rgba(26,26,26,.13);padding:0}
.faq-list summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:30px;padding:23px 2px;cursor:pointer;font-size:14px;font-weight:500}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary b{font-size:23px;font-weight:300;color:var(--gold);transition:transform .25s ease}
.faq-list details[open] summary b{transform:rotate(45deg)}
.faq-list details p{font-size:13px;line-height:1.8;color:rgba(26,26,26,.6);padding:0 42px 24px 2px;margin:0;max-width:720px}
html[dir=rtl] .faq-list details p{padding:0 2px 24px 42px}

.product-final-cta{background:#f2ede5;padding:58px 0;border-top:1px solid rgba(26,26,26,.08)}
.product-final-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:35px}
.product-final-cta-inner>div>span{font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);font-weight:700}
.product-final-cta h2{font-family:var(--font-display);font-size:35px;font-weight:500;margin:7px 0 8px}
html[dir=rtl] .product-final-cta h2{font-family:var(--font-arabic)}
.product-final-cta p{margin:0;color:rgba(26,26,26,.57);font-size:13px}

/* gallery lightbox */
.product-lightbox{position:fixed;inset:0;z-index:500;background:rgba(12,12,12,.94);display:none;align-items:center;justify-content:center;padding:72px 90px}
.product-lightbox.open{display:flex}
.product-lightbox img{max-width:min(1180px,88vw);max-height:82vh;width:auto;height:auto;object-fit:contain;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.product-lightbox button{position:absolute;border:1px solid rgba(255,255,255,.28);background:rgba(0,0,0,.25);color:#fff;width:48px;height:48px;display:grid;place-items:center;font-size:24px;backdrop-filter:blur(6px)}
.product-lightbox .lightbox-close{top:22px;right:24px}
.product-lightbox .lightbox-prev{left:24px;top:50%;transform:translateY(-50%)}
.product-lightbox .lightbox-next{right:24px;top:50%;transform:translateY(-50%)}
.product-lightbox-caption{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);color:rgba(255,255,255,.7);font-size:11px;letter-spacing:.08em;text-align:center;max-width:70vw}
body.lightbox-open{overflow:hidden}

@media(max-width:1100px){
  .product-commerce-grid{grid-template-columns:1fr;gap:30px}.product-purchase-panel{position:static}.premium-gallery .product-gallery-main{aspect-ratio:4/3}
  .product-value-grid{grid-template-columns:1fr}.product-value-grid article{border-inline-end:0;border-bottom:1px solid rgba(255,255,255,.09)}.product-value-grid article:last-child{border-bottom:0}
  .product-details-grid,.product-faq-grid{grid-template-columns:1fr;gap:46px}.faq-heading{position:static}.product-options-card{max-width:760px}
  .premium-order-grid{grid-template-columns:1fr;max-width:820px}.order-product-preview{position:static;display:grid;grid-template-columns:280px 1fr}.order-preview-image{aspect-ratio:auto;min-height:100%}
}
@media(max-width:760px){
  .product-commerce-hero{padding:112px 0 48px}.commerce-breadcrumbs{margin-bottom:20px;font-size:10px}.commerce-gallery-card{padding:9px}.premium-gallery{grid-template-columns:1fr;gap:9px}.premium-gallery .product-gallery-main{grid-column:1;grid-row:1;aspect-ratio:1/1}.premium-gallery .product-gallery-thumbs{grid-column:1;grid-row:2;flex-direction:row;overflow-x:auto;max-height:none;padding-bottom:2px}.premium-gallery .product-gallery-thumb{width:72px;flex:0 0 72px}.gallery-zoom-label{font-size:9px;inset:auto 10px 10px auto}
  .product-purchase-panel{padding:28px 22px}.product-purchase-panel h1{font-size:40px}.purchase-assurance{grid-template-columns:1fr}.purchase-assurance>div{border-inline-end:0;border-bottom:1px solid rgba(26,26,26,.08)}.purchase-assurance>div:last-child{border-bottom:0}.purchase-assurance>div{padding:12px 4px}.purchase-assurance small{font-size:10px}
  .product-details-premium{padding:72px 0}.product-story h2{font-size:38px}.product-story-lead{font-size:15px}.product-options-card{padding:25px 21px}.options-card-head h3{font-size:26px}
  .product-process-section{padding:72px 0}.product-process-grid{grid-template-columns:1fr}.product-process-grid article,.product-process-grid article:not(:first-child),html[dir=rtl] .product-process-grid article{padding:27px 0;border-inline-end:0;border-bottom:1px solid rgba(255,255,255,.1);min-height:0}.product-process-grid article:last-child{border-bottom:0}.product-process-grid h3{margin-top:17px}
  .premium-order-section{padding:72px 0 112px}.order-section-heading{text-align:start;margin-bottom:34px}.order-section-heading h2{font-size:38px}.order-product-preview{display:block}.order-preview-image{aspect-ratio:4/3}.premium-order-card{padding:27px 20px}.premium-order-card .order-card-head h2{font-size:29px}
  .product-faq-section{padding:72px 0}.faq-heading h2{font-size:38px}.faq-list summary{font-size:13px}.faq-list details p,html[dir=rtl] .faq-list details p{padding:0 0 22px}
  .product-final-cta-inner{display:grid}.product-final-cta .btn{width:100%}.product-final-cta h2{font-size:30px}
  .product-lightbox{padding:70px 16px}.product-lightbox img{max-width:96vw;max-height:76vh}.product-lightbox .lightbox-prev{left:8px}.product-lightbox .lightbox-next{right:8px}.product-lightbox .lightbox-close{right:8px;top:10px}.product-lightbox button{width:42px;height:42px}
}


/* Premium Before / After comparison */
.product-before-after-section{background:#f2eee7;padding:96px 0}
.before-after-heading{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:54px;align-items:end;margin-bottom:34px}
.before-after-heading h2{font-family:var(--font-display);font-size:clamp(36px,4.6vw,58px);font-weight:500;line-height:1.08;margin:8px 0 0}
html[dir="rtl"] .before-after-heading h2{font-family:var(--font-arabic)}
.before-after-heading>p{margin:0;color:rgba(26,26,26,.66);font-size:16px;line-height:1.85;max-width:680px}
.before-after-frame{--ba-position:50%;position:relative;overflow:hidden;isolation:isolate;width:100%;aspect-ratio:3/2;max-height:690px;background:#ddd;box-shadow:0 28px 80px rgba(26,26,26,.13);touch-action:pan-y}
.ba-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block;user-select:none;pointer-events:none}
.ba-before-image{z-index:1}
.ba-after-image{z-index:2;clip-path:inset(0 calc(100% - var(--ba-position)) 0 0)}
.ba-divider{position:absolute;z-index:4;top:0;bottom:0;left:var(--ba-position);width:2px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.12),0 0 28px rgba(0,0,0,.18);transform:translateX(-1px);pointer-events:none}
.ba-handle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#181818;border:1px solid rgba(0,0,0,.12);box-shadow:0 8px 28px rgba(0,0,0,.22);font-size:22px;font-weight:500;letter-spacing:-3px;padding-right:3px}
.ba-range{position:absolute;z-index:5;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;touch-action:pan-y}
.ba-label{position:absolute;z-index:3;top:20px;padding:9px 13px;background:rgba(18,18,18,.78);backdrop-filter:blur(8px);color:#fff;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;border:1px solid rgba(255,255,255,.16)}
.ba-label-before{left:20px}.ba-label-after{right:20px}
.before-after-note{display:flex;gap:12px;align-items:flex-start;margin-top:18px;color:rgba(26,26,26,.57);font-size:12px;line-height:1.7}
.before-after-note>span{width:22px;height:22px;flex:0 0 22px;border:1px solid rgba(26,26,26,.28);border-radius:50%;display:grid;place-items:center;font-family:serif;font-style:italic;font-size:12px}
.before-after-note p{margin:0;max-width:900px}
@media(max-width:900px){.product-before-after-section{padding:76px 0}.before-after-heading{grid-template-columns:1fr;gap:16px}.before-after-frame{aspect-ratio:4/3}.ba-handle{width:52px;height:52px}}
@media(max-width:640px){.product-before-after-section{padding:64px 0}.before-after-heading{margin-bottom:24px}.before-after-heading h2{font-size:36px}.before-after-heading>p{font-size:14px;line-height:1.75}.before-after-frame{aspect-ratio:4/5;max-height:none}.ba-label{top:12px;padding:7px 10px;font-size:9px}.ba-label-before{left:12px}.ba-label-after{right:12px}.ba-handle{width:46px;height:46px;font-size:18px}}

/* COD checkout: dependent commune + estimated shipping (keeps existing visual language) */
.shipping-estimate{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;border:1px solid rgba(26,26,26,.11);background:#f7f5f0;border-inline-start:2px solid var(--gold)}
.shipping-estimate>div{display:grid;gap:3px}.shipping-estimate span{font-size:12px;font-weight:600}.shipping-estimate small{font-size:10px;color:rgba(26,26,26,.52);line-height:1.45}.shipping-estimate strong{font-size:18px;white-space:nowrap;color:var(--dark)}
.product-order-form select:disabled{opacity:.62;cursor:not-allowed}.order-address-field[hidden]{display:none!important}
@media(max-width:640px){.shipping-estimate{align-items:flex-start}.shipping-estimate strong{font-size:16px}}

/* COD order pricing summary */
.order-price-summary{display:grid;border:1px solid rgba(26,26,26,.12);background:#f7f5f0;margin-top:2px}
.order-price-row{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:16px 18px;border-bottom:1px solid rgba(26,26,26,.09)}
.order-price-row>div{display:grid;gap:3px;min-width:0}
.order-price-row span{font-size:12px;font-weight:600;color:var(--primary)}
.order-price-row small{font-size:10px;line-height:1.45;color:rgba(26,26,26,.5)}
.order-price-row strong{font-size:18px;font-weight:600;white-space:nowrap;color:var(--dark)}
.order-price-total{background:var(--primary);color:var(--secondary);border-bottom:0;border-inline-start:3px solid var(--gold)}
.order-price-total span{color:var(--secondary)}
.order-price-total small{color:rgba(247,245,240,.58)}
.order-price-total strong{font-size:22px;color:var(--gold)}
.order-price-disclaimer{margin:0;padding:10px 18px 12px;border-top:1px solid rgba(26,26,26,.08);font-size:9px;line-height:1.55;color:rgba(26,26,26,.46)}
@media(max-width:640px){.order-price-row{padding:14px 15px;gap:14px}.order-price-row strong{font-size:16px}.order-price-total strong{font-size:19px}}

/* ===== Category pages — premium subcategory/product collection grid ===== */
.category-detail-page .category-products-grid{
  display:grid;
  gap:24px;
  margin-top:34px;
  align-items:stretch;
}
.category-detail-page .category-products-grid.subcategory-count-6{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.category-detail-page .category-products-grid.subcategory-count-4,
.category-detail-page .category-products-grid.subcategory-count-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.category-detail-page .category-products-grid.subcategory-count-1{
  grid-template-columns:minmax(0,820px);
}
.category-detail-page .category-product-card{
  position:relative;
  display:block;
  min-width:0;
  height:430px;
  overflow:hidden;
  border:0;
  background:#d9d6cf;
  color:#fff;
  text-decoration:none;
  isolation:isolate;
  transform:none;
  box-shadow:none;
}
.category-detail-page .category-products-grid.subcategory-count-1 .category-product-card{
  height:470px;
}
.category-detail-page .category-product-card::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(12,12,12,.03) 34%,rgba(12,12,12,.72) 100%);
  pointer-events:none;
}
.category-detail-page .category-product-card>img{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .8s cubic-bezier(.22,1,.36,1),filter .45s ease;
}
.category-detail-page .category-product-card:hover{
  transform:none;
  box-shadow:none;
}
.category-detail-page .category-product-card:hover>img{
  transform:scale(1.035);
}
.category-detail-page .category-product-card .link-card-copy{
  position:absolute;
  inset-inline:0;
  bottom:0;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  padding:30px 30px 28px;
  color:#fff;
}
.category-detail-page .category-product-card .category-product-index{
  position:absolute;
  top:auto;
  bottom:calc(100% + 265px);
  inset-inline-start:0;
  display:inline-flex;
  width:max-content;
  margin:0;
  padding:7px 10px;
  background:rgba(247,245,240,.92);
  color:var(--primary);
  font-size:10px;
  font-weight:600;
  line-height:1;
  letter-spacing:.14em;
}
.category-detail-page .category-product-card h3{
  max-width:95%;
  margin:0;
  color:#fff;
  font-family:var(--font-display);
  font-size:clamp(22px,2vw,29px);
  font-weight:500;
  line-height:1.2;
}
html[dir="rtl"] .category-detail-page .category-product-card h3{
  font-family:var(--font-arabic);
  line-height:1.45;
}
.category-detail-page .category-product-card p{
  display:none;
}
.category-detail-page .category-product-card .text-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:2px 0 0;
  padding-bottom:10px;
  color:rgba(255,255,255,.92);
  font-size:11px;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
}
html[dir="rtl"] .category-detail-page .category-product-card .text-link{
  letter-spacing:0;
}
.category-detail-page .category-product-card .text-link::after{
  content:'';
  position:absolute;
  inset-inline-start:0;
  bottom:0;
  width:36px;
  height:1px;
  background:var(--gold);
  transition:width .35s ease;
}
.category-detail-page .category-product-card:hover .text-link::after{
  width:64px;
}

@media(max-width:1000px){
  .category-detail-page .category-products-grid.subcategory-count-6,
  .category-detail-page .category-products-grid.subcategory-count-4,
  .category-detail-page .category-products-grid.subcategory-count-2{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .category-detail-page .category-products-grid.subcategory-count-6>a:last-child:nth-child(odd){
    grid-column:1/-1;
  }
  .category-detail-page .category-product-card,
  .category-detail-page .category-products-grid.subcategory-count-1 .category-product-card{
    height:420px;
  }
}

@media(max-width:680px){
  .category-detail-page .category-products-grid,
  .category-detail-page .category-products-grid.subcategory-count-6,
  .category-detail-page .category-products-grid.subcategory-count-4,
  .category-detail-page .category-products-grid.subcategory-count-2,
  .category-detail-page .category-products-grid.subcategory-count-1{
    grid-template-columns:1fr;
    gap:18px;
    max-width:none;
  }
  .category-detail-page .category-products-grid.subcategory-count-6>a:last-child:nth-child(odd){
    grid-column:auto;
  }
  .category-detail-page .category-product-card,
  .category-detail-page .category-products-grid.subcategory-count-1 .category-product-card{
    height:min(118vw,470px);
  }
  .category-detail-page .category-product-card .link-card-copy{
    padding:24px 22px 25px;
  }
  .category-detail-page .category-product-card h3{
    font-size:24px;
  }
  .category-detail-page .category-product-card .category-product-index{
    bottom:calc(100% + 276px);
  }
}

/* Refine index placement inside full-card overlay */
.category-detail-page .category-product-card .link-card-copy{
  inset:0;
  bottom:auto;
  justify-content:flex-end;
}
.category-detail-page .category-product-card .category-product-index{
  top:20px;
  bottom:auto;
  inset-inline-start:20px;
}
@media(max-width:680px){
  .category-detail-page .category-product-card .category-product-index{
    top:16px;
    inset-inline-start:16px;
  }
}
