/* ════════════════════════════════════════════════════════ */
/* RESET & VARIABLES */
/* ════════════════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette naturale (fredda) — Souls on Clay, collane chakra.
     Cornice neutra salvia/pietra/oliva; i colori dei chakra vivono sui prodotti. */
  --bg:   #F4F1E9;  /* bianco caldo */
  --bg2:  #ECE4D4;  /* pietra chiara — sezioni, pannelli */
  --bg3:  #E4DAC7;  /* sabbia — input, thumb, chip */
  --acc:  #566150;  /* salvia profonda — accento primario (CTA, prezzi, link) */
  --acc2: #6E7A62;  /* salvia media — hover */
  --clay: #B0764E;  /* argilla — accento caldo, con parsimonia */
  --sage: #9EAA8B;  /* salvia decorativa */
  --txt:  #3A4034;  /* oliva profondo — testo */
  --mut:  #6B7060;  /* salvia-grigio — testo secondario (AA su --bg) */
  --dim:  #A79E8A;  /* sabbia scura — testo tenue / hairline */
  --brd:  #DED5C2;  /* bordo sabbia */
  --red:  #B15C4E;  /* terracotta-rosso — errori / esaurito */
  --font-display: 'Amatic SC', cursive;
  --font-body: 'Nunito Sans', sans-serif;
  --t: 0.3s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}

button, input, select, textarea {
  font-family: inherit;
  font-weight: 400;
  font-size: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════ */
/* LOADER */
/* ════════════════════════════════════════════════════════ */

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.3rem;
  letter-spacing: 0.4em;
  color: var(--acc);
  text-transform: uppercase;
  transition: opacity 0.5s;
}

#loader.out {
  opacity: 0;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════ */
/* TOAST */
/* ════════════════════════════════════════════════════════ */

#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 950;
  background: var(--bg3);
  border: 1px solid var(--acc);
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
  border-radius: 4px;
}

#toast.show {
  opacity: 1;
  transform: none;
}

.t-ic {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════ */
/* OVERLAY & MODALS */
/* ════════════════════════════════════════════════════════ */

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 64, 52, 0.5);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}

#overlay.on {
  opacity: 1;
  pointer-events: all;
}

#cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  background: var(--bg2);
  border-left: 1px solid var(--brd);
  z-index: 501;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

#cart-panel.on {
  transform: none;
}

.ch {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ch h2 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
}

.ch-x {
  background: none;
  border: none;
  color: var(--mut);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--t);
}

.ch-x:hover {
  color: var(--txt);
}

#cart-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--mut);
  font-size: 0.875rem;
}

.ci {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--brd);
  align-items: center;
}

.ci-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

.ci-body {
  flex: 1;
  min-width: 0;
}

.ci-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-price {
  font-size: 0.875rem;
  color: var(--mut);
  margin-top: 0.1rem;
}

.ci-qty {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.qb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--brd);
  color: var(--txt);
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t);
}

.qb:hover {
  border-color: var(--acc);
}

.qn {
  font-size: 0.875rem;
  min-width: 14px;
  text-align: center;
}

.qx {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  font-size: 0.875rem;
  transition: color var(--t);
}

.qx:hover {
  color: var(--red);
}

#cart-foot {
  display: none;
}

.cf {
  padding: 1.4rem 1.5rem;
  border-top: 1px solid var(--brd);
}

.cf-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.1rem;
}

.cf-lbl {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mut);
}

.cf-tot {
  font-family: var(--font-body);
  font-size: 1.2rem;
}

/* ════════════════════════════════════════════════════════ */
/* BUY MODAL */
/* ════════════════════════════════════════════════════════ */

#buy-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 502;
  width: min(480px, 92vw);
  background: var(--bg2);
  border: 1px solid var(--brd);
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -58%);
  transition: opacity var(--t), transform var(--t);
  border-radius: 4px;
  max-height: 90vh;
  overflow-y: auto;
}

#buy-modal.on {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}

.bm-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bm-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
}

.bm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-info {
  flex: 1;
  min-width: 0;
}

.bm-tag {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 0.25rem;
}

.bm-name {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.2;
}

.bm-price {
  font-size: 0.875rem;
  color: var(--mut);
  margin-top: 0.3rem;
}

.bm-x {
  background: none;
  border: none;
  color: var(--mut);
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  padding: 0 2px;
  transition: color var(--t);
}

.bm-x:hover {
  color: var(--txt);
}

.bm-divider {
  border: none;
  border-top: 1px solid var(--brd);
  margin-bottom: 1.5rem;
}

.bm-note {
  font-size: 0.875rem;
  color: var(--mut);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════ */
/* DETAIL MODAL */
/* ════════════════════════════════════════════════════════ */

#detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 503;
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg2);
  border: 1px solid var(--brd);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -58%);
  transition: opacity var(--t), transform var(--t);
  border-radius: 4px;
}

#detail-modal.on {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}

.dm-hero {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.dm-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-hero-art {
  width: 100%;
  height: 100%;
}

/* Galleria: miniature sotto la foto grande del detail modal */
.dm-thumbs {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.55rem;
  background: linear-gradient(0deg, rgba(30, 26, 20, 0.42), transparent);
}
.dm-thumb {
  width: 52px; height: 52px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.72;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.dm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-thumb:hover { opacity: 1; transform: translateY(-2px); }
.dm-thumb.on { opacity: 1; border-color: var(--acc); }

.dm-x {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(244, 241, 233, 0.75);
  border: none;
  color: var(--txt);
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
  z-index: 2;
}

.dm-x:hover {
  background: rgba(244, 241, 233, 0.95);
}

.dm-body {
  padding: 1.6rem;
}

.dm-tag {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 0.4rem;
}

.dm-name {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.dm-price {
  font-size: 1.05rem;
  color: var(--acc);
  margin-bottom: 0.9rem;
}

.dm-desc {
  white-space: pre-line;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--mut);
  margin-bottom: 1rem;
}

.dm-badge-ok {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
  border: 1px solid var(--acc);
  margin-bottom: 1.2rem;
  border-radius: 2px;
}

.dm-badge-no {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  margin-bottom: 1.2rem;
  border-radius: 2px;
}

.dm-btns {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.dm-btn-sec {
  width: 100%;
  padding: 0.95rem;
  background: transparent;
  color: var(--acc);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--acc);
  cursor: pointer;
  transition: all var(--t);
  border-radius: 2px;
}

.dm-btn-sec:hover:not(:disabled) {
  background: var(--acc);
  color: var(--bg);
}

.dm-btn-sec:disabled,
.btn-pri:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════ */
/* THANK YOU SCREEN */
/* ════════════════════════════════════════════════════════ */

#ty-screen {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

#ty-screen h1 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  margin-bottom: 1.2rem;
}

#ty-screen p {
  font-size: 0.875rem;
  color: var(--mut);
  max-width: 440px;
  line-height: 1.9;
  margin-bottom: 2.2rem;
}

#ty-screen .btn-p {
  padding: 0.9rem 2.4rem;
}

/* ════════════════════════════════════════════════════════ */
/* BUTTONS */
/* ════════════════════════════════════════════════════════ */

.btn-pri {
  width: 100%;
  padding: 0.95rem;
  background: var(--acc);
  color: var(--bg);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--t);
  border-radius: 2px;
}

.btn-pri:hover:not(:disabled) {
  background: var(--acc2);
}

.btn-p {
  padding: 0.8rem 2rem;
  background: var(--acc);
  color: var(--bg);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--t);
  border-radius: 2px;
}

.btn-p:hover {
  background: var(--acc2);
}

.btn-ghost {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mut);
  background: none;
  border: none;
  border-bottom: 1px solid var(--dim);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color var(--t);
}

.btn-ghost:hover {
  color: var(--txt);
}

/* ════════════════════════════════════════════════════════ */
/* NAV */
/* ════════════════════════════════════════════════════════ */

nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(244, 241, 233, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brd);
}

.logo {
  font-family: var(--font-body);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--txt);
  cursor: pointer;
  background: none;
  border: none;
}

.logo em {
  color: var(--acc);
  font-style: normal;
}

.nav-r {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nbtn {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mut);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t);
  padding: 0 1rem;
}

.nbtn:hover {
  color: var(--txt);
}

.cbtn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mut);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t);
}

.cbtn:hover {
  color: var(--txt);
}

.cbadge {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-ham {
  display: none;
  background: none;
  border: none;
  color: var(--txt);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.2rem;
}

/* ════════════════════════════════════════════════════════ */
/* HERO */
/* ════════════════════════════════════════════════════════ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 0 3rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Hero: carosello di foto in crossfade */
.h-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  transform: translateX(20%);   /* sposta la foto a destra, via dallo scrim sinistro */
}
.h-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;   /* la traslazione della carousel sposta il prodotto */
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.h-slide.on { opacity: 1; }

/* Scrim sopra le foto, sotto il testo: pesato a sinistra su desktop */
.h-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244,241,233,1) 0%, rgba(244,241,233,1) 24%, rgba(244,241,233,0.85) 42%, rgba(244,241,233,0.43) 58%, rgba(244,241,233,0) 80%),
    linear-gradient(0deg, rgba(244,241,233,0.28) 0%, rgba(244,241,233,0) 45%);
}
.h-sh { display: none; }

/* Testo hero: font pulito e corposo per la leggibilità (l'Amatic SC del titolo era troppo sottile) */
.hero .eyebrow { color: var(--txt); font-weight: 700; letter-spacing: 0.25em; }
.hero .h-ttl { font-family: var(--font-body); font-weight: 700; }
.hero .h-ttl em { color: var(--txt); }
.hero .h-dsc { color: var(--txt); }
.hero .eyebrow,
.hero .h-ttl,
.hero .h-dsc { text-shadow: 0 1px 3px rgba(244,241,233,0.95); }

.h-cnt {
  position: relative;
  z-index: 2;
  max-width: 55%;
}

.eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--acc);
  display: block;
  margin-bottom: 1rem;
}

.h-ttl {
  font-family: var(--font-body);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.h-ttl em {
  font-style: italic;
  color: var(--acc);
}

.h-dsc {
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--mut);
  max-width: 400px;
  margin-bottom: 2.5rem;
}

.h-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════ */
/* SECTIONS */
/* ════════════════════════════════════════════════════════ */

.sec {
  padding: 5rem 3rem;
}

.s-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.s-num {
  font-family: var(--font-body);
  font-size: 4rem;
  font-weight: 300;
  color: var(--bg3);
  line-height: 1;
  margin-right: 1.1rem;
}

.s-tw {
  flex: 1;
}

.s-ttl {
  font-family: var(--font-body);
  font-size: 2.3rem;
  font-weight: 300;
  line-height: 1.1;
}

.s-lnk {
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mut);
  background: none;
  border: none;
  border-bottom: 1px solid var(--dim);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color var(--t);
  white-space: nowrap;
}

.s-lnk:hover {
  color: var(--txt);
}

/* ════════════════════════════════════════════════════════ */
/* PILLS */
/* ════════════════════════════════════════════════════════ */

.pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.pill {
  padding: 0.38rem 0.95rem;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--brd);
  color: var(--mut);
  cursor: pointer;
  transition: all var(--t);
  border-radius: 2px;
}

.pill:hover,
.pill.on {
  border-color: var(--acc);
  color: var(--acc);
}

/* Sotto-pill (sottocategorie Titolo 2) */
.pill.sub {
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  letter-spacing: 0.1em;
  margin-left: 0.3rem;
  opacity: 0.78;
  border-style: dashed;
}
.pill.sub:hover,
.pill.sub.on {
  border-style: solid;
  opacity: 1;
  border-color: var(--acc);
  color: var(--acc);
}

/* ════════════════════════════════════════════════════════ */
/* PRODUCT GRID */
/* ════════════════════════════════════════════════════════ */

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* Vetrina (max 7 prodotti): 4 colonne → card più compatte */
.pgrid.vetrina {
  grid-template-columns: repeat(4, 1fr);
}

/* Bottone "Scopri tutta la collezione" */
#vetrina-more {
  justify-content: center;
  align-items: center;
  margin-top: 2.8rem;
}

.vetrina-more-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mut);
  background: transparent;
  border: 1px solid var(--dim);
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  transition: border-color var(--t), color var(--t);
}

.vetrina-more-btn:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.pcard {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg2);
  border: none;
  padding: 0;
}

.pimg {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.p-art,
.p-photo {
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.p-photo {
  object-fit: cover;
}

.pcard:hover .p-art,
.pcard:hover .p-photo {
  transform: scale(1.05);
}

.p-ovl {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(244, 241, 233, 0.95) 0%, rgba(244, 241, 233, 0.35) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
}

.p-tag {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 0.2rem;
}

.p-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.18rem;
}

.p-prc {
  font-size: 0.875rem;
  color: var(--mut);
}

.p-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
}

.pcard:hover .p-actions {
  opacity: 1;
  transform: none;
}

.p-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(244, 241, 233, 0.78);
  border: 1px solid rgba(158, 170, 139, 0.4);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.p-btn:hover:not(:disabled) {
  background: var(--acc);
  color: var(--bg);
  border-color: var(--acc);
}

.p-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.p-btn.buy {
  font-size: 0.875rem;
}

.p-empty {
  grid-column: 1 / -1;
  padding: 4rem;
  text-align: center;
  color: var(--mut);
}

.p-empty h3 {
  font-family: var(--font-body);
  font-size: 1.9rem;
  font-weight: 300;
  margin-bottom: 0.6rem;
}

/* asym layout rimosso — sostituito da .pgrid.vetrina */

.p-esaurito {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  background: rgba(244, 241, 233, 0.88);
  border-radius: 2px;
}

.pcard.sold .p-btn {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

/* ════════════════════════════════════════════════════════ */
/* CATEGORIES */
/* ════════════════════════════════════════════════════════ */

.csec {
  background: var(--bg2);
  padding: 5rem 3rem;
}

.cgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}

/* 5 categorie: 3 sopra + 2 sotto centrate → layout simmetrico */
.cgrid .ctile             { grid-column: span 2; }
.cgrid .ctile:nth-child(4){ grid-column: 2 / span 2; }
.cgrid .ctile:nth-child(5){ grid-column: 4 / span 2; }

/* ── Tile immagine ───────────────────────────────────── */
.ctile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: none;
  cursor: pointer;
  display: block;
  padding: 0;
}

.ctile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.ctile:hover .ctile-bg {
  transform: scale(1.06);
}

.ctile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(15,8,2,0.88) 0%,
    rgba(15,8,2,0.25) 50%,
    transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem 1.5rem;
  text-align: left;
  gap: 0.28rem;
  transition: background 0.35s;
}

.ctile:hover .ctile-overlay {
  background: linear-gradient(to top,
    rgba(15,8,2,0.92) 0%,
    rgba(15,8,2,0.38) 55%,
    transparent 100%);
}

.c-lbl {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #fff;
}

.c-subs {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
}

.c-sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.42);
  margin-top: 0.05rem;
}

/* ════════════════════════════════════════════════════════ */
/* INFO SECTION */
/* ════════════════════════════════════════════════════════ */

.info-sec {
  padding: 5rem 3rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 3.5rem;
}

.info-card {
  background: var(--bg2);
  padding: 2rem;
}

.info-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--acc);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.info-card li {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--mut);
  padding-left: 1rem;
  position: relative;
}

.info-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--dim);
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--bg2);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  color: var(--txt);
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
  transition: color var(--t);
}

.faq-q:hover {
  color: var(--acc);
}

.faq-q span {
  font-size: 0.9rem;
  color: var(--mut);
  transition: transform var(--t);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-q span {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 1.4rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--mut);
}

.faq-item.open .faq-a {
  display: block;
}

/* ════════════════════════════════════════════════════════ */
/* NEWSLETTER / LEAD */
/* ════════════════════════════════════════════════════════ */

.lead-sec {
  padding: 5rem 3rem;
  background: var(--bg2);
  text-align: center;
}

.lead-inner {
  max-width: 500px;
  margin: 0 auto;
}

.lead-sub {
  font-size: 0.875rem;
  color: var(--mut);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.lead-note {
  font-size: 0.875rem;
  color: var(--dim);
  margin-top: 0.2rem;
}

/* ════════════════════════════════════════════════════════ */
/* MANIFESTO */
/* ════════════════════════════════════════════════════════ */

.manifesto {
  display: flex;
  min-height: 40vh;
}

.m-txt {
  flex: 1;
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.m-q {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 1.4rem;
}

.m-q em {
  color: var(--acc);
  font-style: normal;
}

.m-b {
  font-size: 0.875rem;
  line-height: 2;
  color: var(--mut);
  max-width: 380px;
}

.m-art {
  width: 34%;
  background: linear-gradient(145deg, #E9E2D0, #DCE3D3 55%, #C9B79E);
  position: relative;
}

.m-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--acc), transparent);
}

/* ════════════════════════════════════════════════════════ */
/* FOOTER */
/* ════════════════════════════════════════════════════════ */

footer {
  background: var(--bg);
  border-top: 1px solid var(--brd);
  padding: 3rem;
}

.f-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.f-logo {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}

.f-logo em {
  color: var(--acc);
  font-style: normal;
}

.f-desc {
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--mut);
}

.f-col h4 {
  font-size: 0.875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 1rem;
}

.f-lnks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.f-lnks a,
.f-lnks button {
  font-size: 0.875rem;
  color: var(--mut);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  text-decoration: none;
  transition: color var(--t);
  display: block;
}

.f-lnks a:hover,
.f-lnks button:hover {
  color: var(--txt);
}

/* Dati venditore — obbligo di legge, deve restare leggibile */
.f-seller {
  border-top: 1px solid var(--brd);
  margin-bottom: 1.4rem;
  padding-top: 1.4rem;
}

.f-seller p {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--mut);
  max-width: 70ch;
}

.f-seller strong {
  color: var(--txt);
  font-weight: 500;
}

.f-bot {
  border-top: 1px solid var(--brd);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.f-copy {
  font-size: 0.875rem;
  color: var(--mut);
}

.f-adm {
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t);
}

.f-adm:hover {
  color: var(--mut);
}

/* ════════════════════════════════════════════════════════ */
/* FORMS */
/* ════════════════════════════════════════════════════════ */

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 0.45rem;
}

.fi,
.fsel,
.fa {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg3);
  border: 1px solid var(--brd);
  color: var(--txt);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--t);
  border-radius: 2px;
}

.fi:focus,
.fsel:focus,
.fa:focus {
  border-color: var(--acc);
}

.fa {
  resize: vertical;
  min-height: 75px;
}

.fsel {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7060'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.f-btns {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
}

.f-err {
  font-size: 0.875rem;
  color: var(--red);
  margin-top: 0.4rem;
  display: none;
}

/* ════════════════════════════════════════════════════════ */
/* ADMIN STYLES */
/* ════════════════════════════════════════════════════════ */

.a-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--brd);
  position: sticky;
  top: 0;
  z-index: 50;
}

.a-bar h1 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 300;
}

.a-bar h1 em {
  color: var(--acc);
  font-style: normal;
}

.a-btns {
  display: flex;
  gap: 0.7rem;
}

.a-body {
  padding: 2rem;
}

.ab {
  padding: 0.42rem 1.1rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--brd);
  color: var(--mut);
  cursor: pointer;
  transition: all var(--t);
  border-radius: 2px;
}

.ab:hover:not(:disabled) {
  border-color: var(--acc);
  color: var(--acc);
}

.ab.pri {
  background: var(--acc);
  color: var(--bg);
  border-color: var(--acc);
}

.ab.pri:hover {
  background: var(--acc2);
  border-color: var(--acc2);
}

.ab.dng:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}

.ab:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.lcard {
  max-width: 340px;
  margin: 5rem auto;
  padding: 2.3rem;
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: 4px;
}

.l-ttl {
  font-family: var(--font-body);
  font-size: 1.7rem;
  font-weight: 300;
  margin-bottom: 0.35rem;
}

.l-sub {
  font-size: 0.875rem;
  color: var(--mut);
  margin-bottom: 1.8rem;
}

.l-err {
  font-size: 0.875rem;
  color: var(--red);
  margin-bottom: 0.7rem;
  display: none;
}

.l-hint {
  font-size: 0.875rem;
  color: var(--mut);
  margin-top: 0.9rem;
}

.l-hint code {
  color: var(--acc);
  background: var(--bg3);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat {
  flex: 1;
  padding: 1.1rem;
  background: var(--bg2);
  border: 1px solid var(--brd);
  text-align: center;
  border-radius: 2px;
}

.st-v {
  font-family: var(--font-body);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--acc);
}

.st-l {
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mut);
  margin-top: 0.15rem;
}

.tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.46rem 1.3rem;
  font-size: 0.875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--brd);
  color: var(--mut);
  cursor: pointer;
  transition: all var(--t);
  border-radius: 2px;
}

.tab.on {
  border-color: var(--acc);
  color: var(--acc);
}

.t-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mut);
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--brd);
  white-space: nowrap;
  background: var(--bg2);
}

td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--brd);
  font-size: 0.875rem;
  vertical-align: middle;
}

tr:hover td {
  background: var(--bg3);
}

.t-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  background: var(--bg3);
  color: var(--mut);
  border-radius: 2px;
}

.t-empty {
  padding: 3.5rem;
  text-align: center;
  color: var(--mut);
}

.t-empty h3 {
  font-family: var(--font-body);
  font-size: 1.7rem;
  font-weight: 300;
  margin-bottom: 0.6rem;
}

.t-empty p {
  font-size: 0.875rem;
}

.f-panel {
  max-width: 560px;
  background: var(--bg2);
  border: 1px solid var(--brd);
  padding: 2rem;
  border-radius: 4px;
}

.f-ttl {
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 300;
  margin-bottom: 1.6rem;
}

.imgbox {
  border: 1px dashed var(--brd);
  position: relative;
  transition: border-color var(--t);
  min-height: 100px;
  border-radius: 2px;
}

.imgbox:hover {
  border-color: var(--acc);
}

.img-in {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.img-in.hidden {
  display: none;
}

#imgprev {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  display: none;
  border-radius: 2px;
}

.img-ph {
  padding: 1.8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.img-ph-i {
  font-size: 1.5rem;
  color: var(--mut);
}

.img-ph-h {
  font-size: 0.875rem;
  color: var(--mut);
}

.img-ph-s {
  font-size: 0.875rem;
  color: var(--dim);
}

.etsy-info {
  background: var(--bg2);
  border: 1px solid var(--brd);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  max-width: 640px;
  border-radius: 4px;
}

.etsy-info h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 0.8rem;
  color: var(--acc);
}

.etsy-info ol {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.etsy-info li {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--mut);
}

.etsy-info li strong {
  color: var(--txt);
  font-weight: 400;
}

.etsy-info code {
  font-size: 0.875rem;
  background: var(--bg3);
  padding: 0.1rem 0.4rem;
  color: var(--acc);
  border-radius: 2px;
}

.etsy-drop {
  max-width: 640px;
  border: 2px dashed var(--brd);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t);
  margin-bottom: 1rem;
  position: relative;
  border-radius: 4px;
}

.etsy-drop:hover,
.etsy-drop.drag {
  border-color: var(--acc);
}

.etsy-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.etsy-drop p {
  font-size: 0.875rem;
  color: var(--mut);
  margin: 0;
}

.etsy-drop span {
  font-size: 0.875rem;
  color: var(--dim);
  display: block;
}

#etsy-prev {
  margin-top: 1rem;
  display: none;
  max-width: 640px;
}

.e-chk {
  accent-color: var(--acc);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

#gdpr {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 940;
  background: var(--bg2);
  border-top: 1px solid var(--brd);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

#gdpr p {
  font-size: 0.875rem;
  color: var(--mut);
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════════════════════════════ */
/* ELITE BADGE & WISHLIST HEART */
/* ════════════════════════════════════════════════════════ */

.p-elite {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 3;
  padding: 0.18rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(244, 241, 233, 0.85);
  color: #d4a96a;
  border: 1px solid rgba(212, 169, 106, 0.55);
  border-radius: 2px;
  pointer-events: none;
  font-family: var(--font-body);
}

.p-wl-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(244, 241, 233, 0.72);
  border: 1px solid rgba(158, 170, 139, 0.3);
  color: var(--mut);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
  line-height: 1;
}

.p-wl-btn:hover {
  background: rgba(244, 241, 233, 0.9);
  border-color: rgba(224, 112, 112, 0.6);
  color: #e07070;
}

.p-wl-btn.active {
  color: #e07070;
  border-color: rgba(224, 112, 112, 0.65);
  background: rgba(244, 241, 233, 0.85);
}

/* Shift action buttons below wishlist button */
.p-actions { top: 2.8rem; }

/* Elite card border accent */
.pcard.elite::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(212, 169, 106, 0.28);
  z-index: 2;
}

/* ════════════════════════════════════════════════════════ */
/* WISHLIST PANEL */
/* ════════════════════════════════════════════════════════ */

#wishlist-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 340px;
  background: var(--bg2);
  border-right: 1px solid var(--brd);
  z-index: 501;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

#wishlist-panel.on {
  transform: none;
}

.wl-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--brd);
  align-items: center;
}

.wl-item-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
  cursor: pointer;
}

.wl-item-body {
  flex: 1;
  min-width: 0;
}

.wl-item-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color var(--t);
}

.wl-item-name:hover { color: var(--acc); }

.wl-item-price {
  font-size: 0.875rem;
  color: var(--mut);
  margin-top: 0.1rem;
}

.wl-item-remove {
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: color var(--t);
  padding: 0.2rem;
}

.wl-item-remove:hover { color: var(--red); }

.wl-empty {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--mut);
  font-size: 0.875rem;
}

/* ════════════════════════════════════════════════════════ */
/* DETAIL MODAL — WISHLIST, DIMS, RELATED */
/* ════════════════════════════════════════════════════════ */

.dm-wl-btn {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  background: rgba(244, 241, 233, 0.75);
  border: 1px solid rgba(158, 170, 139, 0.35);
  color: var(--mut);
  font-size: 1.1rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  z-index: 2;
}

.dm-wl-btn:hover {
  color: #e07070;
  border-color: rgba(224, 112, 112, 0.6);
  background: rgba(244, 241, 233, 0.9);
}

.dm-wl-btn.active {
  color: #e07070;
  border-color: rgba(224, 112, 112, 0.65);
}

.dm-dims {
  margin: 0.8rem 0 1.2rem;
  padding: 0.85rem 1rem;
  background: var(--bg3);
  border-radius: 2px;
}

.dm-dims-ttl {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 0.65rem;
}

.dm-dims-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.dm-dim-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.dm-dim-val {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--acc);
}

.dm-dim-lbl {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mut);
}

.dm-related {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--brd);
}

.dm-rel-ttl {
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 0.8rem;
}

.dm-rel-grid {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--brd) transparent;
}

.dm-rel-card {
  flex-shrink: 0;
  width: 100px;
  cursor: pointer;
  border: 1px solid var(--brd);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--t);
}

.dm-rel-card:hover { border-color: var(--acc); }

.dm-rel-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.dm-rel-info {
  padding: 0.4rem 0.5rem;
}

.dm-rel-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-rel-price {
  font-size: 0.75rem;
  color: var(--acc);
  margin-top: 0.1rem;
}

/* ════════════════════════════════════════════════════════ */
/* PAYPAL BUTTON & PAYMENT DIVIDER */
/* ════════════════════════════════════════════════════════ */

.payment-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.75rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--brd);
}

.btn-paypal {
  width: 100%;
  padding: 0.95rem;
  background: #F5C518;
  color: #003087;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--t);
  border-radius: 2px;
  font-weight: 500;
}

.btn-paypal:hover:not(:disabled) { background: #f0ba10; }

.btn-paypal:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Wishlist btn in detail modal — active override for dm-btn-sec */
#dm-wl-btn.active {
  border-color: #e07070;
  color: #e07070;
}

#dm-wl-btn.active:hover:not(:disabled) {
  background: #e07070;
  color: var(--bg);
  border-color: #e07070;
}

/* ════════════════════════════════════════════════════════ */
/* RESPONSIVE */
/* ════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.2rem;
  }

  .nav-ham {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(244, 241, 233, 0.97);
    border-bottom: 1px solid var(--brd);
    flex-direction: column;
    gap: 0;
    z-index: 201;
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nbtn {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--brd);
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
  }

  .hero {
    padding: 3rem 1.2rem;
  }

  .h-cnt {
    max-width: 100%;
  }

  .h-sh { display: none; }
  /* Hero mobile: prodotto centrato in alto, scrim pesato in basso (testo leggibile) */
  .h-carousel { transform: translateY(-18%); }   /* foto in alto, via dalla sfumatura in basso */
  .h-scrim {
    background:
      linear-gradient(0deg, rgba(244,241,233,1) 0%, rgba(244,241,233,0.96) 24%, rgba(244,241,233,0.58) 45%, rgba(244,241,233,0) 66%),
      linear-gradient(90deg, rgba(244,241,233,0.18) 0%, rgba(244,241,233,0) 60%);
  }

  .sec,
  .csec,
  .info-sec,
  .lead-sec {
    padding: 3rem 1.2rem;
  }

  .pgrid {
    grid-template-columns: 1fr 1fr;
  }

  /* asym mobile rules rimosso */

  /* Mobile categorie: 2+2+1 */
  .cgrid { grid-template-columns: repeat(2, 1fr); }
  .cgrid .ctile             { grid-column: span 1; }
  .cgrid .ctile:nth-child(4){ grid-column: span 1; }
  .cgrid .ctile:nth-child(5){ grid-column: 1 / span 2; }
  /* Mobile vetrina: 2 colonne */
  .pgrid.vetrina { grid-template-columns: repeat(2, 1fr); }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .f-grid {
    grid-template-columns: 1fr;
  }

  .f-row {
    grid-template-columns: 1fr;
  }

  .lead-row {
    grid-template-columns: 1fr;
  }

  #cart-panel,
  #wishlist-panel {
    width: 100vw;
  }

  .manifesto {
    flex-direction: column;
  }

  .m-art {
    display: none;
  }

  .stats {
    flex-wrap: wrap;
  }

  #gdpr {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .s-hd {
    flex-direction: column;
    gap: 1rem;
  }

  .s-num {
    font-size: 2.5rem;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  footer {
    padding: 2rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .s-ttl {
    font-size: 1.7rem;
  }

  .h-ttl {
    font-size: 2.2rem;
  }

  #buy-modal,
  #detail-modal {
    width: 95vw;
    padding: 1.5rem;
  }

  .dm-hero {
    height: 200px;
  }

  .lcard {
    width: 90vw;
    margin: 2rem auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* RESTYLE NATURALE — Souls on Clay · collane chakra (2026-07-24, T-260724-08) */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Titoli "display" in Amatic SC — solo i grandi/decorativi; il corpo resta Nunito. */
.logo, .f-logo, #loader,
.h-ttl, .s-ttl, .s-num, #ty-screen h1, .m-q,
.ch h2, .l-ttl, .f-ttl, .a-bar h1,
.p-empty h3, .t-empty h3,
.set-banner-txt h3, .set-price .now, .pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
}
.h-ttl, .s-ttl { letter-spacing: 0.01em; }
.logo   { font-size: 1.75rem; letter-spacing: 0.06em; }
.f-logo { font-size: 1.55rem; }
.logo em, .f-logo em { color: var(--acc); font-style: normal; }

/* ── Griglia prodotti: card ariose, testo SOTTO l'immagine ─────────────── */
.pgrid,
.pgrid.vetrina {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.6rem 1.2rem;
}
.pcard {
  background: transparent;
  border: none;
  border-radius: 6px;
  overflow: visible;
}
.pcard .pimg {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
}
.pcard.elite::after { content: none; }   /* nessuna cornice "elite" tra i chakra */
.p-info { padding: 0.75rem 0.2rem 0.2rem; text-align: left; }
.p-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}
.p-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.p-sub { font-size: 0.82rem; color: var(--mut); line-height: 1.45; margin-top: 0.2rem; }
.p-prc { font-size: 0.98rem; color: var(--acc); font-weight: 700; margin-top: 0.4rem; }
.p-btn.buy { font-size: 1.05rem; }

/* ── Offerta: il Set dei 7 Chakra ──────────────────────────────────────── */
.set-banner {
  margin-top: 2.6rem;
  padding: 1.7rem 1.9rem;
  background: linear-gradient(135deg, var(--bg2), #E7EADF);
  border: 1px solid var(--brd);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.set-banner-txt { flex: 1 1 320px; }
.set-banner-txt h3 { font-size: 2rem; color: var(--txt); line-height: 1; }
.set-banner-txt p { font-size: 0.9rem; color: var(--mut); margin-top: 0.35rem; max-width: 48ch; line-height: 1.6; }
.set-dots { display: flex; gap: 6px; margin-top: 0.7rem; }
.set-dots i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.set-cta { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.set-price .old { font-size: 0.85rem; color: var(--mut); text-decoration: line-through; }
.set-price .now { font-size: 2.4rem; color: var(--acc); line-height: 1; display: block; }
.set-banner .btn-pri { width: auto; padding: 0.8rem 1.8rem; }

/* ── Sezione "3 pilastri" (sostituisce le categorie figurine) ──────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar {
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 10px;
  padding: 2.1rem 1.7rem;
  text-align: center;
}
.pillar .p-ic { font-size: 1.7rem; line-height: 1; }
.pillar h3 { font-size: 1.7rem; color: var(--txt); margin: 0.6rem 0 0.5rem; line-height: 1; }
.pillar p { font-size: 0.9rem; color: var(--mut); line-height: 1.75; }

@media (max-width: 768px) {
  .pillars { grid-template-columns: 1fr; }
  .set-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .set-cta { align-items: flex-start; text-align: left; }
  .pgrid, .pgrid.vetrina { grid-template-columns: repeat(2, 1fr); gap: 1.1rem 0.9rem; }
}


/* ══════════════════════════════════════════════════════════ */
/* ALLINEAMENTO STILE — pulsanti + scheda prodotto (2026-07-31) */
/* ══════════════════════════════════════════════════════════ */

/* 1) Pulsanti arrotondati (pill): estetica morbida/artigianale, via dallo squadrato 2px */
.btn-pri, .btn-p, .dm-btn-sec, .ab, .btn-paypal, .vetrina-more-btn, .pill, .cbtn {
  border-radius: 100px;
}

/* 2) Pulsanti in sovraimpressione alle foto: cerchi morbidi, crema translucida + blur, accento del brand */
.p-btn, .p-wl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(244,241,233, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(86,97,80, 0.30);
  box-shadow: 0 3px 12px rgba(40, 32, 22, 0.16);
  color: var(--acc);
  font-size: 1.05rem;
  line-height: 1;
}
.p-wl-btn { top: 0.7rem; right: 0.7rem; }
.p-actions { top: 3.15rem; gap: 0.5rem; }
.p-btn:hover:not(:disabled),
.p-wl-btn:hover {
  background: var(--acc);
  color: var(--bg);
  border-color: var(--acc);
}
.p-wl-btn.active {
  color: var(--red);
  border-color: rgba(86,97,80, 0.30);
  background: rgba(244,241,233, 0.9);
}

/* 3) Scheda prodotto: la foto + galleria è la parte principale (grande, in alto);
      scorrendo sotto si arriva a descrizione e pulsanti */
.dm-hero { height: min(62vh, 540px); }
.dm-thumbs { padding: 0.7rem; gap: 0.5rem; }
.dm-thumb { width: 56px; height: 56px; border-radius: 14px; }
@media (max-width: 768px) {
  .dm-hero { height: 56vh; }
  .dm-thumb { width: 50px; height: 50px; }
}


/* ══════════════════════════════════════════════════════════ */
/* EFFETTO SFONDO FISSO in home (parallax) — 2026-07-31        */
/* La foto dell'hero resta ferma nel viewport; il resto della  */
/* pagina scorre sopra. Il carosello e lo scrim diventano un   */
/* layer fisso dietro; le sezioni opache lo coprono salendo.   */
/* ══════════════════════════════════════════════════════════ */
.h-carousel { position: fixed; z-index: -2; }
.h-scrim    { position: fixed; z-index: -1; }
.hero { background: transparent; }
.sec, .manifesto { background: var(--bg); }


/* ══════════════════════════════════════════════════════════ */
/* INFO & FAQ COMPRESSI — schede Info a fisarmonica (2026-07-31) */
/* Le 4 schede "Info & Spedizioni" erano sempre aperte (~20 righe). */
/* Ora sono chiuse come le FAQ: la sezione si accorcia, il contenuto */
/* resta a un clic. Le FAQ erano gia a fisarmonica.                  */
/* ══════════════════════════════════════════════════════════ */
.info-grid { grid-template-columns: 1fr; gap: 2px; margin-bottom: 2rem; }
.info-card { padding: 0; }
.info-card h3 {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0; padding: 1.05rem 1.4rem; cursor: pointer;
}
.info-card h3::after {
  content: "+"; color: var(--mut); font-size: 0.9rem;
  transition: transform var(--t); margin-left: 1rem; flex-shrink: 0;
}
.info-card.open h3::after { transform: rotate(45deg); }
.info-card ul { display: none; padding: 0 1.4rem 1.2rem; }
.info-card.open ul { display: flex; }

/* ── Codice sconto (buy modal) · Blocco A ──────────────────────────────────── */
.code-row { display: flex; gap: .5rem; align-items: stretch; }
.code-row .fi { flex: 1; text-transform: uppercase; }
.btn-code {
  padding: 0 1rem; white-space: nowrap; cursor: pointer;
  background: none; border: 1px solid var(--brd); color: var(--mut);
  border-radius: 2px; font-size: .85rem; transition: all var(--t);
}
.btn-code:hover:not(:disabled) { border-color: var(--acc); color: var(--acc); }
.btn-code:disabled { opacity: .5; cursor: default; }
.code-fb { font-size: .8rem; margin: .4rem 0 0; min-height: 1em; }
.code-fb.ok { color: var(--acc); }
.code-fb.err { color: var(--red); }
.bm-summary {
  margin: .2rem 0 .6rem; padding: .55rem .8rem;
  border: 1px solid var(--brd); border-radius: 2px; background: var(--bg3);
}
.bm-sum-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--mut); padding: .15rem 0; }
.bm-sum-row.tot { font-weight: 600; color: var(--txt); border-top: 1px solid var(--brd); margin-top: .25rem; padding-top: .4rem; }

/* ══════════════════════════════════════════════════════════ */
/* SCOPRI ANCHE — brand gemello (cross-promo SoC <-> AdC · 2026-08-01) */
/* Sezione statica e isolata: NON tocca catalogo, carrello o checkout. */
/* Guidata dalle variabili --bg/--acc/... -> prende la palette del sito. */
/* ══════════════════════════════════════════════════════════ */
.gemello {
  background: var(--bg2);
  border-top: 1px solid var(--brd);
  padding: 4.5rem 3rem;
}
.gem-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.gem-ttl { margin: .2rem 0 .9rem; }
.gem-sub {
  max-width: 640px;
  margin: 0 auto 2.4rem;
  color: var(--mut);
  font-size: 1.02rem;
  line-height: 1.65;
}
.gem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}
.gem-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.gem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}
.gem-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: var(--bg3);
}
.gem-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: .85rem 1rem;
}
.gem-name {
  font-weight: 600;
  font-size: .92rem;
  color: var(--txt);
  text-align: left;
  line-height: 1.25;
}
.gem-price {
  font-weight: 700;
  font-size: .92rem;
  color: var(--acc);
  white-space: nowrap;
}
.gem-cta {
  display: inline-block;
  padding: .8rem 2rem;
  background: var(--acc);
  color: var(--bg);
  font-size: .875rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background var(--t);
}
.gem-cta:hover { background: var(--acc2); }
@media (max-width: 768px) {
  .gemello { padding: 3.5rem 1.5rem; }
  .gem-grid { gap: .7rem; }
  .gem-sub { font-size: .96rem; }
}
@media (max-width: 480px) {
  .gem-meta { flex-direction: column; align-items: flex-start; gap: .1rem; padding: .6rem .7rem; }
  .gem-name { font-size: .8rem; }
  .gem-price { font-size: .82rem; }
}
