.offerte-container {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
  font-family: Arial, sans-serif;
}

.header-offerte {
  background-color: #d32f2f;
  color: #fff;
  padding: 36px 24px;
  font-weight: 700;
  font-size: 2.8rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 40px;
  user-select: none;
}

.offerte-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.filtri-offerte {
  width: 280px;
  background: #f7f9fc;
  border: 1px solid #ccd6df;
  border-radius: 10px;
  padding: 25px 30px;
  font-size: 1rem;
  color: #555;
  box-shadow: 0 3px 10px rgba(204,213,223,0.5);
}

.filtri-offerte h3 {
  color: #d32f2f;
  border-bottom: 2px solid #d32f2f;
  padding-bottom: 6px;
  margin-bottom: 24px;
  font-weight: 700;
}

.filtri-offerte label {
  display: block;
  margin-bottom: 14px;
  font-weight: 500;
  user-select: none;
}

.filtri-offerte input {
  margin-right: 12px;
}

.offerte-griglia {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 32px;
}

.offerta-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 18px 22px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: text;
  transition: box-shadow 0.3s ease;
}

.offerta-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.badge-sconto {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #ff3b3b;
  color: white;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 0 14px rgba(255,59,59,0.9);
  user-select: none;
  z-index: 2;
}

.img-offerta {
  height: 160px;
  border-radius: 8px;
  object-fit: contain;
  margin-bottom: 20px;
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 8px;
  user-select: none;
}

.nome-prodotto {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  min-height: 58px;
  color: #222222;
}

.prezzo {
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.prezzo-originale {
  text-decoration: line-through;
  color: #a0a0a0;
  margin-right: 14px;
  user-select: text;
}

.prezzo-scontato {
  color: #27ae60;
  font-weight: 800;
  user-select: text;
}

.bottone-acquista {
  margin-top: auto;
  background-color: #fbc02d;
  color: #222222;
  font-weight: 800;
  text-align: center;
  padding: 14px 0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(251,192,45,0.8);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.bottone-acquista:hover,
.bottone-acquista:focus {
  background-color: #f9a825;
  box-shadow: 0 6px 15px rgba(249,168,37,0.95);
  outline: none;
  cursor: pointer;
}

@media(max-width: 900px) {
  .offerte-layout {
    flex-direction: column;
    align-items: center;
  }
  .filtri-offerte {
    width: 100%;
    margin-bottom: 40px;
  }
  .offerte-griglia {
    width: 100%;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  }
}
.page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 15px;
  background: #f7f9fc;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
  background-color: #d32f2f;
  color: #fff;
  box-shadow: 0 3px 8px rgba(211,47,47,0.8);
}
.page-numbers.prev,
.page-numbers.next {
  font-weight: 700;
}

ul.page-numbers {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
  text-align: center;
}
.bottone-acquista {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.bottone-acquista:hover,
.bottone-acquista:focus {
  transform: scale(1.05);
}
@media(max-width: 600px) {
  .offerte-griglia {
    grid-template-columns: 1fr !important;
  }
  .filtri-offerte {
    width: 100% !important;
    margin-bottom: 30px;
  }
  .offerte-layout {
    flex-direction: column;
    gap: 20px;
  }
}
