﻿/* -----------------------------------------
         PRODUCT SECTION
    ----------------------------------------- */
.product-section {
    padding: 60px 0;
    background-color: #fff8f2;
}

.product-img {
    width: 100%;
    border-radius: 18px;
    border: 8px solid #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: .3s ease;
    object-fit: cover;
}

    .product-img:hover {
        transform: scale(1.03);
    }

.info-box {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #f3dede;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.price {
    font-size: 1.35rem;
    color: #a00000;
    font-weight: 700;
    margin-bottom: 10px;
}

.spec-box {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #ffe1e1;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.spec-heading {
    font-size: 1.3rem;
    font-weight: 700;
}


.btn-custom {
    background-color: #f3e2d0;
    color: #511407;
    font-weight: bold;
    border-radius: 30px;
    padding: 10px 30px;
    transition: all 0.4s ease;
}

    .btn-custom:hover {
        transform: translateY(-4px) scale(1.05);
        background-color: #511407;
        color: #f3e2d0;
        box-shadow: 0 10px 25px rgba(81, 20, 7, 0.5);
    }


/* -----------------------------------------
         RESPONSIVE FIXES
    ----------------------------------------- */

@media (max-width: 992px) {
    .product-section {
        padding: 50px 0;
    }

    .info-box {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.7rem;
    }

    .info-box {
        padding: 25px;
    }

    ul li {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.6rem;
    }

    .spec-box {
        padding: 20px;
    }

    .product-img {
        border-width: 6px;
    }
}

@media (max-width: 400px) {
    .info-box {
        padding: 20px;
    }

    .product-img {
        border-radius: 12px;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}






/* Fix uneven height between image and content on tablets and larger screens */
@media (min-width: 768px) {
    .product-section .row {
        display: flex;
        align-items: stretch; /* equal height columns */
    }

    .product-section .col-md-6 {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Make the image auto-fit height without stretching */
    .product-img {
        height: 100%;
        max-height: 500px; /* prevent huge images */
        object-fit: cover;
    }

    /* Ensure info box stays centered */
    .info-box {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* For tablet screens specifically (768px–991px) reduce content spacing */
@media (max-width: 991px) and (min-width: 768px) {
    .info-box {
        padding: 22px !important;
    }

        .info-box p,
        .info-box ul li {
            font-size: 0.95rem !important;
            line-height: 1.5rem;
        }

    .product-img {
        max-height: 420px; /* balanced tablet size */
    }
}

/* --------------------------------------------------
       Rangoli Particle Fix (Prevents layout shifting)
    -------------------------------------------------- */
.rangoli-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatUp 6s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-150px);
        opacity: 0;
    }
}
