/* ==========================================================================
   SHOP MC GROUP - demo prototipo
   ========================================================================== */

:root {
  --primary: #1f3a8f;
  --primary-dark: #142a68;
  --accent: #ff6b35;
  --accent-dark: #e0541f;
  --text: #1a1c22;
  --text-light: #5b6172;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --border: #e2e5ec;
  --success: #1f8f57;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(20, 30, 60, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 30, 60, 0.12);
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Icone SVG inline ---- */
.icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -2px; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Topbar ---- */
.topbar {
  background: var(--primary-dark);
  color: #cfd7f5;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.topbar .container span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 14px; height: 14px; }
.topbar a { color: #cfd7f5; }
.topbar a:hover { color: #fff; }

/* ---- Header ---- */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo span { color: var(--accent); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
nav.main-nav > ul { display: flex; gap: 28px; position: relative; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a {
  font-weight: 600;
  font-size: 14.5px;
  padding: 28px 0;
  display: inline-block;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
nav.main-nav > ul > li:hover > a,
nav.main-nav > ul > li > a.active {
  color: var(--primary);
  border-color: var(--accent);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -10px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 200px;
  display: none;
  z-index: 60;
}
nav.main-nav > ul > li:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 6px;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cart-link:hover { border-color: var(--primary); }
.cart-link .icon { width: 16px; height: 16px; }
.cart-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.btn-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: none; align-items: center; justify-content: center; padding: 6px; color: var(--text); }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--primary-dark);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14,22,52,.93) 0%, rgba(14,22,52,.74) 36%, rgba(14,22,52,.28) 66%, rgba(14,22,52,.06) 100%);
}
.hero .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 78px 20px 100px;
}
.hero-copy { max-width: 540px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.hero-kicker .icon { width: 13px; height: 13px; }
.hero-copy h1 {
  font-size: 43px;
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero-copy p {
  font-size: 16.5px;
  color: #e4e8f6;
  margin: 0 0 26px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline {
  border: 1.5px solid #fff;
  color: #fff;
  background: transparent;
  padding: 12.5px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.btn-outline:hover { background: rgba(255,255,255,.14); }

.hero-rating-card {
  position: absolute;
  left: 20px;
  bottom: 22px;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-light);
  font-size: 12.5px;
  max-width: 230px;
}
.hero-rating-card-top { display: flex; align-items: center; gap: 8px; }
.hero-rating-card-top strong { font-size: 20px; color: var(--text); font-weight: 800; }
.hero-rating-card .stars { display: inline-flex; gap: 1px; color: var(--accent); }
.hero-rating-card .stars .icon { width: 12px; height: 12px; }

/* ---- Hero: carosello foto cliccabili (sezione "Hero" in admin.html) ----
   Se l'admin ha caricato almeno una foto, index.html sostituisce il
   contenuto di #heroMedia con questa struttura (foto in dissolvenza, ognuna
   cliccabile se ha un link); altrimenti #heroMedia resta con l'unica <img>
   statica già scritta in HTML e queste regole restano semplicemente
   inutilizzate. Il gradiente .hero-media::after (sopra) resta invariato e si
   sovrappone automaticamente anche al carosello. */
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide-caption {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-dot.is-active { background: #fff; transform: scale(1.25); }

/* ---- Titolo + sottotitolo animati sulle slide hero ----
   .hero-slide-text è il wrapper posizionabile (9 classi pos-*).
   .hero-slide-text-inner gestisce l'animazione translateY separatamente
   dal transform del wrapper, così le varianti centrate non si rompono. */
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-slide-text {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  max-width: 68%;
}
.hero-slide-text-inner { opacity: 0; }
.hero-slide.is-active .hero-slide-text-inner {
  animation: heroTitleIn .55s cubic-bezier(.22,.61,.36,1) .1s forwards;
}
/* 9 posizioni — predefinita bl (basso-sinistra) */
.hero-slide-text.pos-tl { top: 32px;  left: 32px;                                       text-align: left; }
.hero-slide-text.pos-tc { top: 32px;  left: 50%;  transform: translateX(-50%);           text-align: center; }
.hero-slide-text.pos-tr { top: 32px;  right: 32px;                                       text-align: right; }
.hero-slide-text.pos-cl { top: 50%;   left: 32px;  transform: translateY(-50%);          text-align: left; }
.hero-slide-text.pos-c  { top: 50%;   left: 50%;   transform: translate(-50%, -50%);     text-align: center; }
.hero-slide-text.pos-cr { top: 50%;   right: 32px; transform: translateY(-50%);          text-align: right; }
.hero-slide-text.pos-bl { bottom: 54px; left: 32px;                                      text-align: left; }
.hero-slide-text.pos-bc { bottom: 54px; left: 50%; transform: translateX(-50%);          text-align: center; }
.hero-slide-text.pos-br { bottom: 54px; right: 32px;                                     text-align: right; }
.hero-slide-title {
  display: block;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.hero-slide-subtitle {
  display: block;
  font-size: clamp(13px, 2vw, 19px);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  margin-top: 6px;
}

/* ---- Fascia di fiducia ---- */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 32px 0;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.trust-item .trust-icon {
  width: 30px;
  height: 30px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item .trust-icon .icon { width: 30px; height: 30px; }
.trust-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }

/* ---- Steps / come funziona ---- */
.steps {
  padding: 56px 0;
  background: var(--bg-soft);
}
.section-title {
  text-align: left;
  margin: 0 0 30px;
}
.section-title h2 { font-size: 30px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 6px; }
.section-title p { color: var(--text-light); margin: 0; font-size: 15px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.step-card p { font-size: 14px; color: var(--text-light); margin: 0; }

/* ---- Categorie ----
   Tile fotografica a tutto campo con overlay scuro in basso (stesso
   linguaggio visivo del gradiente .hero-media): niente più testo separato
   sotto la foto, solo nome categoria + freccia direttamente sull'immagine. */
.categories { padding: 56px 0; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 24, 40, .06);
}
.cat-card .cat-photo {
  position: relative;
  height: 230px;
  background: var(--bg-soft);
}
.cat-card .cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.cat-card:hover .cat-photo img { transform: scale(1.07); }
.cat-card .cat-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 30, 0) 38%, rgba(10, 14, 30, .82) 100%);
}
.cat-card .cat-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
}
.cat-card .cat-label h3 { margin: 0; font-size: 16.5px; font-weight: 700; color: #fff; }
.cat-card .cat-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.cat-card .cat-go .icon { width: 16px; height: 16px; }
.cat-card:hover .cat-go { background: var(--accent); transform: translateX(2px); }

/* ---- Chi siamo ---- */
.about { padding: 56px 0; background: var(--bg-soft); }
.about-grid {
  display: flex;
  align-items: center;
  gap: 48px;
}
.about-media {
  flex: 0 0 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-media img { width: 100%; height: 320px; object-fit: cover; display: block; }
.about-copy { flex: 1; }
.about-copy .section-title { text-align: left; margin-bottom: 16px; }
.about-copy > p {
  font-size: 15px;
  color: var(--text-light);
  margin: 0 0 22px;
  max-width: 560px;
}
.about-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.about-service { display: flex; align-items: flex-start; gap: 12px; }
.about-service .num { font-weight: 800; color: var(--accent); font-size: 15px; flex-shrink: 0; }
.about-service h4 { margin: 0 0 3px; font-size: 14.5px; }
.about-service span { color: var(--text-light); font-size: 13px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
  font-size: 14.5px;
}
.link-arrow:hover { color: var(--primary-dark); }

/* ---- Clienti ---- */
.clients { padding: 48px 0 56px; overflow: hidden; }
.clients-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 64px;
  animation: clients-scroll 32s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.client-logo {
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--text-light);
  white-space: nowrap;
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s;
}
.client-logo:hover { color: var(--primary); opacity: 1; }
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

/* ---- Prodotti in evidenza / griglia catalogo ---- */
.featured { padding: 16px 0 56px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product-card .thumb {
  background: var(--bg-soft);
  display: block;
  height: 190px;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .thumb svg { width: 100%; height: 160px; }
.product-card .info { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat-tag {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent-dark);
  font-weight: 700;
}
.product-card h3 { margin: 0; font-size: 15.5px; }
.product-card .price { font-weight: 800; color: var(--primary); font-size: 16px; margin-top: 4px; }
.product-card .price small { color: var(--text-light); font-weight: 500; font-size: 12px; }
.product-card .swatches { display: flex; gap: 5px; margin-top: 2px; }
.swatch-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
}
.product-card .btn-configure {
  margin-top: auto;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 999px;
  border: none;
}
.product-card .btn-configure:hover { background: var(--primary-dark); }

/* ---- Filtri catalogo ---- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-chip {
  border: 1px solid var(--border);
  background: #fff;
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
}
.filter-chip.active, .filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eef1fc;
}
.page-title { padding: 36px 0 6px; }
.page-title h1 { font-size: 28px; margin: 0 0 6px; }
.page-title p { color: var(--text-light); margin: 0 0 20px; }

/* ---- Footer ---- */
footer.site-footer {
  background: #15171e;
  color: #9da3b3;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0 28px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 16px;
}
.footer-grid li { margin-bottom: 9px; font-size: 13.5px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  font-size: 12.5px;
  text-align: center;
  color: #6b7180;
}
.footer-brand p { font-size: 13.5px; color: #868dA0; max-width: 320px; }

/* ---- Pagine informative (Privacy, Cookie Policy) ---- */
.legal-content { max-width: 760px; padding: 10px 0 70px; }
.legal-content h2 { font-size: 19px; margin: 32px 0 10px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 15.5px; margin: 20px 0 8px; }
.legal-content p { margin: 0 0 12px; color: var(--text); font-size: 14.5px; line-height: 1.65; }
.legal-content ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.legal-content li { margin-bottom: 6px; font-size: 14.5px; line-height: 1.6; }
.legal-content .legal-updated { color: var(--text-light); font-size: 13px; margin-bottom: 28px; }
.legal-content .legal-note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-light);
  margin: 24px 0;
}

/* ---- Cookie notice: banner informativo non intrusivo, niente accept/
   reject perche' i soli "cookie" usati (sessione tecnica + localStorage
   funzionale) sono esentati dall'obbligo di consenso. Dismiss persistito
   in localStorage (uso tecnico, non richiede a sua volta consenso). ---- */
.cookie-notice {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: #15171e;
  color: #cfd2db;
  box-shadow: 0 -2px 14px rgba(0,0,0,.18);
}
.cookie-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 20px;
}
.cookie-notice p { margin: 0; font-size: 13px; line-height: 1.55; max-width: 820px; }
.cookie-notice a { color: #fff; text-decoration: underline; }
.cookie-notice-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}
.cookie-notice-btn:hover { background: var(--accent-dark); }

/* ---- Checkbox consenso privacy nel form di registrazione ---- */
.consent-field { margin-top: 6px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}
.consent-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 15px; height: 15px; }
.consent-label a { text-decoration: underline; color: var(--text); }

/* ==========================================================================
   CONFIGURATORE
   ========================================================================== */
.configurator-wrap {
  padding: 28px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
}
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--primary); }

.stage-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mockup-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  touch-action: none;
}
.mockup-stage svg { width: 100%; height: 100%; display: block; }
.product-photo-stage { width: 100%; height: 100%; display: block; object-fit: contain; }

.print-clip {
  position: absolute;
  overflow: hidden;
  cursor: grab;
}
.print-clip.is-empty {
  border: 1.5px dashed rgba(31,58,143,.35);
  background: rgba(31,58,143,.03);
}
.print-clip.dragging { cursor: grabbing; }
.print-clip.locked { cursor: default; }
.print-clip .empty-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  padding: 6px;
  pointer-events: none;
}
.logo-img {
  position: absolute;
  width: 40%;
  transform: translate(-50%, -50%);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.handle {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transform: translate(-50%, -50%);
}
.handle .icon { width: 13px; height: 13px; }
.handle.visible { display: flex; }
.handle-resize { cursor: nwse-resize; }
.handle-rotate { cursor: grab; background: var(--accent); border-color: var(--accent-dark); color: #fff; }
.handle-rotate.dragging, .handle-resize.dragging { cursor: grabbing; }

.stage-hint { font-size: 12.5px; color: var(--text-light); text-align: center; }
.stage-toolbar { display: flex; gap: 10px; }
.btn-ghost {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost .icon { width: 14px; height: 14px; }

.options-panel h1 { font-size: 24px; margin: 0 0 4px; }
.options-panel .base-price { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.option-block { margin-bottom: 24px; }
.option-block > label, .option-block > .label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 10px;
}
.option-block .label .selected-value { font-weight: 500; color: var(--text-light); }

.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}
.color-swatch.selected { outline: 2px solid var(--primary); outline-offset: 2px; }

.size-row { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  border: 1px solid var(--border);
  background: #fff;
  min-width: 44px;
  padding: 8px 10px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13.5px;
}
.size-btn.selected { border-color: var(--primary); background: #eef1fc; color: var(--primary); }

.upload-box {
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-light);
}
.upload-box input[type=file] { margin-top: 10px; }
.upload-note { font-size: 12px; color: var(--text-light); margin-top: 8px; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 7px; }
.qty-stepper button {
  border: none; background: none; width: 36px; height: 36px; font-size: 16px; font-weight: 700; color: var(--primary);
}
.qty-stepper input {
  width: 50px; text-align: center; border: none; font-size: 14.5px; font-weight: 700;
}
.qty-tiers { font-size: 12px; color: var(--text-light); }

.price-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.price-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; color: var(--text-light); }
.price-row.discount { color: var(--success); }
.price-row.total { font-size: 19px; font-weight: 800; color: var(--text); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.price-row.total small { font-size: 12px; font-weight: 500; color: var(--text-light); }

.btn-add-cart {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-add-cart:hover { background: var(--accent-dark); }
.btn-add-cart:disabled { background: #c9cdd6; cursor: not-allowed; }
.btn-add-cart .icon { width: 15px; height: 15px; }
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--success);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 200;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ==========================================================================
   WIZARD PRODOTTO - layout ad accordion + pannello prezzo sticky
   (stile pixartprinting.it: step risolti si riducono a una riga con il
   valore scelto + "Modifica", lo step corrente resta espanso, il
   preventivo è una colonna sticky a destra sempre visibile)
   ========================================================================== */
/* ---- intestazione prodotto: badge categoria, titolo, prezzo base ---- */
.product-head { margin-bottom: 6px; }
.product-category-badge {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product-category-badge:empty { display: none; }
.product-title { font-size: 28px; margin: 2px 0 6px; letter-spacing: -.01em; }
.base-price { color: var(--text-light); font-size: 14px; margin-bottom: 14px; }

/* ---- descrizione prodotto (pagina configuratore, sotto il prezzo base, sopra l'elenco specifiche) ---- */
.product-description {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 16px;
  max-width: 640px;
}

/* ---- elenco specifiche prodotto: griglia di card invece di lista piatta ---- */
.product-specs-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.product-specs-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
}
.product-specs-list .icon {
  width: 14px;
  height: 14px;
  color: var(--success);
  margin-top: 3px;
  flex-shrink: 0;
}
.product-specs-list .specs-label {
  display: block;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 2px;
}

.wizard-page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  padding: 28px 0 60px;
}
.wizard-main { min-width: 0; }
.wizard-visual-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-soft) 0%, #eef1fb 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.wizard-visual-panel::before,
.wizard-visual-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.wizard-visual-panel::before {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(31, 58, 143, .08), transparent 70%);
  top: -60px;
  right: -60px;
}
.wizard-visual-panel::after {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 107, 53, .08), transparent 70%);
  bottom: -50px;
  left: -50px;
}
.wizard-visual-panel .mockup-stage,
.wizard-visual-panel .stage-toolbar,
.wizard-visual-panel .wizard-visual-label,
.wizard-visual-panel .wizard-visual-hint {
  position: relative;
  z-index: 1;
}
.wizard-visual-panel .mockup-stage { max-width: 100%; box-shadow: var(--shadow-lg); }
.wizard-visual-label { font-size: 14px; font-weight: 700; text-align: center; }
.wizard-visual-hint { font-size: 12px; color: var(--text-light); text-align: center; margin: 0; }
.wizard-wrap { min-width: 0; }

.wizard-live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: liveDotPulse 1.8s ease-in-out infinite;
}
@keyframes liveDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 143, 87, .45); }
  50% { box-shadow: 0 0 0 5px rgba(31, 143, 87, 0); }
}

/* ---- sidebar prezzo sticky ---- */
.wizard-sidebar { position: sticky; top: 24px; }
.wizard-summary-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.summary-head {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.summary-head .icon { width: 18px; height: 18px; }
.summary-body { padding: 20px 20px 4px; }
.summary-body .price-row.total { color: var(--success); border-top: 2px solid var(--success); }
.summary-cta { background: var(--success); width: calc(100% - 40px); margin: 16px 20px 16px; }
.summary-cta:hover { background: #176b41; }
.summary-note { font-size: 11.5px; color: var(--text-light); margin: 0 20px 14px; }

/* ---- fascia di fiducia (spedizione/pagamento/qualità), sotto il pannello prezzo sticky ---- */
.summary-trust-row {
  list-style: none;
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.summary-trust-row li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
}
.summary-trust-row .icon { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }

/* ---- selettore tempo di consegna, dentro il pannello prezzo sticky ---- */
.delivery-select { margin: 4px 0 14px; }
.delivery-select-label { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.delivery-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
}
.delivery-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.delivery-option:has(input:checked) { border: 2px solid var(--success); background: #eaf6ef; padding: 9px; }
.delivery-option .do-label { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }
.delivery-option .do-extra { font-size: 11.5px; color: var(--text-light); }
.delivery-option:has(input:checked) .do-extra { color: var(--success); font-weight: 700; }

/* ---- accordion step ---- */
.wizard-accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.wizard-step-row { border-bottom: 1px solid var(--border); }
.wizard-step-row:last-child { border-bottom: none; }

.wsr-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
}
.wsr-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eceef2;
  color: #6b7186;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wsr-num .icon { width: 13px; height: 13px; }
.wsr-title { font-weight: 700; font-size: 14.5px; flex: 1; }
.wsr-value { font-size: 13px; color: var(--text-light); margin-right: 4px; text-align: right; }
.wsr-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 12.5px;
  padding: 4px 6px;
  white-space: nowrap;
}
.wsr-edit .icon { width: 12px; height: 12px; }

.wizard-step-row.is-current .wsr-header { background: var(--bg-soft); }
.wizard-step-row.is-current .wsr-num { background: var(--primary); color: #fff; }
.wizard-step-row.is-done .wsr-header { cursor: pointer; }
.wizard-step-row.is-done .wsr-num { background: var(--success); color: #fff; }
.wizard-step-row.is-done .wsr-header:hover { background: var(--bg-soft); }
.wizard-step-row.is-upcoming .wsr-header { opacity: .45; }
.wizard-step-row.is-upcoming .wsr-title { color: var(--text-light); }

.wsr-content { padding: 6px 22px 26px; }
.wsr-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.wsr-nav .wsr-next { width: auto; padding: 12px 26px; margin-left: auto; }

.wizard-step-title { font-size: 19px; margin: 0 0 8px; }
.wizard-step-hint { font-size: 13.5px; color: var(--text-light); margin: 0 0 6px; }

.qty-matrix-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.qty-matrix-table th, .qty-matrix-table td { border: 1px solid var(--border); padding: 7px; text-align: center; font-size: 13px; }
.qty-matrix-table th { background: #23252b; color: #fff; font-weight: 700; }
.qty-matrix-table td.color-cell { text-align: left; font-weight: 600; white-space: nowrap; }
.qty-matrix-table input[type=number] { width: 52px; border: 1px solid var(--border); border-radius: 4px; padding: 5px; text-align: center; font-size: 13px; }
.matrix-color-dot { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); display: inline-block; vertical-align: middle; margin-right: 8px; }

.neutral-check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 600;
}
.zone-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
}
.zone-card .zone-diagram svg { width: 110px; height: 110px; }
.zone-card h4 { margin: 0 0 12px; font-size: 15px; }
.technique-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 18px; }
.technique-option { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 3px 0; cursor: pointer; }
.technique-option input { margin: 0; }
.technique-option:has(input:checked) { color: var(--primary); font-weight: 700; }

/* ---- box opzioni stile pixart (sfondo grigio chiaro, griglia 2 colonne) ---- */
.option-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 18px;
}
.option-box-title { font-weight: 700; font-size: 13.5px; margin: 0 0 12px; }
.option-box + .option-box { margin-top: 14px; }

.optional-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.optional-list.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 0; }
.optional-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  font-size: 13.5px;
  cursor: pointer;
}
.optional-item input { margin-top: 3px; }
.optional-item:has(input:checked) { border-color: var(--primary); background: #eef1fc; }

/* ---- swatch formato (rettangolo proporzionato + etichetta) ---- */
.format-swatch-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.format-swatch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  cursor: pointer;
  text-align: center;
}
.format-swatch-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.format-swatch-card:has(input:checked) { border: 2px solid var(--primary); background: #eef1fc; padding: 15px 13px; }
.swatch-icon { height: 48px; display: flex; align-items: center; justify-content: center; }
.swatch-rect { display: block; background: #fff; border: 2px solid #8a93ab; border-radius: 2px; }
.format-swatch-card:has(input:checked) .swatch-rect { border-color: var(--primary); background: #eef1fc; }
.swatch-label { font-weight: 700; font-size: 13px; }
.swatch-dims { font-size: 11.5px; color: var(--text-light); }

/* ---- "gestisci il file di stampa": 3 card colorate stile pixart ---- */
.upload-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 26px; }
.upload-info-card {
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.upload-info-card .uic-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.upload-info-card .uic-icon .icon { width: 20px; height: 20px; }
.upload-info-card h4 { margin: 0; font-size: 14px; }
.upload-info-card p { margin: 0; font-size: 12px; color: var(--text-light); }
.upload-info-card .uic-action { font-size: 12.5px; font-weight: 700; color: var(--primary); }
.upload-info-card .uic-badge { font-size: 10.5px; font-weight: 700; color: var(--text-light); background: rgba(255,255,255,.75); padding: 3px 10px; border-radius: 999px; }
.upload-info-card.card-upload { background: #fdf2e3; }
.upload-info-card.card-create { background: #e3eff0; }
.upload-info-card.card-designer { background: #e6f4e9; }

.upload-zone-row { border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.upload-zone-row .uz-label { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.upload-zone-row .uz-file-name { font-size: 12.5px; color: var(--text-light); margin-top: 8px; }

/* ---- Carrello ---- */
.cart-wrap { padding: 32px 0 70px; }
.cart-item {
  display: grid;
  grid-template-columns: 110px 1.6fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.cart-item .mini-stage { width: 100%; aspect-ratio: 1/1; background: var(--bg-soft); border-radius: 7px; position: relative; overflow: hidden; }
.cart-item .mini-stage svg { width: 100%; height: 100%; }
.cart-item .mini-logo { position: absolute; }
.cart-item h4 { margin: 0 0 4px; font-size: 15px; }
.cart-item .meta { font-size: 13px; color: var(--text-light); }
.cart-item .qty-line { font-size: 13px; margin-top: 6px; }
.cart-item .item-total { font-weight: 800; font-size: 16px; text-align: right; }
.cart-item .remove-btn { font-size: 12.5px; color: #b3261e; text-align: right; margin-top: 6px; background:none; border:none; padding:0; font-weight:600; }
.cart-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg-soft);
}
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.cart-empty a { color: var(--primary); font-weight: 700; }
.coupon-row { display: flex; align-items: center; }
.btn-secondary {
  padding: 8px 14px; border: 1px solid var(--primary); border-radius: 6px;
  background: transparent; color: var(--primary); font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-secondary:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Header: link area clienti ---- */
.account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.account-link:hover { border-color: var(--primary); }
.account-link .icon { width: 16px; height: 16px; }

/* ==========================================================================
   AREA CLIENTI - login, registrazione, dashboard profilo e storico ordini
   ========================================================================== */
.auth-wrap { max-width: 640px; margin: 0 auto; padding: 8px 0 70px; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.auth-tab {
  background: none;
  border: none;
  padding: 12px 4px;
  margin-right: 24px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tab.active { color: var(--primary); border-color: var(--accent); }

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-field .hint { font-size: 11.5px; color: var(--text-light); margin: 4px 0 0; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 64px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-errors {
  background: #fdeceb;
  border: 1px solid #f3c1bd;
  color: #9c2c22;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13.5px;
}
.form-errors ul { margin: 0; padding-left: 18px; list-style: disc; }
.form-errors li { margin-bottom: 2px; }

.customer-type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.customer-type-option {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  text-align: center;
}
.customer-type-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.customer-type-option:has(input:checked) { border: 2px solid var(--primary); background: #eef1fb; padding: 13px; }
.customer-type-option .cto-label { display: block; font-weight: 700; font-size: 14.5px; color: var(--text); }
.customer-type-option .cto-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.customer-type-option:has(input:checked) .cto-sub { color: var(--primary); }

.form-section-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 22px 0 14px;
}
.form-section-title:first-child { margin-top: 0; }

/* ---- dashboard area clienti ---- */
.account-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.account-hero h1 { margin: 0 0 4px; font-size: 26px; }
.btn-logout {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}
.btn-logout:hover { border-color: #b3261e; color: #b3261e; }

.account-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.account-card-head h3 { margin: 0; font-size: 15.5px; }
.account-card-body { padding: 22px; }

.btn-edit { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--primary); font-weight: 700; font-size: 13px; padding: 0; }
.btn-edit .icon { width: 14px; height: 14px; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.profile-field { font-size: 14px; }
.profile-field .pf-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.profile-field .pf-value { font-weight: 600; }

.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn-save { background: var(--success); color: #fff; border: none; border-radius: 999px; padding: 11px 24px; font-weight: 700; font-size: 14px; }
.btn-save:hover { background: #176b41; }
.btn-cancel { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 11px 24px; font-weight: 700; font-size: 14px; color: var(--text); }

.order-row { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.order-row-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; gap: 12px; flex-wrap: wrap; }
.order-row-head .or-id { font-weight: 700; font-size: 13.5px; }
.order-row-head .or-date { font-size: 12.5px; color: var(--text-light); }
.order-row-head .or-total { font-weight: 800; }
.order-row-head .or-status { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.order-row-head .icon.chev { width: 14px; height: 14px; transition: transform .15s; flex-shrink: 0; }
.order-row.open .icon.chev { transform: rotate(180deg); }
.order-details { display: none; padding: 4px 18px 16px; border-top: 1px solid var(--border); }
.order-row.open .order-details { display: block; }
.order-details .od-item { font-size: 13px; color: var(--text-light); padding: 8px 0; border-bottom: 1px dashed var(--border); }
.order-details .od-item:last-child { border-bottom: none; }
.orders-empty { color: var(--text-light); font-size: 14px; padding: 8px 0; }

/* ==========================================================================
   AREA CLIENTI - layout a due colonne (sidebar + pannelli) con tab Ordini /
   Dati personali / Sicurezza. Sostituisce le due .account-card impilate
   della versione precedente. .account-hero/.account-card restano definite
   sopra ma non sono più usate in account.html (lasciate per compatibilità
   con eventuali altre pagine che le richiamassero).
   ========================================================================== */
.acc-shell { display: grid; grid-template-columns: 248px 1fr; gap: 24px; align-items: start; }

.acc-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 16px;
  position: sticky;
  top: 24px;
}
.acc-avatar-block { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.acc-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; letter-spacing: .02em;
}
.acc-id { min-width: 0; }
.acc-name { font-weight: 800; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-email { font-size: 12px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.acc-nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; }
.acc-nav-item {
  display: flex; align-items: center; gap: 10px; background: none; border: none;
  border-radius: 8px; padding: 10px 12px; font-weight: 700; font-size: 13.5px;
  color: var(--text-light); text-align: left; width: 100%;
}
.acc-nav-item .icon { width: 16px; height: 16px; flex-shrink: 0; }
.acc-nav-item:hover { background: var(--bg-soft); color: var(--text); }
.acc-nav-item.active { background: #eef1fb; color: var(--primary); }

.acc-logout {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.acc-logout .icon { width: 14px; height: 14px; }

.acc-main { min-width: 0; }
.acc-panel { display: none; }
.acc-panel.active { display: block; }
.acc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.acc-panel-head h2 { margin: 0; font-size: 19px; }

.acc-security-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.acc-security-card h3 { margin: 0 0 16px; font-size: 15px; }

/* ---- toggle mostra/nascondi password ---- */
.pwd-field { position: relative; }
.pwd-input-wrap { position: relative; }
.pwd-input-wrap input { padding-right: 40px; }
.btn-pwd-toggle {
  position: absolute; top: 0; right: 0; bottom: 0; width: 38px;
  background: none; border: none; color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
}
.btn-pwd-toggle:hover { color: var(--primary); }
.btn-pwd-toggle .icon { width: 16px; height: 16px; }

/* ---- stepper visivo di avanzamento ordine ---- */
.order-stepper { display: flex; align-items: flex-start; margin: 4px 0 16px; }
.os-step { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; position: relative; }
.os-dot {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 2px solid var(--border); color: var(--text-light); flex-shrink: 0;
  z-index: 1; font-size: 0;
}
.os-dot .icon { width: 12px; height: 12px; }
.os-line { position: absolute; top: 11px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.os-step:last-child .os-line { display: none; }
.os-label { font-size: 10.5px; font-weight: 700; color: var(--text-light); margin-top: 6px; text-align: center; padding: 0 2px; }

.os-step.done .os-dot { background: var(--success); border-color: var(--success); color: #fff; }
.os-step.done .os-line { background: var(--success); }
.os-step.done .os-label { color: var(--text); }
.os-step.current .os-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px #eef1fb; }
.os-step.current .os-label { color: var(--primary); }

.order-cancelled-banner {
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
  color: #b3261e; background: #fbe9e7; border-radius: 7px; padding: 10px 14px; margin: 4px 0 16px;
}
.order-cancelled-banner .icon { width: 15px; height: 15px; flex-shrink: 0; }

/* ---- controlli quantità / rimozione articolo (cliente, solo se "Ricevuto") ---- */
.oi-item-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.qty-btn { background: none; border: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.qty-btn:hover { background: var(--bg-soft); }
.qty-btn:disabled { opacity: .4; }
.qty-btn .icon { width: 12px; height: 12px; }
.qty-value { min-width: 28px; text-align: center; font-weight: 700; font-size: 12.5px; }
.btn-remove-item {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  color: #b3261e; font-size: 12px; font-weight: 700; padding: 0;
}
.btn-remove-item .icon { width: 13px; height: 13px; }
.btn-remove-item:hover { text-decoration: underline; }

/* ---- azioni a fondo ordine (PDF + annulla) ---- */
.order-actions-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.btn-download-pdf {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--border);
  color: var(--primary); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.btn-download-pdf:hover { background: var(--bg-soft); border-color: var(--primary); }
.btn-download-pdf .icon { width: 13px; height: 13px; }
.btn-cancel-order {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid #f3c1bd;
  color: #b3261e; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 12.5px;
}
.btn-cancel-order:hover { background: #fbe9e7; }
.btn-cancel-order .icon { width: 13px; height: 13px; }

/* ---- modale di conferma (annulla ordine) - stesso pattern del lightbox file ---- */
.confirm-modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(20,26,45,.5);
  align-items: center; justify-content: center; padding: 20px; z-index: 320;
}
.confirm-modal-backdrop.active { display: flex; }
.confirm-modal-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 30px 28px; max-width: 380px; width: 100%; text-align: center;
}
.confirm-modal-icon {
  width: 52px; height: 52px; border-radius: 50%; background: #fbe9e7; color: #b3261e;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.confirm-modal-icon .icon { width: 24px; height: 24px; }
.confirm-modal-box h3 { margin: 0 0 8px; font-size: 17px; }
.confirm-modal-box p { color: var(--text-light); font-size: 13.5px; margin: 0 0 22px; }
.confirm-modal-actions { display: flex; gap: 10px; justify-content: center; }
.btn-danger { background: #b3261e; color: #fff; border: none; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 13.5px; }
.btn-danger:hover { background: #8f1e18; }

/* ==========================================================================
   DETTAGLIO ORDINE CLIENTE - specifiche articolo, anteprima file caricati,
   sostituzione file entro 30 minuti dall'ordine. Stessa logica visiva del
   pannello admin (vedi css/admin.css .oi-item/.file-chip/lightbox), portata
   qui perché account.html non carica css/admin.css.
   ========================================================================== */
.replace-window-banner {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  color: var(--accent-dark); background: #fdeee5; border-radius: 7px; padding: 8px 12px; margin: 4px 18px 12px;
}
.replace-window-banner .icon { width: 14px; height: 14px; flex-shrink: 0; }

.oi-list { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.oi-item { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: var(--bg-soft); }
.oi-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.oi-item-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.oi-item-total { font-size: 13.5px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.oi-item-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-light); margin-top: 5px; }
.oi-item-meta .icon { width: 13px; height: 13px; flex-shrink: 0; }

.oi-files-empty { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-light); margin: 9px 0 0; font-style: italic; }
.oi-files-empty .icon { width: 14px; height: 14px; }

.oi-files { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; }
.cf-file-card { display: flex; flex-direction: column; gap: 6px; }
.file-chip {
  display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  max-width: 240px; cursor: pointer; text-decoration: none; color: var(--text);
}
.file-chip:hover { border-color: var(--primary); }
.file-chip-thumb {
  width: 36px; height: 36px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.file-chip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-chip-thumb-doc .icon { width: 17px; height: 17px; }
.file-chip-meta { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.file-chip-label { font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.file-chip-name { font-size: 11px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.file-chip-action { display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-light); }
.file-chip-action .icon { width: 14px; height: 14px; }
.file-chip:hover .file-chip-action { color: var(--primary); }
.ico-rot { transform: rotate(180deg); }

/* ---- pulsante/stato sostituzione file (finestra 30 minuti) ---- */
.btn-replace-file {
  display: inline-flex; align-items: center; gap: 6px; background: none;
  border: 1px dashed var(--border); color: var(--primary); border-radius: 7px;
  padding: 5px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; max-width: 240px;
}
.btn-replace-file:hover { border-color: var(--primary); background: #eef1fb; }
.btn-replace-file .icon { width: 12px; height: 12px; flex-shrink: 0; }
.btn-replace-file .cf-countdown { color: var(--text-light); font-weight: 600; }
.btn-replace-file:disabled { opacity: .55; cursor: default; }
.cf-replace-locked {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px;
  color: var(--text-light); font-style: italic;
}
.cf-replace-locked .icon { width: 12px; height: 12px; flex-shrink: 0; }

/* ---- lightbox anteprima file (immagini) - id #fileLightboxBackdrop ---- */
.file-lightbox-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(20,26,45,.5);
  align-items: flex-start; justify-content: center; padding: 40px 20px; z-index: 300; overflow-y: auto;
}
.file-lightbox-backdrop.active { display: flex; }
.lightbox-box {
  position: relative; max-width: 90vw; max-height: 85vh;
  background: transparent; display: flex; flex-direction: column; align-items: center;
}
.lightbox-img { max-width: 90vw; max-height: 75vh; border-radius: 8px; box-shadow: var(--shadow-lg); background: #fff; }
.lightbox-caption { color: #fff; font-size: 13px; margin: 12px 0 0; text-align: center; }
.btn-modal-close {
  background: #fff; border: none; color: var(--text-light); width: 30px; height: 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-modal-close .icon { width: 14px; height: 14px; }
.btn-modal-close:hover { color: var(--text); }
.lightbox-close { position: absolute; top: -14px; right: -14px; box-shadow: var(--shadow); }

/* ==========================================================================
   PAGAMENTI (Fase 2) - selezione metodo, riepilogo bonifico, badge stato
   ========================================================================== */
.payment-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 18px 0; }
.payment-method-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
}
.payment-method-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-method-option:has(input:checked) { border: 2px solid var(--primary); background: #eef1fb; padding: 13px; }
.payment-method-option .icon { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.payment-method-option .pmo-label { display: block; font-weight: 700; font-size: 14px; color: var(--text); }
.payment-method-option .pmo-sub { font-size: 11.5px; color: var(--text-light); margin-top: 1px; }

.bank-transfer-box {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg-soft);
  margin: 16px 0;
  text-align: left;
}
.bank-transfer-box h4 { margin: 0 0 12px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.bank-transfer-box h4 .icon { width: 17px; height: 17px; color: var(--primary); }
.bt-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.bt-row:last-child { border-bottom: none; }
.bt-label { color: var(--text-light); }
.bt-value { font-weight: 700; text-align: right; }
.bank-transfer-box .bt-note { font-size: 12.5px; color: var(--text-light); margin: 12px 0 0; }

/* ---- spedizione: corriere + numero di spedizione (riusa .bt-row/.bt-label/
   .bt-value generici, vedi sopra) - accento blu come lo stato "Spedito"
   (STATUS_COLORS in account.html/admin.html), per distinguerla a colpo
   d'occhio dal box bonifico/pagamento. ---- */
.tracking-box {
  border: 1px solid rgba(31,58,143,.2);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #eef1fb;
  margin: 16px 0;
  text-align: left;
}
.tracking-box h4 { margin: 0 0 12px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; color: #1f3a8f; }
.tracking-box h4 .icon { width: 17px; height: 17px; color: #1f3a8f; }
.tracking-box .bt-row { border-bottom: 1px dashed rgba(31,58,143,.25); }

.pay-status { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; display: inline-block; white-space: nowrap; }
.pay-status-pagato { color: var(--success); background: #eaf6ef; }
.pay-status-in_attesa { color: var(--accent-dark); background: #fdeee5; }
.pay-status-fallito, .pay-status-rimborsato { color: #b3261e; background: #fbe9e7; }

.btn-pay-now {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 13px;
  margin-top: 10px;
}
.btn-pay-now:hover { background: var(--accent-dark); }
.btn-pay-now .icon { width: 14px; height: 14px; }

.payment-confirm-box {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: var(--shadow);
}
.payment-confirm-box .pcb-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.payment-confirm-box .pcb-icon.ok { background: #eaf6ef; color: var(--success); }
.payment-confirm-box .pcb-icon.fail { background: #fbe9e7; color: #b3261e; }
.payment-confirm-box .pcb-icon.wait { background: #fdeee5; color: var(--accent-dark); }
.payment-confirm-box .pcb-icon .icon { width: 30px; height: 30px; }
.payment-confirm-box h1 { font-size: 22px; margin: 0 0 10px; }
.payment-confirm-box p { color: var(--text-light); font-size: 14.5px; margin: 0 0 24px; }
.payment-confirm-box .pcb-order { font-size: 13px; color: var(--text-light); margin-bottom: 22px; }
.payment-confirm-box .pcb-order strong { color: var(--text); }
.payment-confirm-box .pcb-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- Mobile nav drawer ---- */
nav.main-nav.mobile-open {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
  z-index: 200;
  padding: 6px 0 12px;
}
nav.main-nav.mobile-open > ul {
  flex-direction: column;
  gap: 0;
  padding: 0;
}
nav.main-nav.mobile-open > ul > li > a {
  padding: 13px 22px;
  display: block;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  white-space: normal;
}
nav.main-nav.mobile-open .dropdown {
  position: static;
  display: block !important;
  box-shadow: none;
  border: none;
  border-radius: 0;
  border-left: 3px solid var(--primary);
  margin: 0 0 4px 22px;
  padding: 4px 0;
  min-width: 0;
  background: var(--bg-soft);
}
nav.main-nav.mobile-open .dropdown a {
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: none;
}

@media (max-width: 900px) {
  nav.main-nav, .header-actions .btn-cta { display: none; }
  .nav-toggle { display: flex; }
  /* Hero: altezza fissa così la foto carosello è sempre visibile anche
     quando .hero-inner è nascosto dal JS (carousel attivo). */
  .hero { height: 58vw; min-height: 240px; max-height: 520px; }
  .hero .hero-inner { padding: 40px 20px 100px; }
  .hero-copy h1 { font-size: 26px; }
  .hero-rating-card { left: 16px; right: 16px; max-width: none; }
  .hero-dots { bottom: 14px; }
  .hero-slide-text { max-width: 88%; }
  .hero-slide-title { font-size: clamp(18px, 5vw, 28px); }
  .hero-slide-subtitle { font-size: clamp(12px, 3vw, 16px); }
  .trust-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .configurator-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item .item-total { grid-column: 1 / -1; text-align: left; }
  .wizard-page-grid { grid-template-columns: 1fr; }
  .wizard-sidebar { position: static; order: -1; margin-bottom: 24px; }
  .wsr-header { flex-wrap: wrap; }
  .wsr-value { width: 100%; text-align: left; margin: 2px 0 0; }
  .zone-card { grid-template-columns: 1fr; }
  .technique-grid { grid-template-columns: 1fr; }
  .optional-list.grid-2 { grid-template-columns: 1fr; }
  .upload-info-grid { grid-template-columns: 1fr; }
  .format-swatch-row { justify-content: center; }
  .header-actions .account-link span { display: none; }
  .form-row, .form-row.cols-3, .customer-type-toggle, .profile-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 20px; }
  .order-row-head { justify-content: flex-start; }
  .clients-track { gap: 40px; }
  .client-logo { font-size: 16px; }
  .payment-methods { grid-template-columns: 1fr; }
  .bt-row { flex-direction: column; gap: 2px; }
  .bt-value { text-align: left; }
  .acc-shell { grid-template-columns: 1fr; }
  .acc-sidebar { position: static; display: flex; align-items: center; gap: 14px; padding: 14px; overflow-x: auto; }
  .acc-avatar-block { flex-shrink: 0; margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .acc-nav { flex-direction: row; margin-bottom: 0; flex-shrink: 0; }
  .acc-nav-item { white-space: nowrap; }
  .acc-logout { width: auto; flex-shrink: 0; white-space: nowrap; }
  .oi-item-actions { flex-wrap: wrap; }
  .order-actions-row { justify-content: flex-start; }
}
