/**
 * 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 {
    --primary-color: #DC2626;
    --secondary-color: #F87171;
    --cta-color: #CA8A04;
    --text-dark: #450A0A;
    --text-light: #7C2D12;
    --text-muted: #9A3412;
    --bg-light: #FEF2F2;
    --bg-white: #ffffff;
    --border-color: #FEE2E2;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    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%, var(--secondary-color) 100%);
    color: white;
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.header-title {
    font-family: 'Playfair Display SC', serif;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

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

.header-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    font-size: 0.9375rem;
}

.header-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-open .status-dot {
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
}

.status-closed .status-dot {
    background: #e74c3c;
    box-shadow: 0 0 8px #e74c3c;
}

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

.header-phone,
.header-hours {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.header-phone:active,
.header-hours:active {
    transform: scale(0.95);
}

@media (hover: hover) {
    .header-phone:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
    }
}

.header-phone svg,
.header-hours svg {
    flex-shrink: 0;
}

/* 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;
    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: 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);
    backdrop-filter: blur(8px);
}

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

@media (max-width: 640px) {
    .category-nav-scroll {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
}

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

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

.category-nav-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.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;
}

.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%;
}

/* 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;
}

/* Grid de itens */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}

/* Card do item */
.item-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.5s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay progressivo para cards */
.item-card:nth-child(1) { animation-delay: 0.05s; }
.item-card:nth-child(2) { animation-delay: 0.1s; }
.item-card:nth-child(3) { animation-delay: 0.15s; }
.item-card:nth-child(4) { animation-delay: 0.2s; }
.item-card:nth-child(5) { animation-delay: 0.25s; }
.item-card:nth-child(6) { animation-delay: 0.3s; }

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

@media (hover: hover) {
    .item-card:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
        transform: translateY(-4px);
    }
}

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

.item-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
}

.item-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
    z-index: 1;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.item-image.loaded {
    opacity: 1;
}

.item-image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    filter: brightness(1.03) contrast(1.06) saturate(1.05);
}

@media (hover: hover) {
    .item-card:hover .item-image {
        transform: scale(1.08);
        filter: brightness(1.05) contrast(1.08) saturate(1.08);
    }
}

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

.item-unavailable-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.item-content {
    padding: 1.25rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.item-name {
    font-family: 'Playfair Display SC', serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    letter-spacing: 0.3px;
}

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

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

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

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

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

.item-price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

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

.item-view-options-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.625rem 1.125rem;
    background: var(--cta-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(202, 138, 4, 0.25);
}

@media (hover: hover) {
    .item-view-options-btn:hover {
        background: #B45309;
        box-shadow: 0 4px 12px rgba(202, 138, 4, 0.35);
        transform: translateY(-1px);
    }
}

.item-view-options-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(202, 138, 4, 0.2);
}

.item-view-options-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.item-view-options-btn:hover svg {
    transform: rotate(90deg);
}

/* 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: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.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: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: var(--radius-md);
    }
    
    .modal-item-name {
        font-size: 1.5rem;
    }
    
    .modal-item-header {
        padding: 1rem;
    }
    
    .modal-item-image {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .modal-price-final {
        font-size: 1.6rem;
    }
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

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

/* Modal Header */
.modal-item-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-item-image {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.modal-discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.modal-item-info {
    padding: 0;
}

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

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

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

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

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

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

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

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.modal-gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px 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);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Modal Complementos */
.modal-complements {
    padding: 1.5rem;
}

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

.modal-complement-group {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-color);
}

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

.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;
}

.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: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-option-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.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 */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1rem;
    }
    
    .header-title {
        font-size: 1.75rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .header-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .category-nav-scroll {
        padding: 0.75rem 1rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .category-image-wrapper {
        width: 100%;
        height: 150px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
        margin-top: 1.5rem;
    }
    
    .item-card {
        border-radius: 16px;
    }
    
    .item-image-wrapper {
        height: 180px;
    }
    
    .item-content {
        padding: 0.875rem 0.875rem 0.75rem;
        gap: 0.375rem;
    }
    
    .item-name {
        font-size: 0.875rem;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .item-description {
        font-size: 0.8125rem;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }
    
    .item-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
        padding-top: 0.75rem;
    }
    
    .item-price {
        font-size: 1.125rem;
    }
    
    .item-view-options-btn {
        width: 100%;
        min-height: 44px;
        padding: 0.75rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-item-name {
        font-size: 1.5rem;
    }
    
    .modal-item-image {
        height: 200px;
    }
    
    .modal-price-final {
        font-size: 1.6rem;
    }
    
    .modal-complement-group {
        padding: 1rem;
    }
    
    .modal-option-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .modal-option-price {
        margin-left: 0;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .item-image-wrapper {
        height: 280px;
    }
    
    .item-content {
        padding: 1.25rem;
    }
}

/* 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);
    }
}
