/* ----------- BASE ----------- */
html, body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #ff2ea6 !important;
    color: #333;
    margin: 0;
 	padding: 0;
	box-sizing: border-box;

}

/* ----------- TITOLI ----------- */
h2 {
    margin-top: 40px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    font-size: 22px;
}

/* ----------- FILTRI ----------- */
.category-filters {
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.1s;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-tag:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.filter-tag.active {
    background-color: #d32f2f;
    color: white;
    border-color: #b71c1c;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ----------- GRIGLIA PRODOTTI ----------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ----------- SINGOLO PRODOTTO ----------- */
.product-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background: #ffffff;
    transition: box-shadow 0.2s;
}

.product-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-item h3 {
    font-size: 14px;
    overflow: hidden;
    color: #000;          /* eredita il colore del testo normale */
    text-decoration: none;   /* rimuove sottolineatura */
    font-weight: bold;       /* enfasi sul testo */    
}
/* ----------- PREZZI ----------- */
.prezzo-barrato {
    text-decoration: line-through;
    color: #999;
    margin: 0;
    font-size: 13px;
}

.prezzo-attuale {
    color: #c00;
    font-weight: bold;
    margin: 0;
    font-size: 24px;
    padding-top: 10px;
}
.hero-section {
    background: #0d0d0d;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.hero-section h1 {
    font-size: 40px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
}

.hero-section .subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}
.price-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.price-btn {
  background-color: #fff;
  color: #fff; /* rosa vivo o richiamare un colore del banner */
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  font-size: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 0.75rem 2rem; /* aumenta lo spazio interno */
  min-width: 80px; /* larghezza minima uniforme */
  display: inline-block;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
}

.btn-5 { background-color: #2ecc71; }
.btn-10 { background-color: #3498db; }
.btn-15 { background-color: #f39c12; }
.btn-25 { background-color: #e74c3c; }

.price-btn:hover {
  background-color: #ffe600;
  color: #000;
  border-color: #ffe600;
  transform: scale(1.05);
}
.hero-image-only {
    width: 100%;
    height: 500px; /* Aggiunto! Puoi regolare l'altezza */
    background: url('https://www.babychicstore.it/fuori-tutto/img/hero-desk.jpg') center/cover no-repeat;
    border-radius: 0;
}

/* Immagine ottimizzata per schermi piccoli */
@media (max-width: 768px) {
  .hero-image-only {
    background: url('https://www.babychicstore.it/fuori-tutto/img/hero-mobile.jpg') center center / cover no-repeat;
    height: 200px; /* già presente, va bene così */
  }
}
/* Sezione testuale sotto */
.promo-text-section {
  background-color: #ff2ea6; /* Colore di sfondo identico a quello dell'immagine */
  padding: 20px;
  margin: 0;
  text-align: center;
  width: 100vw; /* larghezza intera */
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
}
.promo-text-section h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.promo-text-section .subtitle {
  font-size: 24px;
  color: #fff;
  margin-bottom: 1.5rem;
}
.price-buttons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.price-box {
    background: white;
    color: #333;
    text-decoration: none;
    padding: 20px 25px;
    border-radius: 12px;
    text-align: center;
    width: 120px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.price-box span {
    font-size: 28px;
    display: block;
    margin-bottom: 5px;
}

.price-box:hover {
    transform: scale(1.05);
}
.promo-product-section {
  background-color: #ffffff;
  padding: 2rem 1rem;
  margin: 0;
}
@media (max-width: 480px) {
  .price-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .subtitle {
    font-size: 1rem;
    text-align: center;
  }
}
/* Pulsante mostrato solo su mobile */
.toggle-filters-btn {
  display: none;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .toggle-filters-btn {
    display: inline-block;
  }

  .category-filters {
    display: none;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }

  .category-filters.visible {
    display: flex;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .toggle-filters-btn {
    display: none !important;
  }

  .category-filters {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }
  .product-item a h3 {
  all: unset;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  padding-top: 10px;
}

.product-item a h3:hover {
  color: #d32f2f;
  text-decoration: none !important;
}
.bottom-announcement {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ff2ea6; /* rosso acceso */
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
	}
}  
@media (max-width: 767px) {
  .bottom-announcement {
    font-size: 14px;
    padding: 10px;
    display: block !important;    
  }
}
/* --- badge quantità --- */
.img-wrapper{
    position:relative;
    display:inline-block;      /* l’ancora diventa “box” */
}
.img-wrapper img{display:block;}   /* l’immagine occupa tutto il box */

.stock-badge{
    position:absolute;
    top:6px; right:6px;
    background:#e74c3c;
    color:#fff;
    font-size:15px;
    font-weight:700;
    padding:2px 6px;
    border-radius:12px;
    box-shadow:0 1px 3px rgba(0,0,0,.25);
    z-index:2;
}
/* badge quantità = 1  --------------------*/
.last-badge{
  position:absolute; top:6px; right:6px;
  background:#000;              /* nero   */
  color:#fff;
  font-size:15px; font-weight:700;
  padding:2px 6px; border-radius:12px;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
  z-index:2;
}