/* Product Details Page Styles */

.product-details {
    padding: 80px 0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-container {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rating-count {
    margin-left: 10px;
    color: var(--gray-color);
}

.product-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-options {
    margin-bottom: 30px;
}

.size-selection, .color-selection {
    margin-bottom: 20px;
}

.size-selection h3, .color-selection h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.size-options, .color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: var(--primary-color);
}

.size-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.color-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover {
    border-color: var(--primary-color);
}

.color-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

#quantity {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.add-to-cart-btn {
    flex: 1;
    height: 40px;
    font-size: 16px;
}

/* Related Products */
.related-products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.view-details-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--dark-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.view-details-btn:hover {
    background-color: var(--primary-color);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--dark-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 300px;
    }

    .product-actions {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
        margin-bottom: 15px;
    }
}
