/* ─────────────────────────────────────────────────────────────────────────────
   REKOVIX — Styles boutique & sidebar
   ───────────────────────────────────────────────────────────────────────────── */

/* Référence produit */
.rekovix-ref {
    color: #888;
    font-size: 13px;
    margin: -5px 0 15px;
}

/* ─── PRIX — Gras et plus grand ───────────────────────────────────────────── */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product .woocommerce-variation-price .price,
.woocommerce ul.products li.product .price {
    font-size: 1.5em !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

.woocommerce div.product p.price .woocommerce-price-suffix,
.woocommerce div.product .woocommerce-variation-price .woocommerce-price-suffix {
    font-size: 0.6em;
    font-weight: 400;
    color: #666;
}

/* ─── LAYOUT BOUTIQUE — Sidebar à gauche ─────────────────────────────────── */
/* Storefront left-sidebar place la sidebar à gauche automatiquement */
/* On s'assure juste que le contenu principal a le bon espacement */
.left-sidebar .site-main {
    padding-left: 0;
}

/* ─── SIDEBAR ──────────────────────────────────────────────────────────────── */
.rekovix-shop-sidebar {
    width: 100%;
}

.rekovix-widget {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.rekovix-widget-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: #333 !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

/* ─── CATÉGORIES ───────────────────────────────────────────────────────────── */
.rekovix-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rekovix-cat-list > li {
    margin-bottom: 2px;
}

.rekovix-cat-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.rekovix-cat-list > li > a:hover,
.rekovix-cat-list > li.active > a {
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
}

.rekovix-cat-list .count {
    font-size: 11px;
    opacity: 0.55;
    font-weight: 400;
}

/* Sous-catégories */
.rekovix-subcat-list {
    list-style: none;
    margin: 2px 0 4px 12px;
    padding: 0;
    border-left: 2px solid #f0f0f0;
}

.rekovix-subcat-list li {
    margin-bottom: 1px;
}

.rekovix-subcat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 4px;
    color: #555;
    font-size: 12px;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.rekovix-subcat-list li a:hover,
.rekovix-subcat-list li.active a {
    background: #f0f4ff;
    color: #1a1a2e;
    text-decoration: none;
}

/* ─── FILTRE PRIX ──────────────────────────────────────────────────────────── */
.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.price-slider-wrapper {
    position: relative;
    padding-bottom: 16px;
}

.price-slider-track {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 14px 0 24px;
}

.price-slider-range {
    position: absolute;
    height: 100%;
    background: #1a1a2e;
    border-radius: 2px;
}

.price-slider {
    position: absolute;
    top: -10px;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    height: 24px;
    margin: 0;
    padding: 0;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1a2e;
    border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,.25);
    pointer-events: all;
    cursor: pointer;
    transition: transform .15s;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1a2e;
    border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,.25);
    pointer-events: all;
    cursor: pointer;
}

.rekovix-filter-btn {
    width: 100%;
    padding: 10px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: background .15s;
    margin-top: 8px;
}

.rekovix-filter-btn:hover {
    background: #2d2d5e;
}

/* ─── FILTRE DISPONIBILITÉ ─────────────────────────────────────────────────── */
.rekovix-stock-filter {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rekovix-stock-filter li {
    margin-bottom: 3px;
}

.rekovix-stock-filter li a {
    display: block;
    padding: 7px 10px;
    border-radius: 4px;
    color: #444;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.rekovix-stock-filter li a:hover,
.rekovix-stock-filter li a.active {
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rekovix-shop-sidebar {
        margin-bottom: 30px;
    }
}

/* ─── FORCER LAYOUT SIDEBAR GAUCHE ────────────────────────────────────────── */
/* Storefront utilise flexbox pour le layout */
.woocommerce .content-area,
.woocommerce-page .content-area {
    float: none !important;
}

/* Sur les pages boutique avec sidebar */
body.left-sidebar.woocommerce .content-area,
body.left-sidebar.woocommerce-page .content-area {
    float: right !important;
    width: 72% !important;
}

body.left-sidebar.woocommerce #secondary,
body.left-sidebar.woocommerce-page #secondary {
    float: left !important;
    width: 25% !important;
    margin-right: 3% !important;
    clear: none !important;
}

@media (max-width: 900px) {
    body.left-sidebar.woocommerce .content-area,
    body.left-sidebar.woocommerce-page .content-area,
    body.left-sidebar.woocommerce #secondary,
    body.left-sidebar.woocommerce-page #secondary {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* ─── PRIX PRODUIT ─────────────────────────────────────────────────────────── */

/* Prix de la plage (avant sélection) — garder le style WooCommerce natif */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.4em !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

/* Prix de la variation sélectionnée — plus grand et mis en valeur */
.woocommerce div.product .woocommerce-variation-price {
    margin: 10px 0 5px;
}

.woocommerce div.product .woocommerce-variation-price .price {
    font-size: 1.8em !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    display: block;
    padding: 8px 0;
}

.woocommerce div.product .woocommerce-variation-price .woocommerce-price-suffix {
    font-size: 0.55em !important;
    font-weight: 400 !important;
    color: #888 !important;
}

/* Stock de la variation */
.woocommerce div.product .woocommerce-variation-availability {
    margin-top: 6px;
    font-size: 13px;
}
