/* ═══ CATALOG — banner catégorie + filtres + grid ═══ */

/* ─── Banner catégorie ─── */
.rr-cat-banner {
    position: relative;
    background: linear-gradient(135deg, var(--rr-charcoal), var(--rr-teal-dark));
    background-size: cover;
    background-position: center;
    padding: 70px 0;
    color: #fff;
    text-align: center;
}
.rr-cat-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,30,42,.75), rgba(20,56,66,.85));
}
.rr-cat-banner-inner { position: relative; z-index: 2; }
.rr-cat-banner h1 { color: #fff; font-size: 48px; margin-bottom: 8px; }
.rr-cat-banner p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 20px; }
.rr-cat-banner-meta { margin-top: 14px; }
.rr-cat-banner-meta span {
    display: inline-block;
    background: rgba(187,127,77,.25);
    border: 1px solid var(--rr-gold-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
}
.rr-cat-banner-meta strong { color: var(--rr-gold-light); }

/* ─── Layout catalog ─── */
.rr-catalog-wrap { padding: 40px 0 60px; }
.rr-catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: flex-start;
}

/* ─── FILTRES (sidebar refaite) ─── */
.rr-filters {
    background: #fff;
    border: 1px solid var(--rr-border-l);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.rr-filters::-webkit-scrollbar { width: 6px; }
.rr-filters::-webkit-scrollbar-thumb { background: var(--rr-gold-light); border-radius: 3px; }

.rr-filter-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rr-border-l);
}
.rr-filter-head h3 { margin: 0; font-size: 17px; color: var(--rr-teal); }
.rr-filter-reset {
    font-size: 12px;
    color: var(--rr-muted);
    text-decoration: none;
}
.rr-filter-reset:hover { color: var(--rr-red); }

.rr-filter-block {
    padding: 14px 0;
    border-bottom: 1px solid var(--rr-border-l);
}
.rr-filter-block:last-of-type { border-bottom: none; }
.rr-filter-block h4 {
    font-family: var(--rr-font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--rr-charcoal);
    margin: 0 0 12px;
    font-weight: 700;
    display: flex; align-items: center; gap: 6px;
}
.rr-filter-block h4::before {
    content: '';
    display: inline-block;
    width: 3px; height: 14px;
    background: var(--rr-gold);
    border-radius: 2px;
}

/* ─── Radio custom ─── */
.rr-radio-group { display: flex; flex-direction: column; gap: 6px; }
.rr-radio {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    background: #faf7f5;
    border: 1.5px solid var(--rr-border-l);
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
    font-size: 13px;
}
.rr-radio:hover { border-color: var(--rr-gold-light); background: var(--rr-gold-pale); }
.rr-radio input[type=radio] {
    appearance: none;
    width: 16px; height: 16px;
    border: 2px solid var(--rr-border);
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.rr-radio input[type=radio]:checked {
    border-color: var(--rr-gold);
    background: var(--rr-gold);
    box-shadow: inset 0 0 0 3px #fff;
}
.rr-radio:has(input:checked) {
    border-color: var(--rr-gold);
    background: var(--rr-gold-pale);
    font-weight: 600;
}

/* ─── Checkbox custom ─── */
.rr-check-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.rr-check {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 9px;
    background: #faf7f5;
    border: 1.5px solid var(--rr-border-l);
    border-radius: 5px;
    cursor: pointer;
    transition: all .15s;
    font-size: 12px;
}
.rr-check:hover { border-color: var(--rr-gold-light); }
.rr-check input[type=checkbox] {
    appearance: none;
    width: 14px; height: 14px;
    border: 1.5px solid var(--rr-border);
    border-radius: 3px;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all .15s;
}
.rr-check input[type=checkbox]:checked {
    background: var(--rr-gold);
    border-color: var(--rr-gold);
}
.rr-check input[type=checkbox]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}
.rr-check:has(input:checked) {
    background: var(--rr-gold-pale);
    border-color: var(--rr-gold);
    font-weight: 600;
}

/* ─── Price range ─── */
.rr-price-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.rr-price-input {
    position: relative;
    display: flex; align-items: center;
    background: #faf7f5;
    border: 1.5px solid var(--rr-border-l);
    border-radius: 6px;
    padding: 0 10px 0 6px;
    transition: all .15s;
}
.rr-price-input:focus-within {
    border-color: var(--rr-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(187,127,77,.15);
}
.rr-price-input label {
    font-size: 10px;
    color: var(--rr-muted);
    text-transform: uppercase;
    padding: 0 6px;
    margin-bottom: 0;
    font-weight: 600;
}
.rr-price-input input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 9px 4px !important;
    font-size: 13px !important;
    box-shadow: none !important;
    width: 100%;
    -moz-appearance: textfield;
}
.rr-price-input input::-webkit-outer-spin-button,
.rr-price-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rr-price-input input:focus { outline: none; }

.rr-price-presets {
    display: flex; gap: 5px; flex-wrap: wrap;
}
.rr-chip {
    padding: 5px 10px;
    background: #fff;
    border: 1.5px solid var(--rr-border);
    border-radius: 14px;
    font-size: 11px;
    color: var(--rr-text);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.rr-chip:hover {
    background: var(--rr-gold-pale);
    border-color: var(--rr-gold);
    color: var(--rr-gold);
}

/* ─── Catalog toolbar ─── */
.rr-catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--rr-border-l);
    border-radius: 8px;
    margin-bottom: 18px;
}
.rr-catalog-count { font-size: 14px; color: var(--rr-muted); }
.rr-catalog-count strong { color: var(--rr-charcoal); }
.rr-filter-reset-link {
    margin-left: 12px;
    font-size: 12px;
    color: var(--rr-red);
    text-decoration: none;
}
.rr-catalog-view { display: flex; gap: 4px; }
.rr-view-btn {
    width: 36px; height: 36px;
    background: #faf7f5;
    border: 1.5px solid var(--rr-border-l);
    border-radius: 5px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--rr-muted);
    transition: all .15s;
}
.rr-view-btn:hover { border-color: var(--rr-gold); color: var(--rr-gold); }
.rr-view-btn.active {
    background: var(--rr-gold);
    border-color: var(--rr-gold);
    color: #fff;
}

/* ─── Catalog list view ─── */
.rr-catalog-list {
    grid-template-columns: 1fr !important;
}
.rr-catalog-list .rr-product-card {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}
.rr-catalog-list .rr-product-img {
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
}
.rr-catalog-list .rr-product-body { padding: 0; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .rr-catalog-layout { grid-template-columns: 1fr; }
    .rr-filters { position: static; max-height: none; }
    .rr-cat-banner h1 { font-size: 36px; }
}
@media (max-width: 768px) {
    .rr-check-group { grid-template-columns: 1fr; }
    .rr-catalog-list .rr-product-card { grid-template-columns: 1fr; }
}
