/* ========== RESET E VARIÁVEIS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --bg-color: #FFFFFF;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --border-color: #DFE6E9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    background: #FFFFFF;
    padding: 30px 20px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.logo-image {
    width: 320px;
    height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    animation: logoFloat 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    }

    to {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
}

.restaurant-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.restaurant-slogan {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    margin-bottom: 10px;
}

.admin-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F8F9FA;
    border: 2px solid #E9ECEF;
    color: var(--text-dark);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-btn:hover {
    background: #E9ECEF;
    transform: rotate(90deg) scale(1.1);
    border-color: var(--primary-color);
}

/* ========== NAVEGAÇÃO DE CATEGORIAS ========== */
.categories-nav {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 100;
    padding: 20px 0;
}

.categories-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: #FFFFFF;
    border: 1.5px solid #E9ECEF;
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.category-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.category-btn.active {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* ========== SEÇÃO DE DESTAQUES ========== */
.highlights-section {
    padding: 40px 0;
    background: #FAFBFC;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.title-icon {
    font-size: 1.3rem;
}

.highlights-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 20px 15px;
    scrollbar-width: thin;
    scrollbar-color: #E9ECEF transparent;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap;
}

.highlights-grid::-webkit-scrollbar {
    height: 6px;
}

.highlights-grid::-webkit-scrollbar-track {
    background: transparent;
}

.highlights-grid::-webkit-scrollbar-thumb {
    background: #E9ECEF;
    border-radius: 3px;
}

.highlights-grid::-webkit-scrollbar-thumb:hover {
    background: #DEE2E6;
}

.highlights-grid .product-card {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* ========== PRODUTOS ========== */
.main-content {
    padding: 35px 0 60px;
}

.category-section {
    margin-bottom: 50px;
}

.category-header {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text-dark);
    position: relative;
    letter-spacing: -0.5px;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #FFD93D 100%);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1d1f 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-icon {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========== LOADING ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 20px 0;
    }

    .logo-image {
        width: 200px;
        height: 200px;
    }

    .restaurant-name {
        font-size: 1.5rem;
        margin-bottom: 2px;
    }

    .restaurant-slogan {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .categories-nav {
        padding: 10px 0;
    }

    .categories-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 15px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .categories-container::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .highlights-section {
        padding: 20px 0;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .highlights-grid {
        gap: 12px;
        padding: 0 15px 15px;
    }

    .highlights-grid .product-card {
        min-width: 160px;
        max-width: 160px;
    }

    .main-content {
        padding: 20px 0 40px;
    }

    .category-header {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    /* Grid de produtos mobile otimizado */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        min-width: 0;
        width: 100%;
        border-radius: 12px;
    }

    .product-image-container {
        height: 110px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 0.9rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .product-description {
        font-size: 0.75rem;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-price {
        font-size: 1rem;
    }

    .price-original {
        font-size: 0.8rem;
    }

    .product-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
        top: 6px;
        right: 6px;
    }

    .scroll-hint {
        text-align: center;
        font-size: 0.8rem;
        color: var(--text-light);
        margin-top: 0;
        margin-bottom: 15px;
        display: block;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            opacity: 0.6;
        }

        50% {
            opacity: 1;
        }

        100% {
            opacity: 0.6;
        }
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0;
    }

    .logo-image {
        width: 160px;
        height: 160px;
    }

    .restaurant-name {
        font-size: 1.3rem;
    }

    .restaurant-slogan {
        font-size: 0.8rem;
    }

    .category-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    /* Grid ultra compacto para telas pequenas */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-image-container {
        height: 100px;
    }

    .product-info {
        padding: 8px;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-description {
        display: none;
    }

    .product-footer {
        margin-top: 4px;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .highlights-grid .product-card {
        min-width: 140px;
        max-width: 140px;
    }
}

.scroll-hint {
    display: none;
}

/* ========== REDES SOCIAIS ========== */
.social-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-btn.facebook {
    background: #1877F2;
}

/* ========== INFORMAÇÕES DO RODAPÉ ========== */
.footer-info-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-info-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
    flex: 1 1 300px;
    max-width: 400px;
    min-width: 280px;
}

.footer-info-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.footer-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info-icon {
    font-size: 1.3rem;
}

/* Formas de Pagamento */
.payment-methods-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
}

.payment-method-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.02);
}

.payment-icon {
    font-size: 1.1rem;
}

.payment-name {
    font-weight: 500;
}

/* Regras da Casa */
.house-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.house-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.house-rule-item:last-child {
    border-bottom: none;
}

.rule-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

/* Seções Customizadas */
.custom-section-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
}

.custom-section-item {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-section-item:last-child {
    border-bottom: none;
}

/* Responsivo para Rodapé */
@media (max-width: 768px) {
    .footer-info-section {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .footer-info-card {
        padding: 18px;
        border-radius: 12px;
    }

    .footer-info-title {
        font-size: 1rem;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .payment-methods-list {
        gap: 8px;
    }

    .payment-method-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .house-rule-item {
        font-size: 0.85rem;
        padding: 6px 0;
    }
}