:root {
  --navy-950: #071a2d; --navy-900: #0b2d50; --navy-800: #143f69;
  --red-600: #d82e2f; --yellow-500: #f7b91d; --yellow-400: #ffd45c;
  --white: #fff; --ink: #142235; --muted: #667386; --surface: #f6f8fa;
  --line: #e5e9ee; --container: 1160px; --radius: 18px;
  --shadow: 0 18px 45px rgba(7, 26, 45, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy-950); font-weight: 900; letter-spacing: .07em; white-space: nowrap; }
.brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; }
.main-nav { display: flex; align-items: center; gap: 24px; color: #425169; font-size: .94rem; font-weight: 700; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy-900); }
.quote-link { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; color: var(--white) !important; background: var(--navy-900); border-radius: 999px; }
.cart-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; color: var(--navy-950); background: var(--yellow-500); border-radius: 999px; font-size: .75rem; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.menu-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--navy-950); }
.hero { overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 570px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 80px; padding: 70px 0; }
.eyebrow, .section-kicker { display: inline-block; color: var(--red-600); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 18px 0 22px; color: var(--navy-950); font-size: clamp(2.8rem, 5.2vw, 5rem); line-height: 1.01; letter-spacing: -.045em; }
.hero-copy > p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions, .contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.hero-actions { margin-top: 32px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 21px; border: 0; border-radius: 11px; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--navy-950); background: var(--yellow-500); }
.btn-primary:hover { background: var(--yellow-400); }
.btn-secondary { color: var(--navy-900); background: var(--white); border: 1px solid var(--line); }
.hero-brand { display: grid; place-items: center; }
.hero-brand img { width: min(390px, 100%); border-radius: 28px; box-shadow: 0 18px 50px rgba(7,26,45,.12); }
.section { padding: 90px 0; }
h2 { margin: 0; color: var(--navy-950); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -.035em; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading .section-kicker, .section-title .section-kicker { margin-bottom: 10px; }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.text-link { color: var(--navy-900); font-weight: 800; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; color: var(--white); background: var(--navy-900); border-radius: var(--radius); transition: transform .2s ease, background .2s ease; }
.category-card:nth-child(even) { background: var(--navy-800); }
.category-card:hover { transform: translateY(-3px); background: var(--navy-950); }
.category-card span { max-width: 200px; font-size: 1.18rem; font-weight: 850; line-height: 1.25; }
.category-card small { color: rgba(255,255,255,.7); font-weight: 700; }
.featured-products { background: var(--surface); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { flex: 0 0 auto; height: 210px; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 16px; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); }
.product-image img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; }
.product-image-button { position: relative; width: 100%; border-width: 0 0 1px; cursor: pointer; }
.photo-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; color: var(--white); background: rgba(7,26,45,.88); border-radius: 999px; font-size: .72rem; font-weight: 850; }
.product-content { flex: 1; display: flex; flex-direction: column; padding: 23px; }
.product-brand { margin-bottom: 7px; color: var(--red-600); font-size: .75rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.product-content h3 { margin: 0 0 9px; color: var(--navy-950); font-size: 1.1rem; line-height: 1.3; }
.product-content p { display: -webkit-box; overflow: hidden; margin: 0 0 20px; color: var(--muted); font-size: .91rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-actions { display: grid; gap: 9px; margin-top: auto; }
.details-button { min-height: 40px; padding: 0 12px; color: var(--navy-900); background: var(--white); border: 1px solid var(--line); border-radius: 9px; font-weight: 800; cursor: pointer; }
.details-button:hover { background: var(--surface); }
.btn-product { width: 100%; min-height: 43px; margin-top: auto; padding: 0 14px; color: var(--white); background: var(--navy-900); font-size: .88rem; }
.btn-product:hover { background: var(--navy-800); }
.detail-purchase button.is-added, .detail-purchase button.is-added:hover { color: var(--white); background: #187344; border-color: #187344; opacity: 1; cursor: default; animation: purchase-confirm .3s ease-out; }
.detail-purchase button:disabled { cursor: default; transform: none; }
.purchase-status { margin: 0; color: #187344; font-size: .85rem; font-weight: 700; }
.purchase-status:empty { display: none; }
@keyframes purchase-confirm { 50% { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) { .detail-purchase .is-added { animation: none; } }
.about-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 86px; align-items: start; }
.about-copy { max-width: 760px; color: var(--muted); }
.about-copy p { margin: 0 0 18px; font-size: 1.04rem; }
.about-copy p:first-child { color: var(--ink); font-size: 1.18rem; }
.about-copy strong { color: var(--navy-900); }
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 58px; align-items: stretch; }
.contact-copy h2 { margin-top: 8px; }
.contact-list { margin: 30px 0; display: grid; gap: 20px; }
.contact-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.contact-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--white); border-radius: 10px; }
.contact-item strong { display: block; margin-bottom: 3px; }
.contact-item p { max-width: 440px; margin: 0; color: var(--muted); }
.contact-item a:hover { color: var(--red-600); }
.map-card { min-height: 470px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; }
.map-card iframe { width: 100%; height: 100%; min-height: 470px; border: 0; }
.site-footer { padding: 28px 0; color: rgba(255,255,255,.62); background: var(--navy-950); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: .86rem; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 9px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--white); }
.loading-message, .empty-message { grid-column: 1 / -1; margin: 0; padding: 28px; color: var(--muted); text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; max-width: min(390px, calc(100% - 44px)); padding: 14px 18px; color: var(--white); background: var(--navy-950); border-radius: 12px; box-shadow: var(--shadow); font-weight: 700; }
.page-hero { padding: 76px 0 70px; color: var(--white); background: var(--navy-950); }
.page-hero.compact { padding-bottom: 62px; }
.page-hero h1 { max-width: 850px; margin: 16px 0 18px; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.03; letter-spacing: -.04em; }
.page-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.7); font-size: 1.05rem; }
.page-hero-actions { margin-top: 26px; }
.btn-light { color: var(--navy-900); background: var(--white); }
.catalog-page, .quote-page { background: var(--surface); }
.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.filters { position: sticky; top: 96px; max-height: calc(100vh - 116px); padding: 24px; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-header, .results-header, .panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.filter-header { align-items: center; margin-bottom: 22px; }
.filter-header h2 { font-size: 1.25rem; letter-spacing: 0; }
.clear-filter, .clear-cart, .remove-item { padding: 0; color: var(--red-600); background: none; border: 0; font-weight: 800; cursor: pointer; }
.clear-filter:disabled { color: #aeb6c0; cursor: default; }
.search-label { display: block; margin-bottom: 7px; font-size: .83rem; font-weight: 800; }
.search-control { position: relative; }
.search-control input { width: 100%; height: 46px; padding: 0 42px 0 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; outline: none; }
.search-control input:focus { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(20,63,105,.1); }
.search-control span { position: absolute; top: 8px; right: 13px; color: var(--muted); font-size: 1.3rem; }
.category-filter { min-width: 0; margin: 25px 0 0; padding: 0; border: 0; }
.category-filter legend { margin-bottom: 9px; font-size: .83rem; font-weight: 800; }
#category-options { display: grid; gap: 10px; }
.category-option { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 9px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
.category-option:hover, .category-option.active { color: var(--navy-900); background: var(--surface); font-weight: 800; }
.category-option span { min-width: 25px; padding: 1px 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; text-align: center; }
.all-products-option { margin-bottom: 3px; }
.sector-group { padding-top: 10px; border-top: 1px solid var(--line); }
.sector-option { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 9px; color: var(--navy-950); background: var(--surface); border: 0; border-radius: 9px; font-weight: 900; text-align: left; cursor: pointer; }
.sector-option:hover, .sector-option.active { color: var(--white); background: var(--navy-900); }
.sector-option span { min-width: 25px; padding: 1px 6px; color: var(--navy-900); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; text-align: center; }
.category-list { display: grid; gap: 3px; margin: 5px 0 2px 7px; padding-left: 8px; border-left: 2px solid var(--line); }
.category-group { padding-top: 3px; }
.category-parent { color: var(--navy-950); font-weight: 850; }
.subcategory-list { display: grid; gap: 2px; margin: 3px 0 4px 13px; padding-left: 10px; border-left: 2px solid var(--line); }
.subcategory-option { width: 100%; min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: .82rem; text-align: left; cursor: pointer; }
.subcategory-option:hover, .subcategory-option.active { color: var(--navy-900); background: var(--surface); font-weight: 800; }
.subcategory-option span { min-width: 24px; padding: 0 5px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .68rem; text-align: center; }
.loading-inline { color: var(--muted); font-size: .85rem; }
.results-header { margin-bottom: 30px; }
.results-header h2, .panel-heading h2 { margin-top: 7px; font-size: clamp(2rem, 3vw, 2.8rem); }
.results-header p { margin: 0; color: var(--muted); }
.catalog-product-grid { grid-template-columns: repeat(3, 1fr); }
.no-results { grid-column: 1 / -1; padding: 60px 28px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.no-results strong { color: var(--navy-950); font-size: 1.2rem; }
.no-results p { margin: 7px 0 0; color: var(--muted); }
.product-dialog { width: min(1080px, calc(100% - 36px)); max-width: none; max-height: min(820px, calc(100vh - 36px)); padding: 0; overflow: hidden; color: var(--ink); background: var(--white); border: 0; border-radius: 22px; box-shadow: 0 28px 90px rgba(7,26,45,.28); }
.product-dialog::backdrop { background: rgba(7,26,45,.7); backdrop-filter: blur(4px); }
.product-dialog-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); max-height: min(820px, calc(100vh - 36px)); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; color: var(--navy-950); background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 50%; font-size: 1.65rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.detail-gallery { min-width: 0; display: flex; flex-direction: column; padding: 30px; background: var(--surface); }
.detail-main-image { position: relative; min-height: 0; flex: 1; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 30px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.detail-main-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy-950); background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 50%; font-size: 1.8rem; cursor: pointer; transform: translateY(-50%); box-shadow: var(--shadow); }
.gallery-arrow.previous { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-counter { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; color: var(--white); background: rgba(7,26,45,.86); border-radius: 999px; font-size: .74rem; font-weight: 850; }
.detail-thumbnails { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 5px; }
.detail-thumbnails button { width: 70px; height: 70px; flex: 0 0 70px; display: grid; place-items: center; padding: 6px; overflow: hidden; background: var(--white); border: 2px solid transparent; border-radius: 10px; cursor: pointer; }
.detail-thumbnails button.active { border-color: var(--navy-800); }
.detail-thumbnails img { max-width: 100%; max-height: 100%; object-fit: contain; }
.detail-content { min-width: 0; padding: 42px 38px 36px; overflow-y: auto; }
.detail-path { margin: 0 48px 12px 0; color: var(--muted); font-size: .78rem; font-weight: 750; }
.detail-content h2 { margin: 7px 0 25px; font-size: clamp(2rem, 3.4vw, 3rem); }
.detail-section { padding-top: 20px; border-top: 1px solid var(--line); }
.detail-section + .detail-section { margin-top: 22px; }
.detail-section h3 { margin: 0 0 12px; color: var(--navy-950); font-size: 1rem; }
.detail-description { color: var(--muted); font-size: .92rem; }
.detail-description p { margin: 0 0 13px; }
.detail-specifications { display: grid; gap: 0; margin: 0; }
.detail-specifications > div { display: grid; grid-template-columns: minmax(120px, .8fr) 1.2fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.detail-specifications dt { color: var(--muted); font-size: .8rem; }
.detail-specifications dd { margin: 0; color: var(--navy-950); font-size: .84rem; font-weight: 750; }
.detail-add-button { margin-top: 26px; }
.detail-purchase { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.detail-purchase p { margin: 0; }
.detail-purchase select, .detail-purchase input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.detail-purchase .detail-add-button { margin-top: 0; }
.package-notice { padding: 12px; background: var(--surface); border-radius: 8px; font-size: .9rem; }
.floating-quote { display: none; }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 30px; align-items: start; }
.quote-cart-panel, .customer-panel { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-heading { margin-bottom: 28px; }
.quote-items { display: grid; gap: 14px; }
.quote-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.quote-item-image { width: 76px; height: 76px; display: grid; place-items: center; padding: 7px; background: var(--surface); border-radius: 10px; }
.quote-item-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.quote-item-info > span { color: var(--red-600); font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.quote-item-info h3 { margin: 3px 0 5px; color: var(--navy-950); font-size: 1rem; line-height: 1.3; }
.remove-item { font-size: .78rem; }
.quantity-control label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .72rem; font-weight: 800; text-align: center; }
.quantity-control > div { display: grid; grid-template-columns: 34px 50px 34px; }
.quantity-control button, .quantity-control input { height: 36px; color: var(--navy-900); background: var(--white); border: 1px solid var(--line); text-align: center; }
.quantity-control button { font-weight: 900; cursor: pointer; }
.quantity-control button:first-child { border-radius: 8px 0 0 8px; }
.quantity-control button:last-child { border-radius: 0 8px 8px 0; }
.quantity-control input { min-width: 0; padding: 0; border-width: 1px 0; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.item-total { display: flex; justify-content: space-between; padding: 18px 4px 0; color: var(--muted); border-top: 1px solid var(--line); }
.item-total strong { color: var(--navy-950); font-size: 1.25rem; }
.continue-link { width: 100%; margin-top: 22px; }
.empty-cart { padding: 36px 18px; text-align: center; }
.empty-cart > span { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--navy-900); background: var(--surface); border-radius: 50%; font-size: 2rem; }
.empty-cart h3 { margin: 0; color: var(--navy-950); }
.empty-cart p { margin: 7px 0 20px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: .83rem; font-weight: 800; }
.field label > span { color: var(--red-600); }
.field label small { color: var(--muted); font-weight: 600; }
.field input, .field textarea { width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; outline: none; }
.field input { height: 46px; padding: 0 12px; }
.field textarea { resize: vertical; min-height: 116px; padding: 11px 12px; }
.field input:focus, .field textarea:focus { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(20,63,105,.1); }
.field.invalid input, .field.invalid textarea { border-color: var(--red-600); }
.field-error { min-height: 18px; display: block; color: var(--red-600); font-size: .73rem; }
.form-notice { margin: 20px 0; padding: 13px 15px; color: #6c5112; background: #fff8df; border: 1px solid #f2dda2; border-radius: 10px; font-size: .84rem; }
.form-notice code { font-weight: 800; }
.btn-whatsapp { width: 100%; margin-top: 4px; color: var(--white); background: #167d4c; }
.btn-whatsapp:hover { background: #126b41; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.privacy-note { margin: 10px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 72px; left: 20px; right: 20px; display: none; padding: 14px; flex-direction: column; align-items: stretch; gap: 3px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 10px; }
  .quote-link { justify-content: center; margin-top: 5px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding: 64px 0; }
  .hero-brand img { width: min(360px, 76vw); }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .catalog-layout, .quote-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; overflow: visible; }
  .catalog-product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-dialog-shell { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); }
}
@media (max-width: 680px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .brand span { font-size: .9rem; }
  .hero-grid { padding: 52px 0; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions, .contact-actions, .split-heading { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .hero-brand img { width: min(320px, 84vw); }
  .section { padding: 70px 0; }
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 124px; }
  .product-image { height: 220px; }
  .map-card, .map-card iframe { min-height: 350px; }
  .page-hero { padding: 56px 0; }
  .page-hero h1 { font-size: clamp(2.35rem, 11vw, 3.7rem); }
  .catalog-product-grid { grid-template-columns: 1fr; }
  .filters, .quote-cart-panel, .customer-panel { padding: 21px; }
  .results-header, .panel-heading { align-items: flex-start; flex-direction: column; }
  .quote-item { grid-template-columns: 62px 1fr; align-items: start; }
  .quote-item-image { width: 62px; height: 62px; }
  .quantity-control { grid-column: 1 / -1; }
  .quantity-control label { text-align: left; }
  .quantity-control > div { grid-template-columns: 42px minmax(54px, 1fr) 42px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .floating-quote { position: fixed; right: 14px; bottom: 14px; z-index: 90; display: block; }
  .floating-quote a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--white); background: var(--navy-900); border-radius: 999px; box-shadow: var(--shadow); font-weight: 850; }
  .floating-quote span { min-width: 22px; height: 22px; display: inline-grid; place-items: center; color: var(--navy-950); background: var(--yellow-500); border-radius: 999px; font-size: .75rem; }
  .product-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); overflow-y: auto; border-radius: 16px; }
  .product-dialog-shell { display: block; max-height: none; }
  .detail-gallery { padding: 16px; }
  .detail-main-image { min-height: 300px; padding: 24px; }
  .detail-content { padding: 28px 21px 25px; overflow: visible; }
  .detail-content h2 { padding-right: 34px; }
  .detail-specifications > div { grid-template-columns: 1fr; gap: 3px; }
  .dialog-close { top: 10px; right: 10px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .toast { right: 14px; bottom: 14px; max-width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

/* Catálogo: busca principal, classificação compacta e resultados paginados. */
[hidden] { display: none !important; }
select { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 3px; }
.catalog-hero { padding: 32px 0 36px; }
.catalog-hero h1 { margin: 8px 0 10px; font-size: clamp(2rem, 3.5vw, 3rem); }
.catalog-hero p { font-size: 1rem; }
.catalog-page { padding: 32px 0 72px; }
.catalog-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
.catalog-results { min-width: 0; }
.filters { padding: 20px; }
.filter-panel summary { color: var(--navy-950); cursor: pointer; font-size: 1.1rem; font-weight: 800; }
.filter-panel summary span { color: var(--muted); font-size: .875rem; }
.filter-fields { display: grid; gap: 18px; margin-top: 22px; }
.filter-field { min-width: 0; }
.filter-field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 750; }
.filter-field select, .results-controls select { width: 100%; min-height: 46px; padding: 10px; color: var(--ink); background: var(--white); border: 1px solid #c4cdd8; border-radius: 8px; font-size: .875rem; }
.filter-field select:disabled { color: var(--muted); background: var(--surface); }
.filter-fields .clear-filter { min-height: 40px; text-align: left; font-size: .875rem; }
.catalog-complement { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--navy-800); }
.catalog-search { margin-bottom: 22px; }
.catalog-search > label { display: block; margin-bottom: 10px; color: var(--navy-950); font-size: 1.1rem; font-weight: 800; }
.catalog-search-row { display: flex; gap: 10px; }
.catalog-search input { min-width: 0; flex: 1; min-height: 52px; padding: 12px 16px; border: 1px solid #b7c3d1; background: var(--white); border-radius: 10px; font-size: 1rem; }
.catalog-search input:focus { outline: 3px solid rgba(20,63,105,.16); border-color: var(--navy-800); }
.catalog-search-row .btn { flex: 0 0 auto; width: auto; }
.catalog-search > p { margin: 8px 0 0; font-size: .875rem; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-filters button { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; color: var(--navy-900); background: #eaf0f6; border: 1px solid #c8d6e4; border-radius: 20px; font-size: .875rem; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.active-filters button span { font-size: 1.2rem; }
.catalog-toolbar { align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 18px; margin-bottom: 18px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.catalog-toolbar > p { color: var(--ink); font-size: .875rem; font-weight: 700; }
.results-controls { display: flex; gap: 12px; }
.results-controls label { display: grid; gap: 4px; color: var(--muted); font-size: .875rem; }
.results-controls select { min-height: 40px; padding: 7px 9px; }
.catalog-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.catalog-product-grid .product-card { min-width: 0; border-radius: 13px; }
.catalog-product-grid .product-image { height: 140px; padding: 8px; background: var(--white); }
.catalog-product-grid .product-content { padding: 12px; }
.product-identification { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 7px; }
.product-identification .product-brand { margin: 0; font-size: .75rem; letter-spacing: .02em; }
.product-code { margin: 0; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.catalog-product-grid h3 { margin-bottom: 7px; font-size: .875rem; line-height: 1.35; overflow-wrap: anywhere; }
.product-category { display: block; margin-bottom: 12px; color: var(--navy-800); font-size: .75rem; }
.catalog-product-grid .product-code { font-size: .75rem; }
.catalog-product-grid .product-actions { gap: 6px; }
.catalog-product-grid .details-button, .catalog-product-grid .btn-product { min-height: 40px; padding: 7px 8px; font-size: .78rem; line-height: 1.3; }
.image-unavailable { color: #65758a; font-size: .875rem; text-align: center; font-weight: 500; letter-spacing: 0; }
.image-unavailable::before { content: ''; display: block; width: 36px; height: 3px; margin: 0 auto 12px; background: #d2dbe5; border-radius: 2px; }
.quote-item-image .image-unavailable { font-size: .75rem; line-height: 1.2; }
.quote-item-image .image-unavailable::before { display: none; }
.detail-thumbnails .image-unavailable { font-size: .75rem; }
.catalog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 30px; }
.catalog-pagination button { min-width: 42px; min-height: 44px; padding: 8px 12px; color: var(--navy-900); background: var(--white); border: 1px solid #c4cdd8; border-radius: 8px; font-size: .875rem; font-weight: 700; cursor: pointer; }
.catalog-pagination button[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.catalog-pagination button:disabled { opacity: .45; cursor: default; }
.no-results .btn { margin-top: 20px; }
@media (max-width: 1100px) {
  .catalog-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 900px) {
  .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .catalog-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-hero { padding: 26px 0; }
  .catalog-page { padding-top: 22px; }
  .filters { position: static; max-height: none; padding: 16px 20px; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-complement { display: none; }
  .catalog-toolbar { flex-direction: row; align-items: center; }
  .results-controls { flex-wrap: wrap; }
  .catalog-search-row { gap: 8px; }
  .catalog-search-row .btn { padding: 0 15px; }
}
@media (max-width: 600px) {
  .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-product-grid .product-image { height: 130px; }
  .filter-fields { grid-template-columns: minmax(0, 1fr); }
  .catalog-pagination { gap: 5px; }
  .catalog-pagination button { min-width: 38px; padding: 8px 10px; }
}
@media (max-width: 360px) {
  .catalog-product-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Department navigation follows the product classification without changing it. */
.catalog-layout > .filters { position: relative; top: auto; max-height: none; overflow: visible; padding: 0; align-self: start; }
.department-panel > summary { padding: 18px; color: var(--white); background: var(--navy-900); border-radius: 17px 17px 0 0; font-size: 1rem; font-weight: 800; cursor: pointer; }
.department-panel:not([open]) > summary { border-radius: 17px; }
.department-nav { padding: 8px; }
.department-nav ul { list-style: none; padding: 0; margin: 0; }
.department-row { display: flex; align-items: stretch; border-radius: 7px; }
.department-row > a { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 12px 8px; color: var(--navy-900); font-size: .84rem; line-height: 1.4; }
.department-row > a > span { flex: 1; overflow-wrap: anywhere; }
.department-row small { flex: 0 0 auto; color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
.department-row:hover, .department-row:focus-within, .department-row.is-selected { background: #edf2f7; }
.department-row.is-selected > a { font-weight: 800; }
.department-toggle { flex: 0 0 36px; min-height: 44px; padding: 0; border: 0; border-radius: 7px; color: var(--navy-800); background: transparent; cursor: pointer; font-size: 1.4rem; }
.department-toggle:hover, .department-toggle[aria-expanded="true"] { color: var(--white); background: var(--navy-800); }
.department-toggle[aria-expanded="true"] span { display: inline-block; transform: rotate(90deg); }
.department-view-all { display: block; padding: 13px 10px; color: var(--navy-800); font-size: .83rem; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.department-view-all:hover { text-decoration: underline; }
.department-all { margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.department-submenu { padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.department-submenu-title { padding: 8px 10px 0; margin: 0; color: var(--muted); font-size: .75rem; font-weight: 800; }
.department-submenu > .department-view-all { margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.filters > .filter-panel { padding: 18px; border-top: 1px solid var(--line); }
.filters > .filter-panel > summary { font-size: .95rem; }
.filters .filter-fields { margin-top: 16px; }
.filters .catalog-complement { margin: 0; padding: 16px 18px; }
.catalog-breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: .82rem; }
.catalog-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.catalog-breadcrumb li { display: inline; overflow-wrap: anywhere; }
.catalog-breadcrumb li + li::before { content: '›'; margin-right: 7px; color: var(--muted); }
.catalog-breadcrumb a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
.catalog-breadcrumb [aria-current] { color: var(--navy-950); font-weight: 750; }
@media (min-width: 1101px) {
  .department-submenu { position: fixed; width: 264px; z-index: 101; overflow-y: auto; overscroll-behavior: contain; box-shadow: 8px 12px 30px rgba(7,26,45,.15); }
  .department-submenu .department-submenu { z-index: 102; }
}
@media (max-width: 1100px) {
  .department-submenu { position: static; width: auto; max-height: none !important; margin: 0 0 8px 10px; border-width: 0 0 0 2px; border-radius: 0; padding: 4px 0 4px 7px; background: #f7f9fc; }
  .department-submenu-title { display: none; }
  .department-toggle { flex-basis: 44px; }
}
