/* =========================
   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 */
.personal-wave svg {
    font-size: 72px;
    margin: 0 auto;
    position: relative;
}

/* =====================================================
           PRODUCT GRID
        ===================================================== */

.product-grid {

    width: 100%;

    max-width: 1320px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}

/* =====================================================
           PRODUCT CARD
        ===================================================== */

.product-card {

    background: #fff;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);

    transition: 0.3s ease;
}

.product-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.15);
}

.product-img {

    width: 100%;

    height: 260px;

    overflow: hidden;
}

.product-img img {

    width: 100%;

    height: 100%;

    margin: 0 auto;

}

.product-content {

    padding: 20px;
}

.product-content h3 {

    font-size: 22px;

    margin-bottom: 18px;

    color: #111;

    text-align: center;
}

.product-content h4 {

    font-size: 15px;

    margin-bottom: 12px;

    color: #444;
}

.ingredient-box {

    background: #fafafa;

    border-radius: 10px;

    padding: 15px;

    margin-bottom: 20px;

    min-height: 150px;
}

.ingredient-box strong {

    display: block;

    font-size: 16px;

    margin-bottom: 10px;

    color: #111;
}

.ingredient-box p {

    font-size: 14px;

    color: #666;

    line-height: 1.7;
}

.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;
}

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

.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;
}

.modal-box {

    background: #fff;

    width: 100%;

    max-width: 1200px;

    border-radius: 20px;

    overflow-y: auto;

    max-height: 90vh;

    position: relative;

    padding: 35px;
}

.close-modal {

    position: absolute;

    top: 18px;

    right: 25px;

    font-size: 38px;

    cursor: pointer;
}

.modal-header {

    display: flex;

    gap: 35px;

    align-items: center;

    margin-bottom: 35px;

    flex-wrap: wrap;
}

.modal-image {

    width: 320px;

    border-radius: 16px;
}

#mTitle {

    font-size: 38px;

    margin-bottom: 15px;
}

#mDesc {

    color: #666;

    line-height: 1.8;
}

.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: 25px;

    font-size: 26px;
}

.info-card {

    background: #fff;

    padding: 18px;

    border-radius: 12px;

    margin-bottom: 18px;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.05);
}

.info-card h4 {

    margin-bottom: 10px;

    color: #111;
}

.info-card p {

    color: #666;

    line-height: 1.7;

    font-size: 14px;
}

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

@media(max-width:768px) {

    .section-title {

        font-size: 32px;
    }

    .modal-image {

        width: 100%;
    }

    #mTitle {

        font-size: 28px;
    }

    .modal-box {

        padding: 20px;
    }
}

/* =========================
   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;
    }

    .product-img img {
        width: 75%;
    }
}