:root {
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
}
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.page-shell { width: min(1380px, 100%); margin: 0 auto; padding: 0 28px 124px; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 102px; border-bottom: 1px solid var(--header-border);
}
.brand-lockup { display: inline-flex; align-items: center; min-width: 0; }
.brand-mark { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.brand-divider { height: 54px; width: 1px; background: var(--header-border); margin: 0 22px; }
.brand-copy { min-width: 0; margin: 0; font-family: var(--font-heading); font-size: clamp(24px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; }
.eyebrow { font-size: 10px; letter-spacing: .2em; font-weight: 700; color: var(--accent); }
.whatsapp-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s; }
.whatsapp-button:hover { transform: translateY(-1px); }
.whatsapp-button--header { color: #fff; background: var(--accent); padding: 13px 19px; box-shadow: var(--action-shadow); }
.whatsapp-symbol { flex: 0 0 18px; width: 18px; height: 18px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: 24px; }
.header-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 19px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform .2s, background .2s; }
.header-action:hover { transform: translateY(-1px); background: var(--accent-soft); }
.header-action--share { gap: 7px; border-color: var(--line); background: var(--card); }
.header-actions > :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.header-actions > :disabled, .header-actions > [aria-disabled="true"] { opacity: .66; cursor: default; transform: none; }
.preview-notice { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.hero-carousel { padding: 16px 0 18px; }
.hero-viewport { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card); touch-action: pan-y pinch-zoom; cursor: grab; }
.hero-viewport:active { cursor: grabbing; }
.hero-viewport:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.hero-track { display: flex; transition: transform .42s ease; }
.hero-slide { flex: 0 0 100%; min-width: 0; }
.hero-slide img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.hero-controls { position: absolute; z-index: 2; inset: auto 0 9px; display: flex; align-items: center; justify-content: flex-end; padding-inline: 10px; pointer-events: none; }
.hero-controls > * { display: grid; min-width: 32px; height: 32px; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--card); font-size: 12px; }
.hero-controls button { cursor: pointer; font-weight: 700; pointer-events: auto; }
#heroCounter { position: absolute; inset-inline-start: 50%; translate: -50% 0; }
.hero-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: var(--card); font-size: 24px; line-height: 1; cursor: pointer; }
.hero-arrow--previous { inset-inline-start: 8px; }
.hero-arrow--next { inset-inline-end: 8px; }
.hero-arrow:focus-visible, #heroPlayback:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .hero-track, #heroPlayback { transition: none; }
  #heroPlayback:hover { transform: none; }
}
.hero-lightbox[hidden] { display: none; }
.hero-lightbox { position: fixed; z-index: 50; inset: 0; display: flex; flex-direction: column; background: var(--lightbox-background); color: #fff; }
.hero-lightbox-top { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: max(12px, env(safe-area-inset-top)) 18px 8px; font-size: 13px; font-weight: 700; }
.hero-lightbox-close, .hero-zoom-toolbar button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 25px; cursor: pointer; }
.hero-zoom-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; overflow: hidden; touch-action: none; }
.hero-zoom-stage img { display: block; width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transform-origin: center center; will-change: transform; }
.hero-zoom-toolbar { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 76px; padding: 8px 12px max(12px, env(safe-area-inset-bottom)); }
.hero-zoom-toolbar span { font-size: 11px; color: rgba(255,255,255,.8); text-align: center; }
.hero-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dot, .featured-mini-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); }

.catalog-controls { display: grid; grid-template-columns: minmax(0, 178px) minmax(0, 210px) 1fr; gap: 10px; }
.search-field, .category-filter { grid-column: 1 / -1; }
.category-filter { display: flex; gap: 8px; overflow-x: auto; padding: 3px; margin: -3px; scrollbar-width: thin; }
.category-filter:empty { display: none; }
.category-filter button { flex: 1 0 auto; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; font-size: 13px; }
.category-filter button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.category-filter button:focus-visible, .product-image-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-field, .select-field { position: relative; display: flex; align-items: center; min-width: 0; }
.search-field input, .select-field select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); outline: 0; transition: border-color .2s, box-shadow .2s; }
.search-field input { padding: 0 16px 0 42px; }
.search-field input::placeholder { color: var(--placeholder-color); }
.search-icon { position: absolute; left: 16px; z-index: 1; color: var(--muted); font-size: 26px; line-height: 1; transform: translateY(-2px); }
.select-field select { appearance: none; padding: 0 32px 0 12px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.search-field input:focus, .select-field select:focus { border-color: var(--accent); box-shadow: var(--input-focus-shadow); }
.catalog-meta { display: flex; align-items: center; gap: 16px; padding: 24px 2px 15px; color: var(--muted); font-size: 12px; }
.catalog-meta p { margin: 0; }
.catalog-meta strong { color: var(--ink); }
.meta-rule { width: 1px; height: 13px; background: var(--line); }
.featured-mini-dot { width: 6px; height: 6px; margin-right: 5px; vertical-align: 1px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* Reserve one real card row while the first batch is being constructed. The
   loading status is replaced, not hidden, and does not change loaded layouts. */
.catalog-loading { grid-column: 1 / -1; min-block-size: calc(180px + (min(100vw, 1380px) - 88px) / 3); padding-block: 12px; color: var(--muted); font-size: 12px; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px; border: var(--card-border); border-radius: var(--radius); background: var(--card); box-shadow: var(--card-shadow); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; font-family: var(--font-product); }
.product-card:hover { transform: translateY(-3px); border-color: var(--card-hover-border); box-shadow: var(--shadow); }
.product-card.is-featured { border-color: var(--featured-border); }
.product-image-wrap { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); width: 100%; padding: 0; place-items: center; aspect-ratio: var(--product-image-ratio); overflow: hidden; border: 0; border-radius: 9px; background: var(--product-image-background); cursor: zoom-in; }
.product-image-wrap picture { display: block; width: 100%; height: 100%; min-height: 0; }
.product-image { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: var(--product-image-fit); padding: var(--product-image-padding); transition: transform .3s; }
.product-card:hover .product-image { transform: scale(1.04); }
.image-zoom-hint { position: absolute; z-index: 3; right: 9px; bottom: 9px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--accent); background: var(--image-hint-background); box-shadow: 0 4px 12px rgba(32,48,43,.1); font-size: 16px; opacity: 0; transform: translateY(3px); transition: opacity .2s, transform .2s; }
.product-image-wrap:hover .image-zoom-hint, .product-image-wrap:focus-visible .image-zoom-hint { opacity: 1; transform: translateY(0); }
.featured-badge { position: absolute; z-index: 2; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: var(--accent-dark); background: var(--featured-background); font-size: 9px; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; box-shadow: 0 4px 10px rgba(32,48,43,.08); }
.featured-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--highlight); }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 8px 2px 2px; }
.product-sku { margin: 0; padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--accent-dark); font-size: 9.5px; letter-spacing: .05em; font-weight: 400; }
.product-brand { margin: 0; padding: 3px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 11.5px; font-weight: 400; text-transform: uppercase; }
.product-name { margin: 0; padding: 4px 0 6px; color: var(--ink); font-family: var(--font-product); font-size: 17px; line-height: 1.18; font-weight: 400; overflow-wrap: break-word; }
.product-name--compact { font-size: 15px; line-height: 1.16; }
.product-name--extra-compact { font-size: 13px; line-height: 1.14; }
.product-offer { display: flex; flex: 1; flex-direction: column; }
.product-size, .product-sizes { margin: 0; padding: 4px 0; border: 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 11px; }
.product-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-inline-size: 0; }
.product-sizes button { min-width: 28px; min-height: 28px; padding: 0 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--muted); cursor: pointer; font: 11px var(--font-product); }
.product-sizes button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 7px; border-top: 1px solid var(--line); }
.product-price { flex: 0 0 auto; margin: 0; color: var(--ink); font-size: 19px; line-height: 1; font-weight: 500; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.button:hover { transform: translateY(-1px); }
.button--add { width: min(148px, 62%); min-width: 0; min-height: 39px; color: #fff; background: var(--accent); text-align: center; font-size: 11px; padding: 4px 8px; }
.button--add:hover, .button--primary:hover { background: var(--accent-dark); }
.button--add.is-added { color: var(--accent); background: var(--accent-soft); }
.button--light { color: var(--accent-dark); background: var(--card); }
.button--outline { color: var(--accent); border-color: var(--line); background: transparent; }
.button--outline:hover { border-color: var(--accent); background: var(--accent-soft); }
.button--danger { color: var(--danger-color); }
.button--danger:hover { border-color: var(--danger-border); background: var(--danger-background); }
.button--primary { color: #fff; background: var(--accent); }
.button:disabled, .button[aria-disabled="true"] { opacity: .62; cursor: default; transform: none; }
.site-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 32px; padding: 16px 0; border-top: 1px solid var(--header-border); color: var(--muted); font-size: 12px; }
.site-footer strong { color: var(--ink); font-family: var(--font-heading); font-size: 18px; }

.empty-state { grid-column: 1 / -1; padding: 80px 20px; text-align: center; border: 1px dashed var(--empty-border); border-radius: var(--radius); color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-family: var(--font-heading); font-size: 24px; font-weight: 500; }

.inquiry-dock { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 12px max(28px, calc((100vw - 1324px) / 2)) max(12px, env(safe-area-inset-bottom)); color: #fff; background: var(--accent-dark); box-shadow: var(--dock-shadow); }
.dock-summary { display: flex; align-items: center; gap: 19px; font-size: 13px; }
.dock-count { font-weight: 700; }
.dock-subtotal { color: rgba(255,255,255,.72); }
.dock-subtotal strong { margin-left: 5px; color: #fff; font-size: 17px; }
.dock-divider { width: 1px; height: 21px; background: rgba(255,255,255,.26); }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: flex; justify-content: flex-end; overflow: clip; }
.modal-backdrop[hidden] { display: none; }
.modal-backdrop::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--inquiry-backdrop); backdrop-filter: blur(4px); }
.contact-backdrop { position: fixed; z-index: 24; inset: 0; display: grid; place-items: center; padding: 18px; background: var(--share-backdrop); backdrop-filter: blur(5px); }
.contact-backdrop[hidden] { display: none; }
.contact-panel { position: relative; width: min(430px, 100%); max-height: min(92vh, 760px); overflow-y: auto; padding: 32px; border-radius: 20px; background: var(--card); box-shadow: 0 22px 70px rgba(10, 25, 20, .24); text-align: center; }
.contact-panel h2 { margin: 5px 0 13px; font-family: var(--font-heading); font-size: 34px; font-weight: 500; }
.contact-close { position: absolute; top: 16px; right: 16px; }
.contact-description { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.contact-help { margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.site-qr-image { display: block; width: min(240px, 100%); height: auto; margin: 5px auto 0; border: 10px solid #fff; border-radius: 13px; box-shadow: 0 5px 20px rgba(32, 48, 43, .09); image-rendering: pixelated; }
.site-url { margin: 8px 0 18px; color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.site-qr-image[hidden] { display: none; }
.site-url a, #mainWebsiteLink { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.share-actions .button:nth-child(-n+2) { grid-column: 1 / -1; }
.share-actions .button { min-height: 43px; padding: 0 10px; }
.contact-panel--product-share { width: min(490px, 100%); max-height: min(calc(100dvh - 36px), 820px); padding: 0; container-type: inline-size; border: 1px solid var(--product-share-border); border-radius: 24px; background: var(--paper); color: var(--ink); overscroll-behavior: contain; }
.contact-panel--product-share .contact-close { top: 2.7cqw; right: 2.7cqw; width: 6.8cqw; height: 6.8cqw; background: var(--product-share-close); color: var(--accent-dark); }
.contact-panel--product-share h2 { margin: 3.8cqw 7cqw 0; font: 700 5.12cqw/1.18 Georgia, serif; }
.product-poster { position: relative; display: grid; place-items: center; width: 63%; aspect-ratio: 330 / 403; margin: auto; overflow: hidden; border-radius: 6px; background: var(--product-share-frame); box-shadow: inset 0 0 0 1px var(--line); }
.product-poster[hidden] { display: none; }
.product-poster::after { position: absolute; inset: 1.65cqw; border: 1px solid var(--product-share-border); pointer-events: none; content: ''; }
.product-poster img { display: block; width: auto; height: 73.6cqw; max-width: 94%; object-fit: contain; }
.product-share-actions { display: grid; gap: 1.8cqw; margin: 4.15cqw 6.12cqw 4.65cqw; }
.product-share-actions .button { width: 100%; min-height: 9cqw; padding: 0 1.5cqw; border-radius: 2cqw; font: 700 2.6cqw/1.1 Arial, sans-serif; }
.product-share-actions .button--outline { border-color: var(--product-share-control-border); background: var(--card); color: var(--accent-dark); }
.product-share-actions .product-share-poster-button { border-color: var(--accent); background: transparent; color: var(--accent); }
.product-share-actions .button:disabled { opacity: .55; cursor: default; }
.product-share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8cqw; }
.product-share-note { margin: 0; color: var(--product-share-muted); font-size: 2.08cqw; line-height: 1.6; }
.contact-panel--brand-preview {
  --share-orange: #ffa66b;
  --share-white: #eef2f5;
  --share-gray: #aeb9c4;
  width: min(490px, calc(100% + 22px));
  max-height: calc(100dvh - 14px);
  margin-inline: -11px;
  padding: 0;
  container-type: inline-size;
  border: 1px solid #34414b;
  border-radius: 24px;
  background: #12171c;
  color: var(--share-white);
  font-family: system-ui, sans-serif;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #485661 #12171c;
}
.contact-panel--brand-preview .contact-close {
  top: 2.65cqw; right: 2.65cqw; z-index: 1;
  width: max(30px, 6.75cqw); height: max(30px, 6.75cqw);
  background: #25323d; border-color: #414d56; color: var(--share-orange);
  font: 500 21px/1 system-ui, sans-serif;
}
.brand-share-eyebrow {
  margin: 6.9cqw 12cqw 0;
  color: var(--share-orange);
  font-size: max(9px, 2cqw);
  font-weight: 750;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.contact-panel--brand-preview h2 {
  margin: 3.85cqw 10cqw 0;
  font: 800 max(20px, 5.1cqw)/1.18 system-ui, sans-serif;
}
.brand-share-intro { margin: 2.65cqw 6.1cqw 3.15cqw; color: var(--share-gray); font-size: max(11px, 2.55cqw); }
.brand-share-poster {
  position: relative;
  width: 67.35%; aspect-ratio: 330 / 403;
  margin: 0 auto;
  border-radius: 6px;
  background: #20252a;
  color: #f4f4f4;
  text-align: left;
}
.brand-share-poster::before { position: absolute; inset: 1.65cqw; border: 1px solid #5c4636; content: ''; pointer-events: none; }
.brand-share-poster-header {
  position: absolute; top: 3.85cqw; left: 4.55cqw;
  display: flex; align-items: center; gap: 1.5cqw;
}
.brand-share-poster-header img { width: 5.55cqw; height: 5.55cqw; object-fit: contain; border-radius: 50%; }
.brand-share-poster-header strong, .brand-share-poster-header span, .brand-share-caption span, .brand-share-caption strong { display: block; }
.brand-share-poster-header strong { font-size: 2.3cqw; line-height: 1.12; }
.brand-share-poster-header span { margin-top: .35cqw; font-size: 1.45cqw; }
.brand-share-poster-title { position: absolute; top: 11.8cqw; inset-inline: 3cqw; margin: 0; font-size: 3.55cqw; font-weight: 500; text-align: center; }
.brand-share-product { position: absolute; top: 19cqw; left: 50%; transform: translateX(-50%); width: 42.65cqw; height: 42.65cqw; object-fit: contain; }
.brand-share-caption { position: absolute; top: 64.2cqw; left: 4.55cqw; max-width: 38cqw; font-size: 1.65cqw; line-height: 1.4; }
.brand-share-caption strong { margin-bottom: 1cqw; font-size: 1.98cqw; }
.brand-share-caption .brand-share-poster-tag { margin-top: 1.4cqw; color: var(--share-orange); font-size: 1.42cqw; text-transform: uppercase; }
.brand-share-qr-placeholder {
  position: absolute; right: 3.45cqw; bottom: 1.8cqw;
  display: grid; place-content: center; gap: .5cqw;
  width: 17.95cqw; aspect-ratio: 1;
  background: #fff; border: 1px solid #b9b4af; color: #242a30;
  font-size: 1.62cqw; text-align: center;
}
.brand-share-actions { display: grid; gap: 1.8cqw; margin: 3.45cqw 6.1cqw 3.75cqw; }
.brand-share-actions button, .brand-share-actions input {
  width: 100%; min-width: 0;
  border: 1px solid #35404a; border-radius: 9px;
  background: transparent; color: var(--share-white);
}
.brand-share-actions button { min-height: max(36px, 9cqw); padding: 4px; font-size: max(11px, 2.6cqw); font-weight: 750; cursor: pointer; }
.brand-share-actions .brand-share-whatsapp { border-color: #167447; background: #167447; color: #fff; }
.brand-share-actions a.brand-share-whatsapp { display: flex; align-items: center; justify-content: center; min-height: max(36px, 9cqw); padding: 4px; border: 1px solid #167447; border-radius: 9px; font-size: max(11px, 2.6cqw); font-weight: 750; }
.brand-share-qr-placeholder.has-live-qr > :not(img) { display: none; }
.brand-share-qr-placeholder .site-qr-image { width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.brand-share-qr-placeholder.has-live-qr { padding: 0; display: block; cursor: pointer; }
.brand-share-actions .brand-share-send { border-color: #f69555; color: var(--share-orange); }
.brand-share-actions button:disabled, .brand-share-actions button[aria-disabled="true"] { cursor: default; }
.brand-share-actions button:disabled { opacity: .65; }
.brand-share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8cqw; }
.brand-share-actions input { height: max(27px, 6.1cqw); padding: 0 2cqw; border-color: #4b5b68; color: var(--share-gray); font-size: max(10px, 2.05cqw); }
.brand-share-help { margin: 0; color: var(--share-gray); font-size: max(10px, 2.08cqw); line-height: 1.6; }
.contact-panel--brand-preview :focus-visible { outline: 2px solid var(--share-orange); outline-offset: 2px; }
@media (min-width: 761px) and (max-height: 800px) {
  .contact-panel--brand-preview { width: min(490px, calc((100dvh - 14px) * .595)); }
}
.image-backdrop { position: fixed; z-index: 25; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--image-backdrop); backdrop-filter: blur(7px); }
.image-backdrop[hidden] { display: none; }
.image-viewer { position: relative; display: grid; place-items: center; width: min(720px, 94vw); max-height: 90vh; padding: 24px 24px 17px; border-radius: 18px; background: var(--card); box-shadow: 0 22px 70px rgba(10,25,20,.34); }
.image-viewer img { display: block; width: 100%; height: min(68vh, 650px); object-fit: contain; }
.image-viewer p { margin: 12px 42px 0; color: var(--muted); text-align: center; font-size: 12px; }
.image-viewer-close { position: absolute; z-index: 2; top: 14px; right: 14px; background: var(--image-hint-background); }
.inquiry-panel { display: flex; flex-direction: column; width: min(510px, 100%); height: 100%; background: var(--paper); box-shadow: -15px 0 45px rgba(18,36,30,.18); transform: translateX(0); transition: transform .28s ease-out; will-change: transform; }
.modal-backdrop.is-closing .inquiry-panel { transform: translateX(100%); }
@starting-style {
  .inquiry-panel { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .inquiry-panel { transition: none; will-change: auto; }
}
.panel-header { display: flex; align-items: start; justify-content: space-between; padding: 35px 32px 25px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 4px 0 0; font-family: var(--font-heading); font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.icon-button { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: transparent; cursor: pointer; font-size: 24px; line-height: 1; }
.panel-body { flex: 1; overflow: auto; padding: 10px 32px; }
.inquiry-empty { display: grid; place-items: center; height: 100%; min-height: 250px; text-align: center; color: var(--muted); }
.inquiry-empty strong { display: block; margin-bottom: 5px; color: var(--ink); font-family: var(--font-heading); font-size: 23px; font-weight: 500; }
.inquiry-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.inquiry-thumb { width: 70px; height: 70px; border-radius: 9px; background: var(--inquiry-thumbnail-background); object-fit: contain; }
.inquiry-row h3 { margin: 0 0 3px; font-family: var(--font-heading); font-size: 17px; line-height: 1.15; font-weight: 500; }
.inquiry-row p { margin: 0; color: var(--muted); font-size: 11px; }
.quantity-controls { display: inline-flex; align-items: center; margin-top: 9px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.quantity-controls button { width: 25px; height: 25px; border: 0; color: var(--accent); background: transparent; cursor: pointer; }
.quantity-controls span { min-width: 25px; text-align: center; font-size: 12px; font-weight: 700; }
.inquiry-price { text-align: right; }
.inquiry-price strong { display: block; font-size: 13px; }
.remove-item { margin-top: 7px; padding: 0; border: 0; color: var(--danger-color); background: transparent; cursor: pointer; font-size: 10px; }
.panel-footer { padding: 21px 32px 28px; border-top: 1px solid var(--line); background: var(--inquiry-footer-background); }
.panel-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.panel-total strong { color: var(--ink); font-size: 22px; }
.panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.panel-actions .button--primary { grid-column: 1 / -1; }
.panel-actions [aria-disabled="true"] { opacity: .5; pointer-events: none; }
.wa-fallback { margin-top: 13px; color: var(--muted); font-size: 12px; }
.wa-fallback-body { position: relative; padding-top: 32px; }
.wa-fallback-close { position: absolute; top: 4px; right: 0; width: 30px; height: 30px; background: var(--card); }
.wa-fallback summary { color: var(--accent); cursor: pointer; font-weight: 700; text-align: center; }
.wa-fallback p { margin: 11px 0; line-height: 1.5; }
.wa-fallback-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wa-fallback-actions .button { min-height: 37px; padding: 5px 8px; font-size: 11px; }
.wa-fallback-label { display: block; margin: 9px 0 4px; color: var(--accent-dark); font-weight: 700; }
.wa-fallback-text { display: block; width: 100%; min-height: 44px; padding: 8px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--card); font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.wa-fallback-number { margin-bottom: 0; }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 90px; padding: 10px 15px; border-radius: 999px; color: #fff; background: var(--accent-dark); box-shadow: 0 10px 24px rgba(21,63,52,.2); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 1051px) {
  :root { --desktop-catalog-width: min(90%, 1140px); }
  .page-shell, .inquiry-dock { width: var(--desktop-catalog-width); margin-inline: auto; }
  .page-shell { padding-inline: 0; }
  .site-header { min-height: 76px; }
  .brand-mark { width: 56px; height: 56px; }
  .brand-divider { height: 40px; margin-inline: 16px; }
  .brand-copy { font-size: clamp(28px, 2.7vw, 36px); }
  .whatsapp-button--header { padding-block: 10px; }
  .header-action { min-height: 39px; }
  .preview-notice { margin-top: 7px; }

  .hero-carousel { padding: 12px 0 8px; }
  .hero-viewport { background: var(--paper-deep); }
  .hero-slide img { height: min(30vw, clamp(220px, 44vh, 380px)); aspect-ratio: auto; }
  .hero-controls { position: relative; inset: auto; height: 28px; }
  .hero-controls > * { height: 24px; }
  .hero-arrow { top: calc((100% - 28px) / 2); }
  #heroPlayback:focus-visible { outline-offset: -2px; }

  .catalog-controls { grid-template-columns: minmax(0, 1fr) 196px 160px; align-items: center; gap: 8px 12px; }
  .category-filter { grid-column: 1; gap: 6px; }
  .category-filter button { min-height: 34px; padding-inline: 9px; font-size: 12px; }
  .search-field input, .select-field select { height: 38px; }
  .select-field select {
    padding: 0 26px 0 10px; font-size: 13px;
    background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px;
  }
  .catalog-meta { padding: 14px 0 12px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-loading { min-block-size: calc(180px + (min(90vw, 1140px) - 92px) / 4); }

  .inquiry-dock { bottom: 12px; padding: 8px 16px; border-radius: var(--radius); }
  .inquiry-dock .button { min-height: 38px; }
}
@media (max-width: 1050px) {
  .page-shell { padding-right: 30px; padding-left: 30px; }
  .inquiry-dock { padding-right: 30px; padding-left: 30px; }
}
@media (max-width: 760px) {
  .page-shell { padding: 0 16px 126px; }
  .site-header { min-height: 132px; flex-direction: column; align-items: stretch; justify-content: center; gap: 13px; padding: 16px 0; }
  .brand-mark { width: 56px; height: 56px; }
  .brand-divider { height: 40px; margin: 0 12px; }
  .brand-copy { font-size: 21px; }
  .header-actions { width: 100%; gap: 7px; margin-left: 0; }
  .header-actions > * { flex: 1; min-width: 0; min-height: 37px; }
  .whatsapp-button--header, .header-action { padding: 8px 7px; font-size: 11px; }
  .hero-carousel { padding: 18px 0 16px; }
  .hero-viewport { border-radius: 12px; cursor: zoom-in; overflow: visible; aspect-ratio: var(--hero-mobile-ratio, 3 / 1); margin-bottom: 42px; }
  .hero-viewport:active { cursor: zoom-in; }
  .hero-stage { position: absolute; inset: 0; overflow: hidden; border-radius: 12px; }
  .hero-track { height: 100%; }
  .hero-slide { height: 100%; }
  .hero-slide img { width: 100%; height: auto; aspect-ratio: auto; }
  .hero-arrow { width: 34px; height: 34px; font-size: 20px; top: calc(100% + 7px); transform: none; }
  .hero-controls { top: calc(100% + 7px); bottom: auto; padding-inline: 50px; }
  .hero-controls > * { min-width: 28px; height: 28px; font-size: 10px; }
  .catalog-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .search-field { grid-column: 1 / -1; }
  #sortFilter { grid-column: 2; grid-row: 2; }
  #brandFilter { grid-column: 1; grid-row: 2; }
  .category-filter { grid-row: 3; }
  .category-filter button { flex: 0 0 auto; }
  .catalog-meta { gap: 10px; padding: 19px 2px 13px; font-size: 11px; }
  .meta-rule { display: none; }
  .product-grid { display: block; }
  .catalog-loading { min-block-size: calc(160px + (100vw - 62px) / 2); }
  .product-batch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
  .product-virtual-spacer { height: 0; pointer-events: none; }
  .product-card { padding: 7px; border-radius: 12px; }
  .product-image-wrap { border-radius: 8px; }
  .product-info { padding: 6px 1px 1px; }
  .product-name { font-size: 14px; padding: 4px 0 5px; line-height: 1.2; }
  .product-name--compact { font-size: 12.5px; }
  .product-name--extra-compact { font-size: 11.5px; }
  .product-brand { font-size: 10px; padding: 3px 0; line-height: 1.25; }
  .product-price { font-size: 16px; }
  .product-bottom { gap: 4px; padding-top: 6px; }
  .button--add { flex: 1; min-width: 0; min-height: 40px; padding: 4px; font-size: 10px; line-height: 1.15; }
  .product-sizes { gap: 3px; }
  .product-sizes button { min-width: 25px; padding: 0 3px; font-size: 10px; min-height: 28px; }
  .inquiry-dock { padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
  .dock-summary { gap: 9px; font-size: 10px; }
  .dock-divider { height: 17px; }
  .dock-subtotal strong { font-size: 13px; }
  .inquiry-dock .button { min-height: 38px; padding: 0 11px; font-size: 10px; }
  .panel-header, .panel-body, .panel-footer { padding-right: 20px; padding-left: 20px; }
  .inquiry-panel { width: 100%; }
  .contact-panel { padding: 27px 18px 22px; }
  .contact-panel--product-share { padding: 0; }
  .contact-panel--brand-preview { padding: 0; }
  .image-backdrop { padding: 12px; }
  .image-viewer { width: 100%; padding: 18px 12px 13px; border-radius: 14px; }
  .image-viewer img { height: min(72vh, 600px); }
  .product-sku { font-size:9px;padding-bottom:3px }
  .product-size,.product-sizes { font-size:10px;padding:4px 0 }
}
@media (max-width: 390px) {
  .dock-summary { display: block; }
  .dock-divider { display: none; }
  .dock-subtotal { display: block; margin-top: 2px; }
}
