/* ---------- Page soldes ---------- */
.rnf-soldes-page {
    text-align: center;
}
.rnf-soldes-filtres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 24px;
}
.rnf-soldes-filtres a {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--rnf-burgundy, #8B2252);
    border-radius: var(--rnf-radius, 12px);
    color: var(--rnf-burgundy, #8B2252);
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: 13px;
    text-decoration: none;
    transition: var(--rnf-transition, all .3s ease);
}
.rnf-soldes-filtres a:hover,
.rnf-soldes-filtres a.is-active {
    background: var(--rnf-burgundy, #8B2252);
    color: var(--rnf-white, #fff);
}
.rnf-soldes-vide {
    color: var(--rnf-text-light, #666);
    font-style: italic;
    padding: 40px 0;
}

/* ---------- Carrousel ---------- */
.rnf-soldes-carrousel {
    margin: 32px 0;
    text-align: center;
}
.rnf-soldes-carrousel__titre {
    font-family: var(--rnf-font-display, 'Playfair Display', serif);
    color: var(--rnf-burgundy, #8B2252);
    margin-bottom: 20px;
}
.rnf-soldes-carrousel__wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.rnf-soldes-carrousel__track {
    display: flex !important;
    gap: 16px;
    margin: 0;
    padding: 4px;
    list-style: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.rnf-soldes-carrousel__track::-webkit-scrollbar {
    display: none;
}
.rnf-soldes-carrousel__track > li.product {
    flex: 0 0 auto;
    width: calc(25% - 12px);
    margin: 0 !important;
    scroll-snap-align: start;
}
.rnf-soldes-carrousel__nav {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--rnf-burgundy, #8B2252);
    color: var(--rnf-white, #fff);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--rnf-shadow, 0 2px 12px rgba(139,34,82,.12));
    transition: var(--rnf-transition, all .3s ease);
}
.rnf-soldes-carrousel__nav:hover {
    background: var(--rnf-burgundy-light, #b87a8f);
}
.rnf-soldes-carrousel__nav:disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 1024px) {
    .rnf-soldes-carrousel__track > li.product { width: calc(33.333% - 11px); }
}
@media (max-width: 768px) {
    .rnf-soldes-carrousel__track > li.product { width: calc(50% - 8px); }
}
@media (max-width: 480px) {
    .rnf-soldes-carrousel__track > li.product { width: calc(80% - 8px); }
    .rnf-soldes-carrousel__nav { width: 34px; height: 34px; font-size: 18px; }
}

/* ---------- Header catégorie soldes ---------- */
.raf-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .82rem;
    color: #6b4a58;
}
.raf-breadcrumb a {
    color: #6b4a58;
    text-decoration: none;
    transition: color .2s ease;
}
.raf-breadcrumb a:hover { color: #C1526E; }
.raf-breadcrumb__sep { color: #B8956A; font-weight: 300; }
.raf-breadcrumb__current { color: #8B2252; font-weight: 600; }
.raf-cat-header,
.raf-sale-header {
    position: relative;
    padding: clamp(22px, 4vw, 38px);
    margin-bottom: 32px;
    border: 1px solid rgba(184, 149, 106, .22);
    border-radius: 26px;
    background: radial-gradient(circle at top left, rgba(193, 82, 110, .12), transparent 34%), linear-gradient(135deg, #fff8f5 0%, #fff 52%, #fff4f7 100%);
    box-shadow: 0 18px 45px rgba(139, 34, 82, .07);
    overflow: hidden;
}
.raf-sale-header::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(184, 149, 106, .14);
    pointer-events: none;
}
.raf-cat-header__intro,
.raf-sale-header__intro {
    position: relative;
    z-index: 1;
    margin-bottom: 26px;
    max-width: 860px;
}
.raf-sale-header__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(139, 34, 82, .08);
    color: #8B2252;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.raf-cat-header__title,
.raf-sale-header__title {
    font-family: var(--rnf-font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 650;
    color: #8B2252;
    margin: 0 0 12px;
    line-height: 1.08;
}
.raf-cat-header__desc,
.raf-sale-header__desc {
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: clamp(1rem, 1.4vw, 1.08rem);
    line-height: 1.7;
    color: #6b4a58;
    margin: 0;
    max-width: 760px;
}
.raf-sale-header__desc strong { color: #8B2252; font-weight: 800; }
.raf-sale-header__reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.raf-sale-header__reassurance span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(184,149,106,.18);
    color: #6b4a58;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .82rem;
    font-weight: 600;
}
.raf-sale-header__reassurance span::before { content: "✓"; color: #8B2252; font-weight: 800; }
.raf-sale-intents { position: relative; z-index: 1; margin: 26px 0 20px; }
.raf-sale-intents__title {
    margin: 0 0 12px;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .95rem;
    font-weight: 800;
    color: #8B2252;
}
.raf-sale-intents__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.raf-sale-intent {
    display: flex;
    flex-direction: column;
    min-height: 118px;
    padding: 17px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(139,34,82,.12);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(139,34,82,.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.raf-sale-intent:hover {
    transform: translateY(-2px);
    border-color: rgba(139,34,82,.28);
    background: #fff;
    box-shadow: 0 16px 32px rgba(139,34,82,.11);
}
.raf-sale-intent__label {
    display: block;
    margin-bottom: 7px;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.25;
    color: #8B2252;
}
.raf-sale-intent__text {
    display: block;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .84rem;
    line-height: 1.45;
    color: #6b4a58;
}
.raf-sale-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 0;
}
.raf-sale-main-btn,
.raf-sale-featured__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 999px;
    background: #8B2252;
    color: #fff;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(139,34,82,.18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.raf-sale-main-btn:hover,
.raf-sale-featured__btn:hover {
    background: #C1526E;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(139,34,82,.22);
}
.raf-cat-header__pills,
.raf-sale-pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}
.raf-sale-pills__label {
    display: inline-flex;
    align-items: center;
    margin-right: 2px;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .86rem;
    font-weight: 800;
    color: #6b4a58;
}
.raf-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 9px 18px;
    background: #fff;
    border: 1px solid rgba(139,34,82,.15);
    border-radius: 999px;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .88rem;
    font-weight: 700;
    color: #8B2252;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.raf-pill:hover {
    background: #8B2252;
    border-color: #8B2252;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(139,34,82,.16);
}
.rnf-remise-all .raf-pill--all,
.rnf-remise-20 .raf-pill--20,
.rnf-remise-30 .raf-pill--30,
.rnf-remise-40 .raf-pill--40,
.rnf-remise-50 .raf-pill--50,
.rnf-remise-70 .raf-pill--70 {
    background: #8B2252;
    border-color: #8B2252;
    color: #fff;
    box-shadow: 0 8px 20px rgba(139,34,82,.16);
}

/* ---------- Panneaux de mise en avant ---------- */
.raf-sale-featured-hub { margin: 0 0 34px; }
.raf-sale-featured-hub__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: clamp(20px, 3vw, 28px);
    border-radius: 24px;
    background: #fff8f5;
    border: 1px solid rgba(184,149,106,.22);
}
.raf-sale-featured-hub__eyebrow {
    margin: 0 0 8px;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #C1526E;
}
.raf-sale-featured-hub__title {
    margin: 0 0 8px;
    font-family: var(--rnf-font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.15;
    color: #8B2252;
}
.raf-sale-featured-hub__text {
    margin: 0;
    max-width: 720px;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .96rem;
    line-height: 1.6;
    color: #6b4a58;
}
.raf-sale-featured-hub__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.raf-sale-featured-hub__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(139,34,82,.14);
    color: #8B2252;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s ease;
}
.raf-sale-featured-hub__chip:hover {
    background: #8B2252;
    border-color: #8B2252;
    color: #fff;
}
.raf-sale-featured {
    scroll-margin-top: 110px;
    margin: 0 0 30px;
    padding: clamp(18px, 3vw, 26px);
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(139,34,82,.12);
    box-shadow: 0 12px 30px rgba(139,34,82,.06);
}
.raf-sale-featured__head { margin-bottom: 18px; }
.raf-sale-featured__title {
    margin: 0 0 8px;
    font-family: var(--rnf-font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.15;
    color: #8B2252;
}
.raf-sale-featured__text {
    margin: 0;
    max-width: 740px;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .94rem;
    line-height: 1.6;
    color: #6b4a58;
}
.raf-sale-featured__linkwrap { margin: 12px 0 0; }
.raf-sale-featured__textlink {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--rnf-font-body, 'DM Sans', sans-serif);
    font-size: .9rem;
    font-weight: 800;
    color: #8B2252;
    text-decoration: none;
    border-bottom: 1px solid rgba(139,34,82,.28);
    transition: color .2s ease, border-color .2s ease;
}
.raf-sale-featured__textlink::after { content: "→"; font-weight: 900; transform: translateY(-1px); }
.raf-sale-featured__textlink:hover { color: #C1526E; border-color: #C1526E; }
.raf-products-anchor { scroll-margin-top: 110px; }
@media (max-width: 1024px) {
    .raf-sale-intents__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .raf-sale-intent { min-height: 105px; }
    .raf-sale-featured-hub__top { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 768px) {
    .raf-breadcrumb { margin: 12px 0 16px; font-size: .78rem; }
    .raf-cat-header,
    .raf-sale-header { padding: 22px 18px; margin-bottom: 24px; border-radius: 22px; }
    .raf-sale-header::after { right: -120px; top: -120px; }
    .raf-cat-header__intro,
    .raf-sale-header__intro { margin-bottom: 22px; }
    .raf-cat-header__title,
    .raf-sale-header__title { font-size: 2rem; }
    .raf-cat-header__desc,
    .raf-sale-header__desc { font-size: .95rem; line-height: 1.6; }
    .raf-sale-header__reassurance { gap: 7px; }
    .raf-sale-header__reassurance span { font-size: .78rem; padding: 7px 10px; }
    .raf-sale-intents { margin: 22px 0; }
    .raf-sale-intents__grid { grid-template-columns: 1fr; gap: 9px; }
    .raf-sale-intent { min-height: auto; padding: 14px; border-radius: 16px; }
    .raf-sale-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .raf-sale-pills__label { grid-column: 1 / -1; margin-bottom: 2px; }
    .raf-sale-pills .raf-pill { width: 100%; min-height: 42px; padding: 8px 12px; font-size: .82rem; text-align: center; white-space: normal; }
    .raf-sale-main-btn,
    .raf-sale-featured__btn { width: 100%; }
    .raf-sale-featured-hub__top,
    .raf-sale-featured { padding: 18px 14px; border-radius: 20px; }
    .raf-sale-featured-hub__chip { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
    .raf-sale-pills { grid-template-columns: 1fr; }
    .raf-cat-header__title,
    .raf-sale-header__title { font-size: 1.75rem; }
}

/* ---------- Scroll horizontal des produits dans les panneaux de mise en avant ----------
   Important : ce bloc est volontairement en fin de fichier pour passer après Astra/WooCommerce. */
body.tax-product_cat.term-soldes .raf-sale-featured {
    overflow: hidden;
}

body.tax-product_cat.term-soldes .raf-sale-featured > .woocommerce,
body.tax-product_cat.term-soldes .raf-sale-featured > .rnf-sale-products-scroll {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 4px 2px 18px !important;
}

body.tax-product_cat.term-soldes .raf-sale-featured > .woocommerce > ul.products,
body.tax-product_cat.term-soldes .raf-sale-featured ul.products,
body.tax-product_cat.term-soldes .raf-sale-featured ul.products.products,
body.tax-product_cat.term-soldes .raf-sale-featured ul.products[class*="columns-"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 18px !important;
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 4px 8px !important;
    overflow: visible !important;
    list-style: none !important;
}

body.tax-product_cat.term-soldes .raf-sale-featured ul.products::before,
body.tax-product_cat.term-soldes .raf-sale-featured ul.products::after {
    display: none !important;
    content: none !important;
}

body.tax-product_cat.term-soldes .raf-sale-featured ul.products li.product,
body.tax-product_cat.term-soldes .raf-sale-featured ul.products[class*="columns-"] li.product {
    display: block !important;
    float: none !important;
    clear: none !important;
    flex: 0 0 290px !important;
    width: 290px !important;
    min-width: 290px !important;
    max-width: 290px !important;
    margin: 0 !important;
}

body.tax-product_cat.term-soldes .raf-sale-featured > .woocommerce::-webkit-scrollbar {
    height: 8px;
}

body.tax-product_cat.term-soldes .raf-sale-featured > .woocommerce::-webkit-scrollbar-track {
    background: #f7edf1;
    border-radius: 999px;
}

body.tax-product_cat.term-soldes .raf-sale-featured > .woocommerce::-webkit-scrollbar-thumb {
    background: rgba(139, 34, 82, 0.35);
    border-radius: 999px;
}

body.tax-product_cat.term-soldes .raf-sale-featured > .woocommerce::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 34, 82, 0.55);
}

@media (max-width: 768px) {
    body.tax-product_cat.term-soldes .raf-sale-featured {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.tax-product_cat.term-soldes .raf-sale-featured > .woocommerce {
        padding-bottom: 20px !important;
    }

    body.tax-product_cat.term-soldes .raf-sale-featured ul.products,
    body.tax-product_cat.term-soldes .raf-sale-featured ul.products[class*="columns-"] {
        gap: 14px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    body.tax-product_cat.term-soldes .raf-sale-featured ul.products li.product,
    body.tax-product_cat.term-soldes .raf-sale-featured ul.products[class*="columns-"] li.product {
        flex: 0 0 78vw !important;
        width: 78vw !important;
        min-width: 78vw !important;
        max-width: 78vw !important;
    }
}

@media (max-width: 420px) {
    body.tax-product_cat.term-soldes .raf-sale-featured ul.products li.product,
    body.tax-product_cat.term-soldes .raf-sale-featured ul.products[class*="columns-"] li.product {
        flex-basis: 84vw !important;
        width: 84vw !important;
        min-width: 84vw !important;
        max-width: 84vw !important;
    }
}
