/* ════════════════════════════
   test3.css — Menu Section (rescris)
════════════════════════════ */

.menu-section {
  padding: 4rem 2.5rem;
}

.section-title {
  font-family: 'Pacifico', cursive;
  font-size: 2.4rem;
  color: #ff2d9b;
  text-shadow: 0 0 30px rgba(255, 45, 155, 0.5);
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: 1px;
}

.category-block {
  margin-bottom: 4rem;
}

.category-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.7rem;
  color: #ff2d9b;
  text-shadow: 0 0 18px rgba(255, 45, 155, 0.45);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.category-title::before,
.category-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff2d9b);
}

.category-title::before {
  right: calc(50% + 120px);
  background: linear-gradient(90deg, transparent, #ff2d9b);
}

.category-title::after {
  left: calc(50% + 120px);
  background: linear-gradient(90deg, #ff2d9b, transparent);
}

/* ════════════════════════════
   CARDS GRID
════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-item {
  background: #141414;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,45,155,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.product-item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px #e91e8c,
    0 0 30px rgba(233, 30, 140, 0.2);
  border-color: #e91e8c;
}

/* ── Imagine: fundal întunecat, fără pătrat alb ── */
.product-item .img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1e1e1e;          /* ← FIX: întunecat în loc de alb */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

/* Gradient subtil jos pentru a blenda imaginea cu cardul */
.product-item .img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, #141414, transparent);
  pointer-events: none;
  z-index: 1;
}

.product-item:hover .img-wrap {
  transform: scale(1.05);
}

.product-item img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;       /* ← FIX: screen elimină fundalul gri/alb */
  transition: transform 0.4s ease;
  position: relative;
  z-index: 0;
}

/* Fallback emoji (fără imagine) */
.product-item .card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  background: linear-gradient(135deg, #2a0020, #1a001a);
}

/* ── Card body ── */
.product-item h3,
.product-item h4,
.product-item .card-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  padding: 0.9rem 1rem 0.25rem;
  margin: 0;
  text-align: left;
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}

.product-item p,
.product-item .card-desc {
  font-size: 0.75rem;
  color: #888;
  padding: 0 1rem;
  line-height: 1.55;
  flex: 1;
  margin: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.product-item .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 1.1rem;
  position: relative;
  z-index: 1;
}

.product-item .card-price,
.product-item span.price {
  font-weight: 900;
  font-size: 1.15rem;
  color: #ff2d9b;
  letter-spacing: 0.5px;
}

/* ── Buton adaugă în coș ── */
.product-item button,
.product-item .add-btn {
  background: linear-gradient(135deg, #e91e8c, #c0166e);
  border: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.45rem 1.05rem;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}

.product-item button:hover,
.product-item .add-btn:hover {
  background: linear-gradient(135deg, #ff2d9b, #e91e8c);
  box-shadow: 0 0 18px rgba(255, 45, 155, 0.55);
  transform: scale(1.05);
}

.add-to-cart-btn.disabled {
  background: #2a2a2a;
  cursor: not-allowed;
  pointer-events: none;
  color: #555;
}

/* ════════════════════════════
   ADD-ONS / SAUCES
════════════════════════════ */
.add-ons {
  background: #111;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.2rem;
}

.addons-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff2d9b;
  text-shadow: 0 0 12px rgba(255, 45, 155, 0.5);
  margin-bottom: 1.2rem;
  text-align: center;
}

.sauces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.75rem;
}

.sauce {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.sauce:hover {
  border-color: #e91e8c;
  box-shadow: 0 0 12px rgba(233, 30, 140, 0.25);
  background: #1c0014;
}

.sauce span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ccc;
  line-height: 1.3;
}

.sauce button {
  background: #e91e8c;
  border: none;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  padding: 0;
  line-height: 1;
}

.sauce button:hover {
  background: #ff2d9b;
  box-shadow: 0 0 14px rgba(255, 45, 155, 0.6);
  transform: scale(1.12) rotate(90deg);
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 768px) {
  .menu-section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .category-title::before,
  .category-title::after {
    display: none;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .sauces {
    grid-template-columns: 1fr 1fr;
  }

  .product-item h3,
  .product-item h4,
  .product-item .card-name {
    font-size: 0.88rem;
    padding: 0.7rem 0.75rem 0.2rem;
  }

  .product-item p,
  .product-item .card-desc {
    font-size: 0.7rem;
    padding: 0 0.75rem;
  }

  .product-item .card-footer {
    padding: 0.7rem 0.75rem 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .product-item .card-price,
  .product-item span.price {
    font-size: 1rem;
  }

  .product-item button,
  .product-item .add-btn {
    font-size: 0.65rem;
    padding: 0.4rem 0.85rem;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .sauces {
    grid-template-columns: 1fr;
  }
}
