:root {
    /* Premium Color Palette */
    --primary: #9d174d;
    --primary-light: #fdf2f8;
    --secondary: #166534;
    --accent: #fbbf24;
    --bg-light: #fafaf9;
    --card-bg: #ffffff;
    --text-dark: #1e1b4b;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

button, a, .category-card, .menu-item, .add-btn, .qty-btn, .remove-item-btn {
    touch-action: manipulation; /* Remove atraso de 300ms no touch */
}

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

body {
    font-family: 'Outfit', 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.light-theme {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    touch-action: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* ==================== NAVBAR ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    will-change: padding;
}

header.scrolled {
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    max-width: 95%;
    width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

header.scrolled .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    transform: scale(0.98);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.navbar-logo {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.brand-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name span:first-child {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.brand-name .highlight {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    line-height: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:active {
    background: var(--primary-light);
    color: var(--primary);
    transform: scale(0.95);
}

@media (hover: hover) {
    .nav-links a:hover {
        background: var(--primary-light);
        color: var(--primary);
    }
}

.cart-btn {
    background: var(--primary);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.cart-btn:active {
    transform: scale(0.9);
    box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
    .cart-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
}

#cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #c170f3 url('hero_acai_bowl.jpg') center/cover no-repeat;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(15, 23, 42, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px !important;
    padding: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.highlight-text {
    color: #ffd700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled i {
    color: #94a3b8 !important;
}

.btn:active {
    transform: scale(0.96);
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(157, 23, 77, 0.4);
}

.secondary-btn {
    background: white;
    box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

@media (hover: hover) {
    .primary-btn:hover {
        background: var(--text-dark);
        transform: translateY(-2px);
        box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.4);
    }

    .secondary-btn:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
    }
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* ==================== CATEGORIES ==================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--card-bg);
    padding: 1.75rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.category-card i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
    transition: var(--transition);
}

.category-card span {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.category-card:active {
    transform: scale(0.95);
    background: var(--primary-light);
}

@media (hover: hover) {
    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }
}

.category-card.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.02);
}

.category-card.active i,
.category-card.active span {
    color: white;
}

/* ==================== MENU ==================== */
.menu-category-section {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--primary-light);
    display: inline-block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.menu-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

@media (hover: hover) {
    .menu-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .menu-item:hover img {
        transform: scale(1.05);
    }
}

.menu-info {
    padding: 20px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.menu-info h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-icon {
    color: var(--primary);
    opacity: 0.7;
    font-size: 1rem;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.add-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

@media (hover: hover) {
    .add-btn:hover {
        background: var(--secondary);
        transform: scale(1.03);
    }
}

.add-btn:active {
    transform: scale(0.95);
}

/* ==================== MODAL SYSTEM ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.modal.modal-visible {
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background: white;
    width: 95%;
    max-width: 700px;
    padding: 30px;
    border-radius: 24px;
    position: relative;
    max-height: 85vh;
    max-height: 85dvh; /* Protege contra as barras do navegador mobile ocultando coisas no fundo */
    overflow-y: auto;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    -webkit-overflow-scrolling: touch;
}

.modal.modal-visible .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* ==================== TOPPING MODAL ==================== */
.topping-modal-content {
    padding: 20px;
    overflow: hidden; /* Fix bug do mobile esconter botão */
}

/* Impede que o botão e os textos sejam esmagados (altura zero) e sumam no celular */
.topping-modal-content > button,
.topping-modal-content > h2,
.topping-modal-content > p {
    flex-shrink: 0;
}

.topping-categories-container {
    overflow-y: auto;
    padding-right: 10px;
    flex-grow: 1;
    min-height: 0; /* Permitir flex child shrink para scroll */
    -webkit-overflow-scrolling: touch;
}

.topping-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.topping-section:last-child {
    border-bottom: none;
}

.topping-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary);
    position: sticky;
    top: 0;
    background: white;
    padding: 5px 0;
    z-index: 5;
}

.topping-section h3 small {
    font-weight: 400;
    color: var(--text-dark);
    opacity: 0.6;
    font-size: 0.8rem;
}

.topping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.topping-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fdf2f8;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    min-height: 44px;
}

.topping-item:hover {
    background: var(--primary-light);
}

.topping-item:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.topping-item input:checked+span {
    font-weight: 700;
    color: var(--primary);
}

.topping-item input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.obs-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: #f9fafb;
    resize: vertical;
    min-height: 50px;
    max-height: 120px;
    transition: var(--transition-fast);
}

.obs-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.obs-textarea::placeholder {
    color: #94a3b8;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: var(--transition-fast);
    z-index: 5;
    touch-action: manipulation;
}

.close-btn:active {
    background: #e2e8f0;
    transform: scale(0.9);
}

@media (hover: hover) {
    .close-btn:hover {
        background: #e2e8f0;
    }
}

.close-topping-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: var(--transition-fast);
    touch-action: manipulation;
}

.close-topping-btn:active {
    background: #e2e8f0;
    transform: scale(0.9);
}

@media (hover: hover) {
    .close-topping-btn:hover {
        background: #e2e8f0;
    }
}

/* ==================== CART MODAL ==================== */
#cart-items-list {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-info {
    flex-grow: 1;
    min-width: 0;
}

.cart-item-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
}

.selections-text {
    color: #666;
    line-height: 1.3;
    word-break: break-word;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.qty-btn:active {
    background: var(--primary);
    color: white;
    transform: scale(0.9);
}

@media (hover: hover) {
    .qty-btn:hover {
        background: var(--primary);
        color: white;
    }
}

.qty-value {
    font-weight: 600;
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 10px;
    padding: 8px;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.remove-item-btn:active {
    color: #b91c1c;
    transform: scale(0.9);
}

@media (hover: hover) {
    .remove-item-btn:hover {
        color: #d32f2f;
    }
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-empty-msg {
    text-align: center;
    padding: 30px;
    opacity: 0.6;
}

.shipping-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: #f9fafb;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 44px;
}

.shipping-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.payment-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 8px;
    gap: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #f8fafc;
}

.payment-option-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    top: 0;
    left: 0;
}

.payment-option-card i {
    font-size: 1.4rem;
    color: #64748b;
    transition: var(--transition-fast);
}

.payment-option-card span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    transition: var(--transition-fast);
}

.payment-option-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.payment-option-card:has(input:checked) {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 23, 77, 0.15);
}

.payment-option-card:has(input:checked) i,
.payment-option-card:has(input:checked) span {
    color: var(--primary);
}

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

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* ==================== VIBE SECTION ==================== */
.vibe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    padding: 60px 0;
}

.text-left {
    text-align: left !important;
}

.rounded-image {
    width: 100%;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    object-fit: cover;
}

.shadow-premium {
    box-shadow: var(--shadow-lg);
}

.vibe-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.vibe-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    top: 20px;
    left: 20px;
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.1;
}

.vibe-image:hover .rounded-image {
    transform: translateY(-10px);
}

.vibe-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.vibe-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==================== QUOTE ==================== */
.quote-section {
    padding: 60px 20px;
    margin: 40px auto 80px;
    max-width: 900px;
    text-align: center;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid rgba(157, 23, 77, 0.1);
}

.motivational-quote {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.motivational-quote .highlight {
    color: var(--primary);
}

.motivational-quote::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
    z-index: -1;
    line-height: 1;
}

/* ==================== FOOTER ==================== */
footer {
    background: #0f172a;
    color: #f8fafc;
    padding: 80px 0 0 0;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.footer-logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
}

.footer-logo-text span {
    color: var(--primary);
}

.footer-info p {
    color: #cbd5e1;
    max-width: 320px;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-location h4,
.footer-hours h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-location h4::after,
.footer-hours h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-location p,
.footer-hours p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.footer-location i,
.footer-hours i {
    color: var(--primary);
    margin-top: 5px;
    font-size: 1.1rem;
}

.footer-bottom {
    background: #020617;
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== MOBILE NAV ==================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1500;
    padding: 10px 0 calc(10px + var(--safe-bottom));
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    transition: color 0.2s ease;
    padding: 4px 12px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

.mobile-nav-item:active i {
    transform: scale(0.85);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active i {
    transform: scale(1.1);
}

/* ==================== CART FAB ==================== */
.cart-fab {
    display: none;
    position: fixed;
    bottom: calc(75px + var(--safe-bottom));
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(157, 23, 77, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.cart-fab:active {
    transform: scale(0.9);
}

.cart-fab.pulse {
    animation: fabPulse 0.4s ease;
}

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

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 380px;
}

.toast {
    background: #1e293b;
    color: white;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    opacity: 0;
    animation: toastIn 0.35s ease forwards;
    pointer-events: auto;
}

.toast.toast-success {
    background: linear-gradient(135deg, #166534, #15803d);
}

.toast.toast-error {
    background: linear-gradient(135deg, #991b1b, #dc2626);
}

.toast.toast-info {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* ==================== DELIVERY MODAL ==================== */
.delivery-modal-content {
    background: white;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 450px;
    border-radius: 16px;
}

.close-delivery-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.close-delivery-btn:hover {
    background: #e2e8f0;
}

.del-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    padding: 20px;
    border-bottom: 1px dashed #e2e8f0;
    margin: 0;
}

.del-subtitle {
    padding: 20px 20px 0;
    font-size: 0.95rem;
    color: #475569;
    text-align: center;
    margin-bottom: 15px;
}

.del-options {
    padding: 10px 20px 20px;
}

.del-option {
    display: flex;
    align-items: center;
    padding: 18px 15px;
    border-bottom: 1px dashed #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 12px;
    margin-bottom: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.del-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.del-option:hover,
.del-option:active {
    background: #f8fafc;
}

.del-option i {
    font-size: 1.5rem;
    color: #64748b;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.del-opt-text {
    display: flex;
    flex-direction: column;
}

.del-opt-text strong {
    font-size: 1rem;
    color: #1e293b;
}

.del-opt-text span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.cep-input-group {
    padding: 0 20px 20px;
    text-align: center;
}

#cep-input {
    font-size: 2rem;
    color: #1e293b;
    border: none;
    text-align: center;
    width: 100%;
    outline: none;
    letter-spacing: 4px;
    font-weight: 600;
    font-family: inherit;
}

#cep-input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.cep-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.address-form {
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group.flex-1 {
    flex: 1;
}

.form-group.flex-2 {
    flex: 2;
}

.form-group label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    color: #1e293b;
    font-family: inherit;
    min-height: 44px;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(157, 23, 77, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
}

.del-step-actions {
    padding: 15px 20px;
    margin-top: auto;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-outline:active {
    transform: scale(0.97);
    background: #f1f5f9;
}

.btn-black {
    background: var(--primary);
    color: white;
    border: none;
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 4px 12px rgba(157, 23, 77, 0.3);
}

.btn-black:active {
    transform: scale(0.97);
}

.delivery-calc-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    margin: 15px 0;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.delivery-calc-btn:active {
    transform: scale(0.98);
    background: #f1f5f9;
}

.delivery-calc-btn i:first-child {
    color: #64748b;
    font-size: 1.2rem;
}

.chevron-icon {
    margin-left: auto;
    color: #0f172a;
}

/* ==================== RESPONSIVE: 992px ==================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-info p,
    .footer-location p,
    .footer-hours p {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        text-align: center;
    }

    .footer-location h4::after,
    .footer-hours h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

/* ==================== RESPONSIVE: 768px (TABLET / MOBILE) ==================== */
@media (max-width: 768px) {
    header {
        padding: 8px 0;
    }

    .navbar {
        width: 95%;
        padding: 8px 16px;
    }

    .brand-name span:first-child {
        font-size: 0.95rem;
    }

    .brand-name .highlight {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .nav-links {
        display: none;
    }

    .cart-btn {
        width: 40px;
        height: 40px;
    }

    .hero {
        min-height: 100dvh;
    }

    .hero-content {
        padding: 15px;
        transform: translateY(-40px);
    }

    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .section {
        padding: 50px 15px;
    }

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

    .container {
        padding: 0 1rem;
    }

    /* Category horizontal scroll */
    .category-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-grid::-webkit-scrollbar {
        display: none;
    }

    .category-card {
        flex: 0 0 calc(30% - 6px);
        scroll-snap-align: start;
        padding: 14px 8px;
        border-radius: 16px;
    }

    .category-card i {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .category-card span {
        font-size: 0.7rem;
    }

    /* Menu items */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .menu-item {
        padding: 0;
        border-radius: 16px;
    }

    .menu-item:hover {
        transform: none;
    }

    .menu-info {
        padding: 16px;
    }

    .add-btn {
        width: 100%;
        margin-top: 12px;
        padding: 14px;
        font-size: 1rem;
        border-radius: 12px;
    }

    /* Vibe section */
    .vibe-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .vibe-grid .text-left {
        text-align: center !important;
    }

    /* Quote */
    .quote-section {
        padding: 30px 15px;
        margin: 20px 15px 60px;
    }

    .motivational-quote {
        font-size: 1.3rem;
    }

    .motivational-quote::before {
        font-size: 5rem;
        top: -20px;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 12px;
    }

    .cep-input-group {
        padding: 0 10px 15px;
    }

    #cep-input {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-grid {
        gap: 30px;
    }

    footer {
        padding-bottom: calc(100px + var(--safe-bottom)) !important;
    }

    /* Cart modal — full screen on mobile */
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 20px;
        transform: translateY(100%);
        opacity: 1;
    }

    .modal.modal-visible .modal-content {
        transform: translateY(0);
    }

    #cart-items-list {
        max-height: none;
        flex: 1;
        min-height: 0;
    }

    .topping-modal-content {
        padding: 15px;
    }

    .topping-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .topping-item {
        padding: 10px;
        font-size: 0.8rem;
    }

    /* Show mobile nav and FAB */
    .mobile-nav,
    .cart-fab {
        display: flex;
    }

    .toast-container {
        top: auto;
        bottom: calc(80px + var(--safe-bottom));
    }
}

/* ==================== RESPONSIVE: 480px (SMALL PHONES) ==================== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .category-card {
        flex: 0 0 calc(33.33% - 7px);
    }

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

    /* Delivery modal — full screen */
    .delivery-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
    }

    #del-step-3 {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    #del-step-3[style*="display: none"] {
        display: none !important;
    }

    #del-step-3 .address-form {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .del-step-actions {
        flex-shrink: 0;
        background: white;
        padding: 15px 20px calc(15px + var(--safe-bottom));
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #e2e8f0;
    }
}

/* ==================== PERFORMANCE & TOUCH ==================== */
.btn,
.category-card,
.add-btn,
.cart-fab,
.mobile-nav-item,
.del-option,
.close-btn,
.close-topping-btn,
.close-delivery-btn,
.qty-btn,
.remove-item-btn,
.topping-item {
    -webkit-tap-highlight-color: transparent;
}

/* GPU-accelerated for smooth animations */
.modal-content,
.cart-fab,
.navbar,
.hero-content {
    will-change: transform;
}

/* Smooth scrolling for iOS */
.topping-categories-container,
#cart-items-list,
.address-form,
.category-grid {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}