/* =========================================================================
   OLIVEA — Design system
   Brand mediterraneo: verde ulivo, sabbia, oro. Tipografia elegante.
   ========================================================================= */

:root {
  /* Palette */
  --olive: #5b6f3a;
  --olive-dark: #404f29;
  --olive-light: #7a8f55;
  --sand: #f4efe6;
  --sand-dark: #e8e0d0;
  --gold: #8a6d1e;
  --gold-deep: #755c14; /* oro scuro per testi piccoli su fondo chiaro (contrasto AA) */
  --gold-light: #b89438;
  --ink: #2b2a26;
  --ink-soft: #5d5b54;
  --muted: #8a877e;
  --white: #ffffff;
  --danger: #b3261e;
  --success: #3c7a3c;
  --border: #ddd5c6;

  /* Tipografia */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Ritmo */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(43, 42, 38, 0.08);
  --shadow: 0 6px 24px rgba(43, 42, 38, 0.10);
  --shadow-lg: 0 14px 40px rgba(43, 42, 38, 0.14);
  --maxw: 1180px;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--olive-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
button { font-family: inherit; cursor: pointer; }

/* Dettagli di rifinitura */
::selection { background: var(--olive); color: var(--white); }
:focus-visible { outline: 2px solid var(--olive-light); outline-offset: 2px; }

/* Numeri allineati in tabelle e prezzi */
.card__price, .pd__price, .summary-row, .order-total,
.cust-spent-cell, .prod-price-cell, .data-table td { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--olive { background: var(--olive-dark); color: var(--sand); }
.section--olive h2, .section--olive h3 { color: var(--white); }
.section--olive .eyebrow { color: var(--gold-light); }
.section--olive .lead { color: rgba(244,239,230,0.85); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-head { margin-bottom: 48px; }
.section-head h2 { margin-bottom: 12px; }
/* Filetto dorato sotto il titolo di sezione */
.section-head h2::after {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--gold-light); margin-top: 16px;
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { background: rgba(244, 239, 230, 0.97); box-shadow: var(--shadow); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.7rem; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--olive-dark);
  display: flex; align-items: center; gap: 8px;
}
.brand .brand-leaf { color: var(--gold); display: inline-flex; }
.brand .brand-leaf svg { width: 20px; height: 20px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--ink); position: relative; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--olive-dark); }
.nav-links a:not(.nav-cart)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--gold);
  transition: right var(--transition);
}
.nav-links a:not(.nav-cart):hover::after,
.nav-links a.active:not(.nav-cart)::after { right: 0; }
.nav-cart {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--olive-dark); color: var(--white);
  padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  transition: background var(--transition);
}
.nav-cart:hover { background: var(--gold); color: var(--white); }
.nav-cart svg { width: 16px; height: 16px; }
.nav-cart .badge {
  background: var(--white); color: var(--olive-dark);
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; font-family: var(--font-sans);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn--primary { background: var(--olive-dark); color: var(--white); }
.btn--primary:hover { background: var(--gold); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-light); }
.btn--light { background: var(--white); color: var(--olive-dark); }
.btn--light:hover { background: var(--gold); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--olive-dark); color: var(--olive-dark); }
.btn--outline:hover { background: var(--olive-dark); color: var(--white); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--olive-dark); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 34px; font-size: 1rem; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Hero ---------- */
/* L'immagine di copertina contiene già loghi e testi grafici: va tenuta
   "pura", senza overlay — titolo e CTA stanno nello spazio dedicato sotto. */
.hero__media img {
  width: 100%; height: auto;
  max-height: 72vh; object-fit: cover;
}
.hero__inner { max-width: 720px; margin: 0 auto; padding: 64px 0 72px; text-align: center; }
.hero h1 { margin-bottom: 18px; font-size: clamp(2.4rem, 5.5vw, 4.1rem); }
.hero p { font-size: 1.2rem; margin: 0 auto 30px; color: var(--ink-soft); max-width: 52ch; }
.hero .eyebrow { color: var(--gold-deep); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }

/* ---------- Page header (interna) ---------- */
.page-head {
  background: var(--olive-dark); color: var(--sand);
  padding: 64px 0 56px; text-align: center;
  /* Foto degli ulivi sotto un velo verde: dà profondità senza rubare leggibilità */
  background-image: linear-gradient(rgba(64, 79, 41, 0.93), rgba(64, 79, 41, 0.93)), url("../assets/header.webp");
  background-size: cover; background-position: center;
}
.page-head h1 { color: var(--white); }
.page-head p { color: rgba(244,239,230,0.85); margin-top: 10px; max-width: 60ch; margin-left: auto; margin-right: auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(244,239,230,0.7); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold-light); }
/* Breadcrumb su fondo chiaro (es. scheda prodotto): colore scuro, altrimenti invisibile */
.section--sand .breadcrumb, .section--white .breadcrumb { color: var(--muted); margin-bottom: 18px; }
.section--sand .breadcrumb a, .section--white .breadcrumb a { color: var(--olive-dark); }

/* ---------- Griglia prodotti ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
}
.card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.card:hover, .card.reveal.in:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media {
  aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand-dark); position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.card__title { font-size: 1.3rem; margin: 6px 0 8px; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--gold); }
.card__tag { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__price { font-size: 1.25rem; font-weight: 700; color: var(--olive-dark); font-family: var(--font-serif); }
.badge-out {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: var(--white);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
/* Badge descrittivo card ("Miglior valore", "Senza caffeina"…): mai insieme
   a "Esaurito" — i renderer mostrano l'uno o l'altro. */
.card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--white);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}

/* ---------- Scheda prodotto ---------- */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.gallery__main {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery__thumb {
  width: 84px; height: 84px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: var(--sand-dark);
}
.gallery__thumb.active { border-color: var(--gold); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd__cat { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.pd__title { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 6px; }
.pd__price { font-size: 1.7rem; font-weight: 700; color: var(--olive-dark); font-family: var(--font-serif); margin: 14px 0 22px; }
.pd__tagline { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 22px; }
.pd__highlights { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.pd__highlights li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.pd__highlights li::before { content: "✦"; color: var(--gold); position: absolute; left: 0; }

.qty-row { display: flex; align-items: center; gap: 18px; margin: 22px 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 42px; background: var(--white); border: 0; font-size: 1.2rem; color: var(--olive-dark); }
.qty button:hover { background: var(--sand); }
.qty input { width: 44px; height: 42px; text-align: center; border: 0; font-size: 1rem; font-weight: 600; }
.pd__avail { font-size: 0.9rem; color: var(--success); font-weight: 500; }
.pd__avail.out { color: var(--danger); }

/* Accordion informazioni prodotto (consigli d'uso, origine, ingredienti…) */
.pd-info {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); margin-top: 10px; overflow: hidden;
}
.pd-info summary {
  cursor: pointer; padding: 14px 18px; list-style: none;
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.pd-info summary::-webkit-details-marker { display: none; }
.pd-info summary::after {
  content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 400; line-height: 1;
  transition: transform 0.2s ease;
}
.pd-info[open] summary::after { transform: rotate(45deg); }
.pd-info[open] summary { border-bottom: 1px solid var(--border); }
.pd-info__body { padding: 14px 18px 16px; color: var(--ink-soft); }
.pd-info__body p { margin: 0; }

/* Box benefici (riusato su home + prodotto) */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.benefit {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit:hover, .benefit.reveal.in:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.benefit__icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--sand-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  margin-bottom: 16px; color: var(--olive-dark);
}
.benefit__icon svg { width: 22px; height: 22px; display: block; }
/* Variante "vetro" sulle sezioni oliva scure */
.section--olive .benefit {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  backdrop-filter: blur(4px);
  box-shadow: none;
}
.section--olive .benefit h3 { color: var(--white); }
.section--olive .benefit p { color: rgba(244,239,230,0.85); }
.section--olive .benefit__icon { background: rgba(255,255,255,0.14); color: var(--gold-light); }

/* Sezione testo narrativa */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story h2 { margin-bottom: 16px; }
.story p { color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Tabelle dati (es. analisi HPLC in azienda.html) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.95rem; }
.data-table thead th {
  background: var(--olive-dark); color: var(--white); text-align: left;
  padding: 13px 18px; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
}
.data-table tbody td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.data-table tbody tr:nth-child(even) { background: rgba(244,239,230,0.45); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Carrello ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--border); align-items: center;
}
.cart-item__img { width: 90px; height: 90px; border-radius: 8px; overflow: hidden; background: var(--sand-dark); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-family: var(--font-serif); font-size: 1.25rem; }
.cart-item__price { color: var(--ink-soft); font-size: 0.9rem; }
.cart-item__remove { background: none; border: 0; color: var(--danger); font-size: 0.85rem; padding: 4px 0; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cart-summary {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); position: sticky; top: 96px;
}
.cart-summary h3 { margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-soft); }
.summary-row.total { font-size: 1.3rem; font-weight: 700; color: var(--ink); border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px; font-family: var(--font-serif); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state h2 { margin-bottom: 10px; }
.empty-state__art { color: var(--gold); margin-bottom: 10px; }
.empty-state__art svg { width: 64px; height: 64px; display: inline-block; }
.empty-state__art--success { color: var(--success); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white);
  transition: border var(--transition);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--olive-light); }
.field textarea { min-height: 110px; resize: vertical; }

/* ---------- Alert / conferma ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.95rem; animation: fadeIn 0.35s ease; }
.alert--success { background: #e7f3e7; color: var(--success); border: 1px solid #bfe0bf; }
.alert--error { background: #fbe9e7; color: var(--danger); border: 1px solid #f0c0bb; }
.alert--info { background: #eef2ea; color: var(--olive-dark); border: 1px solid #d4dcc9; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(244,239,230,0.8); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--white); font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(244,239,230,0.8); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand { font-family: var(--font-serif); font-size: 1.6rem; color: var(--white); margin-bottom: 12px; }
.footer-brand .brand-leaf { color: var(--gold-light); display: inline-flex; vertical-align: -3px; margin-right: 7px; }
.footer-brand .brand-leaf svg { width: 22px; height: 22px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.login-box { max-width: 380px; margin: 60px auto; background: var(--white); padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.login-box h1 { font-size: 1.8rem; text-align: center; margin-bottom: 8px; }
.login-box p { text-align: center; color: var(--ink-soft); margin-bottom: 24px; }
.admin-product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.admin-product-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.admin-product-card header img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.admin-product-card h3 { flex: 1; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.toggle input { width: 18px; height: 18px; }

/* ---------- Admin tabs & ordini ---------- */
.admin-tab {
  background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 12px 22px; font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: color var(--transition), border-color var(--transition);
  margin-bottom: -2px; display: inline-flex; align-items: center; gap: 8px;
}
.admin-tab:hover { color: var(--olive-dark); }
.admin-tab.active { color: var(--olive-dark); border-bottom-color: var(--gold); }
.tab-badge {
  background: var(--gold); color: var(--white);
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Admin dashboard: KPI + grafico ---------- */
.admin-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--olive-dark);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card--gold { border-left-color: var(--gold); }
.stat-card--alert { border-left-color: var(--danger); }
.stat-card__value {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 700;
  color: var(--ink); line-height: 1.1;
}
.stat-card--gold .stat-card__value { color: #8a5a00; }
.stat-card--alert .stat-card__value { color: var(--danger); }
.stat-card__label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-top: 6px; font-weight: 600;
}
.stat-card__sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.admin-chart-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.admin-chart-card__title {
  font-family: var(--font-sans); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin-bottom: 12px;
}
.admin-chart svg { width: 100%; height: auto; display: block; }

/* ---------- Admin: scheda impostazioni (pagamenti) ---------- */
.settings-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 30px;
  box-shadow: var(--shadow-sm); max-width: 760px;
}
.settings-card code { background: var(--sand); padding: 2px 6px; border-radius: 6px; font-size: 0.85em; }
.settings-card .pay { margin-left: 4px; }

/* ---------- Admin dashboard home ---------- */
.admin-home-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin: 8px 0 32px;
}
.admin-home-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  font-family: var(--font-sans);
}
.admin-home-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.admin-home-card__icon { font-size: 3rem; line-height: 1; }
.admin-home-card__title {
  font-family: var(--font-serif);
  font-size: 1.6rem; color: var(--olive-dark); font-weight: 600;
}
.admin-home-card__desc { font-size: 0.9rem; color: var(--muted); }
.admin-home-card__badge {
  position: absolute; top: 18px; right: 18px;
  min-width: 26px; height: 26px; font-size: 0.8rem;
}

/* ---------- Admin subnav interna ---------- */
.admin-subnav {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.admin-subnav__home {
  background: none; border: 0; cursor: pointer;
  color: var(--olive-dark); font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 600; padding: 6px 10px;
  border-radius: var(--radius); transition: background var(--transition);
}
.admin-subnav__home:hover { background: var(--sand); }
.admin-subnav__sep { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.admin-subnav__link {
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 500; padding: 6px 12px;
  border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--transition), background var(--transition);
}
.admin-subnav__link:hover { color: var(--olive-dark); background: var(--sand); }

/* ---------- Admin tabella prodotti (lista) ---------- */
.products-table-wrap {
  overflow-x: auto; background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.products-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.products-table thead th {
  background: var(--olive-dark); color: var(--white); text-align: left;
  padding: 13px 16px; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
}
.products-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.products-table tbody tr:last-child td { border-bottom: 0; }
.products-row { cursor: pointer; transition: background var(--transition); }
.products-row:hover { background: var(--sand); }
.prod-name-cell { display: inline-flex; align-items: center; gap: 12px; }
.prod-name-cell strong { font-weight: 600; color: var(--ink); }
.prod-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; vertical-align: middle; }
.prod-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.status-available { background: #d8efd8; color: var(--success); }
.status-out { background: #fdeccc; color: #8a5a00; }
.prod-price-cell { font-weight: 700; color: var(--ink); font-family: var(--font-serif); font-size: 1.05rem; }
.prod-edit-icon { font-size: 1rem; opacity: 0.6; }
.products-row:hover .prod-edit-icon { opacity: 1; }

/* ---------- Admin dettaglio prodotto ---------- */
.admin-back {
  background: none; border: 0; cursor: pointer; color: var(--olive-dark);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  padding: 6px 0; margin-bottom: 16px;
}
.admin-back:hover { text-decoration: underline; }

/* ---------- Admin tabella clienti ---------- */
.customers-table-wrap {
  overflow-x: auto; background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.customers-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.customers-table thead th {
  background: var(--olive-dark); color: var(--white); text-align: left;
  padding: 13px 16px; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
}
.customers-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.customers-table tbody tr:last-child td { border-bottom: 0; }
.customers-row { cursor: pointer; transition: background var(--transition); }
.customers-row:hover { background: var(--sand); }
.cust-count-cell { font-weight: 700; color: var(--ink); text-align: right; }
.cust-spent-cell {
  font-weight: 700; color: var(--success);
  font-family: var(--font-serif); font-size: 1.05rem; text-align: right;
}

/* ---------- Tags & filtri ---------- */
.customers-filters {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; margin-bottom: 16px;
}
.customers-filters__label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-right: 4px;
}
.tag-chip {
  background: var(--white); border: 1px solid var(--border); color: var(--muted);
  padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.tag-chip:hover { border-color: var(--gold); color: var(--olive-dark); }
.tag-chip.active { background: var(--gold); border-color: var(--gold); color: var(--white); }
.tag-chip--clear { background: transparent; color: var(--danger); border-color: var(--border); }
.tag-chip--clear:hover { border-color: var(--danger); color: var(--danger); }
.tag-badge {
  display: inline-block; background: var(--sand); color: var(--olive-dark);
  padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  margin-right: 4px; cursor: pointer; transition: all var(--transition);
}
.tag-badge:hover { background: var(--gold); color: var(--white); }

/* ---------- Dettaglio cliente (sezione ordini) ---------- */
.customer-orders-list { margin-top: 24px; }
.customer-orders-list h4 {
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.customer-order-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem;
  gap: 12px;
}
.customer-order-row:last-child { border-bottom: 0; }

.orders-table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.orders-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.orders-table thead th {
  background: var(--olive-dark); color: var(--white); text-align: left;
  padding: 13px 16px; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
}
.orders-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.orders-table tbody tr:last-child td { border-bottom: 0; }
.orders-table tbody tr:hover { background: var(--sand); }
.order-id { font-family: monospace; font-weight: 600; color: var(--olive-dark); }
.order-customer strong { display: block; }
.order-customer span { font-size: 0.82rem; color: var(--muted); }
.order-total { font-weight: 700; color: var(--ink); font-family: var(--font-serif); font-size: 1.05rem; }
.order-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.status-nuovo { background: #fdeccc; color: #8a5a00; }
.status-in-lavorazione { background: #dbe7ff; color: #2a4d8f; }
.status-spedito { background: #e3e8fd; color: #4a3a9c; }
.status-completato { background: #d8efd8; color: var(--success); }
.status-annullato { background: #fbe1de; color: var(--danger); }

/* Badge stato pagamento (ordini con carta; "—" per gli ordini offline) */
.pay { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.pay--paid { background: #d8efd8; color: var(--success); }
.pay--pending { background: #fdeccc; color: #8a5a00; }
.pay--failed { background: #ece9e2; color: #6f6a5e; }

/* Selettore metodo di pagamento nel checkout */
.pay-methods { display: grid; gap: 10px; margin-bottom: 6px; }
.pay-method { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 13px 15px; cursor: pointer; background: var(--white); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.pay-method:hover { border-color: var(--gold-light); }
.pay-method:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.pay-method input[type="radio"] { margin-top: 3px; accent-color: var(--gold); }
.pay-method__body { display: flex; flex-direction: column; gap: 3px; }
.pay-method__body strong { font-size: 0.95rem; }
.pay-method__hint { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

/* Avviso annullamento pagamento (ritorno da Stripe) */
.alert--warning { background: #fdf3d7; color: #7a5a00; border: 1px solid #ecd9a0; }
.order-select { font-family: inherit; font-size: 0.85rem; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); }
.order-detail-toggle { background: none; border: 0; color: var(--olive-dark); font-size: 0.85rem; text-decoration: underline; padding: 0; }
.order-detail-row td { background: var(--sand); padding: 16px 20px; }
.order-detail-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.order-detail-content h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.order-detail-content ul { list-style: none; padding: 0; margin: 0; }
.order-detail-content li { padding: 4px 0; color: var(--ink-soft); border-bottom: 1px dashed var(--border); }
.order-detail-content li:last-child { border-bottom: 0; }

/* ---------- Footer: trust e contatti rapidi ---------- */
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25); color: rgba(244,239,230,0.85);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.footer-social a:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-company { margin-top: 16px; font-size: 0.82rem; line-height: 1.55; color: rgba(244,239,230,0.68); }
.footer-company a { color: rgba(244,239,230,0.85); }
.footer-company a:hover { color: var(--gold-light); }
.footer-trust {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  font-size: 0.85rem; color: rgba(244,239,230,0.75);
  margin-bottom: 28px;
}
.footer-trust span { display: inline-flex; align-items: center; gap: 8px; }
.footer-trust svg { width: 15px; height: 15px; color: var(--gold-light); }

/* ---------- Skeleton (segnaposto caricamento) ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--sand-dark); border-radius: 6px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.card--skeleton { pointer-events: none; }
.card--skeleton .card__media { border-radius: 0; }
.skeleton--line { height: 12px; margin-bottom: 10px; }
.w-40 { width: 40%; } .w-60 { width: 60%; } .w-90 { width: 90%; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.product-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.product-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.product-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.benefits-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.benefits-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.benefits-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .skeleton::after, .alert { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.text-muted { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-detail, .story, .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-home-cards { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .admin-stats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; background: var(--sand);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform 0.3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-toggle { display: block; }
  .cart-summary { position: static; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 44px 0 52px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Admin: toolbar (ricerca/filtri/export) e paginazione ---------- */
.admin-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; margin-bottom: 16px;
}
.admin-toolbar input[type="search"] {
  flex: 1 1 220px; min-width: 170px;
  padding: 9px 13px; border: 1px solid var(--border); border-radius: 9px;
  font: inherit; background: var(--white); color: var(--ink);
}
.admin-toolbar input[type="search"]:focus {
  outline: none; border-color: var(--gold);
}
.admin-toolbar select {
  padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px;
  font: inherit; background: var(--white); color: var(--ink); cursor: pointer;
}
.admin-toolbar__spacer { flex: 1 1 0; }

.btn--sm { padding: 6px 13px; font-size: 0.85rem; }
.btn--danger {
  background: transparent; border-color: var(--danger); color: var(--danger);
}
.btn--danger:hover { background: var(--danger); color: var(--white); }

.admin-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px; margin-top: 16px;
}
.admin-pager__info { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 540px) {
  .admin-toolbar input[type="search"] { flex: 1 1 100%; }
  .admin-toolbar__spacer { display: none; }
}

/* ---------- Tracking ordine (pagina pubblica) ---------- */
.tracking-box {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow);
}
.track-order-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.track-order-card__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--sand); gap: 12px; flex-wrap: wrap;
}
.track-order-card__body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px;
}
.track-order-card__body h4 {
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.track-items { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.track-items li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.track-progress {
  display: flex; padding: 18px 20px 8px; gap: 6px;
}
.track-progress__step {
  flex: 1; text-align: center; position: relative; font-size: 0.78rem;
  color: var(--muted);
}
.track-progress__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--white);
  font-weight: 700; font-size: 0.8rem; margin-bottom: 6px;
}
.track-progress__label { display: block; }
.track-progress__step.done { color: var(--olive-dark); }
.track-progress__step.done .track-progress__dot {
  background: var(--olive-dark); border-color: var(--olive-dark); color: var(--white);
}
.track-progress__step:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; left: calc(50% + 20px);
  width: calc(100% - 40px); height: 2px; background: var(--border);
}
.track-progress__step.done:not(:last-child)::after { background: var(--olive-dark); }
.track-events { padding: 4px 20px 18px; }
.track-events h4 {
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.track-events ul { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.track-events li { padding: 5px 0; border-bottom: 1px dashed var(--border); }

@media (max-width: 640px) {
  .track-order-card__body { grid-template-columns: 1fr; }
  .track-progress__label { font-size: 0.66rem; }
}

/* ---------- Ordini admin: dettaglio con sconto/IVA ---------- */
.order-detail-content .summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 0.88rem; }

/* ---------- Form coupon (admin) ---------- */
.coupon-type-grid { display: flex; gap: 10px; }
.coupon-type-grid .field { flex: 1; }

/* ---------- Banner informativo cookie ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.cookie-banner--visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner__inner {
  max-width: var(--maxw); margin: 0 auto;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie-banner__text { flex: 1 1 320px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.cookie-banner__text strong { color: var(--ink); }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Checkbox di consenso privacy (checkout, contatti) */
.consent-check {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft);
  line-height: 1.5; cursor: pointer;
}
.consent-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--olive-dark); flex-shrink: 0; }
.consent-check a { text-decoration: underline; }

/* ---------- Pagine legali (privacy, cookie policy) ---------- */
.legal-doc { max-width: 780px; margin: 0 auto; }
.legal-doc h2 { font-size: 1.45rem; margin: 34px 0 10px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc ul { color: var(--ink-soft); margin-bottom: 12px; }
.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc strong { color: var(--ink); }
.legal-doc code { background: var(--sand); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-size: 0.85em; }
.legal-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.92rem; margin: 6px 0 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.legal-table th, .legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal-table thead th { background: var(--sand); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--olive-dark); }
.legal-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .legal-table { display: block; overflow-x: auto; }
}

/* ---------- Trust strip (home) ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--sand-dark); }
.trust-strip__inner {
  display: flex; flex-wrap: wrap; gap: 14px 34px;
  padding-top: 18px; padding-bottom: 18px;
  font-size: 0.88rem; color: var(--ink-soft);
}
.trust-strip__item { display: inline-flex; align-items: center; gap: 9px; }
.trust-strip__item svg { width: 19px; height: 19px; color: var(--olive); flex-shrink: 0; }
@media (max-width: 640px) {
  .trust-strip__inner { justify-content: center; gap: 10px 22px; font-size: 0.82rem; }
}

/* ---------- Trust nel riepilogo checkout ---------- */
.checkout-trust { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--sand-dark); display: flex; flex-direction: column; gap: 10px; }
.checkout-trust li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.84rem; color: var(--ink-soft); line-height: 1.45; }
.checkout-trust svg { width: 17px; height: 17px; color: var(--olive); flex-shrink: 0; margin-top: 1px; }
.checkout-trust a { color: var(--gold-deep); }

/* ---------- Recensioni prodotto ---------- */
.reviews-aggregate { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; }
.reviews-aggregate__avg { font-family: var(--font-serif); font-size: 2.2rem; color: var(--olive-dark); line-height: 1; }
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--sand-dark); font-size: 1.05rem; line-height: 1; }
.star--on { color: var(--gold-light); }
.reviews-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.review { background: var(--sand); border-radius: 12px; padding: 18px 20px; }
.review__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review__title { font-size: 1.02rem; margin: 8px 0 4px; color: var(--olive-dark); }
.review__body { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.review-form-box { max-width: 720px; margin: 26px auto 0; background: var(--white); border: 1px solid var(--sand-dark); border-radius: 12px; padding: 4px 20px; }
.review-form-box summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--olive-dark); }
.review-form-box[open] summary { border-bottom: 1px solid var(--sand-dark); margin-bottom: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.star-picker { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-picker span { font-size: 1.5rem; color: var(--sand-dark); cursor: pointer; transition: color .12s; }
.star-picker span:hover,
.star-picker span:hover ~ span,
.star-picker input:checked ~ span,
.star-picker input:checked ~ span ~ span { color: var(--gold-light); }

/* ---------- FAQ prodotto ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--sand-dark); border-radius: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 15px 18px; color: var(--ink); list-style-position: inside; }
.faq-item[open] summary { border-bottom: 1px solid var(--sand-dark); }
.faq-item__body { padding: 12px 18px 16px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }
.faq-item__body p { margin: 0; }

/* ---------- Carrello: soglia spedizione + cross-sell ---------- */
.freeship { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }
.freeship__text { margin-bottom: 7px; }
.freeship__bar { height: 7px; border-radius: 6px; background: var(--sand-dark); overflow: hidden; }
.freeship__bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--olive-light), var(--olive)); transition: width .35s; }
.freeship--ok { display: flex; align-items: center; gap: 8px; color: var(--success); font-size: 0.9rem; }
.freeship--ok svg { width: 18px; height: 18px; }

.cross-sell { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--sand-dark); }
.cross-sell__title { font-size: 1.05rem; color: var(--olive-dark); margin-bottom: 12px; }
.cross-sell__item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--sand-dark); }
.cross-sell__item:last-child { border-bottom: 0; }
.cross-sell__img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--sand); flex-shrink: 0; }
.cross-sell__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cross-sell__name { font-weight: 600; color: var(--ink); text-decoration: none; }
.cross-sell__name:hover { color: var(--olive); }
.cross-sell__price { font-size: 0.9rem; color: var(--gold-deep); font-weight: 600; margin-top: 2px; }
.cross-sell__item .btn { margin-left: auto; }
@media (max-width: 520px) {
  .cross-sell__item { flex-wrap: wrap; }
  .cross-sell__item .btn { margin-left: 70px; }
}

/* ---------- Admin: recensioni ---------- */
.review-admin { background: var(--white); border: 1px solid var(--sand-dark); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.review-admin__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.92rem; }
.review-admin__title { font-weight: 600; color: var(--olive-dark); margin-top: 8px; }
.review-admin__body { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; white-space: pre-wrap; }
.review-admin__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
