:root {
  color-scheme: light;
  --navy: #061942;
  --blue: #104599;
  --ink: #102348;
  --orange: #ff971e;
  --paper: #f5f7fb;
  --line: #dce4ef;
  --muted: #4b5973;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .53; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ab4b00; outline-offset: 3px; }
.container { width: min(1192px, calc(100% - 64px)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin: 0; }
h2 { font: 700 clamp(2.2rem, 4vw, 3.3rem)/.96 var(--display); letter-spacing: -.012em; }
.top { position: sticky; top: 0; z-index: 2; background: #061637; color: white; border-bottom: 1px solid #ffffff23; }
#sobre, #catalogo, #loja, #search-products { scroll-margin-top: 100px; }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: white; font: 800 2rem/.84 var(--display); white-space: nowrap; }
.brand small { display: block; font: 600 .69rem/1.15 "DM Sans", sans-serif; letter-spacing: .065em; margin-top: 5px; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #a6d864; border: 1px solid #a6d86470; border-radius: 10px; }
.top nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 45px); font-weight: 600; font-size: .97rem; }
.top nav a:hover, .top nav a:focus-visible { color: #ffc478; }
.cart-button { min-height: 44px; display: flex; align-items: center; gap: 8px; border: 1px solid #ffffff50; border-radius: 7px; padding: 7px 11px; color: white; background: #ffffff0b; font-weight: 700; }
.cart-button:hover { background: #ffffff1a; }
#open-cart { background: var(--orange); color: var(--navy); border-color: transparent; }
#open-cart:hover { background: #ffb455; }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.store-actions { flex-wrap: nowrap; }
.store-actions .admin-entry { justify-content: center; flex: none; width: 44px; padding-inline: 0; color: #c0cee8; }
.store-actions .admin-entry:hover, .store-actions .admin-entry:focus-visible { color: #ffc478; }
.admin-entry svg { width: 17px; height: 17px; }
.cart-button b { display: grid; place-items: center; min-width: 22px; padding-inline: 4px; height: 22px; border-radius: 50px; background: var(--navy); color: white; font-size: .8rem; }
.hero { color: white; background: linear-gradient(95deg, #071633 9%, #071633ef 29%, #11234170 80%), #0b2348 url("assets/campo.webp") center 47% / cover; border-bottom: 4px solid var(--orange); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 5vw, 72px); min-height: 388px; padding-block: 42px; }
.eyebrow { display: flex; align-items: center; gap: 6px; color: #ffba65; font-size: .81rem; font-weight: 800; letter-spacing: .105em; }
.eyebrow svg { width: 16px; height: 16px; }
h1 { font: 800 clamp(3.25rem, 5.5vw, 5.5rem)/.9 var(--display); letter-spacing: -.015em; margin-block: 16px 19px; }
h1 em { color: #ffac4d; font-style: normal; }
.hero-copy { max-width: 390px; color: #e8efff; font-size: 1.04rem; line-height: 1.55; margin-bottom: 22px; }
.hero-logo { display: block; width: min(100%, 440px); height: auto; justify-self: end; border-radius: 12px; border: 1px solid #a9bce580; box-shadow: 0 18px 55px #020d3b99; }
.hero .primary { gap: 9px; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 7px; font-weight: 800; }
.primary { background: var(--orange); color: #151f34; }
.primary:hover { background: #ffb455; }
.secondary { background: white; color: var(--blue); border-color: var(--line); }
.secondary:hover:not(:disabled) { background: #ecf2fc; border-color: #9ab3db; }
.company-section { background: #eaf1fe; border-bottom: 1px solid #ccdbf2; }
.company { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 24px; padding-block: 26px; }
.company-heading { display: flex; align-items: center; gap: 12px; }
.company-heading h2 { font-size: clamp(2rem, 3.2vw, 2.65rem); }
.company-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: none; border-radius: 10px; color: #bde87b; background: var(--navy); }
.company-description { line-height: 1.55; }
.company-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 2px; color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.company-link:hover { color: var(--navy); }
.company-link svg { width: 17px; height: 17px; }
.catalog { padding-block: 53px 50px; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.catalog-head p { color: var(--muted); margin-top: 8px; }
.search { display: flex; align-items: center; gap: 9px; padding-inline: 13px; min-height: 50px; width: min(100%, 420px); background: white; border: 1px solid #aabfdf; border-radius: 8px; color: var(--blue); }
.search input { width: 100%; min-width: 0; height: 42px; outline: none; border: 0; color: var(--ink); background: transparent; }
.search:focus-within { outline: 2px solid var(--blue); }
.catalog-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 17px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.category-select { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-weight: 700; }
.category-select select { max-width: 100%; min-height: 44px; padding: 6px 9px; border: 1px solid #aabfdf; border-radius: 8px; background: white; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.price-access { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding: 10px 14px; background: #eaf1fe; border: 1px solid #ccdbf2; border-radius: 9px; color: var(--ink); }
.price-access svg { color: var(--blue); }
.price-access p { flex: 1 1 195px; }
.filter { border: 1px solid var(--line); border-radius: 50px; background: white; color: var(--ink); min-height: 44px; padding: 6px 14px; font-size: .91rem; font-weight: 700; }
.photo-filter { display: inline-flex; align-items: center; gap: 7px; }
.photo-filter svg { width: 18px; height: 18px; }
.filter:hover { border-color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; }
#catalog-status { margin-inline-start: auto; color: var(--muted); font-size: .91rem; font-weight: 600; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; }
.product-media { display: grid; place-items: center; aspect-ratio: 4 / 3; max-height: 230px; border-bottom: 1px solid var(--line); background: #f1f5fb; overflow: hidden; }
.product-media img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 8px; object-fit: contain; background: white; }
.product-photo-empty { display: grid; justify-items: center; gap: 7px; color: var(--muted); font-size: .85rem; }
.product-photo-empty svg { width: 29px; height: 29px; color: var(--blue); }
.product-info { display: flex; flex-direction: column; flex: 1; min-height: 154px; padding: 15px; }
.product-code { color: var(--muted); font-size: .80rem; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.product-code svg { width: 15px; height: 15px; color: var(--blue); }
.product h3 { font-size: 1rem; line-height: 1.36; margin-block: 9px 15px; overflow-wrap: anywhere; }
.product-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: auto; gap: 7px; }
.price { font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
.quote-price { color: var(--muted); font-size: .89rem; }
.promotion-price { display: grid; gap: 1px; }
.promotion-price small { color: #9c4000; font-size: .85rem; font-weight: 800; }
.promotion-price del { color: var(--muted); font-size: .88rem; }
.locked-price { color: var(--blue); font-size: .875rem; font-weight: 700; min-height: 44px; padding: 6px 0; border: 0; background: transparent; text-align: left; }
.locked-price:hover { text-decoration: underline; }
.add { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 42px; border: 1px solid #dae5f7; border-radius: 6px; color: #0a3d86; background: #edf3ff; font-weight: 800; padding: 6px 9px; font-size: .86rem; }
.add:hover { background: #dce9ff; }
.add svg { width: 16px; height: 16px; }
.empty { border: 1px dashed #9dadc7; padding: 35px; text-align: center; border-radius: 8px; }
.empty button { margin-top: 10px; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 25px; }
#page-label { color: var(--muted); font-size: .91rem; }
.store-section { background: #eaf0fb; border-top: 1px solid var(--line); }
.support { display: flex; align-items: center; gap: 16px; padding-block: 33px; }
.support-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--navy); flex: none; }
.support h2 { font-size: 2rem; margin-bottom: 7px; }
address { color: var(--muted); font-style: normal; line-height: 1.5; }
footer { background: #061637; color: #e7edfa; padding-block: 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; }
dialog { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: 100%; width: min(100%, 475px); max-width: 100%; border: 0; background: var(--paper); color: var(--ink); padding: 0; }
dialog::backdrop { background: #061941ad; }
.auth-dialog { inset: 0; margin: auto; height: fit-content; max-height: min(90vh, 650px); width: min(calc(100% - 24px), 435px); border-radius: 12px; }
.auth-dialog a { color: var(--blue); text-decoration: underline; }
#account-form, #account-signed-in { display: grid; gap: 12px; }
#account-preview-note { margin-bottom: 12px; }
.checkout-section { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #eef4fd; }
.checkout-section h3 { font-size: 1.13rem; margin-bottom: 9px; }
#checkout-form { display: grid; gap: 9px; }
#checkout-form label { display: grid; gap: 5px; font-weight: 700; }
#checkout-form input, #checkout-form select { padding: 9px; width: 100%; color: var(--ink); background: white; border: 1px solid #c8d4e7; border-radius: 7px; }
#checkout-total p { display: flex; justify-content: space-between; margin-bottom: 5px; }
#orders-list { padding: 0; margin: 8px 0 13px; list-style: none; }
.customer-order { display: grid; gap: 7px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.customer-order .secondary { justify-self: start; }
#account-form label { display: grid; gap: 5px; font-weight: 700; }
#account-form input { min-width: 0; padding: 10px; border: 1px solid #c8d4e7; border-radius: 7px; background: white; color: var(--ink); }
#account-status:not(:empty) { margin-top: 12px; color: #992b1f; }
body:has(dialog[open]) { overflow: hidden; }
.drawer { padding: 23px; }
.drawer-head, .drawer-total > div:first-child, .cart-row, .quantity { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.drawer-head { margin-bottom: 18px; }
.close { background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; width: 45px; height: 45px; font-size: 1.75rem; }
#cart-items { list-style: none; padding: 0; margin: 0; }
.cart-row { padding-block: 12px; border-block-start: 1px solid var(--line); flex-wrap: wrap; }
.cart-row strong { overflow-wrap: anywhere; }
.cart-row span { display: block; color: var(--muted); }
.quantity button { min-width: 37px; min-height: 37px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--navy); font-weight: 700; }
.drawer-total { padding-top: 15px; border-top: 1px solid var(--line); display: grid; gap: 13px; }
.order { display: grid; gap: 8px; }
.order label { font-weight: 700; }
.order textarea { padding: 9px; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; width: 100%; resize: vertical; }
.order-note, #copy-status { color: var(--muted); font-size: .9rem; }
.toast { position: fixed; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--navy); color: white; padding: 10px 15px; border-radius: 7px; width: max-content; max-width: calc(100% - 24px); text-align: center; box-shadow: 0 6px 20px #06194240; pointer-events: none; }
.toast:empty { display: none; }
@media (max-width: 850px) {
  .container { width: calc(100% - 40px); }
  .hero-inner { min-height: 360px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .top-inner { min-height: 0; flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .top nav { order: 3; width: 100%; gap: clamp(10px, 4vw, 22px); }
  .top nav a { padding-block: 4px; white-space: nowrap; }
  .top .brand-icon { display: none; }
  .top .brand { font-size: 1.65rem; }
  .header-actions { gap: 5px; }
  .cart-button { padding-inline: 7px; font-size: .875rem; gap: 4px; }
  #open-cart svg { display: none; }
  #sobre, #catalogo, #loja, #search-products { scroll-margin-top: 145px; }
  .hero { background-image: linear-gradient(90deg, #071633ed, #07163392), url("assets/campo.webp"); background-position: center, 60% center; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding-block: 30px; }
  .hero-logo { width: min(100%, 245px); justify-self: start; }
  h1 { font-size: clamp(3.05rem, 10.3vw, 4rem); }
  .company { grid-template-columns: 1fr; gap: 11px; padding-block: 20px 15px; }
  .catalog { padding-block: 37px; }
  .catalog-head { align-items: start; flex-direction: column; margin-bottom: 14px; }
  .search { width: 100%; }
  .category-select { flex-basis: 100%; }
  .category-select select { flex: 1 1 11rem; width: 0; }
  .products { gap: 9px; }
  .product-info { padding: 11px; }
  .product h3 { font-size: .96rem; }
  .product-bottom { flex-direction: column; align-items: stretch; }
  .add { min-height: 44px; }
}
@media (max-width: 365px) {
  .products { grid-template-columns: 1fr; }
  .top nav { gap: 6px; font-size: .875rem; }
  #open-cart span { font-size: 0; }
  #open-cart svg { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
