/* --- SHOP MODERNO --- */

.shop-container {
  margin-top: 60px;
}

.shop-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  border: 2px solid #e5f4ad;
}

.shop-img {
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 15px;
}

.shop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.shop-desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}

.shop-price {
  font-size: 22px;
  font-weight: 700;
  color: #557a1b;
  margin-bottom: 15px;
}

.shop-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-bottom .item_quantity {
  width: 70px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.shop-btn {
  background-color: #6fae37;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: 0.3s ease;
}

.shop-btn:hover {
  background-color: #5f922f;
  transform: scale(1.05);
}
/* --- UTILITÀ SHOP (svuota carrello, checkout) --- */
.shop-utility {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.util-btn {
  
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  color: #2e4a1c;
  transition: 0.3s;
}

.util-btn:hover {
  
  text-decoration: none;
}


/* --- CARDS --- */
.shop-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.07);
  margin-bottom: 40px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid #e7e7e7;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* --- IMMAGINE PIÙ GRANDE --- */

.shop-img {
  width: 100%;
  aspect-ratio: 4/3; /* o 1/1, 16/9 a seconda del formato delle immagini */
  overflow: hidden;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* nessun taglio, mantiene le proporzioni */
}

/* Mobile: mantieni proporzioni senza tagliare */
@media (max-width: 768px) {
  .shop-img {
    height: auto;      /* altezza flessibile */
  }

  .shop-img img {
    width: 100%;
    height: auto;      /* mantieni proporzioni */
    object-fit: contain; /* niente taglio */
    display: block;
    margin: 0 auto;
  }
}

/* Titolo */
.shop-card h4 {
  font-weight: 700;
  color: #2f4d1e;
  margin-bottom: 5px;
}

/* Descrizione */
.shop-desc {
  font-size: 15px;
  opacity: .8;
}

/* Prezzo */
.shop-price {
  font-size: 20px;
  font-weight: 800;
  margin: 12px 0;
  color: #2f4d1e;
}

/* Bottom card */
.shop-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Pulsante acquista — verde */
.shop-btn {
 
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  transition: 0.3s;
}

.shop-btn:hover {
  background: #6ca832;
}

/* Quantità */
.item_quantity {
  width: 60px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

