/**
 * Chico's Burguer - Alta Conversão
 * Sistema de Design Moderno
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #FF6A00;
    --primary-dark: #e55a00;
    --primary-light: #ff8c33;
    --accent-red: #FA170C;
    --accent-red-dark: #d41309;
    --secondary: #1a1a1a;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --bg-card: #1f1f1f;
    
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    
    --border-color: #333333;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.2s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    padding-bottom: 100px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-secondary);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.store-details {
    display: flex;
    flex-direction: column;
}

.store-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.store-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
}

.status-dot.open {
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary);
}

/* Banner - Mostra imagem 412x275 completa com degradê */
.banner-container {
    width: 100%;
    background: #0f0f0f;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.banner-wrapper {
    position: relative;
    display: inline-block;
}

.banner-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 70%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

.store-banner {
    max-width: 412px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

/* Info Block - Abaixo do Banner */
.info-block {
    background: var(--bg-secondary);
    padding: 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-block-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-tertiary);
}

.info-block-item.info-main {
    background: var(--bg-tertiary);
}

.info-block-item.info-main .info-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.info-block-item.info-promo {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.info-block-item.info-promo .info-text {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--danger);
}

.info-block-item.info-delivery {
    background: var(--bg-tertiary);
}

.info-block-item.info-delivery .info-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-block-item.info-delivery strong {
    color: var(--text-primary);
}

.info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

/* ============================================
   CATEGORIES NAV
   ============================================ */
.categories-nav {
    display: block !important;
    visibility: visible !important;
    background: var(--bg-secondary);
    position: sticky;
    top: 72px;
    z-index: 95;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-height: 52px;
    padding: 0;
}

.categories-scroll {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.category-btn:hover, .category-btn.active {
    background: var(--primary);
    color: var(--text-primary);
}

/* ============================================
   PRODUCTS
   ============================================ */
.products-section {
    padding: 20px 16px 24px;
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.category-section {
    margin-bottom: 16px;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 4px;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 6;
    box-shadow: 0 3px 10px rgba(250, 23, 12, 0.5);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* Watermark - Marca D'água */
.product-card-image .watermark,
.product-modal-image .watermark {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

/* Watermark de texto */
.watermark.watermark-text {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Watermark de imagem */
.watermark.watermark-image {
    background: transparent;
}

.watermark.watermark-image img {
    width: var(--watermark-size, 50px);
    height: auto;
    opacity: var(--watermark-opacity, 0.9);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.watermark.bottom-right {
    bottom: var(--watermark-offset-y, 6px);
    right: var(--watermark-offset-x, 6px);
}

.watermark.bottom-left {
    bottom: var(--watermark-offset-y, 6px);
    left: var(--watermark-offset-x, 6px);
}

.watermark.top-right {
    top: var(--watermark-offset-y, 6px);
    right: var(--watermark-offset-x, 6px);
}

.watermark.top-left {
    top: var(--watermark-offset-y, 6px);
    left: var(--watermark-offset-x, 6px);
}

.product-modal-image {
    position: relative;
}

.product-modal-image .watermark.watermark-text {
    font-size: 0.75rem;
    padding: 5px 10px;
}

.product-modal-image .watermark.watermark-image img {
    width: var(--watermark-modal-size, 70px);
}

.product-modal-image .watermark.bottom-right {
    bottom: var(--watermark-modal-offset-y, 12px);
    right: var(--watermark-modal-offset-x, 12px);
}

.product-modal-image .watermark.bottom-left {
    bottom: var(--watermark-modal-offset-y, 12px);
    left: var(--watermark-modal-offset-x, 12px);
}

.product-modal-image .watermark.top-right {
    top: var(--watermark-modal-offset-y, 12px);
    right: var(--watermark-modal-offset-x, 12px);
}

.product-modal-image .watermark.top-left {
    top: var(--watermark-modal-offset-y, 12px);
    left: var(--watermark-modal-offset-x, 12px);
}

.product-card-content {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin-bottom: 12px;
    margin-top: 4px;
}

.product-card-promo {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-promo i {
    font-size: 0.875rem;
}

.product-card-delivery {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-delivery i {
    font-size: 0.75rem;
}

/* Prova Social - Rating, Bestseller, Recommended */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #FBBF24;
    margin-bottom: 6px;
}

.product-card-rating i {
    font-size: 0.75rem;
}

.product-card-rating span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.product-card-bestseller {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.product-card-bestseller i {
    color: #FF4500;
    font-size: 0.75rem;
}

.product-card-recommended {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--success);
    background: rgba(34, 197, 94, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.product-card-recommended i {
    font-size: 0.75rem;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-price {
    display: flex;
    flex-direction: column;
}

.original-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-red);
}

.btn-add-quick {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(255, 106, 0, 0.35);
}

.btn-add-quick:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.btn-add-quick:active {
    transform: scale(0.95);
}


/* ============================================
   CART BUTTON FIXED
   ============================================ */
.cart-button-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 95;
    max-width: 480px;
    margin: 0 auto;
}

.cart-button-fixed.show {
    background: linear-gradient(transparent, var(--bg-primary) 30%);
    z-index: 100;
}

/* Remover regra CSS que escondia o carrinho - agora é controlado via JS */

.btn-cart {
    width: 100%;
    padding: 16px 20px;
    background: var(--primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-cart:hover {
    background: var(--primary-dark);
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-count {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.cart-total {
    font-size: 1rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 16px;
    overflow-y: auto;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-clear-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-clear-cart:hover {
    background: var(--danger);
    color: white;
}

.btn-clear-cart i {
    font-size: 0.75rem;
}

.btn-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.btn-close:hover {
    background: var(--danger);
    color: white;
}

.btn-back {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--primary);
    color: white;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

@media (max-width: 768px) {
    .modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        max-height: 90vh;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        transform: translateY(100%);
    }
    
    .modal.active .modal-content {
        transform: translateY(0);
    }
    
    .modal-body {
        max-height: calc(90vh - 140px);
    }
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   CHECKOUT PAGE (Route)
   ============================================ */
.checkout-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 2000;
    overflow-y: auto;
}

.checkout-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
}

.checkout-header {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.checkout-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    flex: 1;
    margin: 0;
}

.checkout-content {
    padding: 20px;
}

/* ============================================
   CART MODAL
   ============================================ */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    flex: 1;
}

.btn-remove-item {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-remove-item:hover {
    background: var(--danger);
    color: white;
}

.cart-item-options {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qty {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-qty:hover {
    background: var(--primary);
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-summary {
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
    color: white;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================
   FORMS
   ============================================ */
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 12px;
}

.flex-1 { 
    flex: 1; 
    min-width: 0;
}
.flex-2 { 
    flex: 2; 
    min-width: 0;
}

/* ============================================
   PAYMENT METHODS
   ============================================ */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--primary);
}

.payment-method.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.payment-method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.payment-icon.pix {
    background: #32bcad;
    color: white;
}

.payment-icon.card {
    background: #4f46e5;
    color: white;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    display: block;
}

.payment-discount {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

.payment-installments {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.payment-check {
    color: var(--primary);
    font-size: 1.25rem;
    opacity: 0;
    transition: var(--transition);
}

.payment-method.selected .payment-check {
    opacity: 1;
}

/* Card Form */
.card-form-container {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 24px;
}

/* Order Summary */
.order-summary {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 24px;
}

.order-summary h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.checkout-items-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.checkout-item-qty {
    color: var(--text-muted);
}

.checkout-totals .summary-row {
    font-size: 0.875rem;
}

.discount {
    color: var(--success) !important;
}

/* ============================================
   PIX PAYMENT
   ============================================ */
.pix-payment {
    text-align: center;
}

.pix-payment h3 {
    margin-bottom: 24px;
}

.pix-qrcode-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.pix-qrcode {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: var(--border-radius);
    padding: 16px;
}

.pix-qrcode img {
    width: 100%;
    height: 100%;
}

.pix-copy-paste {
    margin-bottom: 24px;
}

.pix-copy-paste label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.copy-container {
    display: flex;
    gap: 8px;
}

.copy-container input {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.75rem;
}

.btn-copy {
    width: 48px;
    background: var(--primary);
    border-radius: var(--border-radius);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--primary-dark);
}

.pix-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pix-timer i {
    color: var(--warning);
}

.pix-status {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.status-checking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   PAYMENT SUCCESS
   ============================================ */
.payment-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.payment-success h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.payment-success p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.order-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.order-number strong {
    font-size: 1.25rem;
    color: var(--primary);
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal-content {
    max-height: 95vh;
}

.btn-close-product {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
    transition: var(--transition);
}

.btn-close-product:hover {
    background: var(--danger);
}

.product-modal-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-body {
    padding: 20px;
}

.product-modal-body h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.product-price-container .original-price {
    font-size: 1rem;
}

.product-price-container .product-price {
    font-size: 1.5rem;
}

/* Product Options */
.product-options {
    margin-bottom: 24px;
}

.option-group {
    margin-bottom: 20px;
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.option-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.option-required {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--danger);
    color: white;
    border-radius: var(--border-radius-full);
}

.option-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.option-item:hover {
    border-color: var(--primary);
}

.option-item.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.option-item.selected .option-radio {
    border-color: var(--primary);
}

.option-item.selected .option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.option-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.option-item.selected .option-checkbox {
    border-color: var(--primary);
    background: var(--primary);
}

.option-item.selected .option-checkbox::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
}

.option-label {
    flex: 1;
    font-size: 0.875rem;
}

.option-price {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

/* Observations */
.product-observations {
    margin-bottom: 24px;
}

.product-observations label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.product-observations textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    resize: none;
    height: 80px;
}

.product-observations textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.quantity-selector .btn-qty {
    width: 32px;
    height: 32px;
}

#product-qty {
    font-size: 1.125rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.btn-add-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-modal-content {
    max-height: 80vh;
}

.search-header {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.search-header input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-header input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-results {
    padding: 16px;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* ============================================
   WELCOME POPUP
   ============================================ */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInPopup 1.5s ease;
}

@keyframes fadeInPopup {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.welcome-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.welcome-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: transparent;
    overflow: hidden;
    animation: popupBlink 2s ease-in-out;
}

@keyframes popupBlink {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 0.5; transform: scale(0.95); }
    70% { opacity: 1; transform: scale(1.02); }
    85% { opacity: 0.9; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.popup-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

@media (max-width: 768px) {
    .welcome-popup-content {
        max-width: 95%;
    }
    
    .popup-image {
        max-height: 80vh;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
}

/* ============================================
   CHECKOUT STEPS
   ============================================ */
.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.checkout-step h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
}

.checkout-step h3 i {
    color: var(--primary);
}

.checkout-step .btn-primary {
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 380px) {
    .product-card-image {
        width: 100px;
        height: 100px;
    }
    
    .product-card-name {
        font-size: 0.875rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}
