/* Ottica Marcì Shop — stile coerente con sito principale */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #faf9f7;
  --bg-dark: #faf9f7;
  --bg-section: #f3f1ed;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f7f4;
  --text: #2b2b2b;
  --text-muted: #6b6b6b;
  --text-heading: #1a1a1a;
  --accent: #4a8b9a;
  --accent-light: #3a7a8a;
  --gold: #b8963e;
  --gold-light: #c9a54e;
  --gold-hover: #a07d2e;
  --accent-soft: #d4c4a0;
  --border: #e0ddd6;
  --border-strong: #c5c0b5;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.10);
  --error: #c0392b;
  --success: #27ae60;
  --danger: #c0392b;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-section);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 400; }
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ── NAV ──────────────────────────────────────────── */
nav.shop-nav {
  position: sticky; top: 0; z-index: 100;
  padding: 1rem 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
nav.shop-nav .container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 42px; border-radius: 8px; }
.nav-logo > span { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--text); letter-spacing: 0.5px; display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .subtitle { font-size: 0.7rem; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; display: block; line-height: 1; margin-top: 0.2rem; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.cart-badge {
  background: var(--gold); color: #fff;
  padding: 0.3rem 0.9rem; border-radius: 50px;
  font-weight: 700; font-size: 0.78rem;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  cursor: pointer; border: none;
  transition: all var(--transition);
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-hover); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.72rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ── CATALOG (index.html) ────────────────────────── */
.catalog-hero {
  padding: 5rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg) 100%);
}
.catalog-hero .badge {
  display: inline-block; padding: 0.4rem 1.2rem;
  border: 1px solid var(--gold); border-radius: 50px;
  color: var(--gold); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.catalog-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
}
.catalog-hero h1 em { font-style: italic; color: var(--gold-light); }
.catalog-hero p {
  color: var(--text-muted); max-width: 620px; margin: 0 auto;
  font-size: 1.05rem;
}

.filter-bar {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}
.filter-bar .container { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.filter-pill {
  padding: 0.5rem 1.2rem; border: 1px solid var(--border-strong);
  border-radius: 50px; cursor: pointer;
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  background: transparent; transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--gold); color: var(--gold); }
.filter-pill.active { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 600; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 0 6rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.product-card:hover {
  background: var(--bg-card);
  border-color: var(--gold);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.product-card .img-wrap {
  aspect-ratio: 4/3;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 1rem;
  transition: transform var(--transition);
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.product-card .brand-line { font-size: 0.7rem; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.product-card .modello { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--text); }
.product-card .card-meta { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.5px; }
.product-card .colore { font-size: 0.85rem; color: var(--text-muted); }
.product-card .pricing { margin-top: auto; padding-top: 1rem; display: flex; align-items: baseline; gap: 0.6rem; }
.product-card .price-old { color: var(--text-muted); text-decoration: line-through; font-size: 0.9rem; }
.product-card .price-new { color: var(--gold-light); font-size: 1.4rem; font-weight: 600; font-family: 'Playfair Display', serif; }
.product-card .badge-cat {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.3rem 0.8rem; border-radius: 50px;
  background: #1a1a1a; color: #ffffff;
  font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
  backdrop-filter: blur(10px);
  z-index: 2;
  pointer-events: none;
}
.product-card { position: relative; }
.product-card .badge-outlet {
  position: absolute; top: 1rem; right: 1rem;
  padding: 0.3rem 0.8rem; border-radius: 50px;
  background: linear-gradient(135deg, #c9a96e, #a07c3a); color: #fff;
  font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  z-index: 2;
  pointer-events: none;
}

/* ── PDP (product.html) ──────────────────────────── */
.pdp-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  padding: 3rem 0 6rem;
}
@media (max-width: 900px) { .pdp-grid { grid-template-columns: 1fr; gap: 2rem; } }

.pdp-gallery .main-img {
  background: #fff; border-radius: var(--radius); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 2rem;
  margin-bottom: 1rem;
}
.pdp-gallery .main-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-gallery .thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pdp-gallery .thumb {
  width: 80px; height: 80px; background: #fff;
  border-radius: var(--radius-sm); padding: 0.4rem;
  cursor: pointer; border: 2px solid transparent;
  transition: border var(--transition);
}
.pdp-gallery .thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-gallery .thumb.active { border-color: var(--gold); }

.pdp-info .brand-line { font-size: 0.75rem; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem; }
.pdp-info h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.pdp-info .subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.pdp-info .specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.pdp-info .spec { display: flex; flex-direction: column; gap: 0.2rem; }
.pdp-info .spec-label { font-size: 0.7rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; }
.pdp-info .spec-value { font-size: 1rem; color: var(--text); }
.pdp-info .desc { color: var(--text-muted); margin-bottom: 2rem; }
.pdp-info .pricing-block { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.pdp-info .price-old { color: var(--text-muted); text-decoration: line-through; font-size: 1.2rem; }
.pdp-info .price-new { color: var(--gold-light); font-size: 2.5rem; font-weight: 600; font-family: 'Playfair Display', serif; }
.pdp-info .price-note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }

/* ── CONFIGURATORE LENTE ─────────────────────────── */
.config-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}
.config-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-align: center; margin-bottom: 0.5rem;
}
.config-section .lead { text-align: center; color: var(--text-muted); margin-bottom: 3rem; }

.config-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
  box-shadow: var(--shadow-card);
}
.config-step.completed { border-color: var(--success); }
.config-step.active { border-color: var(--gold); }
.config-step h3 {
  display: flex; align-items: center; gap: 1rem;
  font-size: 1.4rem; margin-bottom: 1.5rem;
}
.config-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--gold); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 700;
}

.option-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.option-card {
  background: var(--bg-section);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.option-card:hover { border-color: var(--gold); }
.option-card.selected { border-color: var(--gold); background: rgba(184,150,62,0.08); }
.option-card.selected::after {
  content: '✓'; position: absolute; top: 0.7rem; right: 0.9rem;
  color: var(--gold); font-weight: 700;
}
.option-card .opt-label { font-weight: 600; margin-bottom: 0.3rem; color: var(--text); font-size: 0.95rem; }
.option-card .opt-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.option-card .opt-price { font-size: 0.85rem; color: var(--gold); margin-top: 0.5rem; font-weight: 600; }

/* Form ricetta */
.recipe-form { display: grid; gap: 1.5rem; }
.recipe-row { display: grid; grid-template-columns: 80px repeat(3, 1fr); gap: 1rem; align-items: end; }
.recipe-row .row-label { font-size: 0.85rem; color: var(--text-muted); text-align: right; padding-bottom: 0.6rem; }
.recipe-field label { display: block; font-size: 0.7rem; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.4rem; }
.recipe-field input, .recipe-field select {
  width: 100%; padding: 0.6rem 0.8rem;
  background: #ffffff; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
}
.recipe-field input:focus, .recipe-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(184,150,62,0.3); }
.recipe-field input.error { border-color: var(--error); }
.recipe-error { color: var(--error); font-size: 0.78rem; margin-top: 0.3rem; }

.recipe-upload {
  display: block;
  border: 2px dashed var(--border-strong);
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  padding: 2rem; text-align: center;
  cursor: pointer; transition: border-color var(--transition);
}
.recipe-upload:hover { border-color: var(--gold); }
.recipe-upload.has-file { border-color: var(--success); border-style: solid; }
.recipe-upload p { margin: 0.5rem 0; color: var(--text-muted); font-size: 0.9rem; }
.recipe-upload .upload-icon { font-size: 2rem; color: var(--gold); }

.recipe-declaration {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem; background: var(--bg-section);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.recipe-declaration input[type="checkbox"] {
  margin-top: 0.3rem; width: 1.2rem; height: 1.2rem;
  accent-color: var(--gold); cursor: pointer;
}
.recipe-declaration label { font-size: 0.88rem; color: var(--text); cursor: pointer; line-height: 1.5; }

/* OR divider */
.divider-or {
  display: flex; align-items: center; gap: 1rem;
  color: var(--text-muted); font-size: 0.8rem; letter-spacing: 3px;
  text-transform: uppercase; margin: 1rem 0;
}
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }

/* Alert blocco consulenza */
.alert-consulenza {
  background: rgba(184,150,62,0.08);
  border-left: 4px solid var(--gold);
  padding: 1.5rem; border-radius: var(--radius-sm);
  margin-top: 1rem;
}
.alert-consulenza h4 { color: var(--gold); margin-bottom: 0.5rem; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; }
.alert-consulenza p { color: var(--text); font-size: 0.9rem; line-height: 1.5; }

/* Riepilogo */
.summary-sticky {
  position: sticky; top: 90px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-card);
}
.summary-sticky h3 { font-size: 1.3rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-muted); }
.summary-row.bold { color: var(--text); font-weight: 600; }
.summary-row.total {
  border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem;
  font-size: 1.1rem; color: var(--gold-light);
  font-family: 'Playfair Display', serif;
}
.summary-row.total .val { font-size: 1.6rem; }
.summary-iva-note { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.5rem; }

/* Servizi inclusi banner */
.services-banner {
  background: linear-gradient(135deg, rgba(74,139,154,0.06), rgba(184,150,62,0.04));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem; margin-top: 1.5rem;
}
.services-banner h4 { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--accent-light); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.8rem; }
.services-banner ul { list-style: none; padding: 0; }
.services-banner li { padding: 0.3rem 0; font-size: 0.85rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.services-banner li::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ── LIGHTBOX MODAL ────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center; justify-content: center;
  animation: lb-fade 0.3s ease-out;
}
.lightbox.open { display: flex; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-content {
  position: relative;
  max-width: 92vw; max-height: 92vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 92vw; max-height: 86vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  animation: lb-scale 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes lb-scale { from { transform: scale(0.94); } to { transform: scale(1); } }

.lightbox-close, .lightbox-arrow {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.lightbox-close {
  top: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.6rem; line-height: 1;
}
.lightbox-close:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: rotate(90deg); }

.lightbox-arrow {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 1.8rem; line-height: 1;
}
.lightbox-arrow.prev { left: 2rem; }
.lightbox-arrow.next { right: 2rem; }
.lightbox-arrow:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.lightbox-arrow:disabled, .lightbox-arrow.hidden { opacity: 0.2; cursor: default; pointer-events: none; }

.lightbox-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.1);
  color: #fff; padding: 0.5rem 1.2rem;
  border-radius: 50px; font-size: 0.8rem; letter-spacing: 2px;
  backdrop-filter: blur(10px);
}

.pdp-gallery .main-img { cursor: zoom-in; transition: transform 0.3s; }
.pdp-gallery .main-img:hover img { transform: scale(1.02); }

@media (max-width: 768px) {
  .lightbox-close { top: 0.8rem; right: 0.8rem; width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox-arrow { width: 44px; height: 44px; font-size: 1.4rem; }
  .lightbox-arrow.prev { left: 0.5rem; }
  .lightbox-arrow.next { right: 0.5rem; }
}

/* Footer */
footer.shop-footer {
  padding: 3rem 0; border-top: none;
  text-align: center; font-size: 0.85rem;
  background: #1a1a1a; color: #ccc;
}
footer.shop-footer a { color: #ccc; }
footer.shop-footer a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 768px) {
  .recipe-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .recipe-row .row-label { text-align: left; padding-bottom: 0; font-weight: 600; color: var(--text); }
  .pdp-info .specs { grid-template-columns: 1fr; }
  nav.shop-nav .container { gap: 0.75rem; }
  nav.shop-nav .nav-logo .subtitle { display: none; }
  .nav-links { gap: 0.6rem; }
  .nav-links a { display: none; font-size: 0.72rem; letter-spacing: 0.04em; }
  .nav-links a[href="/index.html"],
  .nav-links a[href="/index.html#contatti"],
  .nav-links a:last-child,
  .nav-links .cart-badge { display: inline-flex; }
  .nav-links a.active { display: none !important; }
}

/* Consensi GDPR checkout (T11) */
.consents-block { margin-top: 2rem; padding: 1.5rem; background: #faf7f0; border-radius: 8px; border: 1px solid #e5d9c4; }
.consents-block label { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .8rem; font-size: .95rem; line-height: 1.5; cursor: pointer; color: #2a2a2a; }
.consents-block label > input[type=checkbox] + a, .consents-block label a { white-space: nowrap; }
.consents-block input[type=checkbox] { margin-top: .25rem; flex-shrink: 0; }
.consents-block a { color: #8b6f2f; text-decoration: underline; }
.warning-graduato { background: #fff4d6; border-left: 4px solid #d4a017; padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 4px; font-size: .95rem; color: #3a2a00; }
.warning-graduato strong { color: #8b5a00; }
.consent-error { color: #c0392b; font-size: .9rem; margin-top: .5rem; display: none; }
.consent-error.show { display: block; }
/* === Agente 2: landing + catalogo filters === */

/* Compact hero (no big image) */
.catalog-hero.hero-compact {
  padding: 3rem 0 2.5rem;
}
.catalog-hero.hero-compact h1 { font-size: 2.4rem; margin-bottom: 0.6rem; }
.catalog-hero.hero-compact p { font-size: 1rem; color: var(--text-muted); max-width: 640px; }

/* Brand rows on landing */
.brand-rows { padding: 3.5rem 0 5rem; background: var(--bg-section); }
.brand-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem 1.8rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}
.brand-row-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.brand-logo-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 60px;
}
.brand-logo {
  max-height: 44px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.brand-row-meta { flex: 1; min-width: 200px; }
.brand-row-meta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  margin: 0 0 0.3rem;
  color: var(--text);
}
.brand-scopri {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brand-scopri:hover { color: var(--gold-light); }
.brand-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.brand-row-grid .product-card { min-height: auto; }

/* Catalogo filters */
.catalog-filters {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0 1.4rem;
}
.catalog-filters .filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  padding-left: 110px;
  position: relative;
  min-height: 2.2rem;
}
.catalog-filters .filter-row:last-child { margin-bottom: 0; }
.filter-label {
  position: absolute;
  left: 0;
  top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 90px;
}
.filter-pill-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem 0.3rem 0.4rem;
}
.filter-pill-brand .filter-brand-logo {
  height: 20px;
  width: auto;
  max-width: 60px;
  background: #fff;
  border-radius: 3px;
  padding: 2px 4px;
  object-fit: contain;
  display: inline-block;
  opacity: 1;
}
/* Quando la pill brand e' attiva, il bg gold della pill non deve far sparire
   il logo. Forziamo bg bianco e opacita' piena sul logo. */
.filter-pill-brand.active .filter-brand-logo {
  background: #fff;
  opacity: 1;
  filter: none;
}
.filter-pill-brand span { font-size: 0.82rem; }

@media (max-width: 640px) {
  .brand-row-header { gap: 1rem; }
  .brand-logo-wrap { min-width: 110px; padding: 0.5rem 0.8rem; }
  .brand-logo { max-height: 36px; max-width: 140px; }
  .catalog-filters .filter-row { padding-left: 0; }
  .filter-label { position: static; min-width: 0; width: 100%; margin-bottom: 0.3rem; }
}

/* === Agente 2: checkout warnings === */
.checkout-warn-box {
  background: rgba(184,150,62,0.06);
  border: 1px solid rgba(184,150,62,0.2);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}
.checkout-warn-box.danger {
  background: rgba(220,80,80,0.08);
  border-color: rgba(220,80,80,0.35);
  border-left-color: #d65555;
}
.checkout-warn-box.info {
  background: rgba(106,180,197,0.08);
  border-color: rgba(106,180,197,0.3);
  border-left-color: var(--accent);
}
.checkout-warn-box strong { color: var(--text); }
.checkout-warn-box .warn-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gold-light);
}
.checkout-warn-box.danger .warn-title { color: #f0a0a0; }
.checkout-warn-box.info .warn-title { color: var(--accent-light); }
.delivery-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  font-size: 0.88rem;
}
.delivery-table th, .delivery-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.delivery-table th {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.delivery-table td:last-child { text-align: right; color: var(--text-muted); white-space: nowrap; }

/* --- Lens Color Selector (round swatches) --- */
.lens-tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.lens-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.lens-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.lens-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.lens-family-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.lens-family-label {
  min-width: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}
.lens-swatch-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.lens-swatch-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.lens-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.lens-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.lens-swatch.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,150,62,0.3);
}
.lens-swatch.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.lens-swatch-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}
.lens-swatch-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.lens-swatch-mini {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  vertical-align: middle;
  margin-right: 0.4rem;
}
.lens-selection-banner {
  margin-top: 1rem;
  padding: 0.6rem 0.8rem;
  background: rgba(184,150,62,0.08);
  border: 1px solid rgba(184,150,62,0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}
.lens-pol-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--gold);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lens-pol-warning {
  padding: 0.6rem 0.8rem;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--error);
  margin-bottom: 0.8rem;
}
.lens-pol-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.lens-pol-cell .lens-swatch-label,
.lens-foto-cell .lens-swatch-label {
  font-size: 0.72rem;
  font-weight: 500;
}
.lens-foto-row,
.lens-pol-row {
  gap: 1rem;
}

@media (max-width: 600px) {
  .lens-family-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .lens-family-label {
    min-width: auto;
  }
  .lens-swatch {
    width: 40px;
    height: 40px;
  }
  .lens-tab-bar {
    flex-wrap: wrap;
  }
}

/* === UX fix Gruppo 1 (QW15 + FS7) — additive only, 2026-04-18 === */
@media (max-width: 640px) {
  /* QW15: tap target ≥44px per checkbox ricetta dichiarazione e affini */
  .recipe-declaration {
    min-height: 44px;
    padding: 0.4rem 0;
  }
  .recipe-declaration input[type="checkbox"] {
    min-width: 22px;
    min-height: 22px;
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.2rem;
  }
  .recipe-declaration label {
    min-height: 44px;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  /* Visita optometrista toggle (consegna step) */
  input[data-action="toggle-visita"] {
    min-width: 22px;
    min-height: 22px;
    width: 1.3rem;
    height: 1.3rem;
  }
}

/* QW8: a11y keyboard focus per option-card (role=button) */
.option-card[role="button"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* SEO 2026-04-20: sezione "Perché Ottica Marcì" homepage */
.perche-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: all 0.3s; }
.perche-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.perche-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.perche-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--gold); }
.perche-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* Tech description box — RB Meta / Nuance Audio */
.tech-desc {
  background: linear-gradient(135deg, rgba(201,169,110,0.06), rgba(201,169,110,0.02));
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 1.5rem;
}
.tech-desc-p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}
.tech-desc-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text);
}
.tech-desc-features li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.45;
}
.tech-desc-features li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.25rem;
}
