/* ==========================================================================
   BOSCHI E GIARDINI — "NORDIC PRO & HIGH-CONTRAST" DESIGN SYSTEM (v1.0)
   Zero-Elementor Native Templates
   ========================================================================== */
:root {
  --bg-navy: #0F172A;
  --bg-navy-light: #1E293B;
  --bg-slate: #334155;
  --bg-muted: #64748B;
  --bg-surface: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-border: #E2E8F0;
  --bg-orange: #F05315;
  --bg-orange-hover: #D94508;
  --bg-orange-soft: #FFF4EE;
  --bg-green: #16A34A;
  --bg-green-soft: #DCFCE7;
  --bg-radius-lg: 16px;
  --bg-radius-md: 10px;
  --bg-radius-sm: 6px;
  --bg-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --bg-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --bg-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --bg-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --bg-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --bg-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --bg-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global SVG Vector Icon Helpers */
.bg-svg-icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  transition: transform 0.15s ease, stroke 0.15s ease;
}
.bg-topbar__icon {
  color: var(--bg-orange);
}
.bg-topbar__icon--verified {
  color: #22C55E;
}

/* Base Typography, HTML Reset & Form Defaults */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  font-family: var(--bg-font-sans);
  color: var(--bg-navy);
  background-color: var(--bg-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
}

.website-wrapper {
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: var(--bg-navy);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--bg-orange);
}

.bg-wrap,
.bg-container {
  font-family: var(--bg-font-sans);
  line-height: 1.55;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

.bg-page {
  background-color: var(--bg-surface);
  min-height: 60vh;
  padding-bottom: 60px;
}

/* Override contenitore pagina Woodmart per template full-width puliti */
body.page-template-default .main-page-wrapper,
body.home .main-page-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.bg-section {
  padding: 48px 0;
}
.bg-section--alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}
.bg-section--dark {
  background: var(--bg-navy);
  color: var(--bg-white);
}

.bg-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.bg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg-orange);
  background: var(--bg-orange-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.bg-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--bg-navy);
  margin: 0;
  letter-spacing: -0.02em;
}
.bg-section--dark .bg-title {
  color: var(--bg-white);
}
.bg-subtitle {
  font-size: 15px;
  color: var(--bg-muted);
  margin: 6px 0 0;
}

/* Buttons */
.bg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--bg-radius-md);
  text-decoration: none !important;
  transition: all 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.bg-btn--primary {
  background: var(--bg-orange);
  color: var(--bg-white) !important;
}
.bg-btn--primary:hover {
  background: var(--bg-orange-hover);
  transform: translateY(-1px);
}
.bg-btn--dark {
  background: var(--bg-navy);
  color: var(--bg-white) !important;
}
.bg-btn--dark:hover {
  background: var(--bg-navy-light);
}
.bg-btn--outline {
  background: var(--bg-white);
  color: var(--bg-navy) !important;
  border-color: var(--bg-border);
}
.bg-btn--outline:hover {
  border-color: var(--bg-navy);
}
.bg-btn--outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.bg-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}
.bg-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 28px;
}

/* HERO SPLIT */
.bg-hero {
  padding: 28px 0 36px;
}
.bg-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 991px) {
  .bg-hero-grid {
    grid-template-columns: 1fr;
  }
}
.bg-hero-main {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  color: var(--bg-white);
  border-radius: var(--bg-radius-lg);
  padding: 42px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid #374151;
}
.bg-hero-main h1 {
  color: var(--bg-white);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  margin: 12px 0 16px;
  letter-spacing: -0.025em;
}
.bg-hero-main p {
  color: #D1D5DB;
  font-size: 16px;
  max-width: 540px;
  margin: 0 0 28px;
}
.bg-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: #E5E7EB;
}
.bg-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  padding: 6px 12px;
  border-radius: 6px;
}

/* Finder Box (Ricerca rapida Macchine & Ricambi) */
.bg-finder {
  background: var(--bg-surface);
  border: 2px solid var(--bg-navy);
  border-radius: var(--bg-radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bg-finder h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--bg-navy);
}
.bg-finder-search {
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
}
.bg-finder-search input[type="search"] {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #9CA3AF;
  border-radius: var(--bg-radius-md);
  background: var(--bg-white);
  font-size: 14px;
  color: var(--bg-navy);
}
.bg-finder-search input[type="search"]:focus {
  outline: none;
  border-color: var(--bg-orange);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15);
}
.bg-quick-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.bg-quick-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  padding: 10px 12px;
  border-radius: var(--bg-radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-navy) !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.bg-quick-cat:hover {
  border-color: var(--bg-orange);
  background: var(--bg-orange-soft);
}
.bg-quick-cat small {
  font-family: var(--bg-font-mono);
  font-size: 11px;
  color: var(--bg-muted);
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 4px;
}

/* TRUST BAR */
.bg-trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-lg);
  padding: 22px 24px;
  box-shadow: var(--bg-shadow-sm);
  margin-bottom: 16px;
}
@media (max-width: 991px) {
  .bg-trustbar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .bg-trustbar { grid-template-columns: 1fr; }
}
.bg-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bg-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-orange-soft);
  color: var(--bg-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 18px;
}
.bg-trust-item strong {
  display: block;
  font-size: 14px;
  color: var(--bg-navy);
}
.bg-trust-item span {
  font-size: 12.5px;
  color: var(--bg-muted);
}

/* PRODUCT GRID & NORDIC PRO CARD */
.bg-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1100px) {
  .bg-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .bg-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.bg-pcard {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.bg-pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--bg-shadow-md);
  border-color: #CBD5E1;
}
.bg-pcard-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bg-badge-sale {
  background: var(--bg-orange);
  color: var(--bg-white);
  font-family: var(--bg-font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
}
.bg-wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bg-slate);
  transition: all 0.15s ease;
  padding: 0;
}
.bg-wish-btn:hover,
.bg-wish-btn.is-active {
  color: var(--bg-orange);
  border-color: var(--bg-orange);
  background: var(--bg-orange-soft);
}
.bg-pcard-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-bottom: 12px;
  overflow: hidden;
}
.bg-pcard-thumb img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.bg-pcard:hover .bg-pcard-thumb img {
  transform: scale(1.04);
}
.bg-pcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 6px;
}
.bg-pcard-brand {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg-orange);
}
.bg-pcard-sku {
  font-family: var(--bg-font-mono);
  color: var(--bg-muted);
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 4px;
}
.bg-pcard-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.bg-pcard-title a {
  color: var(--bg-navy) !important;
  text-decoration: none !important;
}
.bg-pcard-title a:hover {
  color: var(--bg-orange) !important;
}
.bg-pcard-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--bg-green);
  margin-bottom: 10px;
}
.bg-pcard-stock::before {
  content: none !important;
  display: none !important;
}
.bg-pcard-stock.is-out {
  color: var(--bg-muted);
}
.bg-pcard-stock.is-out::before {
  background: #9CA3AF;
}
.bg-pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-border);
}
.bg-pcard-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--bg-navy);
}
.bg-pcard-price del {
  font-size: 12px;
  color: var(--bg-muted);
  font-weight: 500;
  margin-right: 4px;
}
.bg-pcard-price ins {
  text-decoration: none;
  color: var(--bg-orange);
}
.bg-pcard-cta {
  background: var(--bg-navy);
  color: var(--bg-white) !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: var(--bg-radius-sm);
  text-decoration: none !important;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.bg-pcard-cta:hover {
  background: var(--bg-orange);
}

/* BRANDS BAR */
.bg-brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 991px) {
  .bg-brands-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .bg-brands-grid { grid-template-columns: repeat(2, 1fr); }
}
.bg-brand-pill {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 16px;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.bg-brand-pill:hover {
  border-color: var(--bg-orange);
  transform: translateY(-2px);
  box-shadow: var(--bg-shadow-sm);
}
.bg-brand-pill strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--bg-navy);
}
.bg-brand-pill span {
  font-family: var(--bg-font-mono);
  font-size: 11px;
  color: var(--bg-muted);
}

/* INNER PAGES (Assistenza, Chi Siamo, Ricambi, Offerte) */
.bg-page-hero {
  background: var(--bg-navy);
  color: var(--bg-white);
  padding: 40px 0;
  margin-bottom: 36px;
  border-bottom: 4px solid var(--bg-orange);
}
.bg-page-hero h1 {
  color: var(--bg-white);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  margin: 6px 0 10px;
}
.bg-page-hero p {
  color: #D1D5DB;
  font-size: 15.5px;
  max-width: 680px;
  margin: 0;
}
.bg-card {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-lg);
  padding: 28px;
  box-shadow: var(--bg-shadow-sm);
}
.bg-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.bg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .bg-grid-2, .bg-grid-3 { grid-template-columns: 1fr; }
}

/* Tabs */
.bg-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.bg-tab-btn {
  background: var(--bg-surface);
  color: var(--bg-navy);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.bg-tab-btn.is-active {
  background: var(--bg-navy);
  color: var(--bg-white);
  border-color: var(--bg-navy);
}
.bg-tab-panel {
  display: none;
}
.bg-tab-panel.is-active {
  display: block;
}

/* Filter chips */
.bg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.bg-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--bg-border);
  background: var(--bg-white);
  color: var(--bg-navy) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.bg-chip:hover, .bg-chip.is-active {
  background: var(--bg-orange);
  color: var(--bg-white) !important;
  border-color: var(--bg-orange);
}

/* ==========================================================================
   NORDIC PRO NATIVE FOOTER (woodmart-child/footer.php)
   ========================================================================== */
.bg-site-footer {
  font-family: var(--bg-font-sans);
  background: var(--bg-navy);
  color: #D1D5DB;
  margin-top: 48px;
  border-top: 4px solid var(--bg-orange);
}
.bg-footer-guarantees {
  background: var(--bg-navy-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
}
.bg-footer-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .bg-footer-guarantees-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .bg-footer-guarantees-grid { grid-template-columns: 1fr; }
}
.bg-fguar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.bg-fguar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 85, 0, 0.14);
  color: var(--bg-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-fguar strong {
  display: block;
  color: var(--bg-white);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.bg-fguar span {
  font-size: 12.5px;
  color: #9CA3AF;
  line-height: 1.4;
  display: block;
}

.bg-footer-main {
  padding: 52px 0 40px;
}
.bg-footer-cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 32px;
}
@media (max-width: 991px) {
  .bg-footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .bg-footer-cols { grid-template-columns: 1fr; }
}
.bg-footer-col h4 {
  color: var(--bg-white);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
}
.bg-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bg-footer-links li {
  margin-bottom: 10px;
}
.bg-footer-links a {
  color: #D1D5DB !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: color 0.15s ease;
}
.bg-footer-links a:hover {
  color: var(--bg-orange) !important;
}
.bg-footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: 13.5px;
}
.bg-footer-contact-list li {
  margin-bottom: 8px;
  color: #D1D5DB;
}
.bg-footer-contact-list a {
  color: var(--bg-white) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.bg-footer-pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.bg-pay-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bg-white);
  font-family: var(--bg-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
}
.bg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 12.5px;
  color: #9CA3AF;
}
.bg-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   STEP 2: BARRA SPEDIZIONE 200€, CONSEGNA STIMATA, PRODOTTO, CARRELLO, CHECKOUT
   ========================================================================== */

/* Barra Spedizione Gratuita 200€ */
.bg-ship-bar {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-left: 4px solid var(--bg-orange);
  border-radius: var(--bg-radius-md);
  padding: 14px 16px;
  margin: 14px 0;
  font-family: var(--bg-font-sans);
}
.bg-ship-bar.is-reached {
  background: var(--bg-green-soft);
  border-color: #86EFAC;
  border-left: 4px solid var(--bg-green);
}
.bg-ship-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--bg-navy);
  margin-bottom: 8px;
}
.bg-ship-bar__pct {
  font-family: var(--bg-font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--bg-orange);
  flex-shrink: 0;
}
.bg-ship-bar.is-reached .bg-ship-bar__pct {
  color: var(--bg-green);
}
.bg-ship-bar__track {
  height: 8px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
}
.bg-ship-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bg-orange) 0%, #FF8800 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.bg-ship-bar.is-reached .bg-ship-bar__fill {
  background: var(--bg-green);
}

/* Badge Stima Consegna (Prodotto, Carrello, Checkout) */
.bg-est-delivery {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--bg-radius-md);
  padding: 12px 14px;
  margin: 12px 0;
  font-family: var(--bg-font-sans);
  color: var(--bg-navy);
}
.bg-est-delivery__icon {
  font-size: 18px;
  line-height: 1.2;
}
.bg-est-delivery__body strong {
  display: block;
  font-size: 13.5px;
  color: #14532D;
}
.bg-est-delivery__body span {
  font-size: 12px;
  color: #166534;
}
.bg-est-delivery--compact {
  padding: 6px 10px;
  margin: 6px 0 0;
  border-radius: 6px;
  background: var(--bg-surface);
  border-color: var(--bg-border);
}
.bg-est-delivery--compact .bg-est-delivery__icon {
  font-size: 14px;
}
.bg-est-delivery--compact .bg-est-delivery__body span {
  font-size: 12px;
  color: var(--bg-slate);
}
.bg-est-delivery--compact .bg-est-delivery__body strong {
  display: inline;
  font-size: 12px;
  color: var(--bg-green);
}

/* Box Conversione Scheda Prodotto (PDP) */
.bg-pdp-conversion-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-border);
}
.bg-pdp-free-ship-instant {
  background: var(--bg-green-soft);
  color: #14532D;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.bg-pdp-installments {
  background: var(--bg-white);
  border: 1px dashed #9CA3AF;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--bg-navy);
  margin: 10px 0;
}
.bg-pdp-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 575px) {
  .bg-pdp-trust-grid { grid-template-columns: 1fr; }
}
.bg-pdp-trust-grid > div {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  padding: 10px 12px;
}
.bg-pdp-trust-grid strong {
  display: block;
  font-size: 12.5px;
  color: var(--bg-navy);
}
.bg-pdp-trust-grid span {
  font-size: 11.5px;
  color: var(--bg-muted);
}
.bg-pdp-trust-grid a {
  color: var(--bg-orange) !important;
  font-weight: 700;
}

/* Guida Taglie Guanti */
.bg-size-guide-details {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 13px;
}
.bg-size-guide-details summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--bg-navy);
}
.bg-size-guide-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}
.bg-size-guide-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.bg-size-guide-table-wrap th,
.bg-size-guide-table-wrap td {
  border: 1px solid var(--bg-border);
  padding: 6px 10px;
  text-align: center;
}
.bg-size-guide-table-wrap th {
  background: var(--bg-surface);
  font-weight: 700;
}

/* Restyling Nordic Pro per Scheda Prodotto, Carrello e Checkout */
body.single-product .product-image-summary .summary-inner,
body.single-product .summary.entry-summary {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-lg);
  padding: 28px !important;
  box-shadow: var(--bg-shadow-sm);
}
body.single-product .single_add_to_cart_button {
  background: var(--bg-orange) !important;
  color: var(--bg-white) !important;
  font-weight: 800 !important;
  border-radius: var(--bg-radius-md) !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
body.single-product .single_add_to_cart_button:hover {
  background: var(--bg-orange-hover) !important;
}

/* Carrello e Checkout Nordic Pro */
body.woocommerce-cart .cart-totals-inner,
body.woocommerce-checkout .checkout-order-review {
  background: var(--bg-surface) !important;
  border: 2px solid var(--bg-navy) !important;
  border-radius: var(--bg-radius-lg) !important;
  padding: 24px !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-checkout #place_order {
  background: var(--bg-orange) !important;
  color: var(--bg-white) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  border-radius: var(--bg-radius-md) !important;
  padding: 16px 24px !important;
}

/* Meta Header Scheda Prodotto (Brand, SKU, Stock) */
.bg-pdp-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.bg-pdp-brand-pill {
  background: var(--bg-navy);
  color: var(--bg-white) !important;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none !important;
}
.bg-pdp-sku-pill {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  color: var(--bg-slate);
  font-family: var(--bg-font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}
.bg-pdp-stock-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.bg-pdp-stock-pill.is-instock {
  background: var(--bg-green-soft);
  color: var(--bg-green);
}
.bg-pdp-stock-pill.is-outofstock {
  background: #FEE2E2;
  color: #B91C1C;
}

/* Tab Specifiche Tecniche */
.bg-specs-table-wrap {
  max-width: 780px;
}
.bg-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bg-specs-table th,
.bg-specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-border);
  text-align: left;
}
.bg-specs-table th {
  width: 38%;
  background: var(--bg-surface);
  color: var(--bg-navy);
  font-weight: 700;
}

/* Stepper Carrello & Checkout (1-2-3) */
.bg-checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 767px) {
  .bg-checkout-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.bg-checkout-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 14px 18px;
  text-decoration: none !important;
  color: var(--bg-muted);
}
.bg-checkout-step.is-active {
  background: var(--bg-white);
  border: 2px solid var(--bg-orange);
  color: var(--bg-navy);
  box-shadow: var(--bg-shadow-sm);
}
.bg-checkout-step.is-done {
  background: var(--bg-green-soft);
  border-color: #86EFAC;
  color: #14532D;
}
.bg-checkout-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E5E7EB;
  color: var(--bg-slate);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-checkout-step.is-active .bg-checkout-step__num {
  background: var(--bg-orange);
  color: var(--bg-white);
}
.bg-checkout-step.is-done .bg-checkout-step__num {
  background: var(--bg-green);
  color: var(--bg-white);
}
.bg-checkout-step strong {
  display: block;
  font-size: 14px;
  color: var(--bg-navy);
}
.bg-checkout-step span {
  font-size: 12px;
  color: var(--bg-muted);
}

/* Barra Rassicurazione Fondo Carrello/Checkout */
.bg-checkout-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-border);
}
@media (max-width: 767px) {
  .bg-checkout-trust-bar {
    grid-template-columns: 1fr;
  }
}
.bg-checkout-trust-bar > div {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 14px 16px;
}
.bg-checkout-trust-bar strong {
  display: block;
  font-size: 13.5px;
  color: var(--bg-navy);
  margin-bottom: 4px;
}
.bg-checkout-trust-bar span {
  font-size: 12px;
  color: var(--bg-muted);
}

/* ==========================================================================
   SCHEDA PRODOTTO 100% NATIVA (.bg-pdp-native) — ZERO WOODMART
   ========================================================================== */
.bg-pdp-native {
  background: var(--bg-surface);
  padding: 20px 0 64px;
}

/* Topbar Breadcrumb */
.bg-pdp-breadcrumb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 13px;
}
.bg-pdp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--bg-muted);
}
.bg-pdp-crumbs a {
  color: var(--bg-slate) !important;
  text-decoration: none !important;
  font-weight: 500;
}
.bg-pdp-crumbs a:hover {
  color: var(--bg-orange) !important;
}
.bg-pdp-crumb-sep {
  color: #9CA3AF;
}
.bg-pdp-crumb-current {
  color: var(--bg-navy);
  font-weight: 700;
}
.bg-pdp-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bg-pdp-top-link {
  color: var(--bg-navy) !important;
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none !important;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
}
.bg-pdp-top-link:hover {
  border-color: var(--bg-orange);
  color: var(--bg-orange) !important;
}
.bg-pdp-wish-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bg-slate);
  cursor: pointer;
}
.bg-pdp-wish-top.is-active {
  color: #DC2626;
  border-color: #FCA5A5;
  background: #FEF2F2;
}

/* Griglia Hero 2 Colonne */
.bg-pdp-hero-grid {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 991px) {
  .bg-pdp-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Galleria Immagini Nativa */
.bg-pdp-gallery-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-lg);
  padding: 24px;
  box-shadow: var(--bg-shadow-sm);
}
.bg-pdp-gallery-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bg-badge--sale {
  background: var(--bg-orange);
  color: var(--bg-white);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
}
.bg-badge--freeship {
  background: var(--bg-green);
  color: var(--bg-white);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
}
.bg-pdp-main-stage {
  text-align: center;
  padding: 12px 0;
}
.bg-pdp-main-stage img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease;
}
.bg-pdp-main-stage a:hover img {
  transform: scale(1.03);
}
.bg-pdp-zoom-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--bg-muted);
}
.bg-pdp-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-border);
}
.bg-pdp-thumb-btn {
  width: 68px;
  height: 68px;
  padding: 4px;
  border: 2px solid var(--bg-border);
  border-radius: 8px;
  background: var(--bg-white);
  cursor: pointer;
  transition: all 0.15s ease;
}
.bg-pdp-thumb-btn.is-active,
.bg-pdp-thumb-btn:hover {
  border-color: var(--bg-orange);
}
.bg-pdp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Strip 4 Garanzie sotto la Galleria */
.bg-pdp-guarantees-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 575px) {
  .bg-pdp-guarantees-strip {
    grid-template-columns: 1fr;
  }
}
.bg-pdp-guarantee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 12px 14px;
}
.bg-pdp-guarantee-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.bg-pdp-guarantee-item strong {
  display: block;
  font-size: 13px;
  color: var(--bg-navy);
}
.bg-pdp-guarantee-item span {
  font-size: 12px;
  color: var(--bg-muted);
}

/* Colonna Destra: Buy Box */
.bg-pdp-buybox {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-lg);
  padding: 28px;
  box-shadow: var(--bg-shadow-sm);
}
.bg-pdp-sku-pill {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bg-pdp-sku-pill:hover {
  border-color: var(--bg-navy);
}
.bg-sku-copy-label {
  font-family: var(--bg-font-sans);
  font-size: 11px;
  color: var(--bg-orange);
  font-weight: 700;
}
.bg-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-green);
  margin-right: 4px;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
}

.bg-pdp-title {
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.28;
  font-weight: 800;
  color: var(--bg-navy);
  margin: 0 0 18px;
}

/* Card Prezzo & Risparmio */
.bg-pdp-price-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.bg-pdp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.bg-pdp-price-main {
  font-size: 32px;
  font-weight: 900;
  color: var(--bg-navy);
  line-height: 1.1;
}
.bg-pdp-price-main.is-sale {
  color: var(--bg-orange);
}
.bg-pdp-price-old {
  font-size: 15px;
  color: var(--bg-muted);
}
.bg-pdp-save-pill {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.bg-pdp-vat-note {
  font-size: 12px;
  color: var(--bg-muted);
  margin-top: 6px;
}
.bg-pdp-short-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bg-slate);
  margin-bottom: 18px;
}

/* Form Quantità + Aggiungi al Carrello */
.bg-pdp-cart-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 575px) {
  .bg-pdp-cart-form {
    flex-direction: column;
  }
}
.bg-pdp-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  background: var(--bg-white);
  height: 54px;
  overflow: hidden;
}
.bg-qty-btn {
  width: 42px;
  height: 100%;
  border: none;
  background: var(--bg-surface);
  color: var(--bg-navy);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}
.bg-qty-btn:hover {
  background: #E5E7EB;
}
.bg-pdp-qty-wrap input[type="number"] {
  width: 54px !important;
  height: 100% !important;
  border: none !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--bg-navy) !important;
  padding: 0 !important;
  margin: 0 !important;
  -moz-appearance: textfield;
}
.bg-pdp-add-btn {
  flex: 1;
  height: 54px;
  background: var(--bg-orange);
  color: var(--bg-white);
  border: none;
  border-radius: var(--bg-radius-md);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.28);
  transition: all 0.2s ease;
}
.bg-pdp-add-btn:hover {
  background: var(--bg-orange-hover);
  transform: translateY(-1px);
}

/* Box WhatsApp Tecnico Precompilato */
.bg-pdp-whatsapp-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: var(--bg-radius-md);
  padding: 14px 16px;
  margin-top: 14px;
}
@media (max-width: 575px) {
  .bg-pdp-whatsapp-box {
    flex-direction: column;
    align-items: stretch;
  }
}
.bg-pdp-whatsapp-box__text strong {
  display: block;
  font-size: 13.5px;
  color: #14532D;
}
.bg-pdp-whatsapp-box__text span {
  font-size: 12px;
  color: #166534;
}
.bg-pdp-whatsapp-btn {
  background: #16A34A;
  color: var(--bg-white) !important;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  text-align: center;
}
.bg-pdp-whatsapp-btn:hover {
  background: #15803D;
}

/* Strip Metodi di Pagamento */
.bg-pdp-payment-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-border);
  font-size: 12px;
  color: var(--bg-muted);
}
.bg-pdp-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bg-pdp-payment-badges span {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 3px 8px;
  font-weight: 700;
  color: var(--bg-slate);
  font-size: 11px;
}

/* Sezione Tabs Nativi (Descrizione, Scheda Tecnica, Spedizione) */
.bg-pdp-details-section {
  margin-top: 36px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-lg);
  overflow: hidden;
  box-shadow: var(--bg-shadow-sm);
}
.bg-pdp-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
}
.bg-pdp-tab-btn {
  padding: 16px 24px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--bg-slate);
  cursor: pointer;
}
.bg-pdp-tab-btn.is-active {
  background: var(--bg-white);
  color: var(--bg-orange);
  border-bottom-color: var(--bg-orange);
}
.bg-pdp-tab-panel {
  display: none;
  padding: 28px;
}
.bg-pdp-tab-panel.is-active {
  display: block;
}
.bg-pdp-prose {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bg-slate);
  max-width: 900px;
}
.bg-pdp-related-section {
  margin-top: 48px;
}

/* Sticky Add-to-Cart Bar inferiore */
.bg-pdp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-white);
  border-top: 2px solid var(--bg-orange);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.12);
  padding: 10px 0;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.bg-pdp-sticky-bar.is-visible {
  transform: translateY(0);
}
.bg-pdp-sticky-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bg-pdp-sticky-bar__prod {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bg-pdp-sticky-bar__prod img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg-white);
}
.bg-pdp-sticky-bar__prod div {
  min-width: 0;
}
.bg-pdp-sticky-bar__prod strong {
  display: block;
  font-size: 14px;
  color: var(--bg-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-pdp-sticky-bar__prod span {
  display: block;
  font-size: 12px;
  color: var(--bg-green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-pdp-sticky-bar__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.bg-pdp-sticky-bar__price {
  font-size: 20px;
  font-weight: 900;
  color: var(--bg-navy);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .bg-pdp-sticky-bar {
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .bg-pdp-sticky-bar__inner {
    gap: 8px;
    padding: 0;
  }
  .bg-pdp-sticky-bar__prod {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .bg-pdp-sticky-bar__prod img {
    width: 38px;
    height: 38px;
  }
  .bg-pdp-sticky-bar__prod strong {
    font-size: 12.5px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }
  .bg-pdp-sticky-bar__prod span {
    display: none;
  }
  .bg-pdp-sticky-bar__cta {
    gap: 8px;
  }
  .bg-pdp-sticky-bar__price {
    font-size: 15px;
    font-weight: 900;
  }
  .bg-pdp-sticky-bar__cta .bg-btn {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   RECENSIONI PRODOTTO NATIVE
   ========================================================================== */
.bg-stars {
  --bg-star-size: 16px;
  display: inline-block;
  font-size: var(--bg-star-size);
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #F59E0B calc(var(--bg-rating) / 5 * 100%), #D1D5DB calc(var(--bg-rating) / 5 * 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  vertical-align: middle;
}
.bg-stars::before { content: "★★★★★"; }
.bg-stars--sm { --bg-star-size: 13px; letter-spacing: 1px; }
.bg-stars--lg { --bg-star-size: 24px; }

.bg-pdp-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -8px 0 16px;
  font-size: 13.5px;
  color: var(--bg-slate) !important;
  text-decoration: none !important;
}
.bg-pdp-rating:hover .bg-pdp-rating__count { color: var(--bg-orange); text-decoration: underline; }
.bg-pdp-rating__avg { font-weight: 800; color: var(--bg-navy); }
.bg-pdp-rating--empty { color: var(--bg-muted) !important; }
.bg-verified-inline { color: var(--bg-green); font-weight: 700; }
.bg-verified-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg-green);
  background: var(--bg-green-soft);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Recensione in evidenza */
.bg-featured-review {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--bg-radius-md);
  padding: 14px 16px;
  margin-top: 14px;
}
.bg-featured-review__head { display: flex; align-items: center; gap: 8px; }
.bg-featured-review__label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #92400E; }
.bg-featured-review blockquote {
  margin: 8px 0;
  padding: 0;
  border: 0;
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
  color: var(--bg-navy);
}
.bg-featured-review__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--bg-slate); }
.bg-featured-review__foot a { color: var(--bg-orange) !important; font-weight: 700; text-decoration: none !important; }

/* Tab recensioni */
.bg-reviews-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .bg-reviews-layout { grid-template-columns: 1fr; } }
.bg-reviews-summary {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 22px;
  text-align: center;
}
@media (min-width: 861px) { .bg-reviews-summary { position: sticky; top: 100px; } }
.bg-reviews-summary__avg { font-size: 46px; font-weight: 900; color: var(--bg-navy); line-height: 1; }
.bg-reviews-summary__avg small { font-size: 18px; color: var(--bg-muted); font-weight: 700; }
.bg-reviews-summary__based { font-size: 13px; color: var(--bg-muted); margin: 8px 0 14px; }
.bg-reviews-bars { display: grid; gap: 6px; margin-bottom: 16px; }
.bg-reviews-bar { display: grid; grid-template-columns: 34px 1fr 26px; align-items: center; gap: 8px; font-size: 12px; color: var(--bg-slate); }
.bg-reviews-bar__track { height: 8px; background: #E5E7EB; border-radius: 999px; overflow: hidden; }
.bg-reviews-bar__track div { height: 100%; background: #F59E0B; border-radius: 999px; }
.bg-reviews-summary__cta { width: 100%; justify-content: center; }

.bg-reviews-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bg-review-item { border: 1px solid var(--bg-border); border-radius: var(--bg-radius-md); padding: 16px 18px; background: var(--bg-white); }
.bg-review-item.is-collapsed { display: none; }
.bg-reviews-list.is-expanded .bg-review-item.is-collapsed { display: block; }
.bg-review-item__head { display: flex; gap: 12px; align-items: flex-start; }
.bg-review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-navy); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bg-review-item__head strong { color: var(--bg-navy); font-size: 14px; }
.bg-review-item__meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--bg-muted); }
.bg-review-item__text { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--bg-slate); }
.bg-review-item__text p { margin: 0 0 6px; }
.bg-review-item__text--empty { font-style: italic; color: var(--bg-muted); }
.bg-review-reply { margin-top: 10px; padding: 10px 14px; background: var(--bg-surface); border-left: 3px solid var(--bg-orange); border-radius: 6px; font-size: 13px; color: var(--bg-slate); }
.bg-review-reply strong { display: block; color: var(--bg-navy); font-size: 12.5px; margin-bottom: 4px; }
.bg-reviews-more { margin-top: 14px; }
.bg-reviews-empty { background: var(--bg-surface); border: 1px dashed var(--bg-border); border-radius: var(--bg-radius-md); padding: 18px; }
.bg-reviews-empty p { margin: 6px 0 0; font-size: 13.5px; color: var(--bg-muted); }

/* Form recensione */
.bg-review-form-wrap { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--bg-border); }
.bg-review-form-title { font-size: 18px; font-weight: 800; color: var(--bg-navy); margin: 0 0 6px; }
.bg-review-form-note { font-size: 12.5px; color: var(--bg-muted); margin: 0 0 14px; }
.bg-review-form-wrap .comment-form { display: flex; flex-wrap: wrap; gap: 0 16px; }
.bg-form-row { width: 100%; margin-bottom: 14px; }
.bg-form-row--half { width: calc(50% - 8px); }
@media (max-width: 575px) { .bg-form-row--half { width: 100%; } }
.bg-form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--bg-navy); margin-bottom: 6px; }
.bg-form-row input[type="text"], .bg-form-row input[type="email"], .bg-form-row textarea {
  width: 100%; border: 1px solid var(--bg-border) !important; border-radius: 8px !important; padding: 10px 12px !important; font-size: 14px; background: #fff;
}
.bg-review-form-wrap .comment-form-cookies-consent { width: 100%; font-size: 12.5px; color: var(--bg-muted); margin-bottom: 12px; }
.bg-review-form-wrap .form-submit { width: 100%; margin: 0; }
.bg-star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.bg-star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bg-star-input label { font-size: 30px !important; line-height: 1; color: #D1D5DB !important; cursor: pointer; margin: 0 !important; transition: color .1s; }
.bg-star-input input:checked ~ label,
.bg-star-input label:hover,
.bg-star-input label:hover ~ label { color: #F59E0B !important; }
.bg-star-input input:focus-visible + label { outline: 2px solid var(--bg-orange); outline-offset: 2px; }
.bg-reviews-locked { background: var(--bg-surface); padding: 14px; border-radius: 8px; font-size: 13.5px; }

/* ==========================================================================
   STEP 3: HEADER NATIVO, MEGA-MENU, LIVE SEARCH & DRAWERS — ZERO WOODMART
   ========================================================================== */
.bg-site-header {
  position: relative;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 1. Topbar (Full-width fluid container) */
.bg-topbar {
  background: var(--bg-navy);
  color: #E2E8F0 !important;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 0;
}
.bg-topbar__inner {
  max-width: 1720px !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #E2E8F0 !important;
}
.bg-topbar__inner * {
  color: inherit;
}
.bg-topbar__left, .bg-topbar__right, .bg-topbar__center {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bg-topbar__highlight {
  color: #FBBF24;
  font-weight: 700;
}
.bg-topbar__sep {
  opacity: 0.4;
}
.bg-topbar__link {
  color: #E5E7EB !important;
  text-decoration: none !important;
  transition: color 0.15s;
}
.bg-topbar__link:hover {
  color: var(--bg-orange) !important;
}
@media (max-width: 1024px) {
  .bg-topbar__center { display: none; }
}
@media (max-width: 768px) {
  .bg-topbar { display: none; }
}

/* 2. Main Bar Desktop */
.bg-main-bar {
  padding: 14px 0;
  background: var(--bg-white);
}
.bg-main-bar__inner {
  max-width: 1720px !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo */
.bg-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.bg-header-logo img {
  width: auto !important;
  height: 54px !important;
  max-width: 195px !important;
  object-fit: contain;
  display: block;
}
.bg-header-logo__title {
  display: block;
  font-weight: 900;
  font-size: 17px;
  color: var(--bg-navy);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.bg-header-logo__sub {
  display: block;
  font-size: 10px;
  color: var(--bg-slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Mega-Menu Toggle Button */
.bg-mega-btn-wrap {
  position: relative;
}
.bg-mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-navy);
  color: var(--bg-white);
  border: none;
  border-radius: var(--bg-radius-md);
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.bg-mega-toggle:hover, .bg-mega-toggle.is-active {
  background: var(--bg-orange);
}
.bg-mega-toggle__icon {
  font-size: 16px;
}
.bg-mega-toggle__arrow {
  font-size: 12px;
  transition: transform 0.2s;
}
.bg-mega-toggle.is-active .bg-mega-toggle__arrow {
  transform: rotate(180deg);
}

/* Mega Dropdown Panel */
.bg-mega-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  width: min(1080px, 92vw);
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-lg);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.15);
  padding: 28px;
  z-index: 1001;
}
.bg-mega-dropdown.is-open {
  display: block;
}
.bg-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.bg-mega-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--bg-navy);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-orange);
  margin: 0 0 14px;
}
.bg-mega-title a {
  color: inherit !important;
  text-decoration: none !important;
}
.bg-mega-ricambi-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
}
.bg-mega-ricambi-banner strong {
  display: block;
  color: var(--bg-navy);
}
.bg-mega-ricambi-banner a {
  color: var(--bg-orange) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.bg-mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.bg-mega-item a {
  font-size: 13.5px;
  color: var(--bg-slate) !important;
  text-decoration: none !important;
  display: block;
  padding: 3px 0;
  transition: color 0.15s;
}
.bg-mega-item a:hover {
  color: var(--bg-orange) !important;
  padding-left: 4px;
}
.bg-mega-sublist {
  list-style: none;
  padding: 0 0 4px 12px;
  margin: 2px 0 6px;
  border-left: 2px solid var(--bg-border);
}
.bg-mega-sublist a {
  font-size: 12px;
  color: var(--bg-muted) !important;
}
.bg-mega-more a {
  font-size: 13px;
  font-weight: 800;
  color: var(--bg-orange) !important;
}

/* 3. Live Search Bar */
.bg-search-wrap {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 640px;
  position: relative;
}
.bg-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.bg-search-icon {
  position: absolute;
  left: 14px;
  color: #9CA3AF;
  font-size: 15px;
  pointer-events: none;
}
.bg-search-field {
  width: 100% !important;
  height: 44px !important;
  background: var(--bg-surface) !important;
  border: 2px solid var(--bg-border) !important;
  border-radius: 999px !important;
  padding: 0 40px 0 42px !important;
  font-size: 13.5px !important;
  color: var(--bg-navy) !important;
  transition: all 0.2s ease !important;
}
.bg-search-field:focus {
  background: var(--bg-white) !important;
  border-color: var(--bg-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15) !important;
  outline: none !important;
}
.bg-search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 14px;
  cursor: pointer;
}

/* Dropdown Risultati Live */
.bg-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 1002;
  max-height: 440px;
  overflow-y: auto;
  display: none;
}
.bg-search-results.is-active {
  display: block;
}
.bg-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bg-border);
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.1s ease;
}
.bg-search-item:hover {
  background: var(--bg-surface);
}
.bg-search-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
}
.bg-search-item__info {
  flex: 1;
}
.bg-search-item__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-navy);
  line-height: 1.25;
  margin-bottom: 2px;
}
.bg-search-item__sku {
  font-family: var(--bg-font-mono);
  font-size: 11px;
  color: var(--bg-muted);
}
.bg-search-item__price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--bg-orange);
  text-align: right;
  flex-shrink: 0;
}
.bg-search-all-link {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--bg-surface);
  font-size: 13px;
  font-weight: 800;
  color: var(--bg-navy) !important;
  text-decoration: none !important;
}
.bg-search-all-link:hover {
  color: var(--bg-orange) !important;
}

/* 4. Quick Nav Links */
.bg-quick-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bg-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bg-navy) !important;
  text-decoration: none !important;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s;
}
.bg-quick-link:hover {
  color: var(--bg-orange) !important;
  background: var(--bg-surface);
}
.bg-quick-link--hot {
  color: #DC2626 !important;
  background: #FEE2E2;
}
.bg-quick-link--hot:hover {
  background: #FCA5A5;
}
@media (max-width: 1360px) {
  .bg-quick-nav { display: none; }
}
@media (max-width: 1140px) {
  .bg-action-label { display: none; }
}

/* 5. Header Actions */
.bg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.bg-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--bg-radius-md);
  padding: 7px 12px;
  color: var(--bg-navy) !important;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}
.bg-action-btn:hover {
  background: var(--bg-surface);
  border-color: var(--bg-border);
}
.bg-action-icon {
  font-size: 18px;
  line-height: 1;
}
.bg-action-label {
  font-size: 12.5px;
  font-weight: 700;
}
.bg-action-count {
  position: absolute;
  top: 4px;
  left: 22px;
  background: var(--bg-orange);
  color: var(--bg-white);
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-action-btn--cart {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
}
.bg-action-cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.bg-action-cart-icon-wrap .bg-action-count {
  position: absolute;
  top: -8px;
  right: -8px;
  left: auto;
}
.bg-action-cart-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.bg-action-cart-label {
  font-size: 10.5px;
  color: var(--bg-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.bg-action-cart-total {
  font-size: 13px;
  font-weight: 800;
  color: var(--bg-navy);
}

/* 6. Mobile Bar */
.bg-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-white);
}
@media (max-width: 991px) {
  .bg-main-bar { display: none; }
  .bg-mobile-bar { display: flex; }
}
.bg-mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: var(--bg-navy) !important;
  font-size: 14px;
  font-weight: 800;
}
.bg-mobile-logo img {
  width: auto !important;
  height: 38px !important;
  max-width: 145px !important;
  object-fit: contain;
  display: block;
}
.bg-mobile-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--bg-navy);
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none !important;
}
.bg-burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bg-navy);
  margin: 4px 0;
}
.bg-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bg-mobile-badge {
  position: absolute;
  top: 0;
  right: -2px;
  background: var(--bg-orange);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-mobile-search-bar {
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
}
.bg-mobile-search-bar form {
  display: flex;
  gap: 8px;
}
.bg-mobile-search-bar input {
  flex: 1;
}

/* 7. Slide-Out Drawers (Mobile Menu & Mini-Cart) */
.bg-mobile-drawer, .bg-minicart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(380px, 86vw);
  background: var(--bg-white);
  z-index: 2000;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bg-mobile-drawer {
  left: 0;
  transform: translateX(-100%);
}
.bg-mobile-drawer.is-open {
  transform: translateX(0);
}
.bg-minicart-drawer {
  right: 0;
  transform: translateX(100%);
}
.bg-minicart-drawer.is-open {
  transform: translateX(0);
}
.bg-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.bg-drawer-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}
.bg-mobile-drawer__head, .bg-minicart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-border);
  background: var(--bg-surface);
}
.bg-mobile-drawer__head strong, .bg-minicart-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--bg-navy);
  margin: 0;
}
.bg-drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-slate);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.bg-mobile-drawer__body, .bg-minicart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.bg-mobile-quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.bg-mobile-pill {
  display: block;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--bg-navy) !important;
  text-decoration: none !important;
}
.bg-mobile-pill--hot {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #DC2626 !important;
}
.bg-mobile-cats-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bg-muted);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.bg-mobile-accordion {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.bg-mobile-acc-item {
  border-bottom: 1px solid var(--bg-border);
}
.bg-mobile-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.bg-mobile-acc-head a {
  font-size: 14px;
  font-weight: 700;
  color: var(--bg-navy) !important;
  text-decoration: none !important;
}
.bg-acc-arrow {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-orange);
  cursor: pointer;
  padding: 0 8px;
}
.bg-mobile-sublist {
  list-style: none;
  padding: 0 0 10px 14px;
  margin: 0;
  display: none;
}
.bg-mobile-acc-item.is-open .bg-mobile-sublist {
  display: block;
}
.bg-mobile-sublist li {
  padding: 6px 0;
}
.bg-mobile-sublist a {
  font-size: 13px;
  color: var(--bg-slate) !important;
  text-decoration: none !important;
}
.bg-mobile-drawer__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--bg-border);
}

/* ==========================================================================
   ARCHIVIO PRODOTTI, NEGOZIO & CATEGORIE (.bg-archive-*) — NORDIC PRO
   ========================================================================== */
.bg-archive-page {
  background: var(--bg-surface);
  padding: 20px 0 64px;
}

/* Header Hero dell'Archivio */
.bg-archive-hero {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--bg-shadow-sm);
}
.bg-archive-hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.bg-archive-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
  color: var(--bg-navy);
  margin: 4px 0 0;
  line-height: 1.2;
}
.bg-archive-count-badge {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  color: var(--bg-slate);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.bg-archive-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bg-slate);
  margin-top: 14px;
  max-width: 900px;
}

/* Pillole Sottocategorie Rapide */
.bg-subcats-bar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.bg-subcats-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bg-muted);
  letter-spacing: 0.04em;
}
.bg-subcats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bg-subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bg-navy) !important;
  text-decoration: none !important;
  transition: all 0.15s;
}
.bg-subcat-chip:hover {
  background: var(--bg-white);
  border-color: var(--bg-orange);
  color: var(--bg-orange) !important;
  transform: translateY(-1px);
}
.bg-subcat-chip small {
  color: var(--bg-muted);
  font-weight: 500;
}

/* Layout a 2 Colonne (Sidebar + Main) */
.bg-archive-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 991px) {
  .bg-archive-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Filtri */
.bg-archive-sidebar {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-lg);
  padding: 20px;
  box-shadow: var(--bg-shadow-sm);
}
.bg-sidebar-mobile-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bg-border);
  font-size: 16px;
  font-weight: 800;
  color: var(--bg-navy);
}
@media (max-width: 991px) {
  .bg-archive-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(340px, 86vw);
    z-index: 2100;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  }
  .bg-archive-sidebar.is-open {
    transform: translateX(0);
  }
  .bg-sidebar-mobile-head {
    display: flex;
  }
}

/* Widget Filtro */
.bg-filter-widget {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bg-border);
}
.bg-filter-title {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bg-navy);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.bg-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.bg-filter-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--bg-slate) !important;
  text-decoration: none !important;
  transition: all 0.12s;
}
.bg-filter-item a:hover {
  background: var(--bg-surface);
  color: var(--bg-orange) !important;
}
.bg-filter-item.is-active a {
  background: #FFF7ED;
  color: var(--bg-orange) !important;
  font-weight: 800;
}
.bg-filter-count {
  font-family: var(--bg-font-mono);
  font-size: 11px;
  color: var(--bg-muted);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* Banner Sidebar */
.bg-sidebar-banner {
  border-radius: var(--bg-radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.5;
}
.bg-sidebar-banner-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}
.bg-sidebar-banner strong {
  display: block;
  font-size: 13.5px;
  color: var(--bg-navy);
  margin-bottom: 4px;
}
.bg-sidebar-banner p {
  margin: 0;
  color: var(--bg-slate);
}
.bg-sidebar-banner--ship {
  background: var(--bg-green-soft);
  border: 1px solid #86EFAC;
}
.bg-sidebar-banner--ricambi {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
}
.bg-sidebar-contact {
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  font-size: 12.5px;
}
.bg-sidebar-contact strong {
  display: block;
  color: var(--bg-navy);
  font-size: 13px;
  margin-bottom: 4px;
}
.bg-sidebar-contact p {
  margin: 0 0 8px;
  color: var(--bg-muted);
}

/* Toolbar Catalogo */
.bg-archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: var(--bg-shadow-sm);
}
.bg-mobile-filter-trigger {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--bg-navy);
  color: var(--bg-white);
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 991px) {
  .bg-mobile-filter-trigger {
    display: inline-flex;
  }
}
.bg-archive-toolbar__count {
  font-size: 13px;
  color: var(--bg-muted);
  font-weight: 600;
}
.bg-archive-toolbar__sort select,
.woocommerce-ordering select {
  background: var(--bg-surface) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  color: var(--bg-navy) !important;
  font-weight: 700 !important;
  cursor: pointer;
}

/* Paginazione Nativa */
.bg-archive-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.bg-archive-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.bg-archive-pagination li a,
.bg-archive-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  color: var(--bg-navy) !important;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none !important;
  transition: all 0.15s;
}
.bg-archive-pagination li a:hover {
  border-color: var(--bg-orange);
  color: var(--bg-orange) !important;
}
.bg-archive-pagination li span.current {
  background: var(--bg-orange);
  border-color: var(--bg-orange);
  color: var(--bg-white) !important;
}

/* Stato Vuoto */
.bg-archive-empty {
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-lg);
}
.bg-archive-empty__icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}
.bg-archive-empty h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--bg-navy);
  margin: 0 0 8px;
}
.bg-archive-empty p {
  color: var(--bg-muted);
  font-size: 14px;
  margin: 0 0 20px;
}
.bg-archive-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Trust Strip Fondo Catalogo */
.bg-archive-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--bg-border);
}
@media (max-width: 860px) {
  .bg-archive-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .bg-archive-trust-strip {
    grid-template-columns: 1fr;
  }
}
.bg-archive-trust-strip > div {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 16px;
}
.bg-archive-trust-strip .bg-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-orange-soft);
  color: var(--bg-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.bg-archive-trust-strip strong {
  display: block;
  font-size: 13.5px;
  color: var(--bg-navy);
  margin-bottom: 2px;
}
.bg-archive-trust-strip span {
  font-size: 12px;
  color: var(--bg-muted);
}


/* Pulsating stock dot */
.bg-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-green);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: bg-pulse-green 2s infinite;
  flex-shrink: 0;
}
.bg-stock-dot.is-out {
  background: #94A3B8;
  animation: none;
  box-shadow: none;
}
@keyframes bg-pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Card Wishlist Button States */
.bg-wish-btn .bg-wish-ico-filled {
  display: none;
}
.bg-wish-btn .bg-wish-ico-empty {
  display: inline-block;
}
.bg-wish-btn.is-active .bg-wish-ico-empty {
  display: none;
}
.bg-wish-btn.is-active .bg-wish-ico-filled {
  display: inline-block;
  color: var(--bg-orange);
}

/* Card Rating Stars */
.bg-pcard-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  margin-bottom: 8px;
}
.bg-pcard-stars {
  color: #F59E0B;
  display: inline-flex;
}
.bg-pcard-rating strong {
  color: var(--bg-navy);
  font-weight: 700;
}
.bg-pcard-rating small {
  color: var(--bg-muted);
}
.bg-pcard-stock-wrap {
  margin-bottom: 10px;
}
.bg-pcard-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--bg-green);
}
.bg-pcard-stock.is-out {
  color: var(--bg-muted);
}
.bg-pcard-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.bg-pcard-thumb {
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 200px;
  background: #F8FAFC;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 10px;
}
.bg-pcard-thumb img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s var(--bg-ease);
}
.bg-pcard {
  box-shadow: var(--bg-shadow-xs);
  border-radius: 14px;
}
.bg-pcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--bg-shadow-lg);
  border-color: #CBD5E1;
}

/* Checkout Trust Bar & Stepper Modern */
.bg-checkout-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
}
@media (max-width: 768px) {
  .bg-checkout-trust-bar { grid-template-columns: 1fr; }
}
.bg-checkout-trust-bar > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--bg-slate);
}
.bg-ctrust-ico {
  color: var(--bg-orange);
  flex-shrink: 0;
  margin-top: 1px;
}
.bg-checkout-step__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  background: #E2E8F0;
  color: var(--bg-slate);
  flex-shrink: 0;
}
.bg-checkout-step.is-active .bg-checkout-step__num {
  background: var(--bg-orange);
  color: #fff;
}
.bg-checkout-step.is-done .bg-checkout-step__num {
  background: var(--bg-green);
  color: #fff;
}

/* Installments Box Modern */
.bg-pdp-installments {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin: 12px 0 !important;
  font-size: 13px !important;
  color: var(--bg-navy) !important;
}
.bg-pdp-installments__logos {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--bg-navy);
}
.bg-pdp-installments__text {
  flex: 1;
  line-height: 1.4;
}

/* Free ship instant */
.bg-pdp-free-ship-instant {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-green-soft) !important;
  border: 1px solid #BBF7D0 !important;
  color: #14532D !important;
  font-size: 13px !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  margin-bottom: 12px !important;
}

/* WhatsApp PDP Box */
.bg-pdp-whatsapp-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
}
.bg-pdp-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16A34A;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s;
}
.bg-pdp-whatsapp-btn:hover {
  background: #15803D;
}

/* ==========================================================================
   WOOCOMMERCE NATIVE STYLES (Zero-Elementor / Nordic Pro Standard)
   ========================================================================== */
.woocommerce table.shop_table {
  width: 100%;
  border: 1px solid var(--bg-border) !important;
  border-radius: var(--bg-radius-md);
  background: var(--bg-white);
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: var(--bg-shadow-xs);
  margin-bottom: 28px;
}
.woocommerce table.shop_table th {
  background: var(--bg-surface);
  color: var(--bg-slate);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-top: none;
  border-bottom: 1px solid var(--bg-border) !important;
}
.woocommerce table.shop_table td {
  padding: 16px 18px;
  border-top: none;
  border-bottom: 1px solid var(--bg-border) !important;
  vertical-align: middle;
  font-size: 14.5px;
  color: var(--bg-navy);
}
.woocommerce table.shop_table tr:last-child td {
  border-bottom: none !important;
}
.woocommerce table.shop_table td.product-name a {
  color: var(--bg-navy);
  font-weight: 700;
  font-size: 14.5px;
}
.woocommerce table.shop_table td.product-name a:hover {
  color: var(--bg-orange);
}
.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
  font-weight: 800;
  font-family: var(--bg-font-mono);
  color: var(--bg-navy);
}
.woocommerce table.shop_table td.actions {
  background: var(--bg-surface);
  padding: 16px 18px;
}
.woocommerce table.shop_table .coupon input.input-text {
  padding: 10px 14px;
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-sm);
  background: var(--bg-white);
  font-size: 14px;
  font-family: inherit;
}
.woocommerce .cart_totals {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  padding: 24px;
  box-shadow: var(--bg-shadow-sm);
}
.woocommerce .cart_totals h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--bg-navy);
  border-bottom: 2px solid var(--bg-surface);
  padding-bottom: 12px;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: var(--bg-font-sans);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--bg-radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.18s var(--bg-ease);
  border: 1px solid var(--bg-border);
  background: var(--bg-white);
  color: var(--bg-navy);
  line-height: 1.4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--bg-surface);
  border-color: var(--bg-slate);
  color: var(--bg-navy);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order {
  background: var(--bg-orange) !important;
  color: var(--bg-white) !important;
  border: 1px solid var(--bg-orange) !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(240, 83, 21, 0.25);
  border-radius: var(--bg-radius-md) !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #place_order:hover {
  background: var(--bg-orange-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 83, 21, 0.35);
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--bg-radius-sm);
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  border-top: 4px solid var(--bg-border);
  background: var(--bg-white);
  box-shadow: var(--bg-shadow-xs);
}
.woocommerce-message {
  border-top-color: var(--bg-green);
  background: var(--bg-green-soft);
  color: #14532D;
}
.woocommerce-error {
  border-top-color: #EF4444;
  background: #FEF2F2;
  color: #991B1B;
}


/* ==========================================================================
   AGGIUNTE V1.1.4: Mobile Live Search, Floating Filter & Compact 2-Col Cards
   ========================================================================== */

/* Dropdown Ricerca Mobile */
.bg-mobile-search-bar {
  position: relative;
}
.bg-search-results--mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 2200;
  border-radius: 0 0 var(--bg-radius-md) var(--bg-radius-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--bg-border);
  border-top: none;
}

/* Pulsante Filtri Galleggiante (Sticky Mobile) */
.bg-floating-filter-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  background: var(--bg-navy);
  color: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 12px 22px;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(11, 27, 44, 0.35);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.15s ease;
  white-space: nowrap;
}
.bg-floating-filter-btn:hover {
  background: var(--bg-navy-dark, #06111C);
  box-shadow: 0 12px 28px rgba(11, 27, 44, 0.45);
}
.bg-floating-filter-btn:active {
  transform: translateX(-50%) scale(0.96);
}
.bg-floating-filter-btn .bg-filter-badge {
  background: var(--bg-orange);
  color: var(--bg-white);
  font-family: var(--bg-font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
}
@media (max-width: 991px) {
  .bg-floating-filter-btn {
    display: inline-flex;
  }
}

/* Card Prodotto Ultra-Compatta su Mobile (<600px) */
@media (max-width: 600px) {
  .bg-container, .bg-wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .bg-pcard {
    padding: 10px;
    border-radius: var(--bg-radius-sm);
  }
  .bg-pcard-thumb {
    height: 135px;
    margin-bottom: 8px;
  }
  .bg-pcard-thumb img {
    max-height: 125px;
  }
  .bg-pcard-badges {
    top: 8px;
    left: 8px;
  }
  .bg-badge-sale {
    font-size: 10px;
    padding: 2px 6px;
  }
  .bg-wish-btn {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }
  .bg-pcard-meta {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 10.5px;
    margin-bottom: 4px;
  }
  .bg-pcard-brand {
    font-size: 10px;
  }
  .bg-pcard-sku {
    font-size: 10px;
    padding: 1px 4px;
  }
  .bg-pcard-title {
    font-size: 13px;
    line-height: 1.3;
    min-height: 34px;
    margin-bottom: 6px;
  }
  .bg-pcard-stock {
    font-size: 10.5px;
    line-height: 1.25;
    margin-bottom: 8px;
    white-space: normal;
    word-break: break-word;
  }
  .bg-pcard-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
  }
  .bg-pcard-price {
    font-size: 15px;
    text-align: left;
    line-height: 1.2;
  }
  .bg-pcard-price del {
    font-size: 11px;
  }
  .bg-pcard-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 7px 8px;
    font-size: 11.5px;
  }
}

/* Supporto barra di amministrazione WordPress */
.admin-bar .bg-archive-sidebar,
.admin-bar .bg-mobile-drawer,
.admin-bar .bg-minicart-drawer {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .bg-archive-sidebar,
  .admin-bar .bg-mobile-drawer,
  .admin-bar .bg-minicart-drawer {
    top: 46px;
  }
}

/* ==========================================================================
   MINI-CART DRAWER NORDIC PRO (Indipendente da WooCommerce.css)
   ========================================================================== */
.bg-minicart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.bg-minicart-body .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Elenco Articoli */
.bg-minicart-body ul.woocommerce-mini-cart {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1;
}

.bg-minicart-body li.woocommerce-mini-cart-item {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--bg-border) !important;
  gap: 12px !important;
  font-family: var(--bg-font-sans) !important;
  list-style: none !important;
  justify-content: space-between !important;
}

/* Link e Immagine Prodotto Mini-Cart */
.bg-minicart-body li.woocommerce-mini-cart-item > a:not(.remove) {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: var(--bg-navy) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.bg-minicart-body li.woocommerce-mini-cart-item img {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  border: 1px solid var(--bg-border) !important;
  background: var(--bg-white) !important;
  padding: 2px !important;
  float: none !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.bg-minicart-body li.woocommerce-mini-cart-item > a:not(.remove):hover {
  color: var(--bg-orange) !important;
}

/* Prezzo & Quantità */
.bg-minicart-body li.woocommerce-mini-cart-item .quantity {
  display: block !important;
  font-size: 12.5px !important;
  color: var(--bg-muted) !important;
  font-weight: 600 !important;
  margin-top: 3px !important;
  white-space: nowrap !important;
}

.bg-minicart-body li.woocommerce-mini-cart-item .quantity .amount {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--bg-orange) !important;
  font-family: var(--bg-font-mono) !important;
}

/* Tasto Rimuovi */
.bg-minicart-body a.remove_from_cart_button,
.bg-minicart-body a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 50% !important;
  background: var(--bg-surface) !important;
  color: #9CA3AF !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
  border: 1px solid var(--bg-border) !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

.bg-minicart-body a.remove_from_cart_button:hover,
.bg-minicart-body a.remove:hover {
  background: #FEE2E2 !important;
  color: #EF4444 !important;
  border-color: #FCA5A5 !important;
}

/* Subtotale */
.bg-minicart-body p.woocommerce-mini-cart__total {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 0 10px !important;
  margin: 14px 0 0 !important;
  border-top: 2px solid var(--bg-border) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--bg-navy) !important;
}

.bg-minicart-body p.woocommerce-mini-cart__total .amount {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--bg-orange) !important;
  font-family: var(--bg-font-mono) !important;
}

/* Pulsanti Azione */
.bg-minicart-body p.woocommerce-mini-cart__buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
}

.bg-minicart-body p.woocommerce-mini-cart__buttons a.button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 11px 16px !important;
  border-radius: var(--bg-radius-sm) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

/* Tasto Visualizza Carrello */
.bg-minicart-body p.woocommerce-mini-cart__buttons a.button:first-child {
  background: var(--bg-surface) !important;
  color: var(--bg-navy) !important;
  border: 1px solid var(--bg-border) !important;
}

.bg-minicart-body p.woocommerce-mini-cart__buttons a.button:first-child:hover {
  background: var(--bg-white) !important;
  border-color: var(--bg-navy) !important;
}

/* Tasto Cassa / Pagamento */
.bg-minicart-body p.woocommerce-mini-cart__buttons a.button.checkout {
  background: var(--bg-orange) !important;
  color: var(--bg-white) !important;
  border: 1px solid var(--bg-orange) !important;
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.22) !important;
}

.bg-minicart-body p.woocommerce-mini-cart__buttons a.button.checkout:hover {
  background: var(--bg-orange-dark, #e04b00) !important;
  box-shadow: 0 6px 16px rgba(255, 85, 0, 0.35) !important;
}

/* Stato Carrello Vuoto */
.bg-minicart-body p.woocommerce-mini-cart__empty-message {
  text-align: center !important;
  padding: 36px 16px !important;
  font-size: 14px !important;
  color: var(--bg-muted) !important;
  font-weight: 600 !important;
  margin: auto 0 !important;
}

/* ==========================================================================
   MODULI CONTATTO & ASSISTENZA (Contact Form 7 — Nordic Pro Style)
   ========================================================================== */
.bg-form-card {
  max-width: 820px;
  margin: 0 auto;
}

.bg-form-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--bg-border);
}

.bg-form-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--bg-radius-md);
  background: var(--bg-surface);
  color: var(--bg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-border);
}

.bg-form-card__icon--orange {
  background: var(--bg-orange-soft, #FFF2EC);
  color: var(--bg-orange);
  border-color: rgba(240, 83, 21, 0.2);
}

.bg-form-card__head h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--bg-navy);
  margin: 0 0 6px;
}

.bg-form-card__head p {
  font-size: 14px;
  color: var(--bg-muted);
  line-height: 1.45;
  margin: 0;
}

/* Tab button con icone */
.bg-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* FAQ Cards */
.bg-faq-card {
  padding: 24px;
}

.bg-faq-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bg-faq-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--bg-orange-soft, #FFF2EC);
  color: var(--bg-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-faq-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--bg-navy);
  margin: 0;
}

.bg-faq-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--bg-slate);
  margin: 0;
}

/* WPCF7 Base Form */
.wpcf7 {
  margin: 0;
  width: 100%;
}

.wpcf7-form {
  position: relative;
}

.wpcf7-form p {
  margin: 0 0 18px !important;
}

/* Etichette e Titoli Campo */
.wpcf7-form label {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--bg-navy) !important;
  margin-bottom: 6px !important;
  line-height: 1.4 !important;
}

.wpcf7-form label strong {
  font-weight: 700 !important;
  color: var(--bg-navy) !important;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block !important;
  margin-top: 6px !important;
  position: relative !important;
}

/* Campi Input, Textarea e Select */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  background: var(--bg-surface) !important;
  border: 1.5px solid var(--bg-border) !important;
  border-radius: var(--bg-radius-sm) !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  font-family: var(--bg-font-sans) !important;
  color: var(--bg-navy) !important;
  box-sizing: border-box !important;
  transition: all 0.18s ease !important;
  line-height: 1.5 !important;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form textarea::placeholder {
  color: #9CA3AF !important;
  font-size: 13.5px !important;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  background: var(--bg-white) !important;
  border-color: var(--bg-orange) !important;
  box-shadow: 0 0 0 3px rgba(240, 83, 21, 0.14) !important;
  outline: none !important;
}

.wpcf7-form textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

/* Select Dropdown */
.wpcf7-form select {
  height: 48px !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B1B2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px !important;
  font-weight: 600 !important;
}

/* Upload File */
.wpcf7-form input[type="file"] {
  padding: 8px 12px !important;
  background: var(--bg-surface) !important;
  border: 1.5px dashed var(--bg-border) !important;
  border-radius: var(--bg-radius-sm) !important;
  cursor: pointer !important;
  width: 100% !important;
  font-size: 13px !important;
}

.wpcf7-form input[type="file"]::file-selector-button {
  background: var(--bg-navy) !important;
  color: var(--bg-white) !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  font-family: var(--bg-font-sans) !important;
  cursor: pointer !important;
  margin-right: 12px !important;
  transition: background 0.15s ease !important;
}

.wpcf7-form input[type="file"]::file-selector-button:hover {
  background: var(--bg-orange) !important;
}

/* Checkbox Accettazione Privacy */
.wpcf7-form .wpcf7-acceptance {
  display: block !important;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0 !important;
}

.wpcf7-form .wpcf7-acceptance label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--bg-slate) !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  accent-color: var(--bg-orange) !important;
  margin-top: 2px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.wpcf7-form .wpcf7-acceptance a {
  color: var(--bg-orange) !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

/* Note informative & scritte secondarie */
.wpcf7-form span[style*="font-size: 13px"] {
  display: block;
  font-size: 12px !important;
  color: var(--bg-muted) !important;
  margin-top: 6px;
  line-height: 1.4;
}

/* Pulsante Invia Richiesta */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bg-orange) !important;
  color: var(--bg-white) !important;
  border: none !important;
  border-radius: var(--bg-radius-sm) !important;
  padding: 13px 32px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  font-family: var(--bg-font-sans) !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(240, 83, 21, 0.28) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  min-height: 48px !important;
  margin-top: 14px !important;
}

.wpcf7-form input[type="submit"]:hover:not(:disabled),
.wpcf7-form .wpcf7-submit:hover:not(:disabled) {
  background: var(--bg-orange-dark, #d6470f) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(240, 83, 21, 0.38) !important;
}

.wpcf7-form input[type="submit"]:active:not(:disabled),
.wpcf7-form .wpcf7-submit:active:not(:disabled) {
  transform: translateY(0) !important;
}

.wpcf7-form input[type="submit"]:disabled,
.wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Box Istruzioni Modulo Reso */
.wpcf7-form [data-id="group-reso-acarico-cliente"],
.wpcf7-form [data-orig_data_id="group-reso-acarico-cliente"] {
  background: var(--bg-surface) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: var(--bg-radius-md) !important;
  padding: 22px !important;
  margin: 16px 0 20px !important;
}

.wpcf7-form [data-id="group-reso-acarico-cliente"] h4 {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--bg-navy) !important;
  margin: 0 0 10px !important;
}

.wpcf7-form [data-id="group-reso-acarico-cliente"] p {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: var(--bg-slate) !important;
  margin-bottom: 12px !important;
}

.wpcf7-form [data-id="group-reso-acarico-cliente"] strong span {
  display: block !important;
  font-weight: 700 !important;
  color: var(--bg-navy) !important;
}

.wpcf7-form .disclamer-reso {
  background: #FEF3C7 !important;
  border: 1px solid #FCD34D !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
  margin-top: 14px !important;
}

.wpcf7-form .disclamer-reso h5 {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #92400E !important;
  margin: 0 0 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.wpcf7-form .disclamer-reso span {
  font-size: 13px !important;
  color: #78350F !important;
  line-height: 1.45 !important;
}

/* Messaggi di Validazione & Feedback WPCF7 */
.wpcf7-not-valid-tip {
  color: #DC2626 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin-top: 5px !important;
  display: block !important;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
  border-color: #DC2626 !important;
  background: #FEF2F2 !important;
}

.wpcf7-response-output {
  border-radius: var(--bg-radius-sm) !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-top: 20px !important;
  line-height: 1.45 !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: #ECFDF5 !important;
  border: 1.5px solid #10B981 !important;
  color: #065F46 !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background: #FEF2F2 !important;
  border: 1.5px solid #EF4444 !important;
  color: #991B1B !important;
}

/* Turnstile Cloudflare */
.wpcf7-turnstile {
  margin: 14px 0 !important;
}

/* ==========================================================================
   AGGIUNTE V1.1.7: Fix Overflow PDP, Sticky Add-to-Cart & Checkout Mobile
   ========================================================================== */

/* 1. Fix Micro-Overflow PDP (Elimina sforamento 11px dai breadcrumbs) */
@media (max-width: 768px) {
  .bg-pdp-top-actions {
    display: none !important;
  }
  .bg-pdp-crumbs {
    max-width: 100% !important;
  }
}

/* 2. Mobile Sticky Add-to-Cart Bar */
.bg-pdp-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--bg-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  z-index: 1400;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-pdp-sticky-bar.is-visible {
  transform: translateY(0);
}

.bg-pdp-sticky-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.bg-pdp-sticky-bar__thumb img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--bg-border);
  background: var(--bg-white);
}

.bg-pdp-sticky-bar__info {
  flex: 1;
  min-width: 0;
}

.bg-pdp-sticky-bar__title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bg-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.bg-pdp-sticky-bar__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--bg-orange);
  font-family: var(--bg-font-mono);
  margin-top: 2px;
}

.bg-pdp-sticky-bar__action {
  flex-shrink: 0;
}

.bg-pdp-sticky-btn {
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

@media (max-width: 768px) {
  .bg-pdp-sticky-bar {
    display: block;
  }
}

/* 3. Checkout Inputs Touch-Friendly (48px) */
.woocommerce-checkout form.checkout input[type="text"],
.woocommerce-checkout form.checkout input[type="email"],
.woocommerce-checkout form.checkout input[type="tel"],
.woocommerce-checkout form.checkout input[type="password"],
.woocommerce-checkout form.checkout select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
  height: 48px !important;
  min-height: 48px !important;
  line-height: 46px !important;
  background: var(--bg-surface) !important;
  border: 1.5px solid var(--bg-border) !important;
  border-radius: var(--bg-radius-sm) !important;
  padding: 0 14px !important;
  font-size: 14.5px !important;
  color: var(--bg-navy) !important;
  box-sizing: border-box !important;
  transition: all 0.18s ease !important;
}

.woocommerce-checkout form.checkout textarea {
  background: var(--bg-surface) !important;
  border: 1.5px solid var(--bg-border) !important;
  border-radius: var(--bg-radius-sm) !important;
  padding: 12px 14px !important;
  font-size: 14.5px !important;
  color: var(--bg-navy) !important;
  min-height: 90px !important;
}

.woocommerce-checkout form.checkout input:focus,
.woocommerce-checkout form.checkout select:focus,
.woocommerce-checkout form.checkout textarea:focus,
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
  background: var(--bg-white) !important;
  border-color: var(--bg-orange) !important;
  box-shadow: 0 0 0 3px rgba(240, 83, 21, 0.14) !important;
  outline: none !important;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 46px !important;
  padding-left: 0 !important;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
}

/* Checkout Toggle Riepilogo Ordine Mobile */
.bg-checkout-toggle-items {
  display: none;
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius-md);
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--bg-navy);
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--bg-font-sans);
}

.bg-checkout-toggle-items svg {
  transition: transform 0.2s ease;
}

.bg-checkout-toggle-items.is-open svg {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .bg-checkout-toggle-items {
    display: flex;
  }
  .woocommerce-checkout-review-order-table.bg-order-table--collapsed {
    display: none !important;
  }
}

/* ==========================================================================
   AGGIUNTE V1.1.9: Ottimizzazione Completa Desktop & Mobile (Audit v4 + Feedback)
   ========================================================================== */

/* 1. Trust Bar Icons Centering (Home & Archive) */
.bg-trust-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 10px !important;
  background: var(--bg-orange-soft, #FFF2EC) !important;
  color: var(--bg-orange) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}
.bg-trust-icon svg {
  display: block !important;
  margin: 0 auto !important;
}
.bg-trust-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

/* 2. Header Desktop (1440px fit) & Mobile Burger Button + Drawers Hidden State */
html, body {
  overflow-x: clip;
}
.bg-minicart-drawer:not(.is-open),
.bg-mobile-drawer:not(.is-open) {
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
.bg-minicart-drawer.is-open,
.bg-mobile-drawer.is-open {
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 1560px) {
  .bg-main-bar__inner {
    gap: 12px !important;
    padding: 0 20px !important;
  }
  .bg-search-wrap {
    flex: 1 1 200px !important;
    min-width: 170px !important;
  }
  .bg-quick-nav {
    gap: 6px !important;
  }
  .bg-quick-link {
    padding: 6px 8px !important;
    font-size: 13px !important;
  }
  .bg-header-actions {
    gap: 6px !important;
  }
  .bg-action-btn {
    padding: 7px 10px !important;
  }
}

#bg-mobile-menu-toggle {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--bg-border) !important;
  color: var(--bg-navy) !important;
  flex-shrink: 0 !important;
}
#bg-mobile-menu-toggle svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

/* 3. Cerca Ricambi & Home Finder: Campo di Ricerca Espanso e Armonioso */
.bg-finder-search {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 16px 0 22px !important;
}
.bg-finder-input-wrap {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
}
.bg-finder-input-wrap input[type="search"],
.bg-finder-input-wrap input[type="text"] {
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  font-family: var(--bg-font-sans) !important;
  color: var(--bg-navy) !important;
  background: var(--bg-surface) !important;
  border: 1.5px solid var(--bg-border) !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  transition: all 0.18s ease !important;
}
.bg-finder-input-wrap input[type="search"]:focus,
.bg-finder-input-wrap input[type="text"]:focus {
  background: var(--bg-white) !important;
  border-color: var(--bg-orange) !important;
  box-shadow: 0 0 0 3px rgba(240, 83, 21, 0.14) !important;
  outline: none !important;
}
.bg-finder-search .bg-btn {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 22px !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
@media (max-width: 575px) {
  .bg-finder-search {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .bg-finder-search .bg-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 4. Carrello: Campo Codice Promozionale, Quantità & Cross-Sells */
.woocommerce-cart table.cart td.actions {
  padding: 18px 20px !important;
  background: var(--bg-surface) !important;
}
.woocommerce-cart table.cart td.actions .coupon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  float: left !important;
}
.woocommerce-cart table.cart td.actions .coupon label {
  display: none !important;
}
.woocommerce-cart table.cart td.actions .coupon input#coupon_code {
  width: 260px !important;
  min-width: 220px !important;
  height: 44px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  font-family: var(--bg-font-sans) !important;
  color: var(--bg-navy) !important;
  background: var(--bg-white) !important;
  border: 1.5px solid var(--bg-border) !important;
  border-radius: 8px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.woocommerce-cart table.cart td.actions .coupon input#coupon_code:focus {
  border-color: var(--bg-orange) !important;
  box-shadow: 0 0 0 3px rgba(240, 83, 21, 0.14) !important;
  outline: none !important;
}
.woocommerce-cart table.cart td.actions .button {
  height: 44px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.woocommerce-cart table.cart .quantity input.qty {
  width: 68px !important;
  height: 42px !important;
  border: 1.5px solid var(--bg-border) !important;
  border-radius: 8px !important;
  background: var(--bg-surface) !important;
  color: var(--bg-navy) !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
  text-align: center !important;
  padding: 0 6px !important;
}
@media (max-width: 767px) {
  .woocommerce-cart table.cart td.actions .coupon {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    float: none !important;
    margin-bottom: 10px !important;
  }
  .woocommerce-cart table.cart td.actions .coupon input#coupon_code,
  .woocommerce-cart table.cart td.actions .coupon .button,
  .woocommerce-cart table.cart td.actions > .button {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Nascondi vecchio cross-sells legacy se presente e stila il nuovo blocco nativo */
.woocommerce-cart .cart-collaterals .cross-sells {
  display: none !important;
}
.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  max-width: 540px !important;
  margin-left: auto !important;
  float: none !important;
}
.bg-cart-cross-sells {
  margin-top: 40px !important;
  padding-top: 32px !important;
  border-top: 1px solid var(--bg-border) !important;
  clear: both !important;
}

/* 5. Checkout ("Dati & Pagamento Sicuro"): Layout 2 Colonne Ordinato & Campi Allineati */
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
  display: none !important;
  content: none !important;
}
.woocommerce-form-coupon-toggle .woocommerce-info {
  padding: 14px 18px !important;
  border-top: 1px solid var(--bg-border) !important;
  border-left: 4px solid var(--bg-orange) !important;
  background: var(--bg-white) !important;
  border-radius: var(--bg-radius-sm) !important;
  font-size: 14px !important;
  color: var(--bg-navy) !important;
}
.woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
  color: var(--bg-orange) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  margin-left: 4px !important;
}

/* Allineamento rigoroso campi fatturazione e blocco "Desideri la Fattura?" */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout #campi_fatturazione_cust {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 14px 4% !important;
  width: 100% !important;
  clear: both !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::after,
.woocommerce-checkout #campi_fatturazione_cust::after {
  display: none !important;
}
.woocommerce-checkout form.checkout .form-row {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}
.woocommerce-checkout form.checkout .form-row.form-row-wide {
  width: 100% !important;
  float: none !important;
}
.woocommerce-checkout form.checkout .form-row.form-row-first,
.woocommerce-checkout form.checkout .form-row.form-row-last,
.woocommerce-checkout form.checkout #billing_phone_field,
.woocommerce-checkout form.checkout #billing_email_field {
  width: 48% !important;
  float: none !important;
}
html, body {
  overflow-x: clip;
}
@media (max-width: 640px) {
  .woocommerce-checkout form.checkout .form-row.form-row-first,
  .woocommerce-checkout form.checkout .form-row.form-row-last {
    width: 100% !important;
  }
}

.woocommerce-checkout form.checkout .form-row label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--bg-navy) !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
}
.woocommerce-checkout form.checkout .form-row .required {
  color: var(--bg-orange) !important;
  text-decoration: none !important;
}

/* Card dedicata per "Desideri la Fattura?" */
.woocommerce-checkout #campi_fatturazione_cust {
  margin-top: 22px !important;
  padding: 20px !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}
.woocommerce-checkout #campi_fatturazione_cust > h2 {
  width: 100% !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--bg-navy) !important;
  margin: 0 0 4px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--bg-border) !important;
}

/* Layout Desktop a 2 Colonne per il Checkout (Dati a sinistra, Riepilogo e Pagamento a destra) */
@media (min-width: 992px) {
  .woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 1.22fr 1fr !important;
    gap: 0 32px !important;
    align-items: start !important;
  }
  .woocommerce-checkout form.checkout > .woocommerce-NoticeGroup {
    grid-column: 1 / -1 !important;
  }
  .woocommerce-checkout form.checkout #customer_details {
    grid-column: 1 !important;
    grid-row: 1 / span 4 !important;
    width: 100% !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin: 0 !important;
  }
  .woocommerce-checkout form.checkout #customer_details .col-1,
  .woocommerce-checkout form.checkout #customer_details .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 28px !important;
    background: var(--bg-white) !important;
    border: 1px solid var(--bg-border) !important;
    border-radius: var(--bg-radius-lg) !important;
    box-shadow: var(--bg-shadow-xs) !important;
    box-sizing: border-box !important;
  }
  .woocommerce-checkout form.checkout #order_review_heading {
    grid-column: 2 !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 26px 28px 16px !important;
    background: var(--bg-white) !important;
    border: 1px solid var(--bg-border) !important;
    border-bottom: none !important;
    border-radius: var(--bg-radius-lg) var(--bg-radius-lg) 0 0 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--bg-navy) !important;
    box-sizing: border-box !important;
  }
  .woocommerce-checkout form.checkout #order_review {
    grid-column: 2 !important;
    width: 100% !important;
    float: none !important;
    padding: 0 28px 28px !important;
    background: var(--bg-white) !important;
    border: 1px solid var(--bg-border) !important;
    border-top: none !important;
    border-radius: 0 0 var(--bg-radius-lg) var(--bg-radius-lg) !important;
    box-shadow: var(--bg-shadow-sm) !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 991px) {
  .woocommerce-checkout form.checkout #customer_details .col-1,
  .woocommerce-checkout form.checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    padding: 20px 16px !important;
    background: var(--bg-white) !important;
    border: 1px solid var(--bg-border) !important;
    border-radius: var(--bg-radius-md) !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }
  .woocommerce-checkout form.checkout #order_review_heading {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--bg-navy) !important;
    margin: 8px 0 12px !important;
  }
}

.woocommerce-checkout #customer_details h3 {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: var(--bg-navy) !important;
  margin: 0 0 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--bg-border) !important;
}

/* Stile Moderno Nordic Pro per il Box Metodi di Pagamento (#payment) */
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
  background: var(--bg-surface) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: 12px !important;
  padding: 18px !important;
}
#add_payment_method #payment ul.payment_methods,
.woocommerce-cart #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--bg-border) !important;
  padding: 0 0 14px !important;
  margin: 0 0 16px !important;
  list-style: none !important;
}
.woocommerce-checkout #payment ul.payment_methods > li {
  background: var(--bg-white) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  margin-bottom: 10px !important;
  line-height: 1.5 !important;
}
.woocommerce-checkout #payment ul.payment_methods > li > label {
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: var(--bg-navy) !important;
  cursor: pointer !important;
}
.woocommerce-checkout #payment div.payment_box {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  color: var(--bg-slate) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  padding: 12px 14px !important;
  margin: 10px 0 4px !important;
}
.woocommerce-checkout #payment div.payment_box::before {
  display: none !important;
}
.woocommerce-checkout #payment div.form-row.place-order {
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce-checkout #payment #place_order {
  width: 100% !important;
  min-height: 52px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  margin-top: 12px !important;
  justify-content: center !important;
}

/* 6. Scheda Prodotto (PDP): Mobile Badges 2x2, Pulsante Add-to-Cart 54px, Box Logistica & Tabs */
.bg-pdp-sku-pill {
  cursor: default !important;
  user-select: text !important;
}

/* Sezione Prodotti Correlati più raccolta e con maggior respiro laterale */
.bg-pdp-related-section {
  margin: 40px auto 0 !important;
  padding: 28px 32px !important;
  background: var(--bg-white) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: var(--bg-radius-lg) !important;
  box-shadow: var(--bg-shadow-xs) !important;
}
@media (max-width: 767px) {
  .bg-pdp-related-section {
    padding: 20px 14px !important;
    margin-top: 28px !important;
  }
}

/* Badge rassicurativi sotto l'immagine: affiancati 2x2 e compatti su mobile */
@media (max-width: 767px) {
  .bg-pdp-guarantees-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }
  .bg-pdp-guarantee-item {
    padding: 9px 10px !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }
  .bg-pdp-guarantee-icon svg {
    width: 17px !important;
    height: 17px !important;
    margin-top: 2px !important;
  }
  .bg-pdp-guarantee-item strong {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
  }
  .bg-pdp-guarantee-item span {
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    display: block !important;
  }
}

/* Pulsante Aggiungi al Carrello Mobile coerente con Desktop (54px di altezza, affiancato al selettore quantità) */
.bg-pdp-cart-form {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}
.bg-pdp-qty-wrap {
  height: 54px !important;
  min-height: 54px !important;
  flex-shrink: 0 !important;
}
.bg-pdp-add-btn {
  flex: 1 1 auto !important;
  height: 54px !important;
  min-height: 54px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 18px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
@media (max-width: 480px) {
  .bg-pdp-buybox {
    padding: 18px 16px !important;
  }
  .bg-pdp-qty-btn,
  .bg-qty-btn {
    width: 34px !important;
  }
  .bg-pdp-qty-wrap input[type="number"] {
    width: 42px !important;
  }
  .bg-pdp-add-btn {
    font-size: 13.5px !important;
    padding: 0 12px !important;
  }
}

/* Box Logistica Unificato & WhatsApp Box con gerarchia cromatica distinta e compatta */
.bg-pdp-logistics-box {
  background: var(--bg-surface) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.bg-pdp-logistics-box .bg-est-delivery {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
.bg-pdp-logistics-box .bg-est-delivery__icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 8px !important;
  background: var(--bg-green-soft, #DCFCE7) !important;
  color: var(--bg-green) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 1px !important;
}
.bg-pdp-logistics-box .bg-est-delivery__body strong {
  display: block !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--bg-navy) !important;
  line-height: 1.3 !important;
  margin-bottom: 2px !important;
}
.bg-pdp-logistics-box .bg-est-delivery__body span {
  display: block !important;
  font-size: 11.5px !important;
  color: var(--bg-slate) !important;
  line-height: 1.35 !important;
}
.bg-pdp-logistics-box .bg-pdp-free-ship-instant {
  background: transparent !important;
  border: none !important;
  border-top: 1px dashed var(--bg-border) !important;
  border-radius: 0 !important;
  padding: 10px 0 0 !important;
  margin: 0 !important;
  color: var(--bg-navy) !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
.bg-pdp-free-ship-instant__ico {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 8px !important;
  background: var(--bg-orange-soft, #FFF2EC) !important;
  color: var(--bg-orange) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.bg-pdp-logistics-box .bg-pdp-free-ship-instant strong {
  display: block !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--bg-navy) !important;
  line-height: 1.3 !important;
  margin-bottom: 1px !important;
}
.bg-pdp-logistics-box .bg-pdp-free-ship-instant span {
  font-size: 11.5px !important;
  color: var(--bg-slate) !important;
  line-height: 1.35 !important;
}

/* Box WhatsApp Tecnico con contrasto Navy per staccare dai box chiari */
.bg-pdp-whatsapp-box {
  background: var(--bg-navy) !important;
  border: 1px solid #1E293B !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  margin-top: 12px !important;
}
.bg-pdp-whatsapp-box__text strong {
  color: var(--bg-white) !important;
  font-size: 13px !important;
  margin-bottom: 2px !important;
}
.bg-pdp-whatsapp-box__text span {
  color: #CBD5E1 !important;
  font-size: 11.5px !important;
}
.bg-pdp-whatsapp-box__text code {
  color: #FBBF24 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
}

/* 7. Schede Approfondimento PDP (Descrizione, Specifiche, Recensioni, Spedizioni) */
.bg-pdp-details-section {
  background: var(--bg-white) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: var(--bg-radius-lg) !important;
  overflow: hidden !important;
  margin-top: 32px !important;
}
/* Elimina il doppio bordo/padding della .bg-card interna ai pannelli tab */
#bg-pdp-panel-desc > .bg-card,
#bg-pdp-panel-specs > .bg-card,
#bg-pdp-panel-reviews > .bg-card {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.bg-pdp-tab-panel {
  padding: 28px 32px !important;
}
.bg-pdp-content-prose {
  font-size: 15.5px !important;
  line-height: 1.75 !important;
  color: var(--bg-slate) !important;
  max-width: 920px !important;
}
.bg-pdp-content-prose h2,
.bg-pdp-content-prose h3 {
  color: var(--bg-navy) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin: 0 0 14px !important;
}
.bg-pdp-content-prose p {
  margin: 0 0 14px !important;
}

@media (max-width: 767px) {
  /* Griglia 2x2 simmetrica e ordinata per le 4 tab su mobile */
  .bg-pdp-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 8px !important;
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--bg-border) !important;
  }
  .bg-pdp-tabs-nav .bg-tab-btn {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    line-height: 1.25 !important;
    min-height: 42px !important;
  }
  .bg-pdp-tab-panel {
    padding: 20px 16px !important;
  }
  .bg-pdp-content-prose {
    font-size: 14.5px !important;
    line-height: 1.68 !important;
  }
  .bg-pdp-content-prose h2 {
    font-size: 18px !important;
  }
}

/* 8. Catalogo Mobile: Evita sovrapposizione doppio bottone filtri & rendi pillole scorrevoli */
@media (max-width: 991px) {
  .bg-mobile-filter-trigger {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .bg-subcats-chips {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    width: 100% !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch;
  }
  .bg-subcat-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   STEP 3: CONFERMA & SPEDIZIONE RAPIDA (THANK YOU PAGE NORDIC PRO)
   ========================================================================== */
.bg-thankyou-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 1. Hero Box Conferma */
.bg-thankyou-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 75%);
  border: 1.5px solid #86EFAC;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.06);
}
.bg-thankyou-hero__badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-green, #1B4D3E);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27, 77, 62, 0.25);
}
.bg-thankyou-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg-green, #1B4D3E);
  background: #DCFCE7;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.bg-thankyou-title {
  font-size: 23px !important;
  font-weight: 800 !important;
  color: var(--bg-navy, #0F172A) !important;
  margin: 0 0 8px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
}
.bg-thankyou-sub {
  font-size: 14.5px;
  color: var(--bg-slate, #475569);
  margin: 0;
  line-height: 1.6;
}

/* 2. KPI 4 Card Riepilogo */
.bg-thankyou-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bg-thankyou-kpi {
  background: #FFFFFF;
  border: 1px solid var(--bg-border, #E2E8F0) !important;
  border-radius: 14px;
  padding: 18px 20px !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}
.bg-thankyou-kpi::before,
.bg-thankyou-kpi::after {
  display: none !important;
}
.bg-thankyou-kpi__label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bg-slate, #64748B);
}
.bg-thankyou-kpi__val {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--bg-navy, #0F172A);
}
.bg-thankyou-kpi__val--price {
  color: var(--bg-green, #1B4D3E);
  font-family: var(--bg-font-mono);
}

/* 3. Card Timeline Spedizione Rapida */
.bg-thankyou-tracking-card {
  background: #FFFFFF;
  border: 1px solid var(--bg-border, #E2E8F0);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.bg-thankyou-tracking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #F1F5F9;
}
.bg-thankyou-tracking-head__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bg-thankyou-tracking-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FFF7ED;
  color: var(--bg-orange, #FF5500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-thankyou-tracking-head__left strong {
  display: block;
  font-size: 16px;
  color: var(--bg-navy, #0F172A);
  margin-bottom: 2px;
}
.bg-thankyou-tracking-head__left span {
  font-size: 13px;
  color: var(--bg-slate, #64748B);
}
.bg-thankyou-tracking-pill {
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bg-thankyou-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bg-thankyou-tstep {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.bg-thankyou-tstep.is-done {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.bg-thankyou-tstep.is-current {
  background: #FFF7ED;
  border-color: #FED7AA;
}
.bg-thankyou-tstep__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #CBD5E1;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-thankyou-tstep.is-done .bg-thankyou-tstep__dot {
  background: #16A34A;
  color: #FFFFFF;
}
.bg-thankyou-tstep.is-current .bg-thankyou-tstep__dot {
  background: var(--bg-orange, #FF5500);
  color: #FFFFFF;
}
.bg-thankyou-tstep strong {
  display: block;
  font-size: 14px;
  color: var(--bg-navy, #0F172A);
  margin-bottom: 2px;
}
.bg-thankyou-tstep span {
  font-size: 12.5px;
  color: var(--bg-slate, #64748B);
}

/* 4. Card Istruzioni Pagamento / Coordinate Bancarie BACS */
.bg-thankyou-payment-card {
  background: #FFFFFF;
  border: 1px solid var(--bg-border, #E2E8F0);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.bg-thankyou-payment-card > h3:first-child {
  display: inline-block;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #FEF3C7;
  color: #92400E !important;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 10px !important;
}
.bg-thankyou-payment-card > h4,
.bg-thankyou-payment-card > p {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  color: var(--bg-navy, #0F172A) !important;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 22px !important;
}
.bg-thankyou-payment-card .woocommerce-bacs-bank-details h2 {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--bg-navy, #0F172A) !important;
  margin: 0 0 6px !important;
}
.bg-thankyou-payment-card .woocommerce-bacs-bank-details h3.wc-bacs-bank-details-account-name {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--bg-slate, #64748B) !important;
  margin: 0 0 14px !important;
}
.bg-thankyou-payment-card ul.wc-bacs-bank-details {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bg-thankyou-payment-card ul.wc-bacs-bank-details li {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px !important;
  margin: 0 !important;
  float: none !important;
  font-size: 12px;
  color: var(--bg-slate, #64748B);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bg-thankyou-payment-card ul.wc-bacs-bank-details li strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--bg-navy, #0F172A);
  font-family: var(--bg-font-mono);
  overflow-wrap: anywhere;
}
.bg-thankyou-payment-card ul.wc-bacs-bank-details li.bank_name strong {
  font-family: var(--bg-font-sans);
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}

/* 5. Griglia 2 Colonne: Dettagli Ordine (SX) + Indirizzi (DX) */
.bg-thankyou-details-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}
.bg-thankyou-details-grid .woocommerce-order-details,
.bg-thankyou-details-grid .woocommerce-customer-details {
  background: #FFFFFF;
  border: 1px solid var(--bg-border, #E2E8F0);
  border-radius: 16px;
  padding: 26px 28px;
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.bg-thankyou-details-grid .woocommerce-order-details__title,
.bg-thankyou-details-grid .woocommerce-column__title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--bg-navy, #0F172A) !important;
  margin: 0 0 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

/* Tabella Dettagli Ordine (anche senza classe .woocommerce sul body) */
.bg-thankyou-details-grid table.woocommerce-table--order-details {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
.bg-thankyou-details-grid table.woocommerce-table--order-details thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg-slate, #64748B);
  background: #F8FAFC;
  padding: 12px 16px;
  border-bottom: 1px solid #E2E8F0;
}
.bg-thankyou-details-grid table.woocommerce-table--order-details thead th.product-total,
.bg-thankyou-details-grid table.woocommerce-table--order-details tbody td.product-total,
.bg-thankyou-details-grid table.woocommerce-table--order-details tfoot td {
  text-align: right !important;
}
.bg-thankyou-details-grid table.woocommerce-table--order-details tbody td {
  padding: 16px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  font-size: 14.5px;
  color: var(--bg-navy, #0F172A);
  vertical-align: middle;
}
.bg-thankyou-details-grid table.woocommerce-table--order-details tbody td a {
  color: var(--bg-navy, #0F172A);
  font-weight: 700;
  text-decoration: none;
}
.bg-thankyou-details-grid table.woocommerce-table--order-details tbody td a:hover {
  color: var(--bg-orange, #FF5500);
}
.bg-thankyou-details-grid table.woocommerce-table--order-details tfoot th,
.bg-thankyou-details-grid table.woocommerce-table--order-details tfoot td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  font-size: 14px;
}
.bg-thankyou-details-grid table.woocommerce-table--order-details tfoot th {
  text-align: left;
  font-weight: 600;
  color: var(--bg-slate, #475569);
}
.bg-thankyou-details-grid table.woocommerce-table--order-details tfoot td {
  font-weight: 700;
  color: var(--bg-navy, #0F172A);
}
.bg-thankyou-details-grid table.woocommerce-table--order-details tfoot tr:last-child th,
.bg-thankyou-details-grid table.woocommerce-table--order-details tfoot tr:last-child td {
  border-bottom: none !important;
}
.bg-thankyou-details-grid table.woocommerce-table--order-details .woocommerce-Price-amount {
  font-family: var(--bg-font-mono);
  font-weight: 800;
}

/* Indirizzi Fatturazione & Spedizione dentro la card di destra */
.bg-thankyou-details-grid .woocommerce-customer-details .woocommerce-columns,
.bg-thankyou-details-grid .woocommerce-customer-details .woocommerce-columns--addresses {
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.bg-thankyou-details-grid .woocommerce-customer-details .woocommerce-column {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.bg-thankyou-details-grid .woocommerce-customer-details address {
  font-style: normal !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: var(--bg-navy, #0F172A) !important;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 18px !important;
  margin: 0 !important;
}
.bg-thankyou-details-grid .woocommerce-customer-details address p {
  margin: 8px 0 0 !important;
  padding-top: 8px;
  border-top: 1px dashed #E2E8F0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bg-slate, #475569);
}

/* 6. Box Supporto WhatsApp Post-Ordine */
.bg-thankyou-support-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #0F172A;
  color: #FFFFFF;
  padding: 24px 28px;
  border-radius: 16px;
}
.bg-thankyou-support-box__text {
  flex: 1;
  min-width: 260px;
}
.bg-thankyou-support-box strong {
  display: block;
  font-size: 15.5px;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.bg-thankyou-support-box span {
  font-size: 13.5px;
  color: #CBD5E1;
}
.bg-thankyou-support-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bg-thankyou-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366 !important;
  color: #0F172A !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 12px 20px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}
.bg-thankyou-wa-btn:hover {
  background: #22C55E !important;
  transform: translateY(-1px);
}
.bg-thankyou-catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 11px 20px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.bg-thankyou-catalog-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
}

@media (max-width: 991px) {
  .bg-thankyou-details-grid {
    grid-template-columns: 1fr;
  }
  .bg-thankyou-payment-card ul.wc-bacs-bank-details {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .bg-thankyou-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .bg-thankyou-title {
    font-size: 19px !important;
  }
  .bg-thankyou-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .bg-thankyou-kpi {
    padding: 14px !important;
  }
  .bg-thankyou-kpi__val {
    font-size: 14.5px;
  }
  .bg-thankyou-tracking-card,
  .bg-thankyou-payment-card,
  .bg-thankyou-details-grid .woocommerce-order-details,
  .bg-thankyou-details-grid .woocommerce-customer-details {
    padding: 20px 18px;
  }
  .bg-thankyou-timeline {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bg-thankyou-payment-card ul.wc-bacs-bank-details {
    grid-template-columns: 1fr !important;
  }
  .bg-thankyou-support-box {
    padding: 20px 18px;
  }
  .bg-thankyou-support-actions {
    width: 100%;
    flex-direction: column;
  }
  .bg-thankyou-wa-btn,
  .bg-thankyou-catalog-btn {
    width: 100%;
  }
}

/* ==========================================================================
   GALLERIA LIGHTBOX A SCORRIMENTO NATIVA (PDP)
   ========================================================================== */
button.bg-pdp-zoom-hint {
  border: 1px solid var(--bg-border);
  background: var(--bg-surface);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
button.bg-pdp-zoom-hint:hover {
  background: #FFF7ED;
  color: var(--bg-orange);
  border-color: #FDBA74;
}

.bg-pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.bg-pdp-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.bg-pdp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 44, 0.94);
  backdrop-filter: blur(6px);
}
.bg-pdp-lightbox__topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.bg-pdp-lightbox__counter {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.bg-pdp-lightbox__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bg-pdp-lightbox__zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bg-pdp-lightbox__zoom-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.03);
}
.bg-pdp-lightbox__zoom-btn .bg-lb-icon-zoom-out {
  display: none;
}
.bg-pdp-lightbox.is-zoomed .bg-pdp-lightbox__zoom-btn {
  background: rgba(249, 115, 22, 0.24);
  border-color: var(--bg-orange);
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.bg-pdp-lightbox.is-zoomed .bg-pdp-lightbox__zoom-btn .bg-lb-icon-zoom-in {
  display: none;
}
.bg-pdp-lightbox.is-zoomed .bg-pdp-lightbox__zoom-btn .bg-lb-icon-zoom-out {
  display: inline-block;
  color: #FDBA74;
}
.bg-pdp-lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bg-pdp-lightbox__close:hover {
  background: var(--bg-orange);
  border-color: var(--bg-orange);
  transform: scale(1.03);
}
.bg-pdp-lightbox__stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 72px;
}
.bg-pdp-lightbox__img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-pdp-lightbox__frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  cursor: zoom-in;
  user-select: none;
  touch-action: pan-y;
  transition: box-shadow 0.2s ease;
}
.bg-pdp-lightbox.is-zoomed .bg-pdp-lightbox__frame {
  cursor: grab;
  touch-action: none;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(249, 115, 22, 0.45);
}
.bg-pdp-lightbox.is-zoomed.is-dragging .bg-pdp-lightbox__frame {
  cursor: grabbing;
}
.bg-pdp-lightbox__img-wrap img {
  max-width: calc(min(1020px, 88vw) - 32px);
  max-height: calc(74vh - 32px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  box-shadow: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.bg-pdp-lightbox.is-dragging .bg-pdp-lightbox__img-wrap img {
  transition: none;
}
.bg-pdp-lightbox__zoom-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  max-width: calc(100% - 28px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.bg-pdp-lightbox__zoom-pill .bg-lb-icon-zoom-out {
  display: none;
}
.bg-pdp-lightbox.is-zoomed .bg-pdp-lightbox__zoom-pill {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(249, 115, 22, 0.65);
  opacity: 0.94;
}
.bg-pdp-lightbox.is-zoomed .bg-pdp-lightbox__zoom-pill .bg-lb-icon-zoom-in {
  display: none;
}
.bg-pdp-lightbox.is-zoomed .bg-pdp-lightbox__zoom-pill .bg-lb-icon-zoom-out {
  display: inline-block;
  color: #FDBA74;
}
.bg-pdp-lightbox.is-dragging .bg-pdp-lightbox__zoom-pill {
  opacity: 0.35;
}
.bg-pdp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bg-pdp-lightbox__nav:hover {
  background: var(--bg-orange);
  border-color: var(--bg-orange);
  transform: translateY(-50%) scale(1.06);
}
.bg-pdp-lightbox__nav--prev {
  left: 20px;
}
.bg-pdp-lightbox__nav--next {
  right: 20px;
}
.bg-pdp-lightbox__thumbs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px 22px;
  overflow-x: auto;
}
.bg-pdp-lightbox__thumb {
  width: 62px;
  height: 62px;
  padding: 4px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 2px solid transparent;
  opacity: 0.6;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.bg-pdp-lightbox__thumb.is-active,
.bg-pdp-lightbox__thumb:hover {
  opacity: 1;
  border-color: var(--bg-orange);
  transform: translateY(-2px);
}
.bg-pdp-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

@media (max-width: 767px) {
  .bg-pdp-lightbox__topbar {
    padding: 12px 16px;
  }
  .bg-pdp-lightbox__actions {
    gap: 8px;
  }
  .bg-pdp-lightbox__zoom-btn {
    padding: 7px 13px;
    font-size: 12.5px;
  }
  .bg-pdp-lightbox__close {
    padding: 7px 14px;
    font-size: 13px;
  }
  .bg-pdp-lightbox__stage {
    padding: 8px 12px;
  }
  .bg-pdp-lightbox__frame {
    padding: 10px;
    border-radius: 14px;
  }
  .bg-pdp-lightbox__img-wrap img {
    max-width: calc(92vw - 20px);
    max-height: calc(68vh - 20px);
    padding: 0;
    border-radius: 8px;
  }
  .bg-pdp-lightbox__zoom-pill {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 10px;
    font-size: 11px;
  }
  .bg-pdp-lightbox__nav {
    width: 42px;
    height: 42px;
    background: rgba(15, 23, 42, 0.75);
  }
  .bg-pdp-lightbox__nav--prev {
    left: 10px;
  }
  .bg-pdp-lightbox__nav--next {
    right: 10px;
  }
  .bg-pdp-lightbox__thumb {
    width: 52px;
    height: 52px;
  }
}

/* ==========================================================================
   FIX GLOBALE MOBILE RESPONSIVE & CONTENIMENTO GRIGLIE CSS (v1.2.7)
   Risolve il taglio laterale su mobile di:
   - Pagina Prodotto (blocco titolo/prezzo .bg-pdp-buybox, galleria, garanzie)
   - Homepage (blocco Hero .bg-hero-main, box Ricerca Tecnica .bg-finder, categorie rapide)
   - Footer su tutte le pagine (.bg-footer-col e badge recensioni .cr-trustbadgef)
   - Tutte le griglie CSS su schermi da 320px a 991px
   ========================================================================== */

/* 1. Prevenzione espansione tracce CSS Grid oltre il contenitore (min-width: 0) */
.bg-hero-grid > *,
.bg-pdp-hero-grid > *,
.bg-pdp-guarantees-strip > *,
.bg-quick-cats > *,
.bg-trustbar > *,
.bg-brands-grid > *,
.bg-grid-2 > *,
.bg-grid-3 > *,
.bg-footer-guarantees-grid > *,
.bg-footer-cols > *,
.bg-archive-layout > *,
.bg-archive-trust-strip > *,
.bg-checkout-steps > *,
.bg-checkout-trust-bar > *,
.bg-reviews-layout > *,
.bg-thankyou-kpi-grid > *,
.bg-thankyou-details-grid > *,
.bg-thankyou-timeline > * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 2. Griglie a 2 colonne che devono usare minmax(0, 1fr) per non sforare mai */
.bg-quick-cats {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.bg-quick-cat {
  min-width: 0 !important;
  gap: 6px !important;
}
.bg-quick-cat span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.bg-quick-cat small {
  flex-shrink: 0;
}

.bg-pdp-guarantees-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.bg-pdp-guarantee-item,
.bg-pdp-guarantee-item > div {
  min-width: 0 !important;
}
.bg-pdp-guarantee-item strong,
.bg-pdp-guarantee-item span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* 3. Tablet & Mobile (<991px): tutte le griglie a 1 colonna usano minmax(0, 1fr) */
@media (max-width: 991px) {
  .bg-hero-grid,
  .bg-pdp-hero-grid,
  .bg-grid-2,
  .bg-grid-3,
  .bg-archive-layout,
  .bg-thankyou-details-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* 4. Mobile (<767px): Adattamento padding e blocchi Homepage, Scheda Prodotto & Pagine Interne */
@media (max-width: 767px) {
  /* Homepage Hero & Finder Box */
  .bg-hero {
    padding: 16px 0 24px !important;
  }
  .bg-hero-main {
    padding: 24px 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .bg-hero-main h1 {
    font-size: 25px !important;
    line-height: 1.18 !important;
    overflow-wrap: break-word;
  }
  .bg-hero-main p {
    font-size: 14.5px !important;
    margin-bottom: 18px !important;
  }
  .bg-hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 16px 0 18px !important;
  }
  .bg-hero-actions .bg-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .bg-finder {
    padding: 20px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .bg-finder h2 {
    font-size: 19px !important;
  }
  .bg-quick-cats {
    gap: 6px !important;
  }
  .bg-quick-cat {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  /* Card generiche e sezione Officina in Homepage */
  .bg-card,
  .bg-workshop-card {
    padding: 20px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .bg-section {
    padding: 32px 0 !important;
  }
  .bg-title {
    font-size: 22px !important;
    line-height: 1.22 !important;
  }

  /* Pagina Prodotto (PDP): Galleria, Garanzie e Blocco Titolo/Prezzo (.bg-pdp-buybox) */
  .bg-pdp-left-col,
  .bg-pdp-right-col,
  .bg-pdp-gallery-card,
  .bg-pdp-buybox {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .bg-pdp-gallery-card {
    padding: 16px !important;
  }
  .bg-pdp-buybox {
    padding: 18px 16px !important;
  }
  .bg-pdp-title {
    font-size: 20px !important;
    line-height: 1.28 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .bg-pdp-price-card {
    padding: 14px !important;
    max-width: 100% !important;
  }
  .bg-pdp-price-main {
    font-size: 26px !important;
  }
  .bg-pdp-cart-form {
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
  }
  .bg-pdp-add-btn {
    min-width: 0 !important;
    font-size: 12.5px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    letter-spacing: 0.01em !important;
  }
  .bg-pdp-qty-btn,
  .bg-qty-btn {
    width: 32px !important;
  }
  .bg-pdp-qty-wrap input[type="number"] {
    width: 38px !important;
  }
  .bg-pdp-whatsapp-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .bg-pdp-whatsapp-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 5. Card Prodotto: evita che SKU o titoli lunghi sporgano su schermi piccoli */
.bg-pcard-meta {
  min-width: 0;
}
.bg-pcard-sku {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bg-pcard-title,
.bg-pcard-title a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 6. Footer e Badge Recensioni CusRev (.cr-trustbadgef) su Mobile: elimina sforamento a 597px */
@media (max-width: 575px) {
  .bg-footer-guarantees-grid,
  .bg-footer-cols {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
.bg-footer-col .cr-trustbadgef,
.bg-footer-col .cr-badge {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
  border-radius: 10px !important;
}
.bg-footer-col .cr-badge .badge__store,
.bg-footer-col .cr-badge .badge__nowrap,
.bg-footer-col .cr-badge .badge__rating,
.bg-footer-col .cr-badge .badge__verified {
  max-width: 100% !important;
  white-space: normal !important;
  flex-wrap: wrap !important;
  box-sizing: border-box !important;
  position: static !important;
  height: auto !important;
}
.bg-footer-contact-list li,
.bg-footer-contact-list li span,
.bg-footer-contact-list li a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ==========================================================================
   PAGINA PRIVACY & COOKIE POLICY (Iubenda API + Embed Nativo) & BANNER IUBENDA
   ========================================================================== */
.bg-legal-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 22px 26px;
}
.bg-legal-summary-card__info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.bg-legal-summary-card__badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--bg-orange-soft);
  color: var(--bg-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-legal-summary-card__info strong {
  display: block;
  font-size: 15.5px;
  color: var(--bg-navy);
  margin-bottom: 4px;
}
.bg-legal-summary-card__info p {
  margin: 0;
  font-size: 13.5px;
  color: var(--bg-slate);
  line-height: 1.55;
}
.bg-legal-summary-card__info p strong {
  display: inline;
  font-size: inherit;
}
.bg-legal-summary-card__info a {
  color: var(--bg-orange);
  font-weight: 700;
}
.bg-legal-summary-card__actions {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .bg-legal-summary-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .bg-legal-summary-card__actions .bg-btn {
    width: 100%;
    justify-content: center;
  }
  .bg-legal-tabs-nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  .bg-legal-tabs-nav .bg-tab-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

.bg-iubenda-card {
  padding: 36px 40px;
}
@media (max-width: 767px) {
  .bg-iubenda-card {
    padding: 20px 16px !important;
  }
}

.bg-iubenda-body,
.bg-iubenda-body #iubenda_policy {
  font-family: var(--bg-font-sans) !important;
  color: var(--bg-slate) !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}
.bg-iubenda-body h1,
.bg-iubenda-body h2,
.bg-iubenda-body h3,
.bg-iubenda-body h4 {
  color: var(--bg-navy) !important;
  font-family: var(--bg-font-sans) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin-top: 26px !important;
  margin-bottom: 10px !important;
}
.bg-iubenda-body h1 {
  font-size: 24px !important;
  margin-top: 0 !important;
}
.bg-iubenda-body h2 {
  font-size: 19px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-border);
}
.bg-iubenda-body h3 {
  font-size: 16px !important;
}
.bg-iubenda-body a {
  color: var(--bg-orange) !important;
  text-decoration: underline !important;
}
.bg-iubenda-body ul,
.bg-iubenda-body ol {
  padding-left: 20px !important;
  margin: 10px 0 16px !important;
}
.bg-iubenda-body li {
  margin-bottom: 6px !important;
}
.bg-iubenda-body .box_primary,
.bg-iubenda-body fieldset,
.bg-iubenda-body .for_boxes > li {
  background: var(--bg-surface) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: 10px !important;
  padding: 16px 18px !important;
  margin: 12px 0 !important;
  list-style: none !important;
}
.bg-iubenda-body .for_boxes {
  padding-left: 0 !important;
  list-style: none !important;
}
.bg-iubenda-body table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  display: block;
  overflow-x: auto;
}

/* Ottimizzazione responsiva Banner Cookie Iubenda (#iubenda-cs-banner) su schermi mobile */
@media (max-width: 640px) {
  #iubenda-cs-banner .iubenda-cs-container {
    padding: 8px !important;
  }
  #iubenda-cs-banner .iubenda-cs-rationale {
    max-height: 32vh !important;
    overflow-y: auto !important;
    font-size: 12.5px !important;
  }
}

/* ============================================================================
   CENTRO STRUMENTI TECNICI INTERATTIVI (TROVA RICAMBI, CATENE, MACCHINE, MISCELA)
   & GUIDA TECNICA SEO + FAQ ACCORDION CATEGORIE
   ============================================================================ */
.bg-tools-hub {
  margin: 28px 0 36px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--bg-border, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.bg-tools-hub--compact {
  margin: 0 0 24px;
  padding: 20px;
}
.bg-tools-hub__header {
  margin-bottom: 18px;
}
.bg-tools-hub__title {
  margin: 4px 0 6px;
  font-size: clamp(20px, 2.3vw, 25px);
  font-weight: 800;
  color: var(--bg-navy, #0f172a);
  letter-spacing: -0.02em;
}
.bg-tools-hub__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--bg-slate, #475569);
}
.bg-tools-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bg-border, #e2e8f0);
}
.bg-tools-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--bg-font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bg-slate, #334155);
  background: var(--bg-surface, #f8fafc);
  border: 1px solid var(--bg-border, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.bg-tools-tab:hover {
  border-color: var(--bg-forest, #1b4d3e);
  color: var(--bg-forest, #1b4d3e);
}
.bg-tools-tab.is-active {
  background: var(--bg-forest, #1b4d3e);
  color: #ffffff;
  border-color: var(--bg-forest, #1b4d3e);
  box-shadow: 0 4px 12px rgba(27, 77, 62, 0.2);
}
.bg-tools-panel {
  display: none;
}
.bg-tools-panel.is-active {
  display: block;
}
.bg-tool-form-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.bg-tool-form-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bg-tool-form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bg-tool-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bg-tool-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bg-navy, #0f172a);
}
.bg-tool-field select,
.bg-tool-field input[type="text"],
.bg-tool-field input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: var(--bg-font-sans);
  font-size: 13.5px;
  color: var(--bg-navy, #0f172a);
  background: #f8fafc;
  border: 1px solid var(--bg-border, #cbd5e1);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bg-tool-field select:focus,
.bg-tool-field input[type="text"]:focus,
.bg-tool-field input[type="number"]:focus {
  background: #ffffff;
  border-color: var(--bg-forest, #1b4d3e);
}
.bg-tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.bg-tool-quick-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--bg-muted, #64748b);
}
.bg-tool-example-pill {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-forest, #1b4d3e);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bg-tool-example-pill:hover {
  background: var(--bg-forest, #1b4d3e);
  color: #ffffff;
  border-color: var(--bg-forest, #1b4d3e);
}
.bg-tool-helper-details {
  font-size: 13px;
  color: var(--bg-slate, #475569);
  background: #f8fafc;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--bg-border, #e2e8f0);
}
.bg-tool-helper-details summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--bg-forest, #1b4d3e);
}
.bg-tool-helper-details p {
  margin: 8px 0 2px;
  line-height: 1.5;
}
.bg-tool-results {
  margin-top: 20px;
}
.bg-tool-results:empty {
  margin-top: 0;
}
.bg-tool-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-size: 13.5px;
  color: #14532d;
}
.bg-tool-loading {
  padding: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--bg-forest, #1b4d3e);
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed var(--bg-border, #cbd5e1);
}
.bg-tool-empty-box {
  padding: 24px;
  text-align: center;
  background: #f8fafc;
  border: 1px solid var(--bg-border, #e2e8f0);
  border-radius: 12px;
}
.bg-tool-empty-box strong {
  display: block;
  font-size: 16px;
  color: var(--bg-navy, #0f172a);
  margin-bottom: 6px;
}
.bg-tool-empty-box p {
  margin: 0 auto 14px;
  max-width: 580px;
  font-size: 13.5px;
  color: var(--bg-slate, #475569);
}

/* Calcolatore Miscela 2T */
.bg-mix-calculator-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.bg-mix-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bg-mix-pill {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid var(--bg-border, #cbd5e1);
  border-radius: 8px;
  cursor: pointer;
  color: var(--bg-slate, #334155);
}
.bg-mix-pill.is-active {
  background: var(--bg-forest, #1b4d3e);
  color: #ffffff;
  border-color: var(--bg-forest, #1b4d3e);
}
.bg-mix-result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1b4d3e 100%);
  color: #ffffff;
  border-radius: 14px;
  text-align: center;
}
.bg-mix-result-card .bg-eyebrow {
  color: #a7f3d0 !important;
}
.bg-mix-big-value {
  font-family: var(--bg-font-mono, monospace);
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin: 8px 0 6px;
}
.bg-mix-sub-value {
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 14px;
}
.bg-mix-tip {
  font-size: 12.5px;
  line-height: 1.45;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  text-align: left;
}

/* Guida Tecnica SEO & FAQ Accordion Categorie */
.bg-archive-seo-guide {
  margin: 32px 0 12px;
}
.bg-archive-seo-guide__box {
  padding: 26px 28px;
  background: #ffffff;
  border: 1px solid var(--bg-border, #e2e8f0);
  border-radius: 14px;
}
.bg-archive-seo-guide__title {
  margin: 4px 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--bg-navy, #0f172a);
}
.bg-archive-seo-guide__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--bg-slate, #334155);
  margin-bottom: 20px;
}
.bg-archive-faq-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--bg-navy, #0f172a);
  margin: 0 0 12px;
}
.bg-archive-faq-item {
  border: 1px solid var(--bg-border, #e2e8f0);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #f8fafc;
  overflow: hidden;
}
.bg-archive-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bg-navy, #0f172a);
  cursor: pointer;
  list-style: none;
}
.bg-archive-faq-question::-webkit-details-marker {
  display: none;
}
.bg-archive-faq-chevron {
  font-size: 18px;
  font-weight: 800;
  color: var(--bg-forest, #1b4d3e);
}
.bg-archive-faq-item[open] .bg-archive-faq-chevron {
  transform: rotate(45deg);
}
.bg-archive-faq-answer {
  padding: 0 16px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--bg-slate, #475569);
}
.bg-archive-faq-answer p {
  margin: 0;
}

/* ==========================================================================
   INTERACTIVE TOOLS HUB v2.0 ENHANCEMENTS
   ========================================================================== */
.bg-tool-form-grid--5 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.15fr;
}
.bg-tool-field--actions-dual {
  display: flex;
  flex-direction: row !important;
  align-items: flex-end;
  gap: 8px;
}
.bg-tool-field--actions-dual .bg-tool-submit-btn {
  flex: 1;
}
.bg-tool-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.bg-tool-reset-btn:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #0f172a;
}

/* Recommended Sharpening File Badge (Tab 2) */
.bg-tool-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 12.5px;
  color: #92400e;
}
.bg-tool-file-badge strong {
  color: #78350f;
  font-weight: 800;
}
.bg-tool-file-badge__link {
  color: #b45309;
  font-weight: 800;
  text-decoration: underline;
  margin-left: 4px;
}
.bg-tool-file-badge__link:hover {
  color: #78350f;
}

/* Top 3 Quick Comparison Table (Tab 3) */
.bg-tool-compare-wrap {
  margin-bottom: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
}
.bg-tool-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.bg-tool-compare-table th {
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.bg-tool-compare-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}
.bg-tool-compare-table tr:last-child td {
  border-bottom: none;
}
.bg-tool-compare-table td a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}
.bg-tool-compare-table td a:hover {
  color: var(--bg-forest, #1b4d3e);
  text-decoration: underline;
}
.bg-compare-verdict {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}
.bg-compare-specs {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}
.bg-compare-price {
  font-weight: 800;
  color: var(--bg-forest, #1b4d3e);
  white-space: nowrap;
}

/* Workshop Reference Table (Tab 4 Mix Calculator) */
.bg-mix-ref-table-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}
.bg-mix-ref-table-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a7f3d0;
  margin-bottom: 8px;
}
.bg-mix-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #ecfdf5;
}
.bg-mix-ref-table th {
  text-align: left;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.22);
  color: #a7f3d0;
  font-weight: 700;
}
.bg-mix-ref-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bg-mix-ref-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 960px) {
  .bg-tool-form-grid--5,
  .bg-tool-form-grid--4,
  .bg-tool-form-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bg-mix-calculator-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .bg-tools-hub {
    padding: 18px 16px;
  }
  .bg-tool-form-grid--5,
  .bg-tool-form-grid--4,
  .bg-tool-form-grid--3 {
    grid-template-columns: 1fr;
  }
  .bg-tools-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .bg-tools-tab {
    justify-content: center;
    padding: 9px 10px;
    font-size: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   HERO SHOWCASE v2.0: MINI-CAROSELLO DINAMICO + REPARTI CON MINIATURE
   ========================================================================== */
.bg-hero-main__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 95%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 95%);
  pointer-events: none;
  z-index: 0;
}
.bg-hero-main__content,
.bg-hero-main .bg-hero-badges {
  position: relative;
  z-index: 1;
}

.bg-hero-showcase {
  padding: 20px 22px !important;
  gap: 16px;
  justify-content: flex-start !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 2px solid var(--bg-navy, #0f172a) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

/* Mini-Carosello Prodotti (No Ricambi) */
.bg-hero-carousel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.bg-hero-carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.bg-hero-carousel__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bg-hero-carousel__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-orange, #ff5500);
  box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.18);
}
.bg-hero-carousel__controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bg-hero-carousel__counter {
  font-family: var(--bg-font-mono, monospace);
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  margin-right: 2px;
}
.bg-hero-carousel__nav {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.bg-hero-carousel__nav:hover {
  background: var(--bg-navy, #0f172a);
  border-color: var(--bg-navy, #0f172a);
  color: #ffffff;
}

.bg-hero-carousel__viewport {
  position: relative;
  display: grid;
  min-height: 120px;
  touch-action: pan-y;
}
.bg-hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.bg-hero-slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}
@keyframes bgHeroSlideFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bg-hero-slide__thumb {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  flex-shrink: 0;
}
.bg-hero-slide__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.bg-hero-slide:hover .bg-hero-slide__thumb img {
  transform: scale(1.06);
}
.bg-hero-slide__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.bg-hero-slide__badge--sale {
  background: #dc2626;
  color: #ffffff;
}
.bg-hero-slide__badge--choice {
  background: #f59e0b;
  color: #0f172a;
}

.bg-hero-slide__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.bg-hero-slide__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.bg-hero-slide__brand {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 5px;
}
.bg-hero-slide__tag-choice {
  font-size: 10.5px;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 5px;
}
.bg-hero-slide__tag-sale {
  font-size: 10.5px;
  font-weight: 800;
  color: #991b1b;
  background: #fee2e2;
  padding: 2px 7px;
  border-radius: 5px;
}
.bg-hero-slide__tag-stock {
  font-size: 10.5px;
  font-weight: 800;
  color: #065f46;
  background: #d1fae5;
  padding: 2px 7px;
  border-radius: 5px;
}
.bg-hero-slide__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bg-hero-slide__title a {
  color: #0f172a !important;
  text-decoration: none !important;
}
.bg-hero-slide__title a:hover {
  color: var(--bg-orange, #ff5500) !important;
}
.bg-hero-slide__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.bg-hero-slide__price {
  font-size: 16px;
  font-weight: 900;
  color: #14532d;
  line-height: 1.1;
}
.bg-hero-slide__price del {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-right: 5px;
}
.bg-hero-slide__price ins {
  text-decoration: none;
  color: #dc2626;
}
.bg-hero-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-orange, #ff5500);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bg-hero-slide__cta:hover {
  background: var(--bg-orange-hover, #e04800);
  transform: translateY(-1px);
}

.bg-hero-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.bg-hero-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: #cbd5e1;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bg-hero-carousel__dot.is-active {
  width: 20px;
  background: var(--bg-orange, #ff5500);
}

/* Reparti Principali con Miniature Fotografiche */
.bg-hero-depts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bg-hero-depts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bg-hero-depts__head h2 {
  font-size: 15px !important;
  font-weight: 800;
  margin: 0 !important;
  color: var(--bg-navy, #0f172a);
}
.bg-hero-depts__jump {
  font-size: 12px;
  font-weight: 700;
  color: var(--bg-orange, #ff5500) !important;
  text-decoration: none !important;
}
.bg-hero-depts__jump:hover {
  text-decoration: underline !important;
}
.bg-quick-cats--visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.bg-quick-cat--visual {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 6px 9px !important;
  border-radius: 10px !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
.bg-quick-cat__thumb {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px;
  flex-shrink: 0;
}
.bg-quick-cat__name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bg-quick-cat__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.bg-quick-cat__count {
  font-family: var(--bg-font-mono, monospace);
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
}
.bg-hero-carousel__eyebrow {
  white-space: nowrap;
}

/* ---------- HERO SHOWCASE: OTTIMIZZAZIONE MOBILE ---------- */
@media (max-width: 600px) {
  .bg-hero {
    padding-top: 14px;
  }
  .bg-hero-showcase {
    padding: 12px !important;
    gap: 14px;
    border-width: 1px !important;
    border-radius: 16px;
  }
  .bg-hero-carousel {
    padding: 12px;
    border-radius: 12px;
  }
  .bg-hero-carousel__head {
    margin-bottom: 10px;
    gap: 8px;
  }
  .bg-hero-carousel__title-wrap .bg-eyebrow {
    font-size: 10.5px !important;
    padding: 4px 9px !important;
    white-space: nowrap;
    letter-spacing: 0.06em;
  }
  .bg-hero-carousel__counter {
    white-space: nowrap;
    font-size: 11px;
  }
  .bg-hero-carousel__nav {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 20px;
  }

  /* Slide verticale: foto grande in alto, testi e CTA sotto */
  .bg-hero-slide {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }
  .bg-hero-slide__thumb {
    width: 100%;
    height: 190px;
    padding: 10px;
    background: #ffffff;
  }
  .bg-hero-slide__badge {
    top: 8px;
    left: 8px;
    font-size: 12px;
    padding: 3px 9px;
  }
  .bg-hero-slide__title {
    font-size: 15px;
    line-height: 1.3;
  }
  .bg-hero-slide__footer {
    gap: 10px;
    margin-top: 2px;
    align-items: flex-end;
  }
  .bg-hero-slide__price {
    font-size: 19px;
    min-width: 0;
  }
  .bg-hero-slide__price del {
    display: block;
    font-size: 12px;
    margin: 0 0 1px;
  }
  .bg-hero-slide__price .woocommerce-price-suffix {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
  }
  .bg-hero-slide__cta {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
    border-radius: 10px;
  }
  .bg-hero-carousel__dots {
    margin-top: 12px;
    gap: 4px;
  }
  .bg-hero-carousel__dot {
    width: 8px;
    height: 8px;
    margin: 6px 3px;
  }
  .bg-hero-carousel__dot.is-active {
    width: 22px;
  }

  /* Reparti: 2 colonne leggibili, nome intero + contatore sotto */
  .bg-hero-depts__head h2 {
    font-size: 16px !important;
  }
  .bg-quick-cats--visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .bg-quick-cat--visual {
    min-height: 54px;
    padding: 7px 8px !important;
    gap: 8px;
  }
  .bg-quick-cat__thumb {
    width: 38px;
    height: 38px;
  }
  .bg-quick-cat__name {
    font-size: 12.5px;
  }
}

@media (max-width: 360px) {
  .bg-hero-carousel__counter {
    display: none;
  }
  .bg-hero-slide__thumb {
    height: 165px;
  }
  .bg-quick-cat__thumb {
    width: 32px;
    height: 32px;
  }
  .bg-quick-cat__name {
    font-size: 12px;
  }
}

/* ==========================================================================
   CRO & CUSREV INCENTIVE STYLES (v1.3.8)
   ========================================================================== */
.bg-pdp-outofstock-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--bg-radius-md);
  padding: 16px 18px;
}
.bg-pdp-outofstock-box strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #991B1B;
  margin-bottom: 4px;
}
.bg-pdp-outofstock-box p {
  font-size: 13px;
  color: #7F1D1D;
  margin: 0 0 12px;
  line-height: 1.45;
}

.bg-pdp-oos-alternatives {
  margin-top: 14px;
  background: var(--bg-white);
  border: 1px solid #BBF7D0;
  border-radius: var(--bg-radius-md);
  padding: 14px 16px;
  box-shadow: var(--bg-shadow-xs);
}
.bg-pdp-oos-alternatives__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: #14532D;
}
.bg-pdp-oos-alternatives__head strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.bg-pdp-oos-alternatives__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bg-pdp-oos-alt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--bg-navy);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.bg-pdp-oos-alt-item:hover {
  border-color: var(--bg-green);
  background: var(--bg-white);
  box-shadow: var(--bg-shadow-sm);
  transform: translateY(-1px);
}
.bg-pdp-oos-alt-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}
.bg-pdp-oos-alt-item__info {
  flex: 1;
  min-width: 0;
}
.bg-pdp-oos-alt-item__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bg-navy);
  margin-bottom: 4px;
}
.bg-pdp-oos-alt-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bg-pdp-oos-alt-item__sku {
  font-family: var(--bg-font-mono);
  font-size: 11px;
  color: var(--bg-muted);
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 1px 6px;
}
.bg-pdp-oos-alt-item__price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--bg-navy);
}
.bg-pdp-oos-alt-item__cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg-green-soft);
  color: #15803D;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease;
}
.bg-pdp-oos-alt-item:hover .bg-pdp-oos-alt-item__cta {
  background: var(--bg-green);
  color: var(--bg-white);
}
@media (max-width: 575px) {
  .bg-pdp-oos-alt-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
  }
  .bg-pdp-oos-alt-item__sku {
    white-space: nowrap;
  }
  .bg-pdp-oos-alt-item__cta {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    padding: 6px 12px;
  }
}

/* Banner incentivo recensione (-5%) */
.bg-review-coupon-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FFF7ED 0%, var(--bg-orange-soft) 100%);
  border: 1px solid #FED7AA;
  border-radius: var(--bg-radius-md);
}
.bg-review-coupon-banner__badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-orange);
  color: var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(240, 83, 21, 0.25);
}
.bg-review-coupon-banner__pct {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.bg-review-coupon-banner__body strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--bg-navy);
  margin-bottom: 3px;
}
.bg-review-coupon-banner__body span {
  display: block;
  font-size: 12.5px;
  color: var(--bg-slate);
  line-height: 1.45;
}
@media (max-width: 575px) {
  .bg-review-coupon-banner {
    align-items: flex-start;
  }
  .bg-review-coupon-banner__badge {
    width: 44px;
    height: 44px;
  }
  .bg-review-coupon-banner__pct {
    font-size: 14px;
  }
}

.bg-cart-cross-sells__sub {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--bg-slate);
}
