/**
 * Mercadinho Bom Demais - Estilos CSS Premium
 * Supermercado de Bairro - Vila Nova, Três Lagoas - MS
 * Interface Premium para PC e Mobile - 2025
 */

/* ===== IMPORTAR GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ===== VARIÁVEIS CSS PREMIUM ===== */
:root {
    /* Cores Primárias - Verde Mercado (frescor e qualidade) */
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-darker: #145214;
    --primary-light: #4CAF50;
    --primary-lighter: #81C784;
    --primary-50: #E8F5E9;
    --primary-100: #C8E6C9;
    
    /* Gradientes Premium - Verde Mercado */
    --gradient-primary: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    --gradient-hero: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #4CAF50 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    --gradient-dark: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    
    /* Secondary - Laranja Ofertas (energia e promoções) */
    --secondary: #FF6F00;
    --secondary-dark: #E65100;
    --secondary-light: #FF9800;
    --secondary-50: #FFF3E0;
    
    /* Accent - Amarelo Destaque (alegria e destaque) */
    --accent: #FFC107;
    --accent-dark: #FFA000;
    --accent-light: #FFCA28;
    
    /* Cores Neutras */
    --white: #ffffff;
    --light: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --dark: #0f172a;
    
    /* Estados com Light variants */
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Sombras Premium - Layered */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.08), 0 30px 60px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 4px 14px rgba(46, 125, 50, 0.4);
    --shadow-success: 0 4px 14px rgba(76, 175, 80, 0.4);
    --shadow-accent: 0 4px 14px rgba(255, 111, 0, 0.4);
    
    /* Bordas */
    --radius-xs: 0.25rem;
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transições Premium */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Tipografia */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', var(--font-sans);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== BOTÕES PREMIUM ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: var(--shadow-success);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-lg);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== HEADER PREMIUM ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-top {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.625rem 0;
    font-size: 0.8125rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 1.5rem;
}

.header-contact a,
.header-contact span {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.header-contact a:hover {
    color: var(--white);
}

.header-main {
    padding: 1rem 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo Premium */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap;
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.logo span {
    color: var(--secondary);
}

/* Search Bar Premium - Versão Profissional */
.search-bar {
    flex: 1;
    max-width: 650px;
    position: relative;
}

.search-bar form {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-bar form:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-bar form:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15), 0 0 0 4px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.search-bar input {
    flex: 1;
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3.25rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.search-bar input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Ícone de busca dentro do input */
.search-bar form::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 1.25rem;
    color: #94a3b8;
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 1;
}

.search-bar form:focus-within::before {
    color: var(--primary);
}

.search-bar button {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    margin: 4px;
    border-radius: 50px;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.search-bar button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transform: scale(1.02);
}

.search-bar button:active {
    transform: scale(0.98);
}

.search-bar button i {
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 500;
    min-width: 4.5rem;
    transition: var(--transition);
    position: relative;
}

.header-action:hover {
    background: var(--primary-50);
    color: var(--primary);
    transform: translateY(-2px);
}

.header-action-icon {
    font-size: 1.375rem;
    transition: var(--transition);
}

.header-action:hover .header-action-icon {
    transform: scale(1.1);
}

.cart-count {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -0.375rem;
    right: 0.375rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.375rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navbar Premium */
.navbar {
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav-menu {
    display: flex;
    gap: 0.375rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40%;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.nav-link.active::after {
    display: none;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.mobile-toggle:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.mobile-toggle.active {
    background: var(--primary);
    color: var(--white);
}

/* ===== MOBILE MENU DRAWER ===== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    box-shadow: var(--shadow-2xl);
    z-index: 1001;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--gradient-primary);
    color: var(--white);
}

.mobile-menu-header .logo {
    color: var(--white);
    font-size: 1.25rem;
}

.mobile-menu-header .logo-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-user {
    padding: 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.mobile-menu-user-info {
    flex: 1;
}

.mobile-menu-user-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.125rem;
}

.mobile-menu-user-email {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-nav {
    list-style: none;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-menu-link i {
    width: 24px;
    text-align: center;
    color: var(--gray-400);
    font-size: 1.125rem;
    transition: var(--transition);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--primary-50);
    color: var(--primary);
}

.mobile-menu-link:hover i,
.mobile-menu-link.active i {
    color: var(--primary);
}

.mobile-menu-link.active {
    border-left: 3px solid var(--primary);
}

.mobile-menu-badge {
    margin-left: auto;
    background: var(--danger);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

.mobile-menu-divider {
    height: 8px;
    background: var(--gray-100);
    margin: 0.5rem 0;
}

.mobile-menu-section-title {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
}

.mobile-menu-footer {
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.mobile-menu-footer .btn {
    width: 100%;
}

/* ===== HERO PREMIUM ===== */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom right, transparent 49%, var(--gray-50) 50%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-title span {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1875rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: hero-float 4s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* ===== SECTIONS PREMIUM ===== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.875rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== PRODUCTS PREMIUM ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.featured {
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.product-badge.sale {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.product-image {
    height: 260px;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.03));
    pointer-events: none;
}

.product-image img {
    max-height: 200px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-image-placeholder {
    font-size: 5rem;
    color: var(--gray-200);
    opacity: 0.5;
}

.product-actions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    opacity: 0;
    transform: translateY(1rem);
    transition: var(--transition);
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Always show actions on touch devices */
@media (hover: none) {
    .product-actions-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
        padding: 1rem;
    }
}

.product-action-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-action-btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: var(--shadow-primary);
}

.product-action-btn.active {
    background: var(--danger);
    color: var(--white);
}

.product-info {
    padding: 1.375rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.625rem;
}

.product-name {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-name a {
    transition: var(--transition);
}

.product-name a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.product-rating .stars {
    color: var(--accent);
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.product-rating .count {
    font-size: 0.8125rem;
    color: var(--gray-400);
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.price-current {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-old {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 0.9375rem;
}

.price-discount {
    background: var(--danger-light);
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
}

.product-stock {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.product-stock i {
    font-size: 0.625rem;
}

.product-stock.in-stock {
    background: var(--success-light);
    color: var(--success);
}

.product-stock.low-stock {
    background: var(--warning-light);
    color: #b45309;
}

.product-stock.out-of-stock {
    background: var(--danger-light);
    color: var(--danger);
}

.product-footer {
    display: flex;
    gap: 0.625rem;
}

.product-footer .btn {
    flex: 1;
    justify-content: center;
}

/* ===== CATEGORIES PREMIUM ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 2px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-xl);
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-primary);
}

.category-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ===== FILTERS PREMIUM ===== */
.filters-bar {
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-100);
}

.filters-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filters-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    min-width: 140px;
}

.filter-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.filter-select:hover {
    border-color: var(--gray-300);
}

.results-count {
    color: var(--gray-500);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ===== FOOTER PREMIUM ===== */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 4rem 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-logo .logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social a.facebook:hover {
    background: #1877f2;
}

.footer-social a.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a.twitter:hover {
    background: #1da1f2;
}

.footer-social a.whatsapp:hover {
    background: #25d366;
}

.footer-social a.youtube:hover {
    background: #ff0000;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.75rem;
    color: var(--primary-light);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-contact li i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-payment {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-payment img {
    height: 24px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-payment img:hover {
    opacity: 1;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    font-weight: 500;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-info {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.empty-text {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* ===== RESPONSIVE ===== */

/* PWA Install Banner */
.pwa-install-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

.pwa-install-banner.show {
    display: block;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pwa-install-text {
    flex: 1;
}

.pwa-install-text h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.pwa-install-text p {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 0;
}

.pwa-install-buttons {
    display: flex;
    gap: 0.5rem;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Offline indicator */
.offline-indicator {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--warning);
    color: var(--dark);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10000;
}

.offline-indicator.show {
    display: block;
}

/* Touch-friendly improvements for mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets on touch devices */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }
    
    .btn-sm {
        min-height: 40px;
        padding: 0.625rem 1rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .mobile-toggle {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.25rem;
    }
    
    .header-action {
        min-height: 44px;
        padding: 0.5rem;
    }
    
    .product-action-btn {
        width: 44px;
        height: 44px;
    }
    
    .menu-item {
        min-height: 44px;
    }
    
    .form-control, .form-select {
        min-height: 44px;
    }
    
    /* Disable hover effects on touch */
    .product-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    /* Remove hover overlay, show always on touch */
    .product-actions-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    }
    
    /* Better scrolling */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text selection on buttons */
    .btn, button {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* iOS safe areas for notched devices */
@supports (padding: max(0px)) {
    body {
        padding-top: env(safe-area-inset-top);
    }
    
    .header {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    
    .footer {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
    
    .pwa-install-banner {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .whatsapp-button {
        bottom: max(20px, calc(env(safe-area-inset-bottom) + 20px));
        right: max(20px, env(safe-area-inset-right));
    }
}

/* Desktop/Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .section {
        padding: 6rem 0;
    }
}

/* Tablet/Medium screens */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .hero .container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .header-action span {
        display: none;
    }
    
    .header-action {
        min-width: auto;
        padding: 0.75rem;
    }
}

/* Mobile/Tablet screens */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 0.75rem 0;
    }
    
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Search Bar Mobile - Profissional */
    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 1rem;
    }
    
    .search-bar form {
        border-radius: 16px;
        background: #ffffff;
        border: 2px solid #e2e8f0;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    
    .search-bar form::before {
        left: 1rem;
        font-size: 0.9375rem;
    }
    
    .search-bar input {
        padding: 0.9375rem 1rem;
        padding-left: 2.75rem;
        font-size: 1rem;
    }
    
    .search-bar button {
        padding: 0.75rem 1.25rem;
        min-width: auto;
        margin: 3px;
        border-radius: 14px;
    }
    
    .search-bar button span {
        display: none;
    }
    
    .search-bar button i {
        font-size: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        border-radius: var(--radius-lg);
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 0.9375rem;
    }
    
    .price-current {
        font-size: 1.25rem;
    }
    
    .product-footer {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small mobile screens */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .products-grid {
        gap: 0.75rem;
    }
    
    .product-image {
        height: 160px;
        padding: 1rem;
    }
    
    .product-info {
        padding: 0.875rem;
    }
    
    .product-name {
        font-size: 0.875rem;
        line-height: 1.3;
    }
    
    .product-category {
        font-size: 0.6875rem;
    }
    
    .price-current {
        font-size: 1.125rem;
    }
    
    .product-footer .btn {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
    
    .categories-grid {
        gap: 0.75rem;
    }
    
    .category-card {
        padding: 1.25rem 0.75rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .category-name {
        font-size: 0.9375rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        display: flex;
        flex-direction: row;
    }
    
    .product-image {
        width: 120px;
        min-width: 120px;
        height: auto;
        min-height: 120px;
    }
    
    .product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-footer {
        margin-top: auto;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ANIMATIONS PREMIUM ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
}

.skeleton-image {
    height: 200px;
}

.skeleton-button {
    height: 44px;
    width: 120px;
}

/* ===== CARDS PREMIUM ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.card-title i {
    color: var(--primary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ===== FORMULÁRIOS PREMIUM ===== */
.form-group {
    margin-bottom: 1.375rem;
}

.form-label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.form-label .required {
    color: var(--danger);
    margin-left: 0.25rem;
}

.form-control,
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-700);
}

.form-control:hover,
.form-input:hover {
    border-color: var(--gray-300);
}

.form-control:focus,
.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder,
.form-input::placeholder {
    color: var(--gray-400);
}

.form-control.is-invalid,
.form-input.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-control.is-valid,
.form-input.is-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    background: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25em;
    cursor: pointer;
    transition: var(--transition);
}

.form-select:hover {
    border-color: var(--gray-300);
}

.form-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary);
    cursor: pointer;
}

textarea.form-control,
textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* ===== ALERTAS PREMIUM ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    border-left: 4px solid;
    animation: fadeInDown 0.3s ease;
}

.alert i,
.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border-left-color: var(--success);
}

.alert-success i {
    color: var(--success);
}

.alert-danger,
.alert-error {
    background: var(--danger-light);
    color: #991b1b;
    border-left-color: var(--danger);
}

.alert-danger i,
.alert-error i {
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border-left-color: var(--warning);
}

.alert-warning i {
    color: var(--warning);
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
    border-left-color: var(--info);
}

.alert-info i {
    color: var(--info);
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    padding: 0.25rem;
    font-size: 1rem;
}

.alert-close:hover {
    opacity: 1;
}

/* ===== TABELAS PREMIUM ===== */
.table-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--gray-50);
}

.table-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-title i {
    color: var(--primary);
}

.table-search {
    display: flex;
    gap: 0.5rem;
}

.table-search input {
    padding: 0.625rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--gray-700);
}

tr:hover td {
    background: var(--gray-50);
}

tr:last-child td {
    border-bottom: none;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active,
.status-badge.paid,
.status-badge.delivered,
.status-badge.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge.processing,
.status-badge.shipped {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.status-badge.inactive,
.status-badge.cancelled,
.status-badge.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.875rem;
}

.action-btn.view {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.action-btn.edit {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.action-btn:hover {
    transform: scale(1.1);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    font-weight: 500;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-info {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.dashboard-sidebar {
    background: var(--gray-900);
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-profile {
    text-align: center;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.profile-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
}

.profile-role {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.sidebar-menu {
    padding: 0 0.75rem;
}

.menu-section {
    margin-bottom: 1.5rem;
}

.menu-section-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    color: var(--gray-300);
    transition: var(--transition);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.menu-item i,
.menu-icon {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.menu-item.active {
    background: var(--primary);
    color: var(--white);
}

.menu-badge {
    margin-left: auto;
    background: var(--danger);
    color: var(--white);
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.dashboard-content {
    padding: 2rem;
    background: var(--light);
    overflow-y: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: var(--primary-lighter);
    color: var(--primary);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.yellow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.stat-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.quick-action:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.quick-action span {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
    display: block;
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.modal-close {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ===== CART ===== */
.cart-container,
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.cart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.cart-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--gray-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    margin-top: 1rem;
    color: var(--primary);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-btn,
.qty-btn,
.qty-minus,
.qty-plus {
    width: 2rem;
    height: 2rem;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.quantity-btn:hover,
.qty-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.quantity-input,
.qty-input {
    width: 3rem;
    height: 2rem;
    border: none;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
}

/* ===== CHECKOUT ===== */
.checkout-container,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.checkout-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.checkout-section {
    margin-bottom: 2rem;
}

.checkout-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--gray-200);
}

.progress-step:last-child::after {
    display: none;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.progress-step.active .step-number {
    background: var(--primary);
    color: var(--white);
}

.progress-step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 500;
}

/* ===== LOGIN PAGE PREMIUM ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Centralizar verticalmente quando conteúdo cabe na tela */
@media (min-height: 800px) {
    .login-page {
        align-items: center;
    }
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.login-header {
    background: var(--gradient-primary);
    padding: 2.5rem;
    text-align: center;
    color: var(--white);
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--white);
    border-radius: 20px 20px 0 0;
}

.login-header .logo,
.login-logo {
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-header .logo-icon {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.login-header .logo span {
    color: var(--accent);
}

.login-subtitle {
    opacity: 0.9;
    font-size: 0.9375rem;
}

.login-body {
    padding: 2.5rem;
}

.login-footer {
    text-align: center;
    padding: 1.5rem 2.5rem 2rem;
    background: var(--gray-50);
}

.login-footer a {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ===== AUTH PAGE (Forgot Password, Verify, etc) ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (min-height: 700px) {
    .auth-page {
        align-items: center;
    }
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.auth-header {
    background: var(--gradient-primary);
    padding: 2.5rem;
    text-align: center;
    color: var(--white);
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--white);
    border-radius: 20px 20px 0 0;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.auth-logo .logo-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.auth-logo span {
    color: var(--accent);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-subtitle {
    opacity: 0.9;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.auth-card .alert {
    margin: 0 2rem;
    margin-top: 1.5rem;
}

.auth-form {
    padding: 2rem 2.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form .form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.auth-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2.5rem 2rem;
    background: var(--gray-50);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Scrollbar para auth-page */
.auth-page::-webkit-scrollbar {
    width: 12px;
}

.auth-page::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.auth-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    border-radius: 10px;
}

.auth-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5));
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--white);
    transform: translateX(-3px);
}

.demo-accounts {
    background: var(--primary-50);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.demo-accounts h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.demo-account {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-account strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===== REGISTER PAGE ===== */
.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
}

.register-container {
    width: 100%;
    max-width: 500px;
}

.register-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.register-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.register-body {
    padding: 2rem;
}

.user-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-type-option {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.user-type-option:hover {
    border-color: var(--primary-light);
}

.user-type-option.selected {
    border-color: var(--primary);
    background: var(--primary-lighter);
}

.user-type-option i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ===== ADMIN PANEL ===== */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-header {
    background: var(--gray-900);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header .logo {
    color: var(--white);
    font-size: 1.25rem;
}

.admin-header .logo span {
    color: var(--accent);
}

.admin-sidebar {
    background: var(--gray-900);
    padding-top: 0;
}

.admin-sidebar .sidebar-profile {
    padding-top: 1.5rem;
}

.admin-sidebar .profile-avatar {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--dark);
}

.admin-sidebar .menu-item.active {
    background: var(--accent);
    color: var(--dark);
}

.admin-content {
    background: var(--light);
    padding: 2rem;
    overflow-y: auto;
}

/* ===== SELLER DASHBOARD ===== */
.seller-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.seller-sidebar {
    background: var(--gray-900);
}

.seller-sidebar .profile-avatar {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.seller-sidebar .menu-item.active {
    background: var(--secondary);
    color: var(--white);
}

/* ===== ORDERS ===== */
.order-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.order-number {
    font-weight: 600;
    color: var(--dark);
}

.order-body {
    padding: 1.5rem;
}

.order-items {
    border-top: 1px solid var(--gray-100);
    padding-top: 1rem;
    margin-top: 1rem;
}

.order-summary {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.empty-text {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* ===== CHARTS ===== */
.chart-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-gray { color: var(--gray-500); }
.text-dark { color: var(--dark); }
.text-white { color: var(--white); }
.bg-white { background: var(--white); }
.bg-light { background: var(--light); }
.bg-primary { background: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

/* ===== SPINNER ===== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

/* ===== SCROLLBAR PREMIUM ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gray-300), var(--gray-400));
    border-radius: 10px;
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gray-400), var(--gray-500));
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-100);
}

/* Scrollbar específica para página de login - mais visível */
.login-page::-webkit-scrollbar {
    width: 12px;
}

.login-page::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.login-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.login-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5));
}

/* Garantir scroll em HTML e body */
html, body {
    overflow-x: hidden;
}

html:has(.login-page) {
    overflow-y: auto;
}

/* ===== RESPONSIVE DASHBOARD ===== */
@media (max-width: 1024px) {
    .dashboard-layout,
    .admin-layout,
    .seller-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar,
    .admin-sidebar,
    .seller-sidebar {
        display: none;
    }
    
    .cart-container,
    .cart-layout,
    .checkout-container,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .login-body,
    .login-header,
    .register-body,
    .register-header {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 150px;
    }
    
    /* PWA banner mobile */
    .pwa-install-content {
        flex-direction: column;
        text-align: center;
    }
    
    .pwa-install-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .pwa-install-buttons .btn {
        width: 100%;
    }
}

/* ===== STANDALONE PWA MODE ===== */
@media all and (display-mode: standalone) {
    /* Hide install prompts when in PWA */
    .pwa-install-banner {
        display: none !important;
    }
    
    /* Adjust header for PWA mode */
    .header {
        border-top: none;
        padding-top: env(safe-area-inset-top, 0);
    }
    
    /* Add extra padding at bottom for gesture navigation */
    .main-content {
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    .footer {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }
    
    .btn-sm {
        min-height: 40px;
    }
    
    .nav-link {
        padding: 1rem 1.25rem;
    }
    
    .header-action {
        padding: 0.75rem 1rem;
    }
    
    .product-action-btn {
        width: 48px;
        height: 48px;
    }
    
    /* Disable hover effects that don't work well on touch */
    .product-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    .category-card:hover {
        transform: none;
    }
    
    .category-card:active {
        transform: scale(0.98);
        border-color: var(--primary);
    }
    
    /* Always show mobile actions */
    .product-actions-overlay {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Better tap feedback */
    .btn:active,
    .header-action:active,
    .nav-link:active,
    .category-card:active {
        opacity: 0.9;
    }
    
    /* Prevent text selection on interactive elements */
    .btn,
    .nav-link,
    .header-action,
    .product-action-btn {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ===== iOS SAFE AREAS ===== */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .footer {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .whatsapp-button {
        bottom: max(20px, calc(env(safe-area-inset-bottom) + 20px));
        right: max(20px, env(safe-area-inset-right));
    }
    
    .mobile-menu {
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--gray-500);
}

.breadcrumb-item a {
    color: var(--gray-600);
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.625rem;
    color: var(--gray-300);
    margin-left: 0.5rem;
}

.breadcrumb-item:last-child {
    color: var(--gray-800);
    font-weight: 500;
}

.breadcrumb-item.home i {
    font-size: 0.9375rem;
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.8125rem;
    }
    
    .breadcrumb-item:not(:first-child):not(:last-child) {
        display: none;
    }
    
    .breadcrumb-item:first-child:not(:last-child)::after {
        content: '...';
        font-family: inherit;
        font-size: 0.875rem;
    }
}

/* ===== TOOLTIPS ===== */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    z-index: 1050;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--white);
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.tooltip::before {
    content: '';
    position: absolute;
    border: 6px solid transparent;
}

/* Tooltip Top */
.tooltip-top {
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
}

.tooltip-top::before {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--gray-900);
}

/* Tooltip Bottom */
.tooltip-bottom {
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
}

.tooltip-bottom::before {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--gray-900);
}

/* Tooltip Left */
.tooltip-left {
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
}

.tooltip-left::before {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: var(--gray-900);
}

/* Tooltip Right */
.tooltip-right {
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
}

.tooltip-right::before {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: var(--gray-900);
}

/* Tooltip Show States */
.tooltip-wrapper:hover .tooltip,
.tooltip-wrapper:focus-within .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-wrapper:hover .tooltip-top,
.tooltip-wrapper:focus-within .tooltip-top {
    transform: translateX(-50%) translateY(0);
}

.tooltip-wrapper:hover .tooltip-bottom,
.tooltip-wrapper:focus-within .tooltip-bottom {
    transform: translateX(-50%) translateY(0);
}

.tooltip-wrapper:hover .tooltip-left,
.tooltip-wrapper:focus-within .tooltip-left {
    transform: translateY(-50%) translateX(0);
}

.tooltip-wrapper:hover .tooltip-right,
.tooltip-wrapper:focus-within .tooltip-right {
    transform: translateY(-50%) translateX(0);
}

/* Tooltip via data attribute */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--white);
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    z-index: 1050;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== DROPDOWN MENUS ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.625rem;
    transition: var(--transition);
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1040;
    overflow: hidden;
}

.dropdown-menu.right {
    left: auto;
    right: 0;
}

.dropdown.active .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 0.75rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    font-size: 0.9375rem;
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--gray-400);
    font-size: 1rem;
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item.active {
    background: var(--primary-50);
    color: var(--primary);
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background: var(--danger-light);
}

.dropdown-item.danger i {
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 0.375rem 0;
}

/* Mega Menu */
.mega-menu {
    min-width: 600px;
    padding: 1.5rem;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mega-menu-column h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-100);
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column li {
    margin-bottom: 0.5rem;
}

.mega-menu-column a {
    color: var(--gray-600);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.mega-menu-column a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-container.top-right {
    top: 1.5rem;
    right: 1.5rem;
}

.toast-container.top-left {
    top: 1.5rem;
    left: 1.5rem;
}

.toast-container.bottom-right {
    bottom: 1.5rem;
    right: 1.5rem;
}

.toast-container.bottom-left {
    bottom: 1.5rem;
    left: 1.5rem;
}

.toast-container.top-center {
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.toast-container.bottom-center {
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    min-width: 320px;
    max-width: 420px;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--gray-400);
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--gray-600);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    border-radius: 0 0 0 var(--radius-xl);
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast Variants */
.toast-success {
    border-left-color: var(--success);
}

.toast-success .toast-icon {
    background: var(--success-light);
    color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-error .toast-icon {
    background: var(--danger-light);
    color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-warning .toast-icon {
    background: var(--warning-light);
    color: #b45309;
}

.toast-info {
    border-left-color: var(--info);
}

.toast-info .toast-icon {
    background: var(--info-light);
    color: var(--info);
}

@media (max-width: 576px) {
    .toast-container {
        left: 1rem !important;
        right: 1rem !important;
        transform: none !important;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* ===== LOADING STATES ===== */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-primary.loading::after,
.btn-accent.loading::after,
.btn-success.loading::after,
.btn-danger.loading::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-right-color: var(--white);
}

/* Page Loading Overlay */
.page-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.page-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: var(--radius-sm);
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 70%;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

.skeleton-image {
    height: 200px;
    border-radius: var(--radius-lg);
}

.skeleton-button {
    height: 44px;
    width: 120px;
    border-radius: var(--radius-lg);
}

.skeleton-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-card);
}

/* ===== TABS COMPONENT ===== */
.tabs {
    display: flex;
    flex-direction: column;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--gray-100);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-item {
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.tab-item:hover {
    color: var(--primary);
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    padding: 1.5rem 0;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Tabs Pills Variant */
.tabs-pills .tabs-nav {
    border-bottom: none;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.375rem;
    border-radius: var(--radius-lg);
    width: fit-content;
}

.tabs-pills .tab-item {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    border-bottom: none;
    margin-bottom: 0;
}

.tabs-pills .tab-item.active {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

/* ===== ACCORDION ===== */
.accordion {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--gray-200);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--gray-50);
}

.accordion-title {
    font-weight: 600;
    color: var(--dark);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-item.active .accordion-header {
    background: var(--primary-50);
}

.accordion-item.active .accordion-title {
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
    border-top: 1px solid var(--gray-100);
}

/* ===== BADGES EXTENDED ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pill {
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--primary-50);
    color: var(--primary);
}

.badge-secondary {
    background: var(--secondary-50);
    color: var(--secondary);
}

.badge-success {
    background: var(--success-light);
    color: #065f46;
}

.badge-danger {
    background: var(--danger-light);
    color: #991b1b;
}

.badge-warning {
    background: var(--warning-light);
    color: #92400e;
}

.badge-info {
    background: var(--info-light);
    color: #1e40af;
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.badge-dot {
    position: relative;
    padding-left: 1rem;
}

.badge-dot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Notification Dot */
.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.notification-dot.animate {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* ===== AVATAR COMPONENT ===== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-xs { width: 24px; height: 24px; font-size: 0.625rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.875rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar-2xl { width: 96px; height: 96px; font-size: 1.75rem; }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    border: 2px solid var(--white);
    margin-left: -0.75rem;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

.avatar-status {
    position: relative;
}

.avatar-status::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25%;
    height: 25%;
    min-width: 8px;
    min-height: 8px;
    background: var(--success);
    border: 2px solid var(--white);
    border-radius: 50%;
}

.avatar-status.offline::after {
    background: var(--gray-400);
}

.avatar-status.busy::after {
    background: var(--danger);
}

.avatar-status.away::after {
    background: var(--warning);
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 3rem;
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.empty-state-description {
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state-sm {
    padding: 2rem 1rem;
}

.empty-state-sm .empty-state-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state-sm .empty-state-title {
    font-size: 1.125rem;
}

/* ===== PROGRESS BAR ===== */
.progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress-bar-success { background: var(--success); }
.progress-bar-warning { background: var(--warning); }
.progress-bar-danger { background: var(--danger); }

.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

.progress-lg { height: 12px; }
.progress-sm { height: 4px; }

/* Progress with Label */
.progress-labeled {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-labeled .progress {
    flex: 1;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    min-width: 40px;
    text-align: right;
}

/* ===== IMAGE LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* Product Image Zoom */
.product-image-zoom {
    cursor: zoom-in;
    transition: var(--transition);
}

.product-image-zoom:hover {
    transform: scale(1.02);
}

/* ===== BOTTOM SHEET (Mobile Modal) ===== */
@media (max-width: 768px) {
    .modal.bottom-sheet .modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 90vh;
        margin: 0;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        transform: translateY(100%);
    }
    
    .modal.bottom-sheet.active .modal-content {
        transform: translateY(0);
    }
    
    .modal.bottom-sheet .modal-header {
        position: relative;
        padding-top: 1.5rem;
    }
    
    .modal.bottom-sheet .modal-header::before {
        content: '';
        position: absolute;
        top: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--gray-300);
        border-radius: var(--radius-full);
    }
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .footer,
    .sidebar,
    .mobile-toggle,
    .pwa-install-banner,
    .whatsapp-button,
    .offline-indicator {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .container {
        max-width: 100%;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HIGH CONTRAST ===== */
@media (prefers-contrast: high) {
    :root {
        --gray-100: #e0e0e0;
        --gray-200: #c0c0c0;
        --gray-500: #404040;
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
    
    .form-control,
    .form-select {
        border-width: 2px;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    /* Future dark mode implementation */
}
