/* ============================================================
   PAGE CATEGORIE — styles spécifiques
   Palette : #1c2209 | #253005 | #4a5214 | #94a51e | #a7bd22 | #c8d840
   Fond : #f4f5f0 | Anton (titres) | Poppins (corps)
   Préfixe : cat-*
   ============================================================ */

/* ----- Wrapper --------------------------------------------- */
.cat-page-wrapper {
    background: #f4f5f0;
    min-height: 70vh;
    padding-bottom: 60px;
}

/* ----- Hero ----------------------------------------------- */
.cat-hero {
    background: linear-gradient(135deg, #253005, #4a5214);
    padding: 32px 0 26px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.cat-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cat-hero-inner {
    position: relative;
    z-index: 1;
}

/* Breadcrumb inside hero */
.cat-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0 0 14px;
    font-size: 0.78rem;
}
.cat-breadcrumb li {
    display: flex;
    align-items: center;
    color: rgba(200,216,64,0.75);
}
.cat-breadcrumb li + li::before {
    content: '›';
    margin: 0 7px;
    color: rgba(200,216,64,0.45);
    font-size: 1rem;
    line-height: 1;
}
.cat-breadcrumb li a {
    color: rgba(200,216,64,0.75);
    text-decoration: none;
    transition: color 0.18s;
}
.cat-breadcrumb li a:hover {
    color: #c8d840;
    text-decoration: none;
}
.cat-breadcrumb li:last-child {
    color: rgba(255,255,255,0.6);
}

/* Title row */
.cat-hero-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.cat-hero-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.7rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cat-hero-title i { font-size: 1.3rem; opacity: 0.75; }
.cat-hero-count {
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

/* ----- Active filters strip -------------------------------- */
.cat-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.cat-filter-label {
    font-size: 0.78rem;
    color: #888;
    font-weight: 600;
    margin-right: 4px;
    white-space: nowrap;
}
.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #a7bd22;
    color: #4a5214;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.cat-tag:hover {
    background: #f5f7e8;
    border-color: #94a51e;
    color: #4a5214;
    text-decoration: none;
}
.cat-tag i { font-size: 0.65rem; opacity: 0.7; }

/* ----- Sidebar -------------------------------------------- */
.cat-sidebar { position: sticky; top: 20px; }

.cat-filter-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-bottom: 16px;
    overflow: visible;
}
.cat-filter-card .cat-filter-header {
    border-radius: 12px 12px 0 0;
}
.cat-filter-header {
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fafafa;
}
.cat-filter-header i { color: #94a51e; font-size: 0.85rem; }
.cat-filter-body { padding: 14px 16px; }

/* ----- Dual range slider (prix min–max) ------------------- */
.cat-dual-wrap {
    position: relative;
    height: 36px;
    margin: 6px 8px 18px;  /* horizontal margin leaves room for thumb at edges */
}
.cat-dual-track-bg {
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 6px;
    margin-top: -3px;
    background: #e0e0e0;
    border-radius: 3px;
    pointer-events: none;
    overflow: visible;
}
.cat-dual-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #94a51e, #a7bd22);
    border-radius: 3px;
    pointer-events: none;
}
/* Both range thumbs stacked */
.cat-range-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    margin: 0; padding: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    pointer-events: none;
    z-index: 4;
}
.cat-range-thumb::-webkit-slider-runnable-track {
    background: transparent;
    height: 6px;
}
.cat-range-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #94a51e;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
    cursor: grab;
    pointer-events: all;
    margin-top: -7px;
    transition: border-color 0.2s, transform 0.15s;
}
.cat-range-thumb::-webkit-slider-thumb:hover { transform: scale(1.12); border-color: #7a8a18; }
.cat-range-thumb:active::-webkit-slider-thumb { cursor: grabbing; }
.cat-range-thumb::-moz-range-track { background: transparent; border: none; height: 6px; }
.cat-range-thumb::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #94a51e;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
    cursor: grab;
    pointer-events: all;
}

/* ----- Price number inputs (shared with search page) ------ */
.srch-price-range {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}
.srch-price-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.srch-price-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a51e;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}
.srch-price-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.srch-price-input {
    width: 100%;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 7px 22px 7px 9px;
    font-size: 0.85rem;
    color: #333;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}
.srch-price-input::-webkit-outer-spin-button,
.srch-price-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.srch-price-input:focus {
    border-color: #94a51e;
    box-shadow: 0 0 0 3px rgba(148,165,30,0.12);
}
.srch-price-sym {
    position: absolute;
    right: 8px;
    font-size: 0.78rem;
    color: #aaa;
    pointer-events: none;
}
.srch-price-dash {
    font-size: 1rem;
    color: #ccc;
    padding-bottom: 8px;
    flex-shrink: 0;
}

/* ----- Apply price button --------------------------------- */
.cat-price-apply-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #94a51e, #a7bd22);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 12px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(148,165,30,0.28);
}
.cat-price-apply-btn:hover {
    background: linear-gradient(135deg, #7a8a18, #94a51e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(148,165,30,0.4);
}

/* ----- Attribute checkboxes (shared with search page) ----- */
.srch-attr-list { display: flex; flex-direction: column; gap: 2px; }
.srch-attr-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 6px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.srch-attr-item:hover { background: #f5f7e8; }
.srch-attr-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #94a51e;
    cursor: pointer;
    flex-shrink: 0;
}
.srch-attr-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.srch-attr-label {
    font-size: 0.82rem;
    color: #444;
    font-weight: 500;
    flex: 1;
}
.srch-attr-item input:checked ~ .srch-attr-label { color: #4a5214; font-weight: 700; }

/* ----- Type filter (sous_sous_famille) -------------------- */
.cat-type-list { display: flex; flex-direction: column; gap: 4px; }
.cat-type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
    font-size: 0.84rem;
    color: #444;
}
.cat-type-item:hover { background: #f5f7e8; }
.cat-type-item input[type="radio"] {
    accent-color: #94a51e;
    cursor: pointer;
    flex-shrink: 0;
}
.cat-type-item span { font-size: 0.84rem; color: #444; }
.cat-type-item input:checked ~ span { color: #4a5214; font-weight: 700; }

/* ----- Marque filter -------------------------------------- */
.cat-brand-list { display: flex; flex-direction: column; gap: 4px; }
.cat-brand-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.cat-brand-item:hover { background: #f5f7e8; }
.cat-brand-item input[type="radio"] {
    accent-color: #94a51e;
    cursor: pointer;
    flex-shrink: 0;
}
.cat-brand-label { font-size: 0.84rem; color: #444; }
.cat-brand-item input:checked ~ .cat-brand-label { color: #4a5214; font-weight: 700; }

/* ----- Sort bar ------------------------------------------- */
.cat-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.cat-result-count {
    font-size: 0.88rem;
    color: #777;
}
.cat-result-count strong { color: #2a2a2a; }
.cat-sort-select {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.85rem;
    color: #444;
    background: #fff;
    outline: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}
.cat-sort-select:focus { border-color: #94a51e; box-shadow: 0 0 0 3px rgba(148,165,30,0.12); }

/* ----- categorieSup image cards --------------------------- */
.cat-sup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 32px 0 48px;
}
.cat-sub-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    display: block;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    background: #2a3310;
}
.cat-sub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.20);
    text-decoration: none;
}
.cat-sub-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.cat-sub-card:hover .cat-sub-img { transform: scale(1.07); }
.cat-sub-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15,22,3,0.88) 0%,
        rgba(15,22,3,0.18) 55%,
        transparent 100%
    );
}
.cat-sub-foot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 14px 14px;
}
.cat-sub-name {
    font-family: 'Anton', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 8px;
    display: block;
}
.cat-sub-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #a7bd22;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 11px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.22s, transform 0.22s;
}
.cat-sub-card:hover .cat-sub-cta { opacity: 1; transform: translateY(0); }

/* ----- "Plus dans" section -------------------------------- */
.cat-more-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e4e8b0;
}
.cat-more-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.05rem;
    color: #4a5214;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cat-more-title i { color: #94a51e; font-size: 0.9rem; }
.cat-more-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cat-more-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1.5px solid #d0dc6a;
    color: #3a4410;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cat-more-pill i { font-size: 0.6rem; color: #94a51e; transition: color 0.15s; }
.cat-more-pill:hover {
    background: #a7bd22;
    color: #fff;
    border-color: #a7bd22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148,165,30,0.30);
    text-decoration: none;
}
.cat-more-pill:hover i { color: rgba(255,255,255,0.85); }

/* ----- Pro notice ----------------------------------------- */
.cat-pro-notice {
    background: #f6f8e5;
    border-left: 4px solid #a7bd22;
    border-radius: 0 8px 8px 0;
    padding: 10px 16px;
    font-size: 0.83rem;
    color: #4a5214;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ----- Empty state ---------------------------------------- */
.cat-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cat-empty-icon { font-size: 4rem; color: #ddd; margin-bottom: 18px; }
.cat-empty-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.4rem;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.cat-empty-sub { font-size: 0.9rem; color: #bbb; }

/* ----- Responsive ----------------------------------------- */
@media (max-width: 991px) {
    .cat-sidebar { position: static; margin-bottom: 24px; }
    .cat-hero { padding: 22px 0 18px; }
}
@media (max-width: 575px) {
    .cat-hero-title { font-size: 1.2rem; }
    .cat-hero-count { font-size: 0.78rem; }
}
@media (max-width: 480px) {
    .cat-sup-grid { grid-template-columns: 1fr; }
}
