/* ==================================================================
   UNIVERSO CREATIVO SHOP — styles.css
   Design system ispirato ad Apple Store
   ================================================================== */

/* ── VARIABILI ─────────────────────────────────────────────────── */
:root {
  --bg:          #f5f5f7;
  --card:        #ffffff;
  --ink-1:       #1d1d1f;
  --ink-2:       #6e6e73;
  --ink-3:       #86868b;
  --blue:        #0066cc;
  --blue-hover:  #0077ed;
  --green:       #25d366;
  --green-dark:  #128c7e;
  --teal:        #14b8a6;
  --teal-light:  #5fe7c6;
  --border:      rgba(0,0,0,.08);
  --border-card: rgba(0,0,0,.06);
  --nav-h:       52px;
  --r-card:      10px;
  --r-sm:        6px;
  --r-btn:       6px;
  --shadow-card: 0 2px 12px rgba(0,0,0,.07);
  --shadow-lift: 0 8px 24px rgba(0,0,0,.12);
  --transition:  220ms cubic-bezier(.4,0,.2,1);
}

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
input, select, textarea { font: inherit; }

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--ink-1);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 8px; }

/* ── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,.95);
  border-bottom-color: rgba(0,0,0,.1);
}

.nav-wrapper { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .nav-wrapper { padding: 0 48px; } }

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 0;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 32px;
}
.site-logo .logo-svg {
  height: 36px;
  width: 126px;
  color: var(--ink-1);
  filter: brightness(0);
}

.nav-cats-wrap {
  flex: 1;
  min-width: 0;
}
.nav-cats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.nav-cats li { flex: 1; display: flex; justify-content: center; }
.nav-cats li a {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  text-align: center;
}
.nav-cats li a:hover {
  color: var(--ink-1);
  background: rgba(0,0,0,.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
/* ── NAV DESKTOP: mostra solo il nome, niente icona/desc/freccia ── */
.nav-cat-icon  { display: none; }
.nav-cat-text  { display: contents; }
.nav-cat-desc  { display: none; }
.nav-cat-arrow { display: none; }

.hamburger span { transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-header.menu-open {
  background: #0a0a0a !important;
  border-bottom-color: rgba(255,255,255,.08) !important;
}
.site-header.menu-open .logo-svg { filter: brightness(0) invert(1) !important; }
.site-header.menu-open .hamburger span { background: #fff; }
.site-header.menu-open .btn-cart { color: #fff; }
.site-header.menu-open .cart-badge { background: #fff; color: #000; }

.menu-close {
  display: none;
}

body.menu-open { overflow: hidden; }

@keyframes megaIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes megaItemIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
  .hamburger { display: flex; }
  .nav-cats-wrap { display: none; }
  .btn-cart { margin-left: auto; }

  .nav-cats-wrap.open {
    /* close button inside overlay */
  }
  .nav-cats-wrap.open .menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc((var(--nav-h) - 40px) / 2);
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 901;
    flex-shrink: 0;
    transition: background .15s;
  }
  .nav-cats-wrap.open .menu-close:hover { background: rgba(255,255,255,.18); }

  .nav-cats-wrap.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    z-index: 899;
    overflow-y: auto;
    padding: 0;
    animation: megaIn .25s ease forwards;
  }

  .nav-cats {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--nav-h) + 24px) 28px 48px;
    flex: 1;
  }

  .nav-cats li {
    flex: none;
    display: block;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255,255,255,.07);
    opacity: 0;
    animation: megaItemIn .4s cubic-bezier(.22,1,.36,1) forwards;
  }
  .nav-cats li:nth-child(1) { animation-delay: .06s; }
  .nav-cats li:nth-child(2) { animation-delay: .10s; }
  .nav-cats li:nth-child(3) { animation-delay: .14s; }
  .nav-cats li:nth-child(4) { animation-delay: .18s; }
  .nav-cats li:nth-child(5) { animation-delay: .22s; }
  .nav-cats li:nth-child(6) { animation-delay: .26s; }
  .nav-cats li:nth-child(7) { animation-delay: .30s; }

  .nav-cats li a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    text-decoration: none;
    color: #fff;
    transition: opacity .15s;
  }
  .nav-cats li a:hover { opacity: .65; background: none; }

  .nav-cat-icon {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 14px;
  }

  .nav-cat-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
  }

  .nav-cat-name {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: #fff;
  }

  .nav-cat-desc {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.45);
    line-height: 1.4;
    white-space: normal;
    font-weight: 400;
  }

  .nav-cat-arrow {
    display: block;
    font-size: 22px;
    color: rgba(255,255,255,.3);
    flex-shrink: 0;
  }

  .nav-store-label { display: none; }
  .nav-divider { display: none; }
}


/* ── QUICK NAV ───────────────────────────────────────────────────── */
.quick-nav-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: relative;
}
.qnav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-1);
  transition: opacity .2s, box-shadow .2s;
}
.qnav-arrow:hover { box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.qnav-arrow.hidden { opacity: 0; pointer-events: none; }
.qnav-arrow-prev { left: 8px; }
.qnav-arrow-next { right: 8px; }
.quick-nav-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quick-nav-scroll::-webkit-scrollbar { display: none; }
.quick-nav-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) { .quick-nav-inner { padding: 24px 40px; } }

.qnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-card);
  cursor: pointer;
  min-width: 96px;
  flex-shrink: 0;
  background: none;
  border: none;
  font: inherit;
  text-decoration: none;
}

.qnav-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
.qnav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: var(--r-btn);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.qnav-item:hover .qnav-label {
  background: var(--ink-1);
  color: #fff;
}

/* ── SEZIONI GENERALI ────────────────────────────────────────────── */
.store-section { padding: 56px 0; }
.store-section + .store-section { border-top: 1px solid var(--border); }

.section-header { margin-bottom: 28px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.section-subtitle {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink-1);
  line-height: 1.15;
}

/* ── FEATURED GRID "Da non perdere" ─────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 860px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-1);
  border: none;
  padding: 0;
}
.featured-card:hover .featured-card-photo { transform: scale(1.06); }

.featured-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.featured-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.28) 50%,
    rgba(0,0,0,.04) 100%
  );
  transition: background .3s ease;
}
.featured-card:hover .featured-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.42) 55%,
    rgba(0,0,0,.08) 100%
  );
}

.featured-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  color: #fff;
  z-index: 1;
}

.featured-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  margin-bottom: 8px;
}

.featured-cat {
  font-size: .7rem;
  opacity: .6;
  margin-bottom: 3px;
  letter-spacing: .03em;
}
.featured-name {
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 7px;
}
.featured-link {
  font-size: .78rem;
  font-weight: 500;
  opacity: .75;
  transition: opacity var(--transition);
}
.featured-card:hover .featured-link { opacity: 1; }

/* ── BENEFITS ────────────────────────────────────────────────────── */
.section-benefits-wrap { background: var(--card); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-top: 32px;
}
@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }

.benefit-card {
  background: var(--card);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: background var(--transition);
}
.benefit-card:hover { background: #fafafa; }
.benefit-icon { color: var(--teal); }
.benefit-card h3 { font-size: 14px; font-weight: 600; color: var(--ink-1); line-height: 1.3; }
.benefit-card p  { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ── PRODUCT SECTIONS (carousel per categoria) ───────────────────── */
#product-sections .product-section + .product-section { border-top: 1px solid var(--border); }
#product-sections { border-top: 1px solid var(--border); }

.product-section {
  padding: 48px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.product-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  padding: 0 24px;
}
@media (min-width: 768px) { .product-section-header { padding: 0 48px; } }

/* Photo header variant */
.product-section-header--photo {
  position: relative;
  padding: 40px 24px 28px;
  border-radius: var(--r-card);
  overflow: hidden;
  margin: 0 24px 22px;
  align-items: flex-end;
}
@media (min-width: 768px) {
  .product-section-header--photo { padding: 56px 48px 36px; margin: 0 48px 22px; }
}
.product-section-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.1) 100%);
}
.product-section-header--photo .product-section-titles { position: relative; z-index: 1; }
.product-section-header--photo .product-section-title { color: #fff; }
.product-section-header--photo .product-section-desc { color: rgba(255,255,255,.8); }
.product-section-header--photo .see-all-link {
  position: relative; z-index: 1;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--r-btn);
  padding: 8px 16px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.product-section-header--photo .see-all-link:hover {
  background: rgba(255,255,255,.28);
  text-decoration: none;
  color: #fff;
}

.product-section-titles {}
.product-section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink-1);
  line-height: 1.15;
}
.product-section-desc {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 4px;
  line-height: 1.4;
}
.see-all-link {
  font-size: 14px;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}
.see-all-link:hover { color: var(--blue-hover); text-decoration: underline; }

/* ── FRECCE CAROUSEL ──────────────────────────────────────────── */
.carousel-wrap {
  position: relative;
}
.carousel-wrap::before,
.carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 5;
  pointer-events: none;
}
.carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-1);
  font-size: 22px;
  line-height: 1;
  transition: box-shadow var(--transition), opacity var(--transition);
  opacity: 0;
  pointer-events: none;
}
.carousel-wrap:hover .carousel-btn,
.carousel-wrap:focus-within .carousel-btn { opacity: 1; pointer-events: auto; }
.carousel-btn:hover { box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.carousel-btn-prev { left: 8px; }
.carousel-btn-next { right: 8px; }
.carousel-btn.hidden { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 767px) { .carousel-btn { display: none; } }

.products-carousel {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 24px 12px;
}
.products-carousel::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .products-carousel { padding: 4px 48px 12px; } }
.products-track { display: flex; gap: 10px; }

/* ── PRODUCT CARD (carousel) ─────────────────────────────────────── */
.prod-card {
  background: var(--card);
  border-radius: var(--r-card);
  overflow: hidden;
  flex-shrink: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid var(--border-card);
}
@media (min-width: 768px) { .prod-card { width: 300px; } }

.prod-card:hover .btn-personalizza {
  background: #333;
  color: #fff;
}

.prod-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.prod-card-visual svg { width: 84px; height: 63px; }
.prod-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-btn);
  background: rgba(255,255,255,.28);
  color: #fff;
}
.prod-badge-dark { background: rgba(0,0,0,.1); color: var(--ink-2); }

.prod-card-body {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--border-card);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.prod-cat-label { font-size: 11px; color: var(--ink-3); font-weight: 500; letter-spacing: .02em; }
.prod-name      { font-size: 13px; font-weight: 600; color: var(--ink-1); line-height: 1.3; }
.prod-price     { font-size: 12px; color: var(--ink-2); }
.prod-cta       { margin-top: 8px; }

.btn-personalizza {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  padding: 6px 12px;
  border: none;
  border-radius: var(--r-btn);
  transition: background var(--transition), color var(--transition);
}
.btn-personalizza:hover { background: #333; color: #fff; }

/* ── HELP SECTION ────────────────────────────────────────────────── */
.section-help-wrap { background: var(--card); }

.help-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 32px;
}
@media (max-width: 1024px) { .help-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .help-grid { grid-template-columns: 1fr 1fr; } }

.help-card {
  background: var(--bg);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border-card);
}
.help-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.help-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.help-icon { color: var(--ink-2); margin-bottom: 2px; }
.help-icon-wa { color: #25d366; }
.help-card-wa { background: linear-gradient(145deg,#d4ffed,#e8fff5); }
.help-card h3  { font-size: 14px; font-weight: 600; color: var(--ink-1); }
.help-card p   { font-size: 13px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.help-link     { font-size: 13px; font-weight: 500; color: var(--blue); margin-top: 4px; }
.help-link-muted { color: var(--ink-2); }

.help-card-how { grid-column: span 2; }
@media (max-width: 640px) { .help-card-how { grid-column: span 2; } }

.how-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.how-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.step-n {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── VIEW CATEGORIA ──────────────────────────────────────────────── */
.breadcrumb { padding: 24px 0 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: var(--blue);
  transition: gap var(--transition);
}
.back-link:hover { gap: 8px; }
.cat-page-header { padding: 24px 0 32px; }
.cat-page-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink-1);
  margin-bottom: 8px;
}
.cat-page-header p { font-size: 17px; color: var(--ink-2); }
.grid-prodotti {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding-bottom: 60px;
}
.grid-prodotti .prod-card { width: auto; }

/* ================================================================
   TRUSTPILOT PRE-FOOTER
   ================================================================ */
.tp-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}

/* ── Intestazione ── */
.tp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.tp-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.tp-wordmark {
  height: 26px;
  width: 120px;
  flex-shrink: 0;
  color: var(--ink-1);
}
.tp-score-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp-score-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink-1);
}
.tp-label {
  font-size: .82rem;
  font-weight: 600;
  color: #00b67a;
}
.tp-count {
  font-size: .8rem;
  color: var(--ink-3);
}
.tp-count strong { color: var(--ink-2); font-weight: 600; }
.tp-cta {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 16px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.tp-cta:hover { background: var(--bg); border-color: var(--ink-3); color: var(--ink-1); }

/* ── Stelle (riutilizzate ovunque) ── */
.tp-stars-row,
.tp-card-stars {
  display: flex;
  gap: 2px;
}
.tp-star {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #dcdce6;
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.tp-star--full { background: #00b67a; }
.tp-star--half { background: linear-gradient(to right, #00b67a 50%, #dcdce6 50%); }
.tp-card-stars .tp-star { width: 16px; height: 16px; }

/* ── Carosello ── */
.tp-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tp-track-outer {
  flex: 1;
  overflow: hidden;
}
.tp-track {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 4px 2px;
  margin: 0;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.tp-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  background: transparent;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .18s, border-color .18s;
}
.tp-card:hover { box-shadow: var(--shadow-md); border-color: var(--ink-3); }
.tp-card-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0;
  line-height: 1.3;
}
.tp-card-body {
  font-size: .8rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.tp-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: .72rem;
}
.tp-card-author { font-weight: 600; color: var(--ink-1); }
.tp-card-date   { color: var(--ink-3); }

/* ── Frecce navigazione ── */
.tp-nav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.tp-nav-btn:hover { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }
.tp-nav-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* ── Dots ── */
.tp-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}
.tp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.tp-dot.active {
  background: var(--ink-1);
  transform: scale(1.4);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .tp-card { flex: 0 0 calc(100% - 2px); }
  .tp-header { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 768px) and (max-width: 1139px) {
  .tp-card { flex: 0 0 calc(50% - 8px); }
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  color: var(--ink-2);
}
.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  margin-bottom: 40px;
}
@media (max-width: 767px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 260px; }
.footer-logo .logo-svg { height: 32px; width: 112px; color: var(--ink-1); filter: brightness(0); }
.footer-brand p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #128c7e;
  transition: color var(--transition);
}
.footer-wa-link:hover { color: #25d366; }

.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin-bottom: 12px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a  { font-size: 13px; color: var(--ink-2); transition: color var(--transition); }
.footer-col a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 12px; color: var(--ink-3); }

/* ── MODAL CONFIGURATORE ─────────────────────────────────────────── */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 640px) { .modal { align-items: center; } }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: min(96vw, 1120px);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  overscroll-behavior: contain;
}
@media (min-width: 640px) {
  .modal-dialog { border-radius: 20px; max-height: 90vh; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(0,0,0,.12); }

.modal-content {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 0;
}
@media (min-width: 640px) {
  .modal-content { grid-template-columns: 360px 1fr; }
}

/* ================================================================
   PAGINA PRODOTTO (configuratore come pagina dedicata)
   ================================================================ */
#view-prodotto .container { padding-top: 24px; }
.prodotto-page {
  display: grid;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin: 8px 0 72px;
}
.prodotto-page .conf-preview { border-radius: 0; }
.prodotto-page .conf-preview-photo { min-height: 280px; }
.prodotto-page .conf-form { overflow-y: visible; padding: 36px 24px; }
@media (min-width: 640px) {
  .prodotto-page { grid-template-columns: 400px 1fr; }
  .prodotto-page .conf-preview-photo { min-height: 0; }
  .prodotto-page .conf-form { padding: 44px 40px; }
}

/* ── COLONNA SINISTRA: foto fissa ─── */
.conf-preview {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 0;
}
@media (min-width: 640px) {
  .conf-preview { border-radius: 0 0 0 20px; }
}
.conf-preview-photo {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.conf-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.conf-preview-info {
  padding: 20px 24px 24px;
  background: var(--card);
  flex-shrink: 0;
}
/* fallback SVG mockup */
.conf-preview .mockup {
  flex: 1;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--g1, #f0f0f0), var(--g2, #e0e0e0));
  color: var(--ink-2);
  min-height: 200px;
}
.conf-preview .mockup svg { width: 100px; height: 75px; }

/* ── COLONNA DESTRA: solo il form scorre ─── */
.conf-form {
  overflow-y: auto;
  padding: 48px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.conf-form::-webkit-scrollbar { width: 4px; }
.conf-form::-webkit-scrollbar-track { background: transparent; }
.conf-form::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.conf-preview h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink-1);
}
.conf-desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.conf-meta { display: flex; flex-direction: column; gap: 4px; }
.conf-meta span { font-size: 13px; color: var(--ink-2); }

.form-section {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-1); }
.field input,
.field select,
.field textarea {
  padding: 10px 14px;
  border: 1.5px solid rgba(0,0,0,.14);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--ink-1);
  background: var(--card);
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,.12);
}
.field textarea { min-height: 80px; resize: vertical; }
.field label small { font-weight: 400; color: var(--ink-3); }
.field-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.4;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Testo solo per screen reader / motori di ricerca */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.field.invalid input,
.field.invalid select { border-color: #ff3b30; }
.field-error { font-size: 12px; color: #ff3b30; display: none; }
.field.invalid .field-error { display: block; }

.qty-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.qty-chip {
  padding: 6px 12px;
  border-radius: var(--r-btn);
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.qty-chip small { font-weight: 400; font-size: 11px; color: var(--ink-3); }
.qty-chip.active { border-color: var(--teal); color: var(--teal); background: rgba(20,184,166,.06); }
.qty-chip:hover  { border-color: var(--ink-2); color: var(--ink-1); }

.price-box {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-box h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-2);
}
.price-row .lbl { flex: 1; }
.price-row.discount { color: #34c759; }
.price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-1);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}
.price-unit { font-size: 12px; color: var(--ink-3); text-align: right; }

@keyframes bump {
  0%  { transform: scale(1); }
  40% { transform: scale(1.08); }
  100%{ transform: scale(1); }
}
.bump { animation: bump .25s ease; }

.setup-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--r-btn);
  vertical-align: middle;
  margin-left: 4px;
}
.setup-badge.waived  { background: rgba(52,199,89,.15); color: #34c759; }
.setup-badge.applied { background: rgba(0,0,0,.06); color: var(--ink-3); }

.conf-divider { border: none; border-top: 1px solid var(--border); }

.file-field label.file-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1.5px dashed rgba(0,0,0,.18);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color var(--transition), background var(--transition);
}
.file-field label.file-drop:hover { border-color: var(--blue); background: rgba(0,102,204,.03); }
.file-field label.file-drop.has-file { border-color: var(--teal); color: var(--teal); }
.file-field input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: #25d366;
  color: #fff;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  transition: background var(--transition);
}
.btn-whatsapp:hover:not(:disabled) { background: #128c7e; }
.btn-whatsapp:disabled { opacity: .6; cursor: not-allowed; }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.privacy-note {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
}

/* ── TOAST ───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-1);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 2000;
  max-width: calc(100vw - 48px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ── SCROLL REVEAL ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── HERO SLIDER ─────────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 50vh;
  min-height: 320px;
  overflow: hidden;
  background: #111;
}
@media (max-width: 767px) { .hero-slider { height: 50svh; min-height: 280px; } }

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 600ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.hero-slide {
  flex-shrink: 0;
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-slide-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-photo { transform: scale(1); }
.hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.05) 100%);
  z-index: 1;
}
.hero-slide-inner { position: relative; z-index: 2; }

.hero-slide-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .hero-slide-inner { padding: 0 48px; } }

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 18px;
  color: #111;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255,255,255,.7);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 420px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}
.hero-cta:hover { background: #e8e8e8; }

/* dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 200ms, transform 200ms;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* prev / next arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms;
}
.hero-arrow:hover { background: rgba(255,255,255,.22); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
@media (max-width: 480px) { .hero-arrow { display: none; } }

/* ================================================================
   CART BUTTON + BADGE
   ================================================================ */
.btn-cart {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 8px;
  color: var(--ink-1);
  display: flex;
  align-items: center;
  border-radius: var(--r-btn);
  transition: background var(--transition);
  margin-right: 4px;
}
.btn-cart:hover { background: var(--border); }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

/* ================================================================
   CART OVERLAY
   ================================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ================================================================
   CART SIDEBAR
   ================================================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 420px);
  background: var(--card);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 32px rgba(0,0,0,.15);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.cart-close {
  padding: 6px;
  color: var(--ink-2);
  border-radius: var(--r-btn);
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
}
.cart-close:hover { background: var(--border); color: var(--ink-1); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: .88rem;
  font-weight: 600;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-opts {
  font-size: .75rem;
  color: var(--ink-2);
  margin: 0 0 3px;
  line-height: 1.4;
}
.cart-item-qty {
  font-size: .75rem;
  color: var(--ink-3);
  margin: 0;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.cart-item-price {
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}
.cart-item-remove {
  padding: 4px;
  color: var(--ink-3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition), background var(--transition);
}
.cart-item-remove:hover { color: var(--ink-1); background: var(--border); }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  color: var(--ink-2);
  text-align: center;
  padding: 48px 24px;
}
.cart-empty svg { opacity: .35; }
.cart-empty p { margin: 0; font-size: .95rem; }

.btn-continue {
  padding: 10px 20px;
  border-radius: var(--r-btn);
  border: 1px solid var(--border);
  background: none;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink-1);
  transition: background var(--transition);
}
.btn-continue:hover { background: var(--bg); }

.cart-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: .9rem;
}
.cart-total-row strong {
  font-size: 1.1rem;
  font-weight: 700;
}
.cart-note {
  font-size: .73rem;
  color: var(--ink-3);
  margin: 0 0 14px;
  line-height: 1.45;
}
.btn-checkout-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: var(--ink-1);
  color: #fff;
  border: none;
  border-radius: var(--r-btn);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-checkout-main:hover { opacity: .82; }

/* ================================================================
   ADD-TO-CART BUTTON (in configuratore)
   ================================================================ */
.btn-addcart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: var(--ink-1);
  color: #fff;
  border: none;
  border-radius: var(--r-btn);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
  margin-top: 4px;
}
.btn-addcart:hover { opacity: .82; }

/* ================================================================
   CHECKOUT MODAL — layout 3 colonne: riepilogo | divisore | form
   ================================================================ */
.modal-content--checkout {
  grid-template-columns: 1fr !important;
  overflow: hidden;
}
.checkout-wrap {
  display: grid;
  grid-template-columns: 300px 60px 1fr;
  height: 100%;
}
@media (max-width: 767px) {
  .checkout-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .checkout-wrap::-webkit-scrollbar { width: 4px; }
  .checkout-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
  .checkout-left  { border-right: none; border-bottom: 1px solid var(--border); }
  .checkout-divider { display: none; }
}

/* Pannello sinistro — riepilogo prodotti */
.checkout-left {
  grid-column: 1;
  padding: 40px 24px 28px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.checkout-left::-webkit-scrollbar { width: 4px; }
.checkout-left::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.checkout-section-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 16px;
}
.checkout-items { margin-bottom: 0; }
.checkout-item-group { padding: 12px 0; border-bottom: 1px solid var(--border); }
.checkout-item-group:last-child { border-bottom: none; }
.checkout-item {
  display: flex;
  gap: 10px;
}
.checkout-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.checkout-item-name  { font-size: .82rem; font-weight: 600; margin: 0 0 2px; }
.checkout-item-opts  { font-size: .72rem; color: var(--ink-2); margin: 0 0 2px; line-height: 1.3; }
.checkout-item-price { font-size: .75rem; color: var(--ink-3); margin: 0; }
/* nasconde gli input file veri (attivati dai label circolari) */
.checkout-left input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; }

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .88rem;
}
.checkout-total strong { font-size: 1.05rem; font-weight: 700; }
.checkout-disclaimer { font-size: .72rem; color: var(--ink-3); margin: 8px 0 0; line-height: 1.45; }

/* ── Colonna divisore con pulsanti upload circolari ── */
.checkout-divider {
  grid-column: 2;
  position: relative;
  background: var(--bg);
  border-right: 1px solid var(--border);
  z-index: 5;
}

/* Pulsante circolare upload — posizionato via JS in verticale */
.checkout-upload-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink-1);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 4px 18px rgba(0,0,0,.22), 0 1px 4px rgba(0,0,0,.12);
  transition: transform .22s ease, background .15s, box-shadow .2s;
  gap: 2px;
  text-decoration: none;
}
.checkout-upload-btn:hover {
  transform: translateX(-50%) translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.checkout-upload-btn.has-file {
  background: #16a34a;
}
/* icona toggle upload ↔ spunta */
.checkout-upload-btn .upload-icon  { display: block; }
.checkout-upload-btn .upload-check { display: none;  }
.checkout-upload-btn.has-file .upload-icon  { display: none;  }
.checkout-upload-btn.has-file .upload-check { display: block; }

.checkout-upload-count {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  opacity: .75;
}
.checkout-upload-btn.has-file .checkout-upload-count { font-size: 10px; opacity: 1; }

/* ── Pannello destra — form dati cliente ── */
.checkout-form { grid-column: 3; flex: 1; min-width: 0; overflow-y: auto; }

/* Checkbox "invio file separato" */
.checkout-separate-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 12px;
  cursor: pointer;
}
.checkout-separate-cb {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--ink-1);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.checkout-separate-lbl {
  font-size: .82rem;
  color: var(--ink-2);
  line-height: 1.4;
  user-select: none;
}

/* Avviso mancanza file — visibile finché mancano file e checkbox non attiva */
.checkout-file-warn {
  font-size: .78rem;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--r-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
  line-height: 1.45;
  display: none;
}
.checkout-file-warn.visible { display: block; }


/* ── WhatsApp popup ── */
.wa-popup {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  padding: 18px 18px 14px;
  width: 272px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  pointer-events: none;
}
.wa-popup.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.wa-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  line-height: 0;
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.wa-popup-close:hover { color: #333; background: #f0f0f0; }
.wa-popup-msg {
  margin: 0 0 12px;
  font-size: .9rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  padding-right: 18px;
}
.wa-popup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.wa-popup-btn:hover { background: #1ebe5d; transform: translateY(-1px); }
