/* === غذاها === */
.mdg-food-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.mdg-food-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.mdg-food-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mdg-food-item-featured-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
}

.mdg-food-item-featured-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mdg-food-item-featured-wrapper:hover img {
    transform: scale(1.05);
}

.mdg-food-special-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.mdg-food-item-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mdg-food-item-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.mdg-food-item-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mdg-food-item-content h3 a:hover {
    color: #0a7c0a;
}

.mdg-food-item-content p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.mdg-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.mdg-price {
    font-size: 18px;
    font-weight: 700;
    color: #0a7c0a;
}

.mdg-price del {
    color: #999;
    font-weight: 500;
    margin-right: 8px;
    font-size: 15px;
}

.mdg-price ins {
    text-decoration: none;
}

.mdg-currency {
    font-size: 13px;
    font-weight: 500;
    margin-right: 2px;
}

.mdg-food-add-to-cart {
    width: 40px;
    height: 40px;
    background: #0a7c0a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.mdg-food-add-to-cart:hover {
    background: #086b08;
    transform: scale(1.1);
}

.mdg-food-cart-quantity-controller {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 30px;
}

.mdg-food-cart-quantity-controller a {
    width: 28px;
    height: 28px;
    background: #0a7c0a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.mdg-food-cart-quantity-controller input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}


.mdg-out-of-stock-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #999;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 3;
}

.out-of-stock .mdg-food-add-to-cart,
.out-of-stock .mdg-food-cart-quantity-controller {
    display: none !important;
}

.mdg-food-item-has-image .mdg-food-item-featured-wrapper { display: block; }

.mdg-food-card {
    transition: all 0.3s ease;
    overflow: hidden;
}
.mdg-food-card:hover {
    transform: translateY(-2px);
}
.mdg-food-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.mdg-add-to-cart {
    transition: all 0.2s;
}
.mdg-add-to-cart:hover {
    transform: scale(1.1);
}
/* Menudigi Food Item Style */
.mdg-food-item {
    position: relative;
}

.mdg-food-item-inner {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mdg-food-item-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.mdg-food-item-featured-wrapper {
    display: block;
    position: relative;
    overflow: hidden;
}

.mdg-food-item-featured-wrapper img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mdg-food-item-featured-wrapper:hover img {
    transform: scale(1.05);
}

.mdg-food-special-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.mdg-food-item-content {
    padding: 16px;
}

.mdg-food-item-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.mdg-food-item-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.mdg-food-item-content h3 a:hover {
    color: #27ae60;
}

.mdg-food-item-content p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.mdg-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mdg-price del {
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.mdg-price ins {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
}

.mdg-price bdi {
    font-weight: normal;
}

.mdg-food-add-to-cart {
    width: 36px;
    height: 36px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.mdg-food-add-to-cart:hover {
    background: #219653;
    transform: scale(1.1);
}

.mdg-food-cart-quantity-controller {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
}

.mdg-food-cart-quantity-controller a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.mdg-food-cart-quantity-controller input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
}

.mdg-out-of-stock-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 3;
}
/* === موبایل === */
@media (max-width: 768px) {
    .mdg-food-item-featured-wrapper img {
        height: 160px;
    }
    .mdg-food-item-content {
        padding: 16px;
    }
    .mdg-food-item-content h3 {
        font-size: 16px;
    }
    .mdg-price {
        font-size: 16px;
    }
}