/**
 * Estilos do Cardápio Digital
 * Layout inspirado em design moderno e clean
 */

/* Importar fontes Google Fonts - Recomendação UI/UX Pro Max */
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&family=Playfair+Display+SC:wght@400;700&display=swap');

:root {
    /* Cores principais */
    --primary-color: #FF6B35;
    --primary-hover: #e65a2e;
    --secondary-color: #8B1538;
    --accent-color: #D4AF37;         /* Dourado para destaques */
    --cta-color: #C41E3A;            /* Call-to-action vermelho */
    
    /* Textos */
    --text-dark: #2D0A1F;            /* Quase preto com tom bordô */
    --text-light: #5C1F3A;           /* Bordô médio para textos secundários */
    --text-muted: #8B6B7A;           /* Cinza-rosado para textos discretos */
    
    /* Backgrounds */
    --bg-light: #FFF8F5;             /* Bege muito claro (fundo principal) */
    --bg-white: #FFFFFF;             /* Branco puro para cards */
    --bg-cream: #FFF5EE;             /* Creme suave */
    
    /* Bordas e Sombras */
    --border-color: #F5E6E8;         /* Rosa muito claro */
    --shadow-sm: 0 2px 4px rgba(139, 21, 56, 0.08);
    --shadow-md: 0 4px 12px rgba(139, 21, 56, 0.12);
    --shadow-lg: 0 8px 24px rgba(139, 21, 56, 0.16);
    --shadow-hover: 0 12px 32px rgba(139, 21, 56, 0.20);
    
    /* Raios de Borda */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b91c1c 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-main {
    position: relative;
    padding: 0 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    min-height: 200px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
    width: 100%;
}

.header-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: white;
    flex-shrink: 0;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.header-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-location svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.header-status {
    color: #f59e0b;
    font-size: 0.9rem;
    font-weight: 600;
}

.header-rating {
    color: #fbbf24;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header-rating:hover {
    opacity: 0.8;
}

.header-subtitle {
    font-size: clamp(1rem, 3vw, 1.1rem);
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.4;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 0.75rem;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-icon:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-icon svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

/* Responsividade do Header */
@media (max-width: 768px) {
    .header {
        min-height: auto;
    }
    
    .header-main {
        padding: 0.75rem;
        padding-bottom: 1rem;
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }
    
    .header-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }
    
    .header-logo {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .header-title {
        font-size: 1.25rem;
    }
    
    .header-info {
        width: 100%;
    }
    
    .header-nav {
        gap: 0.625rem;
        flex-wrap: wrap;
        margin-top: 0.625rem;
    }
    
    .nav-icon {
        width: 38px;
        height: 38px;
        border-width: 1.5px;
    }
    
    .nav-icon svg {
        width: 19px;
        height: 19px;
    }
    
    .nav-icon:hover {
        transform: translateY(-1px);
    }
    
    .header-rating {
        font-size: 0.8rem;
    }
}

/* Barra de busca */
.search-container {
    max-width: 600px;
    margin: 1.5rem auto 0;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 3rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

.search-input:focus {
    outline: none;
    background: white;
    border-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.search-clear:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.search-clear:active {
    transform: scale(0.95);
}

/* Resultados da busca */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
}

/* Search Loading State */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

.search-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-loading p {
    color: #6B7280;
    font-size: 0.875rem;
    margin: 0;
}

.search-results-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 12px 12px 0 0;
}

.search-results-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item:active {
    background: var(--border-color);
}

.search-result-content {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.search-result-name mark {
    background: #fef08a;
    color: var(--text-dark);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 700;
}

.search-result-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.search-result-description mark {
    background: #fef08a;
    color: var(--text-dark);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

.search-result-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.search-result-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.search-no-results {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.search-no-results svg {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.search-no-results p {
    margin: 0;
    font-size: 0.95rem;
}

.search-results-more {
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-light);
    border-radius: 0 0 12px 12px;
}

/* Navegação de categorias */
.category-nav {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.category-nav-scroll {
    display: flex;
    gap: 0.625rem;
    padding: 1rem 2rem;
    overflow-x: auto;
    overflow-x: overlay; /* Chrome/Safari */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) var(--bg-light); /* Firefox */
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

@media (max-width: 640px) {
    .category-nav-scroll {
        padding: 0.875rem 1rem;
        gap: 0.625rem;
        scroll-padding: 0 1rem;
    }
    
    .category-nav-item {
        min-height: 44px;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }
    
    .category-nav-item.active {
        background: var(--primary-color);
        color: white;
        box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
        transform: scale(1.02);
    }
    
    .category-nav-item:active {
        transform: scale(0.96);
    }
}

.category-nav-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-nav-scroll::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.category-nav-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.category-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: #e65a2e;
}

/* Indicador de scroll para mobile */
@media (max-width: 768px) {
    .category-nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
        pointer-events: none;
        z-index: 1;
    }
    
    .category-nav-scroll::-webkit-scrollbar {
        height: 3px;
    }
}

.category-nav-item {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.category-nav-item:active {
    transform: scale(0.95);
}

@media (hover: hover) {
    .category-nav-item:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }
}

/* Conteúdo principal */
.main-content {
    flex: 1;
    padding: 2.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1.25rem 0.875rem;
    }
}

/* Seção de categoria */
.category-section {
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.category-image-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.category-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Seção de Categorias com imagens circulares - Sticky */
.categories-section {
    padding: 0.875rem 1rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Campo de busca na seção de categorias */
.categories-section .search-container {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    margin-top: -2px;
}

.categories-section .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 38px;
    height: 38px;
    overflow: hidden;
    cursor: pointer;
}

.categories-section .search-wrapper svg {
    margin: auto;
}

.categories-section .search-wrapper.expanded {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 38px;
    padding: 0.5rem 1rem;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
    border-radius: 19px;
    z-index: 10;
    cursor: text;
    justify-content: flex-start;
}

.categories-section .search-wrapper:focus-within {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 38px;
    padding: 0.5rem 1rem;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
    border-radius: 19px;
    z-index: 10;
    cursor: text;
    justify-content: flex-start;
}

.categories-section .search-icon {
    color: var(--text-muted);
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    display: block;
}

.categories-section .search-wrapper.expanded .search-icon,
.categories-section .search-wrapper:focus-within .search-icon {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Animação suave do botão */
.categories-section .search-wrapper {
    will-change: width, border-radius, transform;
}

/* Estado ativo do botão */
.categories-section .search-wrapper:active:not(.expanded) {
    transform: scale(0.95);
}

.categories-section .search-wrapper:not(.expanded):not(:focus-within):hover {
    background: rgba(255, 107, 53, 0.08);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.categories-section .search-wrapper:not(.expanded):not(:focus-within):hover .search-icon {
    color: var(--primary-color);
}

.categories-section .search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-dark);
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.categories-section .search-wrapper.expanded .search-input,
.categories-section .search-wrapper:focus-within .search-input {
    width: 100%;
    opacity: 1;
}

.categories-section .search-input::placeholder {
    color: var(--text-muted);
}

.categories-section .search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
    opacity: 0;
}

.categories-section .search-wrapper.expanded .search-clear,
.categories-section .search-wrapper:focus-within .search-clear {
    opacity: 1;
}

.categories-section .search-clear:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.categories-section .search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 300px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0 0.75rem;
    position: relative;
    min-height: 38px;
    width: 100%;
}

.categories-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0d9488;
    margin: 0;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.categories-view-all {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.categories-view-all:hover {
    color: var(--primary-color);
}

.categories-nav {
    display: flex;
    gap: 0.875rem;
    overflow-x: auto;
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    overflow: -moz-scrollbars-none; /* Old Firefox */
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 80px;
    padding: 0 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    transform: scale(0.92);
}

.category-item:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

.category-item.active {
    opacity: 1;
    transform: scale(1);
    animation: categoryPulse 0.4s ease-out;
    padding: 0 0.75rem;
    margin: 0 0.25rem;
}

@keyframes categoryPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.category-item.active .category-image-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    transform: scale(1.05);
}

.category-item.active .category-name {
    color: var(--primary-color);
    font-weight: 600;
}

.category-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-item:hover .category-image-wrapper {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.category-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover; /* Opera */
    object-fit: cover;
    font-family: 'object-fit: cover;'; /* IE polyfill */
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.category-item:hover .category-image {
    transform: scale(1.1);
}

.category-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.5rem;
}

.category-name {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* Grid de itens - Layout Lista (Mobile) e Grid 2x2 (Desktop) */
.items-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Desktop: Grid 2x2 */
@media (min-width: 1025px) {
    .items-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Card do item - Layout Lista com imagem à direita */
.item-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.item-card:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    .item-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

.item-card.item-unavailable {
    opacity: 0.7;
}

.item-card > .item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.item-text {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.item-description {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.item-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.item-price-original {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.item-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

/* Imagem do item à direita - MÁXIMO DESTAQUE */
.item-image-wrapper {
    position: relative;
    width: 140px;  /* AUMENTADO para 140px - destaque MÁXIMO */
    height: 140px;
    flex-shrink: 0;
    border-radius: var(--radius-xl);  /* 20px - bordas ainda mais suaves */
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--border-color) 100%);
    /* Sombra muito pronunciada com múltiplas camadas */
    box-shadow: 
        0 6px 20px rgba(139, 21, 56, 0.18),
        0 3px 10px rgba(0, 0, 0, 0.10),
        0 1px 4px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(139, 21, 56, 0.10);  /* Borda interna mais visível */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Borda dourada mais visível para destaque gourmet */
    border: 2.5px solid rgba(212, 175, 55, 0.25);
    /* Efeito de brilho sutil para atrair atenção */
    position: relative;
}

/* Efeito de brilho sobre a imagem (sutil) */
.item-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    z-index: 5;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

.item-card:hover .item-image-wrapper {
    transform: translateY(-3px) scale(1.05);  /* Levanta e aumenta mais */
    box-shadow: 
        0 12px 32px rgba(139, 21, 56, 0.30),
        0 6px 16px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 0 0 2px rgba(212, 175, 55, 0.4);  /* Borda dourada mais intensa */
    border-color: rgba(212, 175, 55, 0.6);
}

/* Acelera animação de brilho no hover */
.item-card:hover .item-image-wrapper::before {
    animation: shimmer 1.5s infinite;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    /* Cores MUITO vibrantes e apetitosas */
    filter: brightness(1.05) contrast(1.08) saturate(1.15);
    /* Nitidez extra */
    image-rendering: -webkit-optimize-contrast;
}

.item-card:hover .item-image {
    transform: scale(1.12);  /* Zoom ainda mais pronunciado */
    filter: brightness(1.10) contrast(1.12) saturate(1.20);
}

.item-unavailable-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 8;
}

/* Contador de recomendações abaixo da imagem */
.item-likes-counter {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 
        0 2px 8px rgba(139, 21, 56, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 8;
    transition: all 0.3s ease;
}

/* Ocultar contador quando não houver curtidas */
.item-likes-counter.hidden {
    display: none;
}

.item-likes-counter .counter-icon {
    color: var(--secondary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.item-likes-counter .counter-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    min-width: 12px;
    text-align: center;
}

/* Hover no card: contador fica mais visível */
.item-card:hover .item-likes-counter {
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 3px 12px rgba(139, 21, 56, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Animação quando contador aumenta */
.item-likes-counter.pulse {
    animation: counterPulse 0.5s ease;
}

@keyframes counterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.item-likes-counter.pulse .counter-icon {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.15); }
}

/* Botão de favoritar - Badge sobre a imagem (harmonioso) */
.item-favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    /* Fundo semi-transparente com blur para não obstruir a comida */
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary-color);  /* Vermelho do Espetos Grill */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    /* Sombra sutil com tom bordô */
    box-shadow: 
        0 2px 8px rgba(139, 21, 56, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    /* Borda dourada sutil para harmonizar */
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    /* Opacidade inicial para não chamar muita atenção */
    opacity: 0.85;
}

/* Hover: badge fica mais visível e elegante */
.item-favorite-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: scale(1.12) translateY(-1px);
    box-shadow: 
        0 4px 16px rgba(139, 21, 56, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    opacity: 1;
}

/* Quando card tem hover, badge fica mais visível */
.item-card:hover .item-favorite-btn {
    opacity: 1;
}

.item-favorite-btn:active {
    transform: scale(0.98);
}

/* Estado favoritado: coração preenchido vermelho */
.item-favorite-btn.favorited {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.95) 0%, rgba(139, 21, 56, 0.95) 100%);
    color: #ffffff;
    border-color: rgba(212, 175, 55, 0.5);
    opacity: 1;
}

.item-favorite-btn.favorited svg {
    fill: #ffffff;
}

.item-favorite-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.item-favorite-btn:hover svg {
    transform: scale(1.15);
}

/* Animação de pulso quando favorita */
.item-favorite-btn.favorited svg {
    animation: heartPulse 0.5s ease;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Animação shake para quando usuário tenta curtir novamente */
.item-favorite-btn.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Complementos */
.item-complements {
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--secondary-color);
}

.complement-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.complement-group:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.complement-group-name {
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.complement-required {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

.complement-group-info {
    font-size: 0.75rem;
    color: var(--text-light);
    background: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    overflow: hidden;
    flex: 1;
}

/* Mensagens */
.error-message,
.empty-state {
    background: var(--bg-white);
    padding: 3rem 2rem;
    margin: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.error-message {
    border: 2px solid #fee2e2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-icon {
    color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.error-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.error-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    min-height: 48px;
}

.error-retry-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.error-retry-btn:active {
    transform: scale(0.98);
}

.error-debug {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.error-debug code {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.empty-state {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
}

.dev-info {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.dev-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.dev-info a:hover {
    text-decoration: underline;
}

/* Badge de desconto */
.item-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    z-index: 3;
}

/* Badge de item destacado */
.item-highlighted-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
    z-index: 3;
}

.item-highlighted-badge svg {
    width: 12px;
    height: 12px;
}

/* Badge +18 */
.item-adults-badge {
    position: absolute;
    top: 44px;
    right: 8px;
    background: rgba(52, 73, 94, 0.95);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    z-index: 3;
}

/* Badges personalizados */
.item-custom-badge {
    position: absolute;
    top: 44px;
    left: 8px;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.item-badge-new_item {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.item-badge-recommended {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.item-badge-limited_edition {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* Unit type no preço */
.item-unit-type {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 0.25rem;
}

/* Contador regressivo de promoção */
.item-promo-countdown {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 152, 0, 0.95);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    animation: pulse-promo 2s ease-in-out infinite;
}

.item-promo-countdown.expired {
    background: rgba(158, 158, 158, 0.95);
    animation: none;
}

.item-promo-countdown svg {
    flex-shrink: 0;
}

.countdown-text {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@keyframes pulse-promo {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
    }
}

/* Badge de view_only */
.item-view-only-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(108, 117, 125, 0.95);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(4px);
}

/* Contador de horário permitido */
.item-time-countdown {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(33, 150, 243, 0.95);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.item-time-countdown.available {
    background: rgba(76, 175, 80, 0.95);
}

.item-time-countdown.expired {
    background: rgba(158, 158, 158, 0.95);
}

/* Badge de fora do horário */
.item-unavailable-time-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(244, 67, 54, 0.95);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(4px);
}

/* Preço original riscado */
.item-price-original {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.2rem;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-color) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 0.75rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-text-short {
    height: 16px;
    width: 40%;
}

.skeleton-price {
    height: 28px;
    width: 30%;
    margin-top: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@media (max-width: 640px) {
    .modal.active {
        padding-top: 1rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: var(--radius-md);
    }
    
    .modal-item-name {
        font-size: 1.5rem;
    }
    
    .modal-item-header {
        padding: 1rem;
    }
    
    .modal-share-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .modal-share-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .modal-share-btn .share-text {
        display: none; /* Esconder texto em mobile */
    }
    
    .share-fallback-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .share-link-container {
        flex-direction: column;
    }
    
    .share-link-container input {
        margin-bottom: 0.5rem;
    }
    
    .modal-skeleton {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .skeleton-image {
        width: 100%;
        height: 150px;
    }
    
    .skeleton-title {
        width: 80%;
    }
    
    .skeleton-actions {
        width: 100px;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    
    .modal-close svg {
        width: 20px;
        height: 20px;
    }
    
    .modal-item-image {
        height: 180px;
    }
    
    .modal-price-final {
        font-size: 1.6rem;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    transform: scale(0);
    opacity: 0;
}

.modal.active .modal-close {
    transform: scale(1);
    opacity: 1;
}

.modal-close:hover {
    background: #e67e3a;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

.modal-close svg {
    color: white;
    width: 24px;
    height: 24px;
}

/* Remover espaçamento final do modal */
.modal-content > *:last-child {
    margin-bottom: 0;
}

.modal-complements:last-child {
    padding-bottom: 0.5rem;
}

/* Modal Header */
.modal-item-header {
    padding: 0;
    border-bottom: none;
}

.modal-item-image {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.modal-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-item-info {
    padding: 1.25rem;
}

.modal-item-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.modal-item-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.modal-item-prices {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Modal Actions */
.modal-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.modal-share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-share-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.modal-share-btn:active {
    transform: translateY(0);
}

.modal-share-btn svg {
    width: 18px;
    height: 18px;
}

.modal-share-btn .share-text {
    font-size: 0.875rem;
}

/* Share Toast */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* Share Fallback Modal */
.share-fallback-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.share-fallback-content h3 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.share-fallback-content p {
    margin: 0 0 1.5rem 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.share-link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.share-link-container input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--bg-light);
    color: var(--text-dark);
}

.share-link-container button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-link-container button:hover {
    background: #e67e3a;
    transform: translateY(-1px);
}

.share-close-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-close-btn:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Modal Skeleton Loading */
.modal-skeleton {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    animation: skeleton-fade-in 0.3s ease;
}

.skeleton-image {
    width: 200px;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-title {
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    width: 60%;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    width: 100%;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-price {
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    width: 120px;
}

.skeleton-actions {
    height: 36px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 20px;
    width: 140px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes skeleton-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Content Animations */
.modal-item-header,
.modal-image-gallery {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.modal-item-header.animated,
.modal-image-gallery.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for gallery items */
.modal-gallery-thumb {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-gallery-grid.animated .modal-gallery-thumb {
    opacity: 1;
    transform: scale(1);
}

.modal-gallery-grid.animated .modal-gallery-thumb:nth-child(1) { transition-delay: 0.05s; }
.modal-gallery-grid.animated .modal-gallery-thumb:nth-child(2) { transition-delay: 0.1s; }
.modal-gallery-grid.animated .modal-gallery-thumb:nth-child(3) { transition-delay: 0.15s; }
.modal-gallery-grid.animated .modal-gallery-thumb:nth-child(4) { transition-delay: 0.2s; }
.modal-gallery-grid.animated .modal-gallery-thumb:nth-child(5) { transition-delay: 0.25s; }

/* Staggered animations for complement groups */
.modal-complement-group {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-complements.animated .modal-complement-group {
    opacity: 1;
    transform: translateY(0);
}

.modal-complements.animated .modal-complement-group:nth-child(1) { transition-delay: 0.05s; }
.modal-complements.animated .modal-complement-group:nth-child(2) { transition-delay: 0.1s; }
.modal-complements.animated .modal-complement-group:nth-child(3) { transition-delay: 0.15s; }
.modal-complements.animated .modal-complement-group:nth-child(4) { transition-delay: 0.2s; }
.modal-complements.animated .modal-complement-group:nth-child(5) { transition-delay: 0.25s; }

/* Staggered animations for option items */
.modal-option-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-complement-group.animated .modal-option-item {
    opacity: 1;
    transform: translateX(0);
}

.modal-complement-group.animated .modal-option-item:nth-child(1) { transition-delay: 0.02s; }
.modal-complement-group.animated .modal-option-item:nth-child(2) { transition-delay: 0.04s; }
.modal-complement-group.animated .modal-option-item:nth-child(3) { transition-delay: 0.06s; }
.modal-complement-group.animated .modal-option-item:nth-child(4) { transition-delay: 0.08s; }
.modal-complement-group.animated .modal-option-item:nth-child(5) { transition-delay: 0.1s; }

.modal-price-original {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.modal-price-final {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Galeria de imagens extras */
.modal-image-gallery {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.modal-gallery-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.modal-gallery-grid {
    display: -ms-grid; /* IE 10-11 */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    -ms-grid-columns: 1fr 0.5rem 1fr 0.5rem 1fr; /* IE fallback */
    gap: 0.5rem;
}

.modal-gallery-thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.modal-gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-gallery-thumb.active {
    border-color: var(--primary-color);
}

/* Modal Complementos */
.modal-complements {
    padding: 1rem 1.25rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    height: auto !important;
    width: 100% !important;
}

.modal-complements-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.modal-complement-group {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-complement-group:last-child {
    margin-bottom: -0.5rem;
}

.modal-complement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-complement-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required-star {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.missing-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.missing-badge-inline {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.85rem;
}

.modal-complement-info {
    font-size: 0.85rem;
    color: var(--text-light);
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.modal-complement-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-option-item:hover {
    background: var(--bg-cream);
}

.modal-option-item.missing {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-option-item.missing:hover {
    background: white;
    transform: none;
}

.modal-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.modal-option-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.modal-option-description {
    font-size: 0.8rem;
    color: var(--text-light);
}

.modal-option-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    margin-left: 1rem;
}

/* Responsividade Mobile para Lista de Itens */
@media (max-width: 768px) {
    .items-grid {
        gap: 0.5rem;
    }
    
    .item-card > .item-content {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .item-image-wrapper {
        width: 120px;  /* AUMENTADO para 120px em mobile */
        height: 120px;
    }
    
    .item-name {
        font-size: 0.9375rem;
    }
    
    .item-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .item-price {
        font-size: 1rem;
    }
    
    .item-favorite-btn {
        top: 6px;
        right: 6px;
        width: 32px;
        height: 32px;
    }
    
    .item-favorite-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .item-likes-counter {
        bottom: 4px;
        right: 4px;
        padding: 3px 6px;
        gap: 3px;
    }
    
    .item-likes-counter .counter-icon {
        width: 14px;
        height: 14px;
    }
    
    .item-likes-counter .counter-number {
        font-size: 0.6875rem;
    }
    
    .categories-section {
        padding: 0.75rem 0.75rem;
    }
    
    .categories-header {
        margin-bottom: 0.625rem;
        padding: 0 0.875rem;
        min-height: 34px;
        position: relative;
    }
    
    .categories-section .search-container {
        right: 0.875rem;
    }
    
    .categories-section .search-wrapper {
        width: 34px;
        height: 34px;
    }
    
    .categories-section .search-icon {
        width: 18px;
        height: 18px;
    }
    
    .categories-section .search-wrapper.expanded,
    .categories-section .search-wrapper:focus-within {
        width: calc(100vw - 3.5rem);
        max-width: 240px;
        height: 34px;
        right: 0.875rem;
        border-radius: 17px;
    }
    
    .categories-section .search-results {
        width: calc(100vw - 3.5rem);
        max-width: 240px;
        right: 0.875rem;
    }
    
    .category-image-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .category-name {
        font-size: 0.6875rem;
        max-width: 64px;
    }
    
    .category-item {
        min-width: 72px;
    }
}

/* Tablet e Desktop: Grid 2x2 com imagens GRANDES */
@media (min-width: 769px) and (max-width: 1024px) {
    .items-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .item-image-wrapper {
        width: 160px;  /* AUMENTADO para 160px em tablet */
        height: 160px;
    }
    
    .item-content {
        padding: 1.25rem;
    }
}

/* Desktop: Imagens MUITO GRANDES no grid 2x2 */
@media (min-width: 1025px) {
    .item-image-wrapper {
        width: 180px;  /* AUMENTADO para 180px em desktop */
        height: 180px;
    }
    
    .item-card > .item-content {
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-section {
    animation: fadeIn 0.5s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Loading state (opcional) */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.loading::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Estilos para categorias com horário de funcionamento */

/* Badge de categoria indisponível */
.category-unavailable-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Horário de funcionamento da categoria */
.category-schedule {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 500;
}

.category-schedule svg {
    flex-shrink: 0;
}

/* Countdown timer */
.category-countdown {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    animation: countdownPulse 2s ease-in-out infinite;
}

.category-countdown[data-type="opens"] {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Animação de pulso para countdown */
@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
    }
}

/* Countdown urgente (< 30 minutos) */
.category-countdown.urgent {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: urgentPulse 1s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.9;
    }
}

/* Categoria indisponível - estilo opaco/cinza */
.category-section.category-unavailable {
    opacity: 0.6;
    position: relative;
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.category-section.category-unavailable .category-title {
    color: var(--text-light);
    transition: color 0.5s ease;
}

.category-section.category-unavailable .items-grid {
    pointer-events: none;
}

.category-section.category-unavailable .item-card {
    opacity: 0.5;
    filter: grayscale(50%);
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.category-section.category-unavailable .item-image {
    filter: grayscale(70%);
    transition: filter 0.6s ease;
}

/* Animação de transição quando categoria muda de status */
.category-section.status-changing {
    animation: statusTransition 1s ease-in-out;
}

@keyframes statusTransition {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.98);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Categoria disponível - transições suaves */
.category-section:not(.category-unavailable) {
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.category-section:not(.category-unavailable) .item-card {
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.category-section:not(.category-unavailable) .item-image {
    transition: filter 0.6s ease;
}

/* Item de navegação de categoria indisponível */
.category-item-unavailable {
    opacity: 0.4;
    filter: grayscale(60%);
}

.category-item-unavailable .category-name {
    color: var(--text-muted);
    text-decoration: line-through;
}

.category-item-unavailable:hover {
    opacity: 0.5;
}

/* Responsividade mobile para horários */
@media (max-width: 768px) {
    /* Badge indisponível - mobile */
    .category-unavailable-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        margin-left: 0.3rem;
        display: inline-block;
        vertical-align: middle;
    }
    
    /* Horário da categoria - mobile */
    .category-schedule {
        font-size: 0.8rem;
        gap: 0.4rem;
        margin-top: 0.4rem;
        flex-wrap: wrap;
    }
    
    .category-schedule svg {
        width: 14px;
        height: 14px;
    }
    
    /* Countdown timer - mobile */
    .category-countdown {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin-left: 0;
        margin-top: 0.3rem;
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .category-countdown.urgent {
        font-size: 0.75rem;
        font-weight: 700;
    }
    
    /* Título da categoria - mobile */
    .category-title {
        font-size: 1.3rem;
        line-height: 1.3;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.3rem;
    }
    
    /* Header da categoria - mobile */
    .category-header {
        padding: 1rem 0.75rem;
    }
    
    .category-info {
        width: 100%;
    }
    
    /* Animações mais sutis no mobile */
    @keyframes countdownPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.02);
        }
    }
    
    @keyframes urgentPulse {
        0%, 100% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.03);
            opacity: 0.95;
        }
    }
    
    /* Transição de status mais rápida no mobile */
    .category-section.status-changing {
        animation: statusTransition 0.6s ease-in-out;
    }
    
    /* Categoria indisponível - mobile */
    .category-section.category-unavailable {
        opacity: 0.65;
    }
    
    .category-section.category-unavailable .item-card {
        opacity: 0.6;
    }
}

/* Mobile pequeno (< 480px) */
@media (max-width: 480px) {
    .category-unavailable-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.35rem;
    }
    
    .category-schedule {
        font-size: 0.75rem;
    }
    
    .category-countdown {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
}

/* Estilos especiais para Happy Hour */

/* Badge Happy Hour */
.category-happy-hour-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #e91e63 0%, #c91f4d 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(201, 31, 77, 0.5);
    animation: happyHourPulse 2s ease-in-out infinite;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes happyHourPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
    }
}

/* Seção Happy Hour com destaque especial */
.category-section.category-happy-hour {
    position: relative;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.12) 0%, rgba(245, 87, 108, 0.12) 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
    animation: happyHourGlow 3s ease-in-out infinite;
}

.category-section.category-happy-hour::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #f093fb 100%);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.4;
    animation: happyHourBorder 3s linear infinite;
}

@keyframes happyHourGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(245, 87, 108, 0.25);
    }
    50% {
        box-shadow: 0 0 45px rgba(245, 87, 108, 0.45);
    }
}

@keyframes happyHourBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.category-section.category-happy-hour .category-header {
    margin-bottom: 1.5rem;
}

.category-section.category-happy-hour .category-title {
    /* Cor sólida com alto contraste */
    color: #c91f4d !important;
    font-weight: 700;
    font-size: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.category-section.category-happy-hour .category-schedule {
    color: #666;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Item de navegação Happy Hour */
.category-item-happy-hour {
    position: relative;
    animation: happyHourNavPulse 2s ease-in-out infinite;
}

.category-item-happy-hour::after {
    content: '🍹';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.2rem;
    animation: happyHourIconSpin 3s linear infinite;
}

@keyframes happyHourNavPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes happyHourIconSpin {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.category-item-happy-hour .category-image-wrapper {
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #f093fb 0%, #f5576c 100%) border-box;
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.category-item-happy-hour .category-name {
    color: #f5576c;
    font-weight: 700;
}

/* Responsividade mobile para Happy Hour */
@media (max-width: 768px) {
    .category-happy-hour-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .category-section.category-happy-hour {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .category-section.category-happy-hour .category-title {
        font-size: 1.5rem;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        color: #c91f4d !important;
    }
    
    .category-section.category-happy-hour .category-header {
        margin-bottom: 1.25rem;
    }
    
    .category-item-happy-hour::after {
        font-size: 1rem;
        top: -3px;
        right: -3px;
    }
    
    /* Animações mais sutis no mobile */
    @keyframes happyHourPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.03);
        }
    }
    
    @keyframes happyHourNavPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }
}

@media (max-width: 480px) {
    .category-happy-hour-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    .category-section.category-happy-hour {
        padding: 1.25rem 0.875rem;
    }
    
    .category-section.category-happy-hour .category-title {
        font-size: 1.3rem;
        color: #c91f4d !important;
    }
}

/* Modal WiFi */
.wifi-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wifi-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Fallback para navegadores sem backdrop-filter */
.no-backdrop-filter .modal-overlay,
.no-backdrop-filter .wifi-modal-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.wifi-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wifi-modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    transform: scale(0);
    opacity: 0;
}

.wifi-modal-close:hover {
    background: var(--bg-medium);
    transform: rotate(90deg);
}

.wifi-modal-close svg {
    color: var(--text-dark);
}

.wifi-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.wifi-icon svg {
    color: white;
}

.wifi-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.wifi-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.wifi-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wifi-field {
    text-align: left;
}

.wifi-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wifi-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.wifi-value span {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

.wifi-copy {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wifi-copy:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.wifi-copy:hover svg {
    color: white;
}

.wifi-copy svg {
    color: var(--text-light);
    transition: color 0.2s ease;
}

.wifi-copy.copied {
    background: #10b981;
    border-color: #10b981;
    animation: copySuccess 0.4s ease;
}

.wifi-copy.copied svg {
    color: white;
}

@keyframes copySuccess {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Botão de conexão automática WiFi */
.wifi-connect-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.wifi-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.wifi-connect-btn:active {
    transform: translateY(0);
}

.wifi-connect-btn svg {
    animation: wifiPulse 2s ease-in-out infinite;
}

@keyframes wifiPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsividade mobile para WiFi modal */
@media (max-width: 768px) {
    .wifi-modal-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    .wifi-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .wifi-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .wifi-title {
        font-size: 1.5rem;
    }
    
    .wifi-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .wifi-value {
        padding: 0.875rem 1rem;
    }
    
    .wifi-value span {
        font-size: 1rem;
    }
    
    .wifi-copy {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .wifi-modal-content {
        padding: 1.75rem 1.25rem;
    }
    
    .wifi-icon {
        width: 60px;
        height: 60px;
    }
    
    .wifi-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .wifi-title {
        font-size: 1.3rem;
    }
    
    .wifi-value span {
        font-size: 0.9rem;
    }
}
