/* Vetrina agentica – stile allineato al nuovo sito SpotView
   (restyling di Nico, 23/10/2026). Caricato dopo lo stile base di index.html.
   Font: Instrument Sans da Google Fonts, linkato nel <head>. */

/* 1. Palette e tema chiaro sempre (niente nero automatico col Mac in modalità scura) */
:root, html { color-scheme: light; }
:root {
  --navy: #000000; --yellow: #f5e400; --tile: #f1f1f1;
  --bg: #ffffff; --surface: #ffffff; --text: #0a0f16; --muted: #5c6066;
  --line: #e3e3e3; --accent: #000000; --accent-text: #ffffff;
  --chip: #ffffff; --warn-bg: #f1f1f1; --warn-text: #0a0f16; --radius: 0px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #ffffff; --surface: #ffffff; --text: #0a0f16; --muted: #5c6066;
    --line: #e3e3e3; --accent: #000000; --accent-text: #ffffff;
    --chip: #ffffff; --warn-bg: #f1f1f1; --warn-text: #0a0f16;
  }
}
html, body { background: var(--bg); }
body { font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif; color: var(--text); }

/* 2. Hero nera come le pagine servizio del sito */
header.wrap {
  max-width: none; margin: 0; background: #000; color: #fff;
  padding: 72px max(16px, calc((100vw - 1240px) / 2 + 16px)) 56px;
}
.eyebrow { color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px;
  background: var(--yellow); margin-right: 10px; vertical-align: 1px; }
header.wrap h1 { font-family: "Instrument Sans", sans-serif; font-weight: 500;
  font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.02em; color: #fff; }
header.wrap .lede { color: #fff; max-width: 620px; }

/* 3. Ricerca e filtri: pill come i tab del sito */
.controls { background: rgba(255,255,255,.94); }
button { border-radius: 999px; }
/* Barra di ricerca squadrata, a contrasto con le pillole dei brand */
form.search input, form.search select, form.search button { border-radius: 4px; }
form.search input, form.search select { border-color: var(--line); }
/* Freccia del menu categorie staccata dal bordo */
form.search select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px; }
.chip { background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Barra di scorrimento dei brand nascosta: le pillole scorrono comunque (trackpad, dito, shift+rotella) */
.chips { scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* 4. Card prodotto: tile grigio chiaro, angoli netti, prodotto intero */
.card .img { background: var(--tile); border-radius: 0; }
.card img { object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
/* Un solo grassetto nella card: il prezzo. Brand come etichetta grigia, titolo regular */
.card .brand { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.card .title { font-weight: 400; }
.card .meta { font-weight: 600; }
.card .rating { font-weight: 400; }
.add { background: #fff; color: var(--text); border: 1px solid var(--text); font-weight: 500; }
.add:hover, .add.done { background: var(--navy); color: #fff; }

/* "Carica altri prodotti" come link testuale invece che bottone pieno */
#more { background: none; color: var(--text); padding: 6px 0; border-radius: 0; font-weight: 500;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
#more:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
#more::after { content: " ↓"; }

/* 5. Finestra "Scegli opzioni": angoli netti e opzioni a pillola (vedi vetrina-scelta-opzioni.js) */
dialog { border-radius: 0; }
.picker img { border-radius: 0; object-fit: contain; background: #fff; }
.picker .opt-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.picker .opt-pills button { background: #fff; color: var(--text); border: 1px solid var(--line);
  padding: 7px 14px; font-size: 13px; font-weight: 500; }
.picker .opt-pills button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.picker .opt-pills button:disabled { opacity: .4; text-decoration: line-through; cursor: default; }

/* 6. Carrello: pill gialla come la CTA "Contattaci" */
.cart-fab { background: var(--yellow); color: #000; }
.cart-fab .count { background: #000; color: var(--yellow); }

/* 7. Mobile: testata più compatta, barra filtri più bassa, bottoni più leggeri */
@media (max-width: 600px) {
  header.wrap { padding-top: 40px; padding-bottom: 32px; }
  header.wrap h1 { font-size: 30px; }
  header.wrap .lede { font-size: 14px; }
  .controls { padding: 10px 0 8px; }
  .chips { padding-top: 8px; }
  .add { padding: 7px 10px; font-size: 13px; }
  .cart-fab { padding: 9px 16px; font-size: 14px; }
}

/* 8. Pannello carrello allineato alla pagina (il bottone viola Shop Pay resta com'è) */
.drawer { border-left: 0; box-shadow: -12px 0 40px rgba(0,0,0,.12); }
.drawer header { padding: 22px 24px; }
.drawer h2 { font-family: "Instrument Sans", sans-serif; font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.drawer .body { padding: 20px 24px 32px; }
.drawer .hint { font-size: 13px; }
.group { border: 0; border-top: 1px solid #000; border-radius: 0; padding: 16px 0 20px; margin-bottom: 8px; background: none; }
.group h3 { font-size: 11px; font-weight: 600; color: #000; letter-spacing: .08em; }
.line { grid-template-columns: 64px 1fr auto; gap: 14px; padding: 12px 0; }
.line img { width: 64px; height: 64px; border-radius: 0; object-fit: contain; background: var(--tile); mix-blend-mode: multiply; padding: 6px; }
.line .t { font-weight: 400; }
.line .p { font-weight: 600; }
.qty { gap: 0; margin-top: 8px; border: 1px solid var(--line); width: max-content; }
.qty button { background: #fff; border-radius: 0; width: 28px; height: 28px; }
.qty button:hover { background: var(--tile); }
.qty span { min-width: 28px; font-size: 13px; }
.line .rm { text-underline-offset: 3px; }
.pay { margin-top: 14px; }
.store { text-underline-offset: 3px; }

/* 9. Logo SpotView bianco in cima alla hero (file: spotview-logo-bianco.png) */
header.wrap .brand-logo { display: block; height: 30px; width: auto; margin: 0 0 56px; }
@media (max-width: 600px) { header.wrap .brand-logo { height: 24px; margin-bottom: 36px; } }

/* 10. Aggiunte per l'implementazione */
/* nome dell'opzione (Formato, Taglia…) sopra le pillole */
.picker .opt-group { margin-top: 12px; }
.picker .opt-group > label { margin-top: 0; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* focus visibile in giallo come nel sito */
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* 11. Frecce per scorrere i brand con il mouse (la barra di scorrimento è nascosta).
   Solo su dispositivi con puntatore: su touch si scorre col dito. */
.chips-wrap { position: relative; }
.chips-arrow {
  position: absolute; top: 12px; bottom: 2px; z-index: 2; width: 56px; padding: 0;
  display: flex; align-items: center; border: 0; border-radius: 0; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--text);
}
.chips-arrow.prev { left: 0; justify-content: flex-start; background: linear-gradient(90deg, #fff 55%, rgba(255,255,255,0)); }
.chips-arrow.next { right: 0; justify-content: flex-end; background: linear-gradient(270deg, #fff 55%, rgba(255,255,255,0)); }
.chips-arrow[hidden] { display: none; }
.chips-arrow:hover { color: #000; font-weight: 600; }
.chips-arrow.prev { padding-left: 2px; }
.chips-arrow.next { padding-right: 2px; }
@media (hover: none), (max-width: 600px) { .chips-arrow { display: none !important; } }

