/* static/css/store.css */

/*
========================================
STYLES SPÉCIFIQUES À LA PAGE BOUTIQUE
========================================
*/

/* 1. Bannière de la page
------------------------------------------*/
.store-header {
    background-color: var(--warm-beige);
    text-align: center;
    padding: 3rem 1rem;
}

.store-header h1 {
    font-size: 2.8rem;
    color: var(--primary-orange);
}

.store-header p {
    font-size: 1.1rem;
    color: var(--text-subtle);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* 2. Conteneur principal (Sidebar + Produits)
------------------------------------------*/
.store-container {
    display: flex;
    flex-wrap: wrap; /* Pour le responsive */
    gap: 2.5rem; /* Espace entre sidebar et produits */
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 3. Barre latérale des filtres
------------------------------------------*/
.store-sidebar {
    flex: 0 0 280px; /* Base de 280px, ne grandit/rétrécit pas */
}

.filter-group {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.filter-group h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.category-list, .subcategory-list {
    list-style: none;
    padding-left: 0;
}

.subcategory-list {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid #f0f0f0;
}

.category-list a {
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--text-subtle);
    font-weight: 500;
}

.category-list a:hover {
    background-color: var(--cream);
    color: var(--primary-orange);
    text-decoration: none;
}

.category-list a.active {
    color: var(--primary-orange);
    font-weight: 700;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background-color: #fff;
    cursor: pointer;
}

/* 4. Section des produits
------------------------------------------*/
.store-products {
    flex: 1; /* Prend tout le reste de la place */
    min-width: 0; /* Correction pour le flexbox */
}

.store-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.product-count {
    color: var(--text-subtle);
    font-size: 0.9rem;
}

.view-options button {
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    color: #ccc;
    transition: var(--transition-fast);
}

.view-options button.active {
    color: var(--primary-orange);
}

/* 5. Pagination
------------------------------------------*/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.pagination a, .pagination span.current {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.pagination a {
    background-color: #fff;
    border: 1px solid #eee;
    color: var(--text-dark);
}

.pagination a:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.pagination span.current {
    background: var(--primary-orange);
    color: var(--text-light);
    border: 1px solid var(--primary-orange);
}