:root {
  color-scheme: light;
  --paper: #f8f3eb;
  --white: #fffcf7;
  --ink: #252219;
  --muted: #61594d;
  --line: #d8cfc0;
  --gold: #875b22;
  --gold-light: #f1ce8b;
  --dark: #24231e;
  --heading: "Instrument Serif", Georgia, serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 "DM Sans", system-ui, sans-serif;
}

a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { max-width: 100%; }
p { color: var(--muted); }
.shell { width: min(1240px, calc(100% - clamp(32px, 7vw, 96px))); margin-inline: auto; }

header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 74px;
}

header { border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); padding-block: 18px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-name { font: 1.5rem/1 var(--heading); }
.logo {
  position: relative;
  display: block;
  width: 42px;
  height: 41px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--dark);
}

.logo-symbol {
  position: relative;
  display: block;
  height: 30px;
  overflow: hidden;
}

.logo-label {
  position: absolute;
  inset: auto 0 3px;
  color: #ffd642;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  letter-spacing: .12em;
}

.logo img {
  position: absolute;
  max-width: none;
  width: 223px;
  height: 294px;
  left: -34px;
  top: -11px;
}

nav { display: flex; flex-wrap: wrap; gap: clamp(10px, 2.1vw, 28px); }
nav a, .header-cta { font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); padding-block: 6px; }
nav a:hover, nav a[aria-current="page"], .text-link:hover { color: var(--gold); }
.order-link { color: var(--gold); }
nav a[aria-current="page"] { box-shadow: inset 0 -1px var(--gold); }

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  white-space: nowrap;
}

.header-cta:hover { background: #efe3d3; }
.menu-toggle, .mobile-order { display: none; }

.hero-band {
  position: relative;
  isolation: isolate;
  background: #f1e8dc;
}

.hero {
  display: flex;
  align-items: center;
  min-height: clamp(370px, 35vw, 540px);
  padding-block: clamp(30px, 4.3vw, 64px);
}

.hero-inner { width: 47%; }
.hero h1 { max-width: 15ch; font-size: clamp(3rem, 5.15vw, 5.2rem); line-height: .99; text-wrap: balance; }
.hero .button.secondary { border-color: var(--gold); background: #f8f3ebe8; }
.hero .button.secondary:hover { background: #fffaf2; }

.eyebrow {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); letter-spacing: -.027em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); letter-spacing: -.018em; }
h3 { font-size: clamp(1.55rem, 2.4vw, 2.35rem); letter-spacing: -.01em; }
h1 em { color: var(--gold); }
.hero-inner > p:not(.eyebrow) { max-width: 40ch; margin: 16px 0 22px; }

.hero-actions, .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 36%;
  z-index: -1;
  margin: 0;
  overflow: hidden;
  background: #c6a889;
}

.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f1e8dc, #f1e8dcf2 6%, #f1e8dc00 25%);
}

.hero-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 4px;
  background: #24231ed9;
  color: var(--white);
  font-size: .72rem;
}

.collection { padding-block: clamp(34px, 4vw, 58px); }
.collection h2 { text-align: center; }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 23px;
}

.collection-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  overflow: hidden;
  min-height: 155px;
  aspect-ratio: 1.8;
  border-radius: 10px;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
}

.collection-card img,
.collection-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.collection-card img { z-index: -2; object-fit: cover; transition: transform .2s ease; }
.collection-mirror img { object-position: 24% 42%; }
.collection-card::after { content: ""; z-index: -1; background: linear-gradient(transparent 32%, #1b1613e8); }
.collection-card:hover img { transform: scale(1.04); }
.collection-card:focus-visible { outline-color: var(--gold); }
.collection-card > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  font: clamp(1.4rem, 2.1vw, 1.85rem)/1.12 var(--heading);
}

#destaques { border-top: 1px solid var(--line); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 46px;
  padding: .75rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--dark);
  color: var(--white);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover:not(:disabled) { background: #40392c; }
.button:disabled { background: #e8e1d4; color: var(--muted); cursor: default; }
.button.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button.secondary:hover:not(:disabled) { background: #ede6d9; }
.button:focus-visible { outline-color: var(--gold); }
.text-link { font-size: .9rem; font-weight: 700; }

.section { padding-block: clamp(38px, 5.5vw, 78px); }
.service-section { background: #eee8dc; }
.services, .projects { display: grid; gap: 16px; margin-top: 26px; }
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.services article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
}

.services p { max-width: 44ch; margin-bottom: 16px; }
.services article { scroll-margin-top: 20px; }
.projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.projects a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  border-block: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
}

.projects a span { color: var(--gold); }
.projects a:hover { color: var(--gold); background: var(--white); }

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 6vw, 86px);
  align-items: center;
  border-radius: var(--radius);
  margin-bottom: clamp(44px, 6vw, 78px);
  padding-inline: clamp(22px, 5vw, 68px);
  background: var(--dark);
  color: var(--white);
}

.contact p { color: #e3d9c8; }
.contact .eyebrow, .contact a { color: var(--gold-light); }
.contact textarea, .contact input, .contact select { background: #312f27; border-color: #8b806c; color: var(--white); }
.contact textarea::placeholder, .contact input::placeholder { color: #c7bcaa; }
.contact .button { justify-self: start; background: var(--gold-light); color: var(--ink); }
.contact .button:hover { background: #ffe4af; }
.contact .button:focus-visible { outline-color: var(--gold-light); }

form { display: grid; gap: 10px; }
label { font-weight: 600; }
input, textarea, select {
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea { width: 100%; resize: vertical; }
.catalog-page main { min-height: calc(100svh - 176px); padding-block: clamp(20px, 4vw, 56px); }
.catalog-page .vitrine { margin-top: 0; }
.order, .editor {
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.order { margin-bottom: 24px; }
.order h2, .editor h3 { font-size: 2rem; }
.order-checkout { max-width: 390px; margin-block: 16px; }
.order-product { min-width: min(180px, 100%); display: grid; gap: 2px; }
.order-product small { color: var(--muted); }
#order { scroll-margin-top: 22px; }
.order ul, .editor ul { list-style: none; padding: 0; }
.order li, .editor li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
  overflow-wrap: anywhere;
}

.order li .button, .editor li .button { padding: .42rem .65rem; min-height: 38px; }
#order-items input { width: 4.3rem; }
.order-checkout > input { width: 100%; }
.editor summary { cursor: pointer; font-weight: 700; }
.editor form { margin-block: 20px; max-width: 560px; }
.editor .actions { gap: 8px; }
#status:empty { display: none; }
.feature-option { display: flex; align-items: center; gap: 8px; }
.feature-option input { accent-color: var(--gold); width: 18px; height: 18px; }

.photo-remove {
  background: var(--dark);
  color: var(--white);
  border: 1px solid var(--muted);
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
}

.photo-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-preview > div { display: grid; gap: 4px; width: 86px; }
.photo-preview img { width: 86px; height: 72px; object-fit: cover; border-radius: 4px; }
.photo-remove { font-size: .76rem; padding: 3px; }

@media (max-width: 960px) {
  header { gap: 5px 14px; padding-block: 10px 0; }
  header nav { order: 1; width: 100%; border-top: 1px solid var(--line); }
  .hero-inner { width: 50%; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 700px) {
  header nav { gap: 0 8px; }
  .brand-name { font-size: 1.35rem; }
  .header-cta { padding-inline: .65rem; font-size: .875rem; }
  .storefront-header.menu-ready {
    min-height: 64px;
    padding-block: 9px;
    gap: 6px;
  }
  .menu-ready .brand { margin-inline-end: auto; gap: 8px; }
  .menu-ready .mobile-order, .menu-ready .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding-inline: .58rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font: 650 .875rem/1 "DM Sans", system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
  }
  .menu-ready .menu-toggle { cursor: pointer; }
  .menu-toggle span { width: 13px; height: 7px; border-block: 1.5px solid currentColor; }
  .menu-ready:not(.menu-open) :is(nav, .header-cta), .menu-ready nav .order-link { display: none; }
  .menu-ready nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin-top: 3px; }
  .menu-ready nav a { padding-inline: 5px; }
  .menu-ready .header-cta { order: 2; justify-content: center; width: 100%; margin-top: 4px; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-band { background: #211b16; color: var(--white); }
  .hero { align-items: flex-end; min-height: clamp(410px, 111vw, 488px); padding-block: 28px; }
  .hero-inner { width: 100%; }
  .hero .eyebrow { color: var(--gold-light); font-size: .7rem; letter-spacing: .11em; }
  .hero h1 { font-size: clamp(2.45rem, 9vw, 3.7rem); max-width: 18ch; line-height: 1.03; overflow-wrap: anywhere; }
  .hero h1 em { color: var(--gold-light); }
  .hero-inner > p:not(.eyebrow) { color: #f4ecdf; max-width: 36ch; margin: 12px 0 18px; line-height: 1.45; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 380px; }
  .hero-actions .button { padding-inline: .35rem; border-radius: 8px; background: var(--gold-light); color: var(--ink); }
  .hero-actions .button:hover { background: #ffe3ad; }
  .hero-actions .button.secondary { border-color: #e6d3b7; background: #241b16a6; color: var(--white); }
  .hero-actions .button.secondary:hover { background: #423328; }
  .hero-photo { inset: 0; }
  .hero-photo img { object-position: 57% 50%; }
  .hero-photo::after { background: linear-gradient(180deg, #2017101a 0%, #21171066 31%, #211710ee 66%, #211710 100%); }
  .hero-photo figcaption { inset: 9px 10px auto auto; font-size: .7rem; }
  .collection { padding-block: 23px 26px; }
  .collection h2 { text-align: left; }
  .collection-grid { gap: 10px; margin-top: 13px; }
  .collection-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 0; aspect-ratio: auto; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
  .collection-card img { position: static; z-index: auto; height: auto; aspect-ratio: 1.65; }
  .collection-card::after { content: none; }
  .collection-card > span { min-height: 42px; padding: 8px 9px; font-size: 1.25rem; }
  #destaques { padding-block: 32px; }
  .services, .projects { grid-template-columns: minmax(0, 1fr); }
  .projects { gap: 8px; }
  .projects a { min-height: 48px; }
  .contact { padding-block: 26px; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .collection-card img { transition: none; }
  .collection-card:hover img { transform: none; }
}

.vitrine { margin-block: 34px; }
.vitrine-intro { margin: 10px 0 20px; }
.vitrine-categorias.catalog-purpose { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-purpose.vitrine-categorias button { background: var(--white); border-color: var(--line); }
.catalog-purpose.vitrine-categorias button[aria-pressed="true"] { background: #f1e5d4; border-color: #d4b990; }
.detail-order-help { font-size: .9rem; }

.anuncios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin-block: 20px;
}

.anuncio {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.anuncio:target { outline: 2px solid var(--gold); outline-offset: 4px; }

.anuncio-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #eee6da;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.anuncio-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 56%;
}

.anuncio-sem-foto {
  color: var(--muted);
  background: repeating-linear-gradient(135deg, #f3ede4, #f3ede4 12px, #efe8df 12px, #efe8df 13px);
  font-size: .875rem;
}
.anuncio-sem-foto span { padding: 5px 12px; border-radius: 4px; background: var(--white); }

.anuncio-conteudo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: clamp(14px, 1.7vw, 20px);
  overflow-wrap: anywhere;
}

.anuncio h3 { font-size: clamp(1.55rem, 2.1vw, 2rem); line-height: 1.12; }
.anuncio p { margin: 0; }

.anuncio .anuncio-categoria {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.anuncio-descricao {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .9rem;
  line-height: 1.5;
}

.anuncio-preco { display: block; color: var(--ink); font-size: 1.25rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.anuncio-preco-consulta { font-size: .95rem; font-weight: 650; }
.anuncio-valores { margin-top: auto; padding-top: 10px; border-top: 1px solid #e9e0d3; }
.anuncio .anuncio-nota { margin-top: 4px; color: var(--muted); font-size: .82rem; line-height: 1.42; }
.anuncio-acoes { display: grid; gap: 1px; margin-top: 4px; }
.anuncio-acoes .button { min-height: 44px; padding: .48rem .66rem; font-size: .875rem; }
.anuncio-acao { position: relative; z-index: 1; }
.anuncio-acesso { display: grid; place-items: center; min-height: 44px; color: var(--gold); font-size: .875rem; font-weight: 650; }

.anuncio-especificacoes { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: .82rem; }
.anuncio-especificacoes dt { font-weight: 700; }
.anuncio-especificacoes dd { margin: 0; overflow-wrap: anywhere; }
.vitrine-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.anuncio:hover, .anuncio:focus-within { border-color: var(--gold); }
.anuncio-detail-link::after { content: ""; position: absolute; inset: 0; }


.vitrine-layout {
  display: grid;
  grid-template-columns: minmax(165px, 205px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.vitrine-filtros {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.vitrine-filtros h3 { margin: 4px 8px 10px; font-size: 1.45rem; }
.vitrine-categorias { display: grid; gap: 4px; }

.vitrine-categorias button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.vitrine-categorias button:hover { background: var(--paper); }

.vitrine-categorias button[aria-pressed="true"] {
  background: #f1e5d4;
  border-color: #d4b990;
  color: #563713;
}

.categoria-contagem {
  min-width: 1.6rem;
  padding-inline: .3rem;
  border-radius: 99px;
  background: var(--white);
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}

.vitrine-contagem { margin: 0 0 12px; font-size: .9rem; }
.vitrine-resultados .anuncios-grid { margin-top: 0; }

.vitrine-paginacao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: .9rem;
}

@media (max-width: 900px) {
  .vitrine-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .vitrine-categorias { display: flex; flex-wrap: wrap; }
  .catalog-page .vitrine-layout { margin-top: 12px; gap: 12px; }
  .catalog-page .vitrine-intro { margin: 6px 0 12px; }
  .catalog-page .vitrine-filtros { padding: 8px; }
  .catalog-page .vitrine-filtros h3 { margin: 0 4px 3px; font: inherit; font-weight: 600; }
  .catalog-page .vitrine-categorias button { padding: 5px 8px; gap: 4px; font-size: .875rem; }
  .catalog-page .categoria-contagem { min-width: 1.1rem; padding-inline: .18rem; }
}

@media (max-width: 1050px) {
  .anuncios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 550px) {
  .anuncios-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  header { column-gap: 6px; }
  header .brand { gap: 6px; }
  header nav { justify-content: center; }
  .header-cta { padding-inline: .48rem; }
  .catalog-page .vitrine-categorias button { padding-inline: 6px; }
  .catalog-page .categoria-contagem { display: none; }
}

.portfolio-grid, .quote-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block: 22px;
}

.portfolio-card, .quote-steps li {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.portfolio-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.portfolio-card h3 { font-size: 1.65rem; }

.quote-guide { padding-block: clamp(35px, 5vw, 70px); }
.quote-steps { list-style: none; counter-reset: quote-step; padding: 0; }
.quote-steps li { counter-increment: quote-step; }
.quote-steps li::before { content: counter(quote-step) "."; color: var(--gold); font-weight: 700; margin-right: .4em; }
.quote-steps p { margin-bottom: 0; }
.business-details { display: grid; grid-template-columns: minmax(100px, 1fr) 3fr; gap: 8px 16px; }
.business-details dt { font-weight: 700; }
.business-details dd { margin: 0; }
.quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quote-fields > div { display: grid; gap: 4px; }
.quote-fields input { width: 100%; }

@media (max-width: 720px) {
  .portfolio-grid, .quote-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .quote-fields { grid-template-columns: minmax(0, 1fr); }
}

.product-page { padding-block: clamp(22px, 4vw, 52px) clamp(52px, 8vw, 100px); }

.product-trail {
  display: flex;
  align-items: center;
  gap: 4px 14px;
  margin-bottom: 14px;
  font-size: .9rem;
  color: var(--muted);
}

.product-trail span { padding-left: 16px; border-left: 1px solid var(--line); }
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(24px, 4vw, 54px);
  row-gap: 14px;
  grid-template-areas: "gallery heading" "gallery panel";
  grid-template-rows: auto 1fr;
}
.product-detail:has(.detail-gallery[hidden]) {
  grid-template-columns: minmax(0, 620px);
  grid-template-areas: "heading" "panel";
}
.detail-heading { grid-area: heading; min-width: 0; overflow-wrap: anywhere; }

.detail-gallery {
  grid-area: gallery;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.detail-thumbnails { display: grid; gap: 8px; }
.detail-thumbnails button {
  display: grid;
  place-items: center;
  width: 62px;
  aspect-ratio: 1;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--gold);
  cursor: pointer;
}
.detail-thumbnails button[aria-current="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.detail-thumbnails img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

.detail-image {
  position: relative;
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eee5d7;
  overflow: hidden;
}
.detail-image > img { display: block; width: 100%; aspect-ratio: 1.12; object-fit: contain; }

.detail-image figcaption, .detail-arrows {
  position: absolute;
  bottom: 12px;
}
.detail-image figcaption {
  left: 12px;
  padding: 3px 9px;
  border-radius: 5px;
  color: var(--white);
  background: var(--dark);
  font-size: .77rem;
}
.detail-arrows { display: flex; right: 12px; gap: 6px; }
.detail-arrows button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: 1.55rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.detail-arrows button:hover { background: #f1e5d4; }

.detail-panel { grid-area: panel; min-width: 0; overflow-wrap: anywhere; }
.detail-heading .eyebrow { margin-bottom: 10px; }
.detail-heading h1 { font-size: clamp(2.15rem, 3.7vw, 3.65rem); }
.detail-description { margin-block: 16px; white-space: pre-wrap; }
.detail-purchase { display: grid; gap: 10px; scroll-margin-top: 16px; }
.detail-purchase > strong { font-size: 1.65rem; }
.detail-freight {
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.detail-freight p { margin: 4px 0 0; }
#detail-specs .anuncio-especificacoes { font-size: .92rem; }
.detail-inputs { display: grid; grid-template-columns: minmax(85px, .68fr) minmax(0, 1fr); gap: 10px; }
.detail-inputs > div { display: grid; gap: 4px; }
.detail-inputs label { font-size: .88rem; }
.detail-inputs small { color: var(--muted); font-weight: 400; }
.detail-inputs > small { grid-column: 1 / -1; }
.detail-inputs input { width: 100%; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-feedback { margin: 0; }
.order-feedback:empty { display: none; }
.purchase-conditions {
  margin-block: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.purchase-conditions summary { font-weight: 700; cursor: pointer; }
.purchase-conditions-list { display: grid; gap: 4px; }
.purchase-conditions-list dt { font-weight: 700; }
.purchase-conditions-list dd { margin: 0 0 8px; color: var(--muted); }
.detail-mobile-bar { display: none; }

@media (max-width: 950px) {
  .detail-gallery { grid-template-columns: minmax(0, 1fr); }
  .detail-image { grid-row: 1; }
  .detail-thumbnails { display: flex; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "gallery" "panel";
    grid-template-rows: auto auto 1fr;
  }
  .product-page { padding-bottom: 98px; }
  .product-trail { margin-bottom: 12px; }
  .detail-image > img { aspect-ratio: 1.2; }
  .detail-thumbnails button { width: clamp(44px, 14vw, 62px); }
  .detail-mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px max(18px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: var(--white);
  }
  .detail-actions .button { flex: 1 1 160px; }
}

.payment-field, .editor-freight { display: grid; gap: 4px; min-width: 0; }
.payment-field small { color: var(--muted); font-weight: 400; }
#payment-settings { margin-block: 28px 18px; }
#payment-settings p { margin: 0; }
#payment-settings fieldset {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#payment-settings legend { padding-inline: 4px; font-weight: 700; }
#payment-settings .feature-option + .feature-option { margin-top: 8px; }

#category-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
#category-group h3 { font-size: 1.2rem; }
@media (max-width: 900px) {
  #category-group { margin-top: 8px; padding-top: 8px; }
  #category-group h3 { font-size: .9rem; }
}

.customer-fields { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.customer-fields label, #project-inputs label { display: grid; gap: 4px; font-size: .88rem; }
.customer-fields input, #project-inputs input { width: 100%; }
.contact #quote-status { margin: 0; }
@media (max-width: 470px) { .customer-fields { grid-template-columns: 1fr; } }

.customer-note { grid-column: 1 / -1; color: var(--muted); }
.contact .customer-note { color: #d9c8bb; }
