:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --white: #fff;
  --ink: #242b27;
  --muted: #62675f;
  --accent: #933e2d;
  --accent-dark: #723021;
  --line: #dcded4;
  --soft: #eeeae1;
  --radius: 8px;
  --body-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--body-font); }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; inset: 10px auto auto 10px; padding: 10px 16px; background: var(--white); }

.topline { color: var(--paper); background: var(--ink); font-size: .64rem; letter-spacing: .1em; }
.topline-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topline a { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.header-inner { min-height: 95px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.wordmark { display: inline-flex; justify-self: start; align-items: center; gap: 10px; width: fit-content; line-height: 1; }
.wordmark img { flex: 0 0 auto; }
.wordmark strong { display: block; font-size: 1.4rem; font-weight: 750; letter-spacing: .065em; }
.wordmark small { display: block; margin-top: 6px; font-size: .6rem; letter-spacing: .24em; }
.site-header nav { display: flex; gap: 30px; font-size: .88rem; }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; }
.site-header nav a:hover, .footer-contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
.quote-link { justify-self: end; display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 5px; background: transparent; font-size: .83rem; font-weight: 650; white-space: nowrap; }
.quote-link:hover { background: var(--soft); }
.quote-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; background: var(--accent); color: var(--white); border-radius: 50%; font-size: .7rem; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 14px 42px; }
.hero-copy { padding: 25px 0 25px 6px; }
.eyebrow { color: var(--accent); font-size: .66rem; letter-spacing: .14em; font-weight: 700; }
.hero h1 { margin-top: 21px; font: 400 clamp(3rem, 4.7vw, 4.8rem)/1.06 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.hero h1 em { font-weight: 400; color: var(--accent); }
.hero-deck { max-width: 43ch; margin-top: 25px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 24px; margin-top: 27px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; gap: 12px; padding: 12px 18px; border: 1px solid transparent; border-radius: 4px; font-size: .86rem; font-weight: 650; transition: background .15s; }
.button.dark { background: var(--accent); color: var(--white); }
.button.dark:hover { background: var(--accent-dark); }
.button.secondary { background: var(--white); border-color: var(--line); }
.button.secondary:hover { background: var(--soft); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; padding: 0; background: none; border: 0; font-size: .84rem; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-note { display: flex; gap: 13px; align-items: center; margin-top: 34px; }
.note-rule { width: 32px; height: 1px; background: var(--accent); }
.hero-note strong { display: block; font-size: .82rem; font-weight: 650; }
.hero-note p > span { color: var(--muted); font-size: .72rem; }
.hero-media { position: relative; min-width: 0; aspect-ratio: 1.06; border-radius: 4px 70px 4px 4px; overflow: hidden; background: #c4c9ca; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; inset: auto 18px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 15px; background: #f8f5eff5; border-radius: 4px; }
.hero-media figcaption span { font-size: .6rem; letter-spacing: .1em; }
.hero-media figcaption strong { display: block; margin-top: 3px; font-size: .86rem; letter-spacing: 0; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.icon-button:hover { background: var(--soft); }
.collection-index { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 65px; padding-block: 12px; border-block: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.collection-index p { font-size: .62rem; letter-spacing: .12em; }
.collection-index a { display: inline-flex; align-items: center; min-height: 44px; gap: 14px; color: var(--ink); }

.section { margin-top: 90px; scroll-margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 27px; }
.section h2 { margin-top: 12px; font: 400 clamp(2.1rem, 3.6vw, 3.3rem)/1.13 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.section-head > p { color: var(--muted); font-size: .87rem; line-height: 1.7; }
.category-bar { display: flex; gap: 7px; flex-wrap: wrap; padding-block: 8px 19px; border-bottom: 1px solid var(--line); }
.category { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 24px; background: transparent; font-size: .8rem; font-weight: 600; }
.category:hover { background: var(--soft); }
.category[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.category .icon { width: 18px; height: 18px; }
.category-count { font-size: .68rem; }
.catalog-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 19px; }
#results-label { color: var(--muted); font-size: .78rem; }
.filters { display: flex; gap: 8px; }
.filters label { position: relative; display: flex; align-items: center; min-width: 0; }
.filters input, .filters select { min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); font-size: .82rem; }
.filters input { width: 195px; padding: 0 10px 0 34px; }
.filters select { appearance: none; padding: 0 30px 0 11px; }
.filters .icon { position: absolute; left: 10px; width: 17px; height: 17px; pointer-events: none; }
.select-control .icon { left: auto; right: 9px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 22px; }
.product-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.product-card:hover { border-color: var(--accent); }
.card-image { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: var(--soft); }
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.item-code { position: absolute; top: 11px; right: 11px; padding: 4px 7px; background: #f8f5eff2; border: 1px solid #ffffff99; border-radius: 3px; font-size: .63rem; font-weight: 650; }
.card-copy { flex: 1; display: flex; flex-direction: column; width: 100%; gap: 6px; padding: 18px; }
.card-category { color: var(--accent); font-size: .67rem; font-weight: 650; }
.card-name { font-size: 1.03rem; line-height: 1.3; font-weight: 650; }
.card-finish { color: var(--muted); font-size: .75rem; }
.card-end { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; font-size: .74rem; font-weight: 600; }
.card-end .icon { width: 18px; height: 18px; color: var(--accent); }
.catalog-footnote { margin-top: 18px; color: var(--muted); font-size: .75rem; }
.empty { grid-column: 1 / -1; padding: 30px 18px; text-align: center; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .88rem; }
.empty .text-button { margin-top: 5px; }
.text-button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }

.finishes { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; background: var(--soft); }
.finish-photo { min-width: 0; }
.finish-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.finish-copy { padding: 35px 55px 35px 0; }
.finish-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.finish-options { margin: 20px 0 12px; }
.finish-options > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-block: 11px; border-top: 1px solid #cccfc4; font-size: .78rem; }
.finish-options dt { font-weight: 650; }
.finish-options dd { margin: 0; color: var(--muted); }
.inquiry-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 15px 45px 54px; border-bottom: 1px solid var(--line); }
.inquiry-intro > p:not(.eyebrow) { max-width: 37ch; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.inquiry-intro .button { margin-top: 25px; }
.brief-steps { display: grid; align-self: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.brief-steps li { display: flex; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); }
.brief-steps li > span { color: var(--accent); font-size: .72rem; padding-top: 3px; }
.brief-steps h3 { font-size: .94rem; font-weight: 650; }
.brief-steps p { margin-top: 6px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 32px 0 calc(88px + env(safe-area-inset-bottom, 0px)); }
.footer-contact { display: flex; flex-direction: column; align-items: start; }
.footer-contact a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .8rem; }
.whatsapp-float { position: fixed; z-index: 2; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #ffffffb3; border-radius: 50%; color: var(--white); background: #0d7553; box-shadow: 0 4px 14px #1028224a; }
.whatsapp-float:hover { background: #0a6346; }
.whatsapp-float .icon { width: 29px; height: 29px; }
body:has(dialog[open]) .whatsapp-float { display: none; }

.dialog { width: min(100% - 32px, 740px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); box-shadow: 0 24px 80px #242b275c; overscroll-behavior: contain; }
.dialog::backdrop { background: #242b27ad; }
.dialog-close { position: absolute; z-index: 1; right: 12px; top: 12px; }
.dialog h2 { font: 400 clamp(1.7rem, 4vw, 2.45rem)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.product-dialog { width: min(100% - 32px, 920px); }
.detail-layout { display: grid; grid-template-columns: .95fr 1fr; }
.detail-image { display: grid; place-items: center; min-width: 0; background: var(--soft); }
.detail-image img { width: 100%; height: auto; max-height: 580px; object-fit: contain; }
.product-details { min-width: 0; padding: 35px 28px 28px; }
.product-details h2, .quote-panel h2 { margin: 12px 28px 12px 0; }
.detail-description { margin-top: 13px; color: var(--muted); font-size: .87rem; }
.detail-facts { margin: 20px 0; font-size: .8rem; }
.detail-facts > div { display: grid; grid-template-columns: 100px 1fr; gap: 15px; border-top: 1px solid var(--line); padding-block: 9px; }
.detail-facts dt { color: var(--muted); }
.detail-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.detail-help { margin-block: 12px; font-size: .76rem; color: var(--muted); }
.product-details .button { margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid > label, .quote-fields > label, .quote-quantity { display: block; font-size: .78rem; font-weight: 600; min-width: 0; }
.form-grid input, .form-grid select, .quote-quantity input, .quote-fields textarea { display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 8px; border: 1px solid #a9b1a6; border-radius: 4px; background: var(--white); color: var(--ink); font-size: .9rem; font-weight: 400; }
.quote-panel { padding: 30px; }
.preview-note { margin-bottom: 18px; color: var(--muted); font-size: .8rem; }
.quote-fields { min-width: 0; margin: 24px 0 18px; padding: 0; border: 0; }
.quote-fields legend { margin-bottom: 12px; font-size: 1rem; font-weight: 650; }
.quote-fields > label { margin-top: 13px; }
.quote-fields textarea { resize: vertical; }
.optional { font-weight: 400; color: var(--muted); }
.quote-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.quote-item { display: grid; grid-template-columns: 58px 1fr minmax(105px, 116px) 44px; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.quote-item img { width: 58px; height: 58px; object-fit: contain; }
.quote-item strong { display: block; font-size: .85rem; line-height: 1.3; }
.quote-item small { display: block; margin-top: 3px; font-size: .7rem; color: var(--muted); font-weight: 400; }
.quote-error { margin-bottom: 12px; color: #9a2929; font-size: .87rem; }
.quote-panel button:disabled { opacity: .65; }
.quote-sent { padding: 18px; border-radius: 5px; background: var(--soft); }
.quote-sent p { margin-top: 8px; color: var(--muted); }
.quote-sent .button { margin-top: 16px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 9px; }
#quote-text { margin: 14px 0; padding: 15px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); font: .85rem/1.65 var(--body-font); }
#quote-action-status:not(:empty) { margin-top: 10px; color: var(--muted); font-size: .82rem; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 26px; }
  .hero-actions { gap: 10px 15px; }
  .hero h1 { font-size: clamp(3rem, 5.2vw, 4rem); }
  .finishes { gap: 34px; }
  .finish-copy { padding-right: 28px; }
  .inquiry-section { gap: 45px; padding-inline: 20px; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 6px 12px; padding-block: 15px 8px; min-height: 0; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; gap: 28px; }
  .quote-link { grid-row: 1; grid-column: 2; }
  .hero { grid-template-columns: 1fr; padding-block: 15px 28px; gap: 24px; }
  .hero-copy { padding: 9px 9px 0; }
  .hero h1 { font-size: clamp(3rem, 8.5vw, 4.5rem); }
  .hero-deck { max-width: 48ch; margin-top: 18px; font-size: .92rem; }
  .hero-note { margin-top: 22px; }
  .hero-media { aspect-ratio: 1.15; border-top-right-radius: 50px; }
  .collection-index { flex-wrap: wrap; gap: 5px 16px; font-size: .68rem; }
  .collection-index p { flex-basis: 100%; }
  .collection-index a { margin-left: auto; }
  .section { margin-top: 56px; }
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .section-head > p br { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .card-copy { padding: 12px; }
  .card-name { font-size: .94rem; }
  .finishes, .inquiry-section { grid-template-columns: 1fr; }
  .finishes { gap: 0; }
  .finish-photo img { aspect-ratio: 1.15; }
  .finish-copy { padding: 28px; }
  .inquiry-section { padding: 0 14px 30px; gap: 35px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-image img { height: min(32dvh, 300px); }
  .product-details { padding: 23px; }
}

@media (max-width: 430px) {
  .topline { font-size: .51rem; letter-spacing: .04em; }
  .topline-inner { gap: 8px; }
  .wordmark img { width: 36px; height: 36px; }
  .wordmark strong { font-size: 1.22rem; }
  .wordmark small { font-size: .52rem; }
  .quote-link { padding-inline: 9px; gap: 7px; font-size: .78rem; }
  .hero-copy { padding-inline: 3px; }
  .hero h1 { font-size: clamp(2.55rem, 10.7vw, 3.4rem); }
  .hero-actions .button { padding-inline: 12px; font-size: .8rem; }
  .hero-actions .text-link { font-size: .79rem; }
  .hero-media figcaption { inset: auto 10px 10px; padding: 10px; }
  .category-bar { gap: 7px; }
  .category { min-height: 44px; padding-inline: 11px; font-size: .73rem; }
  .category .icon { display: none; }
  .catalog-tools { flex-direction: column-reverse; align-items: start; gap: 12px; }
  .filters { width: 100%; }
  .search-control { flex: 1; }
  .filters input { width: 100%; }
  .card-copy { padding: 11px 9px; }
  .card-category, .card-finish { font-size: .66rem; }
  .card-name { font-size: .86rem; }
  .card-end { font-size: .66rem; }
  .item-code { top: 7px; right: 7px; font-size: .58rem; padding: 3px 5px; }
  .quote-panel { padding: 25px 15px; }
  .quote-item { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .quote-item img { width: 44px; height: 44px; }
  .quote-quantity { grid-row: 2; grid-column: 2; }
  .quote-item .icon-button { grid-row: 1; grid-column: 3; }
  .form-grid { gap: 10px; }
}

@media (max-width: 355px) {
  .filters { display: grid; grid-template-columns: 1fr; }
  .filters select { width: 100%; }
}

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