/* ==========================================================
   PANIER HANOUT BLADI — AFFICHAGE COMPACT MOBILE ET DESKTOP
   ========================================================== */

.hanout-panier {
    --hanout-cart-primary: var(--msp-primary, #153b27);
    --hanout-cart-secondary: var(--msp-secondary, #2d5a27);
    --hanout-cart-accent: var(--msp-accent, #c89b3c);
    --hanout-cart-bg: var(--msp-background, #faf8f5);
    --hanout-cart-border: #e4e9e3;
    --hanout-cart-text: #202821;
    --hanout-cart-muted: #6e786f;
    --hanout-cart-danger: #9d2c24;

    width: 100%;
    margin: 0 !important;
    padding: 0 10px 12px !important;
    background: linear-gradient(to bottom, #faf8f5, #f6edda);
    color: var(--hanout-cart-text);
    font-family: inherit;
}

.hanout-panier,
.hanout-panier *,
.hanout-panier *::before,
.hanout-panier *::after {
    box-sizing: border-box;
}

/* Supprime les espaces ajoutés par le conteneur Elementor autour du shortcode. */
body.hanout-cart-page .site-main,
body.hanout-cart-page .content-area,
body.hanout-cart-page .elementor-widget-shortcode,
body.hanout-cart-page .elementor-widget-shortcode .elementor-widget-container,
body.hanout-cart-page .elementor-element-populated {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.hanout-cart-page .entry-title,
body.hanout-cart-page .elementor-widget-theme-post-title,
body.hanout-cart-page .elementor-page-title {
    display: none !important;
}

.hanout-panier__container {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.hanout-panier__notice {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff4d6;
    color: #6f5311;
    font-size: 13px;
}

/* Ligne : Boutique à gauche, titre au centre, Vider à droite. */
.hanout-panier__header-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin: 0;
    padding: 0 4px 6px;
}

.hanout-panier__back-link {
    justify-self: start;
    color: var(--hanout-cart-muted);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(15px, 3.8vw, 20px);
    font-weight: 700;
    text-decoration: none;
}

.hanout-panier__back-link:hover,
.hanout-panier__back-link:focus {
    color: var(--hanout-cart-primary);
    text-decoration: underline;
}

.hanout-panier__title {
    grid-column: 2;
    margin: 0;
    color: var(--hanout-cart-primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 3vw, 28px);
    font-style: italic;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.hanout-panier__clear-form {
    grid-column: 3;
    justify-self: end;
    margin: 0;
}

.hanout-panier__clear-button {
    margin: 0;
    padding: 4px 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--hanout-cart-danger) !important;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(15px, 3.8vw, 20px) !important;
    font-weight: 700;
    line-height: 1.2;
}

.hanout-panier__clear-button:hover,
.hanout-panier__clear-button:focus {
    color: #6f1c17 !important;
    text-decoration: underline;
}

.hanout-panier__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    align-items: start;
    gap: 12px;
}

.hanout-panier__items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

/* Chaque produit reste sur une ligne : image, informations, quantité, suppression. */
.hanout-panier__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(6px, 1.4vw, 12px);
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--hanout-cart-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(25, 55, 36, 0.04);
}

.hanout-panier__image-wrap {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 2px solid var(--hanout-cart-accent);
    border-radius: 50%;
    background: #f5f7f3;
}

.hanout-panier__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hanout-panier__item-info {
    flex: 1 1 auto;
    min-width: 0;
}

.hanout-panier__item-name {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 5px;
    color: var(--hanout-cart-primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 700;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hanout-panier__unit-price {
    margin: 0;
    color: var(--hanout-cart-accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(12px, 1.35vw, 15px);
    font-weight: 700;
}

.hanout-panier__item-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: clamp(8px, 1.8vw, 18px);
    margin: 0;
}

.hanout-panier__quantity {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: 94px;
    height: 34px;
    overflow: hidden;
    border: 1px solid #d8d3c9;
    border-radius: 12px;
    background: #fff;
}

.hanout-panier__quantity-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 100%;
    padding: 0;
    border: 0;
    background: #f2eee6; 
    color: var(--hanout-cart-primary);
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
}

.hanout-panier__quantity-button:hover,
.hanout-panier__quantity-button:focus {
    background: #e7e0d3;
}

.hanout-panier__quantity-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.hanout-panier__quantity-input {
    width: 35px;
    height: 100%;
    padding: 0;
    border: 0;
    border-right: 1px solid #e5dfd4;
    border-left: 1px solid #e5dfd4;
    background: #fff;
    color: var(--hanout-cart-primary);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.hanout-panier__quantity-input::-webkit-inner-spin-button,
.hanout-panier__quantity-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.hanout-panier__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9ca5a5;
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

.hanout-panier__remove:hover,
.hanout-panier__remove:focus {
    color: var(--hanout-cart-danger);
}

.hanout-panier__item-total {
    display: none;
}

.hanout-panier__summary {
    padding: 12px 16px;
    border: 1px solid var(--hanout-cart-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(25, 55, 36, 0.04);
}

.hanout-panier__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    color: var(--hanout-cart-primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
}

.hanout-panier__total span:last-child {
    color: var(--hanout-cart-accent);
    font-size: clamp(18px, 2.6vw, 25px);
    white-space: nowrap;
}

.hanout-panier__button {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--hanout-cart-primary);
    border-radius: 12px;
    background: var(--hanout-cart-primary);
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
}

.hanout-panier__button:hover,
.hanout-panier__button:focus {
    background: var(--hanout-cart-secondary);
    color: #fff !important;
}

.hanout-panier__empty {
    padding: 28px 18px;
    border: 1px solid var(--hanout-cart-border);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.hanout-panier__empty-title {
    margin: 0 0 18px;
    color: var(--hanout-cart-primary);
    font-size: 22px;
}

/* Mode compact : aucune barre de défilement sur la page panier.
   La liste des articles devient la seule zone défilante si nécessaire. */
body.hanout-cart-page {
    overflow: hidden;
}

body.hanout-cart-page .hanout-panier {
    height: calc(100dvh - 150px);
    min-height: 0;
    overflow: hidden;
}

body.hanout-cart-page .hanout-panier__layout {
    height: calc(100% - 52px);
}

body.hanout-cart-page .hanout-panier__items {
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Footer naturel en bas de l’écran lorsque le contenu est court, sur toutes les pages. */
html,
body {
    min-height: 100%;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

body > footer,
body > .site-footer,
body > .msp-inline-footer-01 {
    width: 100%;
    margin-top: auto !important;
}

@media (max-width: 900px) {
    /* Le panier prend toute la hauteur disponible de la vue mobile */
    body.hanout-cart-page .hanout-panier {
        height: 100dvh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        padding-bottom: 20px !important;
    }

    body.hanout-cart-page .hanout-panier__container {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    body.hanout-cart-page .hanout-panier__layout {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        gap: 8px;
    }

    /* La liste des articles absorbe tout l'espace disponible et scrolle en interne */
    body.hanout-cart-page .hanout-panier__items {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    /* Le bloc récapitulatif et le bouton commander restent fixes en bas de l'écran */
    body.hanout-cart-page .hanout-panier__summary {
        flex: 0 0 auto;
        padding: 12px 16px;
        background: #fff;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
        border-radius: 16px 16px 0 0;
    }

    .hanout-panier__layout {
        grid-template-columns: 1fr;
    }

    .hanout-panier__total {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .hanout-panier__total span:last-child {
        font-size: 22px;
    }

    .hanout-panier__button {
        min-height: 46px;
        font-size: 14px;
    }
}

@media (max-width: 620px) {
    .hanout-panier__header-wrap {
        min-height: 52px;
        gap: 6px;
        padding: 0 2px 5px;
    }

    .hanout-panier__back-link,
    .hanout-panier__clear-button {
        font-size: 16px !important;
    }

    .hanout-panier__title {
        font-size: 22px;
    }

    .hanout-panier__item {
        gap: 9px;
        padding: 10px;
    }

    .hanout-panier__image-wrap {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
    }

    .hanout-panier__item-name {
        margin-bottom: 4px;
        font-size: 16px;
    }

    .hanout-panier__unit-price {
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .hanout-panier__item {
        gap: 6px;
        padding-inline: 7px;
    }

    .hanout-panier__image-wrap {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .hanout-panier__item-name {
        font-size: 14px;
    }
}


/* Correction mobile : le panier défile normalement et son bouton ne passe plus
   derrière la navigation fixe en bas de l’écran. */
@media (max-width: 900px) {
    body.hanout-cart-page {
        height: auto !important;
        min-height: 100dvh;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
    }

    body.hanout-cart-page .hanout-panier {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 8px 10px calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.hanout-cart-page .hanout-panier__container {
        display: block;
        width: min(100%, 720px);
        min-height: 0;
        flex: initial;
        margin-inline: auto;
    }

    body.hanout-cart-page .hanout-panier__header-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        min-height: 44px;
        gap: 5px;
        padding: 0 2px 7px;
    }

    body.hanout-cart-page .hanout-panier__back-link,
    body.hanout-cart-page .hanout-panier__clear-button {
        font-size: clamp(12px, 3.8vw, 15px) !important;
        white-space: nowrap;
    }

    body.hanout-cart-page .hanout-panier__title {
        grid-column: 2;
        font-size: clamp(17px, 5vw, 21px);
    }

    body.hanout-cart-page .hanout-panier__layout {
        display: flex;
        height: auto !important;
        min-height: 0;
        flex: initial;
        flex-direction: column;
        gap: 10px;
    }

    body.hanout-cart-page .hanout-panier__items {
        flex: initial;
        min-height: 0;
        overflow: visible !important;
        gap: 8px;
        -webkit-overflow-scrolling: auto;
    }

    body.hanout-cart-page .hanout-panier__summary {
        position: static;
        z-index: auto;
        flex: initial;
        width: 100%;
        margin: 2px 0 0;
        padding: 13px 15px;
        border: 1px solid var(--hanout-cart-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(25, 55, 36, .09);
    }

    body.hanout-cart-page .hanout-panier__total {
        margin-bottom: 10px;
        font-size: 17px;
    }

    body.hanout-cart-page .hanout-panier__total span:last-child {
        font-size: clamp(19px, 5.5vw, 23px);
    }

    body.hanout-cart-page .hanout-panier__button {
        min-height: 50px;
        padding: 13px 16px;
        border-radius: 10px;
        font-size: 15px;
    }

    body.hanout-cart-page .hanout-panier__empty {
        margin-top: 8px;
    }
}

/* Mode compact : aucune barre de défilement sur la page panier.
   La liste des articles devient la seule zone défilante si nécessaire. */
body.hanout-cart-page {
    overflow: hidden;
}

body.hanout-cart-page .hanout-panier {
    height: calc(100dvh - 150px);
    min-height: 0;
    overflow: hidden;
}

body.hanout-cart-page .hanout-panier__layout {
    height: calc(100% - 52px);
}

body.hanout-cart-page .hanout-panier__items {
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Footer naturel en bas de l’écran lorsque le contenu est court, sur toutes les pages. */
html,
body {
    min-height: 100%;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

body > footer,
body > .site-footer,
body > .msp-inline-footer-01 {
    width: 100%;
    margin-top: auto !important;
}

@media (max-width: 900px) {
    /* Le panier prend toute la hauteur disponible de la vue mobile */
    body.hanout-cart-page .hanout-panier {
        height: 100dvh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        padding-bottom: 20px !important;
    }

    body.hanout-cart-page .hanout-panier__container {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    body.hanout-cart-page .hanout-panier__layout {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        gap: 8px;
    }

    /* La liste des articles absorbe tout l'espace disponible et scrolle en interne */
    body.hanout-cart-page .hanout-panier__items {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    /* Le bloc récapitulatif et le bouton commander restent fixes en bas de l'écran */
    body.hanout-cart-page .hanout-panier__summary {
        flex: 0 0 auto;
        padding: 10px 10px;
        background: #fff;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
        border-radius: 10px 10px 0 0;
    }

    .hanout-panier__layout {
        grid-template-columns: 1fr;
    }

    .hanout-panier__total {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .hanout-panier__total span:last-child {
        font-size: 22px;
    }

    .hanout-panier__button {
        min-height: 46px;
        font-size: 14px;
    }
}

@media (max-width: 620px) {
    .hanout-panier__header-wrap {
        min-height: 60px;
        gap: 4px;
        padding: 0 2px 2px;
    }

    .hanout-panier__back-link,
    .hanout-panier__clear-button {
        font-size: 16px !important;
    }

    .hanout-panier__title {
        font-size: 16px;
    }

    .hanout-panier__item {
        gap: 9px;
        padding: 10px;
    }

    .hanout-panier__image-wrap {
        flex-basis: 54px;
        width: 60px;
        height: 54px;
    }

    .hanout-panier__item-name {
        margin-bottom: 4px;
        font-size: 16px;
    }

    .hanout-panier__unit-price {
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .hanout-panier__item {
        gap: 6px;
        padding-inline: 7px;
    }

    .hanout-panier__image-wrap {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .hanout-panier__item-name {
        font-size: 14px;
    }
}


/* Correction mobile : le panier défile normalement et son bouton ne passe plus
   derrière la navigation fixe en bas de l’écran. */
@media (max-width: 900px) {
    body.hanout-cart-page {
       
      
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
    }

    body.hanout-cart-page .hanout-panier {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 8px 10px calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.hanout-cart-page .hanout-panier__container {
        display: block;
        width: min(100%, 720px);
        min-height: 0;
        flex: initial;
        margin-inline: auto;
    }

    body.hanout-cart-page .hanout-panier__header-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        min-height: 44px;
        gap: 5px;
        padding: 0 2px 7px;
    }

    body.hanout-cart-page .hanout-panier__back-link,
    body.hanout-cart-page .hanout-panier__clear-button {
        font-size: clamp(12px, 3.8vw, 15px) !important;
        white-space: nowrap;
    }

    body.hanout-cart-page .hanout-panier__title {
        grid-column: 2;
        font-size: clamp(17px, 5vw, 21px);
    }

    body.hanout-cart-page .hanout-panier__layout {
        display: flex;
        height: auto !important;
        min-height: 0;
        flex: initial;
        flex-direction: column;
        gap: 10px;
    }

    body.hanout-cart-page .hanout-panier__items {
        flex: initial;
        min-height: 0;
        overflow: visible !important;
        gap: 8px;
        -webkit-overflow-scrolling: auto;
    }

    body.hanout-cart-page .hanout-panier__summary {
        position: static;
        z-index: auto;
        flex: initial;
        width: 100%;
        margin: 2px 0 0;
        padding: 13px 15px;
        border: 1px solid var(--hanout-cart-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(25, 55, 36, .09);
    }

    body.hanout-cart-page .hanout-panier__total {
        margin-bottom: 10px;
        font-size: 17px;
    }

    body.hanout-cart-page .hanout-panier__total span:last-child {
        font-size: clamp(19px, 5.5vw, 23px);
    }

    body.hanout-cart-page .hanout-panier__button {
        min-height: 50px;
        padding: 13px 16px;
        border-radius: 10px;
        font-size: 15px;
    }

    body.hanout-cart-page .hanout-panier__empty {
        margin-top: 8px;
    }
}


/* Quantité mobile : commandes tactiles plus faciles, champ du chiffre compact. */
@media (max-width: 620px) {
    body.hanout-cart-page .hanout-panier .hanout-panier__quantity {
        display: inline-flex;
        flex: 0 0 100px !important;
        width: 100px !important;
        min-width: 100px !important;
        height: 42px !important;
        overflow: hidden;
        border-radius: 11px;
    }

    body.hanout-cart-page .hanout-panier .hanout-panier__quantity-button {
        display: flex;
        flex: 0 0 38px !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 42px !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        font-size: 27px !important;
        line-height: 1;
    }

    body.hanout-cart-page .hanout-panier .hanout-panier__quantity-input {
        flex: 0 0 24px !important;
        width: 24px !important;
        min-width: 0 !important;
        max-width: 24px !important;
        height: 40px !important;
        padding: 0 !important;
        font-size: 15px !important;
    }
}


/* Fond beige continu sur toute la page panier, y compris les marges du thème. */
body.hanout-cart-page,
body.hanout-cart-page #page,
body.hanout-cart-page .site,
body.hanout-cart-page .site-content,
body.hanout-cart-page #content,
body.hanout-cart-page #primary,
body.hanout-cart-page .content-area,
body.hanout-cart-page .site-main,
body.hanout-cart-page .entry-content,
body.hanout-cart-page .page-content,
body.hanout-cart-page .elementor,
body.hanout-cart-page .elementor-section-wrap {
    background-color: #f6edda !important;
}

body.hanout-cart-page {
    background-image: linear-gradient(180deg, #faf8f5 0%, #f6edda 42%, #f6edda 100%) !important;
}

body.hanout-cart-page .hanout-panier {
    background: linear-gradient(180deg, #faf8f5 0%, #f6edda 42%, #f6edda 100%) !important;
}


/* Refonte visuelle raffinée du panier — ivoire, olive et détails dorés. */
body.hanout-cart-page .hanout-panier {
    --hanout-cart-primary: #173d2b;
    --hanout-cart-secondary: #245239;
    --hanout-cart-accent: #b68b36;
    --hanout-cart-text: #27342c;
    --hanout-cart-muted: #718077;
    --hanout-cart-border: #e5e8de;
    width: 100%;
    padding: clamp(22px, 4vw, 48px) 20px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(180deg, #fbf9f4 0%, #f5eedf 100%) !important;
}

body.hanout-cart-page .hanout-panier__container {
    width: min(100%, 1160px);
}

body.hanout-cart-page .hanout-panier__header-wrap {
    min-height: 72px;
    margin: 0 0 22px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(23, 61, 43, .12);
}

body.hanout-cart-page .hanout-panier__back-link {
    padding: 10px 14px;
    border: 1px solid rgba(23, 61, 43, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    color: var(--hanout-cart-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

body.hanout-cart-page .hanout-panier__back-link:hover {
    transform: translateY(-1px);
    border-color: rgba(23, 61, 43, .34);
    background: #fff;
    text-decoration: none;
}

body.hanout-cart-page .hanout-panier__title {
    color: var(--hanout-cart-primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(27px, 3.5vw, 38px);
    font-style: normal;
    font-weight: 600;
    letter-spacing: -.035em;
}

body.hanout-cart-page .hanout-panier__clear-button {
    padding: 9px 13px;
    border: 1px solid rgba(157, 44, 36, .13) !important;
    border-radius: 999px;
    background: #fff5f2 !important;
    color: #9b3c31 !important;
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 650;
    transition: background .18s ease;
}

body.hanout-cart-page .hanout-panier__clear-button:hover {
    background: #fce8e3 !important;
    text-decoration: none;
}

body.hanout-cart-page .hanout-panier__layout {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
    align-items: start;
    gap: clamp(18px, 3vw, 30px);
}

body.hanout-cart-page .hanout-panier__items {
    gap: 12px;
}

body.hanout-cart-page .hanout-panier__item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(105px, auto) auto;
    grid-template-areas: "image info total actions";
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 18px;
    border: 1px solid rgba(23, 61, 43, .09);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 18px rgba(34, 48, 37, .045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.hanout-cart-page .hanout-panier__item:hover {
    transform: translateY(-1px);
    border-color: rgba(182, 139, 54, .32);
    box-shadow: 0 10px 26px rgba(34, 48, 37, .075);
}

body.hanout-cart-page .hanout-panier__image-wrap {
    grid-area: image;
    flex-basis: 72px;
    width: 72px;
    height: 72px;
    border: 2px solid rgba(182, 139, 54, .55);
    background: #faf8f1;
    box-shadow: 0 2px 8px rgba(23, 61, 43, .08);
}

body.hanout-cart-page .hanout-panier__item-info {
    grid-area: info;
}

body.hanout-cart-page .hanout-panier__item-name {
    margin-bottom: 7px;
    color: var(--hanout-cart-primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(17px, 1.65vw, 21px);
    line-height: 1.25;
}

body.hanout-cart-page .hanout-panier__unit-price {
    color: var(--hanout-cart-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 550;
}

body.hanout-cart-page .hanout-panier .hanout-panier__item-total {
    display: flex;
    grid-area: total;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    color: var(--hanout-cart-muted);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.hanout-cart-page .hanout-panier__item-total strong {
    color: var(--hanout-cart-primary);
    font-size: 16px;
    font-weight: 750;
    letter-spacing: 0;
    white-space: nowrap;
}

body.hanout-cart-page .hanout-panier__item-actions {
    grid-area: actions;
    gap: 10px;
}

body.hanout-cart-page .hanout-panier .hanout-panier__quantity {
    width: 108px;
    height: 42px;
    border: 1px solid #e3e2d9;
    border-radius: 12px;
    background: #faf9f5;
}

body.hanout-cart-page .hanout-panier .hanout-panier__quantity-button {
    width: 38px;
    background: #f1f0e8;
    color: var(--hanout-cart-primary);
    font-size: 23px;
    transition: background .15s ease;
}

body.hanout-cart-page .hanout-panier .hanout-panier__quantity-button:hover:not(:disabled) {
    background: #e8e6d9;
}

body.hanout-cart-page .hanout-panier .hanout-panier__quantity-input {
    flex: 1 1 auto;
    width: 30px;
    border-color: #e9e7dd;
    background: #fff;
    color: var(--hanout-cart-primary);
    font-size: 15px;
}

body.hanout-cart-page .hanout-panier__remove {
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #9b6158;
    transition: background .15s ease, color .15s ease;
}

body.hanout-cart-page .hanout-panier__remove svg {
    display: block;
    width: 19px;
    height: 19px;
}

body.hanout-cart-page .hanout-panier__remove:hover,
body.hanout-cart-page .hanout-panier__remove:focus-visible {
    background: #fff0ec;
    color: #9d2c24;
}

body.hanout-cart-page .hanout-panier__summary {
    position: sticky;
    top: 24px;
    padding: 24px;
    border: 1px solid rgba(23, 61, 43, .1);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(34, 48, 37, .075);
}

body.hanout-cart-page .hanout-panier__summary-eyebrow {
    margin: 0 0 18px;
    color: var(--hanout-cart-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

body.hanout-cart-page .hanout-panier__total {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid #eceee8;
    color: var(--hanout-cart-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}

body.hanout-cart-page .hanout-panier__total span:last-child {
    color: var(--hanout-cart-primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.025em;
}

body.hanout-cart-page .hanout-panier__button {
    min-height: 54px;
    gap: 10px;
    padding: 15px 18px;
    border: 1px solid var(--hanout-cart-primary);
    border-radius: 12px;
    background: var(--hanout-cart-primary);
    box-shadow: 0 5px 12px rgba(23, 61, 43, .14);
    color: #fff !important;
    font-size: 14px;
    letter-spacing: .025em;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.hanout-cart-page .hanout-panier__button span {
    color: #e8cf91;
    font-size: 20px;
    line-height: 1;
}

body.hanout-cart-page .hanout-panier__button:hover,
body.hanout-cart-page .hanout-panier__button:focus-visible {
    transform: translateY(-1px);
    background: var(--hanout-cart-secondary);
    box-shadow: 0 8px 18px rgba(23, 61, 43, .19);
}

body.hanout-cart-page .hanout-panier__summary-note {
    margin: 13px 0 0;
    color: var(--hanout-cart-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

body.hanout-cart-page .hanout-panier__empty {
    max-width: 620px;
    margin: 28px auto;
    padding: 46px 28px;
    border: 1px solid rgba(23, 61, 43, .1);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 32px rgba(34, 48, 37, .06);
}

body.hanout-cart-page .hanout-panier__empty-title {
    margin-bottom: 22px;
    color: var(--hanout-cart-primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 27px;
}

body.hanout-cart-page .hanout-panier__notice {
    margin: 0 0 14px;
    padding: 12px 16px;
    border: 1px solid #ead9a8;
    border-radius: 12px;
    background: #fff9e9;
    font-size: 14px;
}

@media (max-width: 900px) {
    body.hanout-cart-page .hanout-panier {
        padding: 20px 14px calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.hanout-cart-page .hanout-panier__header-wrap {
        min-height: 58px;
        margin-bottom: 16px;
        padding-bottom: 13px;
    }

    body.hanout-cart-page .hanout-panier__layout {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    body.hanout-cart-page .hanout-panier__items {
        gap: 10px;
    }

    body.hanout-cart-page .hanout-panier__item {
        grid-template-columns: 58px minmax(0, 1fr) auto;
        grid-template-areas:
            "image info actions"
            "image total actions";
        gap: 5px 12px;
        min-height: 98px;
        padding: 13px;
        border-radius: 16px;
    }

    body.hanout-cart-page .hanout-panier__image-wrap {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        grid-row: 1 / span 2;
    }

    body.hanout-cart-page .hanout-panier__item-name {
        margin-bottom: 3px;
        font-size: 16px;
    }

    body.hanout-cart-page .hanout-panier__unit-price {
        font-size: 12px;
    }

    body.hanout-cart-page .hanout-panier .hanout-panier__item-total {
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
        font-size: 9px;
    }

    body.hanout-cart-page .hanout-panier__item-total strong {
        font-size: 13px;
    }

    body.hanout-cart-page .hanout-panier__item-actions {
        flex-wrap: nowrap;
        gap: 5px;
    }

    body.hanout-cart-page .hanout-panier .hanout-panier__quantity {
        flex: 0 0 100px !important;
        width: 100px !important;
        min-width: 100px !important;
        height: 40px !important;
    }

    body.hanout-cart-page .hanout-panier .hanout-panier__quantity-button {
        flex: 0 0 37px !important;
        width: 37px !important;
        min-width: 37px !important;
        height: 40px !important;
        font-size: 25px !important;
    }

    body.hanout-cart-page .hanout-panier .hanout-panier__quantity-input {
        flex: 0 0 24px !important;
        width: 24px !important;
        max-width: 24px !important;
        height: 38px !important;
        font-size: 14px !important;
    }

    body.hanout-cart-page .hanout-panier__remove {
        width: 32px;
        height: 36px;
    }

    body.hanout-cart-page .hanout-panier__summary {
        position: static;
        width: 100%;
        padding: 19px;
        border-radius: 17px;
    }

    body.hanout-cart-page .hanout-panier__summary-eyebrow {
        margin-bottom: 12px;
    }

    body.hanout-cart-page .hanout-panier__total {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 13px;
        font-size: 13px;
    }

    body.hanout-cart-page .hanout-panier__total span:last-child {
        font-size: 24px;
    }

    body.hanout-cart-page .hanout-panier__button {
        min-height: 52px;
        font-size: 14px;
    }
}

@media (max-width: 390px) {
    body.hanout-cart-page .hanout-panier__item {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 5px 8px;
        padding: 11px 9px;
    }

    body.hanout-cart-page .hanout-panier__image-wrap {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    body.hanout-cart-page .hanout-panier .hanout-panier__quantity {
        flex-basis: 92px !important;
        width: 92px !important;
        min-width: 92px !important;
    }

    body.hanout-cart-page .hanout-panier .hanout-panier__quantity-button {
        flex-basis: 34px !important;
        width: 34px !important;
        min-width: 34px !important;
    }

    body.hanout-cart-page .hanout-panier__item-actions {
        gap: 3px;
    }
}


/* Mobile prioritaire : fiche produit en deux rangées, sans comprimer son nom. */
@media (max-width: 900px) {
    body.hanout-cart-page {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
    }

    body.hanout-cart-page .hanout-panier {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 20px 10px calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.hanout-cart-page .hanout-panier__container {
        display: block;
        width: 100%;
        margin-inline: auto;
    }

    body.hanout-cart-page .hanout-panier__header-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        min-height: 58px;
        margin-bottom: 16px;
        padding-bottom: 13px;
        gap: 5px;
    }

    body.hanout-cart-page .hanout-panier__back-link,
    body.hanout-cart-page .hanout-panier__clear-button {
        font-size: clamp(11px, 3.5vw, 14px) !important;
        white-space: nowrap;
        padding: 8px 10px;
    }

    body.hanout-cart-page .hanout-panier__title {
        grid-column: 2;
        font-size: clamp(16px, 4.5vw, 20px);
    }

    body.hanout-cart-page .hanout-panier__layout {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    body.hanout-cart-page .hanout-panier__items {
        gap: 8px;
    }

    /* --- L'ARTICLE SUR UNE SEULE LIGNE EN MOBILE --- */
    body.hanout-cart-page .hanout-panier__item {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        min-height: auto;
        padding: 10px 8px;
        border-radius: 14px;
    }

    /* Miniature compacte */
    body.hanout-cart-page .hanout-panier__image-wrap {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    /* Infos produit (Nom + Prix unitaire) qui prennent l'espace flexible */
    body.hanout-cart-page .hanout-panier__item-info {
        flex: 1 1 auto;
        min-width: 0;
    }

    body.hanout-cart-page .hanout-panier__item-name {
        margin-bottom: 2px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.hanout-cart-page .hanout-panier__unit-price {
        font-size: 11px;
    }

    /* Total de la ligne affiché de manière ultra-compacte */
    body.hanout-cart-page .hanout-panier .hanout-panier__item-total {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        flex: 0 0 auto;
        font-size: 9px;
        text-align: right;
        margin: 0 4px;
    }

    body.hanout-cart-page .hanout-panier__item-total strong {
        font-size: 12px;
    }

    /* Actions (Quantité + Suppression) alignées en bout de ligne */
    body.hanout-cart-page .hanout-panier__item-actions {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 4px;
        margin: 0;
    }

    /* Réduction subtil du sélecteur de quantité pour tenir sur la ligne */
    body.hanout-cart-page .hanout-panier .hanout-panier__quantity {
        flex: 0 0 82px !important;
        width: 82px !important;
        min-width: 82px !important;
        height: 34px !important;
        border-radius: 8px;
    }

    body.hanout-cart-page .hanout-panier .hanout-panier__quantity-button {
        flex: 0 0 28px !important;
        width: 28px !important;
        min-width: 28px !important;
        height: 34px !important;
        font-size: 18px !important;
    }

    body.hanout-cart-page .hanout-panier .hanout-panier__quantity-input {
        flex: 1 1 auto !important;
        width: 26px !important;
        height: 32px !important;
        font-size: 13px !important;
        padding: 0 !important;
    }

    body.hanout-cart-page .hanout-panier__remove {
        width: 28px;
        height: 32px;
    }

    body.hanout-cart-page .hanout-panier__remove svg {
        width: 15px;
        height: 15px;
    }

    /* Bloc récapitulatif bas de page */
    body.hanout-cart-page .hanout-panier__summary {
        position: static;
        width: 100%;
        margin: 2px 0 0;
        padding: 13px 15px;
        border-radius: 14px;
        box-shadow: 0 4px 14px rgba(25, 55, 36, .09);
    }

    body.hanout-cart-page .hanout-panier__total {
        margin-bottom: 10px;
        font-size: 17px;
    }

    body.hanout-cart-page .hanout-panier__total span:last-child {
        font-size: clamp(19px, 5.5vw, 23px);
    }

    body.hanout-cart-page .hanout-panier__button {
        min-height: 50px;
        padding: 13px 16px;
        border-radius: 10px;
        font-size: 15px;
    }
}