/* Casa Monteiro — identidade editorial: linho, grafite, terracota e oliva. Cormorant Garamond + Jost. */
:root {
  --linen: #EFE8DE; --cream: #F8F5F0; --paper: #FFFFFF; --sand: #E3D8C8;
  --ink: #2B2926; --ink-2: #6A635A; --terra: #8E4A2E; --terra-lt: #C47A55; --olive: #59614A;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; --sans: "Jost", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 26px; border: 1px solid var(--ink); font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; background: transparent; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-full { width: 100%; }
.x { width: 42px; height: 42px; border: 1px solid var(--sand); background: var(--paper); border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }

.announce { margin: 0; background: var(--olive); color: #F1EEE6; text-align: center; font-size: 13px; letter-spacing: .04em; padding: 9px 16px; }
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(248, 245, 240, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand); }
.hdr-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .01em; }
.logo i { font-style: italic; font-weight: 500; color: var(--terra); }
.hnav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; letter-spacing: .03em; }
.hnav a { text-decoration: none; color: var(--ink-2); }
.hnav a:hover { color: var(--ink); }
.list-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 14px; letter-spacing: .04em; }
.list-btn .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--terra); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.list-btn.pulse { animation: pulse .5s; }
@keyframes pulse { 40% { transform: scale(1.08); } }
@media (max-width: 860px) { .hnav { display: none; } .list-btn { margin-left: auto; } .lb-label { display: none; } .logo { font-size: 24px; } }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(50px, 7vw, 100px); background: var(--linen); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.kick { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--olive); margin-bottom: 20px; }
.hero h1 { font-size: clamp(48px, 6.6vw, 92px); line-height: .98; }
.hero h1 em { color: var(--terra); }
.sub { font-size: 18px; color: var(--ink-2); max-width: 470px; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { position: relative; padding: 0 0 60px 0; }
.art-a { margin: 0 0 0 auto; width: 78%; aspect-ratio: 18 / 23; background: var(--sand); border-radius: 220px 220px 0 0; overflow: hidden; }
.art-a img, .art-b img { width: 100%; height: 100%; object-fit: cover; }
.art-b { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1; margin: 0; background: var(--sand); border: 10px solid var(--linen); }
.art-cap { position: absolute; right: 0; bottom: 14px; font-family: var(--serif); font-style: italic; font-size: 20px; }
.art-cap span { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin-right: 6px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .art-a { width: 82%; } }

.sec { padding: clamp(60px, 8vw, 110px) 0; }
.sec-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; margin-bottom: 34px; border-bottom: 1px solid var(--sand); padding-bottom: 18px; }
.sec-top h2 { font-size: clamp(40px, 5vw, 64px); }
.sec-top p { color: var(--ink-2); }

/* Ambientes */
.rooms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.room { position: relative; border: 0; padding: 0; background: var(--sand); cursor: pointer; text-align: left; overflow: hidden; aspect-ratio: 3 / 4; }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.room:hover img { transform: scale(1.05); }
.room span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; color: #fff; font-family: var(--serif); font-size: 26px; background: linear-gradient(0deg, rgba(20, 16, 12, .7), transparent); }
.room small { display: block; font-family: var(--sans); font-size: 13px; opacity: .9; letter-spacing: .04em; }
@media (max-width: 900px) { .rooms { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; } .room { scroll-snap-align: start; } }

/* Catálogo */
.cat-sec { background: var(--paper); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); padding: 0 14px; background: var(--paper); }
.search input { flex: 1; border: 0; outline: 0; min-height: 48px; background: transparent; font-size: 16px; min-width: 0; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(142, 74, 46, .2); }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.sort select { min-height: 50px; border: 1px solid var(--ink); background: var(--paper); padding: 0 34px 0 12px; font-size: 15px; color: var(--ink); }
.filters-btn { display: none; }
.cat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
.filters-head { display: none; }
.filters-foot { padding: 16px 0 4px; border-top: 1px solid var(--sand); }
.filters-foot .btn { width: 100%; }
.filters-foot #f-apply { display: none; }
.filters fieldset { border: 0; box-shadow: inset 0 1px 0 var(--sand); margin: 0; padding: 16px 0 18px; }
.filters legend { font-family: var(--serif); font-size: 22px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.ck { display: flex; align-items: center; gap: 10px; min-height: 38px; cursor: pointer; font-size: 15px; color: var(--ink-2); }
.ck input { width: 18px; height: 18px; accent-color: var(--terra); margin: 0; }
.ck small { margin-left: auto; color: #6F675C; font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { position: relative; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); cursor: pointer; }
.sw input:checked + span { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.sw input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 4px; }
@media (max-width: 960px) {
  .filters-btn { display: inline-flex; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 9500; max-height: none; background: var(--paper); padding: 0 20px; display: none; flex-direction: column; }
  .filters.open { display: flex; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: var(--serif); font-size: 28px; border-bottom: 1px solid var(--sand); position: sticky; top: 0; background: var(--paper); }
  .filters-foot #f-apply { display: inline-flex; }
  .filters-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0; position: sticky; bottom: 0; background: var(--paper); margin-top: auto; border-top: 1px solid var(--sand); }
  .sort span { display: none; }
}
.res-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; min-height: 36px; }
.res-bar p { color: var(--ink-2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1px solid var(--sand); background: var(--linen); font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.clear { background: transparent; text-decoration: underline; border-color: transparent; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
.card { position: relative; }
.card-btn { display: block; width: 100%; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.card-ph { position: relative; aspect-ratio: 4 / 5; background: var(--linen); overflow: hidden; }
.card-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .7s; }
.card-ph img.alt { opacity: 0; }
.card-btn:hover .card-ph img.alt, .card-btn:focus-visible .card-ph img.alt { opacity: 1; }
.card-btn:hover .card-ph img:first-child { transform: scale(1.03); }
.card-tag { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 74px); line-height: 1.3; background: var(--paper); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; }
.card h3 { font-size: 24px; margin-top: 14px; }
.card .meta { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.card .price { font-size: 17px; font-weight: 500; margin-top: 6px; }
.heart { position: absolute; right: 10px; top: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); transition: transform .2s; }
.heart:hover { transform: scale(1.08); }
.heart[aria-pressed="true"] { color: var(--terra); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.empty { padding: 50px 0; display: grid; gap: 14px; justify-items: start; color: var(--ink-2); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid { gap: 26px 12px; } .card h3 { font-size: 20px; } .card .meta { font-size: 13px; } }

/* Como comprar */
.how { background: var(--linen); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.steps li { padding: 26px 26px 10px 0; border-right: 1px solid var(--sand); }
.steps li + li { padding-left: 26px; }
.steps li:last-child { border-right: 0; }
.steps span { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--terra); }
.steps h3 { font-size: 28px; margin: 6px 0 8px; }
.steps p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--sand); } }

/* Loja */
.loja-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.loja figure { margin: 0; aspect-ratio: 25 / 19; background: var(--sand); overflow: hidden; }
.loja figure img { width: 100%; height: 100%; object-fit: cover; }
.loja h2 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 16px; }
.loja p { color: var(--ink-2); font-size: 17px; }
.loja dl { margin: 24px 0 28px; display: grid; gap: 12px; }
.loja dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; border-top: 1px solid var(--sand); padding-top: 12px; }
.loja dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.loja dd { margin: 0; }
@media (max-width: 860px) { .loja-in { grid-template-columns: 1fr; } }

.foot { background: var(--ink); color: #CFC7BB; padding: 44px 0 90px; font-size: 14px; }
.foot-in { display: grid; gap: 12px; }
.foot .logo { color: #fff; font-size: 26px; }
.foot .logo i { color: var(--terra-lt); }

/* Diálogos */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(30, 25, 20, .6); }
.pd { width: min(1040px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); background: var(--paper); }
.pd[open] { animation: rise .3s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.pd-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.pd-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); max-height: calc(100vh - 24px); }
.pd-gal { background: var(--linen); padding: 16px; display: grid; gap: 10px; align-content: start; overflow-y: auto; }
.pd-main { margin: 0; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; max-height: calc(100vh - 150px); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; }
.pd-thumbs button { position: relative; width: 72px; height: 72px; padding: 0; border: 1px solid transparent; background: var(--sand); cursor: pointer; overflow: hidden; }
.pd-thumbs button[aria-pressed="true"] { border: 2px solid var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 34px 30px 28px; overflow-y: auto; }
.pd-cat { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); }
.pd-info h2 { font-size: clamp(34px, 3.4vw, 46px); margin: 8px 0 10px; padding-right: 30px; }
.pd-price { font-size: 22px; font-weight: 500; }
.pd-price small { font-size: 13px; color: var(--ink-2); font-weight: 400; margin-left: 6px; }
.pd-desc { color: var(--ink-2); margin-top: 16px; }
.pd-specs { margin: 22px 0; display: grid; gap: 0; }
.pd-specs div { display: grid; grid-template-columns: 160px 1fr; padding: 10px 0; border-top: 1px solid var(--sand); font-size: 15px; }
.pd-specs dt { color: var(--ink-2); }
.pd-specs dd { margin: 0; }
.pd-actions { display: flex; gap: 10px; }
.pd-actions .btn { flex: 1; }
.qty { display: flex; align-items: center; border: 1px solid var(--ink); }
.qty button { width: 42px; height: 48px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty output { min-width: 26px; text-align: center; }
.pd-wa { display: inline-block; margin-top: 16px; font-size: 15px; color: var(--terra); text-underline-offset: 4px; }
@media (max-width: 860px) {
  .pd { width: 100vw; height: 100%; max-height: 100%; margin: 0; }
  .pd-in { grid-template-columns: 1fr; max-height: none; height: 100%; overflow-y: auto; }
  .pd-gal, .pd-info { overflow: visible; }
  .pd-main { aspect-ratio: 1; max-height: 60vh; }
  .pd-info { padding: 22px 20px 30px; }
}

.ld { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; background: var(--paper); }
.ld[open] { display: flex; flex-direction: column; animation: slidein .3s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.ld-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--sand); }
.ld-head h2 { font-size: 34px; }
.ld-body { flex: 1; overflow-y: auto; padding: 0 22px 20px; }
.ld-empty { padding: 34px 0; color: var(--ink-2); display: grid; gap: 6px; }
.ld-list { list-style: none; margin: 0; padding: 0; }
.ld-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--sand); }
.ld-item .ph { width: 76px; height: 95px; background: var(--linen); overflow: hidden; }
.ld-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.ld-item h4 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.ld-item small { color: var(--ink-2); display: block; font-size: 13px; }
.ld-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ld-row .qty button { width: 34px; height: 36px; font-size: 17px; }
.link { border: 0; background: none; padding: 0; color: var(--terra); text-decoration: underline; cursor: pointer; font-size: 14px; }
.ld-form { margin-top: 22px; display: grid; gap: 12px; }
.ld-form h3 { font-size: 26px; }
.fl { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.fl label, .fl legend { font-size: 14px; font-weight: 500; padding: 0; }
.fl input, .fl textarea { width: 100%; min-height: 48px; border: 1px solid #CFC3B2; padding: 11px 12px; background: var(--paper); font-size: 16px; }
.fl input:focus, .fl textarea:focus { outline: none; border-color: var(--ink); }
.fl .er { display: none; color: #A23A1B; font-size: 13px; font-weight: 500; }
.fl.bad .er { display: block; }
.fl.bad input { border-color: #A23A1B; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid #CFC3B2; cursor: pointer; font-size: 15px; }
.seg input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.ld-foot { padding: 16px 22px 20px; border-top: 1px solid var(--sand); }
.ld-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; color: var(--ink-2); }
.ld-total b { font-size: 22px; color: var(--ink); font-weight: 500; }
.ld-note { font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 9800; background: var(--ink); color: var(--cream); padding: 12px 18px; font-size: 15px; transition: all .3s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
