/**
 * À-Parte Restaurante — CSS Principal
 * Design premium inspirado no site a-parte.com
 * Tema escuro com acentos dourados
 */

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
    /* Cores primárias */
    --color-bg-dark: #1a1814;
    --color-bg-section: #0f0d0a;
    --color-bg-card: #252118;
    --color-bg-card-hover: #2e2820;
    --color-gold: #CDA45E;
    --color-gold-light: #FFB03B;
    --color-gold-dark: #b08d4a;
    --color-text: #e0d9cc;
    --color-text-light: #a89f91;
    --color-text-heading: #ffffff;
    --color-white: #ffffff;
    --color-border: rgba(205, 164, 94, 0.15);
    --color-border-hover: rgba(205, 164, 94, 0.4);
    --color-success: #4caf50;
    --color-danger: #f44336;

    /* Fontes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --font-accent: 'Poppins', sans-serif;

    /* Espaçamentos */
    --section-padding: 80px 0;
    --container-padding: 0 15px;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Sombras */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 4px 20px rgba(205, 164, 94, 0.15);
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--color-gold);
    color: var(--color-bg-dark);
}

.text-gold {
    color: var(--color-gold) !important;
}

/* ============================================
   Preloader
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: preloaderSpin 1s linear infinite;
    margin: 0 auto 20px;
}

.preloader-text {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.2rem;
    letter-spacing: 3px;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #1a1814 0%, #2c231a 50%, #1a1814 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(205, 164, 94, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 176, 59, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="none" stroke="rgba(205,164,94,0.03)" stroke-width="0.5" x="0" y="0" width="100" height="100"/></svg>');
    z-index: 1;
}

.hero .container {
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-text-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo-img {
    max-width: 280px;
    height: auto;
    display: inline-block;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 20px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-menu,
.btn-featured {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 14px 36px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-menu {
    background: var(--color-gold);
    color: var(--color-bg-dark);
    border: 2px solid var(--color-gold);
}

.btn-menu:hover {
    background: transparent;
    color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-featured {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn-featured:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 1.5rem;
    animation: heroScrollBounce 2s infinite;
}

@keyframes heroScrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    margin-bottom: 50px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-white);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.text-center .section-title h2::after {
    left: 50%;
}

/* Section Background Alternation */
section {
    padding: var(--section-padding);
}

.section-bg {
    background: var(--color-bg-section);
}

/* ============================================
   Menu Section
   ============================================ */
.menu-search-wrapper {
    max-width: 500px;
    margin: 0 auto 30px;
}

.menu-search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 0 20px;
    transition: border-color var(--transition-fast);
}

.menu-search:focus-within {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
}

.menu-search i {
    color: var(--color-gold);
    font-size: 1.2rem;
}

.menu-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.menu-search input::placeholder {
    color: var(--color-text-light);
}

.menu-search #clearSearch {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0;
    transition: color var(--transition-fast);
}

.menu-search #clearSearch:hover {
    color: var(--color-gold);
}

/* Menu Filters */
.menu-filters,
.menu-subfilters {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 20px;
}

.menu-filters li,
.menu-subfilters li {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    color: var(--color-text-light);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.menu-filters li:hover,
.menu-filters li.filter-active,
.menu-subfilters li:hover,
.menu-subfilters li.filter-active {
    background: var(--color-gold);
    color: var(--color-bg-dark);
    border-color: var(--color-gold);
}

.menu-subfilters {
    min-height: 0;
    transition: all var(--transition-normal);
}

/* Menu Cards */
.menu-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    height: 100%;
}

.menu-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.menu-card.featured {
    border-color: rgba(205, 164, 94, 0.3);
    box-shadow: var(--shadow-gold);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-gold);
    color: var(--color-bg-dark);
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.menu-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--color-bg-card));
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.08);
}

.menu-card-body {
    padding: 20px;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.menu-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-white);
    line-height: 1.4;
}

.menu-card-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gold);
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-card-description {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.menu-card-category {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold-dark);
    opacity: 0.7;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
}

.no-results i {
    font-size: 3rem;
    color: var(--color-gold-dark);
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.no-results h4 {
    color: var(--color-text);
    margin-bottom: 8px;
}

/* ============================================
   Pratos do Dia — Daily Specials Section
   ============================================ */
.daily-specials-section {
    background: #f8f5f0;
    padding: 80px 0;
}

.ds-header {
    margin-bottom: 56px;
}

.ds-label {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
}

.ds-label-line {
    display: inline-block;
    width: 80px;
    height: 2px;
    background: var(--color-gold);
    vertical-align: middle;
    margin-left: 12px;
    margin-bottom: 4px;
}

.ds-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #2c2620;
    margin: 8px 0 6px;
}

.ds-date {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #6b6156;
    margin: 0;
}

.ds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 80px;
}

.ds-category-name {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c2620;
    margin-bottom: 16px;
}

.ds-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.ds-item-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gold);
    flex-shrink: 0;
    max-width: 55%;
}

.ds-item-dots {
    flex: 1;
    border-bottom: 2px dotted rgba(205, 164, 94, 0.4);
    min-width: 20px;
    margin-bottom: 3px;
}

.ds-item-price {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #2c2620;
    white-space: nowrap;
    flex-shrink: 0;
}

.ds-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9e948a;
}

.ds-empty i {
    font-size: 3rem;
    color: var(--color-gold-dark);
    opacity: 0.3;
    display: block;
    margin-bottom: 15px;
}

.ds-empty p {
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
#footer {
    background: var(--color-bg-section);
    border-top: 1px solid var(--color-border);
}

.footer-top {
    padding: 60px 0 30px;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
}

.footer-logo h3 span {
    color: var(--color-gold);
}

.footer-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin: 0 5px;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
    border-color: var(--color-gold);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.copyright a {
    color: var(--color-gold);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-gold);
    color: var(--color-bg-dark);
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 996;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-gold);
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--color-bg-dark);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Animations
   ============================================ */
.menu-item {
    transition: all var(--transition-normal);
}

.menu-item.hidden {
    display: none !important;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }

    /* Pratos do Dia — tablet */
    .ds-grid {
        gap: 36px 48px;
    }

    .ds-title {
        font-size: 2.5rem;
    }
}


/* Mobile */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        height: auto;
        min-height: 100svh;
        padding: 100px 0 60px;
    }

    .hero-logo-img {
        max-width: 200px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-menu,
    .btn-featured {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 16px 36px;
        font-size: 0.95rem;
    }



    /* Section titles */
    .section-title h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    /* Menu search */
    .menu-search-wrapper {
        max-width: 100%;
        padding: 0 4px;
    }

    .menu-search {
        padding: 0 16px;
    }

    .menu-search input {
        font-size: 1rem;
        padding: 14px 12px;
    }

    /* Filter pills */
    .menu-filters,
    .menu-subfilters {
        gap: 6px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 4px 8px;
        margin-bottom: 16px;
    }

    .menu-filters::-webkit-scrollbar,
    .menu-subfilters::-webkit-scrollbar {
        display: none;
    }

    .menu-filters li,
    .menu-subfilters li {
        font-size: 0.75rem;
        padding: 8px 16px;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    /* Menu cards: single column on mobile */
    .menu-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .menu-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .menu-card-img {
        width: 110px;
        height: auto;
        min-height: 110px;
        flex-shrink: 0;
    }

    .menu-card-img::after {
        top: 0;
        bottom: 0;
        left: auto;
        right: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, transparent, var(--color-bg-card));
    }

    .menu-card-body {
        padding: 14px 14px 14px 12px;
        flex: 1;
        min-width: 0;
    }

    .menu-card-title {
        font-size: 0.95rem;
    }

    .featured-badge {
        top: 8px;
        right: 8px;
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    /* Pratos do Dia — mobile */
    .daily-specials-section {
        padding: 60px 0;
    }

    .ds-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ds-title {
        font-size: 2.2rem;
    }

    .ds-item-name {
        max-width: 60%;
    }

    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 50px 0;
    }

    .menu-card-img {
        width: 90px;
        min-height: 90px;
    }
}

/* ============================================
   404 Error
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-bg-dark);
}

.error-page h1 {
    font-size: 8rem;
    color: var(--color-gold);
    font-family: var(--font-heading);
}

.error-page p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.error-page a {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-bg-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.error-page a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
    color: var(--color-bg-dark);
}

/* ============================================
   Mobile Category Navigation (2×2 Grid)
   ============================================ */
.mobile-category-nav {
    display: none; /* shown only on mobile via media query */
}

@media (max-width: 768px) {
    .mobile-category-nav {
        display: flex;
        flex-direction: column;
        height: 100svh;
        height: 100vh; /* fallback */
        max-height: 100svh;
        overflow: hidden;
        background: linear-gradient(
            180deg,
            #C4B8A8 0%,
            #B5A898 40%,
            #8B7D6F 60%,
            #3C3C3C 100%
        );
        padding: 12px 14px env(safe-area-inset-bottom, 8px);
        position: relative;
        z-index: 1;
    }

    /* Hide original sections on mobile */
    .hero,
    .hero-scroll-indicator,
    #main,
    #footer {
        display: none !important;
    }
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    /* Garante que o inner não cresce além do container */
    min-height: 0;
    height: 100%;
}

/* Header — ocupa ~22% do espaço disponível */
.mobile-nav-header {
    flex: 2.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    min-height: 0;
}

.mobile-nav-logo {
    /* Logotipo relativo à altura do bloco — equilibrado com os botões */
    height: 70%;
    max-height: 140px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.mobile-nav-tagline {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: #3C3C3C;
    font-style: italic;
    margin: 5px 0 0;
    line-height: 1.3;
}

.mobile-nav-tagline span {
    color: #B5654A;
    font-weight: 600;
}

/* Grid — ocupa ~70% do espaço disponível */
.mobile-nav-grid {
    flex: 7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    min-height: 0;
}

/* Category Button */
.category-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.category-btn:focus-visible .category-btn__card {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

/* Card */
.category-btn__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.category-btn:active .category-btn__card {
    transform: scale(0.96);
}

/* Terracotta band — hidden: PNG already has it built in */
.category-btn__card::after {
    display: none;
}

/* Icon — fills the full card */
.category-btn__icon {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.category-btn__icon .cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* Label — hidden: text is already embedded in the PNG image */
.category-btn__label {
    display: none;
}

/* Fallback icon (shown if SVG is empty) */
.category-btn__fallback {
    display: none;
    font-size: 2.5rem;
    color: #B5654A;
    position: relative;
    z-index: 1;
}

.category-btn__icon:empty ~ .category-btn__fallback,
.category-btn__icon:not(:has(img)) ~ .category-btn__fallback {
    display: block;
}

.category-btn__icon:not(:has(img)) {
    display: none;
}

/* Footer — ocupa ~8% do espaço disponível */
.mobile-nav-footer {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    min-height: 0;
}

.mobile-nav-footer p {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 1px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mobile-nav-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-nav-footer i {
    font-size: 0.75rem;
}

/* ============================================
   Bottom Sheet
   ============================================ */
.bs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.bs-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-bg-dark);
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

.bottom-sheet.active {
    transform: translateY(0);
}

/* Handle */
.bs-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
    cursor: grab;
    flex-shrink: 0;
    touch-action: none;
}

.bs-handle span {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Header */
.bs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px 16px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.bs-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
}

.bs-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--color-text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.bs-close:hover,
.bs-close:focus {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

/* Content */
.bs-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
}

/* ============================================
   Bottom Sheet — Menu Items
   ============================================ */
.bs-menu-group {
    margin-bottom: 28px;
}

.bs-menu-group:last-child {
    margin-bottom: 0;
}

.bs-menu-group__title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gold);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bs-menu-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.bs-menu-item__name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    flex-shrink: 0;
    max-width: 60%;
}

.bs-menu-item__badge {
    color: var(--color-gold);
    font-size: 0.7rem;
    vertical-align: middle;
}

.bs-menu-item__dots {
    flex: 1;
    border-bottom: 2px dotted rgba(205, 164, 94, 0.25);
    min-width: 16px;
    margin-bottom: 4px;
}

.bs-menu-item__price {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gold);
    white-space: nowrap;
    flex-shrink: 0;
}

.bs-menu-item__desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0 0 10px;
    line-height: 1.5;
    padding-left: 2px;
}

/* ============================================
   Bottom Sheet — Daily Specials Override
   ============================================ */
.bs-specials-content .ds-header {
    margin-bottom: 24px;
}

.bs-specials-content .ds-label {
    color: var(--color-gold);
}

.bs-specials-content .ds-title {
    color: var(--color-white);
    font-size: 1.8rem;
}

.bs-specials-content .ds-date {
    color: var(--color-text-light);
}

.bs-specials-content .ds-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

.bs-specials-content .ds-category-name {
    color: var(--color-gold);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 6px;
}

.bs-specials-content .ds-item-name {
    color: var(--color-white);
}

.bs-specials-content .ds-item-price {
    color: var(--color-gold);
}

.bs-specials-content .ds-item-dots {
    border-bottom-color: rgba(205, 164, 94, 0.25);
}

.bs-specials-content .ds-empty {
    color: var(--color-text-light);
}

.bs-specials-content .ds-empty i {
    color: var(--color-gold-dark);
}

/* ============================================
   Skeleton Loading
   ============================================ */
.bs-skeleton {
    display: none;
}

.bs-skeleton.active {
    display: block;
}

.skel-group {
    margin-bottom: 24px;
}

.skel-title {
    width: 40%;
    height: 18px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    margin-bottom: 16px;
    animation: skelPulse 1.5s ease-in-out infinite;
}

.skel-item {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    margin-bottom: 10px;
    animation: skelPulse 1.5s ease-in-out infinite;
    animation-delay: 0.1s;
}

.skel-item.skel-short {
    width: 65%;
}

@keyframes skelPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ============================================
   Body Scroll Lock
   ============================================ */
body.bs-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* ============================================
   Accessibility — Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .bottom-sheet {
        transition: none;
    }

    .bs-overlay {
        transition: none;
    }

    .category-btn__card {
        transition: none;
    }

    .skel-title,
    .skel-item {
        animation: none;
        opacity: 0.6;
    }
}

/* ============================================
   Small Mobile Adjustments
   ============================================ */
@media (max-width: 768px) and (max-height: 680px) {
    .mobile-category-nav {
        padding: 12px 12px env(safe-area-inset-bottom, 8px);
    }

    .mobile-nav-header {
        padding: 4px 0 8px;
    }

    .mobile-nav-logo {
        max-width: 100px;
    }

    .mobile-nav-tagline {
        font-size: 0.85rem;
    }

    .mobile-nav-grid {
        gap: 8px;
    }

    .category-btn {
        min-height: 110px;
    }



    .mobile-nav-footer p {
        font-size: 0.65rem;
    }
}

@media (max-width: 360px) {


    .mobile-nav-grid {
        gap: 6px;
    }
}

