
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--main-padding-box);
}

.back-button {
    display: inline-block;
    padding: 10px 15px;
    margin-bottom: 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.back-button:hover {
    background: #0056b3;
}

.product-heading {
    padding: 3rem 2rem 8rem 2rem;
}

.product-heading h2 {
    font-size: 3rem;
    font-weight: 200 !important;
    color: var(--main-text-color);
}

#productDetail .cover {
    /* background: cornflowerblue; */
    display: flex;
    gap: 4rem;
    margin: 4rem auto;
}

.product-detail-card {
    /* display: flex; */
    /* gap: 30px; */
    /* flex-direction: column; */
    min-width: 48rem;
    width: 60%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: repeat(5, 1fr); */
    grid-column-gap: 0.6rem;
    grid-row-gap: 0.6rem;
}

.product-detail-card img {
    /* width: 400px; */
    /* height: 400px; */
    width: 100%;
    aspect-ratio: 1.6;
    object-fit: cover;
}

@media (max-width: 1000px) {
    
    #productDetail .cover {
        flex-direction: column;
    }
    
    .product-detail-card {
        min-width: unset;
        width: 100%;
    }
    
} 

@media (max-width: 769px) {
    
    .product-detail-card {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {
    
    .product-detail-card {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .product-heading {
        padding: 0rem 0rem 5rem 0rem;
    }

}

.product-info h2,
.product-info p {
    margin-top: 0;
    color: var(--main-text-color);
}

.product-info h2 {
    font-size: 3rem;
    font-weight: 200;
    padding-bottom: 6rem;
    position: relative;
}

.product-info h2::after {
    content: " ";
    width: 100%;
    height: 1px;
    background-color: var(--main-text-color);
    position: absolute;
    bottom: 3rem;
    left: 0;
    opacity: 0.6;
}

.product-info p {
    margin-top: 1.5rem;
    line-height: 1.5rem;
    opacity: 0.9;
}

.product-info p span {
    border: 1px solid rgba(255, 255, 255, 0.445);
    border-radius: 1px;
    padding: 0.1rem 0.4rem;
    box-sizing: content-box;
    margin-top: 1rem;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .product-detail-card {
        flex-direction: column;
    }
    
    .product-detail-card img {
        max-width: 100%;
    }
}








/* Fullscreen Gallery Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 5% 1rem;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 3rem;
    font-weight: 100;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 2rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.6);
    padding: 16px;
    user-select: none;
    transform: translateY(-50%);
}

.prev {
    left: 5%;
}

.next {
    right: 5%;
}

@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

@media (max-width: 769px) {
    
    .prev {
        left: 35%;
        top: 95%;
    }
    
    .next {
        right: 35%;
        top: 95%;
    }
    
}
