﻿.item-top {
    position: relative;
}

.item-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.item-back {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    z-index: 999;
    transition: .2s;
}

    .item-back:hover {
        text-decoration: none;
        color: var(--theme);
        transform: scale(1.05);
    }

.item-cart {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    z-index: 999;
}

    .item-cart:hover {
        color: var(--theme);
        text-decoration: none;
    }

.item-body {
    padding: 18px;
}

.item-name {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0;
}

.food-type-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 6px;
}

.item-category {
    color: #999;
    font-size: .82rem;
    margin-bottom: 14px;
}

.item-price {
    color: var(--theme);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.item-desc {
    color: #666;
    line-height: 1.7;
    font-size: .92rem;
}

.unavailable {
    margin-top: 18px;
    background: #fff3f3;
    color: #e74c3c;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
}

.no-img {
    background: linear-gradient( 135deg, var(--theme) 0%, rgba(0, 0, 0, .15) 100% );
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-img-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at top right, rgba(255, 255, 255, .18), transparent 45% );
}

.item-img-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

    .item-img-content i {
        font-size: 3rem;
        opacity: .95;
    }

    .item-img-content span {
        font-size: 1rem;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    }

.veg-icon,
.nonveg-icon {
    width: 16px;
    height: 16px;
    border: 1.5px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    position: relative;
}

.veg-icon {
    border-color: #1ea83c;
}

    .veg-icon::after {
        content: "";
        width: 8px;
        height: 8px;
        background: #1ea83c;
        border-radius: 50%;
    }

.nonveg-icon {
    border-color: #d62828;
}

    .nonveg-icon::after {
        content: "";
        width: 8px;
        height: 8px;
        background: #d62828;
        border-radius: 50%;
    }

.vegan-icon {
    width: 16px;
    height: 16px;
    border: 1.5px solid #2e7d32;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    color: #2e7d32;
    font-size: 9px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.price-block {
    display: inline-block;
}

.discount-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: .9rem;
}

.add-btn {
    border: 1px solid var(--theme);
    background: #fff;
    color: var(--theme);
    font-weight: 700;
    border-radius: 8px;
    padding: 7px 18px;
    min-width: 80px;
    transition: .2s;
}

    .add-btn:hover {
        background: var(--theme);
        color: #fff;
    }

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--theme);
    border-radius: 8px;
    overflow: hidden;
}

    .qty-control button {
        border: 0;
        background: #fff;
        color: var(--theme);
        width: 34px;
        height: 34px;
        font-weight: 700;
        font-size: 18px;
    }

    .qty-control span {
        min-width: 30px;
        text-align: center;
        font-weight: 700;
        color: var(--theme);
    }

.basket-toast {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #222;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}

    .basket-toast.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

.enquiry-btn {
    background: #25d366;
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .2s;
}

    .enquiry-btn:hover {
        background: #1ebe5d;
        color: #fff;
        text-decoration: none;
    }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

    .share-btn:hover {
        background: #f3f4f6;
        color: #111827;
    }

    .share-btn i {
        font-size: .85rem;
    }

.merchant-link {
    position: absolute;
    left: 15px;
    bottom: 15px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s ease;
}

    .merchant-link:hover {
        color: #fff;
        text-decoration: none;
        transform: translateY(-1px);
    }

.item-modal-image {
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}
