:root {
  color-scheme: light;
  --ink: #3d2d17;
  --muted: #756751;
  --cream: #fdf9ec;
  --paper: #fffdf5;
  --gold: #8a6d47;
  --line: rgba(61, 45, 23, 0.18);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header { height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 232, .92); backdrop-filter: blur(18px); }
.header-nav, .header-contact { color: var(--muted); font-size: .68rem; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.header-nav { justify-self: start; }
.header-contact { display: inline-flex; align-items: center; gap: 8px; justify-self: end; color: var(--ink); }
.header-nav:hover, .header-nav:focus-visible, .header-contact:hover, .header-contact:focus-visible { color: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header .brand { justify-self: center; }
.brand-symbol { width: 38px; height: 44px; object-fit: cover; object-position: center; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.eyebrow { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .2em; font-size: .68rem; font-weight: 600; color: var(--gold); }
.catalog { padding: 58px clamp(20px, 4vw, 64px) 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 600; line-height: .9; letter-spacing: -.04em; }
#result-count { color: var(--muted); font-size: .8rem; }
.category-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 1px 0 18px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category { flex: 0 0 auto; padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: .8rem; cursor: pointer; transition: .2s ease; }
.category:hover, .category:focus-visible, .category.active { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.designer-choice { width: 100%; min-height: 118px; margin: 12px 0 34px; padding: 24px 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; border: 0; background: var(--ink); color: var(--cream); text-align: left; cursor: pointer; }
.designer-choice-index { color: #c8b18f; font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; }
.designer-choice-copy { display: grid; gap: 5px; }
.designer-choice-copy strong { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; line-height: 1; }
.designer-choice-copy small { color: #d7d0c5; font-size: .78rem; }
.designer-choice-action { padding-bottom: 3px; border-bottom: 1px solid rgba(253,249,236,.5); font-size: .76rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 18px; margin-top: 26px; }
.product-card { min-width: 0; }
.product-card:nth-child(2n) { margin-top: 0; }
.product-button { width: 100%; border: 0; padding: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.product-visual { aspect-ratio: 4 / 5; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--paper); border: 1px solid rgba(25,24,21,.08); }
.product-visual::before { content: ""; width: 42%; aspect-ratio: 1; border: 1px solid rgba(25,24,21,.18); border-radius: 50%; position: absolute; }
.product-visual::after { content: ""; height: 1px; width: 58%; background: rgba(25,24,21,.16); transform: rotate(-38deg); position: absolute; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; transition: transform .6s ease; }
.product-button:hover img { transform: scale(1.025); }
.product-visual span { position: relative; z-index: 1; padding: 9px 12px; background: rgba(255,255,255,.72); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tone-rose { background: #ead6d2; } .tone-ivory { background: #ece8df; } .tone-wine { background: #d8c9c6; } .tone-sun { background: #eee2bd; }
.tone-green { background: #d7ded2; } .tone-pearl { background: #e5e1dc; } .tone-stone { background: #d9d6cf; } .tone-lilac { background: #ded4df; }
.product-badge { position: absolute; z-index: 3; top: 12px; left: 12px; color: var(--ink); background: rgba(255,253,248,.9); padding: 6px 9px; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.product-meta { padding-top: 15px; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: baseline; }
.product-meta small { grid-column: 1 / -1; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; }
.product-meta h3 { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -.025em; }
.product-meta strong { font-size: .83rem; font-weight: 500; white-space: nowrap; }

.catalog-notes { padding: 34px clamp(20px, 4vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; background: var(--ink); color: #d7d0c5; font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; }
footer { padding: 44px clamp(20px, 4vw, 64px); display: grid; grid-template-columns: minmax(180px, 1fr) minmax(280px, 2fr) auto; align-items: center; gap: 30px; border-top: 1px solid var(--line); }
footer p { margin: 0; font-size: .75rem; color: var(--muted); }
footer p:last-child { text-align: right; }
.footer-info { display: grid; gap: 10px; justify-items: center; text-align: center; }
.footer-contact { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
.footer-contact a { color: var(--ink); font-size: .72rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-contact a:hover, .footer-contact a:focus-visible { border-color: var(--ink); }
.footer-hours { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; color: var(--ink); font-size: .72rem; }

.product-dialog { width: min(1040px, calc(100% - 32px)); max-height: min(92vh, 900px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.26); }
.product-dialog::backdrop { background: rgba(20,18,15,.65); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; }
.dialog-close { position: absolute; z-index: 5; top: 15px; right: 15px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,253,248,.94); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-product { background: var(--cream); padding: 28px; }
.dialog-visual { aspect-ratio: 4/5; }
.dialog-summary { padding: 28px 2px 0; }
.dialog-summary h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 2.45rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.dialog-summary p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.dialog-summary strong { display: block; margin-top: 20px; font-size: 1rem; }
#order-form { padding: 52px 44px 36px; overflow: auto; }
.form-heading { display: flex; gap: 18px; margin-bottom: 30px; }
.form-heading > span { color: var(--gold); font-family: var(--serif); font-size: 1.2rem; }
.form-heading h3 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: -.03em; }
.form-heading .eyebrow { margin-bottom: 7px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: .74rem; letter-spacing: .04em; }
.form-grid label span { color: #9b968e; }
.delivery-fee-note { color: var(--muted); font-size: .68rem; line-height: 1.45; letter-spacing: 0; }
.form-grid .wide { grid-column: 1 / -1; }
.delivery-time-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.custom-time-toggle { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 10px 14px 11px; cursor: pointer; font-size: .78rem; letter-spacing: .04em; }
.custom-time-toggle:hover, .custom-time-toggle:focus-visible, .custom-time-toggle[aria-expanded="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.custom-time-field { display: grid; gap: 5px; margin-top: 7px; color: var(--muted); font-size: .7rem; letter-spacing: .02em; }
.custom-time-field input { max-width: 180px; }
input, textarea, select { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0 11px; background: transparent; color: var(--ink); font-size: .9rem; outline: none; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
.form-error { min-height: 20px; margin: 14px 0 4px; color: #943f36; font-size: .78rem; }
.whatsapp-button { width: 100%; min-height: 55px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; background: var(--ink); color: white; padding: 15px 20px; cursor: pointer; transition: background .2s ease; }
.whatsapp-button:hover { background: #2b2925; }
.whatsapp-button span:last-child { margin-left: auto; }
.whatsapp-dot { width: 9px; height: 9px; border-radius: 50%; background: #61c778; }
.privacy-note { margin: 11px 0 0; color: var(--muted); font-size: .68rem; text-align: center; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-shell { grid-template-columns: .75fr 1.25fr; }
  .dialog-product { padding: 20px; }
  #order-form { padding: 46px 28px 28px; }
}

@media (max-width: 640px) {
  .site-header { height: 76px; padding: 0 18px; }
  .header-nav, .header-contact { font-size: .58rem; letter-spacing: .1em; }
  .brand { gap: 7px; }
  .brand-symbol { width: 30px; height: 36px; }
  .brand-name { font-size: 1.05rem; }
  .catalog { padding-top: 38px; padding-bottom: 72px; }
  .section-heading { align-items: end; margin-bottom: 26px; }
  .product-grid { gap: 30px 10px; margin-top: 14px; }
  .designer-choice { min-height: 0; margin: 8px 0 28px; padding: 22px 20px; grid-template-columns: 1fr auto; gap: 8px 14px; }
  .designer-choice-index { grid-column: 1 / -1; }
  .designer-choice-copy small { max-width: 230px; }
  .product-card:nth-child(2n) { margin-top: 0; }
  .product-meta { grid-template-columns: 1fr; gap: 4px; }
  .product-meta small { grid-column: auto; }
  .product-meta h3 { font-size: 1.18rem; }
  .product-meta strong { font-size: .76rem; }
  .product-badge { top: 7px; left: 7px; padding: 5px 6px; font-size: .55rem; }
  .product-visual span { padding: 6px; font-size: .55rem; }
  .catalog-notes { grid-template-columns: 1fr; gap: 12px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .brand { justify-content: center; }
  footer p:last-child { text-align: center; }
  .product-dialog { width: 100%; max-width: none; height: 94dvh; max-height: 94dvh; margin: auto 0 0; }
  .dialog-shell { display: block; height: 100%; overflow: auto; }
  .dialog-product { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 20px; position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); }
  .dialog-visual { height: 140px; }
  .dialog-summary { padding: 10px 44px 0 0; }
  .dialog-summary .eyebrow { margin-bottom: 8px; }
  .dialog-summary h2 { font-size: 1.65rem; }
  .dialog-summary p:not(.eyebrow) { display: none; }
  .dialog-summary strong { margin-top: 12px; }
  .dialog-close { position: fixed; top: calc(6dvh + 12px); right: 12px; }
  #order-form { padding: 32px 20px calc(24px + env(safe-area-inset-bottom)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .whatsapp-button { position: sticky; bottom: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.16); }
}

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