/* =============================================
   BP Products Slider v3.1 — CSS
   ============================================= */

.bps-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.bps-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 18px;
    padding: 0;
    line-height: 1.3;
}

/* -----------------------------------------------
   Slider layout
----------------------------------------------- */
.bps-slider-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.bps-track-outer {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.bps-track {
    display: flex;
    align-items: stretch;
    will-change: transform;
}

/* Flèches — petites, discrètes */
.bps-arrow {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    padding: 0;
    border-radius: 3px;
    opacity: 0.75;
    position: static;
    transform: none;
    align-self: center;
}

.bps-arrow:hover    { background: #333; opacity: 1; }
.bps-arrow:disabled { opacity: 0.18; cursor: default; pointer-events: none; }

/* -----------------------------------------------
   Carte produit
----------------------------------------------- */
.bps-card {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 14px 12px 12px;
    border: 1px solid #ebebeb;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s;
    border-radius: 6px;
}

.bps-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
    z-index: 1;
}

/* -----------------------------------------------
   Image
----------------------------------------------- */
.bps-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 5px;
}

.bps-card-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.bps-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.bps-card:hover .bps-card-img img { transform: scale(1.03); }
.bps-no-img { width: 100%; height: 100%; background: #efefef; border-radius: 5px; }

/* -----------------------------------------------
   Étiquette badge — plus petite, coin arrondi
----------------------------------------------- */
.bps-label {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    display: inline-block;
    padding: 3px 8px;           /* plus petit que avant */
    background: #111;
    color: #fff;
    font-size: 10px;            /* taille réduite */
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 20px;        /* pill arrondi comme screenshot */
    line-height: 1.4;
    pointer-events: none;
    white-space: nowrap;
}

/* Wishlist */
.bps-wish {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #ccc;
    transition: color 0.2s;
    z-index: 2;
    line-height: 1;
    display: flex;
    align-items: center;
}
.bps-wish:hover { color: #e74c3c; }
.bps-wish svg   { display: block; }

/* -----------------------------------------------
   Corps carte — typo proche du screenshot
----------------------------------------------- */
.bps-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

/* Marque — uppercase, petit, gris foncé */
.bps-brand {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1px;
}

/* Nom produit — plus lisible, uppercase comme screenshot */
.bps-name {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
    /* Tronquer à 2 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bps-name a          { color: inherit; text-decoration: none; }
.bps-name a:hover    { color: #333; }

/* -----------------------------------------------
   Boutons variation
----------------------------------------------- */
.bps-variations { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }

.bps-var-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1.5px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 3px;
    color: #999;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1;
    box-shadow: none !important;
}

.bps-var-btn.bps-selected              { border-color: #111; color: #111; font-weight: 700; }
.bps-var-btn:hover:not(.bps-selected)  { border-color: #777; color: #444; }

/* -----------------------------------------------
   Prix — comme screenshot : prix soldé gras + barré gris
----------------------------------------------- */
.bps-price-row  { display: flex; flex-direction: column; gap: 1px; margin-top: auto; padding-top: 6px; }
.bps-price-top  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Prix soldé — gras, grand */
.bps-price ins,
.bps-price ins .woocommerce-Price-amount,
.bps-price > .woocommerce-Price-amount {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.2;
    display: inline;
    text-decoration: none !important;
}

/* Prix barré — gris, petit, après le prix soldé */
.bps-price del,
.bps-price del .woocommerce-Price-amount {
    color: #aaa !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    line-height: 1.4;
    display: inline;
}

.bps-price ins { text-decoration: none; }

/* Badge réduction — orange/rouge comme screenshot */
.bps-discount {
    color: #ff5722;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
    background: #fff3ef;
    padding: 1px 5px;
    border-radius: 3px;
}

/* -----------------------------------------------
   Bouton panier — vert comme screenshot
----------------------------------------------- */
.bps-add-to-cart {
    display: block;
    width: 100%;
    padding: 9px 10px;
    margin-top: 10px;
    background: #111;
    color: #fff !important;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
    line-height: 1.4;
    box-sizing: border-box;
}

.bps-add-to-cart:hover      { background: #333; color: #fff !important; }
.bps-add-to-cart.bps-adding { opacity: 0.65; cursor: wait; }
.bps-add-to-cart.bps-added  { background: #27ae60; }

/* -----------------------------------------------
   Dots
----------------------------------------------- */
.bps-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
}

.bps-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.bps-dot.bps-dot-active { background: #111; transform: scale(1.25); }

/* -----------------------------------------------
   MOBILE — grille 2 colonnes
----------------------------------------------- */
@media (max-width: 580px) {

    .bps-arrow              { display: none; }
    .bps-dots               { display: none !important; }

    .bps-track {
        flex-wrap: wrap;
        transform: none !important;
        transition: none !important;
    }

    .bps-card {
        width: calc(50% - 1px) !important;
        flex-shrink: unset !important;
        padding: 10px 8px;
    }

    .bps-title { font-size: 16px; }

    .bps-price ins .woocommerce-Price-amount,
    .bps-price > .woocommerce-Price-amount { font-size: 14px !important; }

    .bps-name { font-size: 11px; }

    .bps-add-to-cart { font-size: 11px; padding: 7px 6px; }
}
