* {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

@font-face {
    font-family: 'Ananda';
    src: url('/fonts/Ananda.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body.menu-page {
    margin: 0;
    background: #faf8f9;
    font-family: "Playfair Display", Sans-serif;
}

/* ========== HERO HEADER ========== */
.menu-hero {
    background: linear-gradient(180deg, #442a19 0, #2d1c12 60%, #442a19 100%);
    padding: 40px 0 60px;
    color: #fff;
}

.menu-logo-img {
    max-width: 260px;
    height: auto;
}

.menu-hero-socials {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-circle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
}

.social-circle:hover {
    background-color: #c8c0bb;
    color: #442a19;
    border-color: #c8c0bb;
}

/* Language buttons */
.menu-lang-switch {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.lang-pill {
    border-radius: 999px;
    padding: 8px 22px;
    border: 1px solid rgba(255,255,255,0.7);
    color: #fff;
    background: transparent;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lang-pill.active, .lang-pill:hover {
    background: #c8c0bb;
    color: #442a19;
    font-weight: 600;
    border-color: #c8c0bb;
}

/* ========== CATEGORY NAV ========== */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #c8c0bb;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.45);
    padding: 12px 16px; /* NEW */
}

.category-nav {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}
.category-nav::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.18);
    border-radius: 999px;
}

.category-pill {
    border-radius: 999px;
    padding: 10px 26px;
    border: 1px solid #b9b1ab;
    background: #c8c0bb;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: 600;
}

/* FIX for iOS turning button text blue */
.category-pill {
        color: #442a19 !important;
        -webkit-text-fill-color: #442a19 !important;
    }

.category-pill.active, .category-pill:hover {
    background: #442a19;
    color: #fff;
    border-color: #442a19;
    -webkit-text-fill-color: #fff !important;
}


/* Disable iOS button styles */
button,
.category-pill {
    -webkit-appearance: none !important;
    appearance: none !important;
    /*background-color: inherit !important;*/
}


/* make scroll-jump stop below sticky nav */
.menu-category {
    scroll-margin-top: 140px;
    padding-top: 50px;
}

/* ========== CONTENT ========= */
.menu-content {
    padding-bottom: 60px;
}

.menu-category-title {
    font-size: 2.1rem;
    font-weight: 600;
    color: #442a19;
    margin-bottom: 24px;
    /*font-family: "Playfair Display", Sans-serif;*/
    font-family: 'Ananda', serif;
}

/* Cards grid (like screenshot) */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

/* Card */
.menu-card {
    background: #c8c0bb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-bottom: 5px solid #442a19;
}

.menu-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.menu-card-body {
    padding: 18px 22px 22px;
    text-align: center;
}

.menu-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #442a19;
    margin-bottom: 4px;
}

.menu-card-price {
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 1rem;
}

/* Voir plus button */
.menu-card-btn {
    border-radius: 999px;
    padding: 8px 26px;
    border: 1px solid #442a19;
    background: transparent;
    font-size: 0.95rem;
    color: #442a19;
    cursor: pointer;
}

.menu-card-btn:hover {
    background: #442a19;
    color: #fff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .menu-hero {
        padding: 26px 0 40px;
    }

    .menu-category-title {
        font-size: 1.5rem;
    }

    .menu-card-image {
        height: 170px;
    }
    
    .menu-card-placeholder {
        height: 170px;
    }
    
    .menu-category{
        padding-top: 30px;
    }
}

/* =============== MODAL FIXES =============== */

/* ===== MODAL GENERAL ===== */
.modal-custom {
    border-radius: 15px;
    overflow: hidden;
    border-bottom: 6px solid #442a19;
    padding-bottom: 25px;
}

/* Remove bootstrap default padding */
.modal-body {
    padding: 25px 30px 10px;
}

/* ===== IMAGE ===== */
#modal-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;

    /* Rounded only at top */
    border-radius: 15px 15px 0 0;

    display: block;
}

/* Wrapper to avoid white borders around image */
.modal-image-wrapper {
    width: 100%;
    overflow: hidden;
}

/* ===== TITLE ===== */
.modal-title-custom {
    font-size: 1.9rem;
    font-weight: 700;
    color: #442a19;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* ===== DESCRIPTION ===== */
.modal-description {
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
    font-size: 1.05rem;
    color: #333;
    white-space: pre-line; /* KEEP LINE BREAKS EXACTLY AS SAVED */
}

/* ===== PRICE ===== */
.modal-price {
    font-weight: 700;
    font-size: 1.4rem;
    color: #442a19;
}

.menu-card-placeholder {
    width: 100%;
    height: 220px;
    display: block;
    border-radius: 0;
    background: linear-gradient(135deg, #442a19 0%, #2d1c12 100%);
}

/* WRAPPER = ONE STICKY BLOCK */
.sticky-menu-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #2c190f;  
}

/* LOGO + LANGS */
.mini-sticky-header {
    background: #2c190f;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    height: 50px;    
    transform: translateY(-100%);
    transition: transform .25s ease, opacity .25s ease;
}

.mini-sticky-header.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
}

.mini-header-logo {
    height: 40px;
}

/* FLAGS */
.mini-header-right {
    display: flex;
    gap: 14px;
}

.mini-header-right a {
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.mini-header-right a.active {
    background: rgba(255,255,255,0.18);
}

.mini-header-right a:hover {
    background: rgba(255,255,255,0.32);
}

/* CATEGORY STRIP */
.category-nav-wrapper {
    background: #c8c0bb;
    padding: 10px 16px;
    box-shadow: 0px 0px 8px rgba(0,0,0,0.35);
}

/* MOBILE FIX */
@media(max-width:480px){
    .mini-header-logo {
        height: 30px;
    }
    .mini-header-right a {
        font-size: 14px;
        padding: 4px 7px;
    }
}


/* Force exactly 2 cards per row on phones */
@media (max-width: 576px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-dialog {
        max-width: 90% !important;
        margin: 20px auto !important;
    }

    #modal-image {
        max-height: 250px !important;
        object-fit: cover;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-title-custom {
        font-size: 1.4rem;
    }

    .modal-description {
        font-size: 0.95rem;
    }

    .menu-card-image {
        height: 120px !important;
        object-fit: cover;
    }

    .menu-lang-switch {
        gap: 5px;
    }
    
    .lang-pill {
        padding: 5px 15px;
        font-size: 0.85rem;
    }
    
    .menu-card-title{
        font-size: 16px;
    }
    
    .menu-card-price{
        font-size: 15px;
    }
    
    .menu-card-btn{
        font-size: 13px;
        padding: 8px 23px;
    }
    
    .category-pill{
        font-size: 0.85rem;
    }
    
    .menu-card-placeholder {
        height: 120px;
    }
}

/* -------------------------------
   ADMIN DASHBOARD GLOBAL STYLES
--------------------------------*/

/* Layout */
.admin-heading {
    margin-bottom: 1.5rem;
}

.admin-breadcrumb {
    font-size: .85rem;
    color: #8a8a8a;
}
.admin-breadcrumb span {
    color: #333;
}

/* User + logout */
.admin-user-name {
    font-weight: 600;
}
.btn-logout {
    border-radius: 999px;
    padding-inline: 18px;
}

/* Stats strip */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.admin-stat-pill {
    background: #fff;
    border-radius: 999px;
    padding: .55rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.02);
    font-size: .9rem;
}
.admin-stat-label {
    color: #6c757d;
}
.admin-stat-value {
    font-weight: 600;
    color: #212529;
}

/* Overview cards */
.card-overview {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card-overview:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
    border-color: rgba(68,42,25,.2);
}
.card-title-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(68, 42, 25, 0.08);
    color: #442a19;
    font-size: 1.4rem;
    margin-right: .9rem;
}
.card-title-text {
    font-size: .82rem;
    color: #6c757d;
}
.card-title-number {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Quick actions */
.admin-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: .75rem;
    color: #4b4b4b;
}
.admin-quick-actions .btn {
    border-radius: 999px;
}

/* Footer */
.admin-footer {
    border-top: 1px solid rgba(0,0,0,.05);
    margin-top: 2.5rem;
    padding-top: 1rem;
}

/* Style search bar */
.table-search {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #d6d6d6 !important;
    font-size: 15px;
    transition: all .2s ease;
}
.table-search:focus {
    border-color: #602B3F !important;
    box-shadow: 0 0 0 3px rgba(96,43,63,0.15);
}

/* Card styling */
.card {
    border-radius: 14px;
    overflow: hidden;
    border: none;
}

/* Table header */
.table thead th {
    background: #f8f6f8 !important;
    font-weight: 600;
    color: #4a2340;
    padding: 14px 16px;
    border-bottom: 2px solid #e6dde5 !important;
}

/* Table rows */
.table tbody tr {
    border-bottom: 1px solid #f0e9ef;
}
.table tbody tr:hover {
    background: #faf7fa;
}

/* Buttons */
.btn-outline-primary {
    border-radius: 6px;
}
.btn-outline-danger {
    border-radius: 6px;
}

/* Pagination */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 3px;
}
.pagination .page-item.active .page-link {
    background-color: #602B3F;
    border-color: #602B3F;
}