/* Maintain main website styling */
body {
    background: linear-gradient(black 30%, rgb(131, 3, 3));
    color: white;
    font-family: 'Roboto', sans-serif;
}

/* Product Container */
.product-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.product-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 3px black;
}

/* Product Details */
.product-details {
    display: flex;
    gap: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(178, 6, 6, 0.3);
}

.product-image-container {
    flex: 1;
}

.product-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    border: 2px solid rgba(178, 6, 6, 0.5);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-description h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: rgb(178, 6, 6);
}

.product-description p {
    line-height: 1.6;
    margin-bottom: 25px;
}

.features-list {
    margin: 25px 0;
    padding-left: 20px;
}

.features-list li {
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
    padding-left: 30px;
}


/* Purchase Section */
.purchase-section {
    margin-top: auto;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
}

.quantity-selector {
    margin: 20px 0;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
}

.quantity-selector input {
    width: 80px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(178, 6, 6, 0.5);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
}

.add-to-cart-btn {
    background: rgb(178, 6, 6);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin: 20px 0;
}

.add-to-cart-btn:hover {
    background: rgb(200, 10, 10);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 6, 6, 0.4);
}

.view-cart-link {
    color: rgb(178, 6, 6);
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.view-cart-link:hover {
    color: white;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .product-details {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-description h2 {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .product-container {
        margin-top: 80px;
        padding: 0 15px;
    }
    
    .product-details {
        padding: 20px;
    }
}

/* Product Gallery */
.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position:relative;
}

.main-image-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid rgba(178, 6, 6, 0.5);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position:absolute;
    bottom:10px;
    left:20px;

}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    border-color: rgba(178, 6, 6, 0.5);
}

.thumbnail.active {
    opacity: 1;
    border-color: rgb(178, 6, 6);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(178, 6, 6, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-image {
        max-height: 300px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .main-image {
        max-height: 250px;
    }
    
    .thumbnail {
        width: 40px;
        height: 40px;
    }
}