* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.main_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.hero_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.hero_content h1 {
    font-size: 50px;
    color: #111;
    margin-bottom: 8px;
}

.hero_content p {
    color: #666;
    font-size: 20px;
}

.check_btn {
    background-color: #f97316;
    color: #e5e7eb;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.check_btn:hover {
    border-color: #059669;
    color: #059669;
    background-color: #e4faf3;
}

.filter_section {
    padding: 20px 0;
    overflow-x: auto;
}

.filter_btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn, .btn_all {
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover, .btn_all:hover {
    border-color: #ea580c;
    color: #ea580c;
    background-color: #fcf3eb;
}

.btn_all {
    background-color: #059669;
    color: white;
    border-color: #059669;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.food-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.food-card:hover {
    transform: translateY(-10px);
}

.img-container {
    position: relative;
    width: 100%;
    height: 225px;
}

.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f97316;
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-details {
    padding: 20px;
}

.food-title {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.price-row {
    margin-bottom: 15px;
}

.new-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #059669;
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    margin-left: 10px;
}

.res-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.res-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.res-name {
    color: #6b7280;
    font-size: 0.9rem;
}

.rescue-btn {
    width: 100%;
    background-color: #059669;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.rescue-btn:hover {
    background-color: #047857;
}

#meal-modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); 
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    animation: popIn 0.3s ease;
    text-align: left; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: white; 
    background: transparent; 
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modal-info-padding {
    padding: 20px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 5px;
}

.modal-res-line {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 15px;
}

.res-name-bold {
    color: #059669;
    font-weight: bold;
}

.modal-desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-price-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-price-row {
    display: flex;
    align-items: baseline; 
    gap: 10px;
}
.modal-new-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #059669; 
}

.modal-old-price {
    text-decoration: line-through;
    color: #9ca3af; 
    font-size: 1rem;
}
#item-counter {
    font-weight: bold;
    color: #059669; 
    font-size: 1.2rem;
}
.add-to-cart-icon-btn {
    background-color: #059669; 
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.add-to-cart-icon-btn:hover {
    background-color: #047857; 
    transform: scale(1.1);
}

.expiry-container {
    background-color: #fffbeb; 
    border-radius: 12px; 
    padding: 15px;
    text-align: left; 
    margin-top: 20px;}

.expiry-label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #92400e;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.expiry-countdown {
    font-size: 1.4rem;
    font-weight: bold;
    color: #92400e; 
}
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .hero_section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
.cart-trigger-wrapper {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}

.btn-cart-circular {
    width: 42px;
    height: 42px;
    background-color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    font-size: 16px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-cart-circular:hover {
    transform: scale(1.1);
    background-color: #047857;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #f97316;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
}

.cart-offcanvas { 
    width: 100% !important; 
    max-width: 380px;
    z-index: 1060;
}

.btn-checkout { 
    background-color: #059669; 
    border: none; 
    border-radius: 12px; 
    font-weight: 600; 
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.cart-item-price {
    color: #059669;
    font-weight: bold;
    font-size: 0.9rem;
}

.remove-item {
    color: #9ca3af;
    cursor: pointer;
    transition: 0.2s;
}

.remove-item:hover {
    color: #ef4444;
}

.toast {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 1400;
    min-width: 260px;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #059669, #059669);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 18px 38px rgba(27, 94, 32, .24);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: linear-gradient(135deg, #C62828, #EF5350);
}

