/* =========================
   PRELOADER
========================= */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #ffffff;
    top: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo animation */
.loader-content img {
    width: 250px;
    animation: zoomIn 1s ease infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
        opacity: 0.7;
    }

    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

.section-title-wrap {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0;
    background: #fff;
    /* same light background */
}

/* Title */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0b0b3c;
    /* dark blue */
    margin-bottom: 0px;
    font-family: var(--font-heading);
}

/* Wave underline */
.title-wave svg {
    font-size: 72px;
    margin: 0 auto;
    position: relative;
}

.product-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Card */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* Hover Effect */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Image */
.product-img {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    transition: 0.3s;
}

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

/* Content */
.product-content {
    padding: 15px;
    text-align: center;
    width: 100%;
}

.product-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.product-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.view-btn {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    margin-top: 10px;
}

.view-btn:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.view-btn:active {
    transform: translateY(0);
}

.view-btn i {
    font-size: 12px;
}

.ingredient-box {
    background: #fafafa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    min-height: 120px;
}

.ingredient-box strong {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #111;
}

.ingredient-box p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.product-content h4 {
    font-size: 13px;
    margin-bottom: 10px;
    color: #444;
}

/* =========================
   MODAL STYLES
========================= */

.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.product-modal.active {
    display: flex;
}

.modal-box {
    background: #fff;
    width: 100%;
    max-width: 1200px;
    border-radius: 20px;
    overflow-y: auto;
    max-height: 90vh;
    position: relative;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #0066cc;
}

.modal-header {
    display: flex;
    gap: 35px;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.modal-image {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#mTitle {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
    font-family: var(--font-heading);
}

#mDesc {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.modal-section {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 16px;
}

.modal-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    font-family: var(--font-heading);
}

.info-card {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.info-card:last-child {
    margin-bottom: 0;
}

.info-card h4 {
    margin-bottom: 10px;
    color: #111;
    font-weight: 600;
    font-size: 15px;
}

.info-card p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-img {
        height: 200px;
    }

    .modal-image {
        width: 100%;
        height: auto;
    }

    #mTitle {
        font-size: 24px;
    }

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