
/*
 * Карточка товара + калькулятор Planeta Furniture v4.0.10 в шаблоне plameb.
 * Дизайн-источник: утвержденный Figma product_card.pdf.
 */
.product-page {
    --text: var(--color-text);
    --muted: var(--color-muted);
    --line: var(--color-border);
    --dark: #242424;
    padding-top: 18px;
}
.product-page .eyebrow { color: var(--color-muted); font-size: 12px; }
.product-page .button--primary { background: #242424; color: #fff; border-color: #242424; }
.product-page .button--secondary { background: #fff; color: #242424; border-color: #8d8d8d; }
.product-page .button--wide { width: 100%; }
.product-page .sr-only {
    position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
    overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}

.product-page { padding-bottom: 80px; }
.product-main--configurator { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr); gap: 34px; align-items: start; }
.product-visual-column { min-width: 0; align-self: start; }
.product-config-column { min-width: 0; }

.product-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.product-gallery__thumbs { display: grid; align-content: start; gap: 9px; }
.product-gallery__thumb { width: 76px; aspect-ratio: 1; padding: 5px; border: 1px solid transparent; border-radius: 10px; background: #ece9e3; cursor: pointer; }
.product-gallery__thumb.is-active { border-color: var(--dark); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__stage { position: relative; min-height: clamp(460px, 58vh, 620px); border: 1px solid var(--line); border-radius: 16px; background: #f3f1ed; display: grid; place-items: center; overflow: hidden; }
.product-gallery__stage img { width: 94%; height: 94%; object-fit: contain; }
.product-gallery__counter { position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.88); font-size: 12px; }

.product-info h1 { margin: 3px 0 8px; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.04em; font-weight: 560; }
.product-info__lead { margin: 0 0 14px; max-width: 760px; color: var(--muted); line-height: 1.5; }
.product-rating { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 9px 14px; font-size: 12px; color: var(--muted); }
.product-rating strong { color: var(--text); }

.configurator { min-width: 0; display: grid; gap: 10px; }
.config-card { min-width: 0; padding: 16px; border: 1px solid #eee9e1; border-radius: 14px; background: #f4f1eb; }
.config-card__head { margin-bottom: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.config-card__head h2 { margin: 0; font-size: 15px; line-height: 1.2; }
.config-card__head small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.config-card__step { padding: 4px 8px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 10px; white-space: nowrap; }
.dimension-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; align-items: start; }
.dimension-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.field-label { display: grid; gap: 6px; color: #57534e; font-size: 11px; }
.field-label__text { color: #36332f; font-weight: 650; }
.field-label select, .field-label input, .field-label textarea { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #ded8cf; border-radius: 9px; background: #fff; color: var(--text); }
.field-label textarea { padding-top: 10px; resize: vertical; }

.dimension-picker { position: relative; min-width: 0; }
.dimension-picker__select { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.dimension-picker__trigger { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #ded8cf; border-radius: 9px; background: #fff; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; font: inherit; }
.dimension-picker__trigger:hover, .dimension-picker__trigger[aria-expanded="true"] { border-color: #a49d93; }
.dimension-picker__trigger:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.dimension-picker__chevron { color: #6d675f; font-size: 15px; transition: transform .16s; }
.dimension-picker__trigger[aria-expanded="true"] .dimension-picker__chevron { transform: rotate(180deg); }
.dimension-picker__popover { position: absolute; z-index: 45; top: calc(100% + 8px); left: 0; width: min(280px, calc(100vw - 40px)); padding: 16px; border: 1px solid #ded8cf; border-radius: 12px; background: #fff; box-shadow: 0 18px 42px rgba(31,27,23,.22); }
.dimension-picker:nth-child(3) .dimension-picker__popover { right: 0; left: auto; }
.dimension-picker__popover[hidden] { display: none; }
.dimension-picker__head { margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dimension-picker__head strong { font-size: 12px; }
.dimension-picker__head output { color: #23211f; font-size: 18px; font-weight: 700; }
.dimension-picker__range-wrap { position: relative; padding: 7px 0; }
.dimension-picker__range-wrap::before { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 4px; transform: translateY(-50%); background: radial-gradient(circle, #1d1d1d 1.5px, transparent 1.7px) 0 50% / 10% 100% repeat-x; pointer-events: none; opacity: .85; }
.dimension-picker__range { --dimension-progress: 0%; position: relative; z-index: 1; width: 100%; height: 22px; min-height: 22px !important; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; appearance: none; cursor: pointer; }
.dimension-picker__range::-webkit-slider-runnable-track { height: 3px; border-radius: 999px; background: linear-gradient(to right, #1d1d1d 0 var(--dimension-progress), #d7d0c7 var(--dimension-progress) 100%); }
.dimension-picker__range::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7.5px; border: 4px solid #fff; border-radius: 50%; background: #1d1d1d; box-shadow: 0 0 0 1px #1d1d1d; appearance: none; }
.dimension-picker__range::-moz-range-track { height: 3px; border-radius: 999px; background: #d7d0c7; }
.dimension-picker__range::-moz-range-progress { height: 3px; border-radius: 999px; background: #1d1d1d; }
.dimension-picker__range::-moz-range-thumb { width: 12px; height: 12px; border: 4px solid #fff; border-radius: 50%; background: #1d1d1d; box-shadow: 0 0 0 1px #1d1d1d; }
.dimension-picker__scale { margin-top: -2px; display: flex; justify-content: space-between; color: #8b857d; font-size: 9px; }
.dimension-picker__manual { margin-top: 12px; display: grid; gap: 6px; }
.dimension-picker__manual span { color: #6d675f; font-size: 10px; }
.dimension-picker__manual input { min-height: 48px; border-color: #938b80; font-size: 14px; font-weight: 650; text-align: center; }
.dimension-picker__popover > small { display: block; margin-top: 8px; color: #aaa39a; font-size: 9px; line-height: 1.35; text-align: center; }

.material-line { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(220px, 1fr); gap: 12px; align-items: center; }
.segmented { padding: 3px; border-radius: 10px; background: #e6e1d9; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.segmented label { position: relative; min-height: 38px; padding: 0 10px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; font-size: 11px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: #1d1d1d; color: #fff; font-weight: 650; }
.segmented--wrap { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0,1fr)); }
.segmented--wrap label { background: #fff; color: var(--text); border: 1px solid transparent; }
.segmented--wrap label:has(input:checked) { background: #fff; color: var(--text); border-color: var(--dark); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches--inline { align-items: center; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch__dot { width: 28px; height: 28px; border: 3px solid #fff; border-radius: 50%; display: block; box-shadow: 0 0 0 1px #cfc8be; background-color: var(--swatch, #ddd); background-image: var(--swatch-image, none); background-position: center; background-size: cover; }
.swatch input:checked + .swatch__dot { box-shadow: 0 0 0 2px var(--dark); }
.swatch__name { position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); padding: 4px 7px; border-radius: 6px; background: var(--dark); color: #fff; font-size: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .15s; }
.swatch:hover .swatch__name { opacity: 1; }

.config-subgroup { margin-top: 14px; }
.config-subgroup[hidden] { display: none !important; }
.config-subgroup__title { margin-bottom: 9px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 650; }
.config-subgroup__title small { color: var(--muted); font-size: 10px; font-weight: 400; }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.config-slider { position: relative; min-width: 0; }
.config-slider__viewport { width: 100%; max-width: 560px; min-width: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; scroll-behavior: smooth; }
.config-slider__viewport::-webkit-scrollbar { display: none; }
.config-slider__viewport:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; border-radius: 10px; }
.config-slider__track { display: flex; flex-wrap: nowrap; width: max-content; min-width: 100%; gap: 12px; padding: 3px 22px 4px 2px; }
.config-slider__arrow { position: absolute; z-index: 4; top: 50px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(126,124,120,.84); color: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.18); cursor: pointer; display: grid; place-items: center; font-size: 28px; line-height: 1; transform: translateY(-50%); transition: opacity .15s, transform .15s, background .15s; }
.config-slider__arrow span { transform: translateY(-1px); }
.config-slider__arrow--prev { left: 4px; }
.config-slider__arrow--next { right: 4px; }
.config-slider__arrow:hover:not(:disabled) { background: rgba(72,70,67,.94); transform: translateY(-50%) scale(1.04); }
.config-slider__arrow:disabled { opacity: 0; pointer-events: none; }
.config-slider__selection { min-height: 34px; margin-top: 8px; display: grid; gap: 2px; }
.config-slider__selection strong { color: #34312d; font-size: 11px; line-height: 1.25; }
.config-slider__selection span { color: var(--muted); font-size: 9px; line-height: 1.35; }
.option-grid--milling, .option-grid--fillings { grid-template-columns: none; max-height: none; overflow: visible; padding-right: 0; }
.option-grid--milling .option-card, .option-grid--fillings .option-card { flex: 0 0 92px; width: 92px; scroll-snap-align: start; }
.option-card[hidden] { display: none !important; }
.option-card { position: relative; min-height: 96px; padding: 7px; border: 1px solid #5e5a54; border-radius: 10px; background: #fff; cursor: pointer; display: grid; place-items: center; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.option-card:hover { transform: translateY(-1px); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card:has(input:checked) { border-color: var(--dark); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--dark); }
.option-card img { width: 100%; height: 78px; object-fit: contain; }
.option-card__placeholder { width: 100%; height: 78px; padding: 8px; border: 1px solid #d8d1c7; background: linear-gradient(135deg, #fafafa, #e8e5e0); display: grid; place-items: center; color: #57524b; font-size: 9px; line-height: 1.2; text-align: center; }
.option-card--milling, .option-card--filling { min-height: 96px; }
.option-card--milling img, .option-card--filling img { height: 78px; }

.config-options-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.mirror-options { position: relative; margin-top: 14px; padding: 12px; border: 1px solid #ded8cf; border-radius: 12px; background: rgba(255,255,255,.48); overflow: hidden; }
.mirror-options__content { display: grid; gap: 12px; }
.mirror-options__content .config-subgroup { margin-top: 0; }
.mirror-options__overlay { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(244,241,235,.80); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); text-align: center; }
.mirror-options__overlay[hidden] { display: none !important; }
.mirror-options__overlay span { max-width: 330px; padding: 9px 12px; border: 1px solid rgba(91,84,75,.18); border-radius: 999px; background: rgba(255,255,255,.86); color: #5f5951; box-shadow: 0 4px 14px rgba(43,38,32,.07); font-size: 11px; font-weight: 650; line-height: 1.35; }
.mirror-options.is-disabled .mirror-options__content { opacity: .42; filter: grayscale(.25); }
.configurator-notice { margin-bottom: 12px; padding: 11px 13px; border: 1px solid #dbb98c; border-radius: 10px; background: #fff7e9; font-size: 12px; }

.product-buybox--under-gallery { margin-top: 16px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.06); display: grid; gap: 12px; }
.product-buybox--under-gallery .eyebrow { display: block; margin-bottom: 5px; color: var(--muted); }
.product-buybox--under-gallery > div > small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.product-price { display: block; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; }
.product-buybox__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.config-status { min-height: 36px; padding: 10px 12px; border-radius: 9px; background: #f4f1eb; color: #625d55; font-size: 11px; line-height: 1.4; }
.config-status[data-error="1"] { background: #fde7e3; color: #9e2d20; }
.price-breakdown__group { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.price-breakdown__group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.price-breakdown__group-title { margin-bottom: 5px; color: #fff; font-size: 11px; font-weight: 700; }
.price-breakdown__row { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; color: #bdbdbd; font-size: 11px; line-height: 1.35; }
.price-breakdown__row strong { color: #fff; text-align: right; white-space: nowrap; }
.price-breakdown__row small { color: #8f8f8f; }
.price-breakdown__row--total { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.16); }
.buybox-note { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.buybox-note strong { color: var(--text); }


@media (min-width: 1101px) and (min-height: 760px) {
    .product-visual-column {
        position: sticky;
        top: 92px;
        max-height: calc(100vh - 108px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        padding-right: 3px;
    }
}

.technical-calculation { position: fixed; z-index: 90; right: 18px; bottom: 18px; pointer-events: none; }
.technical-calculation__launcher,
.technical-calculation__panel { pointer-events: auto; }
.technical-calculation__launcher { min-width: 132px; padding: 11px 14px; border: 0; border-radius: 12px; background: #1e1e1e; color: #fff; box-shadow: 0 14px 38px rgba(0,0,0,.25); cursor: pointer; display: grid; gap: 1px; text-align: left; }
.technical-calculation__launcher span { font-size: 12px; font-weight: 750; }
.technical-calculation__launcher small { color: #a7a7a7; font-size: 9px; }
.technical-calculation__launcher[hidden] { display: none; }
.technical-calculation__panel { width: min(760px, calc(100vw - 28px)); max-height: min(82vh, 820px); border: 1px solid #3b3b3b; border-radius: 14px; background: #181818; color: #fff; box-shadow: 0 22px 60px rgba(0,0,0,.38); overflow: hidden; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
.technical-calculation__panel[hidden] { display: none; }
.technical-calculation__header { padding: 13px 14px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.technical-calculation__header strong { display: block; font-size: 13px; }
.technical-calculation__header small { display: block; margin-top: 2px; color: #909090; font-size: 9px; }
.technical-calculation__header button { width: 30px; height: 30px; border: 1px solid #444; border-radius: 8px; background: #262626; color: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.technical-calculation__status { padding: 9px 14px; background: #252525; color: #d0d0d0; font-size: 10px; line-height: 1.4; }
.technical-calculation__status[data-error="1"] { background: #4a211d; color: #ffb7ad; }
.technical-calculation__summary { padding: 10px 14px 0; display: grid; gap: 4px; color: #c5c5c5; font-size: 10px; }
.technical-calculation__summary:empty { display: none; }
.technical-calculation__body { min-height: 0; padding: 10px 14px 14px; overflow-y: auto; scrollbar-width: thin; }
.technical-calculation__empty { padding: 12px; border: 1px dashed #454545; border-radius: 9px; color: #999; font-size: 10px; line-height: 1.5; }
.technical-calculation__raw { border-top: 1px solid #333; }
.technical-calculation__raw summary { padding: 10px 14px; cursor: pointer; color: #aaa; font-size: 10px; }
.technical-calculation__raw pre { max-height: 220px; margin: 0; padding: 12px 14px; overflow: auto; background: #101010; color: #b9d6a2; font: 9px/1.45 Inter, sans-serif; white-space: pre-wrap; word-break: break-word; }


.price-breakdown__group { margin-top: 12px; padding-top: 0; border: 1px solid #353535; border-radius: 11px; background: #202020; overflow: hidden; }
.price-breakdown__group:first-child { margin-top: 0; padding-top: 0; border-top: 1px solid #353535; }
.price-breakdown__group-heading { padding: 11px 12px 9px; border-bottom: 1px solid #343434; background: #242424; }
.price-breakdown__group-title { margin: 0; color: #fff; font-size: 12px; font-weight: 750; }
.price-breakdown__group-heading small { display: block; margin-top: 3px; color: #969696; font-size: 9px; line-height: 1.4; }
.price-breakdown__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-bottom: 1px solid #303030; color: #d2d2d2; font-size: 10px; line-height: 1.35; }
.price-breakdown__row:last-child { border-bottom: 0; }
.price-breakdown__row span { min-width: 0; }
.price-breakdown__row small { color: #929292; font-size: 9px; }
.price-breakdown__row strong { flex: 0 0 auto; color: #fff; font-size: 10px; white-space: nowrap; }
.price-breakdown__row--total { margin-top: 0; padding-top: 9px; border-top: 0; background: #2b2b2b; font-size: 12px; }
.price-breakdown__row--total strong { font-size: 13px; }

.calculation-detail { border-top: 1px solid #363636; }
.calculation-detail__head,
.calculation-detail__row { display: grid; grid-template-columns: minmax(220px, 1fr) 66px 82px 84px 90px; gap: 8px; align-items: start; }
.calculation-detail__head { padding: 7px 12px; background: #1a1a1a; color: #797979; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.calculation-detail__row { padding: 9px 12px; border-top: 1px solid #303030; color: #cfcfcf; font-size: 9px; }
.calculation-detail__row:first-of-type { border-top: 0; }
.calculation-detail__name { min-width: 0; }
.calculation-detail__name strong { display: block; color: #f2f2f2; font-size: 10px; line-height: 1.3; }
.calculation-detail__name small { display: block; margin-top: 3px; color: #888; font-size: 8px; line-height: 1.45; word-break: break-word; }
.calculation-detail__quantity { display: grid; gap: 1px; }
.calculation-detail__quantity span { color: #eee; }
.calculation-detail__quantity small { color: #777; font-size: 8px; }
.calculation-detail__area,
.calculation-detail__rate,
.calculation-detail__cost { white-space: nowrap; }
.calculation-detail__cost { color: #fff; font-size: 9px; text-align: right; }
.calculation-detail__empty { padding: 11px 12px; border-top: 1px solid #333; color: #858585; font-size: 9px; line-height: 1.45; }

.filling-calculation-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 9px 12px; border-bottom: 1px solid #333; }
.filling-calculation-sections__item { padding: 8px; border: 1px solid #383838; border-radius: 8px; background: #1b1b1b; display: grid; gap: 2px; }
.filling-calculation-sections__item strong { color: #f1f1f1; font-size: 9px; }
.filling-calculation-sections__item span { color: #bdbdbd; font-size: 8px; }
.filling-calculation-sections__item small { color: #7f7f7f; font-size: 8px; line-height: 1.35; }

@media (max-width: 680px) {
    .technical-calculation { right: 10px; bottom: 10px; }
    .technical-calculation__panel { width: calc(100vw - 20px); max-height: 86vh; }
    .calculation-detail__head { display: none; }
    .calculation-detail__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
    .calculation-detail__name { grid-column: 1 / -1; }
    .calculation-detail__quantity,
    .calculation-detail__area,
    .calculation-detail__rate { display: inline-flex; gap: 3px; align-items: baseline; color: #aaa; }
    .calculation-detail__cost { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
    .filling-calculation-sections { grid-template-columns: 1fr; }
}

.product-tabs { margin-top: 64px; }
.tabs-nav { border-bottom: 1px solid var(--line); display: flex; gap: 26px; }
.tabs-nav button { padding: 0 0 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; color: var(--muted); }
.tabs-nav button.is-active { color: var(--text); border-color: var(--text); }
.tabs-panel { max-width: 960px; padding: 26px 0; color: #56544f; line-height: 1.65; }
.tabs-panel[hidden] { display: none; }


/* v4.0 — переключатель товаров-модулей */
.section-switcher{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.section-switcher__button{border:1px solid #c9c5bf;background:#fff;border-radius:999px;padding:10px 16px;cursor:pointer;font:inherit}.section-switcher__button.is-active{background:#222;color:#fff;border-color:#222}.section-filling-panel__meta{display:flex;gap:10px 18px;flex-wrap:wrap;align-items:baseline;margin-bottom:12px}.section-filling-panel__meta span{font-size:13px;color:#68645f}


/* Approved product-card composition: compact, light, without decorative cards. */
.product-page { padding-bottom: 64px; }
.product-main--configurator {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 1fr);
    gap: 28px;
}
.product-gallery { grid-template-columns: 86px minmax(0, 1fr); gap: 12px; }
.product-gallery__thumbs { gap: 8px; }
.product-gallery__thumb {
    width: 86px;
    border-radius: 6px;
    background: #f4f4f4;
}
.product-gallery__stage {
    min-height: 590px;
    border: 0;
    border-radius: 7px;
    background: #f4f4f4;
}
.product-gallery__counter { display: none; }

.product-info h1 {
    margin: 0 0 4px;
    font-size: clamp(30px, 3.1vw, 42px);
    line-height: 1.08;
    letter-spacing: -.025em;
    font-weight: 700;
}
.product-info__lead { margin-bottom: 10px; color: #4e4e4e; font-size: 13px; }
.product-rating {
    padding-bottom: 14px;
    margin-bottom: 0;
    border-bottom: 1px solid #dcdcdc;
    justify-content: flex-end;
}

.configurator { gap: 0; }
.config-card {
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid #dedede;
    border-radius: 0;
    background: transparent;
}
.config-card__head { margin-bottom: 10px; align-items: center; }
.config-card__head h2 { font-size: 18px; }
.config-card__head small { font-size: 12px; }
.config-card__step { display: none; }
.dimension-grid { gap: 10px; }
.field-label { font-size: 12px; }
.field-label select, .field-label input, .field-label textarea,
.dimension-picker__trigger {
    min-height: 40px;
    border-radius: 5px;
    border-color: #bdbdbd;
}
.material-line {
    grid-template-columns: minmax(130px, auto) minmax(0, 1fr);
    gap: 14px;
}
.segmented { background: transparent; padding: 0; display: flex; gap: 8px; }
.segmented label {
    min-width: 70px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #c7c7c7;
    border-radius: 5px;
    background: #fff;
}
.segmented label:has(input:checked) {
    background: #fff;
    color: #242424;
    border-color: #242424;
    box-shadow: inset 0 0 0 1px #242424;
}
.swatches { gap: 12px; }
.swatch__dot { width: 32px; height: 32px; }
.option-card {
    min-height: 105px;
    border-color: #d1d1d1;
    border-radius: 6px;
}
.option-card:has(input:checked) {
    border-color: #242424;
    box-shadow: inset 0 0 0 1px #242424;
}
.config-slider__arrow {
    width: 26px; height: 26px; top: 48px; background: rgba(36,36,36,.72); font-size: 20px;
}
.product-buybox--under-gallery {
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 10px;
}
.product-buybox--under-gallery .eyebrow { display: none; }
.product-price {
    font-size: 34px;
    font-weight: 750;
}
.product-buybox__actions {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.product-buybox__actions .button { min-height: 44px; border-radius: 5px; font-size: 14px; }
.config-status {
    min-height: 0;
    padding: 6px 0;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
}
.buybox-note { display: none; }

.product-tabs { margin-top: 54px; }
.tabs-nav { gap: 34px; border-bottom: 0; }
.tabs-nav button { font-size: 16px; }
.tabs-panel { max-width: none; }

@media (min-width: 1101px) and (min-height: 760px) {
    .product-visual-column {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}
@media (max-width: 1100px) {
    .product-main--configurator { grid-template-columns: 1fr; }
    .product-gallery__stage { min-height: 520px; }
}
@media (max-width: 720px) {
    .product-gallery { grid-template-columns: 1fr; }
    .product-gallery__thumbs {
        grid-template-columns: repeat(5, 64px);
        overflow-x: auto;
        order: 2;
    }
    .product-gallery__thumb { width: 64px; }
    .product-gallery__stage { min-height: 420px; }
    .dimension-grid { grid-template-columns: 1fr; }
    .material-line { grid-template-columns: 1fr; }
    .product-buybox__actions { grid-template-columns: 1fr; }
}

/* ================================================================
   Approved product-card alignment: numbered configurator steps,
   configuration summary and final information tabs.
   Calculation logic is unchanged.
   ================================================================ */
.config-card__head {
    justify-content: flex-start;
}
.config-card__number {
    width: 26px;
    flex: 0 0 26px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}
.config-card__head > div {
    min-width: 0;
    flex: 1 1 auto;
}
.config-card__head h2 {
    display: inline;
    margin-right: 8px;
}
.config-card__head small {
    display: inline;
    margin-top: 0;
}

.product-delivery-row,
.product-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 40px;
    border-top: 1px solid #dedede;
    color: #4e4e4e;
    font-size: 12px;
}
.product-delivery-row a,
.product-payment-row a {
    flex: 0 0 auto;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.product-config-summary {
    padding: 14px 0;
    border-top: 1px solid #dedede;
}
.product-config-summary__title {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
}
.product-config-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
    color: #555;
    font-size: 11px;
    line-height: 1.35;
}
.product-config-summary__grid span {
    min-width: 0;
}
.product-config-summary__grid b {
    color: #363636;
    font-weight: 500;
}
.product-config-summary__grid em {
    font-style: normal;
}

.individual-calculation {
    margin-top: 16px;
    padding: 20px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 7px !important;
    background: #f7f7f7 !important;
}
.individual-calculation__intro h2 {
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1.2;
}
.individual-calculation__intro p {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.individual-calculation__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    border-radius: 5px;
}
.individual-calculation__note {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.product-characteristics {
    display: grid;
    max-width: 760px;
    margin: 0;
}
.product-characteristics > div {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.product-characteristics dt { color: var(--muted); }
.product-characteristics dd { margin: 0; color: var(--text); }

@media (max-width: 720px) {
    .product-config-summary__grid { grid-template-columns: 1fr; }
    .config-card__head { flex-wrap: wrap; }
    .config-card__number { width: 22px; flex-basis: 22px; }
}


/* =====================================================================
   2026-08-20 — approved detailed product page (1440px Figma export)
   Visual-only alignment. Calculator field names/endpoints/formulas unchanged.
   ===================================================================== */

.product-page {
    padding-top: 0;
    padding-bottom: 0;
}

.product-main--configurator {
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.product-visual-column,
.product-config-column {
    min-width: 0;
}

/* Gallery */
.product-gallery {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
}
.product-gallery__thumbs {
    max-height: 630px;
    gap: 11px;
    overflow-y: auto;
    scrollbar-width: none;
    overscroll-behavior: contain;
}
.product-gallery__thumbs::-webkit-scrollbar {
    display: none;
}
.product-gallery__thumb {
    position: relative;
    width: 112px;
    height: 149px;
    aspect-ratio: auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #f3f3f3;
    overflow: hidden;
}
.product-gallery__thumb.is-active {
    border-color: #242424;
}
.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery__stage {
    height: 630px;
    min-height: 630px;
    border: 0;
    border-radius: 7px;
    background: #f3f3f3;
}
.product-gallery__stage > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery__stage > img.is-scheme {
    padding: 36px;
    object-fit: contain;
}
.product-gallery__favorite {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.product-gallery__favorite::before {
    content: "♡";
    display: block;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
    text-shadow: 0 1px 5px rgb(0 0 0 / 18%);
}
.product-gallery__favorite[aria-pressed="true"]::before {
    content: "♥";
}

/* Left price / buy block */
.product-buybox--under-gallery {
    margin-top: 14px;
    gap: 10px;
}
.product-price-block {
    display: grid;
    gap: 5px;
}
.product-price-block__row {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 39px;
}
.product-price {
    font-size: 34px;
    font-weight: 760;
    line-height: 1;
    letter-spacing: -.02em;
}
.product-old-price {
    color: #8f8f8f;
    font-size: 14px;
}
.product-discount {
    padding: 5px 10px;
    border-radius: 6px;
    background: #f5eee4;
    color: #b7854f;
    font-size: 13px;
}
.product-installment {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4e4e4e;
    font-size: 12px;
}
.product-inline-info {
    display: inline-grid;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    place-items: center;
    border: 1px solid #d3a05e;
    border-radius: 50%;
    color: #c28743;
    font-size: 10px;
    font-style: normal;
    line-height: 1;
}
.product-buybox__actions {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 3px;
}
.product-buybox__actions .button {
    min-height: 44px;
    border-radius: 5px;
    font-size: 14px;
}
.product-delivery-row {
    min-height: 44px;
    padding: 0;
    border-top: 0;
    border-bottom: 1px solid #dedede;
}
.product-delivery-row__main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #565656;
    font-size: 12px;
}
.product-delivery-row__main strong {
    color: #242424;
    font-weight: 500;
}
.product-delivery-row__icon {
    display: inline-flex;
    color: #444;
}
.product-delivery-row__price {
    margin-left: auto;
    color: #242424;
    font-size: 12px;
    white-space: nowrap;
}
.product-config-summary {
    padding: 2px 0 10px;
    border-top: 0;
    border-bottom: 1px solid #dedede;
}
.product-config-summary__title {
    margin-bottom: 7px;
    font-size: 12px;
}
.product-config-summary__grid {
    gap: 5px 22px;
    font-size: 10.5px;
    line-height: 1.35;
}
.product-config-summary__grid b {
    color: #676767;
    font-weight: 400;
}
.product-config-summary__grid em {
    color: #3d3d3d;
}
.product-payment-row {
    min-height: 42px;
    padding: 0 10px;
    border-top: 0;
    background: #f7f7f7;
    font-size: 10px;
}
.product-payment-row__marks {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    color: #8f8f8f;
}
.product-payment-row__marks > span {
    min-height: 19px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff;
    display: inline-flex;
    align-items: center;
}
.product-payment-row a {
    font-size: 9px;
    text-decoration: none;
}

/* Product heading/meta */
.product-info h1 {
    margin: -2px 0 7px;
    font-size: 31px;
    line-height: 1.1;
    letter-spacing: -.015em;
    font-weight: 700;
}
.product-info__lead {
    margin: 0 0 13px;
    color: #444;
    font-size: 13px;
    line-height: 1.45;
}
.product-meta {
    min-height: 37px;
    padding-bottom: 13px;
    border-bottom: 1px solid #d8d8d8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #8c8c8c;
    font-size: 11px;
}
.product-article {
    min-width: 0;
}
.product-rating {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8c8c8c;
    font-size: 11px;
    white-space: nowrap;
}
.product-rating strong {
    color: #858585;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Configurator rows */
.configurator {
    gap: 0;
}
.config-card {
    margin: 0;
    padding: 16px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.config-card__head {
    min-height: 30px;
    margin: 0 0 10px;
    gap: 8px;
    align-items: baseline;
}
.config-card__number {
    width: auto;
    flex: 0 0 auto;
    color: #c9c9c9;
    font-size: 12px;
    font-weight: 400;
}
.config-card__head > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 14px;
}
.config-card__head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.config-card__head small {
    margin: 0;
    color: #3f3f3f;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}
.config-card__step {
    display: none;
}

/* 01 Size = one horizontal row, just like the approved export */
.config-card--dimensions {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 22px;
    align-items: center;
}
.config-card--dimensions .config-card__head {
    margin-bottom: 0;
}
.dimension-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.field-label.dimension-picker {
    display: grid;
    grid-template-columns: auto 88px;
    align-items: center;
    gap: 8px;
    color: #393939;
    font-size: 13px;
}
.dimension-picker .field-label__text {
    color: #3e3e3e;
    font-weight: 400;
}
.dimension-picker__trigger {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #666;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
}
.dimension-picker__popover {
    z-index: 60;
}
.config-inline-note {
    grid-column: 1 / -1;
    min-height: 38px;
    margin: 10px 0 0;
    padding: 0 12px;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #565656;
    font-size: 11px;
    line-height: 1.35;
}
.config-inline-note a {
    color: #404040;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 02/03 material rows */
.material-line {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}
.segmented {
    display: flex;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}
.segmented label {
    min-width: 80px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    background: #fff;
    color: #353535;
    font-size: 12px;
}
.segmented label:has(input:checked) {
    border-color: #242424;
    background: #fff;
    color: #242424;
    box-shadow: none;
    font-weight: 500;
}
.segmented label:has(input:disabled) {
    color: #d0d0d0;
    border-color: #e7e7e7;
}
.swatches {
    min-width: 0;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
}
.swatches::-webkit-scrollbar {
    display: none;
}
.swatch {
    flex: 0 0 auto;
}
.swatch__dot {
    width: 36px;
    height: 36px;
    border-width: 2px;
    box-shadow: 0 0 0 1px #cfcfcf;
}
.swatch input:checked + .swatch__dot {
    box-shadow: 0 0 0 1px #242424;
}
.config-row-arrow {
    position: sticky;
    right: 0;
    width: 30px;
    height: 36px;
    flex: 0 0 30px;
    padding: 0;
    border: 0;
    background: linear-gradient(90deg, rgb(255 255 255 / 0%) 0, #fff 35%);
    color: #242424;
    cursor: pointer;
    font: inherit;
    font-size: 21px;
}

/* Milling / filling carousels */
.config-subgroup {
    margin-top: 15px;
}
.config-subgroup__title--selection {
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
    color: #3a3a3a;
    font-size: 13px;
    font-weight: 400;
}
.config-subgroup__title--selection strong {
    font-size: 13px;
    font-weight: 400;
}
.config-subgroup__chevron {
    color: #666;
    font-size: 15px;
}
.config-slider__viewport {
    max-width: none;
    padding-right: 28px;
}
.config-slider__track {
    min-width: max-content;
    gap: 20px;
    padding: 3px 0 4px;
}
.option-grid--milling .option-card {
    flex: 0 0 92px;
    width: 92px;
    min-height: 122px;
}
.option-grid--fillings .option-card {
    flex: 0 0 86px;
    width: 86px;
    min-height: 100px;
}
.option-card {
    padding: 7px 5px 5px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    transform: none;
    overflow: visible;
    filter: grayscale(1);
    opacity: .42;
    transition: opacity .15s ease, filter .15s ease, border-color .15s ease;
}
.option-card:hover {
    transform: none;
    opacity: .7;
}
.option-card:has(input:checked) {
    border-color: #242424;
    box-shadow: none;
    filter: none;
    opacity: 1;
}
.option-card:has(input:disabled) {
    display: none !important;
}
.option-card--milling:has(input:checked) {
    flex-basis: 110px;
    width: 110px;
    min-height: 142px;
}
.option-card--filling:has(input:checked) {
    flex-basis: 110px;
    width: 110px;
    min-height: 116px;
}
.option-card--milling img,
.option-card--milling .option-card__placeholder {
    height: 84px;
}
.option-card--milling:has(input:checked) img,
.option-card--milling:has(input:checked) .option-card__placeholder {
    height: 94px;
}
.option-card--filling img {
    height: 83px;
}
.option-card--filling:has(input:checked) img {
    height: 98px;
}
.filling-miniature {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 83px;
    padding: 7px;
    box-sizing: border-box;
}
.option-card--filling:has(input:checked) .filling-miniature {
    height: 98px;
}
.filling-miniature__drawers,
.filling-miniature__cabinet {
    display: flex;
    flex-direction: column;
    width: 54px;
    height: 100%;
    padding: 3px;
    border: 1px solid #333;
    box-sizing: border-box;
    background: #faf9f6;
}
.filling-miniature__drawers {
    gap: 2px;
}
.filling-miniature__drawers i {
    flex: 1 1 0;
    min-height: 0;
    border: 1px solid #9b765c;
    background: #f6f1ea;
}
.filling-miniature__cabinet {
    position: relative;
}
.filling-miniature__rod {
    position: absolute;
    top: 13px;
    left: 6px;
    right: 6px;
    height: 1px;
    background: #555;
}
.filling-miniature__shelf {
    position: absolute;
    left: 4px;
    right: 4px;
    border-top: 1px solid #9b765c;
}
.option-card__placeholder {
    border: 0;
    background: #fff;
    color: #686868;
}
.option-card__name {
    display: block;
    margin-top: 5px;
    color: #c5c5c5;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
}
.option-card:has(input:checked) .option-card__name {
    color: #333;
}
.config-slider__arrow {
    top: 50%;
    width: 28px;
    height: 38px;
    border-radius: 0;
    background: #fff;
    color: #242424;
    box-shadow: none;
    font-size: 0;
    transform: translateY(-50%);
}
.config-slider__arrow::before {
    content: "→";
    font-size: 21px;
}
.config-slider__arrow--prev::before {
    content: "←";
}
.config-slider__arrow--prev {
    left: -4px;
}
.config-slider__arrow--next {
    right: -2px;
}
.config-slider__arrow:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-50%);
}
.config-slider__arrow:disabled {
    opacity: 0;
}
.section-filling-panel__meta {
    display: none;
}
.section-switcher {
    margin: 0 0 10px 26px;
}
.section-switcher__button {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 11px;
}

/* 05 Extras */
.config-card--extras {
    padding-top: 18px;
}
.config-card--extras .config-card__head {
    align-items: center;
}
.config-card__collapse {
    margin-left: 4px;
    color: #777;
    font-size: 16px;
}
.extras-group {
    display: grid;
    gap: 11px;
}
.extras-group__title {
    color: #3d3d3d;
    font-size: 12px;
}
.extras-group__title strong {
    font-weight: 400;
}
.handle-options {
    display: flex;
    gap: 28px;
    align-items: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
}
.handle-options::-webkit-scrollbar {
    display: none;
}
.handle-option {
    position: relative;
    width: 88px;
    height: 98px;
    flex: 0 0 88px;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    filter: grayscale(1);
    opacity: .42;
    transition: opacity .15s ease, filter .15s ease, border-color .15s ease;
}
.handle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.handle-option:has(input:checked) {
    width: 110px;
    height: 116px;
    flex-basis: 110px;
    border-color: #242424;
    filter: none;
    opacity: 1;
}
.handle-option:has(input:disabled) {
    display: none !important;
}
.handle-option:hover { opacity: .7; }
.handle-option:has(input:checked):hover { opacity: 1; }
.handle-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.handle-option__placeholder {
    position: relative;
    width: 42px;
    height: 72px;
    border: 1px solid #cfcfcf;
}
.handle-option__placeholder::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 17px;
    width: 2px;
    height: 34px;
    transform: translateX(-50%);
    background: #c7c7c7;
}
.handle-option__placeholder > span {
    position: absolute;
    left: 50%;
    top: 34px;
    width: 6px;
    height: 14px;
    transform: translate(-50%, -50%);
    background: #6e6e6e;
}
.mirror-options {
    min-height: 44px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}
.mirror-options__overlay {
    position: static;
    min-height: 44px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}
.mirror-options__overlay > span {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #4d4d4d;
    font-size: 12px;
    font-weight: 400;
}
.mirror-options__overlay a {
    color: #3d3d3d;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.mirror-options__content {
    gap: 10px;
}
.mirror-options.is-disabled .mirror-options__content {
    display: none;
}
.field-label--mirror {
    max-width: 240px;
}

/* Individual calculation */
.individual-calculation {
    margin-top: 7px;
    padding: 17px 18px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f6f6f6 !important;
}
.individual-calculation__intro {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
.individual-calculation__icon {
    width: 36px;
    flex: 0 0 36px;
    color: #323232;
}
.individual-calculation__intro h2 {
    margin: 0 0 4px;
    font-size: 18px;
}
.individual-calculation__intro p {
    margin: 0;
    max-width: 520px;
    color: #4b4b4b;
    font-size: 12px;
    line-height: 1.4;
}
.individual-calculation__field {
    position: relative;
    display: block;
    margin-top: 14px;
}
.individual-calculation__field textarea {
    width: 100%;
    min-height: 76px;
    padding: 12px 38px 12px 12px;
    border: 1px solid #d3d3d3;
    border-radius: 6px;
    background: #fff;
    color: #242424;
    font: inherit;
    font-size: 12px;
    resize: vertical;
}
.individual-calculation__attachment {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid #d7d7d7;
    border-radius: 50%;
    color: #c0c0c0;
}
.individual-calculation__button {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    border-radius: 5px;
}
.individual-calculation__note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #555;
    font-size: 10px;
}

/* Information tabs / characteristics */
.product-tabs {
    margin-top: 62px;
    padding-bottom: 180px;
}
.tabs-nav {
    gap: 34px;
    border-bottom: 0;
}
.tabs-nav button {
    padding: 0 0 10px;
    border-bottom: 2px solid transparent;
    color: #8a8a8a;
    font-size: 15px;
    font-weight: 400;
}
.tabs-nav button.is-active {
    border-color: #242424;
    color: #242424;
    font-weight: 600;
}
.tabs-panel {
    max-width: none;
    padding: 30px 0 0;
    color: #424242;
    font-size: 13px;
}
.product-specification__lead {
    margin: 0 0 17px;
    color: #404040;
    font-size: 13px;
}
.product-specification {
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    gap: 84px;
    align-items: start;
}
.product-specification__visual-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.product-specification__visual-tabs button {
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid #d2d2d2;
    border-radius: 5px;
    background: #fff;
    color: #5d5d5d;
    font: inherit;
    font-size: 11px;
}
.product-specification__visual-tabs button.is-active {
    border-color: #242424;
    color: #242424;
}
.product-specification__visual-tabs button:disabled {
    color: #d4d4d4;
    border-color: #e7e7e7;
}
.product-specification__preview {
    width: 460px;
    height: 306px;
    background: #d2d2d2;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.product-specification__preview img {
    width: 100%;
    height: 100%;
    padding: 24px;
    object-fit: contain;
}
.product-specification__groups {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 30px 72px;
}
.spec-group h3 {
    margin: 0 0 11px;
    color: #242424;
    font-size: 17px;
    line-height: 1.2;
}
.spec-group h3 span {
    margin-right: 7px;
    color: #c9c9c9;
    font-size: 11px;
    font-weight: 400;
}
.spec-group dl {
    display: grid;
    gap: 8px;
    margin: 0;
}
.spec-group dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
}
.spec-group dt {
    color: #454545;
}
.spec-group dd {
    margin: 0;
    color: #353535;
    text-align: right;
}
.spec-group--equipment {
    grid-column: 1;
}

/* Related products: approved placement + light promo strip behind the carousel. */
.product-related {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: #fff;
}
.product-related__container {
    position: relative;
    padding-top: 25px;
    padding-bottom: 18px;
}
.product-related .section-heading {
    position: relative;
    z-index: 4;
    margin-bottom: 16px;
}
.product-related__promo {
    position: absolute;
    z-index: 1;
    top: 168px;
    left: 50%;
    width: 100vw;
    min-height: 74px;
    padding: 0 max(80px, calc((100vw - 1280px) / 2));
    transform: translateX(-50%);
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.product-related__promo-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #242424;
}
.product-related__promo-copy > div > strong,
.product-related__promo-copy > div > span {
    display: block;
}
.product-related__promo-copy > div > strong {
    margin-bottom: 3px;
    font-size: 14px;
}
.product-related__promo-copy > div > span {
    color: #575757;
    font-size: 11px;
}
.product-related__promo > .button {
    min-width: 300px;
    min-height: 42px;
    border-radius: 5px;
}
.product-related__track {
    position: relative;
    z-index: 2;
}
.product-related .slider__arrow {
    z-index: 5;
}

/* Scheme stage mode is toggled by JS when the generated cabinet preview is active. */
.product-gallery__stage:has(> img.is-scheme) {
    background: #f5f5f5;
}

@media (max-width: 1180px) {
    .product-main--configurator {
        grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
    }
    .product-gallery {
        grid-template-columns: 92px minmax(0, 1fr);
    }
    .product-gallery__thumb {
        width: 92px;
        height: 124px;
    }
    .product-gallery__stage {
        height: 550px;
        min-height: 550px;
    }
    .dimension-grid {
        gap: 10px;
    }
    .field-label.dimension-picker {
        grid-template-columns: auto 80px;
    }
    .product-specification {
        grid-template-columns: 390px minmax(0, 1fr);
        gap: 54px;
    }
    .product-specification__preview {
        width: 390px;
    }
}
@media (max-width: 1100px) {
    .product-main--configurator {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        grid-template-columns: 92px minmax(0, 1fr);
    }
    .product-gallery__stage {
        height: min(70vw, 650px);
        min-height: 480px;
    }
    .product-tabs {
        padding-bottom: 90px;
    }
    .product-specification {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .product-specification__preview {
        width: min(100%, 560px);
    }
}
@media (max-width: 720px) {
    .product-gallery {
        grid-template-columns: 1fr;
    }
    .product-gallery__stage {
        order: 1;
        height: 118vw;
        min-height: 420px;
        max-height: 620px;
    }
    .product-gallery__thumbs {
        order: 2;
        grid-template-columns: none;
        grid-auto-columns: 72px;
        grid-auto-flow: column;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .product-gallery__thumb {
        width: 72px;
        height: 92px;
    }
    .product-info h1 {
        font-size: 28px;
    }
    .product-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .config-card--dimensions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .dimension-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .field-label.dimension-picker {
        grid-template-columns: 1fr 110px;
    }
    .material-line {
        grid-template-columns: 1fr;
    }
    .swatches {
        width: 100%;
    }
    .product-buybox__actions {
        grid-template-columns: 1fr;
    }
    .product-config-summary__grid {
        grid-template-columns: 1fr;
    }
    .product-delivery-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 8px 0;
    }
    .tabs-nav {
        gap: 20px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .product-specification__groups {
        grid-template-columns: 1fr;
    }
    .spec-group--equipment {
        grid-column: auto;
    }
    .product-related__promo {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        min-height: 0;
        margin: 16px 0;
        padding: 16px;
        transform: none;
        flex-direction: column;
        align-items: stretch;
    }
    .product-related__promo > .button {
        min-width: 0;
        width: 100%;
    }
}

/* Keep inline information icons circular inside target inline copy. */
.mirror-options__overlay .product-inline-info,
.product-related__promo-copy .product-inline-info {
    display: inline-grid;
    width: 16px;
    height: 16px;
    min-width: 16px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    place-items: center;
    background: transparent;
    color: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
}


/* Payment methods — exact raster assets exported from approved Figma layout. */
.product-payment-row {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    border-top: 0;
    background: #f7f7f7;
    color: #4e4e4e;
    font-size: 10px;
    line-height: 1;
}

.product-payment-row__label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.product-payment-row__marks {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    margin-right: auto;
}

.product-payment-row__marks img {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: 26px;
    object-fit: contain;
}

.product-payment-row__more {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: #858585;
    font-size: 9px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.product-payment-row__more:hover,
.product-payment-row__more:focus-visible {
    color: var(--text);
}

@media (max-width: 640px) {
    .product-payment-row {
        flex-wrap: wrap;
        gap: 8px 10px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .product-payment-row__marks {
        order: 3;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .product-payment-row__marks::-webkit-scrollbar {
        display: none;
    }

    .product-payment-row__more {
        margin-left: auto;
    }
}

/* ======================================================================
   Product visualization state / color gallery / lazy 3D proof scene
   ====================================================================== */
.product-gallery__thumb--materials,
.product-gallery__thumb--3d {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #242424;
}
.product-gallery__materials-thumb {
    width: 62px;
    height: 96px;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgb(36 36 36 / 14%);
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 30%);
}
.product-gallery__materials-thumb > span {
    position: relative;
    min-height: 0;
    background-position: center;
    background-size: cover;
}
.product-gallery__materials-thumb > span + span {
    border-top: 1px solid rgb(255 255 255 / 75%);
}
.product-gallery__materials-thumb b {
    position: absolute;
    right: 3px;
    bottom: 3px;
    max-width: calc(100% - 6px);
    padding: 2px 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgb(255 255 255 / 84%);
    color: #242424;
    font-size: 7px;
    font-weight: 650;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-gallery__thumb-caption {
    max-width: calc(100% - 12px);
    overflow: hidden;
    color: #737373;
    font-size: 9px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-gallery__thumb-3d-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid #242424;
    border-radius: 50%;
    background: #fff;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.04em;
}
.product-gallery__materials {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: #f3f3f3;
}
.product-gallery__materials[hidden] { display: none; }
.product-gallery__material {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #ece9e3;
}
.product-gallery__material + .product-gallery__material {
    border-top: 2px solid #fff;
}
.product-gallery__material-color,
.product-gallery__material-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.product-gallery__material-image {
    object-fit: cover;
}
.product-gallery__material-image[hidden] { display: none; }
.product-gallery__material-label {
    position: absolute;
    z-index: 1;
    left: 20px;
    bottom: 18px;
    max-width: calc(100% - 40px);
    padding: 8px 11px;
    border: 1px solid rgb(36 36 36 / 10%);
    border-radius: 7px;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 3px 12px rgb(0 0 0 / 6%);
    display: grid;
    gap: 3px;
}
.product-gallery__material-label b,
.product-gallery__material-label em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}
.product-gallery__material-label b {
    color: #8a8a8a;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}
.product-gallery__material-label em {
    color: #242424;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.15;
}
.product-gallery__3d {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: #f3f3f3;
}
.product-gallery__3d[hidden] { display: none; }
.product-gallery__color-legend {
    position: absolute;
    z-index: 4;
    right: 14px;
    bottom: 14px;
    display: flex;
    max-width: calc(100% - 92px);
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    pointer-events: none;
}
.product-gallery__color-legend[hidden] { display: none; }
.product-gallery__color-legend > span {
    min-height: 34px;
    padding: 5px 9px 5px 6px;
    border: 1px solid rgb(36 36 36 / 10%);
    border-radius: 6px;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 3px 12px rgb(0 0 0 / 6%);
    display: grid;
    grid-template-columns: 22px auto;
    grid-template-rows: auto auto;
    column-gap: 7px;
    align-items: center;
}
.product-gallery__color-legend i {
    grid-row: 1 / 3;
    width: 22px;
    height: 22px;
    border: 1px solid rgb(36 36 36 / 12%);
    border-radius: 3px;
}
.product-gallery__color-legend b,
.product-gallery__color-legend em {
    min-width: 0;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}
.product-gallery__color-legend b {
    color: #8a8a8a;
    font-size: 8px;
    font-weight: 500;
    line-height: 1;
}
.product-gallery__color-legend em {
    color: #242424;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
}

/* Native test viewer. It is deliberately isolated behind the PlanetaFurniture3D
   adapter API so the previous production 3D engine can replace it later. */
.pf3d {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    color: #242424;
    user-select: none;
}
.pf3d__toolbar {
    position: relative;
    z-index: 3;
    min-height: 48px;
    padding: 10px 12px 8px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.pf3d__toolbar strong {
    font-size: 16px;
    line-height: 1;
}
.pf3d__toolbar span {
    color: #8a8a8a;
    font-size: 9px;
}
.pf3d__toolbar button {
    width: 30px;
    height: 30px;
    margin-left: auto;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    background: rgb(255 255 255 / 82%);
    color: #242424;
    cursor: pointer;
    font: 16px/1 Inter, sans-serif;
}
.pf3d__viewport {
    position: relative;
    min-height: 0;
    overflow: hidden;
    cursor: grab;
    perspective: 1000px;
    outline: none;
    touch-action: none;
}
.pf3d__viewport.is-dragging { cursor: grabbing; }
.pf3d__viewport:focus-visible { box-shadow: inset 0 0 0 2px #242424; }
.pf3d__floor {
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: 72%;
    height: 18%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgb(0 0 0 / 16%), rgb(0 0 0 / 0%) 68%);
    filter: blur(5px);
}
.pf3d__model {
    --pf3d-w: 190px;
    --pf3d-h: 340px;
    --pf3d-d: 70px;
    --pf3d-body: #e8e5df;
    --pf3d-facade: #f3f1ec;
    position: absolute;
    top: 51%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transition: width 180ms ease, height 180ms ease;
    will-change: transform;
}
.pf3d__face {
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid rgb(36 36 36 / 16%);
    background: var(--pf3d-body);
    backface-visibility: visible;
    box-sizing: border-box;
}
.pf3d__face--front,
.pf3d__face--back {
    width: var(--pf3d-w);
    height: var(--pf3d-h);
}
.pf3d__face--front {
    padding: 5px;
    transform: translate(-50%, -50%) translateZ(calc(var(--pf3d-d) / 2));
}
.pf3d__face--back {
    transform: translate(-50%, -50%) rotateY(180deg) translateZ(calc(var(--pf3d-d) / 2));
    background: color-mix(in srgb, var(--pf3d-body) 86%, #a9a39b);
}
.pf3d__face--left,
.pf3d__face--right {
    width: var(--pf3d-d);
    height: var(--pf3d-h);
    background: color-mix(in srgb, var(--pf3d-body) 88%, #9a958e);
}
.pf3d__face--right {
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(calc(var(--pf3d-w) / 2));
}
.pf3d__face--left {
    transform: translate(-50%, -50%) rotateY(-90deg) translateZ(calc(var(--pf3d-w) / 2));
}
.pf3d__face--top,
.pf3d__face--bottom {
    width: var(--pf3d-w);
    height: var(--pf3d-d);
}
.pf3d__face--top {
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--pf3d-h) / 2));
    background: color-mix(in srgb, var(--pf3d-body) 94%, #fff);
}
.pf3d__face--bottom {
    transform: translate(-50%, -50%) rotateX(-90deg) translateZ(calc(var(--pf3d-h) / 2));
    background: color-mix(in srgb, var(--pf3d-body) 82%, #8e8a84);
}
.pf3d__doors {
    width: 100%;
    height: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 3px;
}
.pf3d.is-swing-wardrobe .pf3d__face--front {
    padding: 0;
    border: 0;
    background: transparent;
    transform-style: preserve-3d;
}
.pf3d.is-swing-wardrobe .pf3d__doors {
    gap: 1px;
    transform: translateZ(2px);
}
.pf3d.is-swing-wardrobe .pf3d-door {
    border: 0;
    box-shadow: inset 0 0 0 1px rgb(36 36 36 / 14%);
}
.pf3d-door {
    position: relative;
    min-width: 0;
    border: 1px solid rgb(36 36 36 / 17%);
    background: var(--pf3d-facade);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%);
}
.pf3d-door i {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 3px;
    height: 22px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #333;
}
.pf3d-door.is-mirror {
    background:
        linear-gradient(120deg, rgb(255 255 255 / 70%) 8%, transparent 28% 62%, rgb(255 255 255 / 46%) 72%, transparent 88%),
        linear-gradient(145deg, #bac6c9, #eef2f2 45%, #aab5b8);
}
.pf3d__caption {
    min-height: 42px;
    padding: 8px 14px 11px;
    color: #8a8a8a;
    font-size: 8px;
    line-height: 1.4;
    text-align: center;
}
.pf3d-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #8a8a8a;
    font-size: 12px;
}
[data-manager-contact].is-saving-project {
    pointer-events: none;
    opacity: .65;
}

@media (max-width: 640px) {
    .product-gallery__material-label {
        left: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: 6px 8px;
    }
    .product-gallery__material-label em { font-size: 12px; }
    .product-gallery__color-legend {
        right: 8px;
        bottom: 8px;
        max-width: calc(100% - 16px);
    }
    .product-gallery__color-legend > span {
        min-height: 30px;
        padding: 4px 7px 4px 5px;
    }
    .product-gallery__color-legend i { width: 20px; height: 20px; }
    .pf3d__toolbar span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pf3d__model,
    [data-manager-contact] {
        transition: none;
    }
}
