html {
    scroll-behavior: smooth;
}

.cart-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-left: 5px solid #28a745;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 400px;   
    text-align: center;
}

/* Custom Banner Styles */
.custom-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
}

.banner-inscription {
    position: absolute;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    padding: 10px 20px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 5px;
    max-width: 100%;
    text-align: center;
}

.food-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://delivergate-prod-images.s3.eu-west-2.amazonaws.com/webshop/1711378904Web%20hero.png');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.food-hero h1 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.food-hero p {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.food-filters {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.food-filter-btn {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid #2E5D50;
    background: transparent;
    color: #2E5D50;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.food-filter-btn:hover,
.food-filter-btn.active {
    background: #2E5D50;
    color: white;
}

#food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding: var(--space-md) 0;
}

.food-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e1e1e1;
    position: relative;
    max-width: 300px;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.food-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-sm);
    padding: var(--space-xs);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.food-image img {
    width: 100%;
    height: 200px;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.food-card:hover .food-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.food-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--secondary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.food-info {
    padding: var(--space-xs);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.prep-time-info {
    margin-bottom: var(--space-sm);
    text-align: center;
}

.prep-label {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.prep-value {
    color: #2E5D50;
    font-size: 0.9rem;
    font-weight: 600;
}

.food-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.food-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}

.food-rating {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 24px;
}

.food-rating .fas.fa-star,
.food-rating .fas.fa-star-half-alt,
.food-rating .far.fa-star {
    color: #ffd700;
    font-size: 1rem;
}

.food-rating .rating-text {
    margin-left: 5px;
    font-size: 0.9rem;
    color: #666;
}

.food-rating .no-rating {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

.price-container {
    margin: 10px 0;
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.food-price {
    font-weight: 700;
    color: #2E5D50;
    font-size: 1.6rem;
}

.discounted-price {
    font-weight: 700;
    color: #dc3545;
    font-size: 1.4rem;
    margin: 0;
}

.product-price.discounted {
    color: #2E5D50; /* Custom green color for discounted price */
    font-weight: 800;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
    margin-left: 8px;
}

.food-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    margin-top: var(--space-md);
}

.food-actions > a,
.food-actions > form {
    flex: 1;
    width: 100%;
    max-width: 200px;
}

.food-actions .btn-food,
.food-actions .btn-outline {
    width: 100%;
    display: block;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    box-sizing: border-box;
}

.btn-food {
    background: #2E5D50;
    color: white;
    border: none;
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.btn-food:hover {
    background: #245043;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #2E5D50;
    color: #2E5D50;
}

.btn-outline:hover {
    background: #2E5D50;
    color: white;
    transform: translateY(-1px);
}

.btn-outline:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.special-offers {
    background-color: var(--secondary);
    color: white;
    padding: var(--space-lg);
    border-radius: 12px;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.special-offers h2 {
    margin-bottom: var(--space-md);
    font-size: 1.8rem;
}

.special-offers p {
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.delivery-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 32px 24px;
    border-radius: 16px;
    margin-bottom: var(--space-xl);
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.delivery-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2E5D50 0%, #34a853 100%);
}

.delivery-info h3 {
    color: #2E5D50;
    margin-bottom: 8px;
    font-size: 1.6rem;
    font-weight: 700;
}

.delivery-info p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.delivery-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.delivery-feature {
    background: white;
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    text-align: center;
}

.delivery-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-color: #2E5D50;
}

.delivery-feature i {
    color: #2E5D50;
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.delivery-feature span {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.donation-banner {
  background: linear-gradient(90deg, #e0ffe7 0%, #b2f7c1 100%);
  color: #1a7f37;
  padding: 14px 0;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 18px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(26, 127, 55, 0.07);
}

.donation-banner i {
  margin-right: 8px;
  color: #1a7f37;
}

/* Responsive styles */
@media (max-width: 768px) {
    #food-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: var(--space-sm);
    }
    
    .food-card {
        max-width: none;
    }
    
    .discount-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .discounted-price {
        font-size: 1.2rem;
    }
    
    .original-price {
        font-size: 1rem;
    }
    
    .delivery-info {
        padding: 24px 16px;
    }
    
    .delivery-info h3 {
        font-size: 1.4rem;
    }
    
    .delivery-features {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }
    
    .delivery-feature {
        padding: 16px 12px;
    }
    
    .delivery-feature i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .delivery-feature span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #food-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-xs);
    }
    
    .discount-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        top: 8px;
        left: 8px;
    }
    
    .discounted-price {
        font-size: 1.1rem;
    }
    
    .original-price {
        font-size: 0.9rem;
        margin-left: 4px;
    }
    
    .price-container {
        gap: 4px;
    }
    
    .delivery-info {
        padding: 20px 12px;
        margin-bottom: 20px;
    }
    
    .delivery-info h3 {
        font-size: 1.2rem;
    }
    
    .delivery-info p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .delivery-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .delivery-feature {
        padding: 12px 8px;
    }
    
    .delivery-feature i {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .delivery-feature span {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

.social-footer {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0; 
    text-align: center;
    margin-top: 15px; 
}

.social-footer h3 {
    margin-bottom: 6px; 
    font-size: 1rem; 
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px; 
    margin-bottom: 8px; 
}

.social-links a {
    color: white;
    font-size: 1rem; 
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ccc;
}

.copyright {
    font-size: 0.7rem; 
    color: #aaa;
    margin-top: 4px; 
    padding-bottom: 2px; 
}