/* ==========================================
   ML PROFUMERIA — SHOP (catalogo, pagine brand, pagine prodotto, carrello)
   Direzione: dark/oro raffinato. Oro solo per accenti e CTA, niente cornici
   dorate sulle card, molto spazio, foto protagoniste.
   ========================================== */

:root {
  --shop-max: 1240px;
  --surface-img: #17130f;
  --radius-img: 4px;
  --nav-h: 76px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link:hover { color: var(--gold-light); border-bottom-color: var(--gold-deep); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* etichette solo anteprima (build senza --production) */
.price-flag, .draft-flag {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.45rem;
  border: 1px dashed #d98c3a;
  border-radius: 3px;
  color: #f0b36e;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
  font-style: normal;
}

/* ---------- CARD PRODOTTO ---------- */
.p-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem 1.6rem;
}
.p-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.p-card { min-width: 0; }
.p-card[hidden] { display: none; }

.p-card-link { display: block; color: inherit; }

.p-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--surface-img);
}
.p-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease), transform 0.8s var(--ease);
}
.p-card-alt { opacity: 0; }
@media (hover: hover) {
  .p-card-link:hover .p-card-alt { opacity: 1; }
  .p-card-link:hover .p-card-media img { transform: scale(1.03); }
  .p-card-link:hover .p-card-name { color: var(--gold-light); }
}
.p-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--gold-bronze);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.p-card-placeholder svg { width: 40px; height: 40px; }

.p-card-body { padding-top: 1rem; }
.p-card-brand {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.p-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--cream);
  transition: color 0.2s var(--ease);
}
.p-card-families {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.p-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-light);
}
.p-card-price { font-size: 0.95rem; font-weight: 600; color: var(--cream); }
.p-card-sizes { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* ---------- HOMEPAGE: vetrina per brand ---------- */
.home-shop { padding: 6rem 1.5rem; max-width: var(--shop-max); margin: 0 auto; }
.home-shop .fragranze-head-actions { text-align: center; margin: -1.5rem 0 3.5rem; }
.home-brand + .home-brand { margin-top: 4.5rem; }
.home-brand-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.home-brand-title { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ---------- CATALOGO (fragranze.html) ---------- */
/* il catalogo è a tutta larghezza perché la barra filtri si attacchi all'header da bordo a bordo;
   il contenuto (maison, griglie) resta nella colonna --shop-max */
.shop { padding: 0 0 7rem; }
.shop > .shop-brand, .shop > .shop-empty { max-width: var(--shop-max); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.shop .p-card-brand { display: none; } /* la maison è già nell'intestazione del blocco */

/* barra filtri: sempre fissa sotto l'header, stesso fondo, header + barra fanno un blocco unico */
.shop-toolbar {
  position: sticky;
  top: var(--nav-offset, var(--nav-h));
  z-index: 50;
  margin: 0 0 3rem;
  padding: 0.6rem 1.5rem 0.5rem;
  background: rgba(11, 10, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.shop-toolbar > * { max-width: calc(var(--shop-max) - 3rem); margin-left: auto; margin-right: auto; }
body:has(#shopToolbar) .nav.scrolled { border-bottom-color: transparent; box-shadow: none; }

/* maison: testo maiuscoletto spaziato, quella attiva champagne con filetto sotto */
.shop-tabs {
  display: flex;
  justify-content: center;
  gap: 0.4rem 2.2rem;
}
.shop-tab {
  position: relative;
  padding: 0.55rem 0 0.7rem;
  background: none;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.shop-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.2em; /* compensa la spaziatura dopo l'ultima lettera */
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.shop-tab:hover { color: var(--cream); }
.shop-tab[aria-pressed="true"] { color: var(--gold-light); }
.shop-tab[aria-pressed="true"]::after { transform: scaleX(1); }

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-soft);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--gold-deep); color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #0b0a09; }
.chip--quiet { min-height: 34px; font-size: 0.78rem; padding: 0.3rem 0.85rem; }
.chip--quiet[aria-pressed="true"] { background: rgba(214, 188, 138, 0.14); color: var(--gold-light); border-color: var(--gold-deep); }

.shop-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-light);
}
.shop-count { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.04em; }
.shop-active {
  margin-left: 0.6rem;
  padding: 0.15rem 0.2rem;
  background: none;
  border: 0;
  color: var(--gold-light);
  font: inherit;
  cursor: pointer;
}
.shop-active::before { content: "· "; color: var(--text-muted); }
.shop-active[hidden] { display: none; }
.shop-filters-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  padding: 0 0.1rem;
  background: none;
  border: 0;
  color: var(--cream-soft);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.shop-filters-btn:hover { color: var(--gold-light); }
.shop-filters-btn svg { color: var(--gold); }
.shop-filters-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.shop-filters-dot[hidden] { display: none; }

/* pannello Filtri: sale dal basso su telefono, entra da destra su desktop */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.sheet-backdrop.visible { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 260;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  padding: 1.6rem 1.6rem calc(1.6rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(26, 20, 15, 0.9) 0%, rgba(12, 10, 8, 0.94) 100%);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  border-left: 1px solid rgba(236, 226, 213, 0.1);
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.sheet.open { transform: none; visibility: visible; transition: transform 0.4s var(--ease); }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.sheet-head h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--cream); }
.sheet-body { flex: 1; overflow-y: auto; padding: 0.4rem 0 1.4rem; }
.sheet-label {
  margin: 1.5rem 0 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.sheet-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sheet-radios { display: grid; }
.sheet-radio {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  border-bottom: 1px solid var(--line-light);
  color: var(--cream-soft);
  font-size: 0.92rem;
  cursor: pointer;
}
.sheet-radio input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.sheet-radio input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform 0.2s var(--ease); }
.sheet-radio input:checked::before { transform: scale(1); }
.sheet-radio input:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.sheet-radio:has(input:checked) { color: var(--gold-light); }
.sheet-foot { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.sheet-foot .btn { justify-content: center; padding-left: 1.1rem; padding-right: 1.1rem; letter-spacing: 0.12em; white-space: nowrap; }
html.sheet-lock { overflow: hidden; }

.shop-brand { scroll-margin-top: calc(var(--nav-offset, var(--nav-h)) + 110px); }
.shop-brand[hidden] { display: none; }
.shop-brand + .shop-brand { margin-top: 4rem; }
/* intestazione maison: una riga sottile, nome + numero a sinistra, link a destra */
.shop-brand-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.shop-brand-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.shop-brand-count { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.04em; }
.shop-brand-head .text-link { margin-left: auto; white-space: nowrap; }
.shop.is-flat .shop-brand-head { display: none; }
.shop.is-flat .shop-brand + .shop-brand { margin-top: 2.4rem; }

.shop-empty { text-align: center; padding: 4rem 1rem; color: var(--cream-soft); }
.shop-empty p { margin-bottom: 1.2rem; }

/* intro catalogo: titolo + una riga, i prodotti arrivano subito */
.page-hero--compact { padding-bottom: 2.4rem; border-bottom: 0; }
.page-hero--compact h1 { margin-bottom: 0.5rem; }

/* ---------- PAGINA BRAND ---------- */
.page-hero--brand h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.page-hero p { font-style: normal; }
.brand-story-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.brand-story-block .section-label { justify-content: center; }
.brand-story-text { color: var(--cream-soft); font-size: 1.02rem; line-height: 1.85; }
.shop-brand--page { max-width: var(--shop-max); margin: 0 auto; padding: 0 1.5rem 7rem; }

/* ---------- PAGINA PRODOTTO ---------- */
.pd { max-width: var(--shop-max); margin: 0 auto; padding: calc(var(--nav-h) + 1.8rem) 1.5rem 6rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--cream-soft); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span[aria-hidden] { color: var(--gold-bronze); }
.breadcrumb [aria-current] { color: var(--gold); }

.pd-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: start;
}

.pd-gallery { display: grid; gap: 0.8rem; }
.pd-main {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--surface-img);
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  color: var(--gold-bronze); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.pd-main--empty svg { width: 56px; height: 56px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; }
.pd-thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface-img);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: 0.9; }
.pd-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--gold); }

.pd-buy { position: sticky; top: calc(var(--nav-h) + 1.5rem); padding-top: 0.5rem; }
.pd-brand {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}
.pd-brand:hover { color: var(--gold-light); }
.pd-name { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0.6rem 0 0.6rem; }
.pd-type { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.02em; }
.pd-price { margin: 1.6rem 0 1.2rem; font-size: 1.6rem; font-weight: 600; color: var(--cream); }
.pd-teaser {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--cream-soft);
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-light);
}

.pd-form { margin-top: 1.6rem; }
.size-picker { border: 0; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.size-picker legend {
  width: 100%;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.size-opt { position: relative; cursor: pointer; }
.size-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--cream-soft);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.size-opt:hover span { border-color: var(--gold-deep); }
.size-opt input:checked + span { border-color: var(--gold); color: var(--cream); background: rgba(214, 188, 138, 0.1); }
.size-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.pd-actions { display: flex; gap: 0.8rem; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
}
.qty-btn {
  width: 44px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
}
.qty-btn:hover { color: var(--gold-light); }
.qty input {
  width: 2.4rem;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--cream);
  text-align: center;
  font: inherit;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-add { flex: 1; }
.pd-add[disabled] { opacity: 0.5; cursor: not-allowed; }

.pd-trust {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--cream-soft);
}
.pd-trust svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.pd-trust--next { margin-top: 0.6rem; }

.pd-section { max-width: 980px; margin: 6rem auto 0; }
.pd-story { max-width: 760px; text-align: center; }
.pd-story .section-label, .pd-maison .section-label { justify-content: center; }
.pd-quote {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.45;
  color: var(--cream);
}
/* 19/10: racconto lungo (testi di Michael) sotto la citazione; a sinistra per leggibilità */
.pd-story-text {
  max-width: 640px;
  margin: 1.8rem auto 0;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  line-height: 1.7;
  color: var(--cream-soft);
}
.pd-story-text p + p { margin-top: 1rem; }
.pd-quote + .pd-story-text { margin-top: 2.2rem; }

.pyramid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pyramid--single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.pyramid-col { padding: 2.2rem 1.8rem; text-align: center; }
.pyramid-col + .pyramid-col { border-left: 1px solid var(--line-light); }
.pyramid-icon { width: 30px; height: 30px; color: var(--gold); margin: 0 auto 1rem; }
.pyramid-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}
.pyramid-list { color: var(--cream-soft); font-size: 0.95rem; line-height: 1.75; }
.pd-section > .section-label { display: flex; justify-content: center; margin-bottom: 1.6rem; }

.pd-maison { max-width: 720px; text-align: center; }
/* voce unica: il nome della maison apre il racconto, in Cormorant, senza titolo separato */
.pd-maison-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: var(--cream-soft);
  margin-bottom: 1.6rem;
}
.pd-maison-lead {
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
}

.pd-related { max-width: none; }
.pd-related-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 2.4rem; }

/* ---------- CARRELLO (drawer) ---------- */
.cart-drawer-body.has-items { align-items: stretch; justify-content: flex-start; text-align: left; overflow-y: auto; }
.cart-empty a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cart-list { list-style: none; display: grid; align-content: start; gap: 1.2rem; width: 100%; }
.cart-item + .cart-item { padding-top: 1.2rem; border-top: 1px solid var(--line-light); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; align-items: start; }
.cart-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 3px; background: var(--surface-img); }
.cart-item-brand { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.cart-item-name { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--cream); }
.cart-item-meta { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-qty { display: inline-flex; align-items: center; gap: 0.2rem; margin-top: 0.45rem; }
.cart-item-qty button {
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--cream); cursor: pointer; font-size: 0.95rem; line-height: 1;
}
.cart-item-qty span { min-width: 1.8rem; text-align: center; font-size: 0.9rem; }
.cart-item-side { text-align: right; }
.cart-item-price { font-weight: 600; font-size: 0.92rem; }
.cart-item-remove {
  margin-top: 0.5rem; border: 0; background: none; color: var(--text-muted);
  font-size: 0.75rem; text-decoration: underline; cursor: pointer; padding: 0.3rem 0;
}
.cart-item-remove:hover { color: var(--gold-light); }
.cart-drawer-foot { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1rem; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.cart-subtotal strong { font-size: 1.2rem; }
.cart-note { font-size: 0.78rem; color: var(--text-muted); margin: 0.5rem 0 1rem; }
.cart-checkout { width: 100%; }
.cart-checkout[disabled] { background: transparent; color: var(--text-muted); border: 1px solid var(--line-light); box-shadow: none; text-shadow: none; cursor: not-allowed; }
.nav-cart-badge[hidden] { display: none; }


/* menu: sottovoci brand */
.nav-mobile-sub { display: grid; gap: 0.1rem; padding-left: 1rem; margin: -0.2rem 0 0.4rem; }
.nav-mobile .nav-mobile-sub a { font-size: 0.95rem; color: var(--text-muted); padding-top: 0.35rem; padding-bottom: 0.35rem; }
.nav-mobile .nav-mobile-sub a:hover { color: var(--gold-light); }

/* ---------- CHECKOUT ---------- */
.co-wrap { max-width: var(--shop-max); margin: 0 auto; padding: 0 1.5rem 7rem; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3.5rem; align-items: start; }
.co-grid[hidden], .co-empty[hidden] { display: none; }
.co-empty { text-align: center; padding: 3rem 1rem 5rem; color: var(--cream-soft); }
.co-empty p { margin-bottom: 1.4rem; }
.co-title { font-size: 1.5rem; margin: 0 0 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.co-title + .co-items { margin-bottom: 3rem; }
.co-items { list-style: none; margin: 0; padding: 0; }
.co-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 1.1rem; align-items: start; }
.co-item + .co-item { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-light); }
.co-item img { width: 80px; height: 100px; object-fit: cover; border-radius: 3px; background: var(--surface-img); }
.co-item-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--cream); }
.co-delivery { display: grid; gap: 0.7rem; }
.co-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.co-option:has(input:checked) { border-color: var(--gold-deep); background: rgba(214, 188, 138, 0.06); }
.co-option--only { grid-template-columns: 1fr auto; cursor: default; border-color: var(--gold-deep); background: rgba(214, 188, 138, 0.06); }
.co-option input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.co-option input::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform 0.2s var(--ease); }
.co-option input:checked::before { transform: scale(1); }
.co-option input:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.co-option-body { display: grid; gap: 0.15rem; }
.co-option-body strong { font-weight: 500; color: var(--cream); }
.co-option-body span { font-size: 0.82rem; color: var(--text-muted); }
.co-option-price { font-size: 0.9rem; color: var(--gold-light); white-space: nowrap; }
.co-summary {
  position: sticky;
  top: calc(var(--nav-offset, var(--nav-h)) + 1.5rem);
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(20, 18, 16, 0.6);
}
.co-totals { margin: 0 0 1.2rem; }
.co-totals div { display: flex; justify-content: space-between; align-items: baseline; padding: 0.35rem 0; font-size: 0.92rem; color: var(--cream-soft); }
.co-totals dt, .co-totals dd { margin: 0; }
.co-total { margin-top: 0.5rem; padding-top: 0.8rem !important; border-top: 1px solid var(--line); }
.co-total dt { color: var(--cream); }
.co-total dd { font-size: 1.35rem; font-weight: 600; color: var(--cream); }
.co-free-hint { font-size: 0.8rem; color: var(--gold-light); margin: -0.4rem 0 1rem; }
.co-free-hint[hidden] { display: none; }
.co-pay { width: 100%; justify-content: center; }
.co-pay[disabled] { opacity: 0.7; cursor: progress; }
.co-secure { display: flex; gap: 0.45rem; align-items: center; justify-content: center; margin-top: 0.9rem; font-size: 0.74rem; color: var(--text-muted); text-align: center; }
.co-secure svg { flex: 0 0 auto; color: var(--gold); }
.co-error { margin-top: 1rem; padding: 0.9rem 1rem; border: 1px solid rgba(214, 188, 138, 0.35); border-radius: 8px; font-size: 0.84rem; line-height: 1.55; color: var(--cream-soft); }
.co-error[hidden] { display: none; }
.co-error a { color: var(--gold-light); text-decoration: underline; }
.co-preview { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: 0.76rem; line-height: 1.55; color: #e0a768; }
.co-done { padding-bottom: 7rem; }
.co-done p + p { margin-top: 1rem; }
.co-done a:not(.btn) { color: var(--gold-light); text-decoration: underline; }
.co-done-actions { margin-top: 2.2rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-top { gap: 3rem; }
}
@media (max-width: 900px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .co-summary { position: static; }
  .pd-top { grid-template-columns: minmax(0, 1fr); }
  .pd-buy { position: static; }
  .pd-teaser { display: none; }
  .pd-price { margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-light); }
  .p-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .co-wrap { padding: 0 1rem 5rem; }
  .co-item { grid-template-columns: 64px 1fr auto; gap: 0.8rem; }
  .co-item img { width: 64px; height: 80px; }
  .co-option { padding: 0.85rem 0.9rem; gap: 0.7rem; }
  :root { --nav-h: 68px; }
  .p-grid, .p-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .p-card-name { font-size: 1rem; }
  .p-card-foot { flex-direction: column; gap: 0.15rem; }
  .shop-brand--page, .home-shop, .shop > .shop-brand, .shop > .shop-empty { padding-left: 1rem; padding-right: 1rem; }
  .shop-toolbar { margin: 0 0 2rem; padding: 0.3rem 1rem 0.5rem; }
  .shop-brand + .shop-brand { margin-top: 3rem; }
  .shop-brand-count { display: none; }
  .page-hero--compact { padding-top: calc(var(--nav-h) + 2.2rem); padding-bottom: 1.8rem; }
  .shop-tabs { justify-content: space-between; gap: 0.5rem; }
  .shop-tab { font-size: 0.68rem; letter-spacing: 0.14em; }
  .shop-tab-long { display: none; }
  .shop-toolbar-meta { margin-top: 0.3rem; padding-top: 0.3rem; }
  .sheet {
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 86svh;
    padding: 1.2rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom));
    border-left: 0;
    border-top: 1px solid rgba(236, 226, 213, 0.12);
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  .home-brand-head { flex-direction: column; gap: 0.3rem; }
  .pd { padding-left: 1rem; padding-right: 1rem; }
  .pd-section { margin-top: 4rem; }
  .pyramid { grid-template-columns: 1fr; }
  .pyramid-col + .pyramid-col { border-left: 0; border-top: 1px solid var(--line-light); }
  .pyramid-col { padding: 1.6rem 1rem; }
  .pd-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .p-card-media img, .p-card-alt, .sheet, .shop-tab::after { transition: none; }
  .p-card-link:hover .p-card-media img { transform: none; }
}
.co-item-stock { margin-top: 0.5rem; font-size: 0.8rem; color: #e8a49a; }
