
/* Source: base.css */
:root {
    --main: #c567c7;
    --main-dark: #ab4faf;
    --main-light: #f6ebf6;
    --bg: #f4f4f4;
    --white: #ffffff;
    --text: #111111;
    --muted: #717171;
    --line: #d7d7d7;
    --dark-btn: #333333;
    --shadow: 0 10px 24px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.mobile-topbar {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #e4e4e4;
}

.site-header {
    padding: 18px 16px 6px;
    background: var(--bg);
}
.logo-wrap {
    width: min(100%, 420px);
    margin: 0 auto;
}

/* Source: layout.css */
.site-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.page-shell {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 340px;
    gap: 24px;
    padding-bottom: 110px;
}

.sidebar-box,
.cart-panel,
.menu-section {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.desktop-sidebar,
.desktop-cart { padding-top: 8px; }
.sidebar-box {
    padding: 22px 16px;
    position: sticky;
    top: 16px;
}
.sidebar-box h3 {
    margin: 0 0 14px;
    font-size: 18px;
}
.category-list-vertical { display: flex; flex-direction: column; gap: 8px; }
.category-btn,
.category-chip {
    border: none;
    background: #fff;
    color: #444;
    cursor: pointer;
    transition: .2s ease;
}
.category-btn {
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
}
.category-btn.active,
.category-chip.active,
.category-btn:hover,
.category-chip:hover {
    background: var(--main-light);
    color: var(--main-dark);
}

.menu-main { min-width: 0; }
.category-strip {
    display: none;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 12px;
    scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-chip {
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0,0,0,.04);
    font-weight: 700;
}

.menu-section {
    padding: 18px 0 0;
    overflow: hidden;
}
.section-title {
    margin: 8px 16px 20px;
    text-align: center;
    font-size: clamp(28px, 5vw, 54px);
    font-weight: 300;
    color: #6c6c6c;
    position: relative;
}
.section-title::before,
.section-title::after {
    content: "";
    display: inline-block;
    width: 34px;
    height: 6px;
    border-radius: 999px;
    background: var(--main);
    margin: 0 16px 10px;
    vertical-align: middle;
}


/* Order-level options on checkout */
.order-options-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 18px;
    margin: 18px 0;
}

.order-options-box h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.couverts-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    padding: 12px;
    background: #f7f7f7;
    border-radius: 12px;
}

/* Admin option system */
.admin-fieldset {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 14px;
    margin: 16px 0;
}

.admin-fieldset legend {
    font-weight: 800;
    padding: 0 8px;
}

.admin-help {
    color: #666;
    font-size: 14px;
}

.admin-small-link {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f1e5f3;
    color: #9b419e;
    font-weight: 700;
    text-decoration: none;
}

.option-admin-line span {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.admin-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.admin-card.full {
    margin-top: 10px;
}

.admin-form.compact input,
.admin-form.compact select,
.admin-form.compact textarea {
    margin-bottom: 10px;
}

.option-group-admin {
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

.option-group-title,
.option-item-admin-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.option-group-title small {
    display: block;
    color: #666;
    margin-top: 4px;
}

.option-item-admin-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.option-item-admin-list li {
    padding: 9px 0;
    border-top: 1px solid #f0f0f0;
}

.admin-mini-btn {
    border: none;
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
    background: #333;
    color: #fff;
}

@media (max-width: 800px) {
    .admin-grid-two {
        grid-template-columns: 1fr;
    }
    .option-group-title,
    .option-item-admin-list li {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Source: products.css */
.products-list {
    display: flex;
    flex-direction: column;
}
.product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 20px;
    padding: 22px 18px;
    border-top: 1px solid var(--line);
    min-height: 220px;
    background: transparent;
}
.product-card:first-child { border-top: none; }
.product-info {
    display: flex;
    flex-direction: column;
    min-height: 176px;
}
.product-info h3 {
    margin: 0 0 10px;
    font-size: clamp(18px, 2.4vw, 28px);
    font-weight: 800;
}
.product-desc {
    margin: 0 0 10px;
    color: #666;
    font-size: clamp(16px, 2vw, 22px);
    font-style: italic;
}
.product-allergens {
    margin: 0;
    color: #9b9b9b;
    font-size: 13px;
    min-height: 16px;
    display: none;
}
.product-bottom-row {
    margin-top: auto;
}
.product-price {
    margin: 0;
    color: #757575;
    font-size: clamp(20px, 2vw, 34px);
    font-weight: 300;
}
.product-price span { font-size: .75em; }
.product-media {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.product-img {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 0.72;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
}
.add-btn {
    width: 62px;
    height: 62px;
    border: none;
    background: transparent;
    color: var(--main);
    font-size: 42px;
    cursor: pointer;
    border-radius: 12px;
}
.add-btn:hover { background: rgba(197,103,199,.08); }


/* Source: cart.css */
.desktop-cart { display: block; }
.cart-panel {
    position: sticky;
    top: 16px;
    padding: 18px;
}
.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.cart-panel-header h2,
.drawer-header h3 { margin: 0; }
.cart-counter,
.floating-badge {
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #222;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 45vh;
    overflow: auto;
    padding-right: 4px;
}
.cart-item {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 10px;
    align-items: start;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    position: relative;
}
.cart-item-img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-info h4 { margin: 0 0 4px; font-size: 14px; }
.cart-item-info p { margin: 0 0 6px; font-size: 13px; color: #666; }
.cart-options { font-size: 12px !important; color: #777; }
.cart-controls {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.cart-controls button,
.drawer-close,
.modal-close,
.modal-quantity button {
    border: none;
    cursor: pointer;
}
.cart-controls button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--main-light);
    color: var(--main-dark);
    font-weight: 700;
}
.cart-item-price { font-weight: 700; font-size: 14px; }
.cart-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #444;
    cursor: pointer;
}
.cart-summary { margin-top: 16px; }
.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}
.summary-total {
    border-top: 1px solid #e9e9e9;
    margin-top: 8px;
    padding-top: 14px;
    font-size: 18px;
}
.checkout-btn {
    display: block;
    margin-top: 16px;
    text-align: center;
    background: var(--dark-btn);
    color: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 700;
}


/* Source: drawer-bottom.css */
.mobile-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
}
.mobile-cart-drawer.active { pointer-events: auto; }
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    transition: opacity .25s ease;
}
.drawer-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: min(92vw, 420px);
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 18px 16px 24px;
    display: flex;
    flex-direction: column;
}
.mobile-cart-drawer.active .drawer-backdrop { opacity: 1; }
.mobile-cart-drawer.active .drawer-panel { transform: translateX(0); }
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.drawer-close,
.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f2f2f2;
    font-size: 22px;
}

.mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: #fff;
    border-top: 1px solid #ddd;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -5px 18px rgba(0,0,0,.08);
}
.bottom-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #222;
    font-size: 34px;
}
.center-btn { font-size: 32px; }
.bottom-order-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 12px;
    background: var(--dark-btn);
    color: #fff;
    font-size: 17px;
    text-transform: lowercase;
}
.floating-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 24px;
    height: 24px;
    background: #2f2f2f;
}


/* Source: modal-legacy.css */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}
.product-modal.active { display: block; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}
.modal-box {
    position: relative;
    z-index: 2;
    width: min(960px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
    margin: 14px auto;
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
}
.modal-left img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}
.modal-right h2 { margin: 0 0 10px; }
.modal-price { margin: 0 0 12px; color: var(--main-dark); font-size: 22px; font-weight: 700; }
.modal-description { color: #666; margin-bottom: 18px; }
.modal-section { padding: 12px 0; border-top: 1px solid #efefef; }
.modal-section h3 { margin: 0 0 10px; font-size: 16px; }
.option-line { display: block; margin: 8px 0; color: #444; }
.modal-help { margin: 0 0 8px; color: #777; font-size: 14px; }
#modal-comment {
    width: 100%;
    min-height: 84px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 12px;
    resize: vertical;
}
.modal-quantity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.modal-quantity button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--main-light);
    color: var(--main-dark);
    font-size: 24px;
}
.modal-add-cart {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--main);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}
.modal-category { margin-top: 10px; color: #666; font-size: 14px; }
.mobile-only { display: none; }

@media (max-width: 1100px) {
    .page-shell {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
    .desktop-sidebar { display: none; }
}

@media (max-width: 800px) {
    .page-shell {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
    }
    .desktop-cart { display: none; }
    .menu-section {
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .mobile-only,
    .mobile-bottom-bar { display: flex; }
    .category-strip {
        display: flex;
        padding: 0 12px 10px;
    }
    .section-title { margin-top: 10px; }
    .product-card {
        grid-template-columns: minmax(0, 1fr) 120px;
        gap: 14px;
        min-height: 180px;
        padding: 18px 16px;
        background: rgba(255,255,255,.75);
        border-top: 1px solid #dcdcdc;
    }
    .product-info { min-height: 142px; }
    .product-desc { font-size: 15px; }
    .product-price { font-size: 20px; }
    .product-img {
        max-width: 120px;
        border-radius: 12px;
    }
    .add-btn {
        width: 50px;
        height: 50px;
        font-size: 34px;
    }
    .modal-box {
        grid-template-columns: 1fr;
        width: calc(100% - 16px);
        margin: 8px auto;
        padding: 16px;
        max-height: calc(100vh - 16px);
    }
}


/* Source: mobile-app.css */
/* =========================
   Version mobile app finale
   ========================= */
.site-header {
    padding: 12px 16px 4px;
}
.logo-wrap {
    width: min(100%, 300px);
}
.site-logo {
    max-height: 92px;
    object-fit: contain;
}

@media (max-width: 800px) {
    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 60;
        height: 44px;
        font-size: 17px;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(10px);
    }

    .site-header {
        padding: 12px 12px 6px;
    }

    .logo-wrap {
        width: min(100%, 250px);
    }

    .site-logo {
        max-height: 74px;
        margin: 0 auto;
    }

    .category-strip {
        position: sticky;
        top: 44px;
        z-index: 55;
        background: rgba(244,244,244,.96);
        backdrop-filter: blur(10px);
        padding: 10px 12px 12px;
        box-shadow: 0 8px 18px rgba(0,0,0,.08);
    }

    .category-chip {
        min-height: 42px;
        padding: 10px 18px;
        border-radius: 999px;
        background: #fff;
        color: #555;
        border: 1px solid #ececec;
        font-size: 15px;
        box-shadow: 0 6px 16px rgba(0,0,0,.07);
    }

    .category-chip.active {
        background: var(--main);
        color: #fff;
        border-color: var(--main);
        box-shadow: 0 8px 20px rgba(197,103,199,.32);
    }

    .section-title {
        margin: 18px 12px 18px;
        font-size: 32px;
    }

    .section-title::before,
    .section-title::after {
        width: 28px;
        height: 5px;
        margin: 0 12px 8px;
    }

    .products-list {
        background: rgba(255,255,255,.55);
    }

    .product-card {
        grid-template-columns: minmax(0, 1fr) 130px;
        min-height: 176px;
        padding: 18px 16px;
        gap: 14px;
    }

    .product-info h3 {
        font-size: 22px;
        line-height: 1.15;
        letter-spacing: .2px;
    }

    .product-desc {
        font-size: 16px;
        line-height: 1.25;
    }

    .product-media {
        align-items: flex-end;
        justify-content: center;
        gap: 14px;
    }

    .product-img {
        width: 130px;
        height: 104px;
        max-width: 130px;
        aspect-ratio: auto;
        object-fit: cover;
        border-radius: 11px;
    }

    .add-btn {
        width: 58px;
        height: 54px;
        font-size: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--main);
    }

    .product-price {
        font-size: 21px;
    }

    .mobile-bottom-bar {
        min-height: 82px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        gap: 18px;
    }

    .bottom-icon-btn {
        width: 62px;
        height: 58px;
        font-size: 34px;
    }

    .bottom-order-btn {
        height: 58px;
        max-width: 190px;
        font-size: 23px;
        border-radius: 11px;
        font-weight: 500;
        letter-spacing: .2px;
    }

    .drawer-panel {
        width: min(94vw, 430px);
    }
}

@media (max-width: 390px) {
    .logo-wrap { width: min(100%, 220px); }
    .product-card {
        grid-template-columns: minmax(0, 1fr) 116px;
        padding: 16px 14px;
    }
    .product-img {
        width: 116px;
        height: 96px;
    }
    .product-info h3 { font-size: 20px; }
    .bottom-order-btn { font-size: 20px; }
}

.confirmation-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.whatsapp-btn,
.secondary-btn {
    display: block;
    text-align: center;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 700;
}
.whatsapp-btn {
    background: #25D366;
    color: #fff;
}
.secondary-btn {
    background: #f1f1f1;
    color: #222;
}

/* Source: modal.css */
/* =========================
   Correction finale modal mobile
   - bouton Ajouter toujours visible
   - contenu du popup scrollable
   - compatible iPhone Safari
========================= */
body.modal-open {
    overflow: hidden;
    touch-action: none;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
}

.product-modal.active {
    display: flex;
}

.product-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.product-modal .modal-box {
    position: relative;
    z-index: 2;
    width: min(960px, 100%);
    max-height: calc(100dvh - 20px);
    margin: 0 auto;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -12px 35px rgba(0,0,0,.18);
}

@supports not (height: 100dvh) {
    .product-modal .modal-box {
        max-height: calc(100vh - 20px);
    }
}

.product-modal .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(245,245,245,.95);
}

.modal-header-mobile {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px 56px 14px 18px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.modal-thumb-wrap img,
#modal-image {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
}

.modal-title-wrap h2,
.product-modal #modal-title {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.15;
}

.product-modal .modal-price {
    margin: 0 0 6px;
    color: var(--main-dark);
    font-size: 20px;
    font-weight: 800;
}

.product-modal .modal-description {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.3;
}

.product-modal .modal-allergens {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
}

.modal-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 18px 18px;
    background: #fff;
}

.product-modal .modal-section {
    padding: 18px 0;
    border-top: 1px solid #eeeeee;
}

.product-modal .modal-section:first-child {
    border-top: none;
}

.product-modal .modal-section h3 {
    margin: 0 0 13px;
    font-size: 18px;
    line-height: 1.2;
}

.product-modal .option-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 13px 0;
    color: #444;
    font-size: 18px;
    line-height: 1.25;
}

.product-modal .option-line input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.product-modal #modal-comment {
    width: 100%;
    min-height: 88px;
    max-height: 128px;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 14px;
    resize: vertical;
    font-size: 16px;
}

.modal-footer-fixed {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #eeeeee;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 18px rgba(0,0,0,.06);
}

.product-modal .modal-quantity {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.product-modal .modal-quantity button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--main-light);
    color: var(--main-dark);
    font-size: 28px;
    font-weight: 800;
}

.product-modal #modal-quantity {
    min-width: 22px;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
}

.product-modal .modal-add-cart {
    flex: 1 1 auto;
    width: auto;
    min-height: 54px;
    margin: 0;
    padding: 0 16px;
    background: var(--dark-btn);
    color: #fff;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 800;
}

.free-sauce-group .dynamic-option-items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.free-sauce-group .dynamic-option-items::-webkit-scrollbar {
    display: none;
}

.free-sauce-group .option-line {
    flex: 1 0 auto;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 15px;
}

.extra-sauce-group details summary {
    cursor: pointer;
    font-weight: 800;
    padding: 4px 0;
    list-style: none;
}

.extra-sauce-group details summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 8px;
    font-size: 12px;
}

.extra-sauce-group details[open] summary::before {
    transform: rotate(90deg);
}

.product-modal .modal-category {
    margin: 0 0 4px;
    color: #777;
    font-size: 13px;
}

@media (min-width: 801px) {
    .product-modal {
        align-items: center;
        padding: 20px;
    }
    .product-modal .modal-box {
        border-radius: 24px;
        max-height: calc(100dvh - 40px);
    }
}

@media (max-width: 800px) {
    .product-modal {
        padding: 8px 8px 0;
    }

    .product-modal .modal-box {
        width: 100%;
        max-height: calc(100dvh - 8px);
        border-radius: 22px 22px 0 0;
    }

    .modal-header-mobile {
        grid-template-columns: 136px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 52px 12px 14px;
    }

    .modal-thumb-wrap img,
    #modal-image {
        width: 136px;
        height: 104px;
        border-radius: 12px;
    }

    .modal-title-wrap h2,
    .product-modal #modal-title {
        font-size: 20px;
        line-height: 1.15;
    }

    .product-modal .modal-price {
        font-size: 17px;
    }

    .product-modal .modal-description {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .modal-scroll-body {
        padding: 0 16px 14px;
    }

    .product-modal .modal-section {
        padding: 15px 0;
    }

    .product-modal .modal-section h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .product-modal .option-line {
        margin: 11px 0;
        font-size: 17px;
    }

    .modal-footer-fixed {
        gap: 10px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    }

    .product-modal .modal-quantity button {
        width: 38px;
        height: 38px;
        font-size: 26px;
    }

    .product-modal .modal-add-cart {
        min-height: 50px;
        font-size: 17px;
        border-radius: 13px;
    }

    .free-sauce-group .option-line {
        padding: 9px 10px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .modal-header-mobile {
        grid-template-columns: 112px minmax(0, 1fr);
    }
    .modal-thumb-wrap img,
    #modal-image {
        width: 112px;
        height: 88px;
    }
    .product-modal .modal-quantity button {
        width: 40px;
        height: 40px;
    }
    .product-modal .modal-add-cart {
        font-size: 15px;
    }
}

/* =========================
   Dynamic product options
========================= */
.modal-options-container .modal-no-options p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.dynamic-option-group.option-threshold-hidden {
    display: none !important;
}

.quantity-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.quantity-option-row:last-child {
    border-bottom: none;
}

.quantity-option-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quantity-option-name strong {
    font-size: 16px;
    color: #222;
}

.quantity-option-name span {
    font-size: 14px;
    color: var(--main-dark);
    font-weight: 700;
}

.quantity-option-controls {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.quantity-option-controls button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--main-light);
    color: var(--main-dark);
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
}

.qty-option-value {
    min-width: 22px;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
}

.dynamic-text-option {
    width: 100%;
    min-height: 88px;
    max-height: 128px;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 14px;
    resize: vertical;
    font-size: 16px;
}

@media (max-width: 800px) {
    .quantity-option-name strong {
        font-size: 15px;
    }
    .quantity-option-controls button {
        width: 34px;
        height: 34px;
    }
}

/* Source: ergonomic.css */
/* =========================================================
   XINFU - couche ergonomique finale
   Objectif : lecture rapide, commande rapide, mobile propre
========================================================= */
:root {
    --main: #b84fc3;
    --main-dark: #87308f;
    --main-light: #fbecfd;
    --accent: #191919;
    --bg: #f7f4f1;
    --card: #ffffff;
    --soft: #fff8f2;
    --line: #ece5df;
    --text: #18151a;
    --muted: #746c76;
    --success: #129b5a;
    --danger: #d64646;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 18px 45px rgba(43, 24, 48, .10);
    --shadow-soft: 0 10px 28px rgba(43, 24, 48, .08);
}

body {
    background:
        radial-gradient(circle at 18% -5%, rgba(184, 79, 195, .14), transparent 34%),
        linear-gradient(180deg, #fffaf5 0%, #f7f4f1 38%, #f7f4f1 100%);
    min-height: 100vh;
}

button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(184, 79, 195, .32);
    outline-offset: 3px;
}
.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.ui-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: currentColor;
    vertical-align: -.12em;
    flex: 0 0 auto;
}

.mobile-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 70;
    min-height: 60px;
    gap: 12px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #eee4dd;
    backdrop-filter: blur(12px);
    justify-content: space-between;
    align-items: center;
    padding: 6px max(14px, calc((100% - 1280px) / 2));
}
.mobile-topbar > a:last-child {
    color: var(--main-dark);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.topbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
.topbar-brand img {
    display: block;
    width: 170px;
    height: 54px;
    object-fit: contain;
}

.hero-header {
    padding: 14px 20px 18px;
    background: transparent;
}
.hero-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 260px;
    align-items: center;
    gap: 22px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 30px;
    background: rgba(255,255,255,.70);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}
.hero-inner-compact {
    display: block;
    padding: 20px 24px;
}
.hero-inner-compact .hero-copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}
.hero-location {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.hero-location .ui-icon {
    margin-right: 6px;
    color: var(--main);
}
.hero-logo-card {
    display: grid;
    place-items: center;
    min-height: 130px;
    padding: 12px;
    border-radius: 24px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #f1e7e0;
}
.logo-wrap { width: auto; margin: 0; }
.site-logo { width: 100%; max-width: 270px; max-height: 118px; height: auto; object-fit: contain; margin: 0 auto; }
.hero-kicker {
    margin: 0 0 6px;
    color: var(--main-dark);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
}
.hero-copy h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: .98;
    letter-spacing: -.04em;
}
.hero-text {
    margin: 12px 0 16px;
    max-width: 680px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-badges span,
.hero-contact-card {
    border: 1px solid #efe4dc;
    background: rgba(255,255,255,.85);
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 700;
    font-size: 13px;
    color: #332e35;
}
.hero-badges i { color: var(--main); margin-right: 6px; }
.hero-contact-card {
    border-radius: 22px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    line-height: 1.3;
}
.hero-contact-card strong { font-size: 18px; }
.hero-contact-card span { color: var(--muted); font-size: 13px; }
.hero-contact-card a {
    color: var(--main-dark);
    font-weight: 900;
    font-size: 18px;
}
.hero-contact-card .account-entry {
    display: inline-flex;
    justify-content: center;
    margin-top: 5px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.legal-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 20px 16px 108px;
    color: var(--muted);
    font-size: 13px;
}
.legal-footer a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-shell {
    width: min(1280px, calc(100% - 28px));
    grid-template-columns: 230px minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}
.sidebar-box, .cart-panel, .menu-section {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.desktop-sidebar,
.desktop-cart {
    position: sticky;
    top: 18px;
    align-self: start;
}
.sidebar-box,
.cart-panel {
    position: static;
}
.sidebar-box h3 { font-size: 20px; }
.category-list-vertical { margin-top: 8px; max-height: calc(100vh - 160px); overflow: auto; padding-right: 4px; }
.category-btn {
    width: 100%;
    border: 1px solid transparent;
    background: rgba(255,255,255,.75);
    color: #4a424b;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.category-btn::after {
    content: "›";
    opacity: .35;
    font-size: 20px;
}
.category-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 22px rgba(25,25,25,.16);
}
.category-btn.active::after { opacity: 1; }
.category-btn:hover:not(.active) {
    background: var(--main-light);
    border-color: #efd1f2;
}

.menu-tools {
    position: sticky;
    top: 12px;
    z-index: 45;
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}
.menu-search-wrap {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #eadfd8;
    border-radius: 18px;
    background: rgba(255,255,255,.93);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}
.menu-search-wrap .ui-icon { color: var(--main); }
.menu-search-wrap input {
    border: 0;
    outline: 0;
    background: transparent;
    min-height: 36px;
    font-size: 16px;
    color: var(--text);
}
.menu-search-wrap button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1ece8;
    color: #504950;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}
.category-strip { display: flex; padding: 0 2px 2px; }
.category-chip {
    border: 1px solid #eee1d9;
    background: #fff;
    color: #4a424b;
    min-height: 42px;
}
.category-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.menu-section { overflow: visible; padding: 0; }
.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 22px 12px;
}
.section-eyebrow {
    margin: 0 0 5px;
    color: var(--main-dark);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}
.section-title {
    margin: 0;
    text-align: left;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.035em;
}
.section-title::before, .section-title::after { display: none; }
.visible-products-count {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.products-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0 18px 20px;
}
.product-card {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 136px;
    min-height: 170px;
    gap: 14px;
    padding: 14px;
    border: 1px solid #f0e8e1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(43,24,48,.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-2px);
    border-color: #ead0ef;
    box-shadow: 0 16px 34px rgba(43,24,48,.10);
}
.product-click-zone {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}
.product-info { min-height: 0; position: relative; z-index: 2; pointer-events: none; }
.product-category-pill {
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--main-dark);
    font-size: 11px;
    font-weight: 900;
}
.product-info h3 {
    font-size: 19px;
    line-height: 1.18;
    letter-spacing: -.02em;
    margin-bottom: 7px;
}
.product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: normal;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}
.product-allergens { min-height: 0; color: #9a919a; }
.product-price {
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.03em;
}
.product-price span { color: var(--muted); font-weight: 700; }
.product-media { position: relative; z-index: 2; pointer-events: none; align-items: flex-end; }
.product-img {
    width: 136px;
    height: 106px;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 16px;
    object-fit: cover;
    background: #f1ece8;
}
.add-btn {
    pointer-events: auto;
    width: auto;
    height: 42px;
    min-width: 122px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(25,25,25,.14);
}
.add-btn i,
.add-btn .ui-icon { font-size: 14px; }
.add-btn:hover { background: var(--main-dark); color: #fff; }
.empty-products {
    margin: 10px 18px 22px;
    padding: 38px 20px;
    text-align: center;
    border: 1px dashed #dccbc1;
    border-radius: 22px;
    color: var(--muted);
    background: #fff;
}
.empty-products i,
.empty-products .ui-icon { font-size: 32px; color: var(--main); }
.empty-products h3 { margin-bottom: 4px; color: var(--text); }

.cart-panel { padding: 18px; }
.cart-panel-header { align-items: flex-start; }
.cart-eyebrow {
    margin: 0 0 4px;
    color: var(--main-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.cart-panel-header h2, .drawer-header h3 { font-size: 23px; }
.cart-counter, .floating-badge { background: var(--main); }
.cart-empty {
    padding: 28px 14px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #ddd0c7;
    border-radius: 18px;
    background: #fffaf7;
}
.cart-empty i,
.cart-empty .ui-icon { font-size: 32px; color: var(--main); }
.cart-empty p { margin: 8px 0 2px; font-weight: 800; color: var(--text); }
.cart-item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    border: 1px solid #f0e8e1;
    box-shadow: 0 8px 18px rgba(43,24,48,.04);
}
.cart-item-info h4 { padding-right: 16px; }
.cart-controls button, .quantity-option-controls button, .modal-quantity button {
    transition: transform .15s ease, background .15s ease;
}
.cart-controls button:active, .quantity-option-controls button:active, .modal-quantity button:active { transform: scale(.94); }
.checkout-btn, .bottom-order-btn, .final-order-btn, .modal-add-cart {
    background: var(--accent);
    border: none;
    box-shadow: 0 12px 24px rgba(25,25,25,.16);
    transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.checkout-btn:hover, .bottom-order-btn:hover, .final-order-btn:hover, .modal-add-cart:hover { filter: brightness(1.08); }
.checkout-btn:active, .bottom-order-btn:active, .final-order-btn:active, .modal-add-cart:active { transform: translateY(1px); }
.checkout-link.disabled,
.checkout-link[aria-disabled="true"] {
    opacity: .45;
    pointer-events: none;
}

.product-modal .modal-box { border-radius: 28px 28px 0 0; }
.modal-header-mobile { background: #fffaf7; }
.product-modal .modal-price { color: var(--main-dark); }
.product-modal .option-line,
.quantity-option-row,
.payment-line {
    border: 1px solid #efe6df;
    border-radius: 15px;
    padding: 12px;
    background: #fff;
}
.product-modal .option-line:has(input:checked),
.payment-line:has(input:checked) {
    border-color: #e2b8e8;
    background: var(--main-light);
}
.quantity-option-row { margin: 10px 0; }
.quantity-option-controls button { border: 0; }

/* Checkout */
.top-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #eee4dd;
    box-shadow: 0 8px 22px rgba(43,24,48,.06);
}
.checkout-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.checkout-brand-logo {
    display: block;
    width: 172px;
    height: 62px;
    object-fit: contain;
    object-position: left center;
    flex: 0 0 auto;
}
.checkout-brand span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}
.checkout-page-main { width: min(1160px, calc(100% - 28px)); margin: 26px auto; }
.checkout-layout-form { align-items: start; gap: 22px; }
.billing-section, .order-section, .order-box, .payment-box, .privacy-box, .order-options-box {
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: var(--shadow-soft);
}
.billing-section, .order-section { background: rgba(255,255,255,.88); }
.order-section { position: sticky; top: 92px; }
.billing-section h1, .order-section h1 { letter-spacing: -.03em; }
.billing-section label { font-weight: 800; }
.billing-section input, .billing-section select, .billing-section textarea {
    border-radius: 14px;
    border: 1px solid #eadfd8;
    background: #fff;
    min-height: 48px;
}
.billing-section input:focus, .billing-section select:focus, .billing-section textarea:focus {
    border-color: #dda9e4;
    box-shadow: 0 0 0 4px rgba(184,79,195,.10);
}
.final-order-btn { width: 100%; min-height: 56px; border-radius: 16px; color: #fff; font-size: 18px; font-weight: 900; cursor: pointer; }
.checkout-order-line { align-items: flex-start; }
.checkout-order-line p { font-weight: 800; }
.checkout-order-line small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.date-box { border-radius: 14px; background: #fffaf7; border: 1px solid #efe6df; }
.checkout-login-info {
    margin: 24px 0 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #e8f6ee;
    color: #0f5132;
    font-weight: 800;
}
.footer { background: transparent; }
.footer-inner { border-radius: 28px; background: rgba(255,255,255,.84); box-shadow: var(--shadow-soft); }

/* Admin */
.admin-container {
    width: min(1180px, calc(100% - 28px));
    margin: 26px auto;
    background: rgba(255,255,255,.9);
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,.9);
    padding: 22px;
}
.admin-header { gap: 16px; }
.admin-btn, .logout-btn, .admin-mini-btn, .admin-form button {
    border-radius: 12px;
    font-weight: 900;
}
.admin-table {
    border-collapse: separate;
    border-spacing: 0 10px;
}
.admin-table tr { background: #fff; }
.admin-table td, .admin-table th { border: 0; }
.admin-table img { border-radius: 12px; object-fit: cover; }
.admin-form input, .admin-form textarea, .admin-form select {
    border-radius: 13px;
    border: 1px solid #eadfd8;
    min-height: 46px;
}

@media (max-width: 1180px) {
    .page-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .desktop-cart { display: none; }
    .mobile-bottom-bar { display: flex; }
    .products-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-contact-card { grid-column: 1 / -1; }
    .page-shell { grid-template-columns: 1fr; width: min(100%, calc(100% - 18px)); }
    .desktop-sidebar { display: none; }
    .menu-tools { top: 44px; }
    .category-strip { display: flex; }
    .products-list { grid-template-columns: 1fr; }
    .checkout-layout-form { grid-template-columns: 1fr; }
    .order-section { position: static; }
}

@media (max-width: 800px) {
    body { padding-bottom: 92px; }
    .mobile-topbar {
        min-height: 56px;
        padding: 5px 14px;
    }
    .mobile-topbar a {
        color: var(--main-dark);
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
    }
    .topbar-brand img { width: 148px; height: 48px; }
    .hero-header { padding: 10px 10px 8px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 16px 18px;
        border-radius: 22px;
    }
    .hero-inner-compact .hero-copy {
        display: block;
    }
    .hero-location {
        margin-top: 8px;
        font-size: 13px;
    }
    .hero-logo-card { min-height: 92px; border-radius: 18px; }
    .site-logo { width: min(100%, 300px); max-height: 92px; }
    .hero-kicker { font-size: 11px; }
    .hero-copy h1 { font-size: 26px; }
    .hero-text { display: none; }
    .hero-badges { gap: 6px; margin-top: 8px; }
    .hero-badges span { font-size: 11px; padding: 7px 9px; }
    .hero-contact-card { display: none; }
    .menu-tools { top: 62px; }
    .menu-search-wrap { border-radius: 16px; padding: 9px 12px; }
    .category-strip { padding: 0 2px 2px; box-shadow: none; background: transparent; backdrop-filter: none; }
    .section-heading-row { padding: 18px 16px 10px; align-items: start; }
    .visible-products-count { display: none; }
    .section-title { font-size: 29px; }
    .products-list { padding: 0 10px 14px; gap: 10px; }
    .product-card {
        grid-template-columns: minmax(0, 1fr) 112px;
        padding: 12px;
        min-height: 150px;
        border-radius: 18px;
    }
    .product-category-pill { display: none; }
    .product-info h3 { font-size: 18px; }
    .product-desc { font-size: 13px; -webkit-line-clamp: 2; }
    .product-price { font-size: 20px; }
    .product-img { width: 112px; height: 86px; border-radius: 14px; }
    .add-btn { min-width: 98px; height: 38px; font-size: 13px; padding: 0 10px; }
    .mobile-bottom-bar {
        display: flex;
        border-top: 1px solid #eadfd8;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(14px);
    }
    .bottom-icon-btn { flex-direction: column; gap: 2px; font-size: 22px; }
    .bottom-icon-btn small { font-size: 11px; font-weight: 800; }
    .bottom-order-btn { max-width: none; font-size: 16px; flex-direction: column; gap: 2px; text-transform: none; }
    .bottom-order-btn span { font-size: 13px; opacity: .86; }
    .drawer-panel { width: 100vw; border-radius: 24px 24px 0 0; top: auto; bottom: 0; height: min(82vh, 720px); transform: translateY(100%); }
    .mobile-cart-drawer.active .drawer-panel { transform: translateY(0); }
    .product-modal { padding: 0; }
    .product-modal .modal-box { max-height: 92dvh; width: 100%; }
    .modal-header-mobile { grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 15px 54px 13px 14px; }
    .modal-thumb-wrap img, #modal-image { width: 145px; height: 112px; border-radius: 14px; }
    .product-modal #modal-title { font-size: 20px; }
    .product-modal .modal-description { font-size: 13px; }
    .product-modal .option-line { font-size: 16px; }
    .checkout-page-main { width: min(100%, calc(100% - 18px)); margin: 16px auto; }
    .top-header { min-height: 72px; padding: 6px 14px; }
    .checkout-brand-logo { width: 132px; height: 56px; }
    .checkout-brand span { display: none; }
    .footer-inner { margin: 0 9px; }
}

@media (max-width: 390px) {
    .product-card { grid-template-columns: minmax(0, 1fr) 98px; }
    .product-img { width: 98px; height: 80px; }
    .modal-header-mobile { grid-template-columns: 138px minmax(0, 1fr); }
    .modal-thumb-wrap img, #modal-image { width: 138px; height: 106px; }
    .add-btn span { display: none; }
    .add-btn { min-width: 42px; width: 42px; border-radius: 50%; }
}

/* Ajustement final : sur ordinateur, la liste verticale suffit ; les puces restent réservées au mobile/tablette. */
.menu-tools .category-strip.mobile-only { display: none; }
@media (max-width: 900px) {
    .menu-tools .category-strip.mobile-only { display: flex; }
}

/* Structures pages checkout / confirmation / admin */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px min(28px, 4vw);
}
.search-btn {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
}
.checkout-layout-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
}
.billing-section,
.order-section {
    padding: 24px;
}
.billing-section h1,
.order-section h1 {
    margin: 0 0 22px;
    font-size: clamp(26px, 4vw, 38px);
}
.billing-section h2 {
    margin: 28px 0 14px;
}
.billing-section label {
    display: block;
    margin: 14px 0 7px;
}
.billing-section label span { color: var(--danger); }
.billing-section input,
.billing-section select,
.billing-section textarea {
    width: 100%;
    padding: 12px 14px;
    outline: none;
}
.billing-section textarea {
    min-height: 118px;
    resize: vertical;
}
.date-box {
    padding: 12px 14px;
    font-weight: 900;
}
.help-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.order-box,
.payment-box,
.privacy-box,
.order-options-box {
    background: #fff;
    padding: 18px;
    margin-bottom: 16px;
}
.order-head,
.checkout-order-line,
.order-total-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}
.order-head {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee7e0;
    color: var(--muted);
}
.checkout-order-line {
    padding: 12px 0;
    border-bottom: 1px solid #f2ece7;
}
.checkout-order-line p { margin: 0 0 3px; }
.order-total-grid {
    padding-top: 12px;
    row-gap: 10px;
}
.order-total-grid small { display: block; color: var(--muted); margin-top: 4px; }
.order-label { color: var(--muted); font-weight: 800; }
.total-label { color: var(--text); }
.payment-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0;
    cursor: pointer;
}
.payment-line input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--main);
}
.payment-line small { color: var(--muted); }
.privacy-box p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.footer { padding: 18px 0 36px; }
.footer-inner {
    width: min(1160px, calc(100% - 28px));
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 18px;
    align-items: center;
}
.footer-brand h3,
.footer-brand p,
.footer-block p { margin: 0; }
.footer-line {
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: var(--main);
    margin-top: 10px;
}
.footer-separator { width: 1px; height: 42px; background: #eee4dd; }
.footer-block { display: flex; gap: 12px; align-items: center; }
.footer-block i { color: var(--main); }
.footer-block strong,
.footer-block span { display: block; }
.footer-block span { color: var(--muted); font-size: 14px; }
.confirmation-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.confirmation-box {
    width: min(680px, 100%);
    background: rgba(255,255,255,.92);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
}
.confirmation-box h1 { margin-top: 0; font-size: clamp(30px, 5vw, 46px); }
.confirmation-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee4dd;
}
.confirmation-item p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.confirmation-total {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #fffaf7;
}
.confirmation-total h3 { margin-bottom: 0; }

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.admin-header h1 { margin: 0; }
.admin-btn,
.logout-btn,
.admin-small-link,
.admin-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}
.logout-btn { background: #f0e8e1; color: #332e35; }
.admin-table {
    width: 100%;
    overflow: hidden;
}
.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}
.admin-table th { color: var(--muted); font-size: 13px; }
.admin-table form { margin: 0; }
.admin-form {
    display: grid;
    gap: 10px;
}
.admin-container.small { width: min(760px, calc(100% - 28px)); }
.admin-form label { font-weight: 800; }
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 11px 12px;
}
.admin-form textarea { min-height: 120px; }
.admin-form .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.admin-form .checkbox input { width: auto; min-height: auto; }
.error {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff0f0;
    color: var(--danger);
    font-weight: 800;
}

@media (max-width: 800px) {
    .checkout-layout-form { grid-template-columns: 1fr; }
    .billing-section, .order-section { padding: 18px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-separator { display: none; }
    .admin-header { flex-direction: column; align-items: stretch; }
    .admin-header > div { display: flex; flex-wrap: wrap; gap: 8px; }
    .admin-table { display: block; overflow-x: auto; }
    .confirmation-item { grid-template-columns: 1fr; }
}

.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.admin-copy-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: #f9fafb;
}

/* Source: v2-fixes.css */
.notice{width:min(1280px,calc(100% - 24px));margin:12px auto;padding:12px 14px;border-radius:14px;background:#fff3cd;color:#664d03;border:1px solid #ffecb5}.hidden{display:none!important}.loading-menu{padding:30px;color:#666}.toast-message{position:fixed;left:50%;bottom:90px;transform:translateX(-50%) translateY(30px);background:#111;color:#fff;padding:12px 18px;border-radius:999px;z-index:9999;opacity:0;transition:.22s;box-shadow:0 10px 24px rgba(0,0,0,.20)}.toast-message.show{opacity:1;transform:translateX(-50%) translateY(0)}.checkout-link.disabled{opacity:.55;pointer-events:none}.cart-options{font-size:12px;color:#666;line-height:1.35}.product-card{position:relative}.product-click-zone{position:absolute;inset:0;border:0;background:transparent;cursor:pointer;z-index:1}.product-media,.product-info{position:relative;z-index:2}.product-info{pointer-events:none}.product-media img{pointer-events:none}.add-btn{pointer-events:auto}.product-category-pill{font-size:11px;color:#777;margin-bottom:4px}.modal-help{font-size:12px;color:#666;margin:4px 0 8px}.quantity-option-row{display:flex;justify-content:space-between;gap:12px;align-items:center}.quantity-option-controls{display:flex;align-items:center;gap:8px}.quantity-option-controls button{width:30px;height:30px;border-radius:999px;border:1px solid #ddd;background:#fff}.qty-option-value{min-width:20px;text-align:center;font-weight:700}.option-line strong,.quantity-option-name strong{color:#111}.checkout-api-message{padding:12px;border-radius:12px;margin-top:10px}.checkout-api-message.ok{background:#e8f6ee;color:#0f5132}.checkout-api-message.err{background:#fdeaea;color:#842029}@media(max-width:900px){.toast-message{bottom:105px}}

/* Source: responsive-v3.css */
/* Desktop-first ordering layout. Loaded last to override legacy breakpoints. */
@media (min-width: 1200px) {
    .page-shell {
        width: min(1600px, calc(100% - 32px));
        grid-template-columns: 280px minmax(0, 1fr) 380px;
        gap: 20px;
    }

    .desktop-sidebar,
    .desktop-cart {
        display: block;
        min-width: 0;
        padding-top: 0;
        position: sticky;
        top: 20px;
        align-self: start;
    }

    .sidebar-box,
    .cart-panel {
        position: static;
    }

    .mobile-bottom-bar {
        display: none;
    }

    .menu-tools {
        position: relative;
        top: auto;
    }

    .menu-tools .category-strip.mobile-only {
        display: none;
    }

    .products-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }

    .product-card {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 340px;
        padding: 12px;
    }

    .product-info {
        order: 2;
        flex: 1;
        width: 100%;
        min-height: 0;
        padding-top: 12px;
    }

    .product-info h3 {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .product-media {
        order: 1;
        position: relative;
        display: block;
        width: 100%;
        align-self: auto;
    }

    .product-img {
        display: block;
        width: 100%;
        max-width: none;
        height: 150px;
        border-radius: 15px;
    }

    .add-btn {
        position: absolute;
        right: 9px;
        bottom: 9px;
        min-width: 92px;
        width: auto;
        height: 38px;
        padding: 0 12px;
        border-radius: 999px;
        background: rgba(25, 25, 25, .94);
        color: #fff;
        font-size: 13px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .page-shell {
        width: min(100%, calc(100% - 24px));
        grid-template-columns: minmax(0, 1fr);
    }

    .desktop-sidebar,
    .desktop-cart {
        display: none;
    }

    .menu-tools {
        top: 72px;
    }

    .menu-tools .category-strip.mobile-only {
        display: flex;
    }

    .products-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        z-index: 220;
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        transform: translateZ(0);
    }

    .bottom-icon-btn {
        width: 68px;
        height: 54px;
        flex: 0 0 68px;
        flex-direction: column;
        gap: 2px;
        font-size: 22px;
        text-decoration: none;
    }

    .bottom-icon-btn small {
        font-size: 11px;
        font-weight: 800;
    }

    .bottom-order-btn {
        max-width: none;
        height: 54px;
        flex-direction: column;
        gap: 2px;
        font-size: 16px;
        text-transform: none;
        text-decoration: none;
    }

    .bottom-order-btn span {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .page-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .desktop-sidebar,
    .desktop-cart {
        display: none;
    }

    .menu-tools .category-strip.mobile-only {
        display: flex;
    }

    .products-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        z-index: 220;
        transform: translateZ(0);
    }

    .modal-header-mobile {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .modal-thumb-wrap img,
    #modal-image {
        width: 120px;
        height: 96px;
    }
}

@media (max-width: 360px) {
    .modal-header-mobile {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .modal-thumb-wrap img,
    #modal-image {
        width: 100px;
        height: 80px;
    }
}

/* Source: menu-controls.css */
/* Compact mobile/tablet menu controls. Desktop keeps its sidebar and full search. */
.mobile-menu-controls,
.category-drawer {
    display: none;
}

@media (max-width: 1199px) {
    body.category-drawer-open {
        overflow: hidden;
    }

    .menu-tools {
        gap: 8px;
    }

    .mobile-menu-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 50px;
        gap: 8px;
    }

    .category-selector-toggle,
    .menu-search-toggle {
        min-height: 50px;
        border: 1px solid #eadfd8;
        background: rgba(255,255,255,.97);
        color: #241f25;
        box-shadow: 0 8px 20px rgba(48,35,44,.08);
        cursor: pointer;
    }

    .category-selector-toggle {
        min-width: 0;
        padding: 0 16px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-weight: 850;
        text-align: left;
    }

    .category-selector-toggle span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .category-selector-toggle .ui-icon {
        width: 18px;
        height: 18px;
        color: var(--main-dark);
    }

    .menu-search-toggle {
        position: relative;
        border-radius: 16px;
        display: grid;
        place-items: center;
        color: var(--main-dark);
    }

    .menu-search-toggle .ui-icon {
        width: 22px;
        height: 22px;
    }

    .menu-search-toggle.has-query::after {
        content: "";
        position: absolute;
        top: 8px;
        right: 8px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--main);
        box-shadow: 0 0 0 2px #fff;
    }

    .menu-tools > .menu-search-wrap {
        display: none;
    }

    .menu-tools.search-open > .menu-search-wrap {
        display: grid;
        animation: menu-search-open .16s ease-out;
    }

    @keyframes menu-search-open {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .category-drawer {
        position: fixed;
        inset: 0;
        z-index: 120;
    }

    .category-drawer.active {
        display: block;
    }

    .category-drawer-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(20,16,20,.48);
        backdrop-filter: blur(3px);
    }

    .category-drawer-panel {
        position: absolute;
        left: 50%;
        bottom: 0;
        width: min(680px, 100%);
        max-height: min(82dvh, 760px);
        overflow-y: auto;
        padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        background: #fffafc;
        box-shadow: 0 -18px 50px rgba(28,20,27,.2);
        transform: translate(-50%, 20px);
        opacity: 0;
        transition: transform .18s ease, opacity .18s ease;
    }

    .category-drawer.active .category-drawer-panel {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    .category-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 16px;
    }

    .category-drawer-header small {
        color: var(--main-dark);
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .category-drawer-header h2 {
        margin: 3px 0 0;
        font-size: 23px;
    }

    .category-drawer-close {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border: 0;
        border-radius: 50%;
        background: #eee8ec;
        color: #342e34;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .category-drawer .category-grid {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .category-drawer .category-chip {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 10px 12px;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
        border-radius: 14px;
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    .category-drawer .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .menu-tools {
        top: 56px;
    }
}

/* Source: admin-edit-mode.css */
/* Front-office admin edit mode. Hidden for ordinary customers. */
.front-admin-bar {
    position: fixed;
    left: 50%;
    bottom: 88px;
    z-index: 160;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
}

.front-admin-bar strong {
    font-size: 13px;
}

.front-admin-toggle,
.front-admin-dialog button {
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.front-admin-toggle {
    padding: 8px 12px;
}

.front-admin-toggle.is-active {
    background: #16a34a;
}

.front-admin-editing .product-card {
    outline: 2px dashed rgba(168, 85, 247, .42);
    outline-offset: -4px;
}

.front-admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    gap: 6px;
    pointer-events: auto;
}

.front-admin-actions button {
    min-width: 0;
    padding: 7px 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, .92);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.front-admin-actions .front-admin-hide {
    background: rgba(190, 18, 60, .92);
}

.front-admin-actions .front-admin-show {
    background: rgba(22, 101, 52, .92);
}

.front-admin-dialog {
    width: min(720px, calc(100% - 24px));
    max-height: 90vh;
    padding: 22px;
    border: 0;
    border-radius: 24px;
    color: #171717;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .28);
}

.front-admin-dialog::backdrop {
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}

.front-admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.front-admin-form h2,
.front-admin-form .wide,
.front-admin-result {
    grid-column: 1 / -1;
}

.front-admin-form h2 {
    margin: 0;
}

.front-admin-form label {
    display: grid;
    gap: 6px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.front-admin-form input,
.front-admin-form select,
.front-admin-form textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    padding: 11px;
    background: #fff;
    color: #111827;
    font: inherit;
}

.front-admin-form textarea {
    min-height: 110px;
    resize: vertical;
}

.front-admin-preview {
    display: block;
    width: 112px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    background: #f3f4f6;
}

.front-admin-dialog .front-admin-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #f3f4f6;
    color: #111827;
    font-size: 24px;
}

.front-admin-save {
    padding: 12px 16px;
}

.front-admin-result {
    min-height: 20px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .front-admin-bar {
        bottom: 86px;
    }

    .front-admin-actions {
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 640px) {
    .front-admin-form {
        grid-template-columns: 1fr;
    }

    .front-admin-bar {
        bottom: 92px;
        max-width: calc(100% - 22px);
    }
}
