/* Eco to go — landing di emergenza, v2 tokens, polish catalogo */

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-normal);
  font-optical-sizing: auto;
  overflow-x: hidden;
}

body.sidebar-open,
body.list-open,
body.dialog-open,
body.notice-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--color-brand-hover); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tabular { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-2);
  z-index: 100;
  transform: translateY(-200%);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius-md);
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-medium);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  color: inherit;
  background: transparent;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.btn:hover { color: inherit; text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled { opacity: 0.55; cursor: default; }

.btn-primary {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}
.btn-primary:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  color: #fff;
}
.btn-primary:active {
  background: var(--color-brand-active);
  border-color: var(--color-brand-active);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-control);
}
.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text);
}

.btn-sm { height: 2rem; padding: 0 var(--space-3); font-size: var(--text-base-sm); }
.btn-md { height: 2.5rem; padding: 0 var(--space-4); font-size: var(--text-base-sm); }
.btn-icon { width: 2.5rem; height: 2.5rem; padding: 0; }

/* Notice */
.notice-strip {
  background: var(--color-warning-soft);
  border-bottom: 1px solid var(--color-warning-border);
}
.notice-strip-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-2);
}
.notice-dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-warning-dot);
  flex-shrink: 0;
}
.notice-strip p {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-snug);
  color: var(--color-warning-text);
}
.notice-strip a {
  color: var(--color-warning-text);
  font-weight: var(--font-weight-semibold);
  text-underline-offset: 0.15em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "logo contacts list"
    "search search search";
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding-block: var(--space-2);
}

.logo-link {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link img { height: 2rem; width: auto; }

.search-wrap { grid-area: search; position: relative; min-width: 0; }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-subtle);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 2.5rem;
  border: var(--border-control);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-base);
  padding: 0 2.5rem 0 2.25rem;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.search-input::placeholder { color: var(--color-text-subtle); }
.search-input:hover { border-color: var(--color-text-muted); }

.search-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem; height: 2rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-text-muted);
}
.search-kbd {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  color: var(--color-text-subtle);
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  background: var(--color-surface-subtle);
}

.header-contacts {
  grid-area: contacts;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  min-width: 0;
}
.header-link svg { flex-shrink: 0; }
.header-sep {
  width: 1px;
  height: 16px;
  background: var(--color-border);
  flex-shrink: 0;
}
@media (max-width: 39.99rem) {
  .header-sep { display: none; }
}
.header-link {
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.header-link:hover { color: var(--color-brand); }

.header-phone,
.header-email { display: none; }
.header-wa { display: none; }
.header-wa:not([hidden]) { display: inline; }

.header-phone-icon,
.header-email-icon {
  display: inline-flex;
  width: 2rem; height: 2rem;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.header-list {
  grid-area: list;
  position: relative;
}
.header-list.is-filled {
  border-color: var(--color-brand);
  color: var(--color-brand-strong);
}

.list-count {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.list-count:not([data-count="0"]) {
  background: var(--color-brand);
  color: #fff;
}
.list-count.is-pulse {
  transform: scale(1.18);
}

/* Catalog layout */
.catalog {
  padding-block: var(--space-6) var(--space-16);
  flex: 1;
}
.catalog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  min-width: 0;
}
.catalog-main { min-width: 0; }
.catalog-sidebar { display: none; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 2rem;
  margin-bottom: var(--space-3);
}
.sidebar-title {
  margin: 0;
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-heading);
  color: var(--color-text);
}
.sidebar-close { display: none; }

.nav-list, .nav-group, .nav-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-sub {
  margin: 2px 0 var(--space-2) var(--space-3);
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-border);
}
.nav-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-snug);
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.nav-item:hover { background: var(--color-surface-hover); color: var(--color-text); }
.nav-item.is-active {
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
  font-weight: var(--font-weight-semibold);
}
.nav-item-label { min-width: 0; }
.nav-item-count {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}
.nav-item.is-active .nav-item-count,
.nav-item:hover .nav-item-count { color: inherit; }

.catalog-head { margin-bottom: var(--space-5); }
.catalog-head h1 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-display);
  font-weight: 650;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  max-width: 20ch;
}
.catalog-lead {
  margin: 0 0 var(--space-5);
  max-width: 56ch;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}
.catalog-note {
  margin: 0;
  max-width: 36rem;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

/* Discount board */
.discount-board {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3) var(--space-6);
}
.discount-chip {
  display: inline-flex;
  align-items: center;
  height: 1.75rem;
  padding: 0 var(--space-3);
  border: var(--border-hairline);
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}
.discount-tiers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.discount-tiers li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.discount-tiers strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}
.discount-caption {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-4);
  padding-block: var(--space-2);
  flex-wrap: wrap;
  position: sticky;
  top: var(--header-sticky-top, 6.5rem);
  z-index: 15;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
}
.catalog-toolbar.is-stuck {
  border-bottom-color: var(--color-border);
}

.filters-open {
  flex: 0 0 auto;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-status {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom sort */
.sort-wrap { position: relative; margin-left: auto; flex: 0 0 auto; }
.sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 2rem;
  padding: 0 var(--space-3);
  border: var(--border-control);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}
.sort-trigger:hover { border-color: var(--color-text-muted); }
.sort-trigger:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sort-prefix { color: var(--color-text-muted); font-weight: var(--font-weight-medium); }
.sort-trigger::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-text-muted);
  margin-left: 2px;
}
.sort-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  margin: 0;
  padding: var(--space-1);
  min-width: 100%;
  list-style: none;
  background: var(--color-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay);
}
.sort-menu [role="option"] {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-base-sm);
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}
.sort-menu [role="option"]:hover,
.sort-menu [role="option"].is-active { background: var(--color-surface-hover); }
.sort-menu [role="option"][aria-selected="true"] {
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-strong);
}

/* Product grid */
.product-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-card {
  background: var(--color-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-none);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
@media (hover: hover) {
  .product-card:hover { border-color: var(--color-border-hover); }
  .product-card:hover .product-thumb img.is-loaded { transform: scale(1.04); }
}
.product-card:has(:focus-visible) { box-shadow: var(--focus-ring); }
.product-media { display: block; text-decoration: none; color: inherit; }

.product-thumb,
.dialog-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-media-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
  overflow: hidden;
}
.product-media .product-thumb {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.product-thumb.is-pending::after,
.dialog-photo.is-pending::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-surface-subtle);
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}
.product-thumb img,
.dialog-photo img {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0;
  transition:
    opacity var(--duration-fast) var(--ease-standard),
    transform var(--duration-slow) var(--ease-out);
}
.product-thumb img.is-loaded,
.dialog-photo img.is-loaded { opacity: 1; }
.product-thumb-placeholder { color: var(--color-border-strong); }
.product-thumb-placeholder-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

.product-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-eyebrow {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}
.product-body h3 {
  margin: 0;
  font-size: 0.9375rem; /* 15px */
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  letter-spacing: var(--tracking-heading);
  min-height: 2.6em;
}
.product-body h3 a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-body h3 a:hover { color: var(--color-brand); }

.product-sku {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}
.product-sku-code { font-variant-numeric: tabular-nums; }

.price-block { margin-top: var(--space-2); }
.price-ex, .price-inc, .price-request {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.price-ex {
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--color-text);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}
.product-body .price-ex { font-size: 1.125rem; }
.product-body .price-inc { display: none; }
.price-tag, .price-unit {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
}
.price-inc {
  margin-top: 2px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
}
.price-request {
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}
.product-unit {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.product-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
}
.product-add {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  color: var(--color-brand);
  border: 1px solid var(--color-border);
}
.product-add:hover,
.product-card:hover .product-add {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}
.product-add.is-added,
.product-add.is-in-list {
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
  border-color: transparent;
}
.product-add.is-in-list:hover,
.product-card:hover .product-add.is-in-list {
  background: var(--color-surface-hover);
  color: var(--color-brand-strong);
  border-color: var(--color-border);
}

/* Qty stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  border: var(--border-control);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  flex: 0 0 auto;
}
.qty-stepper button {
  width: 1.75rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.qty-stepper button:hover { color: var(--color-text); }
.qty-stepper button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.qty-stepper input {
  width: 2rem;
  height: 100%;
  border: 0;
  border-left: var(--border-hairline);
  border-right: var(--border-hairline);
  text-align: center;
  font: inherit;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.empty-state {
  margin: var(--space-8) 0 0;
  padding: var(--space-8) var(--space-5);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-surface-subtle);
  color: var(--color-text);
  font-size: var(--text-base);
  max-width: 32rem;
}
.empty-state p { margin: 0 0 var(--space-2); }
.empty-state p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: var(--text-base-sm);
}

/* Footer */
.site-footer {
  border-top: var(--border-hairline);
  background: var(--color-media-bg);
  padding-block: var(--space-8) var(--space-6);
  margin-top: auto;
}
.footer-inner {
  display: grid;
  gap: var(--space-6);
}
.footer-col p,
.footer-note {
  margin: 0 0 var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}
.footer-label {
  margin-bottom: var(--space-2) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text) !important;
}
.footer-name {
  font-size: var(--text-base-sm) !important;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text) !important;
}
.footer-col a {
  color: var(--color-brand);
  text-decoration: none;
}
.footer-col a:hover { text-decoration: underline; }
.footer-note { margin-top: var(--space-6); }

/* Dialog */
.product-dialog {
  width: min(72rem, calc(100% - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  margin: auto;
  padding: 0;
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-overlay);
}
.product-dialog::backdrop { background: rgba(26, 31, 27, 0.4); }

.dialog-shell {
  position: relative;
  padding: var(--space-6);
  padding-bottom: var(--space-8);
}
.dialog-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
}
.dialog-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-8) var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.dialog-crumb a { color: var(--color-text-muted); text-decoration: none; }
.dialog-crumb a:hover { color: var(--color-brand); text-decoration: underline; }
.crumb-sep { color: var(--color-border-strong); }

.dialog-layout {
  display: grid;
  gap: var(--space-6);
}
.dialog-photo {
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  cursor: zoom-in;
}
.dialog-photo.is-zoomed {
  cursor: zoom-out;
  overflow: hidden;
}
.dialog-photo.is-zoomed img.is-loaded {
  transform: scale(2);
  transform-origin: center center;
}
.dialog-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.dialog-thumb {
  width: 3.5rem; height: 3.5rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.dialog-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dialog-thumb.is-active { border-color: var(--color-brand); }

.dialog-info h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: 650;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
}
.dialog-info .price-ex { font-size: var(--text-xl); }
.dialog-info .price-block { margin: var(--space-3) 0 var(--space-5); }

.pack-picker {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}
.pack-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px var(--space-3);
  margin: 0;
  padding: var(--space-3);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}
.pack-option:hover { border-color: var(--color-border-strong); }
.pack-option.is-selected {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}
.pack-option-name {
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-semibold);
}
.pack-option-meta {
  grid-column: 1;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pack-option-price {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: var(--text-base-sm);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dialog-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.dialog-buy .qty-stepper { height: 2.5rem; }
.dialog-buy .qty-stepper button { width: 2rem; }
.dialog-buy .qty-stepper input { width: 2.5rem; font-size: var(--text-base); }
.dialog-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.dialog-sections {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-8);
  max-width: 42rem;
}
.dialog-section { }
.dialog-section h3,
.dialog-desc-title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-heading);
  color: var(--color-text-muted);
}
.dialog-desc,
.dialog-section {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}
.dialog-desc p,
.dialog-desc ul,
.dialog-desc ol,
.dialog-section p { margin: 0 0 var(--space-3); }
.dialog-desc ul, .dialog-desc ol { padding-left: 1.2rem; }
.dialog-desc li + li { margin-top: var(--space-1); }

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base-sm);
}
.specs-table th,
.specs-table td {
  padding: var(--space-2) 0;
  text-align: left;
  border-bottom: var(--border-hairline);
  vertical-align: top;
}
.specs-table th {
  width: 40%;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
}
.specs-table td {
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.pack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: 0;
}
.pack-table th,
.pack-table td {
  padding: var(--space-2);
  text-align: left;
  border-bottom: var(--border-hairline);
  vertical-align: top;
}
.pack-table thead th {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
}
.pack-table tbody th {
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}
.pack-table td {
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  white-space: nowrap;
}
.pack-note {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Sticky CTA on mobile */
.dialog-cta-bar {
  position: sticky;
  bottom: 0;
  margin: var(--space-6) calc(var(--space-6) * -1) calc(var(--space-6) * -1);
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface);
  border-top: var(--border-hairline);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 3;
}
.dialog-cta-bar .price-ex { font-size: var(--text-base); }
.dialog-cta-bar .btn { flex: 1; }

/* Request list */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26, 31, 27, 0.4);
}
.list-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 60;
  width: min(28rem, 100%);
  background: var(--color-surface);
  border-left: var(--border-hairline);
  box-shadow: var(--shadow-overlay);
  overflow: hidden;
}
.list-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: var(--space-5);
}
.list-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.list-panel-header h2 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: var(--tracking-heading);
}
.list-empty {
  margin: var(--space-4) 0;
  font-size: var(--text-base-sm);
  color: var(--color-text-muted);
}
.list-items { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-height: 8rem; overflow: auto; }
.list-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb text text"
    "thumb qty remove";
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--border-hairline);
  align-items: start;
}
.list-item-thumb { grid-area: thumb; align-self: start; }
.list-item-text { grid-area: text; min-width: 0; }
.list-item .qty-stepper { grid-area: qty; justify-self: start; align-self: center; }
.list-item [data-remove-sku] { grid-area: remove; align-self: center; }
.list-item-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.list-item-text a { color: inherit; text-decoration: none; }
.list-item-text a:hover { color: var(--color-brand); }
.list-item-text strong {
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-snug);
}
.list-item-text span {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}
.list-item-price {
  margin: var(--space-1) 0 0;
  font-size: var(--text-base-sm);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.list-item-price-inc {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.list-item .qty-stepper { grid-area: qty; }
.list-item [data-remove-sku] { grid-area: remove; }

.list-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-hairline);
  flex: 0 0 auto;
  background: var(--color-surface);
}
.list-total-ex, .list-total-inc, .list-total-note { margin: 0; }
.list-total-ex {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-base);
  align-items: baseline;
}
.list-total-ex strong { font-variant-numeric: tabular-nums; font-weight: 650; }
.list-total-inc {
  margin-top: 2px;
  text-align: right;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.list-total-note {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.quote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.quote-actions:not(.is-no-wa) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quote-actions .btn {
  min-height: 44px;
  width: 100%;
  padding-inline: var(--space-2);
}
.quote-legal {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
}
.quote-legal a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.quote-legal a:hover { color: var(--color-brand); }
.quote-fallback {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
}
.quote-fallback .copy-feedback {
  flex: 1 0 100%;
  min-height: 1.2em;
}
.copy-link {
  appearance: none;
  margin: 0;
  padding: 0;
  min-height: 44px;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.copy-link:hover { color: var(--color-brand); }
.copy-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
.copy-link.is-copied { text-decoration: none; color: var(--color-brand-strong); }
#copy-email-body { min-height: 44px; }
.copy-feedback {
  margin: 0;
  min-height: 1.2em;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-brand-strong);
}
.list-clear {
  margin-top: var(--space-2);
  width: 100%;
  min-height: 44px;
}

/* Mobile category drawer */
@media (max-width: 63.99rem) {
  .catalog-sidebar {
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 60;
    width: min(22rem, 100%);
    background: var(--color-surface);
    border-right: var(--border-hairline);
    box-shadow: var(--shadow-overlay);
    padding: var(--space-5);
    overflow: auto;
    transform: translateX(-105%);
    transition: transform var(--duration-base) var(--ease-standard);
  }
  .catalog-sidebar.is-open { transform: none; }
  .sidebar-close { display: inline-flex; }
  #sidebar-backdrop:not([hidden]) { z-index: 55; }

  .sort-prefix { display: none; }
}

/* Breakpoints */
@media (min-width: 40rem) {
  .wrap { padding-inline: var(--container-pad-md); }

  .header-phone-icon,
  .header-email-icon { display: none; }

  .header-phone,
  .header-email,
  .header-wa:not([hidden]) { display: inline; }

  .header-contacts {
    gap: var(--space-2) var(--space-4);
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .dialog-contacts { flex-wrap: wrap; }

  .list-item {
    align-items: start;
  }
  .search-wrap.has-query .search-kbd { display: none; }
}

@media (min-width: 64rem) {
  .wrap { padding-inline: var(--container-pad-lg); }

  .header-inner {
    grid-template-columns: auto minmax(16rem, 32rem) auto auto;
    grid-template-areas: "logo search contacts list";
    height: var(--header-h);
    padding-block: 0;
    gap: var(--space-5);
  }
  .search-wrap { max-width: 36rem; justify-self: stretch; }
  .search-kbd { display: inline-block; }
  .search-wrap.has-query .search-kbd { display: none; }

  .filters-open,
  .sidebar-close { display: none !important; }

  .catalog-toolbar {
    position: static;
    padding-block: 0;
    margin-bottom: var(--space-5);
    border-bottom: 0;
    background: transparent;
  }

  .catalog-shell {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
  }
  .catalog-sidebar {
    display: block;
    position: sticky;
    top: var(--header-sticky-top, 4.5rem);
    max-height: calc(100vh - var(--header-sticky-top, 4.5rem) - var(--space-6));
    overflow: auto;
    padding: 0;
  }
  .sidebar-header {
    margin-bottom: var(--space-2);
    align-items: flex-start;
    min-height: auto;
  }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr 1fr; }

  .catalog { padding-block: var(--space-8) var(--space-20); }

  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .dialog-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
    gap: var(--space-8);
  }
  .dialog-shell { padding: var(--space-8); }
  .dialog-cta-bar { display: none !important; }

  .dialog-sections { max-width: none; }
}

@media (min-width: 80rem) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .product-thumb.is-pending::after,
  .dialog-photo.is-pending::after,
  .list-count { animation: none; }
  .product-thumb img,
  .dialog-photo img,
  .catalog-sidebar,
  .btn,
  .list-count { transition: none; }
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Trust strip */
.trust-strip {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}
.trust-strip li {
  position: relative;
  padding-left: 0;
}
@media (min-width: 40rem) {
  .trust-strip li + li::before {
    content: "";
    position: absolute;
    left: calc(var(--space-6) / -2);
    top: 50%;
    width: 1px;
    height: 16px;
    transform: translate(-50%, -50%);
    background: var(--color-border);
  }
}
@media (max-width: 39.99rem) {
  .trust-strip {
    flex-wrap: wrap;
    overflow: visible;
    gap: var(--space-2) var(--space-4);
  }
  .trust-strip li { flex: 1 1 12rem; max-width: none; }
}

/* Facets */
.facet-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  overflow-x: visible;
  margin: 0 0 var(--space-3);
  padding-bottom: 2px;
}
.facet-row[hidden] { display: none !important; }
.facet-group {
  display: flex;
  gap: var(--space-2);
  flex: 0 0 auto;
}
.facet-chip {
  height: 2.25rem;
  padding: 0 var(--space-3);
  border: var(--border-control);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  white-space: nowrap;
}
.facet-chip:hover { border-color: var(--color-text-muted); }
.facet-chip.is-active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}
.facet-active {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.facet-clear {
  margin-left: var(--space-2);
  color: var(--color-brand);
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  text-decoration: underline;
}

/* Spec chips on cards */
.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.spec-chips li {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.spec-chips li.is-cert {
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}

.product-carton {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.product-carton strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

/* Skeleton */
.product-card.is-skeleton {
  pointer-events: none;
  min-height: 20rem;
  background:
    linear-gradient(var(--color-media-bg) 0 0) 0 0 / 100% min(100%, 11rem) no-repeat,
    var(--color-surface);
}
.product-card.is-skeleton::after {
  content: "";
  display: block;
  margin-top: 12rem;
  height: 4.5rem;
  margin-inline: var(--space-4);
  margin-bottom: var(--space-4);
  border-radius: 6px;
  background: var(--color-surface-subtle);
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}

/* Threshold bar */
.threshold {
  margin: 0 0 var(--space-4);
}
.threshold-msg {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.threshold-msg strong { font-weight: 650; }
.threshold-bar {
  position: relative;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  overflow: visible;
}
.threshold-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  max-width: 100%;
}
.threshold-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.threshold-ticks span {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 12px;
  background: var(--color-text-muted);
  transform: translateX(-50%);
}

/* Pack select in list */
.list-pack {
  margin-top: 4px;
  height: 2rem;
  border: var(--border-control);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-sm);
  background: var(--color-surface);
  color: var(--color-text);
  max-width: 100%;
}
.list-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-media-bg);
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px;
}
.list-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.list-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-line-meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Totals rows */
.list-total-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 4px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.list-total-row.is-grand {
  margin-top: var(--space-2);
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 650;
}

/* Dialog tweaks */
.dialog-handle {
  display: none;
  width: 36px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  margin: 0 auto var(--space-3);
}
.dialog-info { min-width: 0; }
.dialog-contacts {
  margin-top: var(--space-4);
  font-size: var(--text-base-sm);
  color: var(--color-text-muted);
}
.dialog-contacts a { font-weight: var(--font-weight-medium); }
.pack-option .pack-badge,
.pack-table .pack-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  height: 20px;
  line-height: 20px;
  border-radius: 6px;
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
  font-size: var(--text-xs);
  font-weight: 600;
  vertical-align: middle;
}

.specs-list {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 0;
  margin: 0;
}
.specs-list dt,
.specs-list dd {
  margin: 0;
  padding: var(--space-2) 0;
  border-bottom: var(--border-hairline);
  font-size: var(--text-base-sm);
}
.specs-list dt { color: var(--color-text-muted); font-weight: var(--font-weight-medium); }
.specs-list dd { color: var(--color-text); font-variant-numeric: tabular-nums; }

.dialog-desc-fold {
  margin-top: var(--space-4);
}
.dialog-desc-fold > summary {
  cursor: pointer;
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(28rem, calc(100% - 2rem));
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-overlay);
  font-size: var(--text-base-sm);
}

/* Mobile quote bar */
.mobile-quote-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 4rem;
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--color-text);
  color: #fff;
}
.mobile-quote-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.mobile-quote-summary { margin: 0; flex: 1; font-size: var(--text-sm); font-weight: 500; }
#mobile-quote-open {
  color: #fff;
  min-height: 44px;
  padding-inline: var(--space-3);
}
#mobile-quote-open:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.mobile-quote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
.mobile-quote-bar:not(.is-no-wa) .mobile-quote-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mobile-quote-actions .btn {
  min-height: 44px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.mobile-quote-actions .btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}
@media (min-width: 64rem) {
  .mobile-quote-bar { display: none !important; }
}

/* Dialog mobile bottom sheet */
@media (max-width: 63.99rem) {
  .product-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
    border: 0;
  }
  .dialog-handle { display: block; }
  .dialog-shell { padding-top: var(--space-3); }
  .dialog-info { position: static; }
  .dialog-cta-bar {
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 64rem) {
  .dialog-info { position: sticky; top: 1.5rem; }
  .dialog-handle { display: none; }
}

/* Tap targets and overflow, mobile */
@media (max-width: 39.99rem) {
  .btn-sm,
  .filters-open,
  .sort-trigger,
  .facet-chip,
  .nav-item,
  .header-list,
  .search-input,
  .dialog-buy .btn,
  .dialog-cta-bar .btn,
  #dialog-add,
  #dialog-add-bar {
    min-height: 44px;
  }
  .header-phone-icon,
  .header-email-icon,
  .btn-icon,
  .sidebar-close,
  .dialog-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .qty-stepper { height: 44px; }
  .qty-stepper button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    margin-top: -1px;
    margin-bottom: -1px;
  }
  .search-input { height: 44px; }
  .sort-trigger { max-width: 12rem; }
  .product-grid { gap: var(--space-3); }
  .product-add.is-in-list { display: none; }
  .facet-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.25rem), transparent);
    padding-bottom: 2px;
  }
  .dialog-shell { padding-bottom: 5.5rem; }
  body.has-quote-bar .toast {
    bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 40rem) {
  .btn-sm { height: 2.5rem; }
  .qty-stepper { height: 2.5rem; }
  .qty-stepper button { width: 2.25rem; }
}

/* Header list icon */
.header-list-icon { flex-shrink: 0; }

/* Subtle text never on subtle/media surfaces */
.product-thumb,
.dialog-photo,
.site-footer,
.spec-chips,
.catalog-sidebar {
  /* reserved: do not use --color-text-subtle here */
}

body.list-open .mobile-quote-bar,
body.dialog-open .mobile-quote-bar,
body.notice-open .mobile-quote-bar { display: none !important; }

body.has-quote-bar .catalog { padding-bottom: 9rem; }

#dialog-title:focus { outline: none; box-shadow: none; }
#dialog-title:focus-visible { box-shadow: var(--focus-ring); }
.dialog-shell:focus { outline: none; box-shadow: none; }


/* Pagine legali */
body.legal-body { background: var(--color-canvas); }
.legal-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  grid-template-columns: none;
  grid-template-areas: none;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}
.legal-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--color-text);
}
.legal-nav a[aria-current="page"] { font-weight: var(--font-weight-semibold); }
.legal-main { padding: var(--space-7) 0 var(--space-9); }
.legal-article {
  max-width: 46rem;
  margin-inline: auto;
}
.legal-kicker {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.legal-kicker a { color: inherit; }
.legal-article > h1 {
  margin: 0 0 var(--space-5);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
}
.legal-note,
.legal-addendum {
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.legal-note p,
.legal-addendum p,
.legal-addendum li,
.legal-source p,
.legal-source li {
  font-size: var(--text-base-sm);
  line-height: var(--leading-body);
}
.legal-note p + p,
.legal-addendum p + p,
.legal-source p + p { margin-top: var(--space-3); }
.legal-addendum h2,
.legal-source h2,
.legal-source h3,
.legal-source h4 {
  margin: var(--space-6) 0 var(--space-3);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
}
.legal-addendum h2,
.legal-source h2 { font-size: var(--text-lg); }
.legal-source h3 { font-size: var(--text-base); }
.legal-source h4 { font-size: var(--text-base-sm); }
.legal-source h1 { font-size: var(--text-lg); margin: 0 0 var(--space-4); }
.legal-source ul { margin: 0 0 var(--space-4); padding-left: 1.2em; }
.legal-source li { margin: 0 0 var(--space-2); }
.legal-source a { color: var(--color-brand-strong); }
.legal-article code {
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (max-width: 63.99rem) {
  .legal-header .header-contacts { display: none; }
}


/* Avviso shop all'arrivo */
.notice-dialog {
  width: min(28rem, calc(100% - 1.5rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-overlay);
  overflow: auto;
}
.notice-dialog::backdrop { background: rgba(26, 31, 27, 0.4); }
.notice-dialog-shell {
  position: relative;
  padding: var(--space-6);
  padding-top: calc(var(--space-6) + 0.25rem);
}
.notice-dialog-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}
.notice-dialog h2 {
  margin: 0 2.75rem var(--space-3) 0;
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
}
.notice-dialog p#notice-text {
  margin: 0;
  font-size: var(--text-base-sm);
  line-height: var(--leading-body);
  color: var(--color-text);
}
.notice-dialog-actions {
  margin-top: var(--space-5);
}
.notice-dialog-actions .btn {
  width: 100%;
  min-height: 44px;
}
.notice-dialog-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-4);
  margin: var(--space-4) 0 0;
  font-size: var(--text-base-sm);
}
.notice-dialog-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.notice-dialog-contacts a:hover { color: var(--color-brand); }
@media (max-width: 63.99rem) {
  .notice-dialog {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 100%);
    margin: auto 0 0;
    border: 0;
    border-radius: 16px 16px 0 0;
  }
  .notice-dialog-shell {
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  }
}

.legal-source table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-4);
  font-size: var(--text-base-sm);
}
.legal-source th,
.legal-source td {
  border: var(--border-hairline);
  padding: var(--space-2) var(--space-3);
  text-align: left;
}
.legal-source th { font-weight: var(--font-weight-semibold); }
.legal-source ol { margin: 0 0 var(--space-4); padding-left: 1.2em; }
.legal-source ol li { margin: 0 0 var(--space-2); }


/* Menu invio email (desktop) */
.email-menu {
  position: fixed;
  z-index: 200;
  min-width: 14.5rem;
  max-width: min(20rem, calc(100vw - 1rem));
  margin: 0;
  padding: var(--space-2);
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay);
}
.email-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--text-base-sm);
  font-weight: var(--font-weight-medium);
  text-align: left;
  cursor: pointer;
}
.email-menu-item:hover,
.email-menu-item:focus-visible {
  background: var(--color-surface-hover);
  outline: none;
}
.email-menu-item:focus-visible { box-shadow: var(--focus-ring); }
.email-menu-status {
  margin: 0;
  padding: 0 var(--space-3);
  min-height: 0;
  font-size: var(--text-sm);
  color: var(--color-brand-strong);
}
.email-menu-status:empty { display: none; }
.toast.is-email-toast { z-index: 230; }
