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

:root {
    --primary: #0f172a;
    --accent: #d97706;
    --success: #22c55e;
    --danger: #ef4444;
    --info: #3b82f6;
    --bg: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-light: #64748b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #f1f5f9, #f8fafc);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

header .container {
    padding: 0.8rem 0.75rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--accent);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-section {
    flex: 1;
    min-width: 0;
}

.brand-section h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text);
    margin: 0;
    word-break: break-word;
}

.brand-section p {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.1rem;
    word-break: break-word;
}

.lang-toggle {
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 0.5rem;
}

.lang-toggle:hover {
    background: #1e293b;
}

.menu-toggle {
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    margin-left: auto;
}

.menu-toggle:hover {
    background: #1e293b;
}

/* Scroll-Reactive Tagline Styles */
.scroll-tagline {
    background: white;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
    display: none;
}

.scroll-tagline.visible {
    display: block;
}

.scroll-tagline.hidden {
    max-height: 0;
    opacity: 0;
    border-bottom: none;
}

.scroll-tagline .container {
    padding: 0.75rem 0.75rem;
}

.tagline-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.4rem 0;
    text-align: center;
    letter-spacing: 0.3px;
}

.tagline-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

.trust-badges-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 0.75rem;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.menu-dropdown {
    display: none;
}

.brand-section h1 {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--text);
}

.brand-section p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.lang-toggle {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-toggle:hover {
    background: #1e293b;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text);
}

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.badge-icon {
    color: var(--accent);
    width: 16px;
    height: 16px;
}

main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 0.75rem 12rem 0.75rem;
}

.people-selector {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.people-selector p {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.people-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.people-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.people-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 6px rgba(217, 119, 6, 0.2);
}

.people-btn.inactive {
    background: #f1f5f9;
    color: var(--text);
}

.people-btn.inactive:hover {
    background: #e2e8f0;
}

.category-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-tab {
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-tab:hover {
    border-color: #94a3b8;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.menu-item {
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.menu-item:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.item-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.item-price {
    color: var(--accent);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.recommendation {
    background: #dbeafe;
    border-left: 4px solid var(--info);
    border-radius: 0.25rem;
    padding: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.7rem;
    color: var(--text);
}

.recommendation strong {
    display: block;
    margin-bottom: 0.2rem;
}

.add-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.add-btn:hover {
    background: #1e293b;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.qty-minus {
    background: #fee2e2;
    color: var(--danger);
}

.qty-minus:hover {
    background: #fecaca;
}

.qty-plus {
    background: #dcfce7;
    color: var(--success);
}

.qty-plus:hover {
    background: #bbf7d0;
}

.qty-input {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
}

.qty-total {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
}

.cart-bar.active {
    display: block;
}

.cart-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
}

.cart-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-size: 1rem;
}

.cart-items-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.cart-totals {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-total-price {
    font-weight: bold;
    font-size: 1.125rem;
    color: var(--accent);
}

.cart-expand-btn {
    color: var(--text-light);
}

.cart-summary {
    display: none;
    max-height: 256px;
    overflow-y: auto;
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cart-summary.active {
    display: block;
}

.view-cart-btn-container {
    margin-bottom: 1rem;
}

.view-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: #f1f5f9;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.view-cart-btn:hover {
    background: #e2e8f0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.cart-item-detail {
    font-size: 0.75rem;
    color: var(--text-light);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.5rem;
}

.whatsapp-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.2);
    margin-bottom: 0.75rem;
}

.whatsapp-btn:hover {
    background: #16a34a;
}

.call-btn {
    width: 100%;
    padding: 0.75rem;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.call-btn:hover {
    background: #f1f5f9;
}

.empty-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
    display: none;
}

.empty-cart.active {
    display: block;
}

@media (max-width: 768px) {
    .brand-section h1 {
        font-size: 1.5rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .header-top {
        flex-direction: row;
        align-items: center;
    }

    .lang-toggle {
        width: auto;
    }

    .people-buttons {
        width: 100%;
    }

    .people-btn {
        flex: 1;
    }

    main {
        padding: 1rem 0.75rem 14rem 0.75rem;
    }

    /* Scroll Tagline Mobile */
    .scroll-tagline {
        position: sticky;
        top: 60px;
        z-index: 35;
    }

    .scroll-tagline.visible {
        display: block;
    }
}

@media (max-width: 480px) {
    header .container {
        padding: 1rem 0.75rem;
    }

    main {
        padding: 1rem 0.75rem 14rem 0.75rem;
    }

    .menu-item {
        padding: 0.75rem;
    }

    .people-selector {
        padding: 1rem;
    }

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

    .item-price {
        font-size: 1rem;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    /* Scroll Tagline Mobile Small */
    .scroll-tagline {
        position: sticky;
        top: 60px;
        z-index: 35;
    }

    .scroll-tagline .container {
        padding: 0.6rem 0.75rem;
    }

    .tagline-text {
        font-size: 12px;
        margin: 0 0 0.3rem 0;
    }

    .tagline-subtitle {
        font-size: 10px;
        line-height: 1.2;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}