.models-page { background: #ece9e1; }
.models-page .site-header { color: var(--ink); background: rgba(236, 233, 225, .94); border-color: var(--line); backdrop-filter: blur(18px); }
.models-page .desktop-nav .active::after { transform: scaleX(1); }
.models-page .menu-toggle { border-color: var(--line); }

.models-hero { min-height: 100svh; padding: 145px 6vw 4rem; display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: 1fr auto; gap: 2.5rem 6vw; align-items: center; background: #ece9e1; }
.models-hero-copy { padding-top: 2rem; }
.models-eyebrow { margin: 0 0 3rem; color: #6f6d64; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.models-hero h1 { margin: 0; font: 400 clamp(4rem, 7vw, 8rem)/.92 var(--display); letter-spacing: -.065em; }
.models-hero h1 em { color: #929087; font-style: normal; }
.models-lead { max-width: 600px; margin: 3rem 0 0; color: #5f5d55; font-size: clamp(1rem, 1.35vw, 1.28rem); line-height: 1.65; }
.models-hero-image { position: relative; align-self: stretch; min-height: 620px; overflow: hidden; background: #d5d1c8; }
.models-hero-image img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 12s ease-out both; }
.models-hero-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 1.4rem; border-top: 1px solid var(--line); color: #66645c; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.models-hero-meta span:nth-child(2) { text-align: center; }
.models-hero-meta span:last-child { text-align: right; }

.catalog { background: #f4f2ec; }
.catalog-heading { display: grid; grid-template-columns: 1fr 390px; gap: 8vw; align-items: end; }
.catalog-heading h2 { margin: 4rem 0 0; font-size: clamp(3.5rem, 6vw, 7rem); line-height: .93; }
.catalog-heading h2 em { color: #8e8c83; }
.catalog-heading > p { margin: 0; color: #6d6b63; line-height: 1.7; }
.model-filters { position: sticky; top: 74px; z-index: 20; display: flex; gap: .5rem; margin: 5rem -1rem 0; padding: 1rem; overflow-x: auto; background: rgba(244,242,236,.94); backdrop-filter: blur(14px); }
.model-filters button { flex: 0 0 auto; padding: .8rem 1rem; color: #68665e; border: 1px solid var(--line); border-radius: 100px; background: transparent; cursor: pointer; font-size: .8rem; transition: .25s ease; }
.model-filters button span { margin-left: .45rem; opacity: .58; }
.model-filters button.active, .model-filters button:hover { color: white; border-color: var(--ink); background: var(--ink); }
.model-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4rem 1.4rem; margin-top: 3rem; }
.model-card { grid-column: span 4; min-width: 0; }
.model-card.is-hidden { display: none; }
.model-open { width: 100%; padding: 0; color: inherit; text-align: left; border: 0; background: transparent; cursor: pointer; }
.model-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #d7d3ca; }
.model-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s cubic-bezier(.2,.7,.1,1), filter .4s ease; }
.model-open:hover .model-image img { transform: scale(1.04); filter: saturate(1.05); }
.image-crop-left img { object-position: 20% center; }
.image-crop-center img { object-position: 50% center; }
.image-crop-right img { object-position: 80% center; }
.model-card-copy { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: 1.2rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.model-card-copy small { grid-column: 1 / -1; color: #77756c; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
.model-card-copy b { font: 400 1.8rem var(--display); letter-spacing: -.035em; }
.model-card-copy > span { align-self: end; color: #77756d; font-size: .74rem; text-align: right; }
.card-finishes { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .85rem; }
.card-finishes > div, .door-swatches { display: flex; gap: .45rem; }
.card-finishes button, .door-swatches button { width: 25px; height: 25px; padding: 0; border: 3px solid #f4f2ec; border-radius: 50%; outline: 1px solid rgba(23,23,19,.2); background: var(--swatch); cursor: pointer; transition: transform .2s ease, outline-color .2s ease; }
.card-finishes button:hover, .door-swatches button:hover { transform: scale(1.08); }
.card-finishes button.selected, .door-swatches button.selected { outline: 2px solid var(--ink); }
.card-finishes > span { color: #77756d; font-size: .72rem; }

.door-catalog { color: var(--ink); background: #ddd8cd; }
.door-catalog-head { display: grid; grid-template-columns: .45fr 1fr .65fr; gap: 4vw; align-items: end; }
.door-catalog-head h2 { margin: 0; font-size: clamp(3.5rem, 6vw, 7rem); line-height: .9; }
.door-catalog-head h2 em { color: #807d74; }
.door-catalog-head > p { margin: 0; color: #65635b; line-height: 1.7; }
.door-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-top: 5rem; }
.door-item { min-width: 0; }
.door-visual { aspect-ratio: 3 / 4; overflow: hidden; background: #cec8bc; }
.door-visual img { width: 100%; height: 100%; object-fit: cover; transition: filter .35s ease, transform .6s ease; }
.door-item:hover .door-visual img { transform: scale(1.025); }
.door-info { padding: 1rem 0; border-top: 1px solid rgba(23,23,19,.16); }
.door-info small { color: #77746b; font-size: .68rem; letter-spacing: .1em; }
.door-info h3 { margin: .45rem 0 .25rem; font: 400 1.55rem var(--display); }
.door-info p { min-height: 2.4em; margin: 0 0 1rem; color: #6c6961; font-size: .72rem; line-height: 1.5; }
.door-swatches button { width: 23px; height: 23px; border-color: #ddd8cd; }
.door-finish { display: block; margin-top: .65rem; color: #6c6961; font-size: .7rem; }

.surface-catalog { background: #f4f2ec; }
.surface-catalog-head { display: grid; grid-template-columns: .45fr 1fr .65fr; gap: 4vw; align-items: end; }
.surface-catalog-head h2 { margin: 0; font-size: clamp(3.5rem, 6vw, 7rem); line-height: .9; }
.surface-catalog-head h2 em { color: #858279; }
.surface-catalog-head > p { margin: 0; color: #65635b; line-height: 1.7; }
.surface-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4rem 1.25rem; margin-top: 5rem; }
.surface-card { min-width: 0; }
.surface-stage { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(circle at 50% 24%, #fbfaf5 0, #e6e1d7 58%, #cdc5b8 100%); perspective: 900px; }
.surface-stage::after { content: ""; position: absolute; inset: auto 9% 7% 9%; height: 12%; border-radius: 50%; background: rgba(38,34,28,.14); filter: blur(18px); }
.cabinet-front, .door-product, .studio-product { --product-color: #d8d0c3; position: relative; z-index: 1; background-color: var(--product-color); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), inset -10px -8px 18px rgba(0,0,0,.1), 0 24px 38px rgba(42,34,25,.2); transition: background-color .3s ease, filter .3s ease, box-shadow .3s ease; }
.cabinet-front { width: 60%; height: 72%; border: 8px solid color-mix(in srgb, var(--product-color), #171713 7%); }
.door-product { width: 55%; height: 82%; border: 7px solid color-mix(in srgb, var(--product-color), #171713 12%); }
.front-flat { background: var(--product-color); }
.front-shaker::before, .front-slim::before, .front-classic::before, .door-shaker::before, .door-panel::before { content: ""; position: absolute; inset: 11%; border: 12px solid color-mix(in srgb, var(--product-color), #171713 8%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.front-slim::before, .door-shaker::before { inset: 7%; border-width: 5px; }
.front-fluted, .door-fluted { background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(0,0,0,.16) 10px 13px), var(--product-color); }
.front-arched::before { content: ""; position: absolute; inset: 11% 12%; border: 9px solid color-mix(in srgb, var(--product-color), #171713 9%); border-radius: 45% 45% 5px 5px; }
.front-classic::after { content: ""; position: absolute; inset: 28% 19%; border: 5px double rgba(35,31,26,.24); }
.front-glass::before { content: ""; position: absolute; inset: 10%; border: 9px solid color-mix(in srgb, var(--product-color), #171713 10%); background: linear-gradient(135deg, rgba(255,255,255,.46), rgba(34,42,43,.34)); backdrop-filter: blur(2px); }
.front-weave::before { content: ""; position: absolute; inset: 11%; border: 8px solid color-mix(in srgb, var(--product-color), #171713 9%); background: repeating-linear-gradient(45deg, rgba(71,48,27,.25) 0 3px, rgba(255,255,255,.13) 3px 6px), repeating-linear-gradient(-45deg, transparent 0 4px, rgba(65,43,25,.18) 4px 7px); }
.product-handle, .studio-handle { position: absolute; z-index: 3; display: block; background: #a7814e; box-shadow: 0 2px 4px rgba(0,0,0,.24); }
.handle-edge { top: 8%; right: -4px; width: 6px; height: 32%; }
.handle-bar { top: 44%; right: 9%; width: 7px; height: 20%; border-radius: 8px; }
.handle-knob { top: 52%; right: 12%; width: 13px; height: 13px; border-radius: 50%; }
.handle-cup { bottom: 18%; left: 42%; width: 28px; height: 13px; border-radius: 4px 4px 14px 14px; }
.door-glass::before { content: ""; position: absolute; inset: 5% 8% 5% auto; width: 20%; border: 4px solid color-mix(in srgb, var(--product-color), #171713 10%); background: linear-gradient(90deg, rgba(255,255,255,.42), rgba(71,84,85,.25)); }
.door-arch { border-radius: 48% 48% 3px 3px / 25% 25% 3px 3px; }
.door-pivot { width: 66%; background: linear-gradient(90deg, transparent 0 72%, rgba(181,139,81,.75) 72% 73%, transparent 73%), var(--product-color); }
.door-panel::before { inset: 8% 10%; border-width: 6px; box-shadow: inset 0 30%, inset 0 -30%; }
.door-horizontal { background: repeating-linear-gradient(0deg, transparent 0 52px, rgba(0,0,0,.2) 52px 55px), var(--product-color); }
.door-lever { top: 54%; right: 10%; width: 28px; height: 6px; border-radius: 5px; }
.door-knob { top: 55%; right: 12%; width: 14px; height: 14px; border-radius: 50%; }
.door-pull { top: 32%; right: 9%; width: 7px; height: 35%; border-radius: 6px; }
.surface-info { padding: 1rem 0; border-top: 1px solid rgba(23,23,19,.16); }
.surface-info small { color: #77746b; font-size: .78rem; letter-spacing: .08em; }
.surface-info h3 { margin: .45rem 0 .25rem; font: 400 1.65rem var(--display); }
.surface-info p { margin: 0 0 1rem; color: #6c6961; font-size: .82rem; line-height: 1.5; }
.product-swatches { display: flex; flex-wrap: wrap; gap: .55rem; }
.product-swatches button, .studio-colors button { width: 30px; height: 30px; padding: 0; border: 3px solid #f4f2ec; border-radius: 50%; outline: 1px solid rgba(23,23,19,.22); background: var(--swatch); cursor: pointer; }
.door-catalog .product-swatches button { border-color: #ddd8cd; }
.product-swatches button.selected, .studio-colors button.selected { outline: 2px solid currentColor; transform: scale(1.08); }
.product-color-name { display: block; margin-top: .7rem; color: #6c6961; font-size: .8rem; }

.design-studio { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; color: white; background: #171713; }
.studio-copy h2 { margin: 4rem 0 2rem; font-size: clamp(3.5rem, 5.6vw, 6.5rem); line-height: .93; }
.studio-copy > p { max-width: 580px; color: #aaa99f; line-height: 1.7; }
.studio-controls { display: grid; gap: 1.55rem; margin-top: 3rem; }
.studio-controls fieldset { margin: 0; padding: 0; border: 0; }
.studio-controls legend { margin-bottom: .75rem; color: #99988f; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.studio-segments, .studio-models { display: flex; flex-wrap: wrap; gap: .45rem; }
.studio-segments button, .studio-models button { padding: .72rem .9rem; color: #b0afa7; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: transparent; cursor: pointer; font-size: .86rem; }
.studio-segments button.active, .studio-models button.active { color: #171713; border-color: var(--accent); background: var(--accent); }
.studio-colors { display: flex; flex-wrap: wrap; gap: .6rem; }
.studio-colors button { width: 34px; height: 34px; border-color: #171713; color: white; }
#studioColorName { display: inline-block; margin-top: .7rem; color: #aaa99f; font-size: .82rem; }
.studio-preview { align-self: start; position: sticky; top: 104px; background: #272721; }
.studio-room { position: relative; display: grid; place-items: center; min-height: 680px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #f2eee5 0, #c9c0b2 58%, #6e675e 100%); perspective: 1100px; }
.studio-room::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.2), transparent 35%); }
.studio-room .studio-product { width: 48%; height: 68%; border: 9px solid color-mix(in srgb, var(--product-color), #171713 10%); transform: rotateY(-4deg); }
.studio-room .studio-product.door-product { width: 42%; height: 80%; }
.studio-floor { position: absolute; inset: auto 0 0; height: 18%; background: repeating-linear-gradient(90deg, #8e7a65 0 90px, #806e5c 90px 93px); transform: skewY(-3deg); transform-origin: left bottom; opacity: .72; }
.finish-mat { filter: saturate(.92); }
.finish-saten { filter: saturate(1.04) brightness(1.03); box-shadow: inset 12px 0 22px rgba(255,255,255,.16), inset -10px -8px 18px rgba(0,0,0,.1), 0 24px 38px rgba(42,34,25,.2); }
.finish-parlak { filter: saturate(1.1) brightness(1.09); box-shadow: inset 24px 0 32px rgba(255,255,255,.26), inset -10px -8px 18px rgba(0,0,0,.06), 0 24px 38px rgba(42,34,25,.24); }
.studio-summary { padding: 2rem; }
.studio-summary small { color: #85847b; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.studio-summary h3 { margin: .55rem 0 .3rem; font: 400 clamp(1.8rem, 3vw, 3rem) var(--display); }
.studio-summary p { margin: 0 0 2rem; color: #aaa99f; }
.studio-summary a { display: flex; justify-content: center; padding: 1rem; color: var(--ink); background: var(--accent); font-size: .9rem; transition: .25s ease; }
.studio-summary a:hover { transform: translateY(-3px); }

.configurator { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; color: white; background: #1b1b17; }
.config-copy h2 { margin: 4rem 0 2rem; font-size: clamp(3.5rem, 5.6vw, 6.5rem); line-height: .93; }
.config-copy > p { max-width: 560px; color: #aaa99f; line-height: 1.7; }
.config-fields { display: grid; gap: 1.4rem; margin-top: 3.5rem; }
.config-fields label { color: #8e8d84; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.config-fields select { width: 100%; margin-top: .55rem; padding: 1rem 0; color: white; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); border-radius: 0; outline: none; background: transparent; color-scheme: dark; font-size: 1.05rem; text-transform: none; }
.config-fields select:focus { border-color: var(--accent); }
.config-preview { align-self: start; background: #292923; }
.config-preview > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .25s ease; }
.config-summary { padding: 2rem; }
.config-summary small { color: #85847b; font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; }
.config-summary h3 { margin: .5rem 0 .25rem; font: 400 clamp(1.8rem, 3vw, 3rem) var(--display); }
.config-summary p { margin: 0 0 2rem; color: #9b9a91; }
.config-summary a, .dialog-whatsapp { display: flex; justify-content: center; padding: 1rem; color: var(--ink); background: var(--accent); font-size: .82rem; transition: .25s ease; }
.config-summary a:hover, .dialog-whatsapp:hover { transform: translateY(-3px); }

.model-dialog { width: min(1120px, calc(100% - 2rem)); max-width: none; padding: 0; color: var(--ink); border: 0; background: #f4f2ec; box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.model-dialog[open] { display: grid; grid-template-columns: 1.1fr .9fr; }
.model-dialog::backdrop { background: rgba(12,12,10,.72); backdrop-filter: blur(5px); }
.model-dialog-media { min-height: 620px; background: #d5d1c8; }
.model-dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.model-dialog-copy { padding: 4.5rem 3.5rem 3rem; }
.model-dialog-copy > small { color: #77756d; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.model-dialog-copy h2 { margin: .8rem 0 1.5rem; font-size: clamp(3rem, 5vw, 5.6rem); line-height: .9; }
.model-dialog-copy > p { color: #66645d; line-height: 1.7; }
.model-dialog-copy ul { margin: 2rem 0; padding: 1.5rem 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model-dialog-copy li { padding: .35rem 0; color: #55534c; font-size: .84rem; }
.finish-picker { display: flex; gap: .6rem; margin-bottom: 2rem; }
.finish-picker button { width: 34px; height: 34px; border: 2px solid #f4f2ec; border-radius: 50%; outline: 1px solid var(--line); cursor: pointer; }
.finish-picker button.selected { outline: 2px solid var(--ink); }
.finish-name { margin: -1.3rem 0 2rem; color: #68665e; font-size: .75rem; }
.model-dialog-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #f4f2ec; cursor: pointer; font-size: 1.8rem; line-height: 1; }

@media (max-width: 1020px) {
  .models-hero { grid-template-columns: 1fr; padding-top: 120px; }
  .models-hero-image { min-height: 540px; }
  .model-card { grid-column: span 6; }
  .door-catalog-head { grid-template-columns: 1fr; }
  .door-list { grid-template-columns: repeat(3, 1fr); }
  .configurator { grid-template-columns: 1fr; }
  .config-preview { width: min(720px, 100%); }
  .surface-catalog-head { grid-template-columns: 1fr; align-items: start; }
  .surface-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-studio { grid-template-columns: 1fr; }
  .studio-preview { position: static; width: min(720px, 100%); }
}

@media (max-width: 920px) {
  .catalog-heading { grid-template-columns: 1fr; }
  .models-page .menu-open .site-header { color: white; background: transparent; border-color: transparent; backdrop-filter: none; }
  .models-page .menu-open .menu-toggle { border-color: rgba(255,255,255,.65); }
  .model-dialog[open] { grid-template-columns: 1fr; }
  .model-dialog-media { min-height: 420px; }
}

@media (max-width: 620px) {
  .models-hero { min-height: auto; padding: 120px 1.25rem 3rem; }
  .models-hero h1 { font-size: clamp(3.5rem, 16vw, 5rem); }
  .models-hero-image { min-height: 390px; }
  .models-hero-meta { gap: .5rem; font-size: .58rem; }
  .catalog-heading h2, .config-copy h2, .surface-catalog-head h2, .studio-copy h2 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .model-filters { top: 72px; }
  .model-grid { display: block; }
  .model-card { margin-bottom: 2.5rem; }
  .model-card-copy > span { max-width: 140px; }
  .door-list { grid-template-columns: repeat(2, 1fr); gap: 2.5rem .8rem; }
  .surface-grid { grid-template-columns: 1fr; gap: 3rem; }
  .surface-stage { aspect-ratio: 1 / 1.05; }
  .studio-room { min-height: 490px; }
  .studio-room .studio-product { width: 56%; height: 67%; }
  .studio-room .studio-product.door-product { width: 48%; height: 78%; }
  .model-dialog { width: 100%; height: 100%; margin: 0; overflow-y: auto; }
  .model-dialog-media { min-height: 300px; }
  .model-dialog-copy { padding: 3rem 1.25rem 2rem; }
}
