/* ── Contador de fotos en tarjeta ── */
.menu-card-count {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.6);
    color: var(--white); font-size: 11px;
    padding: 3px 8px; border-radius: 10px;
    display: flex; align-items: center; gap: 4px;
}

/* ── Flechas del carrusel ── */
.modal-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); border: none;
    color: var(--white); font-size: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 2;
}
.modal-arrow:hover      { background: rgba(201,168,76,0.6); }
.modal-arrow-prev       { left: 12px; }
.modal-arrow-next       { right: 12px; }

/* ── Dots ── */
.modal-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 2;
}
.modal-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    transition: background 0.2s;
}
.modal-dot.active { background: var(--gold); }

/* ── "Ver más" en tarjeta ── */
.menu-card-more {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold); opacity: 0; transition: opacity 0.2s;
}
.menu-card:hover .menu-card-more { opacity: 1; }

/* ── Overlay ── */
.item-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.item-modal-overlay.open { opacity: 1; pointer-events: all; }

/* ── Modal ── */
.item-modal {
    background: #161616;
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 6px;
    max-width: 520px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.item-modal-overlay.open .item-modal { transform: translateY(0); }

/* ── Cerrar ── */
.item-modal-close {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,0.06); border: none;
    width: 32px; height: 32px; border-radius: 50%;
    color: var(--white-dim); font-size: 14px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s; z-index: 3;
}
.item-modal-close:hover { background: rgba(201,168,76,0.15); color: var(--gold); }

/* ── Imagen ── */
.item-modal-img-wrap {
    width: 100%; height: 280px;
    background: #111; overflow: hidden;
    border-radius: 6px 6px 0 0;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.item-modal-img {
    /*width: 100%;*/
    height: 100%;
    object-fit: cover;
    display: none;
    transition: opacity 0.3s;
}
.item-modal-img.loaded { display: block; }
.item-modal-emoji { font-size: 60px; }

/* ── Contenido ── */
.item-modal-body { padding: 28px 32px 36px; }
.item-modal-name {
    font-family: 'Scheherazade New', serif;
    font-size: 28px; font-weight: 700;
    color: var(--white); margin-bottom: 12px; line-height: 1.2;
}
.item-modal-desc {
    font-size: 15px; color: rgba(184,169,138,0.8);
    line-height: 1.7; margin-bottom: 24px;
}
.item-modal-price-wrap {
    display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.item-modal-price { font-size: 26px; font-weight: 700; color: var(--gold); }
.item-modal-old-price {
    font-size: 16px; color: rgba(184,169,138,0.4); display: none;
}
.item-modal-old-price.visible { display: inline; }
.item-modal-btn { width: 100%; justify-content: center; }

/* ── Mobile ── */
@media (max-width: 600px) {
    .item-modal-img-wrap { height: 220px; }
    .item-modal-body     { padding: 20px 20px 28px; }
    .item-modal-name     { font-size: 22px; }
}

/* ── RTL ── */
[dir="rtl"] .item-modal-close { right: auto; left: 14px; }
[dir="rtl"] .item-modal-body  { text-align: right; }
[dir="rtl"] .modal-arrow-prev { left: auto; right: 12px; }
[dir="rtl"] .modal-arrow-next { right: auto; left: 12px; }