/* =============================================================================
   CATALOGUE & HOME
   ============================================================================= */
.home-container {
    padding: 2.5rem 2rem;
}

.home-header {
    margin-bottom: 2rem;
}

.home-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
}

.home-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.home-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.home-main {
    flex: 1;
    min-width: 0;
}

/* Filtres */
.filter-section {
    padding: 1.25rem;
}

.filter-section summary {
    list-style: none;
    cursor: pointer;
    outline: none;
}

.filter-section summary::-webkit-details-marker {
    display: none;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.filter-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
}

.filter-checkbox-item input {
    accent-color: var(--accent-color);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.filter-clear-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--glass-border);
}

/* Grouped Categories */
.filter-groups-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.filter-group-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 0.75rem;
}

.filter-group-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    user-select: none;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.filter-group-header:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.filter-group-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.arrow-icon {
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-group-item.expanded .arrow-icon {
    transform: rotate(90deg);
}

.filter-group-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.filter-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    flex: 1;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group-header:hover .filter-group-title,
.filter-group-header:hover .arrow-icon {
    color: var(--accent-color);
}

.filter-group-content {
    display: none;
    padding-left: 2rem;
    margin-top: 0.5rem;
}

.filter-group-item.expanded .filter-group-content {
    display: flex;
    flex-direction: column;
}

/* Tri */
.sort-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.sort-label {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.sort-link {
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sort-link.active {
    border-color: var(--accent-color);
    background: rgba(23, 93, 155, 0.08);
    color: var(--accent-color);
    font-weight: 600;
}

/* Grille produits */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}

.product-card-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    padding: 1rem;
    position: relative;
    height: 100%;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    height: 210px;
    background: #ffffff;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-body {
    padding: 0 0.25rem 0.25rem;
}

.product-card-category {
    margin-bottom: 0.2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.home-product-category {
    color: var(--text-muted);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.home-product-price {
    color: var(--accent-color);
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-products {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-alt);
    border-radius: 1.5rem;
    border: 2px dashed var(--glass-border);
}

.no-products svg {
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.no-products h2 {
    font-size: 1.1rem;
    font-weight: 600;
}
