/* Styles spécifiques aux pages de catégories */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: #2980b9;
}

.separator {
    color: #6c757d;
}

/* Category Hero */
.category-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.electronics-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fashion-hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.home-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.sports-hero {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.automotive-hero {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.health-hero {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.category-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.category-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filters-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    min-width: 120px;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #3498db;
}

.filters-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-group label {
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
}

.sort-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    color: #6c757d;
}

.view-btn:first-child {
    border-radius: 5px 0 0 5px;
}

.view-btn:last-child {
    border-radius: 0 5px 5px 0;
}

.view-btn.active,
.view-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Products Section */
.products-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.products-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
}

.results-info {
    color: #6c757d;
    font-size: 14px;
}

/* Enhanced Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new {
    background: #27ae60;
    color: white;
}

.badge.sale {
    background: #e74c3c;
    color: white;
}

.badge.bestseller {
    background: #f39c12;
    color: white;
}

.badge.premium {
    background: #9b59b6;
    color: white;
}

.badge.gaming {
    background: #34495e;
    color: white;
}

.badge.professional {
    background: #2c3e50;
    color: white;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: #3498db;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #f39c12;
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: #6c757d;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e74c3c;
}

.original-price {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* List View */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-grid.list-view .product-card {
    display: flex;
    height: 200px;
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 15px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter-section {
    background: #2c3e50;
    color: white;
    padding: 50px 0;
    text-align: center;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 12px 24px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #c0392b;
}

/* Quick View Modal */
.quick-view-content {
    max-width: 800px;
    width: 90%;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.quick-view-image img {
    width: 100%;
    border-radius: 10px;
}

.quick-view-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.quick-view-price {
    font-size: 2rem;
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 20px;
}

.quick-view-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quick-view-features {
    margin-bottom: 20px;
}

.quick-view-features h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.quick-view-features ul {
    list-style: none;
    padding: 0;
}

.quick-view-features li {
    padding: 5px 0;
    color: #6c757d;
}

.quick-view-features li:before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 10px;
}

.quick-view-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-view-actions .add-to-cart-btn {
    flex: 1;
    min-width: 150px;
}

/* Compare Products */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 1000;
}

.compare-bar.active {
    transform: translateY(0);
}

.compare-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.compare-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.compare-count {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.compare-actions {
    display: flex;
    gap: 10px;
}

.compare-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.compare-btn {
    background: #3498db;
    color: white;
}

.compare-btn:hover {
    background: #2980b9;
}

.clear-compare-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.clear-compare-btn:hover {
    background: white;
    color: #2c3e50;
}

/* Wishlist */
.wishlist-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
}

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

.wishlist-notification.error {
    background: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-content h1 {
        font-size: 2rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-left,
    .filters-right {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .products-header {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 25px;
    }
    
    .quick-view-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
    
    .compare-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
        height: auto;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 200px;
    }
    
    .filter-group,
    .sort-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .filter-group select,
    .sort-group select {
        min-width: auto;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-card.loading {
    pointer-events: none;
}

.product-card.loading .product-image {
    background: #f0f0f0;
}

.product-card.loading .product-info {
    background: #f8f9fa;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
button:focus,
select:focus,
input:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .filters-section,
    .product-actions,
    .add-to-cart-btn,
    .load-more-section,
    .newsletter-section {
        display: none;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
