/* =========================================================
   ELYURDI HOTEL — RESTAURANT MENU
   Premium / Boutique Hotel Style
   ========================================================= */

.elo-restaurant-menu {
    --elo-bg: #f7f4ee;
    --elo-card: #fffdf9;
    --elo-text: #292722;
    --elo-muted: #817d73;
    --elo-gold: #b18a4a;
    --elo-gold-dark: #8f6c35;
    --elo-border: rgba(74, 61, 40, 0.12);
    --elo-radius: 18px;

    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(10px, 2vw, 28px) 0 50px;
    color: var(--elo-text);
    font-family: "Vazirmatn", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
    direction: rtl;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.elo-restaurant-category {
    margin-bottom: clamp(40px, 6vw, 70px);
}


/* ---------- Category Header ---------- */

.elo-restaurant-category-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 25px;
    padding: 0 4px 18px;

    border-bottom: 1px solid var(--elo-border);
}


/* Decorative gold line */

.elo-restaurant-category-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;

    width: 72px;
    height: 2px;

    background: var(--elo-gold);
}


/* Category image */

.elo-restaurant-category-image {
    width: 68px;
    height: 68px;

    flex: 0 0 68px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #fff;
    box-shadow:
        0 5px 18px rgba(44, 35, 22, 0.12),
        0 0 0 1px rgba(177, 138, 74, 0.2);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.elo-restaurant-category-header:hover .elo-restaurant-category-image {
    transform: scale(1.04);
    box-shadow:
        0 8px 25px rgba(44, 35, 22, 0.16),
        0 0 0 1px rgba(177, 138, 74, 0.35);
}


/* Category text */

.elo-restaurant-category-name {
    margin: 0;

    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.4;
    font-weight: 700;

    letter-spacing: -0.02em;
    color: var(--elo-text);
}

.elo-restaurant-category-desc {
    margin: 5px 0 0;

    max-width: 650px;

    color: var(--elo-muted);

    font-size: clamp(.78rem, 1vw, .9rem);
    line-height: 1.8;
}


/* =========================================================
   ITEMS
   ========================================================= */

.elo-restaurant-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}


/* =========================================================
   ITEM CARD
   ========================================================= */

.elo-restaurant-item {
    position: relative;

    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;

    align-items: center;

    gap: 20px;

    padding: 14px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .96),
            rgba(255, 253, 249, .96));

    border: 1px solid var(--elo-border);
    border-radius: var(--elo-radius);

    box-shadow:
        0 3px 15px rgba(44, 35, 22, 0.035);

    overflow: hidden;

    transition:
        transform .3s cubic-bezier(.2, .8, .2, 1),
        box-shadow .3s ease,
        border-color .3s ease;
}


/* subtle gold accent */

.elo-restaurant-item::before {
    content: "";

    position: absolute;
    right: 0;
    top: 16px;
    bottom: 16px;

    width: 2px;

    background: var(--elo-gold);

    opacity: 0;
    transform: scaleY(.4);

    transition:
        opacity .3s ease,
        transform .3s ease;
}


.elo-restaurant-item:hover {
    transform: translateY(-3px);

    border-color: rgba(177, 138, 74, .25);

    box-shadow:
        0 12px 30px rgba(44, 35, 22, 0.09);
}

.elo-restaurant-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}


/* =========================================================
   IMAGE
   ========================================================= */

.elo-restaurant-item-image {
    position: relative;

    width: 112px;
    height: 112px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 14px;

    background: #eee8dc;
}


.elo-restaurant-item-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(135deg,
            transparent 45%,
            rgba(255, 255, 255, .12));

    pointer-events: none;
}


.elo-restaurant-item-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .55s cubic-bezier(.2, .8, .2, 1);
}


.elo-restaurant-item:hover .elo-restaurant-item-image img {
    transform: scale(1.07);
}


/* Placeholder */

.elo-restaurant-item-image-placeholder {
    width: 100%;
    height: 100%;

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

    background:
        radial-gradient(circle at center,
            #f7f2e8,
            #e9e1d3);

    color: var(--elo-gold);

    font-size: 2rem;
}


/* =========================================================
   DETAILS
   ========================================================= */

.elo-restaurant-item-details {
    min-width: 0;
    padding: 4px 0;
}


.elo-restaurant-item-name {
    margin: 0 0 7px;

    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.5;
    font-weight: 700;

    color: var(--elo-text);

    transition: color .25s ease;
}


.elo-restaurant-item:hover .elo-restaurant-item-name {
    color: var(--elo-gold-dark);
}


.elo-restaurant-item-desc {
    margin: 0 0 12px;

    max-width: 650px;

    color: var(--elo-muted);

    font-size: .83rem;
    line-height: 1.9;
}


/* Meta */

.elo-restaurant-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px 16px;

    font-size: .75rem;
    color: #999286;
}


.elo-restaurant-item-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #b34c43;
    font-weight: 700;
}


/* =========================================================
   ACTION AREA
   ========================================================= */

.elo-restaurant-item-action {
    min-width: 145px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 9px;

    text-align: right;
}


/* Price */

.elo-restaurant-item-price {
    margin-bottom: 2px;

    color: var(--elo-gold-dark);

    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.3;
    font-weight: 800;

    white-space: nowrap;
}


.elo-restaurant-currency {
    margin-right: 4px;

    color: #958c7e;

    font-size: .68rem;
    font-weight: 500;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.elo-restaurant-qty-control {
    display: inline-flex;
    align-items: center;

    height: 38px;

    padding: 3px;

    gap: 2px;

    background: #f3efe7;

    border: 1px solid rgba(91, 73, 44, .1);

    border-radius: 11px;
}


.elo-restaurant-qty-control button {
    width: 31px;
    height: 31px;

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

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: var(--elo-text);

    cursor: pointer;

    font-size: 1rem;
    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.elo-restaurant-qty-control button:hover {
    background: #fff;
    color: var(--elo-gold-dark);
}


.elo-restaurant-qty-control button:active {
    transform: scale(.9);
}


.elo-restaurant-qty-input {
    width: 32px;
    height: 31px;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--elo-text);

    text-align: center;

    font-size: .85rem;
    font-weight: 700;

    appearance: textfield;
}


.elo-restaurant-qty-input::-webkit-inner-spin-button,
.elo-restaurant-qty-input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}


/* =========================================================
   ADD BUTTON
   ========================================================= */

.elo-restaurant-add-btn {
    position: relative;

    min-width: 120px;

    padding: 9px 16px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(135deg,
            #b99557,
            #9e773c);

    color: #fff;

    cursor: pointer;

    font-family: inherit;
    font-size: .78rem;
    font-weight: 700;

    box-shadow:
        0 5px 14px rgba(158, 119, 60, .2);

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}


.elo-restaurant-add-btn::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(100deg,
            transparent 20%,
            rgba(255, 255, 255, .2) 50%,
            transparent 80%);

    transform: translateX(-120%);

    transition: transform .6s ease;
}


.elo-restaurant-add-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(158, 119, 60, .3);

    filter: brightness(1.04);
}


.elo-restaurant-add-btn:hover::before {
    transform: translateX(120%);
}


.elo-restaurant-add-btn:active {
    transform: translateY(0) scale(.98);
}


/* Disabled */

.elo-restaurant-add-btn--disabled {
    background: #c8c4bb;
    color: #fff;

    cursor: not-allowed;

    box-shadow: none;

    filter: none;
}


.elo-restaurant-add-btn--disabled:hover {
    transform: none;
}


/* =========================================================
   UNAVAILABLE ITEM
   ========================================================= */

.elo-restaurant-item--unavailable {
    opacity: .58;
    filter: grayscale(.15);
}


.elo-restaurant-item--unavailable:hover {
    transform: none;

    box-shadow:
        0 3px 15px rgba(44, 35, 22, .035);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.elo-restaurant-menu--empty {
    position: relative;

    padding: 70px 20px;

    text-align: center;

    color: var(--elo-muted);

    background: var(--elo-card);

    border: 1px dashed rgba(177, 138, 74, .35);

    border-radius: 20px;
}


.elo-restaurant-menu--empty::before {
    content: "✦";

    display: block;

    margin-bottom: 12px;

    color: var(--elo-gold);

    font-size: 1.5rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .elo-restaurant-menu {
        padding-left: 14px;
        padding-right: 14px;
    }

    .elo-restaurant-item {
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 16px;
    }

    .elo-restaurant-item-image {
        width: 95px;
        height: 95px;
    }

    .elo-restaurant-item-action {
        grid-column: 1 / -1;

        width: 100%;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        padding-top: 12px;

        border-top: 1px solid var(--elo-border);
    }

    .elo-restaurant-item-price {
        margin: 0;
    }

    .elo-restaurant-item-meta {
        margin-top: 5px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .elo-restaurant-category {
        margin-bottom: 45px;
    }

    .elo-restaurant-category-header {
        gap: 13px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .elo-restaurant-category-image {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
    }

    .elo-restaurant-category-name {
        font-size: 1.2rem;
    }

    .elo-restaurant-category-desc {
        font-size: .73rem;
        line-height: 1.7;
    }


    /* Card */

    .elo-restaurant-item {
        grid-template-columns: 82px minmax(0, 1fr);

        gap: 13px;

        padding: 11px;

        border-radius: 15px;
    }


    /* Image */

    .elo-restaurant-item-image {
        width: 82px;
        height: 82px;

        border-radius: 11px;
    }


    /* Details */

    .elo-restaurant-item-details {
        padding: 2px 0;
    }

    .elo-restaurant-item-name {
        margin-bottom: 5px;

        font-size: .94rem;
    }

    .elo-restaurant-item-desc {
        margin-bottom: 6px;

        font-size: .73rem;

        line-height: 1.7;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .elo-restaurant-item-meta {
        gap: 5px 10px;

        font-size: .67rem;
    }


    /* Action */

    .elo-restaurant-item-action {
        gap: 8px;

        padding-top: 10px;
    }

    .elo-restaurant-item-price {
        font-size: 1rem;
    }

    .elo-restaurant-currency {
        font-size: .62rem;
    }


    /* Quantity */

    .elo-restaurant-qty-control {
        height: 35px;
    }

    .elo-restaurant-qty-control button {
        width: 28px;
        height: 28px;
    }

    .elo-restaurant-qty-input {
        width: 28px;
        height: 28px;
    }


    /* Add */

    .elo-restaurant-add-btn {
        min-width: auto;

        padding: 8px 13px;

        font-size: .7rem;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 380px) {

    .elo-restaurant-menu {
        padding-left: 8px;
        padding-right: 8px;
    }

    .elo-restaurant-item {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 10px;
        padding: 9px;
    }

    .elo-restaurant-item-image {
        width: 70px;
        height: 70px;
    }

    .elo-restaurant-item-name {
        font-size: .88rem;
    }

    .elo-restaurant-item-desc {
        font-size: .68rem;
    }

    .elo-restaurant-item-action {
        flex-wrap: wrap;
    }

    .elo-restaurant-add-btn {
        flex: 1;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .elo-restaurant-menu *,
    .elo-restaurant-menu *::before,
    .elo-restaurant-menu *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================================
   SUCCESS MODAL
   ========================================================= */

.elo-restaurant-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;

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

    background: rgba(41, 39, 34, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.elo-restaurant-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.elo-restaurant-modal {
    position: relative;

    width: 92%;
    max-width: 420px;
    max-height: 90vh;

    padding: 0;

    background: #fff;
    border-radius: 22px;
    border: 1px solid var(--elo-border);
    box-shadow:
        0 25px 60px rgba(44, 35, 22, .18),
        0 0 0 1px rgba(177, 138, 74, .08);

    overflow: hidden;

    transform: translateY(24px) scale(.96);
    opacity: 0;

    transition:
        transform .35s cubic-bezier(.2, .8, .2, 1),
        opacity .3s ease;
}

.elo-restaurant-modal-overlay.is-visible .elo-restaurant-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}


/* Close button */

.elo-restaurant-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;

    width: 32px;
    height: 32px;

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

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(41, 39, 34, .06);
    color: var(--elo-muted);

    cursor: pointer;

    font-size: 1.1rem;
    line-height: 1;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.elo-restaurant-modal-close:hover {
    background: rgba(41, 39, 34, .12);
    color: var(--elo-text);
    transform: rotate(90deg);
}


/* Success icon */

.elo-restaurant-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;
    margin: 32px auto 0;

    border-radius: 50%;

    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;

    font-size: 2rem;
}

.elo-restaurant-modal-icon svg {
    width: 36px;
    height: 36px;
    stroke: #2e7d32;
    stroke-width: 2.5;
    fill: none;
}


/* Text */

.elo-restaurant-modal-body {
    padding: 24px 28px 28px;
    text-align: center;
}

.elo-restaurant-modal-title {
    margin: 0 0 8px;

    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 700;

    color: var(--elo-text);
}

.elo-restaurant-modal-message {
    margin: 0 0 28px;

    color: var(--elo-muted);
    font-size: .88rem;
    line-height: 1.8;
}


/* Actions */

.elo-restaurant-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elo-restaurant-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    padding: 13px 20px;

    border: 0;
    border-radius: 12px;

    cursor: pointer;

    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.elo-restaurant-modal-btn:active {
    transform: scale(.98);
}


/* Primary: Go to Cart */

.elo-restaurant-modal-btn--primary {
    background: linear-gradient(135deg, #b99557, #9e773c);
    color: #fff;
    box-shadow: 0 5px 14px rgba(158, 119, 60, .25);
}

.elo-restaurant-modal-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(158, 119, 60, .35);
    filter: brightness(1.04);
}


/* Secondary: Continue Shopping */

.elo-restaurant-modal-btn--secondary {
    background: transparent;
    color: var(--elo-muted);
    border: 1px solid var(--elo-border);
}

.elo-restaurant-modal-btn--secondary:hover {
    background: rgba(41, 39, 34, .04);
    color: var(--elo-text);
    border-color: rgba(74, 61, 40, .2);
}


/* Error modal variant */

.elo-restaurant-modal-icon--error {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
}

.elo-restaurant-modal-icon--error svg {
    stroke: #c62828;
}


/* =========================================================
   MODAL — MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .elo-restaurant-modal {
        width: 94%;
        max-width: none;
        border-radius: 18px;
    }

    .elo-restaurant-modal-body {
        padding: 20px 20px 24px;
    }

    .elo-restaurant-modal-title {
        font-size: 1.05rem;
    }

    .elo-restaurant-modal-message {
        font-size: .82rem;
    }

    .elo-restaurant-modal-icon {
        width: 62px;
        height: 62px;
        margin-top: 26px;
        font-size: 1.6rem;
    }

    .elo-restaurant-modal-btn {
        padding: 12px 16px;
        font-size: .8rem;
    }
}


/* =========================================================
   MODAL — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .elo-restaurant-modal-overlay,
    .elo-restaurant-modal,
    .elo-restaurant-modal-close,
    .elo-restaurant-modal-btn {
        transition: none !important;
        animation: none !important;
    }

    .elo-restaurant-modal {
        transform: none;
        opacity: 1;
    }

    .elo-restaurant-modal-overlay.is-visible .elo-restaurant-modal {
        transform: none;
        opacity: 1;
    }
}