/* =========================
   CONTAINER MENU BOOK
========================= */
.wr-book {
    position: relative;
    max-width: 1100px;
    margin: auto;
    background: #ffffffbb;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 40px;
}

/* =========================
   PAGES (effet livre)
========================= */
.wr-pages {
    position: relative;
    min-height: 500px;
}

.wr-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    transition: opacity 0.35s ease, transform 0.35s ease;
}

.wr-page.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

/* =========================
   LEFT PAGE (CATÉGORIE)
========================= */
.wr-left {
    border-right: 1px solid #eee;
    padding-right: 25px;
}

.wr-left h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 800;
}

/* IMAGE CATÉGORIE (NEW IMPORTANT) */
.wr-category-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
   RIGHT PAGE (PRODUITS)
========================= */
.wr-right {
    padding-left: 25px;
}

/* =========================
   ITEM PRODUIT
========================= */
.wr-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.wr-item-media img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.wr-item-content {
    flex: 1;
}

.wr-item-name {
    font-weight: 700;
    font-size: 15px;
}

.wr-item-desc {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.wr-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.wr-price {
    font-weight: bold;
}

/* =========================
   BOUTON AJOUT PANIER
========================= */
.wr-add {
    background: var(--contrast);
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease;
}

.wr-add:hover {
    transform: scale(1.1);
}

/* =========================
   NAVIGATION PAGES
========================= */
.wr-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--contrast);
    border: 1px solid #ddd;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.wr-nav:hover {
    background: var(--contrast-2);
}

.wr-prev {
    /*left: -20px;*/
}

.wr-next {
    right: -20px;
}

/* =========================
   GRID PRODUITS (optionnel si utilisé ailleurs)
========================= */
.wr-menu-category {
    margin-bottom: 40px;
}

.wr-menu-category h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.wr-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.wr-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.wr-product-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.wr-product-content {
    padding: 12px;
}

.wr-product-content h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.wr-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

    .wr-page {
        grid-template-columns: 1fr;
    }

    .wr-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .wr-right {
        padding-left: 0;
        padding-top: 20px;
    }

    .wr-category-img {
        height: 180px;
    }

    .wr-nav {
        display: none;
    }
}
/* =========================
   MOBILE = MODE LISTE SIMPLE
========================= */
@media (max-width: 900px) {

    .wr-pages {
        display: block;
        min-height: auto;
    }

    .wr-page {
        display: block !important;
        grid-template-columns: 1fr;
        margin-bottom: 40px;
        padding-bottom: 25px;
        border-bottom: 1px solid #eee;
    }

    .wr-left {
        border-right: none;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .wr-right {
        padding-left: 0;
    }

    /* cacher navigation livre */
    .wr-nav {
        display: none !important;
    }
}
@media (max-width: 900px) {

    .wr-page {
        display: block !important;
        opacity: 1 !important;        /* 🔥 FIX */
        transform: none !important;   /* 🔥 FIX */
        position: relative !important;/* 🔥 FIX */
        pointer-events: auto !important;
    }

}