.configurator-body { background: #f6f1e9; }
.config-header { height: 78px; padding: 0 clamp(18px, 4vw, 62px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: rgba(251,249,245,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); }
.config-header .brand { grid-column: 2; }
.config-header .cart-button { justify-self: end; }
.config-back { justify-self: start; color: var(--muted); font-size: 11px; transition: color .2s ease; }
.config-back:hover { color: var(--ink); }
.configurator { max-width: 1560px; margin: auto; padding: 36px clamp(18px, 4vw, 62px) 90px; }
.config-breadcrumb { margin-bottom: 22px; color: #948a7e; font-size: 10px; }
.config-breadcrumb a:hover { color: var(--ink); }
.config-layout { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(560px, 1.1fr); gap: clamp(30px, 4vw, 68px); align-items: start; }
.config-visual { position: sticky; top: 108px; }
.config-image-wrap { position: relative; overflow: hidden; background: #e6ddd1; box-shadow: 0 18px 55px rgba(65,50,36,.1); }
.config-image-wrap img { width: 100%; position: relative; z-index: 0; display: block; aspect-ratio: 1.16; object-fit: cover; }
.config-image-badge { position: absolute; left: 18px; top: 18px; z-index: 3; padding: 8px 11px; background: rgba(255,255,255,.9); color: var(--accent-dark); font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.bed-fabric-visualizer { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; display: block; pointer-events: none; animation: bed-fabric-visualizer-in .28s ease both; }
@keyframes bed-fabric-visualizer-in { from { opacity: 0; } to { opacity: 1; } }
.bed-visualizer-badge { position: absolute; right: 14px; bottom: 14px; z-index: 3; padding: 8px 11px; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 5px 18px rgba(43,33,25,.12); font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.bed-visualizer-note { margin: 9px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.visual-selection { margin-top: 15px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fff; border: 1px solid var(--line); }
.visual-selection > div { display: flex; align-items: center; gap: 12px; }
.visual-selection-swatch { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); background-color: var(--fabric-color); background-image: var(--fabric-image, none), linear-gradient(120deg, rgba(255,255,255,.2), rgba(0,0,0,.1)); background-size: cover, 100% 100%; background-position: center; }
.visual-selection small, .visual-selection strong { display: block; }
.visual-selection small { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.visual-selection strong { font: 400 15px Georgia, serif; }
.visual-selection > span { color: var(--sage); font-size: 9px; white-space: nowrap; }
.config-panel { min-width: 0; }
.config-heading { padding: 12px 0 27px; border-bottom: 1px solid var(--line); }
.config-heading-top { display: flex; justify-content: space-between; gap: 20px; }
.config-heading h1 { margin: 0; font: 400 clamp(43px, 4vw, 64px)/1 Georgia, serif; letter-spacing: -2.4px; }
.config-heading > p { max-width: 600px; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.config-live-price { flex: 0 0 auto; text-align: right; }
.config-live-price small, .config-live-price strong { display: block; }
.config-live-price small { margin-bottom: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.config-live-price strong { font-size: 22px; }
.config-sticky-summary { position: sticky; top: 78px; z-index: 30; margin: 18px 0 6px; padding: 10px; background: rgba(246,241,233,.96); border: 1px solid rgba(207,198,188,.92); box-shadow: 0 10px 28px rgba(58,45,32,.08); backdrop-filter: blur(14px); }
.sticky-summary-head { padding: 1px 3px 9px; display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.sticky-summary-head > div:first-child strong, .sticky-summary-head > div:first-child span, .sticky-summary-head > div:last-child small, .sticky-summary-head > div:last-child b { display: block; }
.sticky-summary-head > div:first-child strong { margin-bottom: 3px; font: 400 15px Georgia, serif; }
.sticky-summary-head > div:first-child span, .sticky-summary-head > div:last-child small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.sticky-summary-head > div:last-child { text-align: right; }
.sticky-summary-head > div:last-child b { margin-top: 3px; font-size: 17px; }
.step-navigation { margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.step-navigation.five-steps { grid-template-columns: repeat(5, 1fr); }
.step-navigation button { min-width: 0; min-height: 67px; padding: 9px 8px; border: 1px solid var(--line); background: rgba(255,255,255,.72); text-align: left; cursor: pointer; }
.step-navigation button.complete { border-color: #aebbaa; background: #f2f6f0; }
.step-navigation b, .step-navigation span, .step-navigation small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-navigation b { margin-bottom: 4px; color: var(--accent); font-size: 8px; letter-spacing: 1px; }
.step-navigation span { font-size: 10px; font-weight: 700; }
.step-navigation small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.step-navigation button:not(.complete) small { color: #a69b8f; }
.config-step { margin-top: 18px; padding: 27px; background: #fff; border: 1px solid var(--line); scroll-margin-top: 218px; }
.step-heading { margin-bottom: 21px; display: flex; align-items: flex-start; gap: 15px; }
.step-number { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 400 14px Georgia, serif; }
.step-heading > div { flex: 1; }
.step-heading h2 { margin: 0 0 5px; font: 400 24px Georgia, serif; }
.step-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.required-pill, .optional-pill { padding: 6px 8px; border-radius: 999px; font-size: 8px; text-transform: uppercase; letter-spacing: .8px; }
.required-pill { background: #eee3d7; color: var(--accent-dark); }
.optional-pill { background: var(--sand); color: var(--muted); }
.choice-grid { display: grid; gap: 10px; }
.size-choice-grid { grid-template-columns: repeat(5, 1fr); }
.choice-card { min-height: 78px; padding: 13px 10px; border: 1px solid var(--line); background: var(--cream); text-align: left; cursor: pointer; transition: border .18s ease, background .18s ease, transform .18s ease; }
.choice-card:hover { border-color: #a89b8c; transform: translateY(-1px); }
.choice-card.selected { border: 2px solid var(--ink); padding: 12px 9px; background: #fff; box-shadow: 0 6px 20px rgba(52,43,34,.07); }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { margin-bottom: 6px; font-size: 11px; }
.choice-card small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.choice-recommended { display: block; margin: -3px 0 7px; color: var(--sage); font-size: 7px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-card, .option-card.selected { min-height: 0; position: relative; padding: 0; overflow: hidden; }
.option-image { position: relative; width: 100%; aspect-ratio: 4/3; display: block; overflow: hidden; background: #eadfd2; }
.option-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.option-card:hover .option-image img { transform: scale(1.025); }
.option-image-note { position: absolute; left: 9px; bottom: 9px; padding: 5px 7px; background: rgba(255,255,255,.88); color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .6px; backdrop-filter: blur(8px); }
.option-card-copy { min-height: 118px; padding: 15px 16px 16px; display: flex; flex-direction: column; text-align: left; }
.option-check { position: absolute; right: 12px; top: 12px; z-index: 2; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #cfc6bc; border-radius: 50%; background: rgba(255,255,255,.9); color: transparent; font-size: 11px; box-shadow: 0 3px 10px rgba(40,31,23,.12); }
.option-card.selected .option-check { background: var(--ink); border-color: var(--ink); color: #fff; }
.option-card strong { padding-right: 0; font: 400 16px Georgia, serif; }
.option-card .option-card-copy > small { min-height: 26px; }
.option-card em { display: block; margin-top: auto; padding-top: 12px; color: var(--accent-dark); font-size: 10px; font-style: normal; font-weight: 700; }
.fabric-step-showcase { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(230px, .82fr); min-height: 300px; border: 1px solid var(--line); background: var(--cream); overflow: hidden; }
.fabric-step-preview { min-height: 300px; position: relative; display: grid; overflow: hidden; background: #ddd3c7; }
.fabric-step-preview.selected img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.fabric-step-preview.fabric-swatch-scene { isolation: isolate; background: #e9e2d9; }
.fabric-swatch-field { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--mosaic-columns, 6), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 0; }
.fabric-swatch-tile { min-width: 0; min-height: 0; overflow: hidden; background: #ddd3c7; }
.fabric-swatch-tile img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.fabric-swatch-scene:hover .fabric-swatch-tile:nth-child(3n) img { transform: scale(1.06); }
.fabric-swatch-scene::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(39,29,21,.11), transparent 32%); pointer-events: none; }
.fabric-step-preview > span { position: absolute; left: 16px; bottom: 16px; padding: 8px 11px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; box-shadow: 0 5px 18px rgba(43,33,25,.12); }
.fabric-step-preview > .fabric-scene-label { z-index: 2; display: flex; align-items: baseline; gap: 6px; }
.fabric-scene-label b { font: 400 21px/1 Georgia, serif; letter-spacing: 0; }
.fabric-step-copy { padding: clamp(25px, 3vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.fabric-step-copy h3 { margin: 7px 0 13px; font: 400 clamp(23px, 2.2vw, 31px)/1.12 Georgia, serif; }
.fabric-step-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.fabric-open-button { width: 100%; min-height: 49px; margin-top: 25px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.fabric-open-button:hover { background: var(--accent-dark); }
.fabric-open-button span { font-size: 18px; font-weight: 400; }
.fabric-screen-note { margin: 12px 2px 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.fabric-drawer-layer { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 1fr min(760px, 96vw); }
.fabric-drawer-backdrop { min-width: 0; background: rgba(31,25,20,.55); backdrop-filter: blur(3px); cursor: pointer; }
.fabric-drawer { width: 100%; height: 100vh; min-width: 0; display: grid; grid-template-rows: auto auto 1fr auto; background: #fbf9f5; box-shadow: -24px 0 70px rgba(28,21,16,.25); animation: fabric-drawer-in .28s ease both; }
@keyframes fabric-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-static { animation: none !important; }
.fabric-drawer-header { padding: 27px 30px 21px; display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.fabric-drawer-header h2 { margin: 5px 0 7px; font: 400 35px/1 Georgia, serif; }
.fabric-drawer-header > div > p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.fabric-drawer-close { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; font: 300 27px/1 Arial, sans-serif; }
.fabric-drawer-close:hover { border-color: var(--ink); }
.fabric-drawer-toolbar { padding: 15px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #fff; }
.fabric-filter { display: flex; gap: 7px; }
.fabric-filter button { height: 38px; padding: 0 13px; border: 1px solid var(--line); background: var(--cream); cursor: pointer; font-size: 9px; white-space: nowrap; }
.fabric-filter button span { margin-left: 4px; opacity: .65; }
.fabric-filter button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fabric-counter { color: var(--muted); font-size: 9px; }
.fabric-drawer-grid { min-height: 0; padding: 22px 26px 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 12px; overflow-y: auto; overscroll-behavior: contain; }
.fabric-drawer-card { min-width: 0; position: relative; padding: 0; display: block; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.fabric-drawer-card:hover { transform: translateY(-2px); border-color: #9e9184; box-shadow: 0 10px 28px rgba(49,38,29,.1); }
.fabric-drawer-card.selected { border: 2px solid var(--ink); box-shadow: 0 9px 28px rgba(49,38,29,.13); }
.fabric-drawer-image { width: 100%; aspect-ratio: 3/2; display: block; overflow: hidden; background: #e4ddd4; }
.fabric-drawer-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.fabric-drawer-card:hover .fabric-drawer-image img { transform: scale(1.025); }
.fabric-drawer-card-copy { min-height: 61px; padding: 11px 39px 11px 12px; display: block; }
.fabric-drawer-card-copy strong, .fabric-drawer-card-copy small { display: block; }
.fabric-drawer-card-copy strong { font: 400 14px Georgia, serif; }
.fabric-drawer-card-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.fabric-drawer-check { position: absolute; right: 10px; bottom: 17px; width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: transparent; font-size: 10px; }
.fabric-drawer-card.selected .fabric-drawer-check { border-color: var(--ink); background: var(--ink); color: #fff; }
.fabric-drawer-footer { padding: 14px 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); background: #fff; font-size: 8px; }
.fabric-drawer-footer span { color: var(--muted); }
.fabric-drawer-footer strong { text-align: right; }
.laminate-step-card { min-height: 290px; display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.laminate-step-card.requires-choice { border-color: #b89470; box-shadow: 0 0 0 1px rgba(184,148,112,.18); }
.laminate-step-visual { min-height: 290px; position: relative; overflow: hidden; background: #e8e1d8; }
.laminate-step-visual img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; }
.laminate-step-visual > span { position: absolute; left: 15px; bottom: 15px; padding: 7px 10px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; box-shadow: 0 4px 16px rgba(45,35,27,.1); }
.laminate-step-copy { padding: clamp(25px, 3vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.laminate-step-copy h3 { margin: 7px 0 12px; font: 400 clamp(23px, 2.2vw, 31px)/1.12 Georgia, serif; }
.laminate-step-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.laminate-step-details { margin: 17px 0 0; display: grid; gap: 7px; }
.laminate-step-details > span { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.laminate-step-details strong { color: var(--ink); text-align: right; }
.laminate-open-button { width: 100%; min-height: 49px; margin-top: 24px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.laminate-open-button:hover { background: var(--accent-dark); }
.laminate-open-button span { font-size: 18px; font-weight: 400; }
.laminate-required-warning { margin: 11px 0 0; color: #9a5f32; font-size: 11px; line-height: 1.5; }
.laminate-drawer-layer { position: fixed; inset: 0; z-index: 124; display: grid; grid-template-columns: min(820px, 94vw) 1fr; }
.laminate-drawer-backdrop { min-width: 0; background: rgba(31,25,20,.55); backdrop-filter: blur(3px); cursor: pointer; }
.laminate-config-drawer { width: 100%; height: 100vh; min-width: 0; display: grid; grid-template-rows: auto 1fr auto; background: #fbf9f5; box-shadow: 24px 0 70px rgba(28,21,16,.25); animation: laminate-drawer-in .28s ease both; }
@keyframes laminate-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.laminate-drawer-header { padding: 27px 30px 21px; display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.laminate-drawer-header h2 { margin: 5px 0 7px; font: 400 35px/1 Georgia, serif; }
.laminate-drawer-header > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.laminate-drawer-content { min-height: 0; padding: 20px 26px 30px; overflow-y: auto; overscroll-behavior: contain; }
.laminate-drawer-intro { margin-bottom: 15px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); background: #fff; }
.laminate-drawer-intro span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.laminate-drawer-intro strong { font-size: 11px; }
.laminate-drawer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.laminate-drawer-option { min-width: 0; position: relative; padding: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.laminate-drawer-option:hover { transform: translateY(-2px); border-color: #9e9184; box-shadow: 0 10px 28px rgba(49,38,29,.1); }
.laminate-drawer-option.selected { border: 2px solid var(--ink); box-shadow: 0 9px 28px rgba(49,38,29,.13); }
.laminate-drawer-image { width: 100%; aspect-ratio: 1.55; display: block; overflow: hidden; background: #e8e1d8; }
.laminate-drawer-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.laminate-drawer-option:hover .laminate-drawer-image img { transform: scale(1.025); }
.laminate-drawer-copy { min-height: 112px; padding: 15px 42px 16px 15px; display: flex; flex-direction: column; }
.laminate-drawer-copy strong, .laminate-drawer-copy small, .laminate-drawer-copy em { display: block; }
.laminate-drawer-copy strong { font: 400 16px/1.25 Georgia, serif; }
.laminate-drawer-copy small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.laminate-drawer-copy em { margin-top: auto; padding-top: 11px; color: var(--accent-dark); font-size: 11px; font-style: normal; font-weight: 700; }
.laminate-drawer-option > b { position: absolute; right: 11px; top: 11px; z-index: 2; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.94); color: transparent; font-size: 10px; }
.laminate-drawer-option.selected > b { border-color: var(--ink); background: var(--ink); color: #fff; }
.laminate-screen-note { margin: 14px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.laminate-drawer-footer { padding: 14px 30px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(100px, .55fr) auto; align-items: center; gap: 20px; border-top: 1px solid var(--line); background: #fff; }
.laminate-drawer-footer small, .laminate-drawer-footer strong { display: block; }
.laminate-drawer-footer small { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.laminate-drawer-footer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 14px Georgia, serif; }
.laminate-drawer-footer .primary-button { min-width: 185px; min-height: 47px; border: 0; background: var(--ink); color: #fff; cursor: pointer; text-transform: uppercase; letter-spacing: .8px; font-size: 11px; }
.laminate-drawer-footer .primary-button:hover:not(:disabled) { background: var(--accent-dark); }
.laminate-drawer-footer .primary-button:disabled { cursor: not-allowed; opacity: .38; }
.mattress-step-card { min-height: 290px; display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.mattress-step-card.requires-fabric { border-color: #b89470; box-shadow: 0 0 0 1px rgba(184,148,112,.18); }
.mattress-step-card.requires-choice { border-color: #b89470; background: #fff9f1; box-shadow: 0 0 0 1px rgba(184,148,112,.18); }
.mattress-step-visual { min-height: 290px; position: relative; overflow: hidden; background: #e8e1d8; }
.mattress-step-visual img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; }
.mattress-step-visual > span { position: absolute; left: 15px; bottom: 15px; padding: 7px 10px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 8px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.mattress-step-copy { padding: clamp(25px, 3vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.mattress-step-copy h3 { margin: 7px 0 12px; font: 400 clamp(23px, 2.2vw, 31px)/1.12 Georgia, serif; }
.mattress-step-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.mattress-step-details { margin: 17px 0 0; display: grid; gap: 7px; }
.mattress-step-details > span { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 9px; }
.mattress-step-details small { color: var(--muted); }
.mattress-step-details strong { color: var(--ink); text-align: right; }
.mattress-open-button { width: 100%; min-height: 49px; margin-top: 24px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.mattress-open-button:hover { background: var(--accent-dark); }
.mattress-open-button span { font-size: 18px; font-weight: 400; }
.mattress-required-warning { margin: 11px 0 0; color: #9a5f32; font-size: 9px; line-height: 1.5; }
.mattress-drawer-layer { position: fixed; inset: 0; z-index: 125; display: grid; grid-template-columns: min(820px, 94vw) 1fr; }
.mattress-drawer-backdrop { min-width: 0; background: rgba(31,25,20,.55); backdrop-filter: blur(3px); cursor: pointer; }
.mattress-config-drawer { width: 100%; height: 100vh; min-width: 0; display: grid; grid-template-rows: auto auto 1fr auto; background: #fbf9f5; box-shadow: 24px 0 70px rgba(28,21,16,.25); animation: mattress-drawer-in .28s ease both; }
@keyframes mattress-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.mattress-drawer-header { padding: 27px 30px 21px; display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.mattress-drawer-header h2 { margin: 5px 0 7px; font: 400 35px/1 Georgia, serif; }
.mattress-drawer-header > div > p:last-child { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mattress-panel-progress { padding: 13px 30px 15px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; border-bottom: 1px solid var(--line); background: #fff; }
.mattress-panel-progress-copy { min-width: 105px; }
.mattress-panel-progress-copy strong, .mattress-panel-progress-copy span { display: block; }
.mattress-panel-progress-copy strong { font: 400 17px Georgia, serif; }
.mattress-panel-progress-copy span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.mattress-panel-progress-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mattress-panel-progress-steps button { min-width: 0; min-height: 61px; padding: 8px 11px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); cursor: pointer; text-align: left; }
.mattress-panel-progress-steps button.complete { border-color: #aebbaa; background: #f2f6f0; }
.mattress-panel-progress-steps button.active { border-color: #b89470; background: #fff8ef; }
.mattress-panel-progress-steps button:disabled { cursor: default; opacity: .78; }
.mattress-panel-progress-steps button > b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; }
.mattress-panel-progress-steps button.complete > b { background: var(--sage); }
.mattress-panel-progress-steps button > span, .mattress-panel-progress-steps small, .mattress-panel-progress-steps strong, .mattress-panel-progress-steps em { min-width: 0; display: block; }
.mattress-panel-progress-steps small { color: var(--accent); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.mattress-panel-progress-steps strong { margin-top: 2px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mattress-panel-progress-steps em { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.mattress-drawer-content { min-height: 0; padding: 25px 30px 35px; overflow-y: auto; overscroll-behavior: contain; }
.mattress-drawer-section + .mattress-drawer-section { margin-top: 31px; padding-top: 27px; border-top: 1px solid var(--line); }
.mattress-drawer-section-heading { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; }
.mattress-drawer-section-heading > span { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 400 12px Georgia, serif; }
.mattress-drawer-section-heading h3 { margin: 0 0 4px; font: 400 23px Georgia, serif; }
.mattress-drawer-section-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.mattress-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mattress-drawer-option { min-width: 0; position: relative; padding: 0; display: grid; grid-template-columns: 112px 1fr; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.mattress-drawer-option:hover { transform: translateY(-1px); border-color: #9e9184; box-shadow: 0 8px 22px rgba(49,38,29,.08); }
.mattress-drawer-option.selected { border: 2px solid var(--ink); box-shadow: 0 8px 24px rgba(49,38,29,.12); }
.mattress-drawer-option > img { width: 112px; height: 100%; min-height: 128px; display: block; object-fit: cover; background: #e8e1d8; }
.mattress-drawer-option > span { min-width: 0; padding: 15px 39px 15px 14px; }
.mattress-drawer-option strong, .mattress-drawer-option small, .mattress-drawer-option em { display: block; }
.mattress-drawer-option strong { font: 400 15px/1.25 Georgia, serif; }
.mattress-drawer-option small { margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.mattress-drawer-option em { margin-top: 10px; color: var(--accent-dark); font-size: 9px; font-style: normal; font-weight: 700; }
.mattress-drawer-option > b, .mattress-fabric-option > b { position: absolute; right: 10px; top: 10px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: transparent; font-size: 10px; }
.mattress-drawer-option.selected > b, .mattress-fabric-option.selected > b { border-color: var(--ink); background: var(--ink); color: #fff; }
.mattress-fabric-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mattress-fabric-option { min-width: 0; position: relative; padding: 0; display: grid; grid-template-columns: 150px 1fr; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.mattress-fabric-option:hover { transform: translateY(-1px); border-color: #9e9184; box-shadow: 0 8px 22px rgba(49,38,29,.08); }
.mattress-fabric-option.selected { border: 2px solid var(--ink); box-shadow: 0 8px 24px rgba(49,38,29,.12); }
.mattress-fabric-option-image { min-height: 105px; position: relative; overflow: hidden; background: #e8e1d8; }
.mattress-fabric-option-image img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; }
.mattress-fabric-option-image small { position: absolute; left: 7px; bottom: 7px; padding: 4px 6px; background: rgba(255,255,255,.9); color: var(--muted); font-size: 7px; text-transform: uppercase; }
.mattress-fabric-option > span:nth-child(2) { min-width: 0; padding: 18px 39px 14px 14px; }
.mattress-fabric-option > span:nth-child(2) strong, .mattress-fabric-option > span:nth-child(2) small { display: block; }
.mattress-fabric-option > span:nth-child(2) strong { font: 400 15px Georgia, serif; }
.mattress-fabric-option > span:nth-child(2) small { margin-top: 8px; color: var(--sage); font-size: 8px; }
.mattress-fabric-gallery { margin-top: 19px; padding: 17px; border: 1px solid var(--line); background: #fff; }
.mattress-gallery-heading { margin-bottom: 12px; display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.mattress-gallery-heading small, .mattress-gallery-heading span { color: var(--muted); font-size: 8px; }
.mattress-gallery-heading h4 { margin: 4px 0 0; font: 400 20px Georgia, serif; }
.mattress-gallery-images { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; }
.mattress-gallery-images figure { margin: 0; min-width: 0; overflow: hidden; background: #e8e1d8; }
.mattress-gallery-images img { width: 100%; height: 100%; min-height: 145px; display: block; object-fit: cover; }
.mattress-gallery-images figure.main img { min-height: 250px; }
.mattress-gallery-empty { margin-top: 18px; padding: 26px; border: 1px dashed #cfc5b9; color: var(--muted); background: rgba(255,255,255,.55); text-align: center; font-size: 9px; line-height: 1.6; }
.mattress-fabric-disabled { margin: 0; padding: 22px; background: #eee9e2; color: var(--muted); font-size: 10px; line-height: 1.6; }
.mattress-drawer-footer { padding: 14px 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); background: #fff; }
.mattress-drawer-footer > div { min-width: 0; }
.mattress-drawer-footer small, .mattress-drawer-footer strong { display: block; }
.mattress-drawer-footer small { margin-bottom: 4px; color: var(--muted); font-size: 8px; }
.mattress-drawer-footer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 14px Georgia, serif; }
.mattress-drawer-footer .primary-button { min-width: 215px; min-height: 47px; border: 0; background: var(--ink); color: #fff; cursor: pointer; text-transform: uppercase; letter-spacing: .8px; font-size: 9px; }
.mattress-drawer-footer .primary-button:hover:not(:disabled) { background: var(--accent-dark); }
.mattress-drawer-footer .primary-button:disabled { cursor: not-allowed; opacity: .38; }
.legs-step-card { min-height: 290px; display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.legs-step-card.requires-choice { border-color: #b89470; background: #fff9f1; box-shadow: 0 0 0 1px rgba(184,148,112,.18); }
.legs-step-card.no-image { grid-template-columns: 1fr; }
.legs-step-card.no-image .legs-step-copy { min-height: 290px; }
.legs-step-visual { min-height: 290px; position: relative; overflow: hidden; background: #fff; }
.legs-step-visual img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: contain; }
.legs-step-visual > span { position: absolute; left: 15px; bottom: 15px; padding: 7px 10px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; box-shadow: 0 4px 16px rgba(45,35,27,.1); }
.legs-step-copy { padding: clamp(25px, 3vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.legs-step-copy h3 { margin: 7px 0 12px; font: 400 clamp(23px, 2.2vw, 31px)/1.12 Georgia, serif; }
.legs-step-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.legs-step-details { margin: 17px 0 0; display: grid; gap: 7px; }
.legs-step-details > span { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.legs-step-details strong { color: var(--ink); text-align: right; }
.legs-open-button { width: 100%; min-height: 49px; margin-top: 24px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.legs-open-button:hover { background: var(--accent-dark); }
.legs-open-button span { font-size: 18px; font-weight: 400; }
.legs-required-warning { margin: 11px 0 0; color: #9a5f32; font-size: 9px; line-height: 1.5; }
.legs-drawer-layer { position: fixed; inset: 0; z-index: 126; display: grid; grid-template-columns: 1fr min(780px, 94vw); }
.legs-drawer-backdrop { min-width: 0; background: rgba(31,25,20,.55); backdrop-filter: blur(3px); cursor: pointer; }
.legs-config-drawer { width: 100%; height: 100vh; min-width: 0; display: grid; grid-template-rows: auto 1fr auto; background: #fbf9f5; box-shadow: -24px 0 70px rgba(28,21,16,.25); animation: legs-drawer-in .28s ease both; }
@keyframes legs-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.legs-drawer-header { padding: 27px 30px 21px; display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.legs-drawer-header h2 { margin: 5px 0 7px; font: 400 35px/1 Georgia, serif; }
.legs-drawer-header > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.legs-drawer-content { min-height: 0; padding: 20px 26px 32px; overflow-y: auto; overscroll-behavior: contain; }
.legs-drawer-intro { margin-bottom: 15px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); background: #fff; }
.legs-drawer-intro span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.legs-drawer-intro strong { font-size: 11px; text-align: right; }
.legs-drawer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.legs-drawer-option { min-width: 0; position: relative; padding: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.legs-drawer-option:hover { transform: translateY(-2px); border-color: #9e9184; box-shadow: 0 10px 28px rgba(49,38,29,.1); }
.legs-drawer-option.selected { border: 2px solid var(--ink); box-shadow: 0 9px 28px rgba(49,38,29,.13); }
.legs-drawer-option.no-image .legs-drawer-copy { min-height: 210px; justify-content: center; background: linear-gradient(145deg, #f5f0e8, #fff); }
.legs-drawer-image { width: 100%; aspect-ratio: 1.55; position: relative; display: block; overflow: hidden; background: #fff; }
.legs-drawer-image img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform .3s ease; }
.legs-drawer-option:hover .legs-drawer-image img { transform: scale(1.025); }
.legs-drawer-image small { position: absolute; left: 9px; bottom: 9px; padding: 5px 7px; background: rgba(255,255,255,.9); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.legs-drawer-copy { min-height: 127px; padding: 15px 42px 16px 15px; display: flex; flex-direction: column; }
.legs-drawer-copy strong, .legs-drawer-copy small, .legs-drawer-copy em { display: block; }
.legs-drawer-copy strong { font: 400 16px/1.25 Georgia, serif; }
.legs-drawer-copy small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.legs-drawer-copy em { margin-top: auto; padding-top: 11px; color: var(--accent-dark); font-size: 11px; font-style: normal; font-weight: 700; }
.legs-drawer-option > b { position: absolute; right: 11px; top: 11px; z-index: 2; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.94); color: transparent; font-size: 10px; }
.legs-drawer-option.selected > b { border-color: var(--ink); background: var(--ink); color: #fff; }
.legs-drawer-footer { padding: 14px 30px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(130px, .65fr) auto; align-items: center; gap: 20px; border-top: 1px solid var(--line); background: #fff; }
.legs-drawer-footer small, .legs-drawer-footer strong { display: block; }
.legs-drawer-footer small { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.legs-drawer-footer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 14px Georgia, serif; }
.legs-drawer-footer .primary-button { min-width: 185px; min-height: 47px; border: 0; background: var(--ink); color: #fff; cursor: pointer; text-transform: uppercase; letter-spacing: .8px; font-size: 11px; }
.legs-drawer-footer .primary-button:hover { background: var(--accent-dark); }
.config-summary { margin-top: 18px; padding: 28px; background: var(--ink); color: #fff; }
.config-summary h2 { margin: 0 0 20px; font: 400 25px Georgia, serif; }
.summary-config-row { padding: 9px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 10px; }
.summary-config-row span { color: #c9c1b7; }
.summary-config-row strong { text-align: right; font-weight: 500; }
.summary-total { margin: 19px 0; display: flex; justify-content: space-between; align-items: end; }
.summary-total span { color: #c9c1b7; font-size: 10px; }
.summary-total strong { font-size: 26px; }
.config-add-button { width: 100%; min-height: 54px; border: 0; background: #fff; color: var(--ink); cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
.config-add-button:hover:not(:disabled) { background: #e9dfd3; }
.config-add-button:disabled { cursor: not-allowed; opacity: .45; }
.config-required-note { margin: 11px 0 0; color: #c9c1b7; font-size: 9px; text-align: center; }
.config-benefits { margin-top: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.config-benefits div { padding: 13px 8px; background: rgba(255,255,255,.06); text-align: center; }
.config-benefits strong, .config-benefits span { display: block; }
.config-benefits strong { margin-bottom: 4px; font-size: 9px; }
.config-benefits span { color: #bdb4a9; font-size: 8px; }
.cart-summary .secondary-button { margin-top: 9px; display: flex; align-items: center; justify-content: center; }

@media (max-width: 1050px) {
  .config-layout { grid-template-columns: 1fr; }
  .config-visual { position: static; }
  .config-image-wrap img { aspect-ratio: 1.5; }
}
@media (max-width: 700px) {
  .config-header { height: 70px; padding: 0 15px; }
  .config-header .brand { font-size: 17px; }
  .config-header .brand small, .config-back span, .config-header .cart-button span { display: none; }
  .config-header .brand-mark { width: 31px; height: 31px; }
  .config-header .cart-button { min-width: 47px; width: 47px; padding: 0 9px; }
  .configurator { padding: 20px 14px 58px; }
  .config-breadcrumb { display: none; }
  .config-layout { gap: 17px; }
  .config-image-wrap img { aspect-ratio: 1.22; }
  .visual-selection { margin-top: 9px; padding: 12px; }
  .config-heading-top { align-items: flex-end; }
  .config-heading h1 { font-size: 41px; }
  .config-heading > p { font-size: 11px; }
  .config-live-price strong { font-size: 17px; }
  .config-sticky-summary { top: 70px; margin: 13px -14px 4px; padding: 8px 14px; border-left: 0; border-right: 0; }
  .sticky-summary-head { padding: 0 1px 7px; }
  .sticky-summary-head > div:first-child strong { font-size: 14px; }
  .step-navigation { margin-top: 7px; overflow-x: auto; }
  .step-navigation button { min-width: 112px; min-height: 64px; }
  .config-step { padding: 20px 15px; scroll-margin-top: 218px; }
  .step-heading { gap: 10px; }
  .step-heading h2 { font-size: 21px; }
  .size-choice-grid { grid-template-columns: repeat(2, 1fr); }
  .size-choice-grid .choice-card:last-child { grid-column: 1/-1; }
  .option-grid { grid-template-columns: 1fr; }
  .fabric-step-showcase { grid-template-columns: 1fr; }
  .fabric-step-preview { min-height: 230px; }
  .fabric-swatch-field { inset: 0; grid-template-columns: repeat(var(--mosaic-columns, 6), minmax(0, 1fr)); gap: 0; }
  .fabric-step-copy { padding: 24px 19px; }
  .fabric-drawer-layer { grid-template-columns: 1fr; }
  .fabric-drawer-backdrop { display: none; }
  .fabric-drawer { height: 100dvh; }
  .fabric-drawer-header { padding: 20px 16px 16px; }
  .fabric-drawer-header h2 { font-size: 28px; }
  .fabric-drawer-toolbar { padding: 11px 14px; display: block; overflow: hidden; }
  .fabric-filter { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .fabric-filter button { flex: 0 0 auto; padding: 0 11px; }
  .fabric-counter { margin-top: 8px; display: block; }
  .fabric-drawer-grid { padding: 14px; grid-template-columns: 1fr; gap: 10px; }
  .fabric-drawer-image { aspect-ratio: 1.7; }
  .fabric-drawer-card-copy { min-height: 65px; padding: 10px 34px 10px 10px; }
  .fabric-drawer-card-copy strong { font-size: 13px; }
  .fabric-drawer-footer { padding: 11px 14px; display: block; }
  .fabric-drawer-footer strong { margin-top: 4px; display: block; text-align: left; }
  .laminate-step-card { grid-template-columns: 1fr; }
  .laminate-step-visual { min-height: 225px; }
  .laminate-step-copy { padding: 24px 19px; }
  .laminate-drawer-layer { grid-template-columns: 1fr; }
  .laminate-drawer-backdrop { display: none; }
  .laminate-config-drawer { height: 100dvh; }
  .laminate-drawer-header { padding: 20px 16px 16px; }
  .laminate-drawer-header h2 { font-size: 28px; }
  .laminate-drawer-content { padding: 14px 14px 24px; }
  .laminate-drawer-intro { align-items: flex-start; flex-direction: column; gap: 5px; }
  .laminate-drawer-grid { grid-template-columns: 1fr; }
  .laminate-drawer-image { aspect-ratio: 1.7; }
  .laminate-drawer-footer { padding: 11px 14px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .laminate-drawer-footer .primary-button { width: 100%; min-width: 0; grid-column: 1 / -1; }
  .mattress-step-card { grid-template-columns: 1fr; }
  .mattress-step-visual { min-height: 225px; }
  .mattress-step-copy { padding: 24px 19px; }
  .mattress-drawer-layer { grid-template-columns: 1fr; }
  .mattress-drawer-backdrop { display: none; }
  .mattress-config-drawer { height: 100dvh; }
  .mattress-drawer-header { padding: 20px 16px 16px; }
  .mattress-drawer-header h2 { font-size: 28px; }
  .mattress-panel-progress { padding: 11px 14px 12px; grid-template-columns: 1fr; gap: 9px; }
  .mattress-panel-progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mattress-panel-progress-copy span { margin-top: 0; text-align: right; }
  .mattress-panel-progress-steps button { min-height: 58px; padding: 7px 8px; grid-template-columns: 25px minmax(0, 1fr); gap: 7px; }
  .mattress-panel-progress-steps button > b { width: 25px; height: 25px; }
  .mattress-drawer-content { padding: 19px 14px 27px; }
  .mattress-choice-list, .mattress-fabric-options { grid-template-columns: 1fr; }
  .mattress-drawer-option { grid-template-columns: 104px 1fr; }
  .mattress-drawer-option > img { width: 104px; min-height: 118px; }
  .mattress-fabric-option { grid-template-columns: 125px 1fr; }
  .mattress-gallery-images { grid-template-columns: 1fr 1fr; }
  .mattress-gallery-images figure.main { grid-column: 1 / -1; }
  .mattress-gallery-images figure.main img { min-height: 220px; }
  .mattress-gallery-images img { min-height: 125px; }
  .mattress-drawer-footer { padding: 11px 14px; display: grid; grid-template-columns: 1fr; }
  .mattress-drawer-footer .primary-button { width: 100%; min-width: 0; }
  .legs-step-card { grid-template-columns: 1fr; }
  .legs-step-visual { min-height: 225px; }
  .legs-step-copy { padding: 24px 19px; }
  .legs-drawer-layer { grid-template-columns: 1fr; }
  .legs-drawer-backdrop { display: none; }
  .legs-config-drawer { height: 100dvh; }
  .legs-drawer-header { padding: 20px 16px 16px; }
  .legs-drawer-header h2 { font-size: 28px; }
  .legs-drawer-content { padding: 14px 14px 24px; }
  .legs-drawer-intro { align-items: flex-start; flex-direction: column; gap: 5px; }
  .legs-drawer-intro strong { text-align: left; }
  .legs-drawer-grid { grid-template-columns: 1fr; }
  .legs-drawer-image { aspect-ratio: 1.7; }
  .legs-drawer-footer { padding: 11px 14px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .legs-drawer-footer .primary-button { width: 100%; min-width: 0; grid-column: 1 / -1; }
  .config-summary { padding: 22px 17px; }
  .config-benefits { grid-template-columns: 1fr; }
}

/* Czytelniejsza typografia konfiguratora i paneli wyboru. */
.sticky-summary-head > div:first-child span,
.sticky-summary-head > div:last-child small,
.step-navigation b,
.step-navigation small,
.required-pill,
.optional-pill,
.fabric-step-preview > span,
.fabric-screen-note,
.fabric-drawer-footer,
.laminate-step-visual > span,
.laminate-drawer-intro span,
.laminate-drawer-footer small,
.mattress-step-visual > span,
.mattress-drawer-option small,
.mattress-fabric-option > span:nth-child(2) small,
.mattress-gallery-heading small,
.mattress-gallery-heading span,
.mattress-panel-progress-copy span,
.mattress-panel-progress-steps em,
.mattress-drawer-footer small,
.config-benefits span { font-size: 10px; }

.config-image-badge,
.bed-visualizer-badge,
.visual-selection small,
.visual-selection > span,
.config-live-price small,
.choice-card small,
.fabric-open-button,
.fabric-filter button,
.fabric-counter,
.fabric-drawer-card-copy small,
.laminate-step-details > span,
.laminate-open-button,
.laminate-required-warning,
.laminate-drawer-copy small,
.laminate-drawer-copy em,
.laminate-screen-note,
.laminate-drawer-footer .primary-button,
.mattress-step-details > span,
.mattress-open-button,
.mattress-required-warning,
.mattress-drawer-section-heading p,
.mattress-panel-progress-steps small,
.mattress-drawer-option em,
.mattress-gallery-empty,
.mattress-drawer-footer .primary-button,
.config-required-note,
.config-benefits strong { font-size: 11px; }

.config-breadcrumb,
.step-navigation span,
.step-heading p,
.choice-recommended,
.option-image-note,
.option-card em,
.fabric-step-copy > p:not(.eyebrow),
.fabric-drawer-header > div > p:last-child,
.laminate-step-copy > p:not(.eyebrow),
.laminate-drawer-header > div > p:last-child,
.mattress-step-copy > p:not(.eyebrow),
.mattress-drawer-header > div > p:last-child,
.mattress-panel-progress-steps strong,
.mattress-fabric-option-image small,
.mattress-fabric-disabled,
.summary-config-row,
.summary-total span { font-size: 12px; }

.config-back,
.choice-card strong,
.config-add-button { font-size: 13px; }

/* Wniesienie i montaz - wspolny wybor na kartach WSZYSTKICH mebli. */
.product-delivery-step .step-heading { margin-bottom: 18px; }
.product-delivery-step .delivery-service-options { gap: 9px; }
.product-delivery-step .delivery-service-option { background: #faf9f7; }
.product-delivery-step .delivery-service-option.selected { background: #f4f8f2; }
.product-delivery-hint { margin: 14px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
@media (max-width: 600px) {
  .product-delivery-step .step-heading { flex-wrap: wrap; }
  .product-delivery-step .step-heading .optional-pill { margin-left: 44px; }
}

/* PREMIUM · Wybrana tkanina: stała fotografia mebla, wyraźna próbka materiału */
.fabric-spotlight {
  position: relative;
  margin-top: 15px;
  padding: 20px 21px 17px;
  background: #fffdfa;
  border: 1px solid #dcd3c6;
  box-shadow: 0 10px 33px rgba(55, 43, 32, .06);
  overflow: hidden;
}
.fabric-spotlight::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #aa9278; }
.fabric-spotlight-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.fabric-spotlight-eyebrow { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #82766a; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; line-height: 1.55; }
.fabric-spotlight-eyebrow i { height: 3px; width: 3px; background: #b4a492; border-radius: 50%; }
.fabric-spotlight-state { flex-shrink: 0; padding: 6px 9px; background: #f0ede8; color: #776a5d; font-size: 9px; font-weight: 600; }
.fabric-spotlight-state.ready { background: #e9eee6; color: #4e6648; }
.fabric-spotlight-body { display: grid; grid-template-columns: 103px minmax(0, 1fr); align-items: center; gap: 20px; padding: 18px 0 17px; }
.fabric-spotlight-swatch { width: 103px; height: 103px; border: 5px solid #fff; outline: 1px solid #e4dcd1; background: #e9e3dc; box-shadow: 0 8px 15px rgba(49, 37, 27, .08); overflow: hidden; }
.fabric-spotlight-swatch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fabric-spotlight-swatch.is-placeholder { display: grid; place-items: center; background: linear-gradient(138deg, #d4c7b9 0%, #e8dfd3 48%, #cbb9a6 100%); }
.fabric-spotlight-swatch.is-placeholder span { font-family: Georgia, serif; color: #fffaf5; font-size: 32px; }
.fabric-spotlight-info { min-width: 0; }
.fabric-spotlight-info small { display: block; color: #93877b; font-size: 9px; letter-spacing: 1.1px; font-weight: 700; line-height: 1.4; }
.fabric-spotlight-info strong { display: block; overflow-wrap: anywhere; margin-top: 5px; color: #342c27; font: 400 clamp(21px, 2vw, 27px)/1.17 Georgia, 'Times New Roman', serif; letter-spacing: -.5px; }
.fabric-spotlight-info > span { display: block; margin-top: 6px; color: #57493f; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.fabric-spotlight-info em { display: inline-block; margin-top: 8px; color: #7d9277; font-size: 10px; font-style: normal; font-weight: 600; }
.fabric-spotlight-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid #ece5dc; }
.fabric-spotlight-foot p { flex: 1; min-width: 0; margin: 0; color: #867c71; font-size: 10px; line-height: 1.55; }
.fabric-spotlight-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 38px; padding: 8px 12px; border: 1px solid #675747; color: #3a3129; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.fabric-spotlight-button span { font-size: 17px; line-height: 1; font-weight: 400; }
.fabric-spotlight-button:hover { background: #40372f; color: #fff; }
.fabric-spotlight-button:focus-visible { outline: 3px solid #b69a78; outline-offset: 3px; }
@media (min-width: 1051px) and (max-width: 1260px) {
  .fabric-spotlight-foot { align-items: stretch; flex-direction: column; }
  .fabric-spotlight-button { align-self: flex-start; }
}
@media (max-width: 700px) {
  .fabric-spotlight { margin-top: 10px; padding: 17px 15px 15px; }
  .fabric-spotlight-body { grid-template-columns: 88px minmax(0, 1fr); gap: 15px; padding: 14px 0; }
  .fabric-spotlight-swatch { width: 88px; height: 88px; }
  .fabric-spotlight-info strong { font-size: 22px; }
  .fabric-spotlight-foot { align-items: flex-start; }
}
@media (max-width: 430px) {
  .fabric-spotlight-eyebrow { font-size: 8px; gap: 5px; }
  .fabric-spotlight-foot { flex-direction: column; align-items: stretch; gap: 13px; }
  .fabric-spotlight-button { width: 100%; justify-content: space-between; min-height: 43px; }
  .fabric-spotlight-info strong { font-size: 20px; }
}
