:root {
    --primary: #fb5100;
    /* Laranja Premium vibrante */
    --primary-dark: #cc4100;
    --primary-light: #fff0e7;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --text: #1a1a1a;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --border: #e9ecef;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.4;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Header */
header {
    background: var(--bg);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-box {
    background: var(--text);
    color: var(--primary);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    border-radius: 8px;
    letter-spacing: -1px;
}

.logo-text {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 1px;
    display: none;
    /* Mobile hide text to save space */
}

@media (min-width: 480px) {
    .logo-text {
        display: block;
    }
}

.location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.location-info span:first-child {
    font-size: 1.2rem;
    color: var(--primary);
}

.location-text {
    display: flex;
    flex-direction: column;
}

.location-text .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.location-text .address {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.btn-change-addr {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
}

/* User Icon */
.user-icon {
    font-size: 1.4rem;
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    padding: 16px;
    background: var(--bg);
}

.hero-banner {
    background: linear-gradient(135deg, #ea1d2c, #ff4c5a);
    padding: 30px 20px;
    border-radius: var(--radius);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-banner h1 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-banner p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-banner .btn-hero {
    background: #fff;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    border: none;
}

/* Seals */
.seals {
    display: flex;
    overflow-x: auto;
    padding: 16px;
    gap: 16px;
}

.seal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-alt);
    padding: 8px 16px;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Categories Circles (iFood Style) */
.categories {
    display: flex;
    overflow-x: auto;
    padding: 16px;
    gap: 20px;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 70px;
    cursor: pointer;
}

.cat-circle {
    width: 60px;
    height: 60px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.2s;
}

.cat-item:active .cat-circle {
    transform: scale(0.9);
    background: var(--primary-light);
}

.cat-item.active .cat-circle {
    border: 2px solid var(--primary);
    background: var(--primary-light);
}

.cat-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Menu Section */
.menu-section {
    padding: 0 16px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 16px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iFood Card Style */
.card {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.card:hover {
    border-color: #ddd;
    box-shadow: var(--shadow);
}

.card:active {
    transform: scale(0.98);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 8px;
}

.card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #2e7d32;
}

.card-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-alt);
}

/* Sticky Bottom Cart Bar */
.cart-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg);
    padding: 16px;
    border-top: 1px solid var(--border);
    display: none;
    z-index: 1001;
}

.btn-view-cart {
    background: var(--primary);
    color: #fff;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
}

/* Drawers & Modals (Bottom Sheet) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 40px;
    z-index: 2001;
    transition: bottom 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.drawer.open {
    bottom: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.drawer-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-close-drawer {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background: #fdfdfd;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-primary:disabled {
    opacity: 0.5;
}

/* Desktop Drawer Fix */
@media (min-width: 768px) {
    .drawer {
        width: 450px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px;
        bottom: auto;
        top: -100%;
    }

    .drawer.open {
        top: 10%;
        bottom: auto;
    }
}

/* Distancia Microcopy */
.distancia-micro {
    font-size: 0.75rem;
    color: #2e7d32;
    font-weight: 700;
    margin-top: 4px;
}

/* Trust Elements */
.trust-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8fdf9;
    border-radius: 10px;
    border: 1px dashed #c8e6c9;
}

.trust-footer span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Floating Animation for Hero */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

.btn-hero {
    animation: float 3s ease-in-out infinite;
}

/* Card Price Highlighting */
.card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}