/* === LAYOUT GLOBAL === */

.mf-buche-single {
    padding: 0;
    width: 100%;
}

.mf-buche-single-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
    padding: 0 !important;
}

/* === IMAGES PRINCIPALES + MINIATURES === */

.mf-buche-single-images {
    background: #f7ede8;
    border-radius: 8px !important;
    padding: 2rem 2rem 2.5rem;
    position: relative;
}

.mf-buche-single-main-img-wrap {
    width: 100%;
    min-height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.mf-buche-single-main-img-wrap img,
#mf-buche-single-main-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Thumbnails */

.mf-buche-single-thumbs {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-content: center;
}

.mf-buche-single-thumb {
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    padding: 4px;
    background: transparent !important;
    cursor: pointer;
    transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.mf-buche-single-thumb img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    border-radius: 8px !important;
}

.mf-buche-single-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background-color: #ab654b14 !important;
}

.mf-buche-single-thumb.is-active {
    /* border: 0.5px solid #e63d00 !important;*/
    background-color: #ab654b14 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* === COLONNE DROITE : INFOS === */

.mf-buche-single-infos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.mf-buche-single-title {
    font-size: 2.7rem;
    font-weight: 600;
    margin: 0;
    color: #241411;
}

.mf-buche-single-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 300;
    margin: 0.5rem 0 0;
    color: #241411;
}

.mf-buche-single-label {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0rem 0;
    color: #241411;
}

.mf-buche-single-label strong {
    font-weight: 600;
}

/* Badge Coup de cœur */

.mf-buche-single-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background-color: var(--color-principal);
    border-radius: 8px !important;
    padding: .4rem 1.1rem;
    color: var(--white-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.mf-buche-single-badge-icon {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

/* Prix */

.mf-buche-single-price-cont {
    margin-top: 0.4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.1rem;
}

.mf-buche-single-price-box {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.mf-buche-single-price {
    font-size: 1.2rem;
    font-weight: 300;
    color: #241411;
}

.mf-buche-single-unit {
    font-size: 0.95rem;
    color: #7e6c60;
}

/* AD TO CAR */

.mf-buche-single-add-row {
    margin-top: 1.2rem;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.mf-buche-single-qty-wrap {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: #222;
}

#mf-buche-qty {
    width: 70px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* CTA */

.mf-buche-single-cta {
    display: block;
    width: 100%;

    margin: 0 auto;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    background: linear-gradient(180deg, #000000, #333333, #000000);
    color: #ffffff !important;
    font-size: 1.2rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition:
        transform .4s cubic-bezier(0.075, 0.82, 0.165, 1),
        box-shadow .25s ease,
        background .25s ease;
}

.mf-buche-single-cta:hover {
    transform: translateY(-2px) scale(0.97);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

/* === CARROUSEL "AUTRES BÛCHES" === */
.mf-buche-single-carousel-cont h3 {
    margin-bottom: 0;
    margin-top: 2.5rem;
}

.mf-buche-single-carousel {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 1rem;
    scroll-snap-type: x mandatory;
}

.mf-buche-single-carousel::-webkit-scrollbar {
    height: 6px;
}

.mf-buche-single-carousel::-webkit-scrollbar-thumb {
    background: #d3b2a3;
    border-radius: 8px;
}

.mf-buche-single-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.mf-buche-single-card {
    flex: 0 0 180px;
    background: #f7ede8;
    border-radius: 8px;
    padding: 0.9rem;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: transform .18s ease, box-shadow .18s ease;
}

.mf-buche-single-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.mf-buche-single-card-img {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mf-buche-single-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.mf-buche-single-card-info {
    margin-top: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
}

.mf-buche-single-card-info h3 {
    font-size: 0.8rem !important;
    margin: 0;
    font-weight: 500;
    color: #241411;
}

.mf-buche-single-card-price {
    font-size: 0.85rem !important;
    font-weight: 500;
    color: #000;
}

.mf-buche-card-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #e63d00;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mf-buche-single-card-img {
  position: relative;
}

/* ---- MODAL OVERLAY ---- */
.mf-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}

/* ---- INNER ---- */
.mf-cart-modal-inner {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
    width: 350px;
    transform: translateY(-20px);
    transition: transform .3s ease;
}

/* ---- ACTIVE ---- */
.mf-cart-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.mf-cart-modal.active .mf-cart-modal-inner {
    transform: translateY(0) translateX(0);
}


/* ---- CLOSE BUTTON ---- */
.mf-cart-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    position: absolute;
    top: 4px;
    right: 8px;
    cursor: pointer;
}

/* ---- CONTENT ---- */
.mf-cart-modal-content {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mf-cart-modal-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.mf-cart-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.mf-cart-modal-btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    background: linear-gradient(180deg, #000000, #333333, #000000);
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.mf-cart-modal-btn-primary {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    background: #e63d00;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

/* === RESPONSIVE === */

/* Desktop → en haut à droite */
@media (min-width: 768px) {
    .mf-cart-modal-inner {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 992px) {
    .mf-buche-single-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mf-buche-single-title {
        font-size: 2.2rem;
    }
}

/* Mobile → slide depuis le bas */
@media (max-width: 767px) {
    .mf-cart-modal-inner {
        left: auto;
        right: auto;
        bottom: -100%;
        transform: translateX(-50%);
        width: 92%;
    }

    .mf-cart-modal.active .mf-cart-modal-inner {
        bottom: 20px;
    }
}

@media (max-width: 600px) {
    .mf-buche-single {
        padding: 2rem 0 3rem;
    }

    .mf-buche-single-images {
        padding: 1.5rem;
    }

    .mf-buche-single-thumbs {
        justify-content: flex-start;
    }

    .mf-buche-single-card {
        flex: 0 0 200px;
    }
}

