/* ===== SHEIN PREMIUM E-COMMERCE STYLES ===== */

:root {
    --primary: #000;
    --secondary: #666;
    --accent: #e31c23;
    --background: #f5f5f5;
    --white: #fff;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--primary);
    background: var(--background);
}

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

/* ===== HEADER ===== */
.premium-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-link:hover {
    border-bottom-color: var(--primary);
}

.nav-link.sale {
    color: var(--accent);
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
    padding: 8px;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* ===== LAYOUT ===== */
.main-content {
    padding: 16px 0;
    min-height: calc(100vh - 200px);
}

.content-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
}

/* ===== SIDEBAR FILTRES ===== */
.filters-sidebar {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 15px;
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
    /* Override sidebar-accordion.css .sidebar width */
    width: auto !important;
    flex-shrink: unset !important;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-header button {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 13px;
    cursor: pointer;
}

.sidebar-header button:hover {
    color: var(--accent);
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.filter-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
}

.rating-option .fa-star {
    color: #ffa500;
    font-size: 14px;
}

.apply-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== PRODUCTS AREA ===== */
.products-area {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.toolbar h2 {
    font-size: 18px;
    font-weight: 400;
}

.toolbar select {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

.rating .fa-star {
    color: #ffa500;
}

.rating span {
    color: var(--secondary);
    font-size: 12px;
}

.price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price .current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.price .original {
    font-size: 14px;
    color: var(--secondary);
    text-decoration: line-through;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
