:root {
  color-scheme: light;
  --ink: #1d1b19;
  --dark: #151515;
  --paper: #f7f4ee;
  --surface: #fffdf9;
  --warm: #ffa573;
  --warm-hover: #ffb88f;
  --rust: #874117;
  --muted: #5c5751;
  --muted-on-dark: #c9c3bc;
  --line: #e3dbd0;
  --shell: 1224px;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--font); }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b85723; outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(calc(100% - 72px), var(--shell)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 10; inset: 12px auto auto 12px; padding: 12px 16px; background: white; color: var(--ink); }

.site-header { background: var(--dark); color: #f2eeea; border-bottom: 1px solid #34302e; position: relative; z-index: 2; }
.header-inner { min-height: 88px; display: grid; grid-template-columns: 125px 1fr 125px; align-items: center; gap: 20px; }
.brand { width: fit-content; display: block; border-radius: 50%; }
.brand img { border-radius: 50%; filter: grayscale(1) brightness(.90); mix-blend-mode: screen; }
.site-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 28px; }
.site-nav a, .header-contact { text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav a:hover, .footer-inner a:hover, .text-link:hover { color: var(--warm); }
.header-contact { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 43px; border-radius: 8px; padding: 0 12px; background: var(--warm); color: #21140e; }
.header-contact:hover { background: var(--warm-hover); }
.menu-toggle { display: none; }

.hero { position: relative; overflow: hidden; color: #fffaf5; background: #121110; isolation: isolate; }
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 25%;
  background-image: linear-gradient(90deg, #121110 0%, #121110b8 15%, #12111000 47%), linear-gradient(0deg, #1211103b, transparent 43%), url("assets/hero-eletronicos.webp");
  background-size: cover;
  background-position: center, center, center 57%;
}
.hero-inner { min-height: 511px; padding-block: 84px 83px; }
.location-label, .section-label { display: flex; align-items: center; gap: 9px; color: var(--warm); font-size: .73rem; font-weight: 750; letter-spacing: .135em; text-transform: uppercase; }
.hero h1 { max-width: 685px; margin-top: 18px; font-size: clamp(3.2rem, 6vw, 5.9rem); font-weight: 760; line-height: .98; letter-spacing: -.076em; }
.hero h1 em { color: var(--warm); font-style: normal; }
.hero-description { max-width: 385px; margin-top: 25px; color: var(--muted-on-dark); font-size: 1.05rem; line-height: 1.63; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 11px 16px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: .91rem; font-weight: 730; line-height: 1.35; text-align: center; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.button span { font-size: 1.09em; }
.button-primary { background: var(--warm); color: #21140e; }
.button-primary:hover { background: var(--warm-hover); }
.button-outline { border-color: #69605a; color: #fffaf5; background: #19161483; }
.button-outline:hover { border-color: var(--warm); color: var(--warm); }
.button-light { border-color: #cfc4b7; color: var(--ink); background: var(--surface); }
.button-light:hover { background: #f1e8dc; border-color: #9f8673; }

.categories { padding-block: 65px 72px; }
.section-heading { margin-bottom: 27px; }
.section-heading h2, .store-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.85rem); font-weight: 750; line-height: 1.09; letter-spacing: -.058em; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.category-tab { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); text-align: left; font-size: .95rem; font-weight: 730; line-height: 1.2; }
.category-tab:hover { border-color: #a7643a; }
.category-tab[aria-selected="true"] { border-color: #a9582b; box-shadow: inset 0 0 0 1px #a9582b; background: #fae7d8; color: #653012; }
.category-icon { flex: none; width: 39px; height: 39px; padding: 7px; background: #f9eee3; border-radius: 9px; }
.category-tab[aria-selected="true"] .category-icon { background: #f4d8c5; }
.catalog-panel { margin-top: 27px; }
.catalog-panel h3 { margin: 0 0 13px; font-size: clamp(1.28rem, 2.6vw, 1.72rem); line-height: 1.17; letter-spacing: -.045em; }
.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.catalog-toolbar h3 { margin-bottom: 3px; }
.catalog-count { color: var(--muted); font-size: .86rem; }
.catalog-filter { min-width: 0; }
.catalog-filter label { display: block; margin-bottom: 4px; font-size: .81rem; font-weight: 700; }
.catalog-filter select, .catalog-filter input { width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid #ccbdaf; border-radius: 7px; background: var(--surface); color: var(--ink); font-size: .91rem; }
.products-catalog { margin-top: 20px; }
.catalog-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-width: 640px; }
.products-catalog .catalog-count { margin: 10px 0 13px; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.listing-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.product-card { display: flex; flex-direction: column; }
.product-image { min-width: 0; background: #fff; border-bottom: 1px solid #eee7df; }
.product-image img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 296; object-fit: contain; }
.listing-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(15px, 2.2vw, 26px); }
.product-card .listing-copy { flex: 1; row-gap: 10px; padding: 15px 14px 14px; }
.listing-copy h4 { margin: 0; font-size: 1.1rem; line-height: 1.22; letter-spacing: -.035em; }
.listing-copy p { flex: 1; margin: 7px 0 15px; color: var(--muted); font-size: .88rem; line-height: 1.43; }
.product-card h4 { overflow-wrap: anywhere; }
.product-card .image-caption { flex: 0; margin: 5px 0 0; font-size: .73rem; }
.product-card .listing-action { margin-top: auto; }
.listing-action { gap: 9px; min-height: 44px; padding: 8px 11px; color: var(--rust); font-size: .83rem; }
.image-note { margin-top: 9px; color: var(--muted); font-size: .77rem; }
.image-note a { text-underline-offset: 3px; }

.service { background: #201c19; color: #fffaf5; padding-block: 72px; }
.service-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(30px, 7vw, 100px); align-items: start; }
.service-intro { padding-top: 14px; }
.section-label span { width: 18px; height: 1px; background: currentColor; }
.service-intro h2 { max-width: 400px; margin-top: 16px; font-size: clamp(2.5rem, 4.6vw, 4.3rem); font-weight: 750; line-height: .99; letter-spacing: -.065em; }
.service-intro > p:not(.section-label) { margin-top: 18px; max-width: 360px; color: var(--muted-on-dark); line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 43px; color: #f9e6d9; font-size: .91rem; font-weight: 690; text-underline-offset: 4px; }
.service-panel { min-width: 0; padding: clamp(20px, 3.6vw, 38px); background: var(--surface); color: var(--ink); border: 1px solid #f5e3d4; border-radius: 17px; }
fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
legend, .form-field > label { display: block; margin-bottom: 11px; padding: 0; color: #29231e; font-weight: 740; line-height: 1.3; }
.device-options { display: flex; flex-wrap: wrap; gap: 8px; }
.device-options label { position: relative; cursor: pointer; }
.device-options input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.device-options span { display: inline-flex; align-items: center; padding: 8px 11px; min-height: 42px; border: 1px solid #ddd3c8; border-radius: 7px; background: #faf7f2; color: #433a31; font-size: .85rem; font-weight: 620; }
.device-options input:hover + span { border-color: #a7643a; }
.device-options input:focus-visible + span { outline: 3px solid #b85723; outline-offset: 2px; }
.device-options input:checked + span { border-color: #98502a; background: #ffe3cf; color: #653012; box-shadow: inset 0 0 0 1px #98502a; }
.form-field { margin-top: 23px; }
select { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #ccbdaf; border-radius: 7px; color: var(--ink); background-color: #fffdf9; }
select:disabled { color: #615b54; background-color: #f5f1ec; opacity: 1; }
.form-submit { margin-top: 20px; }
.contact-result h3 { font-size: 1.42rem; letter-spacing: -.04em; }
.contact-result dl { margin: 14px 0; }
.contact-result dl > div { display: grid; grid-template-columns: 105px 1fr; align-items: baseline; gap: 5px 10px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.contact-result dt { color: var(--muted); font-size: .9rem; }
.contact-result dd { font-weight: 650; }
.contact-result > p { color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
#copy-fallback { display: block; width: 100%; min-height: 96px; margin-top: 12px; padding: 9px; font: inherit; resize: vertical; }
.copy-status:not(:empty) { font-size: .84rem; margin-top: 8px; }
.edit-request { min-height: 42px; padding: 0; margin-top: 7px; color: var(--rust); background: none; border: 0; font-size: .87rem; text-decoration: underline; text-underline-offset: 3px; }

.store-contact { padding-block: 49px; }
.store-inner, .store-copy { display: flex; align-items: center; gap: 18px; }
.store-inner { justify-content: space-between; }
.store-icon { display: grid; flex: none; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: #332419; }
.store-copy h2 { font-size: clamp(1.58rem, 3vw, 2.05rem); }
.store-description { max-width: 48ch; margin-top: 8px; font-size: .95rem; }
.store-copy address { margin-top: 7px; color: var(--muted); font-size: .92rem; font-style: normal; }
.store-instagram { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--rust); font-size: .88rem; font-weight: 700; text-underline-offset: 3px; }
.store-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 8px; }
.site-footer { color: #e8e1d9; background: var(--dark); }
.footer-inner { display: flex; align-items: center; gap: 13px; min-height: 87px; font-size: .83rem; }
.footer-inner p { color: var(--muted-on-dark); }
.footer-inner > a:last-child { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; text-decoration: none; white-space: nowrap; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 76px 1fr 116px; gap: 13px; }
  .site-nav { gap: 5px 17px; }
  .category-tab { gap: 8px; padding-inline: 9px; font-size: .86rem; }
  .category-icon { width: 34px; height: 34px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
}

@media (max-width: 780px) {
  .shell { width: min(calc(100% - 40px), var(--shell)); }
  .header-inner { min-height: 71px; grid-template-columns: 1fr auto auto; gap: 11px; }
  .brand img { width: 54px; height: 54px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; color: #f2eeea; background: none; border: 1px solid #4b4540; border-radius: 8px; padding: 0 11px; font-size: .88rem; font-weight: 600; }
  .menu-toggle span { position: relative; width: 12px; height: 7px; border-block: 1px solid currentColor; }
  .menu-toggle[aria-expanded="true"] span { transform: rotate(90deg); }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 7px 20px 13px; background: #1d1b1a; border-bottom: 1px solid #4b4540; }
  .menu-toggle[aria-expanded="true"] + .site-nav { display: grid; gap: 0; }
  .site-nav a + a { border-top: 1px solid #35302d; }
  .header-contact { gap: 6px; padding-inline: 10px; }
  .hero-inner { min-height: 445px; padding-block: 67px 60px; }
  .hero-art { left: 13%; opacity: .77; background-position: center, center, 59% 55%; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .service-grid { gap: 25px; }
  .service-intro { padding-top: 0; }
}

@media (max-width: 590px) {
  .hero-inner { min-height: 0; padding-block: 39px 193px; }
  .hero h1 { font-size: clamp(2.7rem, 11.1vw, 4.05rem); }
  .hero-art {
    inset: auto 0 0;
    height: 270px;
    opacity: .92;
    background-image: linear-gradient(180deg, #121110, #12111040 34%, #12111000 58%), url("assets/hero-eletronicos.webp");
    background-position: center, 68% 62%;
  }
  .hero-description { margin-top: 18px; font-size: .95rem; }
  .hero-actions { gap: 8px; margin-top: 21px; }
  .hero-actions .button { gap: 8px; padding-inline: 11px; font-size: .83rem; }
  .categories, .service { padding-block: 43px; }
  .section-heading { margin-bottom: 21px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .category-tab { min-height: 54px; }
  .category-tab:last-child { grid-column: 1 / -1; }
  .catalog-panel { margin-top: 23px; }
  .listing-grid:not(.product-grid) { grid-template-columns: 1fr; }
  .product-card .listing-copy { padding: 12px 9px; }
  .product-card h4 { font-size: .94rem; }
  .product-card .listing-action { width: 100%; padding-inline: 4px; font-size: .75rem; }
  .product-card .listing-action .arrow-diagonal { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-intro h2 { margin-top: 11px; }
  .service-intro > p:not(.section-label) { margin-top: 13px; }
  .text-link { margin-top: 6px; }
  .form-submit { width: 100%; }
  .store-contact { padding-block: 35px; }
  .store-inner { align-items: flex-start; flex-direction: column; gap: 15px; }
  .store-copy { align-items: flex-start; gap: 13px; }
  .store-icon { width: 43px; height: 43px; }
  .store-icon img { width: 20px; height: 20px; }
  .footer-inner { gap: 9px; }
  .footer-inner .brand img { width: 43px; height: 43px; max-width: none; }
  .footer-inner p { font-size: .72rem; }
  .footer-inner > a:last-child { font-size: .73rem; }
}

@media (max-width: 360px) {
  .category-tab { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; min-height: 64px; }
  .category-tab:last-child { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 50px; }
  .category-icon { width: 28px; height: 28px; padding: 5px; }
  .catalog-controls { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.arrow-diagonal, .arrow-up { position: relative; display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; }
.arrow-diagonal::before, .arrow-up::before { content: ""; position: absolute; width: 11px; height: 1px; inset: 5px auto auto 0; background: currentColor; transform: rotate(-45deg); }
.arrow-diagonal::after, .arrow-up::after { content: ""; position: absolute; width: 6px; height: 6px; inset: 1px 1px auto auto; border-top: 1px solid; border-right: 1px solid; }
.arrow-up { transform: rotate(-45deg); }
