/* ========================================
   SHOP PAGE - LUXE & ÉPURÉ v2.0
======================================== */

.shop-page {
    padding-top: 80px;
    background-color: #fff;
    min-height: 100vh;
}

.shop-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.shop-header {
    text-align: center;
    margin-bottom: 50px;
}

.shop-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #000000;
    margin-bottom: 15px;
}

.shop-header p {
    font-size: 18px;
    color: #666;
}

/* Shop Layout - Sidebar fixe + Grille fluide */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
}

/* === MOBILE FILTER TOGGLE === */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: linear-gradient(135deg, #D3AFC0, #c49aad);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(211, 175, 192, 0.4);
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(211, 175, 192, 0.5);
}

.mobile-filter-toggle i {
    margin-right: 8px;
    font-size: 18px;
}

/* === SIDEBAR FILTERS === */
.shop-sidebar {
    position: sticky;
    top: 100px;
    background: #F6F2EE;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.sidebar-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group h3 i {
    color: #D3AFC0;
    font-size: 16px;
}

/* Barre de recherche */
.search-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #D3AFC0;
    box-shadow: 0 0 0 4px rgba(211, 175, 192, 0.15);
}

/* Boutons de filtres */
.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    background: white;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.filter-btn i {
    font-size: 18px;
    color: #999;
    transition: color 0.2s ease;
}

.filter-btn:hover {
    background: white;
    border-color: #D3AFC0;
    color: #000;
}

.filter-btn:hover i {
    color: #D3AFC0;
}

.filter-btn.active {
    background: linear-gradient(135deg, #D3AFC0, #c49aad);
    color: white;
    border-color: transparent;
    font-weight: 600;
}

.filter-btn.active i {
    color: white;
}

/* === PRICE FILTER === */
.price-range-container {
    background: white;
    padding: 18px;
    border-radius: 12px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: #D3AFC0;
}

.price-separator {
    color: #ccc;
    font-size: 14px;
    padding-top: 20px;
}

.price-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #D3AFC0 0%, #D3AFC0 100%);
    border-radius: 3px;
    outline: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #D3AFC0, #c49aad);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(211, 175, 192, 0.4);
    transition: transform 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* Reset Button */
.reset-filters-btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reset-filters-btn:hover {
    border-color: #D3AFC0;
    color: #D3AFC0;
    background: #fdf9fb;
}

.reset-filters-btn i {
    font-size: 16px;
}

/* === SHOP TOOLBAR === */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: #F6F2EE;
    border-radius: 14px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
}

.results-count span {
    font-weight: 700;
    color: #000;
    font-size: 16px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Sort Dropdown */
.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    font-size: 13px;
    color: #666;
}

.sort-select {
    padding: 10px 35px 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #D3AFC0;
}

.sort-select:hover {
    border-color: #D3AFC0;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.view-btn {
    padding: 10px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
}

.view-btn:hover {
    color: #666;
    background: #f9f9f9;
}

.view-btn.active {
    background: linear-gradient(135deg, #D3AFC0, #c49aad);
    color: white;
}

.view-btn i {
    font-size: 18px;
}

/* === SHOP CONTENT === */
.shop-page .shop-content {
    min-height: 500px;
    display: block !important;
    grid-template-columns: none !important;
}

/* Products Grid */
.shop-products-grid,
#products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    transition: opacity 0.3s ease;
}

/* List View */
#products-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

#products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    max-height: 200px;
}

#products-grid.list-view .product-image {
    height: 100%;
    max-height: 200px;
}

#products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 25px;
}

#products-grid.list-view .btn-voir {
    width: auto;
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 30px;
}

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

/* Loading */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0e8e4;
    border-top-color: #D3AFC0;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #F6F2EE;
    border-radius: 16px;
}

.empty-state i {
    font-size: 60px;
    color: #D3AFC0;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 25px;
}

.btn-reset-empty {
    padding: 14px 30px;
    background: linear-gradient(135deg, #D3AFC0, #c49aad);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-empty:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(211, 175, 192, 0.4);
}
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* === PRODUCT CARD LUXE === */
.product-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #D3AFC0;
}

/* Badge Nouveau */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #D3AFC0, #c49aad);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
}

/* Image du produit */
.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

/* Overlay Quick Actions */
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    padding: 60px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Informations produit */
.product-info {
    padding: 22px;
    text-align: left;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    color: #000;
    font-weight: 600;
    line-height: 1.4;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.product-info .price {
    font-weight: 700;
    color: #D3AFC0;
    font-size: 1.3rem;
    margin: 5px 0 8px 0;
    display: block;
}

/* Stock Indicator */
.stock-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 0;
    margin-bottom: 5px;
}

.stock-indicator i {
    font-size: 14px;
}

.stock-unique {
    color: #9c6b8a;
}

.stock-unique i {
    color: #D3AFC0;
}

.stock-low {
    color: #e67e22;
}

.stock-low i {
    color: #e67e22;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stock-available {
    color: #27ae60;
}

.stock-available i {
    color: #27ae60;
}

/* Bouton Voir le produit */
.btn-voir {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background-color: #000;
    color: white;
    text-align: center;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-voir:hover {
    background: linear-gradient(135deg, #D3AFC0, #c49aad);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.wishlist-btn i {
    font-size: 20px;
    color: #ccc;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(211, 175, 192, 0.3);
}

.wishlist-btn:hover i {
    color: #D3AFC0;
}

.wishlist-btn.active i {
    color: #D3AFC0;
}

.wishlist-btn.active {
    animation: heart-beat 0.5s ease;
}

@keyframes heart-beat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    #products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .shop-page {
        padding-top: 100px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    #products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .shop-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-header {
        display: flex;
    }

    .shop-header h1 {
        font-size: 2.2rem;
    }

    .sort-dropdown label {
        display: none;
    }

    .product-image {
        height: 280px;
    }

    /* List view on mobile */
    #products-grid.list-view .product-card {
        grid-template-columns: 140px 1fr;
        max-height: 160px;
    }

    #products-grid.list-view .product-image {
        max-height: 160px;
    }

    #products-grid.list-view .product-info {
        padding: 15px;
    }

    #products-grid.list-view .product-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .shop-page {
        padding: 80px 0 80px;
    }

    .shop-header h1 {
        font-size: 1.8rem;
    }

    #products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .toolbar-actions {
        flex-direction: column;
        gap: 12px;
    }

    .sort-dropdown {
        width: 100%;
    }

    .sort-select {
        width: 100%;
    }

    .view-toggle {
        align-self: flex-end;
    }

    .product-image {
        height: 280px;
    }
}