/* Choppers Sports Dog — foglio del tema.
 *
 * Due livelli:
 *  1. le variabili del core (:root) — checkout, area clienti, blog, pagine
 *     legali e il carrello laterale restano del core, e così prendono comunque
 *     i colori e i font del tema invece di quelli di Altura;
 *  2. le classi .csd-*, usate solo dalle pagine che il tema rifà.
 *
 * Impostazioni → Aspetto può ridefinire le variabili del core: vince il
 * pannello, come deve essere.
 */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

/* Il core definisce la palette su :root[data-theme=<negozio>]: serve un
   selettore appena più specifico perché vinca quella del tema. */
:root, html:root[data-theme] {
  --color-brand: #12332E;
  --color-brand-light: #1B4B42;
  --color-sand: #F4EADF;
  --color-sand-dark: #EADBC9;
  --color-cream: #FFF7EE;
  --color-gold: #FF6A13;
  --color-gold-dark: #D8500A;
  --color-on-gold: #FFFFFF;
  --color-border: #F0E1D2;
  --color-border-dark: #E2CFBB;
  --color-text: #12332E;
  --color-text-muted: #5C7A74;
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-sm: 12px;
  --radius-base: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-card: 0 10px 26px rgba(18, 51, 46, .07);
  --shadow-hover: 0 18px 34px rgba(18, 51, 46, .12);
  --shadow-modal: 0 30px 70px rgba(18, 51, 46, .3);

  --csd-cream: #FFF7EE;
  --csd-ink: #12332E;
  --csd-ink-2: #1B4B42;
  --csd-orange: #FF6A13;
  --csd-orange-dark: #E2560A;
  --csd-rust: #D8500A;
  --csd-line: #F0E1D2;
  --csd-line-2: #EFE2D4;
  --csd-sand: #F4EADF;
  --csd-peach: #FFE7D6;
  --csd-peach-2: #FFF3E8;
  --csd-mint: #DFF3E9;
  --csd-mint-ink: #1B5A47;
  --csd-lilac: #DED5F7;
  --csd-lilac-ink: #3E3358;
  --csd-yellow: #FDE9A9;
  --csd-yellow-ink: #4A3E12;
  --csd-sky: #CFE6FB;
  --csd-muted: #5C7A74;
  --csd-muted-2: #8AA39D;
  --csd-text-2: #3E5F59;
  --csd-ok: #1B7A5A;
  --csd-warn: #C0700A;
}

.csd-root, .csd-root * { box-sizing: border-box; }
.csd-root {
  background: var(--csd-cream);
  color: var(--csd-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.csd-root h1, .csd-root h2, .csd-root h3, .csd-root h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 900;
  letter-spacing: -.02em;
  text-wrap: pretty;
  color: var(--csd-ink);
}
.csd-root p { margin: 0; }
.csd-root a { color: var(--csd-rust); text-decoration: none; }
.csd-root a:hover { color: var(--csd-ink); }
.csd-root button, .csd-root input, .csd-root select, .csd-root textarea { font-family: inherit; }
.csd-root button { cursor: pointer; }
.csd-root button:disabled { cursor: not-allowed; }
.csd-root :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--csd-orange);
  outline-offset: 2px;
  border-radius: 8px;
}
.csd-root ::selection { background: #FFD9C7; }
.csd-icon { display: inline-block; flex: none; vertical-align: -.15em; }

@keyframes csdIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes csdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .csd-root *, .csd-root *::before, .csd-root *::after { animation: none !important; transition: none !important; }
}

.csd-wrap { max-width: 1280px; margin: 0 auto; }
.csd-section { padding: 56px 20px; }
.csd-section--tight { padding: 0 20px 64px; }
.csd-section--white { background: #fff; }
.csd-stack { display: flex; flex-direction: column; gap: 22px; }
.csd-row-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; }
.csd-h2 { font-size: clamp(26px, 3vw, 38px); }
.csd-lead { color: var(--csd-muted); font-size: 15px; line-height: 1.5; }
.csd-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--csd-muted-2); }
.csd-link-strong { font-weight: 800; font-size: 14px; }
.csd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Bottoni ─────────────────────────────────────────────────────────── */
.csd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: 16px; padding: 14px 22px;
  font-size: 15px; font-weight: 800; line-height: 1.1;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
  text-align: center;
}
.csd-btn--primary { background: var(--csd-orange); color: #fff; }
.csd-root a.csd-btn--primary { color: #fff; }
.csd-btn--primary:hover:not(:disabled) { background: var(--csd-orange-dark); color: #fff; }
.csd-btn--primary.csd-btn--glow { box-shadow: 0 12px 24px rgba(255, 106, 19, .3); }
.csd-btn--dark { background: var(--csd-ink); color: #fff; }
.csd-root a.csd-btn--dark { color: #fff; }
.csd-btn--dark:hover:not(:disabled) { background: var(--csd-orange); color: #fff; }
.csd-btn--outline { background: #fff; color: var(--csd-ink); border: 2px solid var(--csd-ink); }
.csd-root a.csd-btn--outline { color: var(--csd-ink); }
.csd-btn--outline:hover:not(:disabled) { background: var(--csd-ink); color: #fff; }
.csd-btn--soft { background: var(--csd-cream); color: var(--csd-ink); border: 1px solid var(--csd-line-2); }
.csd-root a.csd-btn--soft { color: var(--csd-ink); }
.csd-btn--soft:hover:not(:disabled) { border-color: var(--csd-orange); }
.csd-btn--ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .6); }
.csd-root a.csd-btn--ghost-light { color: #fff; }
.csd-btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .14); color: #fff; }
.csd-btn--white { background: #fff; color: var(--csd-rust); font-weight: 900; }
.csd-root a.csd-btn--white { color: var(--csd-rust); }
.csd-btn--white:hover { background: var(--csd-ink); color: #fff; }
.csd-btn--sm { padding: 11px 16px; font-size: 13px; border-radius: 14px; }
.csd-btn--block { width: 100%; }
.csd-btn:disabled { opacity: .5; }
.csd-round {
  flex: none; width: 48px; height: 48px; border-radius: 999px; border: none;
  background: var(--csd-orange); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(255, 106, 19, .35);
  transition: transform .15s ease, background .15s ease;
}
.csd-round:hover:not(:disabled) { transform: scale(1.08); background: var(--csd-orange-dark); }
.csd-round:active:not(:disabled) { transform: scale(.94); }
.csd-round:disabled { background: #D9CBBE; box-shadow: none; }
.csd-pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 7px 13px; font-size: 13px; font-weight: 700; border: 1px solid var(--csd-line);
  background: #fff; color: var(--csd-text-2); white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.csd-root a.csd-pill { color: var(--csd-text-2); }
.csd-pill:hover { border-color: var(--csd-orange); color: var(--csd-rust); }
.csd-pill[aria-pressed="true"], .csd-pill.is-on { background: var(--csd-orange); border-color: var(--csd-orange); color: #fff; font-weight: 800; }
.csd-root a.csd-pill.is-on { color: #fff; }
.csd-spinner { width: 18px; height: 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: csdSpin .7s linear infinite; }
@keyframes csdSpin { to { transform: rotate(360deg); } }

/* ── Campi ───────────────────────────────────────────────────────────── */
.csd-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; color: var(--csd-text-2); }
.csd-input, .csd-select {
  border: 1px solid #E7DACB; background: #fff; border-radius: 14px;
  padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--csd-ink); min-width: 0;
}
.csd-select { background: var(--csd-cream); font-weight: 700; }

/* ── Topbar e intestazione ───────────────────────────────────────────── */
.csd-topbar { background: var(--csd-ink); color: var(--csd-cream); font-size: 13px; padding: 9px 20px; }
.csd-topbar__in { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; justify-content: center; }
.csd-topbar__item { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.csd-topbar__item .csd-icon { color: #FF9E5E; }

.csd-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 247, 238, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--csd-line);
}
.csd-header__main { padding: 12px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.csd-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.csd-brand__mark { width: 42px; height: 42px; border-radius: 14px; background: var(--csd-orange); color: #fff; display: grid; place-items: center; }
.csd-brand__logo { height: 42px; width: auto; display: block; }
.csd-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.csd-brand__name { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--csd-ink); }
.csd-brand__slogan { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--csd-orange); }
.csd-pro-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; background: var(--csd-mint); color: var(--csd-mint-ink); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 800; }
.csd-root a.csd-pro-pill { color: var(--csd-mint-ink); }
.csd-searchbtn {
  flex: 1; min-width: 200px; height: 46px; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--csd-line); border-radius: 16px; padding: 0 16px;
  color: var(--csd-muted-2); font-size: 14px; text-align: left; white-space: nowrap; overflow: hidden;
}
.csd-searchbtn:hover { border-color: var(--csd-orange); }
.csd-searchbtn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.csd-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.csd-iconbtn {
  position: relative; width: 46px; height: 46px; border-radius: 16px; border: 1px solid var(--csd-line);
  background: #fff; color: var(--csd-ink); display: grid; place-items: center;
}
.csd-root a.csd-iconbtn { color: var(--csd-ink); }
.csd-iconbtn:hover { border-color: var(--csd-orange); }
.csd-cartbtn {
  position: relative; height: 46px; padding: 0 18px; border-radius: 16px; border: none;
  background: var(--csd-orange); color: #fff; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; gap: 9px; box-shadow: 0 8px 18px rgba(255, 106, 19, .32);
}
.csd-cartbtn:hover { background: var(--csd-orange-dark); }
.csd-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 999px;
  background: var(--csd-ink); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; padding: 0 5px;
}
.csd-bell { display: flex; align-items: center; }
.csd-nav { padding: 0 20px 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.csd-nav::-webkit-scrollbar { display: none; }
.csd-nav a {
  flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--csd-muted); white-space: nowrap;
}
.csd-nav a:hover { background: var(--csd-sand); color: var(--csd-ink); }
.csd-nav a.is-on { background: var(--csd-ink); color: #fff; font-weight: 800; }
.csd-nav a.csd-nav__pro { margin-left: auto; background: var(--csd-peach); color: var(--csd-rust); font-weight: 800; }
.csd-nav a.csd-nav__pro:hover { background: #FFD9C7; }
@media (max-width: 640px) {
  .csd-header__main { gap: 10px; }
  .csd-brand__text { display: none; }
  .csd-searchbtn { order: 5; flex-basis: 100%; }
  .csd-header__actions { margin-left: auto; }
  .csd-cartbtn .csd-cartbtn__label { display: none; }
}

/* ── Ricerca ─────────────────────────────────────────────────────────── */
.csd-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(18, 51, 46, .42); display: flex; justify-content: center; padding: 70px 20px; overflow-y: auto; }
.csd-search { width: min(720px, 100%); background: var(--csd-cream); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-modal); height: max-content; animation: csdIn .25s ease both; }
.csd-search__form { display: flex; gap: 10px; align-items: center; padding: 18px; border-bottom: 1px solid var(--csd-line); background: #fff; }
.csd-search__form input { flex: 1; min-width: 0; border: none; font-size: 16px; font-weight: 600; background: transparent; color: var(--csd-ink); }
.csd-search__form input:focus { outline: none; }
.csd-search__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; }
.csd-search__label { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--csd-muted-2); }
.csd-hit { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--csd-line); border-radius: 18px; padding: 10px; }
.csd-hit:hover { border-color: var(--csd-orange); }
.csd-hit__img { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--csd-peach-2); display: grid; place-items: center; color: #D8B89C; }
.csd-hit__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csd-hit__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.csd-hit__name { font-weight: 800; font-size: 14px; color: var(--csd-ink); }
.csd-hit__meta { font-size: 12px; color: var(--csd-muted-2); }
.csd-hit__price { font-weight: 900; font-size: 15px; color: var(--csd-ink); white-space: nowrap; }
.csd-nohits { padding: 22px; text-align: center; background: #fff; border-radius: 20px; display: flex; flex-direction: column; gap: 8px; }
.csd-close { width: 40px; height: 40px; border-radius: 14px; border: 1px solid var(--csd-line); background: var(--csd-cream); display: grid; place-items: center; color: var(--csd-ink); flex: none; }

/* ── Scheda prodotto in elenco ───────────────────────────────────────── */
.csd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.csd-grid--sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.csd-card {
  display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 24px; padding: 14px;
  box-shadow: var(--shadow-card); border: 1px solid #F0E6DA; height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.csd-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.csd-card__media { position: relative; border-radius: 18px; background: var(--csd-peach-2); overflow: hidden; aspect-ratio: 1 / 1; display: block; }
.csd-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.csd-card:hover .csd-card__media img { transform: scale(1.04); }
.csd-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.csd-card__wish { position: absolute; top: 10px; right: 10px; z-index: 3; }
.csd-badge { font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; background: var(--csd-orange); color: #fff; }
.csd-badge--dark { background: var(--csd-ink); }
.csd-badge--muted { background: rgba(18, 51, 46, .72); }
.csd-badge--mint { background: var(--csd-mint); color: var(--csd-mint-ink); }
.csd-card__body { display: flex; flex-direction: column; gap: 4px; }
.csd-card__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--csd-orange); }
.csd-root a.csd-card__eyebrow { color: var(--csd-orange); }
.csd-card__title { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--csd-ink); line-height: 1.25; text-wrap: pretty; }
.csd-root a.csd-card__title { color: var(--csd-ink); }
.csd-root a.csd-card__title:hover { color: var(--csd-rust); }
.csd-card__claim { font-size: 13px; color: var(--csd-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.csd-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--csd-ink); background: #F3F7F5; border-radius: 999px; padding: 4px 10px; }
.csd-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 6px; }
.csd-card__prices { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.csd-price { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--csd-ink); }
.csd-price-from { font-size: 12px; color: var(--csd-muted); font-weight: 700; margin-right: 4px; }
.csd-price-old { font-size: 13px; color: var(--csd-muted-2); text-decoration: line-through; }
.csd-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.csd-stock::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.csd-stock--in { color: var(--csd-ok); }
.csd-stock--low { color: var(--csd-warn); }
.csd-stock--out { color: var(--csd-muted-2); }
.csd-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #E2C3A6; background:
  radial-gradient(circle at 20% 25%, rgba(255,106,19,.08) 0 18px, transparent 19px),
  radial-gradient(circle at 80% 70%, rgba(18,51,46,.05) 0 26px, transparent 27px),
  var(--csd-peach-2); }
.csd-skel { border-radius: 24px; background: linear-gradient(90deg, #F6EDE3 0%, #FBF4EC 50%, #F6EDE3 100%); background-size: 200% 100%; animation: csdShimmer 1.2s ease-in-out infinite; }
@keyframes csdShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Home ────────────────────────────────────────────────────────────── */
.csd-hero { padding: 22px 20px 0; }
.csd-hero__grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.csd-hero__card { flex: 1 1 560px; min-width: 0; display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--csd-line); border-radius: 28px; overflow: hidden; }
.csd-hero__copy { flex: 1 1 300px; min-width: 0; padding: 34px 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; animation: csdIn .45s ease both; }
.csd-hero__copy h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; max-width: 22ch; }
.csd-hero__copy p { font-size: 16px; line-height: 1.55; color: var(--csd-text-2); max-width: 44ch; }
.csd-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
.csd-hero__note { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--csd-sand); padding-top: 14px; margin-top: 4px; font-size: 13px; color: var(--csd-text-2); line-height: 1.4; }
.csd-hero__note .csd-icon { color: var(--csd-rust); }
.csd-hero__media { flex: 1 1 300px; min-width: 240px; position: relative; background: var(--csd-peach); min-height: 340px; }
.csd-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.csd-hero__side { flex: 1 1 330px; min-width: 280px; display: flex; flex-direction: column; gap: 12px; }
.csd-panel { background: #fff; border: 1px solid var(--csd-line); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.csd-panel__search { display: flex; align-items: center; gap: 10px; background: var(--csd-cream); border: 1px solid var(--csd-line); border-radius: 16px; padding: 14px 16px; text-align: left; font-size: 14px; color: var(--csd-muted-2); font-weight: 600; width: 100%; }
.csd-panel__search:hover { border-color: var(--csd-orange); }
.csd-dept { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--csd-sand); }
.csd-root a.csd-dept { color: var(--csd-ink); }
.csd-root a.csd-dept:hover { color: var(--csd-rust); }
.csd-dept__ic { color: var(--csd-orange); }
.csd-dept__txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.csd-dept__name { font-weight: 800; font-size: 14px; }
.csd-dept__meta { font-size: 12px; color: var(--csd-muted-2); }
.csd-procard { background: var(--csd-mint); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.csd-procard p { font-size: 14px; line-height: 1.5; color: #123B31; }
.csd-procard .csd-eyebrow { color: var(--csd-mint-ink); font-size: 11px; }
.csd-root .csd-procard a { font-size: 14px; font-weight: 800; color: var(--csd-ink); }
.csd-root .csd-procard a:hover { color: var(--csd-rust); }
.csd-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.csd-catcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.csd-catcard { position: relative; border-radius: 32px; padding: 24px; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease; }
.csd-catcard:hover { transform: translateY(-6px); }
.csd-catcard h3 { font-size: 26px; }
.csd-catcard p { font-size: 14px; color: var(--csd-text-2); max-width: 30ch; line-height: 1.45; }
.csd-catcard__count { font-size: 12px; font-weight: 800; color: var(--csd-text-2); text-transform: uppercase; letter-spacing: .08em; }
.csd-catcard__paw { position: absolute; right: -18px; bottom: -22px; color: rgba(18, 51, 46, .08); animation: csdFloat 6s ease-in-out infinite; }
.csd-catcard .csd-btn { align-self: flex-start; margin-top: auto; position: relative; z-index: 1; }

.csd-pro { position: relative; overflow: hidden; border-radius: 36px; background: var(--csd-rust); color: #fff; padding: 38px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: center; }
.csd-pro h2 { font-size: clamp(26px, 3vw, 40px); color: #fff; }
.csd-pro__tag { align-self: flex-start; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 800; }
.csd-pro__perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.csd-pro__perk { display: flex; align-items: flex-start; gap: 9px; background: rgba(255, 255, 255, .12); border-radius: 16px; padding: 11px 14px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.csd-pro__perk small { display: block; font-weight: 500; opacity: .85; font-size: 13px; margin-top: 2px; }
.csd-pro__media { position: relative; height: 320px; border-radius: 28px; overflow: hidden; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: rgba(255, 255, 255, .35); }
.csd-pro__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.csd-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.csd-review { background: var(--csd-cream); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.csd-review p { font-size: 15px; line-height: 1.55; }
.csd-review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.csd-avatar { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--csd-peach); color: var(--csd-rust); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 17px; }
.csd-stars { display: inline-flex; gap: 3px; color: var(--csd-orange); }
.csd-score { display: inline-flex; align-items: center; gap: 10px; background: var(--csd-cream); border-radius: 18px; padding: 12px 18px; font-weight: 800; }

.csd-articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.csd-article { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--csd-line); border-radius: 28px; padding: 16px; transition: transform .18s ease, border-color .18s ease; }
.csd-article:hover { transform: translateY(-4px); border-color: var(--csd-orange); }
.csd-article__img { height: 160px; border-radius: 20px; overflow: hidden; background: var(--csd-sky); }
.csd-article__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csd-article__tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--csd-rust); }
.csd-article__title { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--csd-ink); line-height: 1.25; }
.csd-article__ex { font-size: 13px; color: var(--csd-muted); line-height: 1.5; }
.csd-article__more { font-size: 13px; font-weight: 800; color: var(--csd-rust); margin-top: auto; }

.csd-quote { background: var(--csd-lilac); border-radius: 36px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.csd-quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; color: var(--csd-lilac-ink); }
.csd-quote cite { font-style: normal; font-weight: 700; font-size: 14px; color: var(--csd-lilac-ink); }

.csd-news { background: var(--csd-yellow); border-radius: 36px; padding: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: center; }
.csd-news p { font-size: 15px; color: var(--csd-yellow-ink); line-height: 1.5; }
.csd-news form { display: flex; flex-direction: column; gap: 12px; }
.csd-news label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: var(--csd-yellow-ink); }
.csd-news input { border: 1px solid #E7CE72; background: #fff; border-radius: 16px; padding: 14px; font-size: 15px; }
.csd-news small { font-size: 12px; color: var(--csd-yellow-ink); }
.csd-root .csd-news small a { color: var(--csd-yellow-ink); text-decoration: underline; }
.csd-news__ok { font-weight: 800; color: var(--csd-mint-ink); }
.csd-news__err { font-weight: 800; color: #9A2B0A; }

/* ── Vetrina ─────────────────────────────────────────────────────────── */
.csd-crumbs { font-size: 13px; color: var(--csd-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.csd-root .csd-crumbs a { color: var(--csd-muted); }
.csd-root .csd-crumbs a:hover { color: var(--csd-rust); }
.csd-shop__layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.csd-filters { flex: 0 1 270px; min-width: 230px; background: #fff; border: 1px solid var(--csd-line); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 150px; }
.csd-filters__group { display: flex; flex-direction: column; gap: 9px; }
.csd-filters__label { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--csd-muted-2); }
.csd-filters__opts { display: flex; flex-wrap: wrap; gap: 7px; }
.csd-filters .csd-pill { background: var(--csd-cream); border-color: var(--csd-line-2); font-size: 12px; }
.csd-filters .csd-pill.is-on, .csd-filters .csd-pill[aria-pressed="true"] { background: var(--csd-orange); border-color: var(--csd-orange); color: #fff; }
.csd-reset { border: none; background: var(--csd-peach); color: var(--csd-rust); font-size: 12px; font-weight: 800; padding: 7px 12px; border-radius: 999px; }
.csd-shop__main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.csd-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--csd-line); border-radius: 22px; padding: 14px 18px; }
.csd-toolbar__search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; background: var(--csd-cream); border: 1px solid var(--csd-line-2); border-radius: 14px; padding: 0 12px; color: var(--csd-muted-2); }
.csd-toolbar__search input { flex: 1; min-width: 0; border: none; background: transparent; padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--csd-ink); }
.csd-toolbar__search input:focus { outline: none; }
.csd-empty { background: #fff; border: 1px dashed #E7DACB; border-radius: 28px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.csd-empty .csd-icon { color: #C9B7A6; }
.csd-empty p { font-size: 14px; color: var(--csd-muted); max-width: 44ch; line-height: 1.5; }
.csd-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 8px; font-weight: 700; color: var(--csd-muted); }

/* ── Scheda prodotto ─────────────────────────────────────────────────── */
.csd-pdp { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; align-items: start; }
.csd-pdp__media { position: relative; border-radius: 32px; overflow: hidden; background: #fff; border: 1px solid var(--csd-line); padding: 10px; }
.csd-pdp__media > .csd-card__badges { top: 22px; left: 22px; }
.csd-pdp__info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.csd-pdp__info h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.csd-pdp__cat, .csd-root a.csd-pdp__cat { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--csd-rust); }
.csd-pdp__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--csd-muted); }
.csd-pdp__claim { font-size: 16px; line-height: 1.55; color: var(--csd-text-2); }
.csd-opt { display: flex; flex-direction: column; gap: 8px; }
.csd-opt__label { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--csd-muted-2); }
.csd-opt__list { display: flex; flex-wrap: wrap; gap: 8px; }
.csd-fmt {
  border: 2px solid var(--csd-line-2); background: #fff; border-radius: 18px; padding: 11px 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; color: var(--csd-ink);
}
.csd-fmt:hover:not(:disabled) { border-color: var(--csd-orange); }
.csd-fmt[aria-pressed="true"] { border-color: var(--csd-orange); background: var(--csd-peach); }
.csd-fmt__name { font-weight: 800; font-size: 14px; }
.csd-fmt__price { font-size: 12px; font-weight: 800; color: var(--csd-rust); }
.csd-fmt:disabled { opacity: .45; text-decoration: line-through; }
.csd-buybox { background: #fff; border: 1px solid var(--csd-line); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.csd-buybox__price { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.csd-buybox__price .csd-price { font-size: 34px; }
.csd-buybox__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.csd-qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--csd-line-2); border-radius: 16px; padding: 4px; background: var(--csd-cream); }
.csd-qty button { width: 40px; height: 40px; border: none; background: #fff; border-radius: 12px; display: grid; place-items: center; color: var(--csd-ink); }
.csd-qty button:disabled { opacity: .35; }
.csd-qty span { min-width: 40px; text-align: center; font-size: 16px; font-weight: 800; }
.csd-qty--sm button { width: 34px; height: 34px; border-radius: 11px; }
.csd-qty--sm span { min-width: 30px; font-size: 14px; }
.csd-addbtn { flex: 1; min-width: 180px; padding: 16px 22px; font-size: 16px; font-weight: 900; border-radius: 18px; }
.csd-note { font-size: 12px; color: var(--csd-muted); line-height: 1.5; }
.csd-nudge { background: var(--csd-cream); border: 1px solid var(--csd-line); border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--csd-text-2); }
.csd-nudge--ok { color: var(--csd-ok); }
.csd-select-first { background: var(--csd-cream); border: 1px solid var(--csd-line); border-radius: 16px; padding: 14px 16px; font-size: 14px; color: var(--csd-text-2); }
.csd-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid var(--csd-sand); }
.csd-trust__item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; font-weight: 700; color: var(--csd-text-2); text-align: left; background: none; border: none; padding: 4px 0; line-height: 1.4; }
.csd-trust__item .csd-icon { color: var(--csd-ok); margin-top: 1px; }
.csd-root button.csd-trust__item { text-decoration: underline; text-decoration-color: var(--csd-line-2); text-underline-offset: 3px; }
.csd-root button.csd-trust__item:hover { color: var(--csd-rust); }
.csd-tabs { display: flex; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--csd-line); padding-bottom: 2px; }
.csd-tab { flex: none; border: none; background: transparent; color: var(--csd-muted-2); font-size: 15px; font-weight: 700; padding: 12px 6px; border-bottom: 3px solid transparent; }
.csd-tab:hover { color: var(--csd-ink); }
.csd-tab[aria-selected="true"] { color: var(--csd-ink); font-weight: 900; border-bottom-color: var(--csd-orange); }
.csd-tabpanel { background: #fff; border: 1px solid var(--csd-line); border-radius: 24px; padding: 22px; font-size: 14px; line-height: 1.65; color: var(--csd-ink); }
.csd-tabpanel p { margin: 0 0 12px; }
.csd-tabpanel p:last-child { margin-bottom: 0; }
.csd-revlist { display: flex; flex-direction: column; gap: 16px; }
.csd-rev { display: flex; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--csd-sand); }
.csd-rev:last-child { border-bottom: none; padding-bottom: 0; }
.csd-rev__name { font-weight: 800; font-size: 14px; }
.csd-rev__date { font-size: 12px; color: var(--csd-muted-2); margin-left: 8px; }
.csd-rev__reply { margin-top: 8px; padding-left: 12px; border-left: 3px solid var(--csd-mint); color: var(--csd-text-2); }
.csd-rev__reply strong { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--csd-mint-ink); }
.csd-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--csd-line); box-shadow: 0 -12px 30px rgba(18, 51, 46, .1); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.csd-sticky__in { display: flex; align-items: center; gap: 16px; }
.csd-sticky__txt { flex: 1; min-width: 0; }
.csd-sticky__name { font-family: var(--font-display); font-weight: 900; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .csd-sticky__txt { display: none; } .csd-sticky .csd-btn { flex: 1; } }

/* ── Carrello ────────────────────────────────────────────────────────── */
.csd-cart { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.csd-cart__lines { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.csd-ship { background: #fff; border: 1px solid var(--csd-line); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.csd-ship strong { font-size: 13px; font-weight: 800; }
.csd-bar { height: 12px; border-radius: 999px; background: var(--csd-sand); overflow: hidden; }
.csd-bar > span { display: block; height: 100%; background: var(--csd-orange); border-radius: 999px; transition: width .3s ease; }
.csd-line { background: #fff; border: 1px solid var(--csd-line); border-radius: 26px; padding: 16px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.csd-line__img { flex: none; width: 90px; height: 90px; border-radius: 20px; overflow: hidden; background: var(--csd-peach-2); display: block; }
.csd-line__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csd-line__txt { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 3px; }
.csd-line__name { font-family: var(--font-display); font-weight: 900; font-size: 16px; color: var(--csd-ink); }
.csd-root a.csd-line__name { color: var(--csd-ink); }
.csd-line__meta { font-size: 13px; color: var(--csd-muted); }
.csd-line__tot { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 100px; }
.csd-line__tot strong { font-family: var(--font-display); font-weight: 900; font-size: 19px; }
.csd-line__tot small { font-size: 12px; color: var(--csd-muted-2); }
.csd-linkbtn { border: none; background: transparent; color: var(--csd-muted-2); font-size: 12px; font-weight: 800; text-decoration: underline; padding: 0; }
.csd-linkbtn:hover { color: var(--csd-rust); }
.csd-summary { flex: 1 1 300px; max-width: 380px; background: #fff; border: 1px solid var(--csd-line); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 150px; }
@media (max-width: 760px) { .csd-summary { max-width: none; position: static; } .csd-filters { position: static; flex-basis: 100%; } }

/* ── Piè di pagina ───────────────────────────────────────────────────── */
.csd-footer { background: var(--csd-ink); color: #DCEAE6; padding: 52px 20px 26px; }
.csd-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.csd-footer__col { display: flex; flex-direction: column; gap: 10px; }
.csd-footer__title { font-family: var(--font-display); font-weight: 900; font-size: 14px; color: #fff; }
.csd-root .csd-footer a { font-size: 13px; color: #A9C4BE; }
.csd-root .csd-footer a:hover { color: #FF9E5E; }
.csd-footer__claim { font-size: 13px; line-height: 1.6; color: #A9C4BE; }
.csd-footer__contact { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #A9C4BE; line-height: 1.5; }
.csd-footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid #1F473F; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; color: #8FAEA8; }
.csd-footer__legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.csd-root .csd-footer__legal a { font-size: 12px; color: #8FAEA8; }
