/* Product Section */
.product-section {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 2rem;
}

.section-title {
    font-size: 3.981em;
    margin-bottom: 2rem;
    color: #440099;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100px;
    height: 4px;
    background: #440099;
    margin-top: 0.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Each product card */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1rem;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 150px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 1.6em;
    color: #333;
    text-align: left;
    width: 100%;
}

.details-btn {
    font-size: 1.333em;
    background: #841FFF;
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s;
}

.details-btn:hover {
    background: #440099;
}



/* Modal (Popup) Base */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: min(1000px, 100%); */
    width: 100%;
    height: 100dvh;
    padding: 3rem;
    background-color: rgba(251, 251, 251, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    overflow-y: auto;
    background: #440099;
    width: 100%;
    max-height: 100%;
    padding: 1rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-content>h3 {
    color: #f4eaff;
    font-size: 1.6em;
    font-weight: 400;
    position: relative;
}

.modal-content>h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100px;
    height: 2px;
    background: #f4eaff;
    margin-top: 0.5rem;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    background: transparent;
    border: none;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #f4eaff;
    transition: color 0.3s;
    display: inline-block;
}

.close-btn:hover {
    color: #C799FF;
}

.modal.active {
    display: flex;
}




/* Product Info Section */
.product-info-section {
    margin: 2rem auto 1rem;
    padding: 1rem 1rem 0;
}

.product-row {
    display: flex;
    gap: 2rem;
    background: #fbfbfb;
    padding: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-row:hover {
    transform: translateY(-2px);
}

.product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex-shrink: 0;
    max-width: 50%;
}

.product-images img {
    cursor: pointer;
    border: rgba(69, 0, 153, 0.2) 1px solid;
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.product-images .comingSoon {
    object-fit: contain;
}

.product-images img:hover {
    transform: scale(1.05);
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.6em;
}

.product-details p strong {
    color: #440099;
}



/* Image Modal Styles */
.image-opener-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.image-close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f4eaff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-close-btn:hover,
.image-close-btn:focus {
    color: #C799FF;
    text-decoration: none;
}

/* Animation for the modal */
.image-modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}




/* Responsive stacking on smaller screens */
@media (max-width: 900px) {
    .product-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-images img {
        width: 150px;
        height: 90px;
    }
}

@media (max-width: 506px) {
    .product-images {
        flex-direction: column;
    }

    .product-image {
        height: 200px;
    }
}