:root {
  --ink: #101411;
  --green: #050505;
  --green-2: #252525;
  --cream: #f4f1e9;
  --paper: #fffdf8;
  --line: #dcd9cf;
  --muted: #656a66;
  --shadow: 0 18px 45px rgba(0, 0, 0, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 12px clamp(18px, 5vw, 72px); background: rgba(244, 241, 233, .94); border-bottom: 1px solid rgba(16, 20, 17, .12); backdrop-filter: blur(14px); }
.brand { color: var(--ink); text-decoration: none; display: grid; line-height: .82; letter-spacing: -.04em; }
.brand strong { font-size: 1.65rem; font-weight: 900; }
.brand span { margin-top: 5px; font-size: .67rem; letter-spacing: .42em; text-align: center; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.quote-button, .install-button { border: 0; border-radius: 999px; padding: 11px 15px; font-weight: 750; }
.install-button { background: transparent; color: var(--green); border: 1px solid rgba(0, 0, 0, .25); }
.quote-button { background: var(--green); color: white; }
.quote-button span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; padding: 0 5px; color: var(--green); background: white; border-radius: 50px; font-size: .76rem; }
main { padding-bottom: 80px; }
.intro { color: white; padding: clamp(42px, 8vw, 92px) clamp(20px, 7vw, 110px); background: var(--green); position: relative; overflow: hidden; }
.intro::after { content: "RP"; position: absolute; right: -1.5rem; bottom: -4.8rem; color: rgba(255,255,255,.045); font-size: clamp(12rem, 28vw, 27rem); line-height: .8; font-weight: 950; letter-spacing: -.1em; }
.intro > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; font-size: .76rem; font-weight: 850; letter-spacing: .18em; }
.intro h1 { max-width: 720px; margin: 0; font-size: clamp(2.25rem, 6vw, 5.5rem); line-height: .96; letter-spacing: -.055em; }
.intro > p:last-child { max-width: 600px; margin: 24px 0 0; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.8vw, 1.22rem); line-height: 1.55; }
.catalog-shell { width: min(1320px, calc(100% - 32px)); margin: -28px auto 0; position: relative; z-index: 2; }
.search-wrap { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.search-wrap svg { width: 23px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; }
.search-wrap input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.collections { padding: 42px 0 10px; }
.section-kicker { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-kicker .eyebrow { color: var(--green-2); margin: 0; }
.section-kicker h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.collection-card { position: relative; min-height: 190px; border: 0; border-radius: 19px; overflow: hidden; padding: 0; color: white; text-align: left; background: var(--green); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .35s ease; }
.collection-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 22%, rgba(7,20,14,.88) 100%); }
.collection-card span { position: absolute; z-index: 1; left: 17px; right: 17px; bottom: 16px; font-size: 1rem; line-height: 1.15; font-weight: 850; }
.collection-card:hover img { transform: scale(1.045); }
.category-nav { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 9px; margin: 20px 0 34px; }
.category-scroller { display: flex; gap: 8px; margin: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; scroll-behavior: smooth; scroll-snap-type: x proximity; }
.category-scroller::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; scroll-snap-align: start; border: 1px solid #c9c7bf; background: transparent; color: #353936; padding: 10px 15px; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.filter-chip.active { background: var(--green); color: white; border-color: var(--green); }
.category-arrow { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(0,0,0,.24); border-radius: 50%; color: white; background: var(--green); font-size: 2rem; line-height: 1; box-shadow: 0 7px 18px rgba(0,0,0,.12); transition: opacity .2s ease, transform .2s ease; }
.category-arrow:hover:not(:disabled) { transform: scale(1.05); }
.category-arrow:disabled { opacity: .28; cursor: default; box-shadow: none; }
.catalog-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.catalog-heading h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.catalog-heading span { color: var(--muted); font-size: .9rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card { min-width: 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-3px); border-color: #bcbcbc; box-shadow: 0 12px 28px rgba(0,0,0,.09); }
.product-visual { min-height: 180px; position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 20px; color: white; background: linear-gradient(135deg, var(--green), var(--green-2)); overflow: hidden; }
.product-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: white; }
.product-visual.has-image::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(0,0,0,.18)); pointer-events: none; }
.product-visual.has-image::before, .dialog-image-wrap:has(img:not([hidden]))::after { content: "RAIZ PRINT"; position: absolute; z-index: 3; left: 10px; bottom: 10px; padding: 6px 8px; border-radius: 7px; color: white; background: rgba(0,0,0,.9); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.product-visual strong { font-size: 2.5rem; line-height: 1; letter-spacing: -.07em; opacity: .96; }
.product-visual span { position: relative; z-index: 2; margin-left: auto; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.7); backdrop-filter: blur(6px); font-size: 1.1rem; }
.product-content { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.product-category { margin: 0 0 8px; color: var(--green-2); font-size: .71rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.product-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.02em; }
.product-code { margin: 8px 0 0; color: var(--muted); font: 700 .76rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-actions { display: flex; gap: 8px; margin-top: 22px; }
.card-actions button { min-height: 42px; border-radius: 11px; font-weight: 750; border: 1px solid var(--line); }
.view-product { flex: 1; color: var(--ink); background: transparent; }
.add-product { width: 44px; color: white; background: var(--green); border-color: var(--green) !important; font-size: 1.22rem; }
.add-product.added { background: #404040; }
.load-more { display: block; margin: 28px auto 0; border: 1px solid var(--green); background: transparent; color: var(--green); padding: 12px 22px; border-radius: 999px; font-weight: 800; }
.empty-state { text-align: center; padding: 65px 20px; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 1.3rem; }
.empty-state button { border: 0; color: white; background: var(--green); border-radius: 999px; padding: 11px 18px; font-weight: 750; }
.product-dialog { width: min(500px, calc(100% - 28px)); border: 0; border-radius: 24px; padding: 26px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.product-dialog::backdrop, .install-dialog::backdrop { background: rgba(8,17,12,.62); backdrop-filter: blur(4px); }
.install-dialog { width: min(440px, calc(100% - 28px)); border: 0; border-radius: 24px; padding: 26px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.install-dialog > .icon-close { float: right; }
.install-dialog h2 { margin: 0 0 14px; font-size: 2rem; letter-spacing: -.04em; }
.install-dialog ol { margin: 16px 0 22px; padding-left: 22px; color: #4f5551; line-height: 1.6; }
.install-icon { width: 68px; height: 68px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 17px; color: white; background: var(--green); font-size: 1.35rem; font-weight: 900; }
.icon-close { width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--ink); background: #e9e7df; font-size: 1.65rem; line-height: 1; }
.product-dialog > .icon-close { float: right; }
.dialog-image-wrap { position: relative; width: 100%; min-height: 210px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 18px; overflow: hidden; background: white; border: 1px solid var(--line); }
.dialog-image-wrap img { width: 100%; height: 250px; object-fit: contain; }
.product-mark { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 18px; color: white; background: var(--green); font-weight: 900; font-size: 1.45rem; }
.product-dialog h2 { margin: 0; font-size: 2rem; line-height: 1.05; letter-spacing: -.04em; }
.dialog-description { color: #4f5551; line-height: 1.6; }
.dialog-note { display: grid; gap: 4px; margin: 22px 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.dialog-note strong { color: var(--green); text-transform: uppercase; font-size: .76rem; letter-spacing: .12em; }
.dialog-note span { color: var(--muted); font-size: .9rem; }
.primary-action, .whatsapp-action, .secondary-action { width: 100%; min-height: 50px; border-radius: 13px; font-weight: 800; }
.primary-action, .whatsapp-action { border: 0; color: white; background: var(--green); }
.quote-drawer { position: fixed; z-index: 40; top: 0; right: 0; width: min(460px, 100%); height: 100dvh; padding: 22px; display: flex; flex-direction: column; background: var(--paper); box-shadow: -24px 0 70px rgba(0,0,0,.18); transform: translateX(105%); transition: transform .28s ease; }
.quote-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.drawer-header h2 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.drawer-header .eyebrow { color: var(--green-2); margin-bottom: 4px; }
.quote-list { overflow-y: auto; }
.quote-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.quote-item strong { font-size: .96rem; }
.quote-item small { display: block; color: var(--muted); margin-top: 4px; }
.remove-item { border: 0; background: transparent; color: #8b302a; font-size: .82rem; }
.quantity-wrap { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.quantity-wrap input { width: 86px; border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: white; }
.quote-empty { margin: auto; text-align: center; color: var(--muted); }
.quote-empty p { color: var(--ink); margin: 0 0 6px; font-weight: 800; }
.quote-empty span { font-size: .9rem; }
.quote-form { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); }
.quote-form label { display: grid; gap: 6px; margin-bottom: 11px; color: #424843; font-size: .82rem; font-weight: 750; }
.quote-form input, .quote-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; resize: vertical; background: white; }
.secondary-action { margin-top: 8px; border: 1px solid var(--green); color: var(--green); background: transparent; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(8,17,12,.55); backdrop-filter: blur(3px); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 150%); padding: 12px 17px; border-radius: 12px; color: white; background: var(--ink); box-shadow: var(--shadow); transition: transform .25s ease; font-weight: 700; font-size: .9rem; }
.toast.show { transform: translate(-50%, 0); }
@media (max-width: 850px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .topbar { min-height: 66px; padding-inline: 16px; }
  .brand strong { font-size: 1.4rem; }
  .install-button { padding: 9px 11px; font-size: .78rem; }
  .intro { padding-top: 38px; padding-bottom: 72px; }
  .catalog-shell { width: min(100% - 24px, 1320px); margin-top: -30px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { min-height: 210px; }
  .collections { padding-top: 34px; }
  .section-kicker { display: block; }
  .section-kicker .eyebrow { margin-bottom: 7px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-card { min-height: 150px; }
  .category-nav { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 6px; }
  .category-arrow { width: 42px; height: 42px; font-size: 1.75rem; }
  .catalog-heading { align-items: flex-end; }
  .catalog-heading span { text-align: right; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
