/* ============================================
   PDV MALATONET - ESTILOS OTIMIZADOS v2.0
   ============================================ */

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #86efac;
    --accent: #0ea5e9;
    --warning: #f59e0b;
    --danger: #ef4444;
    --success: #22c55e;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --header-height: 60px;
    --bottom-bar-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.5;
    padding-top: calc(var(--header-height) + var(--safe-top));
    padding-bottom: calc(var(--bottom-bar-height) + var(--safe-bottom) + 16px);
    overflow-x: hidden;
}

.app-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding-top: var(--safe-top);
    height: calc(var(--header-height) + var(--safe-top));
}
.header-content {
    max-width: 768px; margin: 0 auto; padding: 0 16px;
    height: var(--header-height); display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 20px; box-shadow: var(--shadow);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.2; }
.brand-tagline { font-size: 11px; color: var(--text-secondary); font-weight: 500; }

.search-box { flex: 1; position: relative; max-width: 400px; }
.search-input {
    width: 100%; height: 40px; border-radius: 20px;
    border: 1px solid var(--border); background: var(--surface-2);
    padding: 0 16px 0 40px; font-size: 14px; font-weight: 500;
    color: var(--text); outline: none; transition: all 0.2s;
}
.search-input:focus {
    background: var(--surface); border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}
.search-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); font-size: 16px;
    color: var(--text-muted); pointer-events: none;
}
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn {
    width: 40px; height: 40px; border-radius: var(--radius);
    border: none; background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer; transition: all 0.2s; position: relative;
}
.icon-btn:active { transform: scale(0.95); background: var(--border); }
.icon-btn .badge {
    position: absolute; top: -2px; right: -2px;
    min-width: 18px; height: 18px; border-radius: 9px;
    background: var(--danger); color: white;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px; border: 2px solid white;
}

.container { max-width: 768px; margin: 0 auto; padding: 16px; }

/* Hero */
.hero-section { margin-bottom: 18px; }
.hero-banner {
    position: relative; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #166534 100%);
    min-height: 228px; color: white; box-shadow: var(--shadow-lg);
    isolation: isolate; cursor: pointer;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 0.7s ease, transform 7s ease;
    transform: scale(1.02); pointer-events: none;
}
.hero-slide.active { opacity: 1; transform: scale(1.08); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.92); }
.hero-slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.10) 0%, rgba(15,23,42,0.18) 48%, rgba(15,23,42,0.78) 100%);
}
.hero-inner {
    position: relative; z-index: 1; min-height: 228px; padding: 16px;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(180deg, rgba(15,23,42,0.04) 0%, rgba(15,23,42,0.12) 36%, rgba(15,23,42,0.72) 100%);
}
.hero-topline {
    position: absolute; top: 14px; left: 14px; right: 14px;
    display: flex; justify-content: flex-start; align-items: center; gap: 10px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(15, 23, 42, 0.42); backdrop-filter: blur(10px);
    padding: 8px 12px; border-radius: 999px;
    font-size: 10px; font-weight: 800; width: fit-content;
    letter-spacing: .04em; text-transform: uppercase;
}
.hero-badge::before {
    content: ''; width: 8px; height: 8px;
    background: #4ade80; border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}
.hero-content { margin-top: auto; max-width: 88%; }
.hero-title {
    font-size: 18px; font-weight: 900; line-height: 1.28; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-shadow: 0 2px 10px rgba(0,0,0,0.32);
}
.hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-price-badge {
    display: inline-flex; align-items: center; min-height: 34px;
    padding: 0 13px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.95); color: #166534;
    font-size: 15px; font-weight: 900; box-shadow: var(--shadow);
}
.hero-dots { display: flex; gap: 7px; margin-top: 12px; }
.hero-dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255,255,255,0.45); border: none; padding: 0;
    cursor: pointer; transition: transform 0.2s ease, background 0.2s ease;
}
.hero-dot.active { background: #fff; transform: scale(1.25); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: var(--radius);
    font-size: 14px; font-weight: 700; border: none;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: white; color: var(--primary-dark); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255, 255, 255, 0.15); color: white; border: 1px solid rgba(255, 255, 255, 0.3); }

/* Status Bar */
.status-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.status-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm);
}
.status-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.status-value { font-size: 24px; font-weight: 800; color: var(--text); }
.status-card.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border-color: transparent;
}
.status-card.highlight .status-label, .status-card.highlight .status-value { color: white; }
.frete-progress { margin-top: 12px; }
.progress-bar { height: 6px; background: rgba(255, 255, 255, 0.3); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: white; border-radius: 3px; transition: width 0.5s ease; }
.progress-text { font-size: 11px; margin-top: 6px; opacity: 0.9; }

/* Categorias */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 18px; font-weight: 800; color: var(--text); }
.section-action { font-size: 13px; color: var(--primary); font-weight: 700; text-decoration: none; }
.categories-section { margin-bottom: 20px; }
.category-trigger {
    width: 100%; min-height: 52px; border-radius: 16px;
    border: 1px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 0 16px; box-shadow: var(--shadow-sm); cursor: pointer;
}
.category-trigger-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.category-trigger-icon {
    width: 36px; height: 36px; border-radius: 12px;
    background: #ecfdf3; display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.category-trigger-text { min-width: 0; text-align: left; }
.category-trigger-label { display: block; font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.category-trigger-value { display: block; font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.category-trigger-arrow { font-size: 18px; color: var(--text-secondary); transition: transform 0.25s ease; flex-shrink: 0; }
.categories-section.open .category-trigger-arrow { transform: rotate(180deg); }
.categories-dropdown {
    margin-top: 10px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; display: none;
}
.categories-section.open .categories-dropdown { display: block; }
.category-list { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.category-item {
    min-height: 48px; border-radius: 14px; border: 1px solid transparent;
    background: transparent; display: flex; align-items: center; gap: 12px;
    padding: 0 12px; text-decoration: none; color: var(--text);
    font-size: 14px; font-weight: 700;
}
.category-item:active { transform: scale(0.99); }
.category-item.active { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.category-item-icon { width: 34px; height: 34px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.category-item.active .category-item-icon { background: #dcfce7; }

/* Destaque GRA013 */
.hero-banner.featured-gra013 {
    background: linear-gradient(135deg, #7f1d1d 0%, #be123c 46%, #f97316 100%);
    box-shadow: 0 18px 35px rgba(190, 18, 60, 0.28); border: 1px solid rgba(255,255,255,0.28);
}
.hero-banner.featured-gra013::before {
    content: ''; position: absolute; inset: -40%;
    background: radial-gradient(circle, rgba(255,255,255,0.28) 0%, transparent 38%);
    transform: translate(-30%, -30%); z-index: 0; pointer-events: none;
}
.hero-banner.featured-gra013 .hero-inner { background: linear-gradient(90deg, rgba(15,23,42,0.74) 0%, rgba(15,23,42,0.30) 48%, rgba(15,23,42,0.78) 100%); }
.hero-banner.featured-gra013 .hero-content { max-width: 65%; }
.hero-banner.featured-gra013 .hero-title { font-size: 22px; }
.hero-banner.featured-gra013 .hero-price-badge { background: #fff; color: #be123c; box-shadow: 0 10px 22px rgba(0,0,0,0.22); }
.hero-cta-mini {
    display: inline-flex; align-items: center; justify-content: center;
    width: fit-content; margin-top: 4px; padding: 9px 14px; border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #fb923c); color: #7f1d1d;
    font-size: 12px; font-weight: 900; box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}
.product-card.destaque-gra013 {
    border: 2px solid #ef4444; box-shadow: 0 14px 32px rgba(239, 68, 68, 0.30);
    transform: scale(1.03); z-index: 2; animation: pulseDestaqueGra013 2s infinite;
}
.product-card.destaque-gra013::before {
    content: '🔥 DESTAQUE'; position: absolute; top: 10px; right: -12px;
    background: linear-gradient(135deg, #ef4444, #be123c); color: #fff;
    font-size: 11px; font-weight: 900; padding: 6px 11px; border-radius: 999px;
    transform: rotate(10deg); z-index: 4; box-shadow: 0 8px 18px rgba(190,18,60,0.30);
}
.product-card.destaque-gra013 .product-image-wrap::after {
    content: 'Clique para comprar'; position: absolute; left: 10px; bottom: 10px;
    padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.94);
    color: #be123c; font-size: 11px; font-weight: 900; box-shadow: var(--shadow);
}
.product-card.destaque-gra013 .quick-add-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.48);
}
@keyframes pulseDestaqueGra013 {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55), 0 14px 32px rgba(239,68,68,0.30); }
    70% { box-shadow: 0 0 0 12px rgba(239,68,68,0), 0 14px 32px rgba(239,68,68,0.30); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0), 0 14px 32px rgba(239,68,68,0.30); }
}
@media (max-width: 430px) {
    .hero-banner.featured-gra013 .hero-content { max-width: 72%; }
    .hero-banner.featured-gra013 .hero-title { font-size: 17px; }
}

/* Grid de Produtos */
.products-section { margin-bottom: 24px; }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column;
    transition: all 0.2s; position: relative;
}
.product-card:active { transform: scale(0.98); box-shadow: var(--shadow-lg); }
.product-image-wrap { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:active .product-image { transform: scale(1.05); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.badge { height: 24px; padding: 0 10px; border-radius: 12px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 4px; width: fit-content; }
.badge-hot { background: linear-gradient(135deg, #f59e0b, #ea580c); color: white; }
.badge-shipping { background: var(--surface); color: var(--success); border: 1px solid var(--border); }
.quick-add-btn {
    position: absolute; bottom: 12px; right: 12px;
    width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--primary); color: white; border: none;
    font-size: 24px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-lg); transition: all 0.2s;
}
.quick-add-btn:active { transform: scale(0.9); background: var(--primary-dark); }
.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.product-rating { display: flex; align-items: center; gap: 4px; color: #f59e0b; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.product-price-wrap { margin-top: auto; }
.product-old-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.product-price { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1; }
.product-stock { font-size: 12px; color: var(--success); font-weight: 600; margin-top: 4px; }
.product-stock.low { color: var(--warning); }
.product-stock.out { color: var(--danger); }

/* Paginação */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: 14px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 14px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { opacity: .45; }

/* Empty State */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-secondary); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

/* Bottom Navigation */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding-bottom: var(--safe-bottom);
    height: calc(var(--bottom-bar-height) + var(--safe-bottom));
}
.bottom-nav-content {
    max-width: 768px; margin: 0 auto; padding: 12px 16px;
    display: flex; align-items: center; gap: 12px; height: var(--bottom-bar-height);
}
.cart-preview {
    flex: 1; display: flex; align-items: center; gap: 12px;
    padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius);
    cursor: pointer;
}
.cart-icon {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; position: relative; flex-shrink: 0;
}
.cart-icon .count {
    position: absolute; top: -4px; right: -4px;
    min-width: 20px; height: 20px; border-radius: 10px;
    background: var(--danger); color: white;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}
.cart-info { flex: 1; min-width: 0; }
.cart-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.cart-total { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1; }
.btn-checkout {
    height: 48px; padding: 0 24px; background: var(--primary); color: white;
    border-radius: var(--radius); font-size: 15px; font-weight: 700;
    border: none; cursor: pointer; white-space: nowrap;
    box-shadow: var(--shadow); transition: all 0.2s;
}
.btn-checkout:active { transform: scale(0.98); background: var(--primary-dark); }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: all 0.3s;
    display: flex; align-items: flex-end; justify-content: center;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-sheet {
    width: 100%; max-width: 640px; max-height: 90vh;
    background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; overflow: hidden;
}
.modal-overlay.active .modal-sheet { transform: translateY(0); }
.modal-header {
    padding: 20px; border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 8px auto; }
.modal-title-group { flex: 1; }
.modal-kicker { font-size: 12px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.modal-title { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.3; }
.modal-close {
    width: 40px; height: 40px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface-2);
    color: var(--text-secondary); font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
}
.modal-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.modal-product-hero { display: flex; gap: 16px; }
.modal-image { width: 120px; height: 120px; border-radius: var(--radius-lg); object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.modal-product-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.modal-price-large { font-size: 32px; font-weight: 900; color: var(--primary); line-height: 1; }
.modal-description { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.modal-section { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.modal-section-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.detail-value { font-size: 14px; font-weight: 700; color: var(--text); }
.frete-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.form-input, .form-select {
    height: 48px; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--surface); padding: 0 14px; font-size: 15px; font-weight: 600;
    color: var(--text); outline: none; width: 100%;
}
.form-input:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1); }
.quantity-section { background: var(--surface-2); border-radius: var(--radius-lg); padding: 16px; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quantity-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.quantity-control { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 4px; border: 1px solid var(--border); }
.qty-btn { width: 44px; height: 44px; border-radius: var(--radius-sm); border: none; background: var(--surface-2); color: var(--text); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.qty-btn:active { background: var(--border); }
.qty-input { width: 60px; text-align: center; border: none; background: transparent; font-size: 18px; font-weight: 800; color: var(--text); outline: none; }
.quantity-total { text-align: right; }
.quantity-total-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.quantity-total-value { font-size: 24px; font-weight: 900; color: var(--text); }
.modal-footer { padding: 16px 20px calc(16px + var(--safe-bottom)); border-top: 1px solid var(--border); background: var(--surface); display: flex; gap: 12px; }
.btn-block { flex: 1; height: 56px; border-radius: var(--radius); font-size: 16px; font-weight: 800; }

/* Toast */
.toast {
    position: fixed; top: calc(var(--header-height) + var(--safe-top) + 16px); left: 50%;
    transform: translateX(-50%) translateY(-100px); background: var(--text); color: white;
    padding: 14px 24px; border-radius: var(--radius-lg); font-size: 14px; font-weight: 700;
    box-shadow: var(--shadow-xl); z-index: 300; opacity: 0; transition: all 0.3s;
    pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* WhatsApp Float */
.wa-float {
    position: fixed; right: 16px;
    bottom: calc(var(--bottom-bar-height) + var(--safe-bottom) + 16px);
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: var(--shadow-xl); z-index: 90;
    text-decoration: none; transition: transform 0.2s;
}
.wa-float:active { transform: scale(0.9); }

/* Drawer */
.drawer-overlay {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.drawer-overlay.active { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
    background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh; display: flex; flex-direction: column;
}
.drawer.active { transform: translateY(0); }
.drawer-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-title { font-size: 18px; font-weight: 800; color: var(--text); }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; gap: 12px; padding: 12px; background: var(--surface-2); border-radius: var(--radius); align-items: center; }
.cart-item-image { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--border); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 13px; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; }
.cart-qty-btn { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cart-qty { width: 40px; text-align: center; font-size: 15px; font-weight: 700; border: none; background: transparent; }
.cart-remove { width: 32px; height: 32px; border-radius: var(--radius-sm); border: none; background: #fee2e2; color: var(--danger); font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer-footer { padding: 16px 20px calc(16px + var(--safe-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.drawer-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-total-label { font-size: 16px; font-weight: 700; color: var(--text-secondary); }
.drawer-total-value { font-size: 28px; font-weight: 900; color: var(--text); }

/* Animações */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-slide-up { animation: slideUp 0.5s ease-out; }

/* Responsividade */
@media (max-width: 380px) {
    .hero-content { max-width: 88%; }
    .hero-banner, .hero-inner { min-height: 164px; }
    .products-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 20px; }
    .status-bar { grid-template-columns: 1fr; }
}

/* Utilitários */
.hidden { display: none !important; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
    background-size: 200% 100%; animation: skeleton 1.5s infinite;
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
