/**
 * Estilos para páginas de tienda
 * Ubicación: assets/css/store.css
 */

/* ========================================
   HERO DE TIENDA
======================================== */
.store-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 0;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}

.store-hero-content {
    position: relative;
    z-index: 10;
}

.store-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.store-logo,
.store-logo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    flex-shrink: 0;
    border: 5px solid white;
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.store-logo-placeholder {
    font-size: 4rem;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.store-info {
    color: white;
    flex: 1;
}

.store-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
}

.store-name i {
    font-size: 1.5rem;
}

.store-description {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.6;
}

.store-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-item i {
    font-size: 1.2rem;
}

.stat-item small {
    opacity: 0.9;
    font-weight: 400;
}

/* ========================================
   PRODUCTOS DE LA TIENDA
======================================== */
.store-products {
    padding: 0;
}

.store-categories {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.store-categories::-webkit-scrollbar {
    height: 8px;
}

.store-categories::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.store-categories::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.product-card {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.product-link {
    display: block;
    text-decoration: none;
}

.product-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* ========================================
   SIDEBAR
======================================== */
.store-sidebar .card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.store-sidebar .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.vendor-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.stat-row i {
    width: 20px;
    text-align: center;
}

.rating-display i {
    font-size: 1rem;
}

.review-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .store-hero {
        padding: 2rem 0;
        min-height: 300px;
    }
    
    .store-profile {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .store-logo,
    .store-logo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .store-logo-placeholder {
        font-size: 3rem;
    }
    
    .store-name {
        font-size: 1.8rem;
        justify-content: center;
    }
    
    .store-description {
        font-size: 1rem;
    }
    
    .store-stats {
        justify-content: center;
        font-size: 0.85rem;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .product-image {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .store-logo,
    .store-logo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .store-name {
        font-size: 1.5rem;
    }
    
    .stat-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ========================================
   UTILIDADES
======================================== */
.btn-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========================================
   REDES SOCIALES
======================================== */
.social-links {
    margin: 0;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}

.social-facebook {
    background: #1877f2;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-twitter {
    background: #1da1f2;
}

.social-tiktok {
    background: #000000;
}

.social-youtube {
    background: #ff0000;
}

.social-linkedin {
    background: #0077b5;
}

.social-pinterest {
    background: #e60023;
}

.social-whatsapp {
    background: #25d366;
}

/* Animación de hover para redes sociales */
@keyframes socialBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.social-btn:hover {
    animation: socialBounce 0.5s ease;
}