/* Import font (aggiungere al <head> oppure lasciare che il browser usi i fallback) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');


/* ============================================================
   main.css — CM Studio Ecommerce
   CSS UNIFICATO — Drop-in replacement
   Sostituisce: style.css, homepage.css, menu-fmp.css, scheda-prodotto.css
   + tutti gli <style> inline di index.html

   Struttura:
   1.  VARIABILI & RESET
   2.  TOPBAR
   3.  LAYOUT PRINCIPALE (sidebar + colonna destra)
   4.  SIDEBAR / MENU LATERALE
   5.  BANNER HOMEPAGE
   6.  LISTA PRODOTTI (categorie)
   7.  SCHEDA PRODOTTO — layout
   8.  SCHEDA PRODOTTO — componenti visivi
   9.  STICKY PANEL PREZZI
   10. MODAL / OVERLAY
   11. BREADCRUMB
   12. CARRELLO & CHECKOUT DRAWER
   13. LOGIN / REGISTER DRAWER
   14. COOKIE BANNER
   15. RESPONSIVE MOBILE (≤ 768px)
   16. RESPONSIVE DESKTOP (≥ 769px)
   ============================================================ */


/* ============================================================
   1. VARIABILI & RESET
   ============================================================ */

:root {
  /* Palette principale */
  --blue:        #1e66ff;
  --blue-dark:   #0048d4;
  --blue-light:  #e8f0ff;
  --black:       #0a0a0a;
  --white:       #ffffff;
  --gray-50:     #f8f9fa;
  --gray-100:    #f1f3f5;
  --gray-200:    #e9ecef;
  --gray-300:    #dee2e6;
  --gray-500:    #adb5bd;
  --gray-700:    #495057;
  --gray-900:    #1a1a1a;
  --green-price: #16a34a;
  --red:         #dc2626;

  /* Tipografia */
  --font-sans:   'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:   'DM Mono', ui-monospace, monospace;

  /* Spaziatura */
  --topbar-h:    64px;
  --sidebar-w:   240px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Ombre */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.12);
  --shadow-blue: 0 4px 16px rgba(30,102,255,.2);

  /* Transizioni */
  --ease:        cubic-bezier(.25,.8,.25,1);
  --ease-spring: cubic-bezier(.175,.885,.32,1.275);
}

/* Reset base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: var(--black);
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  padding-top: var(--topbar-h);
  min-height: 100%;
  background: var(--gray-50);
  font-family: var(--font-sans);
  color: var(--gray-900);
  overflow-x: hidden;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   2. TOPBAR
   ============================================================ */

#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 10000;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: calc(var(--topbar-h) - 2px);
  width: auto;
  object-fit: contain;
}

/* Spacer */
#topbar > div[style*="margin-left:auto"],
#topbar > div:last-of-type {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Pulsante menu hamburger (solo mobile) */
.menu-toggle {
  position: relative;
  right: auto;
  top: auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 26px;
  border-radius: var(--radius-sm);
  transition: background .2s;
  z-index: 10001;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: rgba(255,255,255,.1);
}

/* Nascondi il menu-toggle creato dinamicamente fuori dalla topbar */
body > .menu-toggle {
  display: none !important;
}

/* Testo login */
#loginBtn {
  cursor: pointer;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: .01em;
  transition: opacity .2s;
}

#loginBtn:hover {
  opacity: .75;
}

/* Icona carrello */
#cartIcon {
  position: relative;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

#cartCount {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  display: none;
  min-width: 18px;
  text-align: center;
}

/* Warning utente non verificato */
#guestWarning {
  font-size: 12px;
  color: #b00020;
  background: #fff3f3;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: none;
  white-space: nowrap;
}


/* ============================================================
   3. LAYOUT PRINCIPALE
   ============================================================ */

#layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  min-height: calc(100vh - var(--topbar-h));
}

#rightColumn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Viste principali */
#homeView,
#categoryView,
#productView {
  width: 100%;
}

#categoryView { display: none; }
#productView  { display: none; }

/* Banner above menu — larghezza piena */
#aboveMenu {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#homeHero {
  width: 100%;
}

#promoBanner,
#promoProducts {
  width: 100%;
}


/* ============================================================
   4. SIDEBAR / MENU LATERALE
   ============================================================ */

#sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  align-self: stretch;
  min-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0 24px 0;
  position: sticky;
  top: var(--topbar-h);
  max-height: calc(100vh - var(--topbar-h));
}

/* Lista menu */
#sidemenu,
#sidemenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-sans);
}

/* CAT 1 — Voci principali */
#sidemenu > li {
  padding: 14px 16px 14px 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all .18s var(--ease);
  letter-spacing: -.01em;
  line-height: 1.3;
}

#sidemenu > li:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-left-color: var(--blue);
}

#sidemenu > li.open {
  background: var(--blue-light);
  color: var(--blue);
  border-left-color: var(--blue);
}

/* CAT 2 — Sottovoci */
#sidemenu > li > ul {
  display: none;
  padding: 4px 0 8px 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 4px;
}

#sidemenu > li.open > ul {
  display: block;
}

#sidemenu > li > ul > li {
  padding: 10px 16px 10px 32px;
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .15s var(--ease);
  line-height: 1.35;
}

#sidemenu > li > ul > li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .15s;
}

#sidemenu > li > ul > li:hover {
  background: var(--blue-light);
  color: var(--blue);
}

#sidemenu > li > ul > li:hover::before {
  opacity: 1;
}

#sidemenu > li > ul > li:last-child {
  border-bottom: none;
}


/* ============================================================
   5. BANNER HOMEPAGE
   ============================================================ */

/* Riga banner (contenitore flex) */
.fm-row {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  gap: 0;
  margin: 0;
  align-items: stretch;
}

/* Singolo banner */
.fm-banner {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.fm-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

/* Contenuto interno banner */
.fm-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  transition: opacity .5s ease-in-out;
}

/* Contenitore testi banner */
.fm-text-container {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.fm-text-container h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.fm-text-container div {
  font-size: 1rem;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* Banner di categoria (box generico home-box) */
.home-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.home-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.home-box h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}


/* ============================================================
   6. LISTA PRODOTTI (griglia categoria)
   ============================================================ */

#categoryProducts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  padding: 4px 0 24px;
}

/* Card prodotto */
.product-card {
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.product-card.promo {
  border: 2px solid var(--green-price);
}

/* Thumbnail */
.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s var(--ease);
}

.product-card:hover .product-thumb img {
  transform: scale(1.04);
}

/* Info prodotto dentro la card */
.product-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  position: relative;
}

/* Categoria (cat2) */
.product-info > div:first-child {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}

/* Nome prodotto */
.product-info h3 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Descrizione breve */
.product-info p {
  margin: 0;
  font-size: .875rem;
  color: var(--gray-700);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}

/* Bottone "Leggi tutto" dentro card */
.product-info button,
.product-card button {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 7px 14px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
  transition: background .18s, transform .18s;
}

.product-info button:hover,
.product-card button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* Prodotti in evidenza */
#promoProducts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

#promoProducts .product-card {
  flex: 1 1 180px;
  max-width: 220px;
}

/* Carousel categoriale (scroll orizzontale, solo se usato) */
#carouselTrack {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 4px 0;
}


/* ============================================================
   7. SCHEDA PRODOTTO — LAYOUT
   ============================================================ */

.product-detail-page {
  font-family: var(--font-sans);
  color: var(--gray-900);
  width: 100%;
}

.product-detail-page .pd-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 20px 0;
  color: var(--gray-900);
  line-height: 1.2;
}

/* Layout a due colonne: foto | configuratore */
.product-detail-page .product-layout {
  display: flex;
  flex-direction: row;
  gap: clamp(20px, 4vw, 48px);
  align-items: flex-start;
  width: 100%;
}

/* Colonna foto */
.product-image-section {
  flex: 1 1 50%;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* Colonna configuratore */
.product-info-column {
  flex: 0 1 380px;
  min-width: 300px;
}

/* Box configurazione (materiali, opzioni, dimensioni) */
.config-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.config-box h4 {
  margin: 0 0 14px 0;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-700);
}

/* Pannello prodotto privo di decorazioni extra */
#mainPanel {
  flex: 1 1 auto;
  min-width: 0;
}

.product-detail-page #mainPanel {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}


/* ============================================================
   8. SCHEDA PRODOTTO — COMPONENTI VISIVI
   ============================================================ */

/* Label */
.product-detail-page label,
.product-detail-page .form-label,
.product-detail-page .config-box label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -.005em;
}

/* Input / Select */
.product-detail-page input,
.product-detail-page select,
.product-detail-page .form-input {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 46px;
  background: var(--white);
  color: var(--gray-900);
  font-size: .975rem;
  font-weight: 500;
  font-family: var(--font-sans);
  width: 100%;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}

.product-detail-page input:focus,
.product-detail-page select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,102,255,.12);
}

/* Hint/note */
.product-detail-page .hint,
.product-detail-page .note {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Separatore */
.separator {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 16px 0;
}

/* Descrizione prodotto (sotto immagine) */
.pd-description-box-under {
  margin-top: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

#pdShortDesc {
  font-size: .9rem;
  line-height: 1.65;
  /* color rimosso dal contenitore: ogni figlio gestisce il proprio colore */
}

/* Titoli: ripristino dimensioni e peso reali del browser — senza color forzato */
#pdShortDesc h1 { font-size: 2em;   font-weight: 700; margin: .67em 0; }
#pdShortDesc h2 { font-size: 1.5em; font-weight: 700; margin: .75em 0; }
#pdShortDesc h3 { font-size: 1.17em; font-weight: 700; margin: .83em 0; }
#pdShortDesc h4 { font-size: 1em;   font-weight: 700; margin: 1.12em 0; }

/* Testo normale senza colore esplicito — solo elementi senza style inline */
#pdShortDesc div:not([style]),
#pdShortDesc p:not([style]),
#pdShortDesc span:not([style]) {
  color: var(--gray-700);
}

/* gli stili inline (style="color:...") vincono da soli */

/* ── Galleria immagini ── */

/* Wrapper media principale */
.product-media-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-md);
}

.main-image {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--white);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  height: 420px;
}

.main-image img.detail-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.main-image video.detail-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  background: #000;
}

/* Thumbs */
.thumb-container {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--gray-50);
}

.thumb-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.thumb-slider:active { cursor: grabbing; }

.thumb-wrapper {
  position: relative;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
}

.thumb-wrapper .thumb,
.thumb-slider img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color .18s;
  pointer-events: none;
  -webkit-user-drag: none;
}

.thumb-wrapper:hover .thumb,
.thumb-slider img:hover {
  border-color: var(--blue);
}

.thumb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: var(--white);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ── Carousel opzioni/materiali/formati ── */
.form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
}

.form-row label,
.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-900);
}

.standard-carousel,
.options-carousel,
.materiali-carousel,
.carousel-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px;
  width: 100%;
  scroll-behavior: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.standard-carousel:active,
.options-carousel:active,
.materiali-carousel:active,
.carousel-wrapper:active {
  cursor: grabbing;
}

/* Card carousel */
.standard-card {
  flex: 0 0 auto;
  width: 115px;
  min-height: 125px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.standard-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.standard-card img {
  max-width: 100%;
  height: 62px;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.standard-card .card-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .02em;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  overflow: hidden;
}

/* Dimensioni senza immagine: stile pill */
.standard-card:not(:has(img)) {
  min-height: 57px;
  width: 117px;
  border: 1.5px solid var(--blue);
}

.standard-card:not(:has(img)) .card-label {
  font-family: var(--font-mono);
  font-size: 1.43rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0;
}

/* Stati selezione */
.standard-card.active,
.standard-card.selected-taglio,
.standard-card.selected-dimensione {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 1px var(--blue);
}

.standard-card.selected-taglio .card-label,
.standard-card.selected-dimensione .card-label {
  color: var(--white);
}

.standard-card.selected-taglio,
.standard-card.selected-dimensione {
  background: var(--blue);
}

/* Bottoni freccia carousel */
.arrow-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s;
  color: var(--gray-700);
}

.arrow-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* Form row inline (misure personalizzate) */
.form-row-inline {
  background: var(--gray-50);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.form-row-inline label {
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: 8px;
}

/* Input misure */
#baseInput,
#heightInput {
  width: 72px !important;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .975rem;
}

/* ── Tab scheda prodotto ── */
.pd-tab {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  background: var(--white);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  color: var(--gray-700);
}

.pd-tab:hover,
.pd-tab.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Tab speciali arancioni */
.pd-tab[data-tab="shape3d"],
.pd-tab[data-tab="costi"] {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: var(--white);
  border-color: transparent;
  font-weight: 700;
}


/* ============================================================
   9. STICKY PANEL PREZZI
   ============================================================ */

.product-sticky-panel {
  background: var(--white);
  border: 1px solid rgba(30,102,255,.2);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-blue);
}

.product-sticky-panel:hover {
  background: rgba(255,255,255,.97);
  border-color: rgba(30,102,255,.35);
  transform: translateY(-2px);
}

.price-area-sticky {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Input quantità */
#quantityInput {
  width: 60%;
  max-width: 130px;
  height: 56px;
  margin: 0 auto 16px;
  display: block;
  border: 2px solid var(--blue);
  background: var(--white);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  font-family: var(--font-mono);
  appearance: auto;
  -webkit-appearance: number-input;
  outline: none;
  box-shadow: 0 2px 8px rgba(30,102,255,.1);
  padding-right: 2px;
}

#quantityInput::-webkit-inner-spin-button,
#quantityInput::-webkit-outer-spin-button {
  opacity: 1;
  height: 48px;
  width: 24px;
  cursor: pointer;
  display: block;
}

.qty-section {
  text-align: center;
  margin-bottom: 4px;
}

.qty-section label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  display: block;
  margin-bottom: 8px;
}

/* Righe prezzo */
.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.price-line span {
  font-size: .82rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Prezzo unitario */
#prezzoUnitarioDisplay {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: right;
}

/* Prezzo finale */
#finalPriceDisplay {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  text-align: right;
  letter-spacing: -.04em;
  line-height: 1;
}

#finalPriceDisplay::after {
  content: " i.i.";
  font-size: .78rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0;
}

/* Bottone aggiungi al carrello */
.btn-cart-sticky {
  margin-top: 16px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  width: 100%;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease-spring), box-shadow .2s;
  box-shadow: var(--shadow-blue);
}

.btn-cart-sticky:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 24px rgba(30,102,255,.35);
  transform: translateY(-2px);
}

.btn-cart-sticky:active {
  transform: translateY(0);
}

/* Tabella sconti */
#tabellaScontiContainer {
  margin-top: 10px;
  font-size: .82rem;
}


/* ============================================================
   10. MODAL / OVERLAY (slideshow, espositore)
   ============================================================ */

#espositoreModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 100000;
  display: none;
}

#espositoreModal.open {
  display: block;
}

#espositoreModal .modal-content {
  position: absolute;
  top: 50%; left: 50%;
  width: 92%;
  max-width: 1100px;
  height: 85vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  transform: translate(-50%, -50%);
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
}

#espositoreFrame {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
}


/* ============================================================
   11. BREADCRUMB
   ============================================================ */

.breadcrumb,
#breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-500);
  padding: 4px 0 8px;
  flex-wrap: wrap;
}

.bc-link {
  color: var(--blue);
  cursor: pointer;
  transition: color .18s;
}

.bc-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.bc-sep {
  color: var(--gray-300);
  font-size: .9rem;
}

.bc-current {
  color: var(--gray-700);
  font-weight: 600;
}


/* ============================================================
   12. CARRELLO & CHECKOUT DRAWER
   ============================================================ */

#cartDrawer,
#checkoutDrawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 99999;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  transition: right .35s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#cartOverlay {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
  display: none;
}


/* ============================================================
   13. LOGIN / REGISTER DRAWER
   ============================================================ */

#loginDrawer,
#registerDrawer {
  position: fixed;
  top: var(--topbar-h);
  right: -420px;
  width: 400px;
  max-width: 100vw;
  height: calc(100vh - var(--topbar-h));
  background: var(--white);
  z-index: 9999;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  transition: right .35s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  overflow-y: auto;
}


/* ============================================================
   14. COOKIE BANNER
   ============================================================ */

#cookieBanner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 99990;
  display: none;
}

#cookieBanner p {
  margin: 0 0 16px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--gray-700);
}

#cookieAccept {
  background: var(--blue);
  border: none;
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  transition: background .18s;
}

#cookieAccept:hover { background: var(--blue-dark); }

#cookieReject {
  background: var(--gray-200);
  border: none;
  color: var(--gray-700);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: .9rem;
  transition: background .18s;
}

#cookieReject:hover { background: var(--gray-300); }


/* ============================================================
   15. RESPONSIVE MOBILE (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {

  /* Topbar */
  #topbar { height: 60px; }
  body { padding-top: 60px; padding-bottom: 130px; }
  :root { --topbar-h: 60px; }
  .logo-img { height: calc(60px - 10px); }

  /* Layout: colonna singola */
  #layout {
    flex-direction: column;
    padding: 0;
  }

  /* Sidebar: nascosta, slide da sinistra quando menu-open */
  #sidebar {
    display: none;
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--topbar-h));
    max-height: calc(100vh - var(--topbar-h));
    z-index: 9999;
    box-shadow: 5px 0 30px rgba(0,0,0,.25);
    overflow-y: auto;
    padding: 12px 0 24px 0;
    min-height: unset;
  }

  body.menu-open #sidebar {
    display: block;
  }

  /* Overlay pagina con menu aperto */
  body.menu-open::after {
    content: "";
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.4);
    z-index: 9998;
    pointer-events: none;
  }

  body.menu-open {
    overflow: hidden;
    height: 100vh;
  }

  /* Colonna destra: padding ridotto */
  #rightColumn {
    padding: 12px;
    gap: 12px;
    width: 100%;
  }

  /* Nascondi banner sopra il menu su mobile */
  #aboveMenu,
  #homeHero,
  #promoBanner,
  #promoProducts,
  #categoryBanner {
    display: none;
  }

  /* Banner: uno sotto l'altro */
  .fm-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .fm-banner {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .fm-text-container {
    top: 14px; left: 14px;
    right: 14px; bottom: 14px;
  }

  /* Prodotti: 1 colonna */
  #categoryProducts {
    gap: 12px;
    justify-content: center;
  }

  .product-card {
    flex: 0 0 calc(50% - 6px);
    min-width: 0;
    max-width: none;
  }

  /* Scheda prodotto: una colonna */
  .product-detail-page .product-layout {
    flex-direction: column;
    gap: 16px;
  }

  .product-image-section,
  .product-info-column {
    width: 100%;
    flex: 0 0 100%;
    min-width: 0;
  }

  /* Foto prodotto mobile */
  .product-detail-page { width: 100%; overflow-x: hidden; }
  .main-image { padding: 8px; height: 280px; }
.main-image img.detail-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
  .thumb-wrapper, .thumb-slider img { width: 64px; height: 64px; }
  .thumb-wrapper { flex: 0 0 64px; }

  /* Three.js mobile */
  #shape3DContainer,
  #shape3DContainer canvas {
    width: 100% !important;
    max-width: 100%;
    height: auto;
  }

  /* Sticky panel: bottom sheet */
  .product-sticky-panel {
    position: fixed;
    bottom: -298px;
    left: 0; right: 0;
    width: 100%;
    margin: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: none;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -10px 40px rgba(0,0,0,.18);
    transition: bottom .4s cubic-bezier(.25,1,.5,1);
    padding-top: 52px;
    z-index: 2000;
  }

  .product-sticky-panel.sheet-open {
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Maniglia bottom sheet */
  .product-sticky-panel::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 10px;
    box-shadow: 0 8px 0 var(--gray-300);
    cursor: grab;
  }

  /* Non coprire la topbar quando sticky panel aperto */
  .product-sticky-panel { z-index: 999; }

  /* Input prodotto mobile */
  .product-detail-page input,
  .product-detail-page select {
    height: 42px;
    font-size: .925rem;
    padding: 0 10px;
  }

  #quantityInput {
    height: 52px;
    font-size: 1.4rem;
  }
}


/* ============================================================
   16. RESPONSIVE DESKTOP (≥ 769px)
   ============================================================ */

@media (min-width: 769px) {

  /* Layout garantito */
  #layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }

  /* Sidebar sempre visibile */
  #sidebar {
    display: block;
    flex: 0 0 var(--sidebar-w);
    width: var(--sidebar-w);
  }

  /* Hamburger: nascosto su desktop */
  .menu-toggle {
    display: none;
  }

  /* Colonna destra */
  #rightColumn {
    flex: 1;
    min-width: 0;
  }

  /* Prodotti in griglia */
  #categoryProducts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  /* Sticky panel: statico dentro product-info-column */
  .product-sticky-panel {
    position: sticky;
    top: calc(var(--topbar-h) + 16px);
    z-index: 10;
  }
}


/* ============================================================
   FINE main.css
   ============================================================ */



/* ============================================================
   17. PUZZLE GENERATOR MODAL
   ============================================================ */

/* Overlay sfondo */
.puzzle-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100001;
  align-items: center;
  justify-content: center;
}

.puzzle-overlay.open {
  display: flex;
}

/* Modal box */
.puzzle-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 96%;
  max-width: 1100px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Header */
.puzzle-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.puzzle-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.puzzle-close-btn {
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-700);
  transition: background 0.18s, color 0.18s;
}

.puzzle-close-btn:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* Body: due colonne */
.puzzle-modal-body {
  display: flex;
  flex: 1 1 auto;
  overflow: hidden;
  gap: 0;
}

/* Pannello controlli (sinistra) */
.puzzle-controls {
  flex: 0 0 280px;
  width: 280px;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  padding: 20px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Tipo puzzle toggle */
.puzzle-type-toggle {
  display: flex;
  gap: 6px;
}

.puzzle-type-btn {
  flex: 1;
  padding: 7px 10px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.puzzle-type-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.puzzle-type-btn:not(.active):hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Gruppo controllo */
.puzzle-ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.puzzle-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

/* Riga input + slider */
.puzzle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.puzzle-row-inline {
  flex-wrap: nowrap;
}

.puzzle-input-text {
  width: 64px;
  flex-shrink: 0;
  height: 32px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.18s;
  outline: none;
}

.puzzle-input-text:focus {
  border-color: var(--blue);
}

.puzzle-range {
  flex: 1 1 auto;
  accent-color: var(--blue);
  height: 4px;
  cursor: pointer;
}

/* Checkbox row */
.puzzle-checkrow {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}

.puzzle-checkrow label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray-700);
  cursor: pointer;
}

.puzzle-checkrow input[type="checkbox"] {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
}

/* Bottone download */
.puzzle-download-btn {
  margin-top: auto;
  padding: 11px 16px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s var(--ease-spring), box-shadow 0.18s;
  box-shadow: var(--shadow-blue);
  text-align: center;
}

.puzzle-download-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 102, 255, 0.35);
}

.puzzle-download-btn:active {
  transform: translateY(0);
}

/* Anteprima SVG (destra) */
.puzzle-preview {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--white);
  min-width: 0;
}

.puzzle-svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

/* ── RESPONSIVE MOBILE ────────────────────── */
@media (max-width: 768px) {

  .puzzle-modal {
    max-height: 98vh;
    border-radius: var(--radius-lg);
  }

  .puzzle-modal-body {
    flex-direction: column;
    overflow-y: auto;
  }

  .puzzle-controls {
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px;
    gap: 12px;
  }

  .puzzle-preview {
    flex: 0 0 300px;
    min-height: 260px;
    padding: 10px;
  }

  .puzzle-download-btn {
    margin-top: 8px;
  }
}

.btn-configura-puzzle {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 20px;
  background: var(--blue, #1e66ff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30,102,255,0.35);
  transition: background 0.2s, transform 0.1s;
}
.btn-configura-puzzle:hover {
  background: #0047d4;
  transform: translateY(-1px);
}

.puzzle-riepilogo {
  margin-top: 8px;
}
.puzzle-riepilogo-inner {
  background: #e8f4e8;
  border: 1px solid #6abf6a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #2a5a2a;
}
/* ── Card con input quantità (input_qta = 1) ── */
.card-qta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  width: 100%;
}
.card-qta-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.card-qta-input {
  width: 70px;
  height: 32px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
.card-qta-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(30,102,255,.1);
}
.standard-card.active .card-qta-input {
  border-color: var(--blue);
}


/* ============================================================
   18. DROP SHADOW — Immagini PNG con sfondo trasparente
   Usa filter: drop-shadow() che segue il profilo reale del PNG
   anziché box-shadow che segue il rettangolo del box.
   ============================================================ */

/* Immagine principale nella scheda prodotto */
.main-image img.detail-img {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.18))
          drop-shadow(0 2px 6px rgba(0, 0, 0, 0.10));
  transition: filter .3s var(--ease), transform .3s var(--ease);
}

.main-image img.detail-img:hover {
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.22))
          drop-shadow(0 3px 8px rgba(0, 0, 0, 0.13));
}

/* Miniature nel thumb-slider */
.thumb-wrapper .thumb,
.thumb-slider img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
  transition: filter .18s var(--ease), border-color .18s;
}

.thumb-wrapper:hover .thumb,
.thumb-slider img:hover {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.20));
}

/* Immagine prodotto nelle card della griglia categoria */
.product-thumb img {
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
  transition: filter .3s var(--ease), transform .3s var(--ease);
}

.product-card:hover .product-thumb img {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}


/* ============================================================
   19. BANDA DESCRIZIONE VELOCE
   Sta tra .main-image e .thumb-container — NON sovrapposta
   ============================================================ */

.desc-veloce-overlay {
  display: block;
  width: 100%;
  background: var(--gray-900);
  color: var(--white);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  margin: 8px 0;
  box-sizing: border-box;
  /* Niente position:absolute — è un elemento nel flusso normale */
  position: static;
}
/* Transizione dissolvenza hover immagine principale */
.detail-img {
  transition: opacity 0.25s ease;
}

.detail-img:hover {
  cursor: zoom-in; /* indica che c'è qualcosa al hover */
}

/* ============================================
   LAYOUT CAROUSEL PRODOTTO (carousel_Prodotto=1)
   2 colonne: [foto+desc+thumb] | [prezzo+carrello]
   ============================================ */

.product-layout-carousel {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  width: 100%;
}

/* Blocco sinistro: foto sopra, descrizione sotto, thumb in fondo */
.plc-left-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  min-width: 0;
}

/* Foto - colonna sinistra */
.plc-foto {
  grid-column: 1;
  grid-row: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-width: 0;
}

.plc-foto .main-image {
  width: 100%;
  margin: 0;
  border: none;
  padding: 0;
  border-radius: 0;
}

.plc-foto .detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

/* Descrizione - colonna destra */
.plc-desc {
  grid-column: 2;
  grid-row: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-width: 0;
}

.plc-desc-veloce {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Thumb - sotto entrambe le colonne */
.plc-left-block .thumb-container {
  grid-column: 1 / 3;
  grid-row: 2;
  margin-top: 0;
}

/* Colonna DX - quantità + carrello */
.plc-prezzo {
  position: sticky;
  top: 80px;
}

.plc-prezzo .price-area-sticky {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* Box prezzo celeste sotto descrizione */
.plc-prezzo-inline {
  margin-top: 20px;
  background: #e8f0fe;
  border: 1px solid #c5d5f8;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.plc-prezzo-inline .price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.plc-prezzo-inline .price-line:last-child {
  margin-bottom: 0;
}

/* Mobile: una colonna */
@media (max-width: 900px) {
  .product-layout-carousel {
    grid-template-columns: 1fr;
  }
  .plc-left-block {
    grid-template-columns: 1fr;
  }
  .plc-left-block .thumb-container {
    grid-column: 1;
  }
  .plc-prezzo {
    position: static;
  }
}
