/* Mayoristas Joselith - Complete Styles */
:root {
    --primary: #4a6baf;
    --primary-hover: #3a5a9f;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #262626;
}

/* Header */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.store-info {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.store-info h2 {
    color: #333;
    margin-bottom: 10px;
}

.store-info p {
    color: #666;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stats span {
    background: #4a6baf;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.product-price {
    color: #4a6baf;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 60px 20px;
    color: #666;
}

/* Fixed buttons */
.admin-access {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4a6baf;
    color: white;
    padding: 12px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.admin-access:hover {
    background: #3a5a9f;
    transform: scale(1.1);
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-content { 
        padding: 10px; 
    }
    
    .products-grid { 
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
        gap: 15px; 
    }
    
    .stats { 
        gap: 10px; 
    }
    
    .stats span { 
        padding: 6px 12px; 
        font-size: 0.8rem; 
    }
}

/* Utilidades */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos hover adicionales */
.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-item:hover::before {
    opacity: 1;
}

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}