@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.main-wrap {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #850000;
}

.main-wrap .product {
    width: 100%;
    max-width: 750px;
    display: flex;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.5); /* Moved background here */
    padding: 20px; /* Optional: adds some spacing inside */
    border-radius: 10px; /* Optional: gives the whole section rounded corners */
}

.main-wrap .product .image-gallery {
    width: 300px;
    height: 300px; 
    background: #ffffff; /* You can adjust this or remove if not needed */
    box-shadow: -10px 5px 10px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 120px;
    margin-right: 20px;
    border-radius: 10px;
}

.main-wrap .product .image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.main-wrap .product .image-gallery .controls .btn {
    width: 10px;
    height: 10px;
    border-radius: 10%;
    background: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.main-wrap .product .image-gallery .controls .btn.active {
    background: #850000;
}

.main-wrap .product .product-details {
    flex-basis: 53%;
    background: #fff;
    box-shadow: -10px 5px 10px 10px rgba(0, 0, 0, 0.1);
    padding: 40px 30px 40px 40px;
    max-height: 600px; 
    overflow-y: auto; 
    border-radius: 10px;
}

.main-wrap .product .product-details .details {
    margin-bottom: 20px;
}

.main-wrap .product .product-details .details h1{
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #850000;
}

.main-wrap .product .product-details .details h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    text-transform: uppercase;
    color: #f72585;
    margin-bottom: 10px;
}

.main-wrap .product .product-details .details p {
    font-size: 15px;
    font-weight: 500;
    line-height: 25px;
    margin-top: 10px;
    color: #011627;
}

/* Removed the .sizes, .colors, .quantity sections */
.main-wrap .product .product-details .sizes,
.main-wrap .product .product-details .colors,
.main-wrap .product .product-details .quantity {
    display: none; /* Hide these sections */
}

.main-wrap .product .product-details .sub-btn .submit {
    width: 100%;
    padding: 10px;
    border: 0;
    outline: 0;
    background: #0077b6;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 30px;
    box-shadow: 0 10px 10px rgba(85, 63, 240, 0.25);
    cursor: pointer;
    transition: 0.4s linear;
    position: relative;
    overflow: hidden;
}

.main-wrap .product .product-details .sub-btn .submit:hover {
    background: #850000;
}

.main-wrap .product .product-details .sub-btn .submit::before {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-45deg);
}

.main-wrap .product .product-details .sub-btn .submit:hover::before {
    animation: light 0.4s linear forwards;
}

@keyframes light {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .main-wrap {
        width: 100%;
        height: 1000px;
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-wrap .product {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin-bottom: 160px;
    }

    .main-wrap .product .image-gallery {
        width: 90%; 
        height: auto; 
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
        margin-left: 20px;
    }

    .main-wrap .product .image-gallery img { 
        object-fit: fill; 
    }

    .main-wrap .product .product-details {
        width: 100%;
        padding: 20px;
        max-height: 600px;
        overflow-y: auto;
        text-align: center;
    }

    .main-wrap .product .product-details .details h1 {
        font-size: 30px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #011627;
    }

    .main-wrap .product .product-details .sub-btn .submit {
        font-size: 14px;
        padding: 12px;
        width: 100%;
    }
}