/* =========================
   ANA İÇERİK – MENÜ SAYFASI
   ========================= */

main {
  padding: 18px 16px 40px;
}

@media (min-width: 960px) {
  main {
    padding: 24px 64px 60px;
  }
}

/* =========================
   KATEGORİ ŞERİTLERİ
   ========================= */

.category-list {
  max-width: 1180px;
  margin: 22px auto 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Her satır */
.category-row {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  min-height: 74px;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background-color: #10161B;
  background-size: cover;
  background-position: center center;
  color: #F2F4F5;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    filter var(--transition-med);
}

.category-row:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

/* İç overlay */
.category-row-overlay {
  position: relative;
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.category-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 10, 13, 0.96),
      rgba(6, 10, 13, 0.55),
      rgba(6, 10, 13, 0.18)
    ),
    radial-gradient(circle at left, rgba(110, 126, 135, 0.45), transparent 55%);
  z-index: 0;
}

.category-row-badge {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 4px;
}

.category-row-title {
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Sağdaki ok */
.category-row-arrow {
  position: relative;
  z-index: 1;
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 300;
  background: linear-gradient(90deg, transparent, rgba(3, 6, 9, 0.96));
}

/* =========================
   SEÇİLİ KATEGORİ ÜRÜNLERİ
   ========================= */

.category-products {
  max-width: 1180px;
  margin: 0 auto 40px;
}

.category-products-title {
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 12px 0 4px;
  color: var(--text-dark);
}

.category-products-note {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Ürün grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
  }
}

/* Ürün kartı */
.product-card {
  background: var(--bg-card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #101822;
}

.product-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform var(--transition-med);
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

/* Kart iç metin */
.product-card h3.product-title {
  margin: 12px 12px 2px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 12px 4px;
}

/* "yeni" etiketi */
.product-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #15181b;
}

/* Alerjen / özellik ikonları (küçük rozetler) */
.product-icon,
.modal-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 23, 42, 0.15);

  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  background-color: transparent !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Fiyat */
.product-price {
  margin: 6px 12px 12px;
  font-weight: 600;
  font-size: 14px;
}

/* =========================
   ALERJEN BÖLÜMÜ – TEMİZ ve DÜZGÜN
   ========================= */

.allergen-section {
  max-width: 1180px;
  margin: 44px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(61, 72, 80, 0.75);
  font-size: 13px;
}

.allergen-section h2 {
  margin-top: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.allergen-intro {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.allergen-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 40px;
}

.allergen-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   ALERJEN İKON
   =========================
   NOT:
   - background-image JS tarafından alerjen.json'daki "icon" değerinden atanır.
   - Bu CSS sadece boyut ve stil verir.
   ========================= */

.allergen-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;

  background-color: #151B20;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;

  box-shadow:
    0 0 0 2px #151B20,
    0 0 0 4px rgba(197, 167, 109, 0.8);
}

.allergen-label {
  font-size: 13px;
  color: #E3E6E8;
}

/* =========================
   RESPONSIVE – MENÜ
   ========================= */

@media (max-width: 640px) {
  .category-row {
    min-height: 68px;
  }

  .category-row-title {
    font-size: 14px;
  }

  .category-products-title {
    font-size: 16px;
  }

  .product-image {
    height: 180px;
  }
}
