/* ============================================
   MENU ITEM CARDS + SECTION HEADERS
   ============================================ */

.category-section        { display: none; }
.category-section.visible { display: block; }

/* ── Section title box ── */
.section-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7d7d1;
  border-radius: 1rem;
  padding: 10px 16px;
  margin: 0;
  box-shadow: 0 2px 12px rgba(232,197,191,0.35);
}

.section-title-fa {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.01em;
}

.section-title-en {
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  font-weight: 600;
  color: var(--concrete);
  letter-spacing: 0.04em;
  direction: ltr;
}

/* ── Section header (wraps title box) ── */
.cat-section-header {
  padding: 14px 0 10px;
}

/* ── Grid ── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 560px)  { .items-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px)  { .items-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .items-grid { grid-template-columns: repeat(5, 1fr); } }

/* ── Card — glassmorphism ── */
.item-card {
  position: relative;
  /* Solid-ish frosted look — no backdrop-filter (huge mobile-scroll win
     when many cards are on screen at once). */
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.07),
    inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
  animation: fadeUp 0.4s both;
}

.item-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.item-card:active { transform: scale(0.97); }

/* ── Image — square 1:1, floating inside card with padding ── */
.item-img-wrap {
    position: relative;
    margin: 0.75rem 0.75rem 0;
    width: calc(100% - 1.5rem);
    padding-top: calc(100% - 1.5rem);
    overflow: hidden;
    background: #edeae5;
    border-radius: 1.4rem;
}

.item-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.item-card:hover .item-img-wrap img { transform: scale(1.06); }

/* Shimmer skeleton — REMOVED */

.item-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--offwhite), #e8e4de);
}

/* ── Discount badge ── */
.badge-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: #fff;
  box-shadow: 0 2px 6px rgba(239,68,68,0.35);
  z-index: 2;
}

/* ── Body ── */
.item-body {
  padding: 10px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.item-name {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--black);
  letter-spacing: -0.01em;
  text-align: right;
}

.item-desc {
  font-size: clamp(0.65rem, 1.6vw, 0.72rem);
  color: var(--concrete);
  line-height: 1.45;
  flex: 1;
  text-align: right;
}

.item-price {
  margin-top: 4px;
  text-align: right;
}

.price-old {
  display: block;
  font-size: 0.68rem;
  color: #c4c2bd;
  text-decoration: line-through;
}

.price-new {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 900;
  color: var(--sage-dark);
}

.discount-chip {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-bottom: 3px;
}

/* ── Unavailable badge ── */
.badge-unavailable {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  color: #3a3a3a;
  box-shadow: 0 2px 12px rgba(0,0,0,0.22);
  z-index: 4;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ── Unavailable card — dark overlay, no hover/pointer ── */
.item-card--unavailable {
  cursor: default;
}

.item-card--unavailable:hover {
  transform: none;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.07),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.item-card--unavailable:active { transform: none; }

/* Dark overlay on the whole card */
.item-card--unavailable::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.52);
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}

.item-card--unavailable .item-img-wrap img {
  filter: grayscale(70%) brightness(0.7);
}
