
/* =====================================================
   BAUMGART HOLZ — CARTES PRODUITS PREMIUM
   ===================================================== */

/* ---------- GRILLE DES PRODUITS ---------- */

.products__v1 .row {
    align-items: stretch;
}

.products__v1 [class*="col-"] {
    min-width: 0;
    display: flex;
}

/* ---------- CARTE PRODUIT ---------- */

.products__v1 .product-item {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.products__v1 .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* ---------- IMAGE PRODUIT ---------- */

.products__v1 .product-item .product-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    width: 100%;
    height: 235px;
    margin: 0;
    padding: 0;

    overflow: hidden;
    background: #f7f8f6;
}

/* L'image remplit toute la zone */

.products__v1 .product-item .product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;

    object-fit: contain;
    object-position: center;
    padding: 8px;

    transition: transform 0.4s ease;
}

/* Zoom doux au survol */

.products__v1 .product-item:hover .product-thumb img {
    transform: scale(1.06);
}

/* ---------- CONTENU DE LA CARTE ---------- */

.products__v1 .product-item .product-info,
.products__v1 .product-item .product-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 16px 20px;
    text-align: center;
}

/* ---------- TITRE ---------- */

.products__v1 .product-item .product-title {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    margin: 0 0 10px;
    padding: 0;

    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;

    overflow-wrap: anywhere;
    word-break: normal;
}

.products__v1 .product-item .product-title a {
    color: var(--inverse-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.products__v1 .product-item .product-title a:hover {
    color: #078b35;
}

/* ---------- DESCRIPTION ---------- */

.products__v1 .product-item .product-description,
.products__v1 .product-item .product-short {
    margin: 0 0 12px;
    color: #626262;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ---------- PRIX ---------- */

.products__v1 .product-item .product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;

    margin: auto 0 16px;
    text-align: center;
}

.products__v1 .product-item .product-price-from {
    display: block;
    font-size: 12px;
    opacity: 0.65;
}

.products__v1 .product-item .product-price-value {
    display: block;
    color: #079638;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.3;
    white-space: nowrap;
}

.products__v1 .product-item .old-price,
.products__v1 .product-item del {
    color: #777777;
    font-size: 13px;
    white-space: nowrap;
}

/* ---------- BOUTON AJOUTER AU PANIER ---------- */

/* Cible les boutons présents dans la carte */

.products__v1 .product-item button,
.products__v1 .product-item .btn,
.products__v1 .product-item .add-to-cart,
.products__v1 .product-item .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;
    margin-top: auto;
    padding: 12px 14px;

    border: 0;
    border-radius: 10px;

    background: #ffb347;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 179, 71, 0.18);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.products__v1 .product-item button:hover,
.products__v1 .product-item .btn:hover,
.products__v1 .product-item .add-to-cart:hover,
.products__v1 .product-item .btn-primary:hover {
    background: #f49a25;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(255, 158, 37, 0.28);
}

.products__v1 .product-item button:focus-visible,
.products__v1 .product-item .btn:focus-visible,
.products__v1 .product-item .add-to-cart:focus-visible,
.products__v1 .product-item .btn-primary:focus-visible {
    outline: 3px solid rgba(255, 179, 71, 0.5);
    outline-offset: 3px;
}

/* ---------- BADGE PROMOTION ---------- */

.products__v1 .product-item .sale {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;

    padding: 6px 11px;
    border-radius: 7px;

    background: #078b35;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}

/* ---------- FAVORIS ---------- */

.products__v1 .product-item .btn-love {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);
    color: #777777;
    cursor: pointer;

    transition: color 0.2s ease, background 0.2s ease;
}

.products__v1 .product-item .btn-love:hover {
    color: #e04444;
    background: #ffffff;
}

/* ---------- FILTRES ---------- */

.products__v1 .filter-dropdown {
    min-width: 300px;
    max-width: 100%;
}

.products__v1 .filter-dropdown .filter-dropdown-head {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(var(--inverse-color-rgb), 0.2);
}

.products__v1 .filter .btn-group .btn-group-link {
    border: 1px solid rgba(var(--inverse-color-rgb), 0.1) !important;
    color: var(--inverse-color);
    padding: 7px 20px;
}

/* =====================================================
   TABLETTE
   ===================================================== */

@media (min-width: 576px) and (max-width: 991.98px) {
    .products__v1 .product-item .product-thumb {
        height: 210px;
    }

    .products__v1 .product-item .product-info,
    .products__v1 .product-item .product-content {
        padding: 15px 12px 16px;
    }

    .products__v1 .product-item .product-title {
        font-size: 16px;
    }

    .products__v1 .product-item .product-price-value {
        font-size: 19px;
    }
}

/* =====================================================
   MOBILE — 2 PRODUITS PAR LIGNE
   ===================================================== */

@media (max-width: 575.98px) {
    /* Deux colonnes même sur petit téléphone */

    .products__v1 .row {
        display: flex;
        flex-wrap: wrap;
        margin-left: -6px;
        margin-right: -6px;
        row-gap: 14px;
    }

    .products__v1 [class*="col-"] {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
        padding-left: 6px;
        padding-right: 6px;
    }

    .products__v1 .product-item {
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    }

    .products__v1 .product-item:hover {
        transform: none;
    }

    /* Image uniforme et bien cadrée */

    .products__v1 .product-item .product-thumb {
        height: 145px;
        margin: 0;
        border-radius: 12px 12px 0 0;
    }

    .products__v1 .product-item .product-thumb img {
        padding: 5px;
        object-fit: contain;
    }

    .products__v1 .product-item .product-info,
    .products__v1 .product-item .product-content {
        padding: 10px 8px 11px;
    }

    /* Titres alignés sur deux lignes */

    .products__v1 .product-item .product-title {
        min-height: 42px;
        margin-bottom: 7px;
        font-size: 13px;
        line-height: 1.35;
    }

    .products__v1 .product-item .product-description,
    .products__v1 .product-item .product-short {
        font-size: 11px;
        line-height: 1.35;
        margin-bottom: 7px;
    }

    /* Prix adaptés à la largeur */

    .products__v1 .product-item .product-price {
        gap: 3px 5px;
        margin-bottom: 10px;
    }

    .products__v1 .product-item .product-price-value {
        font-size: 15px;
    }

    .products__v1 .product-item .old-price,
    .products__v1 .product-item del {
        font-size: 10px;
    }

    /* Bouton compact, sans débordement */

    .products__v1 .product-item button,
    .products__v1 .product-item .btn,
    .products__v1 .product-item .add-to-cart,
    .products__v1 .product-item .btn-primary {
        min-height: 42px;
        padding: 8px 5px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Badges plus petits */

    .products__v1 .product-item .sale {
        top: 7px;
        right: 7px;
        padding: 4px 6px;
        font-size: 9px;
    }

    .products__v1 .product-item .btn-love {
        top: 7px;
        left: 7px;
        right: auto;
        width: 27px;
        height: 27px;
    }

    .products__v1 .filter-dropdown {
        min-width: 0;
        width: 100%;
    }
}

/* Très petits téléphones */

@media (max-width: 360px) {
    .products__v1 .product-item .product-thumb {
        height: 125px;
    }

    .products__v1 .product-item .product-title {
        font-size: 12px;
    }

    .products__v1 .product-item .product-price-value {
        font-size: 14px;
    }

    .products__v1 .product-item button,
    .products__v1 .product-item .btn,
    .products__v1 .product-item .add-to-cart,
    .products__v1 .product-item .btn-primary {
        font-size: 11px;
    }
}

/* Respecte les préférences d'animation */

@media (prefers-reduced-motion: reduce) {
    .products__v1 .product-item,
    .products__v1 .product-item .product-thumb img,
    .products__v1 .product-item button,
    .products__v1 .product-item .btn {
        transition: none;
    }

    .products__v1 .product-item:hover,
    .products__v1 .product-item:hover .product-thumb img {
        transform: none;
    }
}
/* Espace entre les deux rows de produits (aucune classe distincte entre elles :
   on cible "une row .g-3.g-lg-4 suivie d'une autre row .g-3.g-lg-4") */
.products__v1 .row.g-3.g-lg-4 + .row.g-3.g-lg-4 {
  margin-top: 1rem;
}
@media (min-width: 992px) {
  .products__v1 .row.g-3.g-lg-4 + .row.g-3.g-lg-4 {
    margin-top: 1.5rem;
  }
}
.row.mb-4 h2 {
    text-align: center !important;
    width: 100%;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
}

.new-price {
    color: #16852b;
    font-size: 24px;
    font-weight: bold;
}
body {
    user-select: none;
    -webkit-user-select: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
}