:root {
  color-scheme: light;
  font-family: Inter, "DM Sans", system-ui, sans-serif;
  --ink: #101827;
  --muted: #526074;
  --line: #dee4ee;
  --canvas: #f4f6fa;
  --panel: #fff;
  --blue: #1944aa;
  --blue-dark: #14347e;
  --gold: #ffc54e;
  --radius: 17px;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2866ec; outline-offset: 3px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; inset: 12px auto auto 12px; background: #fff; padding: 10px; }
.shell { width: min(1370px, 100% - 80px); margin-inline: auto; }
.site-header { background: #101827; color: #fff; }
.masthead { height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; font-size: 19px; white-space: nowrap; letter-spacing: -.034em; }
.wordmark img { border-radius: 50%; }
.wordmark strong { color: var(--gold); font-weight: 810; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero { position: relative; overflow: hidden; margin-top: 26px; background: #0c1727; border: 1px solid #243249; border-radius: 23px; }
.hero h1 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.catalog { scroll-margin-top: 20px; padding: 25px 0 45px; }
.search-row { display: flex; gap: 10px; }
.search { flex: 1; min-width: 0; background: var(--panel); display: flex; align-items: center; padding-inline: 16px 11px; gap: 12px; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 8px #19295206; }
.search:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search svg { flex: none; font-size: 20px; color: var(--blue); }
.search input { border: 0; outline: 0; width: 100%; min-width: 0; height: 55px; padding: 0; background: transparent; color: var(--ink); }
.search input::placeholder { color: #576479; }
.categories { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 0 19px; border-bottom: 1px solid var(--line); }
.category { display: flex; align-items: center; gap: 8px; background: var(--panel); color: #34415a; border: 1px solid var(--line); border-radius: 100px; padding: 9px 14px; min-height: 41px; white-space: nowrap; font-size: .84rem; font-weight: 690; }
.category[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.category:hover:not([aria-pressed="true"]) { color: var(--blue); border-color: #819ed9; }
.category svg { font-size: 15px; flex: none; }
.catalog-layout { display: grid; grid-template-columns: 236px minmax(0,1fr); gap: 22px; margin-top: 23px; align-items: start; }
.filters { padding: 17px 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.filters-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 0 1px 14px; }
.filters-heading h2, .results-top h2 { margin: 0; font-size: 1.35rem; line-height: 1.15; font-weight: 820; letter-spacing: -.039em; }
.reset { color: var(--blue); background: none; border: 0; padding: 5px; font-weight: 720; font-size: .81rem; }
.reset:hover { text-decoration: underline; }
.field, legend { color: #283651; font-size: .86rem; font-weight: 720; }
.field { display: block; margin-top: 17px; }
.field select { display: block; margin-top: 7px; width: 100%; }
select { min-width: 0; color: #273550; border-radius: 8px; border: 1px solid #d9e1ee; background: #f8fafd; min-height: 40px; padding: 7px 8px; font-weight: 560; font-size: .84rem; }
fieldset { margin: 17px 0 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 7px; }
.price-range { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.price-range label { font-size: .78rem; color: var(--muted); }
.price-input { background: #f8fafd; border: 1px solid #d9e1ee; border-radius: 8px; display: flex; align-items: center; gap: 4px; padding-inline: 8px 5px; margin-top: 4px; min-height: 40px; }
.price-input:focus-within { outline: 2px solid #2866ec; outline-offset: 2px; }
.price-input input { color: var(--ink); border: 0; outline: 0; background: transparent; font-size: .88rem; padding: 0; width: 100%; min-width: 0; appearance: textfield; }
.price-input input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.range-error { color: #a32121; font-size: .78rem; margin: 8px 0 0; }
.mobile-filters, .view-results { display: none; }
.results-top { min-height: 51px; margin: 1px 0 13px; display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.results-top h2 { font-size: 1.6rem; }
.results-count { font-size: .86rem; margin: 5px 0 0; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .81rem; }
.sort select { background: white; }
.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.card { position: relative; min-width: 0; display: flex; flex-direction: column; background: white; border: 1px solid #e0e5ef; border-radius: var(--radius); overflow: hidden; box-shadow: 0 3px 12px #142a5908; transition: box-shadow .16s, border-color .16s; }
.card:hover, .card:focus-within { box-shadow: 0 7px 22px #152a5517; border-color: #9ab0dc; }
.product-media { background: radial-gradient(ellipse at center, #fff 0%, #eef2fa 90%); height: 165px; width: 100%; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid #e7ebf2; }
.product-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.image-placeholder { width: 55px; height: 55px; border-radius: 14px; background: #e6ecf7; color: #61749b; display: grid; place-items: center; }
.image-placeholder svg { width: 26px; height: 26px; }
.card-body { display: flex; flex-direction: column; align-items: stretch; padding: 14px 15px 12px; flex: 1; width: 100%; min-width: 0; }
.product-brand { color: var(--blue-dark); font-size: .72rem; letter-spacing: .045em; font-weight: 770; text-transform: uppercase; }
.card h3 { margin: 5px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 810; letter-spacing: -.035em; line-height: 1.24; }
.recent-product-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #e6f5ec;
  color: #185639;
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.35;
}
.product-series { margin: 5px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.38; overflow-wrap: anywhere; }
.product-series:empty, .card-specs:empty { display: none; }
.card-specs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 9px; font-size: .73rem; }
.card-specs div { display: flex; flex-wrap: wrap; gap: 3px 5px; align-items: baseline; line-height: 1.25; padding: 4px 7px; background: #eef2f8; border-radius: 5px; }
.card-specs dt { color: #56657d; }
.card-specs dd { margin: 0; color: #243250; font-weight: 740; }
.card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 5px; padding-top: 8px; }
.product-price { font-size: 1.19rem; font-weight: 840; color: #143b96; letter-spacing: -.03em; }
.product-price.unknown { font-size: .81rem; font-weight: 620; letter-spacing: 0; color: var(--muted); }
.arrow { border: 0; display: grid; place-items: center; color: var(--blue); background: #ebf1fe; width: 31px; height: 31px; border-radius: 50%; font-size: 1.05rem; }
.arrow::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:hover .arrow, .card:focus-within .arrow { color: #fff; background: var(--blue); }
.empty { background: white; border: 1px dashed #cbd6ea; border-radius: var(--radius); text-align: center; padding: 55px 15px; }
.empty > svg { color: var(--blue); width: 36px; height: 36px; }
.empty h3 { margin: 11px 0 5px; font-size: 1.35rem; }
.empty p { margin: 0; color: var(--muted); }
.empty button, .view-results { border: 0; padding: 11px 15px; color: white; background: var(--blue); border-radius: 9px; font-weight: 710; }
.empty button { margin-top: 17px; }
.site-footer { color: #dce3ee; background: #101827; }
.foot { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .86rem; }
.foot > span { font-weight: 760; }
.foot a { text-underline-offset: 4px; }
dialog { width: min(1100px,100% - 28px); border: 1px solid var(--line); border-radius: 19px; padding: 0; color: var(--ink); max-height: 94dvh; box-shadow: 0 16px 70px #10182770; }
dialog::backdrop { background: #101827a6; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 17px; background: #101827; color: #fff; }
.dialog-head p { margin: 0; font-weight: 730; font-size: .92rem; }
.dialog-head button { display: grid; place-items: center; background: #293449; border: 0; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 1.45rem; line-height: 1; }
.image-price-note { margin: 0; padding: 7px 10px; background: #fff3db; color: #634504; font-size: .8rem; }
.image-viewport { display: flex; justify-content: center; align-items: center; padding: 8px; background: #e9eef6; overflow: auto; }
.image-viewport img { display: block; max-width: 100%; max-height: min(37dvh, 420px); width: auto; height: auto; object-fit: contain; }
.detail-body { padding: 12px 15px 18px; }
.variant-picker { min-width: 0; margin: 8px 12px 4px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #f6f8fc; }
.variant-picker[hidden] { display: none; }
.variant-picker legend { padding: 0 5px; color: var(--ink); font-size: .875rem; font-weight: 750; }
.variant-options { display: flex; flex-wrap: wrap; gap: 5px; }
.variant-options button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 7px; border: 1px solid #becbe1; border-radius: 8px; background: white; color: var(--ink); font-size: .875rem; font-weight: 650; }
.variant-options button[aria-pressed="true"] { border-color: var(--blue); background: #e9f0ff; box-shadow: inset 0 0 0 1px var(--blue); }
.color-swatch { width: 13px; height: 13px; flex: none; border: 1px solid #0003; border-radius: 50%; }
.detail-body h2 { margin: 6px 0 0; font-size: clamp(1.4rem,5vw,2rem); letter-spacing: -.04em; line-height: 1.17; }
.detail-body p { color: var(--muted); margin: 9px 0 0; line-height: 1.5; }
.detail-price { margin: 10px 0 0; color: var(--blue-dark); }
.detail-price > div { display: flex; align-items: baseline; gap: 8px; }
.detail-price dt { font-size: .875rem; font-weight: 650; }
.detail-price dd { margin: 0; font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; line-height: 1.1; }
.detail-specs { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,135px),1fr)); gap: 7px; margin: 19px 0 0; }
.detail-specs div { padding: 9px; border-radius: 8px; background: #eef2f8; }
.detail-specs dt { font-size: .78rem; color: var(--muted); }
.detail-specs dd { margin: 3px 0 0; font-size: .92rem; font-weight: 740; }
@media (min-width: 801px) {
  #detail { width: min(860px, 86vw); max-height: 82dvh; }
  #detail .dialog-head { padding-block: 7px; }
  #detail .detail-price { margin: 8px 0 10px; }
  #detail .detail-body h2 { font-size: 1.75rem; }
  #detail .detail-price dd { font-size: 2.125rem; }
  .detail-layout:has(#detail-image-section:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
  #detail-image-section { background: #e9eef6; align-self: stretch; }
  .detail-info { min-width: 0; }
  .detail-info .detail-specs { margin-top: 12px; }
}
@media (max-width: 1060px) {
  .shell { width: min(100% - 48px,1370px); }
  .catalog-layout { grid-template-columns: 203px minmax(0,1fr); gap: 16px; }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .image-viewport img { max-height: min(31dvh, 280px); }
  .shell { width: calc(100% - 28px); }
  .masthead { height: 59px; }
  .wordmark { font-size: 16px; gap: 7px; }
  .wordmark img { width: 34px; height: 34px; }
  .hero { margin-top: 14px; border-radius: 16px; }
  .catalog { padding-top: 14px; }
  .search { gap: 6px; padding-inline: 8px; }
  .search svg { font-size: 17px; }
  .search input { height: 45px; font-size: .82rem; }
  .mobile-filters { display: inline-flex; flex: none; align-items: center; gap: 5px; color: var(--blue-dark); border-radius: 11px; border: 1px solid #cbd7ee; background: #ebf1fe; padding: 0 8px; font-size: .8rem; font-weight: 740; }
  .mobile-filters svg circle { fill: #ebf1fe; }
  #filter-count { background: var(--blue); color: white; padding: 2px 5px; border-radius: 100px; }
  .categories { flex-wrap: nowrap; overflow-x: auto; padding: 9px 0 11px; scrollbar-width: thin; }
  .category { font-size: .75rem; padding: 7px 10px; min-height: 42px; gap: 5px; }
  .catalog-layout { grid-template-columns: minmax(0,1fr); margin-top: 14px; }
  .filters:not(.is-open) { display: none; }
  .view-results { display: inline-block; margin-top: 13px; }
  .results-top { align-items: center; }
  .results-top h2 { font-size: 1.36rem; }
  .sort span { display: none; }
  .sort select { max-width: 131px; min-height: 36px; }
  .products { gap: 10px; }
  .product-media { height: 118px; }
  .card-body { padding: 10px; }
  .card h3 { font-size: .94rem; }
  .card .product-series, .card .card-specs, .card .product-brand-scales { display: none; }
  .product-price { font-size: 1.05rem; }
}
@media (max-width: 345px) {
  .products { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Shopping cart */
.site-header { position: sticky; top: 0; z-index: 10; }
.catalog { scroll-margin-top: 90px; }
body:has(dialog[open]) { overflow: hidden; }
body.has-cart { padding-bottom: 95px; }
.cart-open { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid #59647a; border-radius: 10px; background: #243148; color: white; font-size: .875rem; font-weight: 720; }
.cart-open svg { width: 20px; height: 20px; }
.cart-count { min-width: 23px; padding: 2px 6px; border-radius: 20px; color: var(--ink); background: var(--gold); text-align: center; }
.arrow { width: auto; height: 36px; padding: 7px 10px; border-radius: 8px; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.card-add { position: relative; z-index: 1; width: 100%; min-height: 44px; margin-top: 11px; padding: 9px 7px; border: 1px solid #bdcdec; border-radius: 9px; background: #edf3ff; color: var(--blue-dark); font-size: .875rem; font-weight: 750; }
.card-add:hover { background: #dce7ff; border-color: var(--blue); }
.detail-purchase { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.detail-purchase label { font-weight: 700; font-size: .875rem; }
.detail-purchase input { display: block; width: 84px; min-height: 46px; padding: 10px; margin-top: 6px; border: 1px solid #aebed8; border-radius: 9px; background: white; color: var(--ink); }
.detail-add, .detail-view-cart { min-height: 46px; padding: 11px 17px; border: 0; border-radius: 9px; font-weight: 750; }
.detail-add { color: var(--ink); background: var(--gold); }
.detail-view-cart { color: var(--blue-dark); background: #edf3ff; }
.detail-purchase #detail-cart-feedback { flex-basis: 100%; color: var(--blue-dark); font-size: .875rem; margin: 0; }
#detail-cart-feedback:empty { display: none; }
.catalog-back-to-cart { display: none; }
.cart-floating { position: fixed; z-index: 12; bottom: 20px; right: 24px; display: flex; justify-content: space-between; align-items: center; gap: 22px; width: min(365px, 100% - 28px); min-height: 62px; padding: 12px 18px; border: 1px solid #5371b2; border-radius: 14px; background: var(--blue-dark); color: white; box-shadow: 0 6px 28px #102b5b45; text-align: left; font-weight: 750; }
.cart-floating span span { display: block; margin-top: 3px; font-weight: 500; font-size: .875rem; color: #e1eaff; }
.cart-floating strong { color: var(--gold); font-size: 1.2rem; }
.cart-toast { position: fixed; z-index: 20; left: 50%; top: 83px; transform: translateX(-50%); width: max-content; max-width: min(580px, 100% - 28px); margin: 0; padding: 13px 18px; border: 1px solid #aebed9; border-radius: 11px; background: white; color: var(--blue-dark); box-shadow: 0 5px 25px #102b5b30; font-size: .875rem; font-weight: 650; }
#cart-dialog { width: min(560px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: 18px 0 0 18px; border-width: 0 0 0 1px; }
#cart-dialog[open] { display: flex; flex-direction: column; }
#cart-dialog .dialog-head { flex-shrink: 0; padding: 16px 20px; }
#cart-title { margin: 0 0 4px; font-size: 1.3rem; letter-spacing: -.025em; }
#cart-dialog #cart-item-count { color: #c6d2e5; font-size: .875rem; font-weight: 500; }
.cart-scroll { flex: 1; min-height: 80px; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
#cart-items { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item > img { width: 100%; height: 90px; object-fit: contain; border-radius: 9px; background: #eef2f8; }
.cart-item-body { min-width: 0; }
.cart-item h3 { font-size: 1rem; line-height: 1.25; margin: 0; letter-spacing: -.025em; }
.cart-item-specs { margin: 6px 0; color: var(--muted); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.cart-unit-price { margin: 6px 0 10px; font-size: .875rem; color: var(--blue-dark); font-weight: 650; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quantity-stepper { display: inline-flex; border: 1px solid #c8d3e5; border-radius: 8px; overflow: hidden; }
.quantity-stepper button { width: 38px; min-height: 40px; border: 0; background: #edf3ff; color: var(--blue-dark); font-size: 1.15rem; }
.quantity-stepper input { width: 52px; padding: 4px 0; border: 0; border-inline: 1px solid #c8d3e5; border-radius: 0; background: white; color: var(--ink); text-align: center; appearance: textfield; }
.quantity-stepper input::-webkit-inner-spin-button { appearance: none; }
.cart-line-total { font-size: 1rem; color: var(--ink); }
.cart-remove, .cart-clear { min-height: 36px; padding: 6px 0; border: 0; background: transparent; color: #9c2929; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-remove { margin-top: 5px; }
.cart-clear { margin: 12px 0; }
.cart-empty { text-align: center; padding: 60px 14px; }
.cart-empty > svg { width: 48px; height: 48px; color: var(--blue); }
.cart-empty h3 { font-size: 1.2rem; line-height: 1.3; }
.cart-empty p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
#cart-checkout { flex-shrink: 0; max-height: 45dvh; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); padding: 8px 20px; background: #f7f9fd; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-weight: 750; }
.cart-total strong { font-size: 1.65rem; letter-spacing: -.035em; color: var(--blue-dark); }
.cart-checkout-note, .cart-links-note, #cart-photo-status { color: var(--muted); font-size: .875rem; line-height: 1.45; margin: 7px 0 13px; }
.checkout-label { margin: 13px 0 9px; font-size: 1rem; font-weight: 750; }
.cart-whatsapp { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.whatsapp-order { display: inline-flex; justify-content: center; align-items: center; min-height: 36px; padding: 7px 14px; border: 1px solid #08793c; border-radius: 8px; background: #08793c; color: white; text-decoration: none; font-family:inherit; font-size: .875rem; font-weight: 750; cursor:pointer; }
.whatsapp-order:hover { background: #05622f; }
.cart-photo-actions { border-top: 1px solid var(--line); padding-top: 12px; }
.cart-photo-actions button { width: auto; max-width: 100%; min-height: 36px; margin-bottom: 8px; padding: 7px 14px; border: 1px solid #bdcdec; border-radius: 8px; color: var(--blue-dark); background: white; font-weight: 720; font-size: .875rem; }
#cart-share-photos { background: var(--blue); border-color: var(--blue); color: white; }
#cart-photo-status { margin: 0 0 8px; }
.cart-continue { flex-shrink: 0; width: 100%; min-height: 50px; padding: 12px; border: 0; border-top: 1px solid var(--line); background: white; color: var(--blue-dark); font-weight: 750; }
button:disabled { cursor: default; opacity: .5; }
@media (max-width: 700px) {
  .cart-open { gap: 6px; padding: 7px 9px; font-size: .875rem; }
  .cart-open svg { display: none; }
  .card-footer { flex-wrap: wrap; }
  .arrow { min-height: 38px; }
  .catalog-back-to-cart { position: fixed; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 12; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #5371b2; border-radius: 50%; background: var(--blue-dark); color: white; box-shadow: 0 4px 16px #102b5b45; }
  body.has-cart .catalog-back-to-cart { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 72px); }
  .cart-floating { right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 28px); }
  .cart-toast { top: 70px; }
  .detail-purchase { align-items: stretch; }
  .detail-purchase label { flex: 0 0 84px; }
  .detail-add { flex: 1; align-self: end; padding-inline: 10px; }
  .detail-purchase :is(.detail-remove, .detail-view-cart) { flex: 1 1 40%; padding-inline: 8px; }
  #cart-dialog { border-radius: 0; border: 0; }
  #cart-dialog .dialog-head { padding: 12px 15px; }
  .cart-scroll { padding-inline: 15px; }
  .cart-item { grid-template-columns: 80px minmax(0,1fr); gap: 11px; padding-block: 16px; }
  .cart-item > img { height: 75px; }
  .cart-item-controls { gap: 8px; }
  #cart-checkout { padding: 8px 15px; }
  .cart-total strong { font-size: 1.4rem; }
  .cart-continue { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
.cart-inline-status { flex-shrink: 0; margin: 0; padding: 12px 20px; color: #812d13; background: #fff1dc; font-size: .875rem; border-bottom: 1px solid #edcea1; }
.cart-stock{font-size:.875rem;line-height:1.5;color:#526074;margin:6px 0 10px}.cart-stock-error{color:#a33124;font-weight:650}.stock-alert-dialog{width:min(440px,calc(100vw - 28px));height:auto;max-height:calc(100dvh - 40px);padding:24px;border:1px solid #d4deee;border-radius:16px;background:#fff;color:#152033;overflow:auto}.stock-alert-dialog h2{font-size:1.25rem;line-height:1.4;margin:0 0 12px}.stock-alert-dialog p{font-size:1rem;line-height:1.65;margin:0 0 20px;overflow-wrap:anywhere}.stock-alert-dialog button{min-height:44px;padding:10px 20px;border:0;border-radius:9px;background:#1e43ad;color:white;font:inherit;font-weight:700;cursor:pointer}.stock-alert-dialog::backdrop{background:#10182780}
.cart-whatsapp[inert] { opacity: .5; }

/* Order sharing keeps photos and purchase details together. */
.cart-photo-actions { margin-top: 12px; }
#cart-share-photos { background: #08793c; border-color: #08793c; min-height: 36px; font-size: .875rem; }
.cart-preview-order { display: inline-block; margin: 0 0 12px; padding-block: 5px; color: var(--blue-dark); font-size: .875rem; font-weight: 700; text-underline-offset: 4px; }
.order-catalog-link { font-size: .875rem; font-weight: 650; text-underline-offset: 4px; white-space: nowrap; }
.order-page { max-width: 1000px; padding-block: 40px 60px; }
.order-eyebrow { margin: 0 0 8px; color: var(--blue-dark); font-size: .875rem; font-weight: 750; letter-spacing: .06em; }
.order-page h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.045em; line-height: 1.1; }
.order-intro, .order-note { color: var(--muted); line-height: 1.5; }
.order-intro { margin-bottom: 26px; }
.order-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px; border: 1px solid #cbd7ee; border-radius: 15px; background: #eaf0fc; }
.order-summary p { font-weight: 700; margin: 0; }
.order-summary > div { text-align: right; }
.order-summary span { display: block; font-size: .875rem; color: var(--muted); }
.order-summary strong { display: block; margin-top: 4px; font-size: 1.8rem; color: var(--blue-dark); letter-spacing: -.03em; }
.order-items { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 18px; }
.order-item { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.order-item > img { display: block; width: 100%; height: 340px; object-fit: contain; background: #e9eef6; }
.order-item-body { min-width: 0; padding: 25px; align-self: center; }
.order-item h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.03em; margin: 0; }
.order-item-specs { color: var(--muted); font-size: .875rem; line-height: 1.5; margin: 10px 0 20px; }
.order-item-details { margin: 0; display: grid; gap: 12px; }
.order-item-details > div { display: flex; justify-content: space-between; gap: 14px; }
.order-item-details dt { color: var(--muted); font-size: .875rem; }
.order-item-details dd { margin: 0; font-weight: 750; }
.order-item-details > div:last-child { border-top: 1px solid var(--line); padding-top: 12px; color: var(--blue-dark); }
.order-note { font-size: .875rem; }
.order-contact { max-width: 540px; padding-top: 15px; }
.order-contact h2 { font-size: 1.15rem; }
.order-error { color: #812d13; padding: 20px; background: #fff1dc; border-radius: 12px; line-height: 1.5; }
@media (max-width: 700px) {
  .order-page { padding-top: 25px; }
  .order-summary { padding: 16px; }
  .order-summary strong { font-size: 1.5rem; }
  .order-item { grid-template-columns: minmax(0,1fr); }
  .order-item > img { height: auto; max-height: 430px; }
  .order-item-body { padding: 20px; }
}

/* Scale submenu for the Autos a escala category. */
.scale-menu { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 9px 12px; border: 1px solid #cfdaf0; border-radius: 12px; background: #eaf0fb; }
.scale-menu-label { flex: none; color: var(--blue-dark); font-size: .875rem; font-weight: 750; }
.scale-options { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.scale-options button { flex: none; min-height: 36px; padding: 7px 13px; border: 1px solid #c3d0e7; border-radius: 8px; background: white; color: #34415a; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.scale-options button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.scale-options button:hover:not([aria-pressed="true"]) { border-color: var(--blue); color: var(--blue); }
#scale-menu:not([hidden]) + .catalog-layout { margin-top: 18px; }
@media (max-width: 700px) {
  .scale-menu { gap: 9px; margin-top: 10px; padding: 8px; overflow-x: auto; scrollbar-width: thin; }
  .scale-options { flex-wrap: nowrap; gap: 6px; }
  .scale-options button { min-height: 40px; padding-inline: 10px; }
  .whatsapp-order, #cart-share-photos { min-height: 40px; }
}

/* Verified promotions */
.promotions { scroll-margin-top: 90px; margin-top: 28px; padding: 23px 22px 14px; border: 1px solid #d9e1ef; border-radius: 20px; background: #edf2fa; }
.promotions-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.promotions-eyebrow { display: inline-block; padding: 5px 9px; margin: 0 0 9px; border-radius: 6px; color: #8a251e; background: #ffe1d9; font-size: .875rem; font-weight: 750; }
.promotions-heading h2 { margin: 0; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.04em; }
#promotions-summary { margin: 7px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.show-promotions { flex: none; padding: 10px 14px; min-height: 40px; border: 1px solid #b2c3e5; border-radius: 9px; background: white; color: var(--blue-dark); font-size: .875rem; font-weight: 750; }
.promo-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 4); align-items: stretch; gap: 12px; overflow-x: auto; padding: 3px 3px 12px; scroll-snap-type: x mandatory; scroll-padding-inline: 3px; scrollbar-width: thin; scrollbar-color: #9eb2d8 transparent; }
.promo-track:focus-visible { outline-offset: 3px; }
.promo-card { scroll-snap-align: start; }
.promo-card .product-series, .promo-card .card-specs { display: none; }
.promo-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.5em; }
.promo-card .product-brand { font-size: .75rem; }
.promo-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.promo-position { margin: 0; color: var(--muted); font-size: .875rem; }
.promo-filter { border-color: #efb7ab; color: #8a251e; background: #fff1ed; }
.promo-filter[aria-pressed="true"] { border-color: #a32b22; background: #a32b22; }
.product-price-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.previous-price { color: var(--muted); font-size: .8rem; font-weight: 550; text-decoration-thickness: 1px; }
.promotion-savings { color: #9c3026; font-size: .875rem; line-height: 1.3; font-weight: 700; }
.product-media { position: relative; }
.kart-media { isolation: isolate; }
.kart-media::before { content: ''; position: absolute; inset: 0; background: url('img/rc-kart-track-v39.webp') center / cover; z-index: -1; }
.kart-media > img { width: 70%; padding: 6px; mix-blend-mode: multiply; }
.brand-logo-badge { position: absolute; top: 8px; left: 8px; z-index: 1; display: grid; place-items: center; width: 72px; max-width: 34%; height: 34px; padding: 4px 6px; border: 1px solid #e0e5ef; border-radius: 7px; background: white; box-shadow: 0 2px 8px #142a5914; pointer-events: none; }
.product-media .brand-logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.promotion-badge { position: absolute; z-index: 1; top: 9px; right: 9px; padding: 5px 8px; border-radius: 6px; background: #a32b22; color: white; font-size: .875rem; line-height: 1; font-weight: 800; box-shadow: 0 2px 7px #601d1620; pointer-events: none; }
.detail-body .detail-promotion { display: inline-block; margin-top: 13px; padding: 10px 13px; border-radius: 9px; background: #fff0e9; color: #8a251e; font-weight: 720; }
@media (max-width: 850px) {
  .promo-track { grid-auto-columns: calc((100% - 8px) / 2); gap: 8px; }
}
@media (max-width: 700px) {
  .product-media { height: 146px; padding-top: 28px; }
  .kart-media::before { top: 28px; }
  .brand-logo-badge { top: 4px; left: 5px; width: 54px; max-width: 34%; height: 24px; padding: 2px 3px; border-radius: 4px; box-shadow: none; }
  .promotions { margin-top: 19px; padding: 17px 13px 12px; border-radius: 15px; }
  .promotions-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 13px; }
  .promotions-eyebrow { font-size: .875rem; }
  .promo-navigation { flex-wrap: wrap; }
  .promotion-badge { top: 3px; right: 5px; font-size: .75rem; }
}
.promo-card .arrow { padding-inline: 7px; }

/* Actual controller photos have a separate space in every RC cover. */
.product-media.rc-media { height: 219px; padding-bottom: 54px; }
.promo-card .product-media.rc-media { height: 194px; }
.rc-controller-preview { position: absolute; inset: auto 0 0; height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px; border-top: 1px solid #e7ebf2; background: #fff; }
.rc-controller-preview > span { color: var(--blue-dark); font-size: .875rem; font-weight: 720; }
.rc-controller-preview > svg { display: block; width: 76px; height: 44px; flex: none; overflow: hidden; border-radius: 5px; }
.advisor-banner { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 22px; margin-top:22px; border:1px solid #c8d7fa; border-radius:16px; background:#fff; }
.advisor-banner span { display:block; color:var(--muted); font-size:.875rem; }
.advisor-banner strong { display:block; color:var(--blue-dark); font-size:1.125rem; margin-top:4px; }
.advisor-banner p { margin:5px 0 0; font-size:.875rem; }
.advisor-banner a { font-weight:700; color:var(--blue-dark); }
.advisor-unavailable { border-color:#e6b2a9; }
.cart-advisor { font-size:.875rem; color:var(--blue-dark); padding:10px 0; }
.checkout-error { color:#a32b21; font-size:.875rem; }
@media(max-width:700px){.advisor-banner { margin-top:14px; padding:14px; flex-direction:column; align-items:flex-start; }}
.kart-media.rc-media::before { bottom: 54px; }
@media (max-width: 700px) {
  .product-media.rc-media { height: 194px; padding-bottom: 48px; }
  .promo-card .product-media.rc-media { height: 216px; }
  .rc-controller-preview { height: 48px; padding: 4px 7px; gap: 4px; }
  .rc-controller-preview > span { font-size: .8125rem; }
  .rc-controller-preview > svg { width: 50px; height: 38px; }
  .kart-media.rc-media::before { bottom: 48px; }
}

/* Customer and fulfillment details travel with each order. */
.customer-form{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin:14px 0 18px}
.customer-form h3{font-size:1.0625rem;margin:0 0 6px;color:var(--ink)}
.customer-form-intro,.customer-form-note{font-size:.875rem;line-height:1.5;color:var(--muted);margin:6px 0 12px}
.customer-form label{display:grid;gap:7px;font-size:.875rem;font-weight:700;color:var(--ink)}
.customer-form input:not([type=radio]){width:100%;border:1px solid #bbc9e1;border-radius:8px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit;font-size:1rem;min-height:44px}
.customer-form input:focus-visible{outline:3px solid #a7beff;outline-offset:2px}
.customer-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
.customer-form>label{margin:12px 0}
.customer-delivery{border:0;padding:0;margin:18px 0 12px;min-width:0}
.customer-delivery legend{font-size:.875rem;font-weight:750;margin-bottom:10px}
.customer-delivery-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.customer-delivery-options label{display:flex;align-items:center;gap:8px;min-height:46px;border:1px solid #c5d1e7;border-radius:8px;padding:10px;cursor:pointer;font-size:.875rem;font-weight:650}
.customer-delivery-options label:has(input:checked){background:#eaf0ff;border-color:var(--blue);color:var(--blue-dark)}
.customer-delivery-options input{width:17px;height:17px;margin:0;flex:none;accent-color:var(--blue)}
.customer-form-error{font-size:.875rem;line-height:1.5;color:#a32b21;margin:10px 0 0}
.customer-form-error[hidden]{display:none}
.customer-order-details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin:14px 0 20px;display:grid;gap:10px}
.customer-order-details div{display:grid;grid-template-columns:90px 1fr;gap:10px;font-size:.9375rem;line-height:1.5;overflow-wrap:anywhere}
.customer-order-details dt{color:var(--muted)}
.customer-order-details dd{margin:0;font-weight:650;color:var(--ink)}
.team-order .customer-order-details{background:#f6f8fc;padding:12px;margin:12px 0}
@media(max-width:480px){.customer-form{padding:13px}.customer-name-fields{grid-template-columns:1fr;gap:12px}.customer-delivery-options{gap:7px}.customer-delivery-options label{padding:9px 7px;font-size:.875rem}.customer-order-details div{grid-template-columns:70px 1fr}}

.catalog-load-error{padding:16px;border:1px solid #dca69c;background:#fff1ed;color:#842c24;border-radius:10px}.catalog-load-error button{margin-left:8px;padding:8px 12px;border:1px solid currentColor;background:white;border-radius:6px}

.catalog-card-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.catalog-card-actions .card-add { padding-inline:4px; line-height:1.15; }
.catalog-remove:disabled, .detail-remove:disabled { opacity:.5; cursor:not-allowed; }
.detail-remove { min-height:46px; padding:10px 14px; border:1px solid #bdcdec; border-radius:9px; background:#edf3ff; color:var(--blue-dark); font-weight:750; }

:is(#results, #promo-track) .card h3 { overflow-wrap: anywhere; }
@media (min-width: 851px) {
  #results { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
  :is(#results, #promo-track) .product-media { height: 132px; }
  :is(#results, #promo-track) .product-media.rc-media { height: 186px; }
  :is(#results, #promo-track) .card-body { padding: 10px; }
  :is(#results, #promo-track) .card h3 { font-size: .95rem; }
}
@media (max-width: 700px) {
  #results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  :is(#results, #promo-track) .product-media { height: 106px; padding-top: 24px; }
  :is(#results, #promo-track) .kart-media::before { top: 24px; }
  :is(#results, #promo-track) .product-media.rc-media { height: 154px; }
  :is(#results, #promo-track) .card-body { padding: 7px; }
  :is(#results, #promo-track) .card h3 { font-size: .875rem; }
  :is(#results, #promo-track) .card-footer { flex-wrap: wrap; padding-top: 5px; }
  :is(#results, #promo-track) .card-add { margin-top: 5px; font-size: .75rem; }
  #promo-track { align-items: start; }
  #promo-track .product-media { height: 96px; }
  #promo-track .product-media.rc-media { height: 144px; }
  #promo-track .card h3 { min-height: 0; margin-top: 3px; }
  #promo-track .product-price-wrap { gap: 0; }
  #promo-track .promotion-savings { display: none; }
}

#cart-delivery-dialog { width:min(500px,calc(100% - 24px)); max-height:calc(100dvh - 24px); }
#cart-delivery-dialog[open] { display:flex; flex-direction:column; }
#cart-delivery-dialog .dialog-head { flex:none; }
#cart-delivery-title { margin:0; font-size:1.125rem; }
#cart-delivery-dialog .dialog-head p { font-size:.8rem; color:#c6d2e5; }
.cart-checkout-fields { overflow-y:auto; min-height:0; padding:12px 16px; overscroll-behavior:contain; }
.cart-confirm { width:100%; min-height:44px; padding:7px 12px; margin-top:6px; border:0; border-radius:8px; background:var(--blue); color:#fff; font:inherit; font-weight:750; }
.cart-checkout-fields .cart-advisor { margin:.25rem 0; padding:0; }
#cart-customer-mount .customer-form { margin:6px 0 8px; padding:8px; }
#cart-customer-mount h3 { margin:0 0 4px; font-size:.95rem; }
#cart-customer-mount .customer-form-intro { display:none; }
#cart-customer-mount .customer-form-note { margin:4px 0 0; font-size:.78rem; line-height:1.3; }
#cart-customer-mount .customer-name-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:5px 0; }
#cart-customer-mount .customer-form > label { margin:6px 0; }
#cart-customer-mount label { gap:4px; }
#cart-customer-mount input:not([type=radio]) { min-width:0; min-height:38px; padding:5px 7px; }
#cart-customer-mount .customer-delivery { margin:8px 0 5px; }
#cart-customer-mount .customer-delivery legend { margin-bottom:4px; }
#cart-customer-mount .customer-delivery-options { gap:5px; }
#cart-customer-mount .customer-delivery-options label { min-height:40px; padding:4px 6px; line-height:1.2; }

.category-share { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.category-share:has(button[hidden]) { display:none; }
.category-share button { min-height:40px; padding:6px 9px; }
#category-share-status { font-size:.8rem; color:var(--blue-dark); }
#category-share-status:empty { display:none; }
#catalogo { scroll-margin-top:76px; }
