/* ================================================================
   TDB Menu
   ================================================================ */

/* ── Page Header ─────────────────────────────────────────────────── */
.tdb-menu-header {
    background:#1a1a1a;
    color: #fff;
    padding: 60px 20px 48px;
    text-align: center;
}
.tdb-menu-header__title {
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--tdb-light);
}
.tdb-menu-header__sub {
    font-size: 18px;
    opacity: 0.8;
    margin: 0;
}

/* ── Filter bar ──────────────────────────────────────────────────── */
.tdb-menu-filters {
    position: sticky !important;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}
.tdb-menu-filters .tdb-container{
    padding-block: 50px !important;
}
/* ── Category tabs ───────────────────────────────────────────────── */
.tdb-menu-cats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.tdb-menu-cats::-webkit-scrollbar { display: none; }

.tdb-menu-cats button.tdb-cat-tab {
    padding: 10px 20px;
    border: 1.5px solid #ddd;
    background: #fff;
    border-radius: 100px !important;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter';
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    color: #333;
    flex: 0 0 8%;
}
.tdb-menu-cats button.tdb-cat-tab:hover {
    border-color: #C0392B;
    color: #C0392B;
}
.tdb-menu-cats button.tdb-cat-tab--active {
    background: #C0392B;
    border-color: #C0392B;
    color: #fff;
}
.tdb-menu-cats button.tdb-cat-tab--active:hover {
    color: #ffffff;
}
/* ── Dietary chips ───────────────────────────────────────────────── */
.tdb-dietary-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tdb-dietary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1.5px solid #ddd;
    border-radius: 100px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s;
    user-select: none;
}
.tdb-dietary-chip:hover { border-color: #C0392B; }
.tdb-dietary-chip input { display: none; }
.tdb-dietary-chip:has(input:checked) {
    background: #fdf0ef;
    border-color: #C0392B;
    color: #C0392B;
    font-weight: 600;
}

/* ── Menu sections ───────────────────────────────────────────────── */
.tdb-menu-sections {
    padding: 40px 0 80px;
}
.tdb-menu-section {
    margin-bottom: 56px;
}
.tdb-menu-section__title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    padding-bottom: 12px;
    border-bottom: 3px solid #C0392B;
    margin: 0 0 28px;
    display: inline-block;
}

/* ── Menu grid ───────────────────────────────────────────────────── */
.tdb-menu-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(260px, 1fr) );
    gap: 24px;
}

/* ── Menu card ───────────────────────────────────────────────────── */
.tdb-menu-card {
    background: #fff;
    border: 1.5px solid #f0ece8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.tdb-menu-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.tdb-menu-card__img {
    position: relative;
    aspect-ratio: 4/3;
    background: #f0ece8;
    overflow: hidden;
}
.tdb-menu-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.tdb-menu-card:hover .tdb-menu-card__img img {
    transform: scale(1.04);
}

.tdb-menu-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}
.tdb-menu-card__badge--new     { background: #27AE60; color: #fff; }
.tdb-menu-card__badge--popular { background: #E67E22; color: #fff; }

.tdb-menu-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tdb-menu-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.tdb-menu-card__name {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.tdb-menu-card__price {
    font-size: 17px;
    font-weight: 800;
    color: #C0392B;
    white-space: nowrap;
    margin: 0;
}
.tdb-menu-card__desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* ── Dietary badges ──────────────────────────────────────────────── */
.tdb-dietary-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.tdb-badge {
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555;
    font-weight: 600;
}
.tdb-badge--vegetarian  { background: #d4edda; color: #155724; }
.tdb-badge--vegan       { background: #cce5cc; color: #1a4a1a; }
.tdb-badge--gluten-free { background: #fff3cd; color: #856404; }
.tdb-badge--spicy       { background: #f8d7da; color: #721c24; }

/* ── No results ──────────────────────────────────────────────────── */
.tdb-menu-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 17px;
}

/* ── Store about section ─────────────────────────────────────────── */
.tdb-store-about { padding: 48px 20px; }
.tdb-store-about__content { max-width: 680px; font-size: 17px; line-height: 1.7; color: #333; }

/* ── Store featured section ──────────────────────────────────────── */
.tdb-store-featured { padding: 48px 0; }
.tdb-store-featured__cta { text-align: center; margin-top: 32px; }

/* ── Shortcode wrapper ───────────────────────────────────────────── */
.tdb-menu-sc {
    padding: 24px 0;
}



/* ── Order modal ─────────────────────────────────────────────────── */
.tdb-menu-card { cursor: pointer; }
body.tdb-modal-open { overflow: hidden; }

.tdb-order-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tdb-order-modal[hidden] { display: none; }

.tdb-order-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.tdb-order-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 460px;
    margin: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    animation: tdb-modal-in 0.22s ease;
}
@keyframes tdb-modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.tdb-order-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.tdb-order-modal__close:hover {
    color: #1a1a1a;
    background: #f0ece8;
}

.tdb-order-modal__title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid #C0392B;
    display: inline-block;
}

.tdb-order-modal__locations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tdb-order-modal__locations li::marker {
    content:"";
}
.tdb-order-modal__location-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 1.5px solid #f0ece8;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.tdb-order-modal__location-link:hover {
    border-color: #C0392B;
    background: #fdf0ef;
    box-shadow: 0 2px 12px rgba(192, 57, 43, 0.1);
    text-decoration: none;
}

.tdb-order-modal__location-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tdb-order-modal__location-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.tdb-order-modal__location-address {
    font-size: 13px;
    color: #888;
}
.tdb-order-modal__location-cta {
    font-size: 14px;
    font-weight: 700;
    color: #C0392B;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media ( max-width: 640px ) {
    .tdb-menu-grid {
        grid-template-columns: 1fr;
    }
    .tdb-store-info-bar__grid {
        flex-direction: column;
        align-items: flex-start;
    }
}
