/* Chihiros product presentation. Commerce, stock and prices remain native Hyvä. */
.catalog-product-view .container{max-width:1280px}
.catalog-product-view .breadcrumbs{padding-block:18px;border-bottom:0}
.catalog-product-view .breadcrumbs ol{padding-block:0}
.catalog-product-view main.page-main{margin-top:12px}
.catalog-product-view main.page-main>div>.page-title{text-align:left;margin-bottom:20px}
.catalog-product-view main section:has(>.ch-product-info){gap:32px;padding-top:12px;padding-bottom:48px;min-width:0}
.ch-product-info{min-width:0;padding:12px 0 0}
.ch-product-info .page-title{font-size:clamp(30px,3vw,40px);line-height:1.12;font-weight:600;letter-spacing:-.035em;margin:0}
.ch-product-intro{font-size:17px;line-height:1.6;color:var(--ch-muted);margin:18px 0 24px;max-width:60ch}
.ch-product-intro p{margin:0}
.ch-product-price-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--ch-line);padding-bottom:26px;margin-bottom:26px}
.ch-product-info .price-box .price{font-size:32px;line-height:1.15;font-weight:600;letter-spacing:-.03em}
.ch-product-info .price-box .old-price .price{font-size:18px;font-weight:400;color:var(--ch-muted)}
.ch-product-stock{font-size:14px;flex-shrink:0}
.ch-product-stock p{margin:0}
.ch-product-attribute{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--ch-line);padding:8px 0;font-size:14px}
.ch-product-attribute dd{margin:0}
.ch-product-info #product_addtocart_form{margin:0 0 18px}
.ch-product-info #product_addtocart_form fieldset{margin:0 0 16px}
.ch-product-info #product_addtocart_form legend{font-size:15px;font-weight:500;margin-bottom:12px;color:var(--ch-dark)}
.ch-product-info #product_addtocart_form legend span{font-weight:600}
.ch-product-info fieldset>div:has(>.swatch-option[data-swatch-type="text"]){display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.ch-product-info .swatch-option[data-swatch-type="text"]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;min-width:0;min-height:78px;margin:0;padding:12px 14px;border:1px solid #cbd0cd;border-radius:8px;background:#fff;color:var(--ch-dark);line-height:1.3;box-shadow:none;cursor:pointer;transition:border-color .12s,background-color .12s}
.ch-product-info .swatch-option[data-swatch-type="text"] .ch-variant-label{font-size:16px;font-weight:500;white-space:normal}
.ch-product-info .swatch-option>input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
.ch-product-info .swatch-option>span{grid-area:auto;pointer-events:none}
.ch-product-info .swatch-option[data-swatch-type="text"]:hover:not(:has(:disabled)){border-color:#008761;background:#f6fbf8}
.ch-product-info .swatch-option[data-swatch-type="text"]:has(:checked){border:2px solid #008761;padding:11px 13px;background:#effaf5}
.ch-product-info .swatch-option[data-swatch-type="text"]:has(:checked):after{content:"";position:absolute;right:9px;top:9px;width:8px;height:5px;border-left:2px solid var(--ch-dark);border-bottom:2px solid var(--ch-dark);transform:rotate(-45deg);pointer-events:none}
.ch-product-info .swatch-option:has(:focus-visible){outline:3px solid var(--ch-dark);outline-offset:3px}
.ch-product-info .swatch-option[data-swatch-type="text"]:has(:disabled){opacity:1;color:#777b80;border-color:#e3e4e5;background:#f8f8f8;cursor:not-allowed}
.ch-variant-unavailable{display:none;font-size:11px;font-weight:400;color:#686d72}
.ch-product-info .swatch-option:has(:disabled) .ch-variant-unavailable{display:block}
.ch-product-purchase{display:flex;align-items:flex-end;gap:12px}
.ch-product-purchase>div{flex:0 0 82px;min-width:0}
.ch-product-purchase label{font-size:13px;color:var(--ch-muted);margin-bottom:5px}
.ch-product-purchase input{width:82px;height:54px;border-radius:6px;border-color:#c7c9cb;background:white}
.ch-product-info #product-addtocart-button{height:54px;min-height:54px;flex:1;justify-content:center;border-radius:6px;font-size:20px;font-weight:700;line-height:1.2;background:var(--ch-success);color:#123229;border:0;padding:12px 20px;box-shadow:none}
.ch-product-info #product-addtocart-button:hover{background:var(--ch-action-hover);color:white}
.ch-product-info #product-addtocart-button:disabled{background:#e6e6e6;color:#62656a;cursor:not-allowed}
.ch-product-actions{display:flex;justify-content:flex-end;margin-top:12px}
.ch-product-actions .btn{background:none;border:0;padding:8px;color:var(--ch-muted)}
.ch-product-shortcuts{margin-top:16px}
.ch-product-info .ch-product-service{margin-top:20px;padding-top:20px;gap:10px}
.ch-product-info .ch-product-service svg{color:var(--ch-dark)}
.ch-product-links{display:flex;flex-wrap:wrap;gap:12px 24px;padding-top:4px;line-height:1.6}
.ch-product-links a{color:var(--ch-dark);text-decoration-color:#a8abad;text-underline-offset:5px}
.ch-product-links a:hover{text-decoration-color:var(--ch-brand)}

/* Show the full image with a compact, predictable thumbnail row. */
.catalog-product-view #gallery{display:block;min-width:0;max-inline-size:100%!important}
.catalog-product-view #gallery>.relative{border:1px solid #eeeeef;border-radius:8px;overflow:hidden;background:#fff}
.catalog-product-view #gallery>.snap-pager{display:flex;flex-direction:row;justify-content:flex-start;gap:10px;padding:14px 0 0;overflow-x:auto;max-width:100%}
.catalog-product-view #gallery [role="tablist"]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;gap:10px;padding:0}
.catalog-product-view #gallery [role="tab"]{width:72px;height:72px;flex-shrink:0;border:1px solid #d5d7d9;border-radius:5px;padding:2px;background:#fff}
.catalog-product-view #gallery [role="tab"] img{display:block;width:100%;height:100%;object-fit:contain}
.catalog-product-view #gallery [role="tab"][aria-current="true"]{border-color:var(--ch-brand);outline-color:var(--ch-brand)}
.catalog-product-view #gallery>.snap-pager button{border-radius:5px;flex-shrink:0;border-color:#d5d7d9}
.catalog-product-view #gallery>.snap-pager button[aria-selected="true"]{border-color:var(--ch-brand);outline-color:var(--ch-brand)}
.catalog-product-view #gallery img{border-radius:0}

/* Legacy catalog copy is data, not an eTrend dependency. */
.catalog-product-view div:has(>#description){grid-template-columns:minmax(0,1fr);gap:36px}
.catalog-product-view #description{min-width:0;width:100%;scroll-margin-top:64px;border-top:1px solid var(--ch-line);padding-top:36px;line-height:1.75}
.catalog-product-view #description>h2{font-size:28px;line-height:1.2;text-align:left;margin-bottom:24px}
.catalog-product-view #description>.card{border:0;box-shadow:none;padding:0;border-radius:0;max-width:none}
.catalog-product-view #description .prose{max-width:none}
.catalog-product-view #description [data-content-type="row"][data-appearance="contained"]{padding-inline:0;max-width:none}
.catalog-product-view #description p{margin:0 0 16px;max-width:78ch}
.catalog-product-view #description p:empty{display:none}
.catalog-product-view #description [data-content-type="text"]>br{display:none}
.catalog-product-view #description .section-title{font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-.02em;margin:36px 0 20px}
.catalog-product-view #description .section-title:after{display:none}
.catalog-product-view #description .c-infobox{margin:24px 0 0;max-width:90ch;padding:18px 22px;border-left:3px solid #77818a;border-radius:0 6px 6px 0;background:#f3f5f6;color:#434a50;font-size:14px;line-height:1.65}
.catalog-product-view #description .c-infobox a{text-decoration:underline}

.ch-specifications{margin:0 0 28px;border:1px solid var(--ch-line);border-radius:8px;overflow:hidden;background:white}
.ch-specification-models{display:none}
body:has([data-chihiros-environment="stage"]) #ch-specifications{scroll-margin-top:140px}
.ch-specifications-scroll{overflow-x:auto;overscroll-behavior-inline:contain;max-width:100%;scrollbar-width:thin}
.ch-specifications-scroll:focus-visible{outline:3px solid var(--ch-dark);outline-offset:-3px}
#description .ch-specification-table{display:table;border-collapse:separate;border-spacing:0;width:100%;font-size:14px;line-height:1.5;text-align:left;margin:0;white-space:normal}
#description .ch-specification-table th,#description .ch-specification-table td{padding:16px 20px;border:0;border-bottom:1px solid #e9eaeb;vertical-align:middle;text-align:left;background:#fff;color:var(--ch-dark);min-width:100px}
#description .ch-specification-table thead th{font-weight:600;color:#51565b;background:#f5f6f7;font-size:12px;letter-spacing:.02em;white-space:nowrap}
#description .ch-specification-table tbody th{font-weight:500;min-width:176px}
#description .ch-specification-table tbody tr:nth-child(even)>*{background:#fafafa}
#description .ch-specification-table tbody tr:last-child>*{border-bottom:0}
@media(hover:hover){#description .ch-specification-table tbody tr:hover>*{background:#f0f8f3}}
#description .ch-specification-table a{color:var(--ch-dark);text-decoration:underline;text-underline-offset:3px}
.ch-spec-label{display:none}
#description .ch-specifications-hint{display:none;margin:0;padding:10px 16px;font-size:12px;color:var(--ch-muted);max-width:none;background:#f5f6f7;border-top:1px solid var(--ch-line)}

/* No-script fallback: retain the existing grid and its full source content. */
#description .cg{display:grid;overflow-x:auto;margin:24px 0;border:1px solid var(--ch-line);border-radius:8px}
#description .cg-2{grid-template-columns:repeat(2,minmax(130px,1fr))}
#description .cg-3{grid-template-columns:repeat(3,minmax(130px,1fr))}
#description .cg-4{grid-template-columns:repeat(4,minmax(130px,1fr))}
#description .cg-5{grid-template-columns:repeat(5,minmax(130px,1fr))}
#description .cg-6{grid-template-columns:repeat(6,minmax(130px,1fr))}
#description .cg-7{grid-template-columns:repeat(7,minmax(130px,1fr))}
#description .cg-8{grid-template-columns:repeat(8,minmax(130px,1fr))}
#description .cg-item{padding:14px 18px;border-bottom:1px solid var(--ch-line);font-size:14px}
#description .cg-hl{background:#f5f6f7;font-weight:600}

@media(min-width:1024px){
 .catalog-product-view main section:has(>.ch-product-info){grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);gap:38px}
 .catalog-product-view #gallery{position:sticky;top:64px}
}
@media(max-width:1023px){
 .ch-product-info fieldset>div:has(>.swatch-option[data-swatch-type="text"]){grid-template-columns:repeat(2,minmax(0,1fr))}
 .ch-product-info .swatch-option[data-swatch-type="text"]{padding:11px;min-height:62px}
 .ch-product-info .swatch-option[data-swatch-type="text"]:has(:checked){padding:10px}
 #description .ch-specification-table th,#description .ch-specification-table td{padding:14px 16px}
 #description .ch-specification-table{min-width:760px}
 #description .ch-specification-table tr>:first-child{position:sticky;left:0;z-index:1;border-right:1px solid var(--ch-line)}
 #description .ch-specifications-hint{display:block}
}
@media(max-width:767px){
 .catalog-product-view main section:has(>.ch-product-info){grid-template-columns:minmax(0,1fr);gap:24px;padding-top:0;padding-bottom:32px}
 .catalog-product-view .breadcrumbs{font-size:12px;padding-block:14px}
 .ch-product-info{padding:0}
 .ch-product-info .page-title{font-size:32px}
 .ch-product-intro{font-size:16px;margin:12px 0 20px}
 .ch-product-price-row{padding-bottom:22px;margin-bottom:22px}
 .ch-product-info .price-box .price{font-size:30px}
 .ch-product-info fieldset>div:has(>.swatch-option[data-swatch-type="text"]){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .ch-product-info .swatch-option[data-swatch-type="text"]{padding:11px 9px}
 .ch-product-info .swatch-option[data-swatch-type="text"]:has(:checked){padding:10px 8px}
 .ch-product-info .swatch-option[data-swatch-type="text"] .ch-variant-label{font-size:15px}
 .ch-variant-unavailable{font-size:10px}
 .ch-product-info #product-addtocart-button{font-size:20px;padding-inline:12px}
 .ch-product-info .ch-product-service{font-size:13px}
 .catalog-product-view #description{padding-top:28px}
 .catalog-product-view #description>h2{font-size:24px}
 .catalog-product-view #description .section-title{font-size:22px}
 #description .ch-specification-table tbody th{min-width:148px;max-width:148px}
 .catalog-product-view #gallery>.snap-pager{gap:8px;padding-top:10px}
 .catalog-product-view #gallery>.snap-pager button,.catalog-product-view #gallery [role="tab"]{width:62px;height:62px}
}
@media(max-width:359px){
 .ch-product-info fieldset>div:has(>.swatch-option[data-swatch-type="text"]){grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Small screens show complete model cards, not a six-column table cut in half. */
@media(max-width:639px){
 .ch-specifications{border:0;overflow:visible;background:transparent}
 .ch-specifications-scroll{overflow:visible}
 #description .ch-specification-table{display:block;min-width:0;width:100%}
 #description .ch-specification-table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #description .ch-specification-table tbody{display:grid;gap:14px}
 #description .ch-specification-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--ch-line);border-radius:7px;overflow:hidden;background:#fff}
 #description .ch-specification-table tbody tr>*{position:static;min-width:0;max-width:none;padding:12px 16px;border:0;background:#fff;font-size:14px}
 #description .ch-specification-table tbody tr>th{grid-column:1/-1;padding:14px 16px;font-size:16px;font-weight:600;background:#f5f6f7;border-bottom:1px solid var(--ch-line)}
 #description .ch-specification-table tbody tr>th .ch-spec-label{display:none}
 #description .ch-specification-table tbody tr>td .ch-spec-label{display:block;color:var(--ch-muted);font-size:11px;font-weight:500;letter-spacing:.02em;margin-bottom:4px}
 #description .ch-specifications-hint{display:none}
 .ch-specifications-models>.ch-specifications-scroll{display:none}
 .ch-specification-models{display:grid;gap:10px}
 .ch-specification-models details{border:1px solid var(--ch-line);border-radius:8px;background:white;overflow:hidden}
 .ch-specification-models summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer;padding:16px;font-size:15px;min-height:56px;background:#f5f7f5}
 .ch-specification-models summary::-webkit-details-marker{display:none}
 .ch-specification-model-size{display:block;font-size:12px;font-weight:400;color:var(--ch-muted);margin-top:3px}
 .ch-specification-models summary:after{content:"+";font-size:22px;line-height:1;font-weight:400}
 .ch-specification-models details[open]>summary:after{content:"−"}
 .ch-specification-models summary:focus-visible{outline:3px solid #204b39;outline-offset:-3px}
 .ch-specification-models dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;padding:18px 16px;margin:0}
 .ch-specification-models dt{font-size:12px;color:var(--ch-muted);margin-bottom:4px}
 .ch-specification-models dd{font-size:14px;line-height:1.5;margin:0}
}

/* Native carousel controls stay visible without the default floating shadow. */
.catalog-product-view #gallery button.btn-secondary{box-shadow:none;background:#ffffffeb;border:1px solid #d5d7d9;border-radius:50%;color:var(--ch-dark);width:40px;height:40px}
.catalog-product-view #gallery button.btn-secondary:hover{background:#f1f2f3}
@media(hover:none){#description .ch-specification-table tbody tr:hover>*{background:#fff}#description .ch-specification-table tbody tr:hover>th{background:#f5f6f7}}

.ch-variant-price{display:block;font-size:14px;font-weight:600;letter-spacing:-.01em;color:#434b47;white-space:normal;line-height:1.4;margin-top:4px}
.ch-variant-price:empty{display:none}
.ch-product-info .swatch-option[data-swatch-type="text"]:has(:checked) .ch-variant-price{color:#086b50}
.ch-product-info .swatch-option[data-swatch-type="text"]:has(:disabled) .ch-variant-price{color:#777b80;font-weight:400}
.ch-product-info .swatch-option[data-swatch-type="text"]:has(:checked):after{right:10px;top:12px;border-color:#008761}
.ch-product-info .swatch-option[data-swatch-type="text"] .ch-variant-label{padding-right:10px}
.ch-product-info #product_addtocart_form legend{margin-bottom:10px;font-size:14px;color:#646d68}
.ch-product-info #product_addtocart_form legend span{color:var(--ch-dark)}
.ch-product-info #product_addtocart_form fieldset{margin-bottom:16px}
.ch-product-info .ch-product-price-row{padding-block:4px 17px;margin-bottom:18px}
.ch-product-info .ch-product-stock{background:#eff8f2;border-radius:20px;padding:6px 11px;font-size:12px}
.ch-product-info .ch-product-stock:empty{display:none}
.ch-product-info .ch-product-service{background:#f7f8f7;border:1px solid #e5eae7;border-radius:8px;padding:16px 18px}
.ch-product-info .ch-product-service svg{color:#238366}
.catalog-product-view #gallery>.relative{border-radius:12px;border-color:#e8ebe9}
@media(min-width:1024px){.ch-product-info .page-title{font-size:36px;font-weight:500}.ch-product-intro{font-size:16px;line-height:1.65;margin-block:12px 16px}}
@media(max-width:767px){.ch-product-info .swatch-option[data-swatch-type="text"]{min-height:80px;padding:12px}.ch-product-info .swatch-option[data-swatch-type="text"]:has(:checked){padding:11px}.ch-variant-price{font-size:14px}.ch-product-info .page-title{font-size:30px}}

#ch-specifications{scroll-margin-top:72px}
.ch-product-links [hidden]{display:none}


@media(max-width:767px){body:has([data-chihiros-environment="stage"]) #ch-specifications{scroll-margin-top:200px}}

@media(min-width:1024px) {
  .ch-product-info fieldset>div:has(>.swatch-option[data-swatch-type="text"]) { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ch-product-info fieldset>div:has(>.swatch-option:nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.ch-product-info .swatch-option:has(:checked) { border-color:var(--ch-action); background:var(--ch-selected); }
.ch-product-info .swatch-option[data-swatch-type="visual"] { width:auto; height:auto; padding:8px; display:inline-flex; align-items:center; gap:8px; }
.ch-product-info .swatch-option .ch-colour-name { font-size:14px; }
.ch-product-stock:has([data-ch-selected-stock]) { background:#f6f6f6; color:#39413e; }
.ch-product-stock:has([data-state="preorder"]), .ch-preorder-note:not([hidden]) { background:var(--ch-preorder); color:var(--ch-preorder-text); }
.ch-preorder-note:not([hidden]) { border-inline-start-color:#b88030; }
.ch-mobile-purchase { display:none; }
@media(max-width:767px) {
  .ch-mobile-purchase:not([hidden]) { position:fixed; display:flex; align-items:center; justify-content:space-between; z-index:25; left:0; right:0; bottom:0; background:white; border-top:1px solid #d5dcd8; padding:8px 16px max(8px,env(safe-area-inset-bottom)); gap:12px; }
  .ch-mobile-purchase button { min-height:44px; padding:8px 16px; }
  body:has(.ch-mobile-purchase:not([hidden])) { padding-bottom:74px; }
  body:has(.ch-mobile-purchase:not([hidden])) #terp-consent-settings:not(.ch-footer-legal *) { position:fixed; bottom:78px; margin:0; }
}

.ch-product-info #product-addtocart-button { color:white; }
@media(max-width:767px) {
  .ch-product-price-row { flex-wrap:wrap; align-items:flex-start; }
  .ch-product-stock { max-width:100%; min-width:0; white-space:normal; }
}
.ch-variant-stock:not(:empty) { display:block; font-size:.75rem; line-height:1.3; color:#365344; }
.ch-variant-stock:empty { display:none; }
/* The native track, thumbnails and full-resolution lightbox stay independent. */
.catalog-product-view #gallery-main { --gallery-ratio:1.08; aspect-ratio:var(--gallery-ratio); }
.catalog-product-view main:has([data-gallery-profile="wide"]) #gallery-main { --gallery-ratio:1.9; }
.catalog-product-view #gallery-main > div[id^="gallery-slide-"] { height:100%; min-height:0; }
.catalog-product-view #gallery-main [id^="gallery-slide-"] > button {
    height:100%; width:100%; overflow:hidden; grid-template:minmax(0,1fr) / minmax(0,1fr);
}
.catalog-product-view #gallery-main [id^="gallery-slide-"] > button > img {
    width:100%; height:100%; min-width:0; min-height:0; aspect-ratio:auto; object-fit:contain;
}
.catalog-product-view #gallery-main [id^="gallery-slide-"] > button > img.ch-lamp-photo {
    object-fit:cover;
}
.catalog-product-view #gallery-main img.ch-lamp-frame { transform:scale(1.12); }
.ch-option-colour { display:inline-block; width:.85em; height:.85em; margin-inline-end:.45em;
    border:1px solid #777; border-radius:50%; vertical-align:baseline; }
.ch-option-black { background:#202020; }
.ch-option-white { background:#fff; }
.ch-product-stock:has([data-state="mixed"]) { background:var(--ch-preorder); color:var(--ch-preorder-text); }
.ch-product-stock:has([data-state="out"]), .ch-product-stock:has([data-state="limit"]) { background:#f5eeee; color:#762e28; }

.catalog-product-view main:has([data-vivid-gallery]) #gallery-main { --gallery-ratio:1.40; }
.catalog-product-view #gallery-main [id^="gallery-slide-"] > button > img.ch-vivid-overview {
    object-fit:cover; object-position:center top; transform:none;
}
.ch-product-info .ch-product-stock:has([data-ch-native-stock]:not([hidden]) .stock.unavailable),
.ch-product-info .ch-product-stock:has([data-state="out"],[data-state="limit"]) {
    background:#f0f1f0; color:#393d3b;
}
.ch-product-info .ch-product-stock:has([data-state="preorder"],[data-state="mixed"]) {
    background:var(--ch-preorder); color:var(--ch-preorder-text);
}
@media (max-width:767px) {
    .ch-product-purchase #product-addtocart-button { min-height:48px; line-height:1.25; padding-block:8px; }
    .ch-product-purchase #product-addtocart-button svg { flex-shrink:0; }
}
