.home-color-families { background:var(--reton-soft); }
.color-family-filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px; }
.color-family-filters button { display:flex; gap:10px; align-items:center; min-height:44px; padding:10px 18px; border:1px solid var(--reton-line); border-radius:6px; background:#fff; color:var(--reton-ink); font:inherit; font-size:14px; }
.color-family-filters button[aria-pressed=true] { background:var(--reton-green); border-color:var(--reton-green); color:#fff; }
.color-family-filters span { font-size:12px; }
[data-family-type][hidden] { display:none!important; }
.color-family-card { height:100%; }
.color-family-card__cover { padding:0; border:0; background:#fff; width:100%; overflow:hidden; border-radius:10px 10px 0 0; }
.color-family-card__cover img { display:block; width:100%; aspect-ratio:1; height:auto; object-fit:cover; }
.color-family-card__swatches { display:flex; flex-wrap:wrap; gap:5px; align-items:center; margin:8px 0 18px; }
.color-family-card__swatches i { width:20px; height:20px; border-radius:50%; border:1px solid #8e9a89; }
.color-family-card__swatches span { margin-left:4px; font-size:12px; color:var(--reton-muted); }
.color-family-card__swatches a { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; flex-shrink:0; }
.color-family-card__swatches a:hover,.color-family-card__swatches a:focus-visible { outline:2px solid var(--reton-green); outline-offset:1px; }
.color-family-card__swatches a i { display:block; }
@media(pointer:coarse) { .color-family-card__swatches a { width:36px; height:36px; } }
.color-family-card .shop-card__bottom { margin-top:auto; min-height:58px; align-content:flex-end; align-items:baseline; }
.color-family-card .shop-card__bottom > strong { max-width:100%; overflow-wrap:anywhere; }
.color-family-card .shop-card__bottom > small { line-height:1.4; }
.color-family-card .shop-card__add { margin-top:0; flex-shrink:0; }
.color-family-dialog .modal-dialog { max-width:1200px; margin:24px auto; padding-inline:12px; height:calc(100% - 48px); }
.color-family-dialog .modal-content { background:var(--reton-paper); border-radius:12px; }
.color-family-dialog .modal-title { font-size:23px; }
.color-family-dialog .modal-body { padding:26px; }
.color-family-detail { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; }
.color-family-detail__sticky { position:sticky; top:0; }
.color-family-page .color-family-detail__sticky { top:80px; }
.color-family-page .modal-body { padding:0; }
.color-family-page__heading { display:flex; gap:20px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin:20px 0 30px; }
.color-family-page__heading h1 { font-size:32px; }
.product-catalog-family { margin:20px 0; padding-top:16px; border-top:1px solid var(--reton-line); }
.color-family-select-label { display:block; margin-bottom:8px; font-size:14px; font-weight:600; }
.product-catalog-family select { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--reton-line); border-radius:6px; color:var(--reton-ink); background:white; font:inherit; }
.product-catalog-family > p { font-size:12px; color:var(--reton-muted); }
.product-catalog-family h3 { font:600 15px var(--reton-body); margin:18px 0 10px; }
.product-color-guidance { border-top:1px solid var(--reton-line); padding-top:18px; margin-top:22px; }
.product-mobile-purchase { display:none; }
@media(max-width:767px) {
 body.has-mobile-purchase { padding-bottom:calc(90px + env(safe-area-inset-bottom)); }
 .product-mobile-purchase:not([hidden]) { position:fixed; z-index:80; inset:auto 0 0; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 20px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--reton-line); background:var(--reton-paper); box-shadow:0 -4px 18px #20342a12; }
 .product-mobile-purchase > div { min-width:0; }
 .product-mobile-purchase span { display:block; font-size:11px; color:var(--reton-muted); }
 .product-mobile-purchase strong { display:block; font-size:17px; }
 .product-mobile-purchase .button { min-height:46px; padding:12px 16px; font-size:13px; flex-shrink:0; }
}
.color-catalog-product .product-gallery__main-image { object-fit:cover; padding:0; }
.color-catalog-product .product-gallery__main-wrap { min-height:0; }
.color-catalog-product .product-gallery__stage > p { padding:12px 16px; margin:0; }
@media(min-width:992px) {
 .color-catalog-product .product-main-row > :first-child { display:block; }
 .color-catalog-product .product-gallery__stage { position:sticky; top:80px; }
 .color-catalog-product .product-main-row .product-gallery__main-wrap { min-height:0; }
 .color-catalog-product .product-main-row .product-gallery__main-image { position:static; height:min(740px,calc(100dvh - 150px)); min-height:320px; }
}
@media(min-width:768px) and (max-width:991px) {
 .color-catalog-product .product-gallery__main-image { height:620px; }
}
@media(max-width:767px) {
 .color-catalog-product .product-gallery__main-image { height:clamp(360px,110vw,520px); }
}
.color-family-detail__sticky img { width:100%; height:min(440px,50dvh); object-fit:cover; border-radius:10px; }
.color-family-detail__sticky p { font-size:12px; margin-top:12px; color:var(--reton-muted); }
.color-family-detail__summary > p { font-size:14px; }
.color-family-selected { display:flex; gap:10px; flex-wrap:wrap; align-items:center; padding-block:15px; border-block:1px solid var(--reton-line); margin:16px 0; }
.color-family-selected i { width:34px; height:34px; border:1px solid #8e9a89; border-radius:4px; }
.color-family-selected strong { font-size:15px; }
.color-family-selected span { font-size:12px; }
.color-family-detail h3 { font-size:15px; margin:18px 0 10px; }
.color-family-swatches { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.color-family-swatches button { min-width:0; padding:4px; border:2px solid transparent; border-radius:5px; background:transparent; color:var(--reton-ink); text-align:left; }
.color-family-swatches button[aria-pressed=true] { border-color:var(--reton-green); }
.color-family-swatches i { display:block; height:42px; width:100%; border:1px solid #8e9a89; border-radius:3px; }
.color-family-swatches span,.color-family-swatches small { display:block; font-size:11px; line-height:1.4; margin-top:4px; overflow-wrap:anywhere; }
#color-dialog-guidance { font-size:12px; margin:18px 0; }
.color-family-compatible { display:flex; gap:10px; flex-wrap:wrap; }
.color-family-compatible > strong { width:100%; }
.color-family-compatible > span { display:flex; align-items:center; gap:6px; }
.color-family-compatible i { width:20px; height:20px; border:1px solid #8e9a89; border-radius:3px; }
.color-family-palettes { margin-top:28px; }
.color-family-palettes h2 { font-size:23px; }
.color-family-palettes > p,.color-family-tips,.color-family-disclaimer { font-size:13px; }
.color-family-palette-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.color-family-palette-grid article { border-top:1px solid var(--reton-line); padding-top:12px; }
.color-family-palette-grid h3 { font-size:16px; }
.color-family-palette-grid p,.color-family-palette-grid small { display:block; font-size:12px; }
.color-family-palette-colors { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.color-family-palette-color { min-width:0; }
.color-family-palette-swatch { display:block; height:60px; border-radius:4px; margin-bottom:8px; }
.color-family-palette-name { display:block; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.color-family-palette-grid .color-family-palette-code { margin-top:3px; color:var(--reton-muted); }
.color-family-tips { margin-top:26px; border-top:1px solid var(--reton-line); padding-top:16px; }
.color-family-tips summary { font-weight:600; cursor:pointer; }
.color-family-tips p { margin-top:12px; }
.color-family-disclaimer { color:var(--reton-muted); margin-top:20px; }
.color-catalog-product[data-package-image="true"] .product-gallery__main-image { object-fit:contain; padding:22px; background:#fff; }
.home-color-families button:focus-visible,.color-family-dialog button:focus-visible { outline:3px solid var(--reton-green); outline-offset:3px; }
@media(max-width:767px) {
 .color-family-detail { grid-template-columns:minmax(0,1fr); gap:16px; }
 .color-family-detail__sticky { position:static; }
 .color-family-dialog .modal-body { padding:16px; }
 .color-family-dialog .modal-title { font-size:20px; }
 .color-family-palette-grid { grid-template-columns:1fr; }
 .color-family-swatches { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .color-family-swatches button { min-height:65px; }
 .color-family-filters button { font-size:13px; padding:9px 12px; }
 .color-family-card__swatches i { width:16px; height:16px; }
}
