body {
  background: var(--background-color);
}

/* Sfondo della sezione contenuto */
section.content {
  background: #1e1f23;
  padding: 90px 150px;
  border-radius: 0 0 20px 20px;
}

/* Titolo principale */
.section-title {
  font-size: 44px;
  color: var(--white-color);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Descrizione principale */
.section-description {
  color: var(--description-color);
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* Titoli categorie */
.shop-category {
  font-size: 26px;
  color: var(--main-color);
  font-weight: 700;
  margin: 60px 0 20px;
  border-left: 4px solid var(--main-color);
  padding-left: 15px;
  text-transform: uppercase;
}

/* Card Container */
.shop-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.shop-card {
  position: relative;
  background-color: var(--stats-background);
  border-radius: 16px;
  padding: 25px 20px 40px; /* spazio extra in basso per il bottone */
  text-align: center;
  color: var(--white-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 183, 255, 0.15);
}

/* Bottone fisso in basso */
.shop-card a {
  position: static !important; /* togli posizione assoluta */
  display: inline-block;
  margin-top: 15px; /* spazio sopra il bottone */
  text-align: center;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
  z-index: auto !important;
}

.shop-card button {
  background: var(--main-color);
  color: var(--white-color);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 15px;
}

.shop-card button:hover {
  background: #2fa3d6;
}

/* Descrizione centrata su hover */
.shop-card .description {
  position: static; /* togli posizione assoluta */
  transform: none; /* niente traslazione */
  opacity: 1; /* sempre visibile */
  pointer-events: auto; /* per permettere eventuali interazioni */
  margin-top: 10px; /* un po’ di spazio sopra */
  max-width: 100%;
  text-align: center; /* o left se preferisci */
  color: var(--white-color);
  font-size: 15px;
  z-index: auto;
  transition: opacity 0.3s ease;
  
}

.shop-card:hover .description {
  opacity: 1; /* non serve più, ma puoi tenerlo */
}


/* Titolo prodotto */
.shop-card h4 {
  font-size: 24px; /* Ingrandito */
  font-weight: 800;
  margin: 10px 0;
  color: var(--white-color);
  transition: opacity 0.3s ease;
}

.shop-card .price {
  z-index: 1;
  position: relative;
  transition: opacity 0.3s ease;
}

/* Prezzo */
.shop-card .price {
  font-size: 20px;
  color: var(--green-color);
  margin: 15px 0;
  font-weight: 600;
}

/* Bottone */
.shop-card button {
  background: var(--main-color);
  color: var(--white-color);
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 15px;
  position: static !important;
  transform: none !important;
}

.shop-card button:hover {
  background: #2fa3d6;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 1rem;
}

.modal-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#confirm-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#confirm-button {
  background-color: #4CAF50;
  color: white;
}

#cancel-button {
  background-color: #f44336;
  color: white;
}
