/* ============================================================
   CSS DE BASE
   ============================================================ */

.footer-bottom-info {
    display: none;
}

div.sharedaddy {
    display: none;
}

.widget-area .widget {
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .wp-block-buttons > .wp-block-button.wp-block-button__width-25 {
        width: calc(90% - .5em);
    }
}

.wp-block-coblocks-food-item {
    margin-top: 0;
}

.wp-block-coblocks-food-and-drinks {
    margin-top: 10px;
}

.woocommerce-product-gallery {
    width: 50%;
    margin: 0 auto;
}

#infinite-handle span {
    background: white;
    color: black;
    border-radius: 5px;
}

#infinite-handle span button {
    color: black;
}

.wapf-field-label {
    text-align: left;
}

.wapf--inner div {
    text-align: left;
}

#site-navigation a:hover {
    color: #FFA5A5;
    opacity: 1;
}

table.shop_table td.actions .coupon {
    margin-bottom: 25px;
}

.cart-collaterals .cart_totals {
    width: 100%;
}

.wp-block-button__link {
    font-size: 1em;
}

ul.products li.product img {
    box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.225);
}

.product .button,
ul.products li.product .button {
    width: 100%;
    border-radius: 5px;
}

ul.products li.product span.price {
    color: black;
    font-weight: bold;
}


/* ============================================================
   POLICE FRAUNCES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&display=swap');


/* ============================================================
   VARIABLES
   ============================================================ */

:root {
    --ccm-pink:      #D14A6E;
    --ccm-pink-deep: #A8345A;
    --ccm-pink-soft: #FBE7EC;
    --ccm-ink:       #1A1A1A;
    --ccm-line:      #E8E2DD;
    --ccm-white:     #FFFFFF;
    --ccm-cream:     #FBF7F4;
    --ccm-serif:     "Fraunces", Georgia, serif;
}


/* ============================================================
   CARDS PRODUITS
   ============================================================ */

.woocommerce ul.products li.product.type-product,
.woocommerce ul.products li.product.status-publish {
    background: var(--ccm-white);
    border: 1px solid var(--ccm-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26,26,26,.06);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}

.woocommerce ul.products li.product.type-product:hover,
.woocommerce ul.products li.product.status-publish:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(26,26,26,.10);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--ccm-serif);
    font-weight: 500;
    color: var(--ccm-ink);
    padding: 1rem 1rem .25rem;
    font-size: 1.05rem;
}

.woocommerce ul.products li.product span.price {
    color: var(--ccm-pink-deep);
    font-weight: 700;
    padding: 0 1rem;
    display: block;
}

.woocommerce ul.products li.product .button {
    background: var(--ccm-ink);
    color: var(--ccm-white);
    border-radius: 999px;
    margin: .75rem 1rem 1rem;
    padding: .7rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 13px;
    transition: background .3s ease;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--ccm-pink);
}


/* ============================================================
   BADGES JOUR
   ============================================================ */

.woocommerce ul.products li.product.type-product:has(a[href*="lundi"])::before    { content: "LUNDI"; }
.woocommerce ul.products li.product.type-product:has(a[href*="mardi"])::before    { content: "MARDI"; }
.woocommerce ul.products li.product.type-product:has(a[href*="mercredi"])::before { content: "MERCREDI"; }
.woocommerce ul.products li.product.type-product:has(a[href*="jeudi"])::before    { content: "JEUDI"; }
.woocommerce ul.products li.product.type-product:has(a[href*="vendredi"])::before { content: "VENDREDI"; }

.woocommerce ul.products li.product.type-product:has(a[href*="lundi"])::before,
.woocommerce ul.products li.product.type-product:has(a[href*="mardi"])::before,
.woocommerce ul.products li.product.type-product:has(a[href*="mercredi"])::before,
.woocommerce ul.products li.product.type-product:has(a[href*="jeudi"])::before,
.woocommerce ul.products li.product.type-product:has(a[href*="vendredi"])::before {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: var(--ccm-pink);
    color: var(--ccm-white);
    font-family: var(--ccm-serif);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .08em;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(209, 74, 110, .35);
    pointer-events: none;
}


/* ============================================================
   BANNIÃˆRES CATÃ‰GORIES
   ============================================================ */

.wp-block-woocommerce-featured-category,
.wc-block-featured-category {
    min-height: 180px !important;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26,26,26,.08);
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease;
}

.wp-block-woocommerce-featured-category:hover,
.wc-block-featured-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(26,26,26,.15);
}

.wp-block-woocommerce-featured-category::before,
.wc-block-featured-category::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.45) 100%);
    pointer-events: none;
    z-index: 1;
    transition: background .35s ease;
}

.wp-block-woocommerce-featured-category:hover::before,
.wc-block-featured-category:hover::before {
    background: linear-gradient(180deg, rgba(168,52,90,.2) 0%, rgba(0,0,0,.5) 100%);
}

.wp-block-woocommerce-featured-category > *,
.wc-block-featured-category > * {
    position: relative;
    z-index: 2;
}

.wp-block-woocommerce-featured-category h2,
.wp-block-woocommerce-featured-category h3,
.wc-block-featured-category__title {
    font-family: var(--ccm-serif);
    font-weight: 700;
    color: var(--ccm-white);
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wp-block-woocommerce-featured-category .wp-block-button__link,
.wc-block-featured-category .wp-block-button__link {
    background: var(--ccm-pink);
    color: var(--ccm-white);
    border-radius: 999px;
    padding: .55rem 1.25rem;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: none;
}

.wp-block-woocommerce-featured-category .wp-block-button__link:hover,
.wc-block-featured-category .wp-block-button__link:hover {
    background: var(--ccm-pink-deep);
}

/* Image qui couvre toute la surface de la banniÃ¨re */
.wp-block-woocommerce-featured-category .wc-block-featured-category__background-image,
.wc-block-featured-category .wc-block-featured-category__background-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    inset: 0 !important;
}

.wp-block-woocommerce-featured-category .wc-block-featured-category__wrapper {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
}


/* ============================================================
   MOSAÃQUE BANNIÃˆRES (gauche / MENU centre / droite)
   ============================================================ */

/* Conteneur principal en grille 3 colonnes */
.wp-block-column.is-vertically-aligned-top {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1.2fr !important;
    gap: 24px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* MENU au centre, sur 2 rangÃ©es */
.wp-block-column.is-vertically-aligned-top > .wp-block-woocommerce-featured-category {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    min-height: 460px !important;
    height: 100% !important;
    align-self: stretch !important;
    margin: 0 !important;
}

/* Le bloc wp-block-columns Ã©clate ses enfants dans la grille parente */
.wp-block-column.is-vertically-aligned-top > .wp-block-columns {
    display: contents !important;
}

/* Colonne gauche : ENTRÃ‰E + DESSERT */
.wp-block-column.is-vertically-aligned-top > .wp-block-columns > .wp-block-column:first-child {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Colonne droite : PLAT + BOISSONS */
.wp-block-column.is-vertically-aligned-top > .wp-block-columns > .wp-block-column:last-child {
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Hauteur des banniÃ¨res latÃ©rales */
.wp-block-column.is-vertically-aligned-top .wp-block-woocommerce-featured-category {
    min-height: 220px !important;
    margin: 0 !important;
}

/* Mobile : empilage classique */
@media (max-width: 768px) {
    .wp-block-column.is-vertically-aligned-top {
        display: block !important;
    }
    .wp-block-column.is-vertically-aligned-top > .wp-block-columns {
        display: flex !important;
    }
}


/* ============================================================
   PRIX
   ============================================================ */

.woocommerce-Price-amount,
.product-subtotal,
.product-price,
.order-total .amount {
    color: var(--ccm-pink-deep);
    font-weight: 600;
}


/* ============================================================
   PANIER
   ============================================================ */

.woocommerce-cart table.cart thead th {
    background: var(--ccm-cream);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 13px;
    color: #6B6B6B;
}

.woocommerce-cart .product-name a {
    color: var(--ccm-ink);
    font-family: var(--ccm-serif);
    font-weight: 500;
    text-decoration: none;
}

.wc-proceed-to-checkout a.checkout-button {
    background: var(--ccm-pink);
    color: var(--ccm-white);
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--ccm-pink-deep);
}


/* ============================================================
   NOTICES WOOCOMMERCE
   ============================================================ */

.woocommerce-message,
.woocommerce-info {
    background: var(--ccm-pink-soft);
    border-top: 3px solid var(--ccm-pink);
    color: var(--ccm-ink);
    border-radius: 8px;
}
