
/* Regole dirette indipendenti dal body */
#belcando-filter-bar {
  display: block !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  margin: 15px 0 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

#belcando-filter-bar .belcando-quick-pills-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  margin-bottom: 10px !important;
}

#belcando-filter-bar .belcando-quick-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

#belcando-filter-bar .b-pill,
#belcando-filter-bar .b-format-pill {
  flex: 0 0 auto !important;
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  padding: 7px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease-in-out !important;
  outline: none !important;
  user-select: none !important;
}

#belcando-filter-bar .b-pill:hover,
#belcando-filter-bar .b-format-pill:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}

#belcando-filter-bar .b-pill.active,
#belcando-filter-bar .b-format-pill.active {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
}

#belcando-filter-bar .belcando-filter-status {
  margin-top: 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-align: right !important;
}

/* =============================================================
   BELCANDO MANUFACTURER PAGE: SCELTA RAPIDA + FORMATO (DESKTOP & MOBILE)
   ============================================================= */

/* Contenitore filtri principale */
.belcando-filter-container {
  display: block !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 15px 0 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.belcando-quick-pills-wrapper {
  margin-bottom: 4px;
}

.belcando-format-pills-wrapper {
  margin-top: 14px;
}

.belcando-quick-pills-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 10px;
}

/* Layout Desktop: riga orizzontale di bottoni a pillola */
.belcando-quick-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center;
}

.belcando-quick-pills .b-pill,
.belcando-quick-pills .b-format-pill {
  flex: 0 0 auto;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  outline: none;
  user-select: none;
}

.belcando-quick-pills .b-pill:hover,
.belcando-quick-pills .b-format-pill:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.belcando-quick-pills .b-pill.active,
.belcando-quick-pills .b-format-pill.active {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.belcando-filter-status {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-align: right;
  min-height: 16px;
}

/* -------------------------------------------------------------
   MOBILE LAYOUT (max-width: 767px):
   - Scelta rapida e formato su 2 file / 2 colonne
   - Scritte un po' piu' piccole
   - Griglia prodotti a 2 colonne
   - Allineamento badge "Spedizione Gratis" sotto il titolo
   ------------------------------------------------------------- */
@media (max-width: 767px) {
  .belcando-filter-container {
    padding: 10px 12px;
    margin: 10px 0 15px;
  }

  .belcando-quick-pills-label {
    font-size: 10.5px;
    margin-bottom: 8px;
  }

  /* Scelta rapida e formato a 2 colonne / 2 file */
  .belcando-quick-pills {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .belcando-quick-pills .b-pill,
  .belcando-quick-pills .b-format-pill {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 7px 6px !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    border-radius: 10px !important;
  }

  .belcando-format-pills-wrapper {
    margin-top: 12px;
  }

  /* Griglia prodotti mobile a 2 colonne */
  .tv-grid-list-all-wrapper {
    display: none !important;
  }
  #products .products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -4px !important;
    margin-right: -4px !important;
  }
  #products .products .product-miniature {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
  }
  .thumbnail-container {
    padding: 6px !important;
    border-radius: 8px !important;
    height: 100% !important;
  }
  .tvproduct-image img {
    max-height: 150px !important;
    object-fit: contain !important;
  }
  .tvproduct-cart-btn button {
    padding: 6px 8px !important;
    font-size: 11px !important;
    height: auto !important;
  }

  /* Spazio tra titolo su 2 righe e badge Spedizione Gratis */
  .tvproduct-info-box-wrapper .product-description > .tvproduct-name.product-title {
    display: block !important;
    height: auto !important;
    min-height: 30px !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 10px !important;
  }
  .tvproduct-info-box-wrapper .product-description > .tvproduct-name.product-title h6 {
    height: auto !important;
    max-height: 30px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
  .tvproduct-info-box-wrapper .pf-free-shipping-tag {
    position: relative !important;
    display: flex !important;
    clear: both !important;
    margin: 10px auto 6px !important;
    padding-top: 0 !important;
  }
}


/* Divisore tra Singoli e Multipack per Belcando */
.belcando-format-group-divider {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 22px 4px 14px !important;
  padding: 10px 16px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #dc2626 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  clear: both !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.belcando-format-group-divider .b-divider-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #0f172a !important;
}

.belcando-format-group-divider .b-divider-badge {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background: #e2e8f0 !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
}

@media (max-width: 767px) {
  .belcando-format-group-divider {
    margin: 16px 2px 10px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  .belcando-format-group-divider .b-divider-badge {
    font-size: 10px !important;
    padding: 2px 8px !important;
  }
}
