:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #1a2b39;
  background: #f8f5ef;
  --navy: #132b46;
  --muted: #52616c;
  --line: #e5ded3;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #a34622; outline-offset: 4px; }
.wrap { width: min(1136px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.header-inner, .footer-inner {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand { font-weight: 850; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.back { font-weight: 650; text-underline-offset: 4px; }

.intro {
  padding: clamp(30px, 6vw, 66px);
  margin-block: 32px 48px;
  border-radius: 26px;
  background: #eee4d7;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 30px;
}
.eyebrow { margin: 0 0 10px; font-weight: 720; color: #744124; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); }
h1 { font-size: clamp(45px, 7vw, 84px); letter-spacing: -.045em; line-height: 1; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.035em; margin: 0 0 22px; }
.intro p:not(.eyebrow) { margin: 14px 0 0; max-width: 42ch; color: var(--muted); line-height: 1.65; }
.availability { border-left: 1px solid #b6a392; padding-left: 22px; }
.availability strong { color: var(--navy); }
.availability p:not(.eyebrow) { margin-top: 6px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}
.product {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.product-image { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #eee4d7; object-fit: contain; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 19px; }
.product h3 { color: var(--navy); font-size: 1.18rem; margin: 0 0 8px; }
.product p { color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.material { display: grid; gap: 6px; margin-top: auto; font-weight: 650; color: var(--navy); }
.material select {
  background: #fff;
  border: 1px solid #b8b0a5;
  box-sizing: border-box;
  border-radius: 10px;
  color: var(--navy);
  font: inherit;
  font-weight: 500;
  min-height: 44px;
  padding: 8px 11px;
  width: 100%;
}
.site-footer { background: var(--navy); color: white; }

@media (max-width: 820px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .intro { grid-template-columns: 1fr; margin-block: 20px 30px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
}

.gatificacao-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 24px;
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 5px;
}
.gatificacao-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.planner {
  margin-bottom: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(16px, 4vw, 36px);
}
.planner [hidden] { display: none; }
.planner-intro { display: flex; gap: 12px 24px; align-items: start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
.planner-intro h2 { margin-bottom: 10px; }
.planner-intro p, .planner-note, .planner-summary p { margin: 0; color: var(--muted); line-height: 1.55; }
.planner-badge { background: #eee4d7; color: #653b22; border-radius: 8px; padding: 7px 11px; font-size: .875rem; font-weight: 700; }
.planner-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 300px); gap: 24px; }
.planner-wall { min-width: 0; }
.planner-wall-frame { background: #f5f0e9; border: 1px solid var(--line); padding: 8px; border-radius: 14px; }
.planner-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, calc(510px * var(--wall-ratio, 1.5)));
  aspect-ratio: var(--wall-ratio, 1.5);
  overflow: hidden;
  margin-inline: auto;
  border-radius: 8px;
  background-color: #e9e0d4;
  background-image: linear-gradient(#fff7 1px, transparent 1px), linear-gradient(90deg, #fff7 1px, transparent 1px);
  background-size: 24px 24px;
}
#planner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.planner-empty {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 16px;
  color: #4f4339;
  text-align: center;
  pointer-events: none;
}
.planner-piece {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  cursor: grab;
  touch-action: none;
  background: transparent;
}
.planner-piece:active { cursor: grabbing; }
.planner-piece[aria-pressed="true"] { z-index: 1; }
.planner-piece:focus-visible { outline-offset: 3px; }
.planner-piece img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  transform: skewY(var(--piece-angle, 0deg));
  filter: drop-shadow(2px 4px 4px #251b1560);
}
.planner-guide { display: flex; align-items: center; gap: 8px; margin: 8px auto 0; color: var(--navy); font-size: .875rem; }
.planner-guide::before, .planner-guide::after { content: ""; flex: 1; border-top: 1px solid #786650; }
.planner-note { margin-top: 10px; font-size: .875rem; }
.planner-controls, .planner-selection { display: grid; gap: 12px; align-content: start; min-width: 0; }
.planner-field { display: grid; gap: 5px; font-weight: 670; color: var(--navy); }
.planner-field input, .planner-field select, .planner button { font: inherit; }
.planner-field input[type="file"] { width: 100%; font-size: .875rem; }
.planner-field input[type="file"]::file-selector-button { min-height: 40px; margin-right: 6px; border: 1px solid #b8b0a5; border-radius: 8px; padding-inline: 8px; background: #fff; color: var(--navy); font: inherit; cursor: pointer; }
.planner-field input[type="number"], .planner-field select {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--navy);
  border: 1px solid #b8b0a5;
  border-radius: 8px;
  background: #fff;
}
.planner-field select {
  appearance: none;
  padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.planner-field input[type="range"] { accent-color: var(--navy); min-height: 32px; }
.planner .planner-primary, .planner .planner-secondary { cursor: pointer; border-radius: 9px; min-height: 42px; padding: 8px 12px; font-weight: 700; }
.planner-primary { border: 1px solid var(--navy); background: var(--navy); color: #fff; }
.planner-secondary { background: #fff; border: 1px solid #b8b0a5; color: var(--navy); }
.planner-selection { padding: 12px; background: #f5f0e9; border-radius: 10px; }
.planner-status { margin: 0; color: var(--muted); font-size: .875rem; }
.planner-status:empty { display: none; }
.planner-summary { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.planner-summary h3 { margin: 0 0 8px; color: var(--navy); }
.planner-summary ul { margin-block: 0; padding-inline-start: 22px; color: var(--navy); line-height: 1.7; }
@media (max-width: 760px) {
  .planner-layout { grid-template-columns: 1fr; gap: 16px; }
}
.product-quote { margin-top: 12px; }
.product-quote p { margin: 0 0 8px; font-size: .875rem; }
.quote-button {
  margin-top: 8px;
  padding: 8px 12px;
  min-height: 42px;
  border: 1px solid var(--navy);
  border-radius: 9px;
  background: var(--navy);
  color: white;
  font: inherit;
  cursor: pointer;
}
.planner-summary .quote-feedback, .product-quote .quote-feedback {
  margin-top: 8px;
  white-space: pre-wrap;
}
.quote-feedback:empty { display: none; }
.product-price { display: block; color: var(--navy); font-size: 1.2rem; }
.product-info .product-price { margin-top: 12px; }
.planner-summary .planner-subtotal { margin-top: 12px; font-weight: 700; color: var(--navy); }
