/* =============================================
   RAYON — Shop page
   hello-elementor-child/assets/css/shop.css
   ============================================= */


/* ═══════════════════════════════════════
   FILTER SIDEBAR  [rayon_shop_filters]
   ═══════════════════════════════════════ */

.rayon-sf {
    font-family: 'Josefin Sans', sans-serif;
}

.rayon-sf__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 16px;
}

.rayon-sf__heading {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
    text-transform: none;
}

.rayon-sf__clear {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    text-decoration: underline;
    white-space: nowrap;
}

.rayon-sf__divider {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 0 0 0;
}


/* Each filter group */

.rayon-sf__group {
    border-bottom: 1px dashed #ccc;
}


/* Toggle button — override Elementor + theme button styles */

.rayon-sf .rayon-sf__toggle,
.rayon-sf .rayon-sf__toggle:hover,
.rayon-sf .rayon-sf__toggle:focus,
.rayon-sf .rayon-sf__toggle:active {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 16px 0 !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    cursor: pointer !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 0 !important;
}

.rayon-sf__chevron {
    font-size: 14px;
    color: #000;
    line-height: 1;
}


/* Body — hidden by default, shown when group is open */

.rayon-sf__body {
    display: none;
    padding-bottom: 16px;
    margin-left: 20px;
}

.rayon-sf__group--open .rayon-sf__body {
    display: block;
}


/* Size buttons (Taille) */

.rayon-sf__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rayon-sf__size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 6px 10px;
    border: 1px solid #111;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}

.rayon-sf__size:hover,
.rayon-sf__size--active {
    background: #111 !important;
    color: #fff !important;
}


/* Filter list (Category, Colors, Tags, Genre) */

.rayon-sf__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rayon-sf__list-item a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #444;
    text-decoration: none !important;
}

.rayon-sf__list-item a:hover,
.rayon-sf__list-item--active a {
    color: #111;
    font-weight: 600;
}


/* Price range inputs */

.rayon-sf__price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rayon-sf__price-input {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #111;
    outline: none;
}

.rayon-sf__price-input:focus {
    border-color: #111;
}

.rayon-sf__price-sep {
    color: #888;
    font-size: 13px;
}

.rayon-sf__price-apply {
    padding: 6px 14px;
    background: #111;
    color: #fff;
    border: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.rayon-sf__empty {
    font-size: 13px;
    color: #999;
    margin: 0;
}


/* ═══════════════════════════════════════
   SEARCH BAR  [rayon_product_search]
   ═══════════════════════════════════════ */

.rayon-search-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 10px;
}

.rayon-product-search {
    margin-bottom: 20px;
}

.rayon-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8e8e8;
    padding: 11px 14px;
    border: none;
}

.rayon-search-inner svg {
    flex-shrink: 0;
    color: #111;
    width: 16px;
    height: 16px;
}

.rayon-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #111;
    padding: 0;
}

.rayon-search-input::placeholder {
    color: transparent;
}


/* ═══════════════════════════════════════
   NOUVEAUX BUTTONS  [rayon_sort_buttons]
   ═══════════════════════════════════════ */

.rayon-sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.rayon-sort-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1px solid #111;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #111;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.rayon-sort-btn:hover,
.rayon-sort-btn--active {
    background: #111 !important;
    color: #fff !important;
}


/* ═══════════════════════════════════════
   MOBILE — Filter overlay
   ═══════════════════════════════════════ */

/* ── Trigger button (mobile only) ── */
.rayon-filter-trigger {
    display: none;
}

@media (max-width: 768px) {

    /* Hide desktop sidebar */
    .rayon-sf {
        display: none !important;
    }

    /* Prevent body scroll when overlay open */
    body.rayon-filter-open {
        overflow: hidden;
    }

    /* ── Trigger button ── */
    .rayon-filter-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #111111;
        color: #ffffff;
        border: none;
        font-family: 'Josefin Sans', sans-serif;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 10px 18px;
        cursor: pointer;
        margin-bottom: 16px;
    }

    /* ── Full-screen overlay ── */
    .rayon-filter-overlay {
        position: fixed;
        inset: 0;
        z-index: 99999;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .rayon-filter-overlay--open {
        opacity: 1;
        pointer-events: all;
    }

    /* Slide-in panel from left */
    .rayon-filter-overlay__inner {
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: #ffffff;
        overflow-y: auto;
        padding: 0 0 40px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .rayon-filter-overlay--open .rayon-filter-overlay__inner {
        transform: translateX(0);
    }

    /* Overlay header */
    .rayon-filter-overlay__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid #e5e5e5;
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 1;
    }

    .rayon-filter-overlay__title {
        font-family: 'Josefin Sans', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #111111;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .rayon-filter-overlay__close {
        background: none;
        border: none;
        font-size: 24px;
        color: #111111;
        cursor: pointer;
        line-height: 1;
        padding: 4px 8px;
    }

    /* Sidebar inside overlay — reset display */
    .rayon-filter-overlay .rayon-sf {
        display: block !important;
        padding: 16px 20px;
        width: 100%;
    }

    /* Keep size buttons wrapping nicely */
    .rayon-filter-overlay .rayon-sf__sizes {
        gap: 6px;
    }

    .rayon-filter-overlay .rayon-sf__size {
        min-width: 38px;
        font-size: 12px;
    }

    /* Search bar full width */
    .rayon-product-search {
        width: 100%;
    }

    .rayon-search-inner {
        width: 100%;
    }

    /* Sort buttons wrap on mobile */
    .rayon-sort-buttons {
        gap: 6px;
        flex-wrap: wrap;
    }

    .rayon-sort-btn {
        font-size: 11px;
        padding: 7px 14px;
    }
}