/* /louis-ecommerce/assets/css/product.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.breadcrumb {
    background-color: transparent;
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image-wrapper {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    z-index: 10;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #3498db;
    transform: scale(1.05);
}

.product-details {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-badge {
    background-color: #3498db;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.stock-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.stock-status.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.stock-status.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.product-price-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 42px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.old-price {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.savings {
    color: #27ae60;
    font-weight: 600;
    font-size: 16px;
}

.product-description,
.product-features {
    margin-bottom: 25px;
}

.product-description h3,
.product-features h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.product-description p,
.product-features p {
    line-height: 1.8;
    color: #555;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background-color: #f8f9fa;
    border: none;
    width: 45px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.qty-btn:hover {
    background-color: #e9ecef;
}

#quantity {
    width: 70px;
    height: 50px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 600;
}

.btn-add-to-cart {
    flex: 1;
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.btn-add-to-cart:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    transition: all 0.3s;
}

.btn-wishlist:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-wishlist.active {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.out-of-stock-notice {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    color: #856404;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
}

.related-products {
    margin-top: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-card .product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card .product-info {
    padding: 20px;
}

.product-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-card h4 a {
    color: #333;
    text-decoration: none;
}

.product-card h4 a:hover {
    color: #3498db;
}

.product-card .price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card .price .current {
    font-size: 20px;
    font-weight: 700;
    color: #3498db;
}

.product-card .price .old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.footer {
    background-color: #2c3e50;
    color: #fff;
    margin-top: 60px;
}

.alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .product-title {
        font-size: 26px;
    }
    
    .current-price {
        font-size: 32px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-add-to-cart {
        width: 100%;
    }
    
    .product-gallery {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .product-details {
        padding: 20px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}