/* =========================================
   GOOGLE FONTS
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* =========================================
   VARIABLES
========================================= */
:root {
    --bg:           #FAF7F2;       /* Crème cachemire doux */
    --card:         #FFFFFF;       /* Cartes blanc pur */
    --text:         #2B2321;       /* Brun charbon café */
    --muted:        #7E736D;       /* Gris-taupe doux */
    --gold:         #C9A84C;       /* Or satiné élégant */
    --gold-dark:    #A48332;       /* Or vieilli profond */
    --primary:      #7A1C24;       /* Bordeaux velours chic */
    --primary-dark: #5E1219;       /* Bordeaux foncé impérial */
    --radius:       20px;
    --shadow:       0 12px 35px rgba(43, 35, 33, 0.06);
    --shadow-hover: 0 16px 45px rgba(122, 28, 36, 0.14);

    /* Palette luxe — icons & logo (Dark luxury overlay) */
    --sc-gold:       #C9A84C;
    --sc-gold-light: #E2C97E;
    --sc-border:     rgba(201, 168, 76, 0.35);
    --sc-bg:         rgba(18, 12, 11, 0.72);
    --sc-bg-hover:   rgba(122, 28, 36, 0.15);
}

/* =========================================
   GLOBAL
========================================= */
*, *::before, *::after { box-sizing: border-box; }

button, input, select, textarea, a, .sc-btn, .category-drawer-header, .add-to-cart-btn, .cab-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
}

img { max-width: 100%; display: block; }

.container {
    padding: 0 15px;
    max-width: 1100px;
    margin: 0 auto;
}

a { text-decoration: none; color: inherit; }

/* =========================================
   HEADER
========================================= */
header {
    height: 270px;
    position: relative;
    background-image: url("images/header-bg.webp");
    background-size: cover;
    background-position: center 40%;
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.48);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.header-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 16px 14px 16px;
}

/* =========================================
   LOGO — CARRÉ ARRONDI DARK LUXURY
   !! PAS DE border-radius: 50% ICI !!
========================================= */
.logo-big {
    width: 140px !important;
    height: 140px !important;
    object-fit: contain !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--sc-border);
    padding: 10px;
    box-shadow:
        0 10px 32px rgba(10, 9, 6, 0.3),
        0 0 25px rgba(201, 168, 76, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        border-color 0.28s ease,
        box-shadow   0.28s ease,
        transform    0.28s cubic-bezier(.22,1,.36,1);
    display: block;
    flex-shrink: 0;
}
.logo-big:hover {
    border-color: var(--sc-gold);
    box-shadow:
        0 14px 40px rgba(10, 9, 6, 0.4),
        0 0 35px rgba(201, 168, 76, 0.55);
    transform: translateY(-3px) scale(1.02);
}

/* =========================================
   SHORTCUT ICONS — DARK LUXURY
========================================= */
.shortcut-icons {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    z-index: 10;
    width: 100%;
}

.sc-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 48px;
    height: 48px;
    background: var(--sc-bg);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    font-family: 'DM Sans', 'Poppins', sans-serif;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        color        0.28s ease,
        border-color 0.28s ease,
        background   0.28s ease,
        transform    0.28s cubic-bezier(.22,1,.36,1),
        box-shadow   0.28s ease,
        height       0.28s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
}

.sc-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sc-label {
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: inherit;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    display: block;
}

/* Séparateur vertical entre icônes */
.sc-btn + .sc-btn::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 22%;
    height: 56%;
    width: 1px;
    background: rgba(122, 28, 36, 0.13);
    pointer-events: none;
}

/* Hover desktop */
@media (hover: hover) {
    .sc-btn:hover {
        color: var(--primary-dark);
        border-color: var(--primary);
        background: var(--sc-bg-hover);
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(122, 28, 36, 0.15);
        height: 56px;
    }
    .sc-btn:hover .sc-label {
        opacity: 1;
        transform: translateY(0);
    }
    .sc-btn:hover svg { transform: scale(1.1); }
}

/* Tap mobile */
.sc-btn:active {
    transform: scale(0.93);
    background: rgba(122, 28, 36, 0.14);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Toast confirmation partage */
.sc-toast {
    position: fixed;
    bottom: 86px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(122, 28, 36, 0.2);
    color: var(--primary);
    font-family: 'DM Sans', 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 999999;
}
.sc-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   BURGER BUTTON — DARK LUXURY
========================================= */
.burger-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    transform: none;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 54px;
    height: 54px;
    background: rgba(10,9,6,0.58);
    border: 1px solid rgba(201,168,76,0.28);
    border-radius: 14px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    transition:
        background   0.28s ease,
        border-color 0.28s ease,
        transform    0.28s cubic-bezier(.22,1,.36,1),
        box-shadow   0.28s ease;
}

.burger-label {
    font-family: 'DM Sans', 'Poppins', sans-serif;
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(240,234,216,0.52);
    line-height: 1;
    transition: color 0.28s ease;
    pointer-events: none;
    display: block;
}

.burger-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    pointer-events: none;
}

.bl {
    display: block;
    height: 1.5px;
    background: rgba(240,234,216,0.52);
    border-radius: 2px;
    transform-origin: center;
    transition:
        width     0.32s cubic-bezier(.22,1,.36,1),
        transform 0.32s cubic-bezier(.22,1,.36,1),
        opacity   0.22s ease,
        background 0.28s ease;
}
.bl1 { width: 20px; }
.bl2 { width: 14px; }
.bl3 { width: 20px; }

@media (hover: hover) {
    .burger-btn:hover {
        background: rgba(201,168,76,0.1);
        border-color: rgba(201,168,76,0.55);
        box-shadow: 0 8px 24px rgba(201,168,76,0.18);
        transform: translateY(-2px);
    }
    .burger-btn:hover .bl { background: #E2C97E; width: 20px; }
    .burger-btn:hover .burger-label { color: #E2C97E; }
}

.burger-btn:active {
    transform: scale(0.93);
    background: rgba(201,168,76,0.14);
    border-color: rgba(201,168,76,0.6);
}

/* État OUVERT — croix animée */
.burger-btn.active {
    background: rgba(201,168,76,0.12);
    border-color: rgba(201,168,76,0.55);
    box-shadow: 0 6px 20px rgba(201,168,76,0.15);
}
.burger-btn.active .bl1 {
    width: 20px;
    transform: translateY(5.5px) rotate(45deg);
    background: #E2C97E;
}
.burger-btn.active .bl2 { width: 0; opacity: 0; }
.burger-btn.active .bl3 {
    width: 20px;
    transform: translateY(-5.5px) rotate(-45deg);
    background: #E2C97E;
}
.burger-btn.active .burger-label { color: #E2C97E; letter-spacing: 0.2em; }

/* =========================================
   BURGER OVERLAY
========================================= */
.burger-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    z-index: 9997;
}
.burger-overlay.active { display: block; }

/* =========================================
   BURGER NAV LATÉRAL
========================================= */
.burger-nav-hidden {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: var(--card);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: left 0.3s ease;
    z-index: 9998;
    overflow-y: auto;
    border-right: 1px solid rgba(122, 28, 36, 0.15);
    box-shadow: 4px 0 30px rgba(45, 35, 33, 0.06);
}
.burger-nav-hidden a {
    padding: 12px;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--sc-border);
    transition: color 0.2s, padding-left 0.2s;
}
.burger-nav-hidden a:hover { color: var(--gold); padding-left: 18px; }
.burger-nav-hidden.active { left: 0; }

/* =========================================
   CATEGORIES HORIZONTALES
========================================= */
.categories-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 12px 16px;
    white-space: nowrap;
    scrollbar-width: none;
    margin-bottom: 10px;
}
.categories-horizontal::-webkit-scrollbar { display: none; }

.categories-horizontal a {
    background: var(--card);
    border: 1px solid rgba(122, 28, 36, 0.15);
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(45, 35, 33, 0.05);
    transition: all 0.4s cubic-bezier(0.25,1,0.5,1);
}
.categories-horizontal a:hover,
.categories-horizontal a:active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #F8F9FA;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 146, 0, 0.3);
}

/* =========================================
   CARROUSEL NOUVEAUTÉS
========================================= */
.new-items-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 12px 16px;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    margin-bottom: 12px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.new-items-carousel::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.carousel-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    vertical-align: top;
}

.carousel-item:hover {
    transform: translateY(-3px) scale(1.03);
}

.carousel-img-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 18px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 6px 16px rgba(45, 35, 33, 0.08);
    border: 1px solid rgba(122, 28, 36, 0.12);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-item:hover .carousel-img {
    transform: scale(1.06);
}

.carousel-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--primary);
    color: #FFFFFF;
    font-family: 'DM Sans', 'Poppins', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(122, 28, 36, 0.3);
    z-index: 2;
    pointer-events: none;
}

.carousel-title {
    margin-top: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    max-height: 2.6em; /* 2 lines max */
}

@keyframes highlightBorderFlash {
    0% {
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(122, 28, 36, 0.4);
        transform: translateY(-4px) scale(1.02);
    }
    50% {
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(122, 28, 36, 0.4);
        transform: translateY(-4px) scale(1.02);
    }
    100% {
        border-color: rgba(255,255,255,0.05);
        box-shadow: var(--shadow);
        transform: none;
    }
}
.menu-item.highlight-flash {
    animation: highlightBorderFlash 1.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================
   BARRE DE RECHERCHE
========================================= */
.search-wrapper {
    padding: 8px 16px 0;
    max-width: 700px;
    margin: 0 auto;
}

.search-box-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--primary);
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

#searchInput {
    width: 100%;
    height: 48px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 48px !important;
    padding-right: 46px !important;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(122, 28, 36, 0.22);
    border-radius: 999px;
    color: var(--text);
    font-family: "DM Sans", "Poppins", sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 4px 16px rgba(45, 35, 33, 0.06);
    display: block;
    appearance: none;
    -webkit-appearance: none;
}

#searchInput::-webkit-search-decoration,
#searchInput::-webkit-search-cancel-button,
#searchInput::-webkit-search-results-button,
#searchInput::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none !important;
}

#searchInput::placeholder { color: var(--muted); font-size: 0.88rem; }
#searchInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(122, 28, 36, 0.18), 0 6px 20px rgba(122, 28, 36, 0.1);
    background: #FFFFFF;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(122, 28, 36, 0.12);
    border: none;
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
    z-index: 2;
}
.search-clear-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

/* =========================================
   TEXTE PRIX EN DIRHAMS
========================================= */
.prix-info {
    text-align: center;
    font-size: 0.72rem;
    color: var(--muted);
    font-style: italic;
    letter-spacing: 0.5px;
    margin: 6px 0 10px;
    opacity: 0.75;
}

/* =========================================
   MENU GRID / ITEMS
========================================= */
#menu-grid { padding: 14px; }

.items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 680px)  { .items { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1100px) { .items { grid-template-columns: repeat(3,1fr); } }

.menu-item {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    cursor: pointer;
    content-visibility: auto;
    contain-intrinsic-size: 1px 260px;
    transition:
        transform   0.4s cubic-bezier(0.25,1,0.5,1),
        box-shadow  0.4s cubic-bezier(0.25,1,0.5,1);
}
.menu-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.item-img-wrapper {
    width: 100%;
    height: 180px;
    background-size: cover !important;
    background-position: center !important;
    background-color: #1a1716;
    background-image: linear-gradient(90deg, #181514 25%, #282320 50%, #181514 75%);
    background-size: 200% 100%;
    pointer-events: none;
    user-select: none;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.25,1,0.5,1), filter 0.4s ease;
}
.menu-item:hover .item-img-wrapper {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.05);
}

.item-info { padding: 14px; }

.item-name {
    display: inline-block;
    flex-grow: 1;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    font-size: clamp(1.05rem, 2.8vw, 1.25rem);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    color: var(--gold);
    padding-right: 15px;
    margin: 0;
    line-height: 1.2;
}

.item-price-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 4px;
}

.item-price {
    flex-shrink: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.item-desc {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================
   LIGHTBOX PROTÉGÉE
========================================= */
.secure-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(4px);
}
.secure-lightbox.active { display: flex; }

.secure-lightbox-content {
    width: 96%;
    max-width: 700px;
    height: 85vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    position: relative;
}

.close-btn {
    position: absolute;
    top: -44px;
    right: 0;
    background: var(--gold);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s, background 0.2s;
    line-height: 1;
    padding: 0;
}
.close-btn:hover { transform: scale(1.1); background: var(--gold-dark); }

.secure-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.5);
    padding: 6px 16px;
    border-radius: 20px;
    text-align: center;
    max-width: 80%;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.secure-lightbox-add-btn {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    height: 44px;
    width: auto;
    min-width: 170px;
    padding: 0 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(122, 28, 36, 0.45);
    transition: transform 0.25s cubic-bezier(.22, 1, .36, 1), box-shadow 0.25s ease, filter 0.2s;
    z-index: 1000000;
    pointer-events: auto;
    outline: none;
}

.secure-lightbox-add-btn:hover {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(122, 28, 36, 0.6);
    filter: brightness(1.1);
}

.secure-lightbox-add-btn:active {
    transform: translateX(-50%) scale(0.95);
}


/* =========================================
   BACK TO TOP
========================================= */
.back-to-top {
    position: fixed;
    bottom: 96px; /* Positioned above the bottom action bar */
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 55px;
    background: var(--gold);
    border-radius: 50%;
    font-size: 28px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.2s;
    z-index: 9999;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* =========================================
   LANG SWITCH
========================================= */
.lang-switch {
    position: fixed;
    bottom: 90px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9998;
}

.lang-button {
    background: var(--card);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 6px 8px;
    color: var(--text);
    border-radius: 10px;
    font-size: 18px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}
.lang-button.active { background: var(--gold); color: #000; border: none; transform: scale(1.06); }
.lang-button:hover { border-color: var(--gold); }




/* =========================================
   AVIS & SERVICE CLIENT — CARTE FLOTTANTE IMPOSANTE
   Positionnée entre les catégories et la recherche
========================================= */
.feedback-banner-wrap {
    width: 100%;
    max-width: 700px;
    margin: 10px auto 8px;
    padding: 0 16px;
    box-sizing: border-box;
}

.feedback-card-banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 18px;
    background: linear-gradient(145deg, #1C1516 0%, #110B0C 100%);
    border: 1.5px solid rgba(201, 168, 76, 0.45);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 0 18px rgba(201, 168, 76, 0.12);
    cursor: pointer;
    text-align: left;
    outline: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.26s cubic-bezier(.22, 1, .36, 1), box-shadow 0.26s ease, border-color 0.26s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.feedback-card-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.7), transparent);
}

.feedback-card-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 168, 76, 0.75);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 24px rgba(201, 168, 76, 0.22);
}

.feedback-card-banner:active {
    transform: scale(0.98);
}

.fcb-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcb-wa-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.15);
    border: 1.5px solid rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(37, 211, 102, 0.25);
    transition: transform 0.25s ease;
}

.feedback-card-banner:hover .fcb-wa-badge {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.45);
}

.fcb-wa-svg {
    width: 24px;
    height: 24px;
    display: block;
}

.fcb-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.fcb-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fcb-title {
    font-family: 'DM Sans', 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light, #E2C275);
    line-height: 1.2;
}

.fcb-stars {
    display: flex;
    gap: 2px;
    align-items: center;
    color: #C9A84C;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
}

.fcb-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: rgba(250, 246, 239, 0.75);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcb-right {
    flex-shrink: 0;
}

.fcb-cta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.22) 0%, rgba(201, 168, 76, 0.12) 100%);
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: #FAF6EF;
    font-family: 'DM Sans', 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.feedback-card-banner:hover .fcb-cta-badge {
    background: linear-gradient(135deg, #C9A84C 0%, #E2C275 100%);
    color: #120D0E;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.4);
}

/* =========================================
   FEEDBACK MODAL DIALOG
========================================= */
.feedback-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(.22, 1, .36, 1);
}
.feedback-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.fb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 8, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.feedback-modal-sheet {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(165deg, #1D1717 0%, #110D0D 100%);
    border: 1.5px solid rgba(201, 168, 76, 0.35);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(122, 28, 36, 0.25);
    padding: 24px 18px 20px;
    box-sizing: border-box;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.3s cubic-bezier(.22, 1, .36, 1);
    color: var(--text, #FAF6EF);
    text-align: center;
}
.feedback-modal-sheet::-webkit-scrollbar {
    width: 4px;
}
.feedback-modal-sheet::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.35);
    border-radius: 4px;
}
.feedback-modal-overlay.open .feedback-modal-sheet {
    transform: translateY(0) scale(1);
}

.fb-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.75);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}
.fb-close-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #fff;
    border-color: rgba(231, 76, 60, 0.4);
}

.fb-modal-header {
    margin-bottom: 18px;
}
.fb-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fb-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FAF6EF;
    margin: 0 0 6px;
    letter-spacing: 0.3px;
}
.fb-modal-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.86rem;
    color: rgba(250, 246, 239, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* Ratings grid (1 to 5) */
.fb-ratings-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.fb-rate-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.16);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.fb-rate-btn:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.5);
    transform: translateY(-1px);
}
.fb-rate-btn:active,
.fb-rate-btn.selected {
    background: rgba(201, 168, 76, 0.22) !important;
    border-color: #C9A84C !important;
    transform: scale(0.98);
}
.fb-rate-emoji {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.fb-rate-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fb-rate-stars {
    font-size: 13px;
    letter-spacing: 2px;
    color: #C9A84C;
    line-height: 1;
}
.fb-rate-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FAF6EF;
}

/* States Icons */
.fb-state-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fb-state-wa {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.35);
}
.fb-state-gold {
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.35);
}
.fb-happy-stars {
    font-size: 22px;
    letter-spacing: 2px;
}

.fb-manager-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px auto 16px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.25);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: #25D366;
    font-weight: 600;
}
.fb-manager-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 8px #25D366;
    animation: fbPulse 1.8s infinite;
}
@keyframes fbPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

/* Buttons */
.fb-btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 14px;
    font-family: 'Poppins', 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.24s ease;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
}
.fb-btn-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.fb-btn-wa:hover,
.fb-btn-wa:active {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.fb-btn-google {
    background: linear-gradient(135deg, #C9A84C 0%, #E2C275 100%);
    color: #1A1414;
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
    margin-top: 16px;
}
.fb-btn-google:hover,
.fb-btn-google:active {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.45);
}
.fb-btn-secondary {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(250, 246, 239, 0.8);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.fb-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FAF6EF;
}

/* =========================================
   BANDE ÉVÉNEMENT
========================================= */
.event-banner {
    display: block;
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 5px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
    overflow: hidden;
}
.event-banner:hover { transform: scale(1.01); }

.event-text-wrapper {
    display: flex;
    width: max-content;
    animation: continuousScroll 25s linear infinite;
}
.event-banner .event-text { white-space: nowrap; display: block; padding-right: 50px; }

@keyframes continuousScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   NOM RESTAURANT
========================================= */
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(201,168,76,0.5);
    text-align: center;
    margin: 0;
    line-height: 1.1;
}
@media (min-width: 768px) { .logo-text { font-size: 3rem; } }

/* =========================================
   TITRES DE CATÉGORIES
========================================= */
.section-title,
#menu-grid h2:not(.item-name):not(.category-drawer-title),
#menu-grid h3:not(.item-name) {
    font-family: 'Playfair Display', serif;
    color: var(--text) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    text-align: center;
    position: relative;
    border: none;
}
.section-title::after,
#menu-grid h2:not(.item-name):not(.category-drawer-title)::after,
#menu-grid h3:not(.item-name)::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* =========================================
   TICKER CAISSE
========================================= */
.ticker-cashier {
    width: 100%;
    background: #06090F;
    color: var(--gold);
    border-top: 1px solid rgba(201,168,76,0.3);
    border-bottom: 1px solid rgba(201,168,76,0.3);
    padding: 8px 0;
    overflow: hidden;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    margin-bottom: 15px;
}
.ticker-cashier-wrapper {
    display: flex;
    width: max-content;
    animation: scrollTicker 20s linear infinite;
}
.ticker-cashier-wrapper span { padding-right: 80px; white-space: nowrap; }

@keyframes scrollTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* =========================================
   BADGE NOUVEAU
========================================= */
.menu-item.nouveau-flash { position: relative; }
.menu-item.nouveau-flash::after {
    content: attr(data-badge);
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(201,168,76,0.4);
    animation: gold-pulse 3s infinite ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@keyframes gold-pulse {
    0%   { transform: scale(1);    box-shadow: 0 2px 10px rgba(201,168,76,0.2); }
    50%  { transform: scale(1.03); box-shadow: 0 6px 20px rgba(201,168,76,0.6); }
    100% { transform: scale(1);    box-shadow: 0 2px 10px rgba(201,168,76,0.2); }
}

/* =========================================
   FOOTER
========================================= */
footer {
    margin-top: 60px;
    padding: 30px 15px;
    background: #06090F;
    border-top: 1px solid rgba(201,168,76,0.2);
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.8;
}
footer a { color: var(--gold); font-weight: 600; transition: opacity 0.2s; }
footer a:hover { opacity: 0.8; }

/* =========================================
   FIX LAYOUT MOBILE
========================================= */
#menu-grid, .menu-item, .items {
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.items {
    display: grid !important;
    justify-content: center !important;
    align-items: start !important;
}

/* =========================================
   RESPONSIVE ≤ 680px
========================================= */
@media (max-width: 680px) {
    .items {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 0 10px;
    }
    .menu-item { width: 100% !important; max-width: 540px; margin: 0 auto; border-radius: 12px; }
    .item-img-wrapper {
        width: 100%; height: auto; aspect-ratio: 4 / 3;
        border-top-left-radius: 12px; border-top-right-radius: 12px;
    }
    .item-info  { padding: 10px !important; }
    .item-name  { font-size: 1.05rem !important; }
    .item-price { font-size: 1.05rem !important; }
}

/* =========================================
   RESPONSIVE ≤ 480px
========================================= */
@media (max-width: 480px) {
    body { font-size: 14px; padding: 0; }

    header { height: auto; min-height: 230px; background-position: center 55%; }

    .header-center {
        padding: 16px 14px 16px;
    }

    /* ── LOGO mobile : carré arrondi, jamais cercle ── */
    .logo-big {
        width: 115px !important;
        height: 115px !important;
        border-radius: 20px !important;
        padding: 9px;
    }

    .sc-btn {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        color: rgba(240,234,216,0.62);
    }
    .sc-btn .sc-label { opacity: 1; transform: translateY(0); font-size: 6.5px; }
    .sc-btn + .sc-btn::before { display: none; }

    /* Burger */
    .burger-btn { top: 12px; left: 12px; width: 50px; height: 50px; border-radius: 13px; }
    .bl1, .bl3 { width: 18px; }
    .bl2        { width: 12px; }
    .burger-btn.active .bl1,
    .burger-btn.active .bl3 { width: 18px; }

    .categories-horizontal { gap: 8px; padding: 8px 10px; }
    .categories-horizontal a { padding: 6px 12px; font-size: 0.8rem; border-radius: 40px; }

    .section-title,
    #menu-grid h2:not(.item-name):not(.category-drawer-title),
    #menu-grid h3:not(.item-name) { font-size: 1.2rem; margin: 20px 0 8px; padding-bottom: 4px; }

    .menu-item { border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
    .item-desc { font-size: 0.8rem; line-height: 1.2; }

    .back-to-top { width: 45px; height: 45px; bottom: 88px; font-size: 22px; }

    .event-banner { padding: 6px 8px; font-size: 0.9rem; margin-top: 10px; }
    .event-text-wrapper { animation-duration: 20s; }
    .ticker-cashier { font-size: 0.75rem; padding: 5px 0; }
    #searchInput { font-size: 14px; }
    .close-btn { top: -38px; width: 32px; height: 32px; font-size: 1.3rem; }
    footer { font-size: 0.78rem; padding: 20px 10px; margin-top: 40px; }

    /* Feedback Card Banner on mobile */
    .feedback-banner-wrap {
        padding: 0 12px;
        margin: 6px auto 10px;
    }
    .feedback-card-banner {
        padding: 10px 14px;
        gap: 10px;
        border-radius: 16px;
    }
    .fcb-wa-badge {
        width: 38px;
        height: 38px;
    }
    .fcb-wa-svg {
        width: 20px;
        height: 20px;
    }
    .fcb-title {
        font-size: 0.82rem;
    }
    .fcb-stars {
        font-size: 11px;
    }
    .fcb-subtitle {
        font-size: 0.72rem;
    }
    .fcb-cta-badge {
        padding: 6px 11px;
        font-size: 0.72rem;
    }

    /* Lang switch on mobile */
    .lang-switch {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        right: 10px;
        gap: 6px;
        transition: bottom 0.28s ease;
    }
    .lang-button {
        width: 34px;
        height: 34px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        border-radius: 9px;
    }

    /* GPS badge on mobile: bottom-left */
    .gps-status-badge {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        padding: 6px 12px;
        font-size: 9.5px;
        transition: bottom 0.28s ease;
    }

    /* Elevated when client action bar is active on mobile */
    body.has-client-action-bar .lang-switch,
    body:has(#clientActionBar:not([style*="display: none"])) .lang-switch {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.has-client-action-bar .gps-status-badge,
    body:has(#clientActionBar:not([style*="display: none"])) .gps-status-badge {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .back-to-top {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    /* Mobile modal adjustments */
    .feedback-modal-sheet {
        padding: 20px 14px 16px;
        border-radius: 20px;
    }
    .fb-modal-title { font-size: 1.15rem; }
    .fb-modal-subtitle { font-size: 0.82rem; }
    .fb-ratings-grid { gap: 7px; margin-top: 10px; }
    .fb-rate-btn { padding: 9px 12px; gap: 11px; min-height: 46px; border-radius: 12px; }
    .fb-rate-emoji { font-size: 24px; }
    .fb-rate-stars { font-size: 12px; }
    .fb-rate-name { font-size: 0.82rem; }

    [dir="rtl"] .gps-status-badge { right: 10px; left: auto; }
    [dir="rtl"] .lang-switch { left: 10px; right: auto; }
}

/* =========================================
   RESPONSIVE ≤ 360px
========================================= */
@media (max-width: 360px) {
    .sc-btn { width: 46px; height: 50px; }
    .sc-btn svg { width: 15px; height: 15px; }
    .sc-btn .sc-label { font-size: 5.5px; }
    .logo-big { width: 80px !important; height: 80px !important; border-radius: 16px !important; }
}

/* ======================================================================
   CLIENT SERVICE LAYOUTS & PREMIUM INTERACTIVE UI STYLES
   ====================================================================== */

/* --- Card Add-To-Cart Plus Button --- */
.menu-item {
    position: relative !important;
}

.item-info {
    position: relative;
    padding-bottom: 44px !important;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 12px;
    right: 14px;
    height: 32px;
    width: auto;
    padding: 0 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(122, 28, 36, 0.2);
    transition: transform 0.25s cubic-bezier(.22, 1, .36, 1), box-shadow 0.25s ease, filter 0.2s;
    z-index: 5;
    outline: none;
}

.add-to-cart-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 14px rgba(122, 28, 36, 0.35);
    filter: brightness(1.1);
}

.add-to-cart-btn:active {
    transform: scale(0.9);
}

/* Adjust body padding for fixed bottom bar & iOS Safe Area */
body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}

/* --- Bottom Quick Action Bar --- */
.client-action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: calc(74px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 250, 246, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid rgba(122, 28, 36, 0.3);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 32px rgba(45, 35, 33, 0.08), 0 0 20px rgba(122, 28, 36, 0.05);
    z-index: 9999;
    padding: 6px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.cab-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
}

.cab-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(45, 35, 33, 0.55);
    cursor: pointer;
    transition: color 0.24s ease, transform 0.2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    padding: 2px 8px;
    flex: 1;
}

.cab-btn:hover {
    color: var(--primary);
}

.cab-btn:active {
    transform: scale(0.92);
}

.cab-btn.active {
    color: var(--primary);
}

.cab-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
}

.cab-icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.cab-btn:hover svg {
    transform: scale(1.1);
}

.cab-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
}

.cab-cart-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    animation: popBadge 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popBadge {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* --- Cart Drawer Panel --- */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 10000;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    max-height: 82vh;
    background: rgba(252, 250, 246, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--sc-border);
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    box-shadow: 0 -12px 40px rgba(45, 35, 33, 0.08), 0 0 1px 1px var(--sc-border);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cart-drawer.active {
    bottom: 0;
}

.cd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sc-border);
}

.cd-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cd-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.cd-table-badge {
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--sc-gold-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cd-close-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    outline: none;
    padding: 0 4px;
}

.cd-close-btn:hover {
    color: var(--primary);
}

.cd-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px;
    box-sizing: border-box;
}

.cd-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
    padding: 40px 0;
}

.cd-empty-state svg {
    color: rgba(122, 28, 36, 0.15);
}

.cd-empty-state p {
    font-size: 0.95rem;
    margin: 0;
}

/* --- Cart Items List --- */
.cd-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    padding: 10px;
    transition: background 0.2s;
}

.cd-item-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.cd-item-details {
    flex: 1;
    min-width: 0;
}

.cd-item-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-item-price {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sc-gold-light);
}

.cd-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-qty-wrap {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--sc-border);
    border-radius: 8px;
    height: 28px;
}

.cd-qty-btn {
    background: none;
    border: none;
    color: var(--sc-gold-light);
    width: 26px;
    height: 100%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.cd-qty-btn:hover {
    color: var(--primary-dark);
}

.cd-qty-num {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    min-width: 18px;
    text-align: center;
}

.cd-remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: background 0.2s;
    outline: none;
}

.cd-remove-btn:hover {
    background: rgba(231, 76, 60, 0.15);
}

.cd-remove-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* --- Note allergy section --- */
.cd-notes-section {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cd-notes-section label {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-transform: uppercase;
}

.cd-notes-section textarea {
    background: var(--card);
    border: 1px solid var(--sc-border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    padding: 8px 12px;
    resize: none;
    height: 52px;
    outline: none;
    transition: border-color 0.2s;
}

.cd-notes-section textarea:focus {
    border-color: var(--gold);
}

/* --- Drawer Footer --- */
.cd-footer {
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--sc-border);
    box-sizing: border-box;
}

.cd-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cd-total-line span:first-child {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}

.cd-total-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.cd-submit-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(122, 28, 36, 0.25);
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: none;
}

.cd-submit-btn:hover {
    filter: brightness(1.1);
}

.cd-submit-btn:active {
    transform: scale(0.98);
}

.cd-submit-btn[disabled] {
    filter: grayscale(1);
    opacity: 0.5;
    cursor: not-allowed;
}

.cd-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top: 2px solid #FFFFFF;
    border-radius: 50%;
    animation: cdSpin 0.8s linear infinite;
}

@keyframes cdSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cd-warning-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 7.5px;
    color: var(--muted);
    font-style: italic;
    text-align: center;
    margin: 8px 0 0;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

/* --- Table Selector Modal Fallback --- */
.table-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.table-modal {
    background: var(--card);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(201, 168, 76, 0.1);
    box-sizing: border-box;
    text-align: center;
}

.table-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 8px;
}

.table-modal p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 20px;
    line-height: 1.4;
}

.table-grid-select {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 4px;
}

.tgs-btn {
    aspect-ratio: 1;
    background: var(--bg);
    border: 1px solid var(--sc-border);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.tgs-btn:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    color: var(--sc-gold-light);
}

.tgs-btn:active {
    transform: scale(0.92);
}

/* Premium Client-Side Alert Toast Override */
.sc-toast {
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(201, 168, 76, 0.2);
}

/* --- Hot Drinks / Sides Options inside Selector Modals --- */
.hdo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    text-align: left;
}

.hdo-item:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.04);
}

.hdo-item.selected {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.12);
}

.hdo-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.hdo-item.selected .hdo-name {
    color: var(--sc-gold-light);
    font-weight: 600;
}

.hdo-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--sc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hdo-item.selected .hdo-status {
    border-color: var(--gold);
    background: var(--gold);
    color: #0A0F1A;
}

.hdo-status svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    stroke-width: 3.5;
    display: none;
}

.hdo-item.selected .hdo-status svg {
    display: block;
}

.hdo-badge {
    background: rgba(201, 168, 76, 0.2);
    color: var(--sc-gold-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
}

/* ============================================================================
   NOTIFICATION SYSTEM (BELL & HISTORY DRAWER) - ROLEX PRESTIGE THEME
   ============================================================================ */

.bell-btn {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bell-btn:hover {
    background: rgba(226, 201, 126, 0.15);
    border-color: rgba(226, 201, 126, 0.3);
    transform: translateY(-2px);
}

.bell-btn:active {
    transform: translateY(1px) scale(0.95);
}

.bell-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
    border: 1.5px solid #121212;
    animation: bellPulse 1.8s infinite;
}

@keyframes bellPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@media (max-width: 600px) {
    .bell-btn {
        top: 12px;
        right: 12px;
        width: 50px;
        height: 50px;
        border-radius: 13px;
    }
    .bell-badge {
        top: 11px;
        right: 11px;
        width: 8px;
        height: 8px;
    }
}

/* --- Notification Drawer --- */
.nd-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nd-overlay.active {
    display: block;
    opacity: 1;
}

.nd-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: linear-gradient(135deg, #161616 0%, #0d0d0d 100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1.5px solid rgba(226, 201, 126, 0.12);
}

.nd-overlay.active .nd-container {
    right: 0;
}

.nd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
}

.nd-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nd-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sc-gold-light);
    letter-spacing: 0.02em;
}

.nd-table-badge {
    align-self: flex-start;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(46, 204, 113, 0.22);
}

.nd-close-btn {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.nd-close-btn:hover {
    color: var(--sc-gold-light);
}

.nd-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Notification Item Card styling */
.nd-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s, background 0.2s;
}

.nd-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: rgba(226, 201, 126, 0.15);
}

.nd-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nd-card-time {
    font-size: 0.72rem;
    color: var(--muted);
    font-family: 'Poppins', sans-serif;
}

.nd-card-status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
}

.nd-status-pending {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.22);
}

.nd-status-accepted {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.22);
}

.nd-card-body {
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
}

.nd-empty-state {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
}

/* ============================================================================
   GPS STATUS FLOATING BADGE & INTERACTIVE CONTROL ENFORCEMENTS
   ============================================================================ */

/* --- Floating GPS Status Badge --- */
.gps-status-badge {
    position: fixed;
    bottom: 90px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Badge states --- */
.gps-inside {
    background: rgba(8, 48, 30, 0.85);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.gps-inside::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
    animation: bellPulse 1.8s infinite;
}

.gps-outside {
    background: rgba(40, 20, 20, 0.85);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

.gps-outside::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
}

.gps-suspect {
    background: rgba(45, 30, 10, 0.85);
    border: 1px solid rgba(241, 196, 15, 0.4);
    color: #f1c40f;
    animation: suspectBlink 1s infinite alternate;
}

@keyframes suspectBlink {
    0% { opacity: 0.85; border-color: rgba(241, 196, 15, 0.4); }
    100% { opacity: 1; border-color: rgba(241, 196, 15, 0.8); }
}

.gps-denied, .gps-error {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--muted);
}

/* --- Padlocked Disabled Control State (Geofence Locked) --- */
.disabled-gps {
    position: relative !important;
    pointer-events: none !important;
    opacity: 0.3 !important;
    filter: grayscale(1) !important;
    transition: all 0.3s ease !important;
}

/* Tooltip message when hovering / clicking disabled buttons */
.disabled-gps::after {
    content: "🔒 GPS requis";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 9, 6, 0.94);
    border: 1px solid rgba(201, 168, 76, 0.32);
    color: #E2C97E;
    font-family: 'DM Sans', sans-serif;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 99999;
}

.disabled-gps:hover::after, .disabled-gps:active::after {
    opacity: 1;
}

/* Mobile adjustments to keep the GPS status floating badge elegant and compact */
@media (max-width: 480px) {
    .gps-status-badge {
        bottom: 84px;
        left: 12px;
        padding: 6px 12px;
        font-size: 9.5px;
    }
}

/* ============================================================================
   ❄️ CLIENT SYSTEM FREEZE - DISABLED INTERACTION BUTTONS
   ============================================================================ */

.frozen-disabled {
    opacity: 0.55 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    position: relative !important;
    filter: grayscale(80%) !important;
    transition: all 0.3s ease !important;
}

.frozen-disabled::after {
    content: "❄️";
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 10px;
    background: #111;
    border: 1px solid rgba(201, 168, 76, 0.6);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

/* ============================================================================
   COLLAPSIBLE CATEGORY DRAWERS (ACCORDION)
   ============================================================================ */

.category-drawer {
    margin-bottom: 20px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(122, 28, 36, 0.1);
    background: var(--card);
    box-shadow: 0 8px 30px rgba(45, 35, 33, 0.03);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-drawer:hover {
    box-shadow: 0 12px 40px rgba(122, 28, 36, 0.05);
}

.category-drawer-header {
    position: relative;
    height: 110px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

.category-drawer-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85) contrast(1.02);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-drawer-header:hover .category-drawer-header-bg {
    transform: scale(1.04);
}

.category-drawer-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.0) 90%);
    z-index: 1;
}

.category-drawer-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.category-drawer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #FCFAF6 !important;
    text-transform: uppercase;
    margin: 0 !important;
    padding-bottom: 0 !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 4px 15px rgba(0, 0, 0, 0.9);
    position: relative;
    border: none;
    text-align: left;
}

.category-drawer-chevron {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(252, 250, 246, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s, border-color 0.3s;
}

.category-drawer-chevron svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-drawer-header:hover .category-drawer-chevron {
    background: rgba(18, 18, 18, 0.7);
    border-color: rgba(252, 250, 246, 0.4);
    color: #FCFAF6;
}

/* Expansion transition */
.category-drawer-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    background: transparent;
}

.category-drawer-grid {
    padding: 24px 20px;
}

/* Rotation and states */
.category-drawer.open .category-drawer-chevron {
    transform: rotate(180deg);
    background: var(--primary);
    border-color: var(--primary);
    color: #FCFAF6;
}

/* Staggered slide/fade animation for items inside open drawers */
.category-drawer-body .menu-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: calc(var(--item-index, 0) * 0.045s);
}

.category-drawer.open .category-drawer-body .menu-item {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .category-drawer {
        border-radius: 14px;
        margin-bottom: 14px;
    }
    .category-drawer-header {
        height: 85px;
        padding: 0 16px;
    }
    .category-drawer-title {
        font-size: 1.25rem;
    }
    .category-drawer-chevron {
        width: 30px;
        height: 30px;
    }
    .category-drawer-chevron svg {
        width: 12px;
        height: 12px;
    }
    .category-drawer-grid {
        padding: 16px 10px;
    }
}

/* =========================================
   FLOATING CLOSE CATEGORY BUTTON
   ========================================= */
.floating-close-category {
    position: fixed;
    bottom: 96px; /* Positioned above the bottom action bar */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--primary);
    border: 1px solid rgba(201, 168, 76, 0.35); /* gold border */
    color: #FCFAF6;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(122, 28, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, background-color 0.2s;
    outline: none;
}

.floating-close-category.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.floating-close-category:hover {
    background: var(--primary-dark);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 10px 30px rgba(122, 28, 36, 0.55);
}

.floating-close-category:active {
    transform: translateX(-50%) translateY(0) scale(0.98);
}

.floating-close-category svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.floating-close-category:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .floating-close-category {
        font-size: 10px;
        padding: 10px 20px;
        bottom: 88px;
    }
}

/* ============================================================================
   SHORTCUT ICONS & TOUCH UX OPTIMIZATIONS
   ============================================================================ */
button, .sc-btn, .add-to-cart-btn, .category-drawer-header, .tgs-btn {
    touch-action: manipulation;
}

.shortcut-icons {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 10;
}

.sc-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 48px;
    height: 48px;
    min-height: 48px;
    min-width: 48px;
    background: var(--sc-bg);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    color: var(--sc-gold-light);
    cursor: pointer;
    text-decoration: none;
    font-family: 'DM Sans', 'Poppins', sans-serif;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: color 0.28s ease, border-color 0.28s ease, background 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
}

.sc-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.sc-label {
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: inherit;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    display: block;
}

.sc-btn+.sc-btn::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 22%;
    height: 56%;
    width: 1px;
    background: rgba(201, 168, 76, 0.13);
    pointer-events: none;
}

@media (hover: hover) {
    .sc-btn:hover {
        color: #ffffff;
        border-color: var(--sc-gold);
        background: var(--sc-bg-hover);
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(201, 168, 76, 0.2);
    }
    .sc-btn:hover .sc-label {
        opacity: 1;
        transform: translateY(0);
    }
    .sc-btn:hover svg {
        transform: scale(1.1);
    }
    .sc-btn:hover {
        height: 54px;
    }
}

.sc-btn:active {
    transform: scale(0.93);
    background: rgba(201, 168, 76, 0.14);
    border-color: var(--sc-gold);
    color: #ffffff;
}

.sc-toast {
    position: fixed;
    bottom: 86px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(10, 9, 6, 0.94);
    border: 1px solid rgba(201, 168, 76, 0.32);
    color: #E2C97E;
    font-family: 'DM Sans', 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 999999;
}

.sc-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .shortcut-icons {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        width: 100%;
        gap: 10px;
        padding: 8px 0 4px;
        flex-wrap: nowrap;
    }
    .sc-btn {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        color: var(--sc-gold-light);
    }
    .sc-btn .sc-label {
        opacity: 1;
        transform: translateY(0);
        font-size: 6.5px;
    }
    .sc-btn+.sc-btn::before {
        display: none;
    }
}

@media (max-width: 360px) {
    .sc-btn {
        width: 46px;
        height: 50px;
        min-height: 48px;
    }
    .sc-btn svg {
        width: 16px;
        height: 16px;
    }
    .sc-btn .sc-label {
        font-size: 5.5px;
    }
}

/* =========================================
   MICRO-INTERACTIONS & ACCESSIBILITY
========================================= */
@keyframes badgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.cab-badge.pop, .cart-counter.pop {
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   RTL MODE (ARABIC / ARABE 🇲🇦)
========================================= */
[dir="rtl"] {
    font-family: 'Segoe UI', 'Tajawal', 'Cairo', Tahoma, sans-serif;
}

[dir="rtl"] .item-name,
[dir="rtl"] .category-drawer-title,
[dir="rtl"] .cd-title {
    font-family: 'Segoe UI', 'Tajawal', 'Cairo', Tahoma, serif;
    letter-spacing: normal;
}

[dir="rtl"] .item-desc {
    text-align: right;
    line-height: 1.5;
}

[dir="rtl"] .item-price-line {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

[dir="rtl"] .item-name {
    padding-right: 0;
    padding-left: 15px;
    text-align: right;
}

[dir="rtl"] .item-price {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    flex-shrink: 0;
}

[dir="rtl"] .category-drawer-chevron svg {
    transform: scaleX(-1);
}

[dir="rtl"] .category-drawer.open .category-drawer-chevron svg {
    transform: rotate(180deg) scaleX(-1);
}

[dir="rtl"] #searchInput {
    text-align: right;
    padding-right: 48px !important;
    padding-left: 46px !important;
}

[dir="rtl"] .search-icon-wrap {
    left: auto;
    right: 18px;
}

[dir="rtl"] #searchClearBtn {
    right: auto;
    left: 16px;
}

[dir="rtl"] .cd-total-line,
[dir="rtl"] .cd-item {
    direction: rtl;
}

[dir="rtl"] .nouveau-flash::after {
    right: auto;
    left: 12px;
}

[dir="rtl"] .feedback-card-banner {
    text-align: right;
}
[dir="rtl"] .fcb-title-row {
    flex-direction: row-reverse;
    justify-content: flex-end;
}
[dir="rtl"] .gps-status-badge {
    left: auto;
    right: 14px;
}
[dir="rtl"] .lang-switch {
    right: auto;
    left: 14px;
}
[dir="rtl"] .fb-close-btn {
    right: auto;
    left: 14px;
}
[dir="rtl"] .fb-rate-btn {
    text-align: right;
}
[dir="rtl"] .add-to-cart-btn {
    right: auto;
    left: 14px;
}




/* ==========================================================================
   NOUVEAU DESIGN 1 — LUXE BRASSERIE & CONTINUOUS SCROLL (GREY CORNER)
   - Remplacement du mode tiroir/accordéon par un défilement continu fluide
   - Cartes bistrot chic horizontales avec photo latérale et typographie noble
   - Barre de catégories collante (Sticky Categories) avec défilement fluide
   - Préservation 100% des fonctions de commande à distance, GPS, panier et RTL
   ========================================================================== */

/* Fond général et typographie bistrot chic */
body {
    background-color: #FAF7F2 !important;
    color: #241E1B !important;
    scroll-behavior: smooth !important;
}

/* 1. Remplacement du tiroir : Sections permanentes et ouvertes */
.category-drawer {
    background: #FFFFFF !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 20px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 4px 20px rgba(44, 36, 30, 0.04) !important;
    overflow: hidden !important;
    scroll-margin-top: 75px !important;
}

/* Plus de chevron : la catégorie est toujours visible */
.category-drawer-chevron {
    display: none !important;
}

/* Bannière d'en-tête de catégorie panoramique */
.category-drawer-header {
    height: 90px !important;
    cursor: default !important;
}

.category-drawer-header-overlay {
    background: linear-gradient(to right, rgba(22, 19, 17, 0.92) 0%, rgba(22, 19, 17, 0.6) 55%, rgba(22, 19, 17, 0.15) 100%) !important;
}

.category-drawer-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #FFFFFF !important;
}

/* Contenu toujours ouvert sans animation de hauteur */
.category-drawer-body {
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    padding: 0 !important;
}

/* Grille de cartes aérée */
.category-drawer-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 16px !important;
    padding: 20px !important;
}

@media (max-width: 480px) {
    .category-drawer-grid {
        grid-template-columns: 1fr !important;
        padding: 14px 10px !important;
        gap: 12px !important;
    }
}

/* 2. Carte produit horizontale bistrot chic */
.category-drawer-body .menu-item {
    opacity: 1 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: #FAF7F2 !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 16px !important;
    padding: 12px !important;
    gap: 14px !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.category-drawer-body .menu-item:hover {
    border-color: #C9A84C !important;
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.12) !important;
    transform: translateY(-2px) !important;
}

.item-img-wrapper {
    width: 84px !important;
    height: 84px !important;
    min-width: 84px !important;
    border-radius: 12px !important;
    background-size: cover !important;
    background-position: center !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    flex-shrink: 0 !important;
}

.item-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0 !important;
}

.item-price-line {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin-bottom: 2px !important;
}

.item-name {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #241E1B !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}

.item-price {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #9E7430 !important;
    white-space: nowrap !important;
}

.item-price::after {
    content: " DH";
    font-size: 0.72rem;
    font-weight: 600;
}

.item-desc {
    font-size: 0.77rem !important;
    color: #6B5D4F !important;
    line-height: 1.3 !important;
    margin: 4px 0 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.add-to-cart-btn {
    align-self: flex-start !important;
    background: #241E1B !important;
    color: #FAF7F2 !important;
    padding: 5px 14px !important;
    border-radius: 8px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: static !important;
}

.add-to-cart-btn:hover {
    background: #C9A84C !important;
    color: #241E1B !important;
}

/* 3. Barre horizontale de catégories collante (Sticky Tabs) */
.categories-horizontal {
    position: sticky !important;
    top: 0 !important;
    z-index: 99 !important;
    background: rgba(250, 247, 242, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #EAE2D5 !important;
    padding: 10px 16px !important;
    box-shadow: 0 4px 15px rgba(36, 30, 27, 0.04) !important;
}

.categories-horizontal a {
    background: #FFFFFF !important;
    border: 1px solid #EAE2D5 !important;
    color: #6B5D4F !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    transition: all 0.2s ease !important;
}

.categories-horizontal a:hover,
.categories-horizontal a.active {
    background: #241E1B !important;
    border-color: #241E1B !important;
    color: #FFFFFF !important;
}

/* 4. Barre d'action client (commande à distance) */
.client-action-bar {
    background: rgba(36, 30, 27, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(201, 168, 76, 0.25) !important;
}

.cab-btn {
    color: #FAF7F2 !important;
}

.cab-btn:hover {
    color: #C9A84C !important;
}

/* 5. Support RTL Arabe parfait */
[dir="rtl"] .category-drawer-body .menu-item {
    flex-direction: row-reverse !important;
    text-align: right !important;
}
[dir="rtl"] .item-info {
    text-align: right !important;
}
[dir="rtl"] .add-to-cart-btn {
    align-self: flex-end !important;
}
[dir="rtl"] .category-drawer-title {
    text-align: right !important;
}
