/*
Theme Name: BazardelFaidaTe_chiaro_bello
Theme URI: https://www.bazarfaidate.it
Author: BazardelFaidaTe
Author URI: https://www.bazarfaidate.it
Description: Tema ufficiale per BazardelFaidaTe - Ferramenta, utensili e attrezzi online. Layout moderno con macrocategorie e sottocategorie a slider orizzontale.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bazardelfaidate
Tags: e-commerce, woocommerce, two-columns, custom-menu, custom-logo, footer-widgets, theme-options
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --primary:     #ff7000;
  --primary-dark:#d95f00;
  --red:         #ff7000;
  --red-dark:    #d95f00;
  --yellow:      #F5A623;
  --black:       #0f172a;
  --dark:        #1e293b;
  --mid:         #334155;
  --gray:        #64748b;
  --light-gray:  #f8f8f8;
  --white:       #ffffff;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --radius:      12px;
  --shadow:      0 2px 16px rgba(0,0,0,0.06);
  --shadow-hover:0 8px 32px rgba(0,0,0,0.14);
  --container:   1280px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  font-family: 'Lexend', 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
}

/* ═══════════════════════════════════════════
   PROMO BANNER
═══════════════════════════════════════════ */
.promo-banner {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 9px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.promo-banner strong { font-weight: 700; }
.promo-banner a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
#site-header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* permette la seconda riga su mobile */
}

/* Logo — order 1 */
.site-logo {
  order: 1;
  flex-shrink: 0;
}
.site-logo a { display: inline-flex; align-items: center; text-decoration: none; }
.logo-mark { display: none; }
.logo-text { font-family: 'Lexend', sans-serif; font-weight: 900; font-size: 20px; color: var(--black); text-transform: uppercase; }
.site-logo .custom-logo-link { display: inline-flex; }
.site-logo .custom-logo { height: 54px; width: auto; max-width: 200px; object-fit: contain; display: block; }

/* Search — order 2 (desktop: centro, mobile: seconda riga) */
.header-search {
  order: 2;
  flex: 1;
  min-width: 0;
}
.header-search form {
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 10px;
  overflow: hidden;
  height: 48px;
}
.header-search input[type="search"] {
  flex: 1; border: none; outline: none; padding: 0 16px;
  font-size: 15px; font-family: 'Lexend', sans-serif; color: var(--text); background: #fff; min-width: 0;
}
.header-search input::placeholder { color: #aaa; }
.header-search button {
  background: var(--primary); border: none; color: #fff;
  padding: 0 18px; cursor: pointer; display: flex; align-items: center; flex-shrink: 0;
  transition: background 0.2s;
}
.header-search button:hover { background: var(--primary-dark); }
.header-search button .material-symbols-outlined { font-size: 22px; }

/* Actions — order 3 */
.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Icone desktop: icona + label verticale */
.btn-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--gray);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}
.btn-head:hover { color: var(--primary); text-decoration: none; }
.btn-head .material-symbols-outlined { font-size: 26px; }
.btn-head .btn-label { font-size: 10px; }
.btn-head .btn-icon { display: block; }

.cart-count {
  position: absolute; top: 2px; right: 4px;
  background: var(--primary); color: #fff; font-size: 9px; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════
   NAV BAR
═══════════════════════════════════════════ */
#main-nav {
  background: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  overflow: visible;
  background: var(--primary);
  border-radius: 6px;
}

/* ── Hamburger menu ── */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0 16px;
  height: 48px;
  color: #fff;
  cursor: pointer;
  margin-right: 4px;
  border-right: 1px solid rgba(255,255,255,0.18);
  transition: background 0.2s;
}
.nav-hamburger:hover {
  background: rgba(255,255,255,0.12);
}
.nav-hamburger .material-symbols-outlined {
  font-size: 26px;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner > ul {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav-inner ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  height: 48px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.nav-inner ul li a:hover {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
  color: #fff;
}
.nav-inner ul li.current-menu-item a {
  border-bottom-color: #fff;
  color: #fff;
}

/* ── Dropdown Categorie ── */
.nav-inner ul li.has-dropdown {
  position: relative;
}
.nav-inner ul li.has-dropdown > a .nav-arrow {
  font-size: 18px;
  transition: transform 0.2s;
  vertical-align: middle;
}
.nav-inner ul li.has-dropdown.open > a .nav-arrow {
  transform: rotate(180deg);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 230px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  flex-direction: column;
  padding: 6px 0;
}
.nav-inner ul li.has-dropdown.open .nav-dropdown {
  display: flex;
}
.nav-dropdown li {
  display: block;
}
.nav-dropdown li a {
  display: block !important;
  height: auto !important;
  padding: 9px 18px !important;
  color: var(--text) !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  border-bottom: none !important;
  white-space: nowrap;
}
.nav-dropdown li a:hover {
  background: var(--primary-light, #fff7f0) !important;
  color: var(--primary) !important;
}
.nav-dropdown li.current-menu-item a {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

/* ═══════════════════════════════════════════
   DRAWER HAMBURGER
═══════════════════════════════════════════ */
#nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#nav-drawer-backdrop.show { opacity: 1; }

#nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 24px rgba(0,0,0,0.18);
  z-index: 9999;
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#nav-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}
.drawer-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.drawer-close {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
}
.drawer-close:hover { background: rgba(255,255,255,0.15); }

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
}
.drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #1a1a1a);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.drawer-link:hover { background: #f5f5f5; color: var(--primary); }
.drawer-link .material-symbols-outlined { font-size: 22px; color: var(--primary); }
.drawer-toggle-label { flex: 1; }
.drawer-arrow {
  transition: transform 0.2s;
}
.drawer-collapsible.open .drawer-arrow { transform: rotate(180deg); }

.drawer-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
}
.drawer-collapsible.open .drawer-sublist { max-height: 1500px; }
.drawer-sublist li a {
  display: block;
  padding: 10px 20px 10px 54px;
  font-size: 14px;
  color: var(--text, #1a1a1a);
  text-decoration: none;
  border-bottom: 1px solid #ececec;
}
.drawer-sublist li:last-child a { border-bottom: 0; }
.drawer-sublist li a:hover { background: #fff; color: var(--primary); }

.drawer-section {
  margin-top: 18px;
  padding: 0 20px;
}
.drawer-section-title {
  margin: 0 0 8px;
  padding: 12px 0 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.drawer-section-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}
.drawer-section-list li a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: var(--text, #1a1a1a);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.drawer-section-list li:last-child a { border-bottom: 0; }
.drawer-section-list li a:hover { color: var(--primary); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.site-hero {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f172a;
  border-radius: 12px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.65;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.55) 55%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 48px;
}
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.site-hero h1 {
  font-family: 'Lexend', sans-serif;
  font-size: 58px;
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -1px;
  max-width: 600px;
}
.site-hero p.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════ */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}
.trust-item .t-icon { font-size: 22px; }
.trust-item strong { color: var(--black); }
.trust-sep { width: 1px; height: 28px; background: var(--border); }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 7px;
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(255,112,0,0.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217,43,43,0.45);
  text-decoration: none;
  color: #fff;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 1px solid #555;
  padding: 12px 24px;
  border-radius: 7px;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; color: #fff; }

/* ═══════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════ */
.section-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-hdr-left { display: flex; align-items: center; gap: 12px; }
.section-tag {
  display: none;
}
.section-hdr {
  border-left: 4px solid var(--primary);
  padding-left: 14px;
  margin-bottom: 22px;
}
.section-title {
  font-family: 'Lexend', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
.section-more {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
}
.section-more:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   CATEGORY BLOCKS  (macrocategoria + slider sottocategorie)
═══════════════════════════════════════════ */
.cat-blocks-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cat-block {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.cat-block:hover { box-shadow: var(--shadow-hover); }

.cat-block-inner {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 200px;
}

/* LEFT: macrocategory panel */
.cat-macro-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  overflow: hidden;
  text-decoration: none;
  min-height: 200px;
}
.cat-macro-panel .macro-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.cat-macro-panel:hover .macro-bg { transform: scale(1.07); }
.cat-macro-panel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.18) 100%);
}
.cat-macro-content { position: relative; z-index: 1; }
.cat-macro-icon { font-size: 26px; display: block; margin-bottom: 6px; }
.cat-macro-panel h2,
.cat-macro-content h2 {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.cat-macro-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 8px;
}
.cat-macro-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* RIGHT: subcategory slider */
.cat-sub-panel {
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.sub-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
  scroll-behavior: smooth;
}
.sub-slider::-webkit-scrollbar { display: none; }

.sub-card {
  flex: 0 0 160px;
  height: 160px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--light-gray);
}
.sub-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: translateY(-3px);
  text-decoration: none;
}
.sub-card-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sub-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.sub-card-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.sub-card-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  background: rgba(255,255,255,0.92);
  line-height: 1.3;
}
.sub-card-count {
  position: absolute;
  bottom: 0; right: 0;
  background: var(--black);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px 0 12px 0;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}
.slider-btn {
  width: 28px; height: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray);
  transition: border-color 0.2s, color 0.2s;
}
.slider-btn:hover { border-color: var(--red); color: var(--red); }

/* ═══════════════════════════════════════════
   PROMO GRID
═══════════════════════════════════════════ */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.promo-tile {
  border-radius: 10px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.promo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); text-decoration: none; }
.promo-tile.red  { background: linear-gradient(135deg,#c0392b,#7d0000); color:#fff; }
.promo-tile.dark { background: linear-gradient(135deg,#1a1a2e,#16213e); color:#fff; }
.promo-tile.amber{ background: linear-gradient(135deg,#F5A623,#d4860a); color:#fff; }
.promo-tile.light{ background: linear-gradient(135deg,#ecf0f1,#dfe6e9); color:var(--text); }
.promo-tile::before {
  content: attr(data-icon);
  position: absolute;
  top: -5px; right: 8px;
  font-size: 80px;
  opacity: 0.1;
  pointer-events: none;
}
.promo-tile h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 4px;
}
.promo-tile p { font-size: 12px; opacity: 0.85; }
.promo-tile .tile-cta {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════
   PRODUCTS GRID
═══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
  text-decoration: none;
  color: var(--text);
}
.product-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-3px);
  border-color: #ccc;
  text-decoration: none;
}
.prod-img-wrap {
  background: #f8f8f8;
  height: 155px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.prod-img-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s;
}
.product-card:hover .prod-img-wrap img { transform: scale(1.06); }
.prod-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.prod-badge.in-stock { background: #22a05a; }
.prod-info { padding: 11px 13px 13px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.prod-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}
.prod-price small { font-family: 'Barlow',sans-serif; font-size: 12px; color: #aaa; font-weight: 400; }
.btn-add-cart {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--black);
  color: #fff;
  border: none; border-radius: 5px;
  padding: 9px; font-size: 12px; font-weight: 600;
  cursor: pointer; width: 100%;
  font-family: 'Barlow', sans-serif;
  transition: background 0.2s;
  margin-top: 8px;
  text-decoration: none;
}
.btn-add-cart:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ═══════════════════════════════════════════
   BRANDS STRIP
═══════════════════════════════════════════ */
.brands-strip {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px 28px;
}
.brands-strip-title {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.brands-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #ccc;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
}
.brand-name:hover { color: var(--red); }

/* ═══════════════════════════════════════════
   WHY US
═══════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.why-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.why-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

/* Icona tonda con sfondo colorato */
.why-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.why-icon .material-symbols-outlined { font-size: 28px; }
.why-icon--orange { background: #fff0e6; color: var(--primary); }
.why-icon--yellow { background: #fff8e1; color: #f0a500; }
.why-icon--blue   { background: #e8f4fd; color: #3b9dd4; }

.why-card h3 { font-size: 17px; font-weight: 700; color: var(--black); }
.why-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════ */
.newsletter-wrap {
  background: linear-gradient(135deg,#0d0d0d,#262626);
  border-radius: 12px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-wrap::after {
  content: '✉';
  position: absolute; right: 28px; top: 50%;
  transform: translateY(-50%);
  font-size: 130px; opacity: 0.04;
  pointer-events: none;
}
.content-area .newsletter-wrap h2 {
  font-size: 30px;
  color: #ffffff;
  border-left: 0;
  padding-left: 0;
  margin: 0;
  line-height: 1.25;
}
.content-area .newsletter-wrap h2 span { color: var(--primary); }
.content-area .newsletter-wrap p {
  color: #d4d4d4;
  font-size: 15px;
  margin-top: 10px;
}
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-input {
  flex: 1;
  background: #222;
  border: 1px solid #444;
  border-radius: 7px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.nl-input::placeholder { color: #555; }
.nl-input:focus { border-color: var(--red); }
.nl-note { font-size: 12px; color: #555; margin-top: 8px; }

/* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
#site-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 24px 56px;
}
.content-area > * + * { margin-top: 36px; }

/* ═══════════════════════════════════════════
   PAGINA CONTATTACI
═══════════════════════════════════════════ */
.contact-page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.contact-icon {
  font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  margin: 0 0 6px;
  font-weight: 600;
}
.contact-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.contact-card a:hover { text-decoration: underline; }
.contact-map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
}
.contact-hours-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}
.contact-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.contact-hours-table th,
.contact-hours-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.contact-hours-table th {
  font-weight: 600;
  width: 120px;
  color: var(--text);
  white-space: nowrap;
}
.contact-hours-table td { color: #444; }
.contact-hours-table tr:last-child th,
.contact-hours-table tr:last-child td { border-bottom: none; }
.contact-hours-table tr:hover td,
.contact-hours-table tr:hover th { background: #fafafa; }
.hours-note {
  display: block;
  font-size: 12px;
  color: #f97316;
  font-style: normal;
  margin-top: 2px;
}
.hours-closed th,
.hours-closed td { color: #bbb !important; }
.contact-note-box {
  margin-top: 20px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}
.contact-note-box a { color: #c2410c; font-weight: 600; }
@media (max-width: 680px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#site-footer {
  background: var(--black);
  color: #777;
  border-top: 3px solid var(--red);
  padding: 44px 24px 22px;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 36px;
}
.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-brand .footer-logo .logo-mark { display: none; }
.footer-brand .footer-logo .logo-text {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  line-height: 1.2;
  text-transform: none;
}
.footer-brand .footer-logo .logo-text small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #999;
  text-transform: none;
  letter-spacing: 0;
}
.footer-brand p { font-size: 13px; color: #555; line-height: 1.6; max-width: 260px; }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #555;
  font-size: 13px;
  padding: 3px 0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #444;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #444; text-decoration: none; }
.footer-bottom a:hover { color: var(--red); }

/* ═══════════════════════════════════════════
   WOOCOMMERCE OVERRIDES
═══════════════════════════════════════════ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error { border-top-color: var(--red); }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  transition: background 0.2s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--red-dark); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before { color: var(--yellow); }
.woocommerce span.onsale { background-color: var(--red); border-radius: 4px; }

/* ═══════════════════════════════════════════
   PAGINA CATEGORIA PRODOTTO
═══════════════════════════════════════════ */
.bzft-cat-page { padding-top: 24px; padding-bottom: 56px; }

/* Intestazione */
.bzft-cat-head  { margin-bottom: 20px; }
.bzft-cat-title { font-size: 26px; font-weight: 800; margin: 4px 0 6px; }
.bzft-cat-desc  { font-size: 14px; color: var(--text-muted); margin: 0; max-width: 640px; }

/* ══════════════════════════════════════════
   STRIP SOTTOCATEGORIE (scroll orizzontale)
══════════════════════════════════════════ */
.bzft-subcat-strip {
  margin: 8px 0 22px;
  position: relative;
}
.bzft-subcat-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #eee;
}
.bzft-subcat-scroll::-webkit-scrollbar { height: 6px; }
.bzft-subcat-scroll::-webkit-scrollbar-track { background: #eee; border-radius: 3px; }
.bzft-subcat-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.bzft-subcat-card {
  position: relative;
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all .18s ease;
  scroll-snap-align: start;
}

/* ═══════════════════════════════════════════
   BADGE "AI" — immagini di categoria generate con IA
═══════════════════════════════════════════ */
.bzft-ai-badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d4703e;
  color: #fff;
  font-family: 'Lexend', 'Segoe UI', sans-serif;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  z-index: 2;
  pointer-events: none;
}
.bzft-ai-badge::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.92);
  z-index: -1;
}
.bzft-ai-badge--macro   { width: 34px; height: 34px; font-size: 12px;   top: 10px; right: 10px; }
.bzft-ai-badge--subcard { width: 30px; height: 30px; font-size: 10.5px; top: 8px;  right: 8px; }
.bzft-ai-badge--chip    { width: 22px; height: 22px; font-size: 8px;    top: 7px;  right: 7px; }
/* varianti "in linea" (non absolute): usate nella label testuale e nella pagina Uso dell'AI */
.bzft-ai-badge--mini   { position: relative; top: auto; right: auto; width: 16px; height: 16px; font-size: 6px;  flex: none; }
.bzft-ai-badge--legend { position: relative; top: auto; right: auto; width: 34px; height: 34px; font-size: 12px; flex: none; }

/* ── Label testuale "contenuto redatto con supporto AI" (prodotti, categorie, blog) ── */
.bzft-ai-text-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: #faf6f2;
  border: 1px solid #f0ddd0;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 14px 0;
}
.bzft-ai-text-label a { color: #d4703e; font-weight: 600; }

/* ── Legenda badge immagini nella pagina "Uso dell'AI" ── */
.bzft-ai-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #faf6f2;
  border: 1px solid #f0ddd0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}
.bzft-ai-legend span:last-child { font-size: 14px; color: var(--text); }
.bzft-subcat-card:hover {
  border-color: var(--primary);
  background: #fff7f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,112,0,.12);
  text-decoration: none;
}
.bzft-subcat-card.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.bzft-subcat-card.is-active .bzft-subcat-count { color: rgba(255,255,255,.85); }
.bzft-subcat-card.is-active .bzft-subcat-icon-wrap .material-symbols-outlined { color: #fff; }

.bzft-subcat-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.bzft-subcat-icon-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.bzft-subcat-icon-wrap .material-symbols-outlined {
  font-size: 44px;
  color: var(--primary);
}
.bzft-subcat-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bzft-subcat-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   FILTRO PREZZO (slider doppio)
══════════════════════════════════════════ */
.bzft-price-block {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px 16px;
  margin-bottom: 24px;
}
.bzft-price-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bzft-price-block-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bzft-price-block-title .material-symbols-outlined { font-size: 20px; color: var(--primary); }
.bzft-price-display {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.bzft-price-display .bzft-val-min,
.bzft-price-display .bzft-val-max { color: var(--primary); }
.bzft-price-display .bzft-val-sep { color: var(--text-muted); padding: 0 2px; }

/* Slider */
.bzft-range {
  position: relative;
  height: 36px;
  margin: 6px 8px 4px;
}
.bzft-range-track {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  transform: translateY(-50%);
}
.bzft-range-fill {
  position: absolute;
  top: 50%;
  height: 6px;
  background: var(--primary);
  border-radius: 3px;
  transform: translateY(-50%);
}
.bzft-range-input {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.bzft-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.bzft-range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.bzft-range-input::-webkit-slider-runnable-track { background: transparent; }
.bzft-range-input::-moz-range-track { background: transparent; }
.bzft-range-input:active::-webkit-slider-thumb { cursor: grabbing; }

.bzft-price-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.bzft-price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bzft-price-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
}
.bzft-price-input-wrap .bzft-price-symbol { color: var(--text-muted); font-size: 13px; }
.bzft-price-num {
  border: 0;
  outline: none;
  width: 64px;
  font: inherit;
  font-size: 13px;
  background: transparent;
  -moz-appearance: textfield;
}
.bzft-price-num::-webkit-inner-spin-button,
.bzft-price-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bzft-price-sep { color: var(--text-muted); font-size: 13px; padding: 0 2px; }
.bzft-price-actions { display: flex; gap: 8px; }
.bzft-btn-primary {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 9px 18px;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.bzft-btn-primary:hover { background: #e55f00; }
.bzft-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 0;
  padding: 9px 14px;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
}
.bzft-btn-ghost:hover { color: var(--primary); text-decoration: none; }

/* ── Topbar conteggio + ordinamento ─────────────────────────── */
.bzft-shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.bzft-shop-topbar .woocommerce-result-count { font-size: 13px; color: var(--text-muted); margin: 0; }
.bzft-shop-topbar .woocommerce-ordering select {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

/* ── Griglia prodotti: 5 col desktop ────────────────────────── */
.bzft-prod-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Card prodotto ───────────────────────────────────────────── */
li.bzft-prod-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.15s;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}
li.bzft-prod-card:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.bzft-prod-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: var(--text);
}
.bzft-prod-link:hover { text-decoration: none; color: var(--text); }

.bzft-prod-img-wrap {
  position: relative;
  background: var(--light-gray);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.bzft-prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.28s ease;
}
li.bzft-prod-card:hover .bzft-prod-img-wrap img { transform: scale(1.06); }

.bzft-prod-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  z-index: 1;
}

.bzft-prod-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px 6px;
  flex: 1;
}
.bzft-prod-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bzft-prod-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.2;
}
.bzft-prod-price del { color: var(--gray); font-size: 13px; margin-right: 3px; font-weight: 400; }
.bzft-prod-price ins { text-decoration: none; }

.bzft-prod-atc {
  padding: 0 8px 9px;
}
.bzft-prod-atc .button,
.bzft-prod-atc a.button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 7px 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  background: var(--primary);
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.2px;
}
.bzft-prod-atc .button:hover { background: var(--primary-dark); text-decoration: none; }
.bzft-prod-atc .added_to_cart { display: none; } /* nasconde "Visualizza carrello" */
.bzft-prod-atc { display: none; } /* pulsante solo nel dettaglio prodotto */

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bzft-prod-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .bzft-subcat-card { flex: 0 0 120px; padding: 12px 8px 10px; }
  .bzft-subcat-icon-wrap { width: 52px; height: 52px; }
  .bzft-subcat-icon-wrap .material-symbols-outlined { font-size: 36px; }
  .bzft-price-block { padding: 14px 16px; }
  .bzft-price-foot { flex-direction: column; align-items: stretch; }
  .bzft-price-inputs { justify-content: space-between; }
  .bzft-price-actions { justify-content: flex-end; }
}
@media (max-width: 768px) {
  .bzft-prod-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .bzft-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bzft-price-num { width: 56px; }
}

/* ── ul.products (related, upsell, ricerca) = stessa griglia di bzft-prod-grid ── */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 14px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Rimuovi stili WooCommerce che rompono la griglia */
ul.products li.bzft-prod-card,
ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  clear: none !important;
}
/* Sezione "Prodotti correlati" e "Potrebbero interessarti" */
.related.products,
.upsells.products,
.woocommerce-result-count + ul.products,
.related > ul.products,
.upsells > ul.products {
  margin-top: 0 !important;
}
.related > h2,
.upsells > h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text);
}
/* Pagina risultati ricerca: contenitore */
.woocommerce-page .content-area ul.products,
.search-results ul.products {
  margin-top: 1rem !important;
}

/* ── Responsive ul.products ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  ul.products { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 768px) {
  ul.products { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
}

/* Immagine prodotto singolo: altezza massima fissa, oggetto centrato */
.woocommerce-product-gallery__image {
  max-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woocommerce-product-gallery__image img {
  max-height: 480px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

to   { opacity:1; transform: translateY(0); }
}
.cat-block { animation: fadeUp 0.5s ease both; }
.cat-block:nth-child(1){animation-delay:.05s}
.cat-block:nth-child(2){animation-delay:.10s}
.cat-block:nth-child(3){animation-delay:.15s}
.cat-block:nth-child(4){animation-delay:.20s}
.cat-block:nth-child(5){animation-delay:.25s}
.cat-block:nth-child(6){animation-delay:.30s}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet e mobile: header a 2 righe */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  /* Header: più alto per 2 righe */
  .header-inner {
    height: auto;
    padding: 12px 16px;
    gap: 10px;
    align-items: center;
  }

  /* Riga 1: Logo (sinistra) + Azioni (destra) */
  .site-logo {
    order: 1;
    flex: 1 1 auto; /* cresce per spingere le azioni a destra */
  }
  .header-actions {
    order: 2;
    flex-shrink: 0;
  }

  /* Riga 2: Ricerca — va a capo e occupa tutta la larghezza */
  .header-search {
    order: 3;
    flex: 0 0 100%; /* occupa tutta la larghezza → va a capo */
    width: 100%;
  }
  .header-search form { height: 44px; }

  /* Logo */
  .site-logo .custom-logo { height: 40px; }

  /* Bottoni mobile: solo testo, senza icona, stile CTA compatto */
  .btn-head {
    flex-direction: row;
    gap: 0;
    padding: 8px 14px;
    background: var(--light-gray);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    border: 1px solid var(--border);
  }
  .btn-head:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
  .btn-head .material-symbols-outlined { display: none; } /* nasconde icona */
  .btn-head .btn-label { font-size: 13px; display: block; }
  .btn-head.btn-cart .btn-label::before { content: none; }
  .cart-count { display: none; } /* il numero è ridondante con il testo */

  /* Nav */
  #main-nav { overflow: visible; }
  .nav-inner { overflow: visible; }
  .nav-inner > ul { flex-wrap: nowrap; }

  /* Contenuto */
  #site-main { padding: 12px 12px 40px; }
  .content-area > * + * { margin-top: 20px; }
  .cat-block-inner { grid-template-columns: 1fr; }
  .cat-macro-panel { min-height: 140px; }
  .newsletter-wrap { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn-primary { width: 100%; justify-content: center; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-sep { display: none; }
  .site-hero { height: auto; min-height: 260px; padding: 32px 0; border-radius: 8px; }
  .site-hero h1 { font-size: 30px; }
  .hero-content { padding: 0 20px; }
  .site-hero p.hero-sub { font-size: 14px; }
}

@media (max-width: 400px) {
  .header-inner { padding: 10px 12px; }
  .btn-head { padding: 7px 10px; font-size: 12px; }
  .site-logo .custom-logo { height: 34px; }
  .site-hero h1 { font-size: 24px; }
}

/* Animazioni */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(22px); }
  to   { opacity:1; transform: translateY(0); }
}
.cat-block { animation: fadeUp 0.5s ease both; }
.cat-block:nth-child(1){animation-delay:.05s}
.cat-block:nth-child(2){animation-delay:.10s}
.cat-block:nth-child(3){animation-delay:.15s}
.cat-block:nth-child(4){animation-delay:.20s}
.cat-block:nth-child(5){animation-delay:.25s}
.cat-block:nth-child(6){animation-delay:.30s}

/* ═══════════════════════════════════════════
   CLP – Sicurezza prodotti (Reg. UE 1272/2008)
═══════════════════════════════════════════ */

.bzft-clp-section {
  padding: 1.5rem 0;
}
.bzft-clp-intro {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: .9rem;
}

/* Avvertenza (Attenzione / Pericolo) */
.bzft-clp-avvertenza {
  display: inline-block;
  padding: .45rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .06em;
  margin-bottom: 1.5rem;
}
.bzft-clp-avv--pericolo {
  background: #fee2e2;
  color: #dc2626;
  border: 2px solid #dc2626;
}
.bzft-clp-avv--attenzione {
  background: #fef3c7;
  color: #b45309;
  border: 2px solid #d97706;
}

/* Blocchi interni */
.bzft-clp-block {
  margin-bottom: 1.75rem;
}
.bzft-clp-block h4 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 1px solid var(--border);
  padding-bottom: .35rem;
  margin-bottom: .75rem;
}

/* Pittogrammi GHS (rombo rosso stile CLP) */
.bzft-clp-pittos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.bzft-clp-pitto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 78px;
}
.bzft-clp-pitto-diamond {
  width: 52px;
  height: 52px;
  background: #fff;
  border: 3px solid #dc2626;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.bzft-clp-pitto-diamond span {
  transform: rotate(-45deg);
  font-size: .6rem;
  font-weight: 800;
  color: #dc2626;
  line-height: 1.1;
  text-align: center;
}
.bzft-clp-pitto-label {
  font-size: .68rem;
  color: var(--gray);
  line-height: 1.2;
}

/* Liste frasi H e P */
.bzft-clp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bzft-clp-list li {
  padding: .35rem 0 .35rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  color: var(--text);
}
.bzft-clp-list li:last-child {
  border-bottom: none;
}
.bzft-clp-list--h li::before {
  content: 'H';
  color: #dc2626;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: .35rem;
}
.bzft-clp-list--p li::before {
  content: 'P';
  color: #2563eb;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: .35rem;
}
.bzft-clp-text {
  font-size: .9rem;
  color: var(--text);
  margin: 0;
}

/* Link SDS */
.bzft-clp-sds-link {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
}
.bzft-clp-sds-link:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

/* Disclaimer */
.bzft-clp-disclaimer {
  margin-top: 1.5rem;
  font-size: .78rem;
  color: var(--text-muted);
  padding: .7rem .9rem;
  background: var(--light-gray);
  border-radius: 6px;
  border-left: 3px solid var(--border);
  line-height: 1.5;
}

/* ── TABELLE NEI POST DEL BLOG ─────────────────────────────────────────── */
.content-area table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.content-area table thead tr {
  background: var(--primary);
  color: #fff;
}
.content-area table th {
  padding: .65rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .02em;
}
.content-area table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.content-area table tbody tr:last-child td {
  border-bottom: none;
}
.content-area table tbody tr:nth-child(even) {
  background: var(--light-gray);
}
.content-area table tbody tr:hover {
  background: #f0f4ff;
}

/* ── ARTICOLO BLOG: LAYOUT E TIPOGRAFIA ────────────────────────────────── */
.content-area h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 .6rem;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: .75rem;
}
.content-area h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 .4rem;
  color: var(--primary-dark, var(--primary));
}
.content-area p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--text);
}

/* ── SCHEDA SPECIFICHE TECNICHE ────────────────────────────────────────── */
.bazar-specs-tab {
  padding: 1rem 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text);
}
.bazar-specs-tab h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 .5rem;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: .75rem;
}
.bazar-specs-tab h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.2rem 0 .35rem;
  color: var(--primary-dark, var(--primary));
}
.bazar-specs-tab p  { margin: 0 0 .75rem; }
.bazar-specs-tab ul { padding-left: 1.25rem; margin: 0 0 .75rem; }
.bazar-specs-tab li { margin-bottom: .3rem; }

.bazar-specs-tab table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .88rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.bazar-specs-tab table thead tr { background: var(--primary); color: #fff; }
.bazar-specs-tab table th {
  padding: .6rem .9rem;
  text-align: left;
  font-weight: 600;
  font-size: .83rem;
}
.bazar-specs-tab table td {
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.bazar-specs-tab table tbody tr:last-child td { border-bottom: none; }
.bazar-specs-tab table tbody tr:nth-child(even) { background: var(--light-gray); }
.bazar-specs-tab table tbody tr:hover { background: #f0f4ff; }

/* Evidenzia la riga del prodotto corrente nella tabella comparativa */
.bazar-specs-tab table tr.is-current td {
  background: #eef4ff;
  font-weight: 600;
}

/* Scroll orizzontale tabella su mobile */
@media (max-width: 640px) {
  .content-area table,
  .bazar-specs-tab table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .bzft-clp-pittos { gap: .75rem; }
  .bzft-clp-pitto  { width: 64px; }
  .bzft-clp-pitto-diamond { width: 44px; height: 44px; }
}