/* ============================================
   RESENHA DECK — Cardápio Digital
   Premium Dark Theme com acentos dourados
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700&family=Bebas+Neue&display=swap');

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    /* Backgrounds */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1e1e1e;
    --bg-surface: #1a1a1a;

    /* Gold Palette */
    --gold: #d4a843;
    --gold-light: #e8c76a;
    --gold-dark: #b8912e;
    --gold-glow: rgba(212, 168, 67, 0.15);
    --gold-subtle: rgba(212, 168, 67, 0.08);

    /* Text */
    --text-primary: #f5f0e8;
    --text-secondary: #b0a898;
    --text-muted: #6b6358;
    --text-gold: #d4a843;

    /* Rustic tones */
    --wood-dark: #1e1510;
    --wood-brown: #3a2a1a;
    --wood-light: #5a4a3a;

    /* Accents */
    --accent-red: #c44536;
    --accent-green: #4a9e5c;

    /* Borders & Shadows */
    --border-color: rgba(212, 168, 67, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(212, 168, 67, 0.15);

    /* Glass */
    --glass-bg: rgba(22, 22, 22, 0.88);
    --glass-border: rgba(212, 168, 67, 0.1);

    /* Typography */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-accent: 'Bebas Neue', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    /* Transitions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.3s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(58, 42, 26, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--wood-brown);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ============================================
   Header / Hero
   ============================================ */
.header {
    position: relative;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
    background:
        linear-gradient(180deg,
            rgba(30, 21, 16, 0.95) 0%,
            rgba(10, 10, 10, 0.98) 100%
        );
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 1;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(212, 168, 67, 0.3));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.header-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.header-title span {
    color: var(--gold);
}

.header-subtitle {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ============================================
   Search Bar
   ============================================ */
.search-container {
    position: relative;
    max-width: 480px;
    margin: var(--space-xl) auto 0;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-normal);
}

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

.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: var(--bg-card);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.search-input:focus ~ .search-icon {
    color: var(--gold);
}

/* ============================================
   Category Navigation
   ============================================ */
.categories-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md) 0;
    transition: box-shadow var(--transition-normal);
}

.categories-nav.scrolled {
    box-shadow: var(--shadow-lg);
}

.categories-scroll {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding: 0 var(--space-lg);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.category-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    scroll-snap-align: start;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.category-pill:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: var(--gold-dark);
    color: var(--gold-light);
    transform: translateY(-1px);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-color: var(--gold);
    color: var(--bg-primary);
    font-weight: 600;
    box-shadow: var(--shadow-gold);
}

.category-pill .cat-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* ============================================
   Category Section
   ============================================ */
.category-section {
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.category-section.hidden {
    display: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.section-icon {
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-count {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   Product Cards
   ============================================ */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.product-card {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: var(--transition-normal);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card.highlight {
    border-color: var(--gold-dark);
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.05) 0%, var(--bg-card) 100%);
}

.product-card.highlight::after {
    content: '⭐ Destaque';
    position: absolute;
    top: 12px;
    right: -28px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 32px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Image */
.product-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

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

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

.product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
}

/* Product Info */
.product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-description {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-family: var(--font-accent);
    font-size: 1.35rem;
    color: var(--gold);
    letter-spacing: 1px;
    line-height: 1;
}

.product-price .currency {
    font-size: 0.75em;
    color: var(--gold-dark);
}

/* No image variant */
.product-card.no-img {
    padding: var(--space-md) var(--space-lg);
}

.product-card.no-img .product-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.product-card.no-img .product-name-desc {
    flex: 1;
}

.product-card.no-img .product-price {
    flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--wood-dark) 100%);
    border-top: 1px solid var(--border-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto var(--space-lg);
    opacity: 0.8;
}

.footer-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.footer-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.footer-info .highlight-text {
    color: var(--gold);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.footer-social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    margin: var(--space-xl) auto;
}

.footer-hours {
    margin-top: var(--space-lg);
}

.footer-hours h4 {
    font-family: var(--font-accent);
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.footer-hours p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-copyright {
    margin-top: var(--space-xl);
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for product cards */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
}

/* ============================================
   No Results (Search)
   ============================================ */
.no-results {
    display: none;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-muted);
}

.no-results.show {
    display: block;
    animation: fadeIn 0.3s var(--ease-out);
}

.no-results .no-results-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.no-results h3 {
    font-family: var(--font-display);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

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

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

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: var(--transition-normal);
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    color: white;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

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

/* Tablets */
@media (min-width: 600px) {
    .header {
        padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
    }

    .logo {
        width: 180px;
        height: 180px;
    }

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

    .product-image {
        width: 110px;
        height: 110px;
    }

    .product-name {
        font-size: 1.1rem;
    }

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

/* Desktop */
@media (min-width: 900px) {
    .main-content {
        padding: var(--space-xl) var(--space-2xl);
    }

    .logo {
        width: 200px;
        height: 200px;
    }

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

    .header-subtitle {
        font-size: 1.2rem;
        letter-spacing: 6px;
    }

    .products-grid {
        gap: var(--space-lg);
    }

    .product-card {
        padding: var(--space-lg);
    }

    .product-image {
        width: 120px;
        height: 120px;
    }
}

/* Small mobiles */
@media (max-width: 380px) {
    .header {
        padding: var(--space-2xl) var(--space-md) var(--space-lg);
    }

    .logo {
        width: 120px;
        height: 120px;
    }

    .header-title {
        font-size: 1.6rem;
    }

    .category-pill {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .product-image {
        width: 75px;
        height: 75px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1.15rem;
    }

    .main-content {
        padding: var(--space-md);
    }
}
