/* ========================================
   PRODUITS.CSS - Page Produits uniquement
   ======================================== */

/* Filters Section */
.filters-section {
    padding: 50px 100px;
    max-width: 1512px;
    margin: 0 auto;
}

.divider {
    border: none;
    border-top: 1px solid rgba(25, 25, 25, 0.2);
    margin-bottom: 25px;
}

.filters-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.filter-box {
    flex: 1;
    border: 1px solid rgba(25, 25, 25, 0.3);
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    position: relative;
    border-radius: 0;
    overflow: visible;
}

.filter-box:hover {
    border-color: var(--accent-yellow);
    background: rgba(253, 208, 110, 0.05);
}

.filter-box select {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    width: 100%;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 14px 40px 14px 16px;
    position: relative;
    z-index: 2;
}

.filter-box select:focus {
    outline: none;
}

.filter-box select option {
    padding: 12px 16px;
    background: white;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 14px;
}

.filter-box.search {
    flex: 3;
    padding: 14px 16px;
}

.filter-box.search input {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    width: 100%;
    outline: none;
}

.filter-box.search input::placeholder {
    color: rgba(25, 25, 25, 0.5);
}

.filter-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.filter-box.search .filter-icon {
    position: static;
    transform: none;
    margin-left: 10px;
}

/* Categories */
.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.category-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(25, 25, 25, 0.3);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-dark);
}

.category-btn.active {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border-color: var(--accent-yellow);
}

.category-btn:not(.active) {
    background: white;
    font-weight: 400;
}

.category-btn:hover {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* Products Grid */
.products-section {
    padding: 0 100px 100px;
    max-width: 1512px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.product-card.reveal-left {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    width: 100%;
    height: 364px;
    background: transparent;
    overflow: hidden;
    position: relative;
    border: none;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    transition: transform 0.3s;
    opacity: 0;
}

.product-image-container img.loaded {
    opacity: 1;
}

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

/* Styles spécifiques pour Kartell et Foscarini */
.product-image-container.special-supplier-product {
    background-color: #FFFFFF;
}

.product-image-container.special-supplier-product img {
    object-fit: contain;
    object-position: center center;
    padding: 20px;
}

/* BADGES PROMOTION / DESTOCKAGE */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 10;
    border-radius: 0;
    color: #FFFFFF;
}

.product-badge.badge-promotion {
    background-color: #7DCB8F;
}

.product-badge.badge-destockage {
    background-color: #FF6B6B;
}

.badge-new {
    background: #47A9FF;
}

.badge-promo {
    background: #7DCB8F;
}

.badge-sale {
    background: #000000;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-details h3 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-details p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* PRIX NORMAUX ET PROMOS */
.product-price-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.product-price-old {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
}

.product-price-promo {
    background-color: var(--accent-yellow);
    padding: 4px 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-block;
    width: fit-content;
}

.product-price.old-price {
    background: var(--accent-yellow);
    padding: 2px 6px;
    font-size: 12px;
}

/* Heart Icon */
.heart-icon {
    cursor: pointer;
    position: relative;
    z-index: 10;
    padding: 5px;
}

.heart-icon i {
    transition: all 0.3s ease;
    font-size: 18px;
}

.heart-icon i.favorite {
    color: red !important;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.heartbeat-animation {
    animation: heartbeat 0.6s ease-in-out;
}

/* See More Button */
.see-more-wrapper {
    text-align: center;
    margin-top: 50px;
}

.btn-primary .loading-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.btn-primary.loading .loading-spinner {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Favoris Button */
.floating-favoris-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-yellow);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-favoris-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    background-color: #222;
}

.floating-favoris-btn i {
    font-size: 24px;
    color: red;
    transition: all 0.3s ease;
}

.floating-favoris-btn .favoris-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.floating-favoris-btn.showing-favoris {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
}

/* Favoris Banner */
.favoris-banner {
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: var(--bg-cream);
    border-left: 5px solid var(--accent-yellow);
    border-radius: 5px;
    display: none;
}

.favoris-banner h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.favoris-banner p {
    font-size: 14px;
    color: var(--text-muted);
}

body.showing-favoris .favoris-banner {
    display: block;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 18px;
    grid-column: 1 / -1;
}

/* Product Counter */
.product-counter-container {
    text-align: right;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Utility Classes */
.d-none {
    display: none !important;
}

/* ========================================
   RESPONSIVE - Page Produits
   ======================================== */

@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .filters-section,
    .products-section {
        padding-left: 40px;
        padding-right: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .filters-row {
        flex-wrap: wrap;
    }

    .filter-box {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .filters-section,
    .products-section {
        padding: 40px 20px;
    }

    .categories-wrapper {
        max-height: 200px;
        overflow-y: auto;
    }

    .product-image-container {
        height: 300px;
    }

    .filter-box {
        min-width: 100%;
    }
}