/* ============================================
   MAQUETADO PROFESIONAL UX/UI OPTIMIZADO
   Archivo: tienda-contenedor-profesional.css
   Descripción: Diseño profesional con tipografía balanceada
============================================ */

/* ============================================
   CONTENEDOR PRINCIPAL - ESTRUCTURA LIMPIA
============================================ */
.tienda-contenedor-principal {
    background: #FAFAFA;
    padding: 40px 0 60px;
    min-height: auto;
    overflow: visible;
}

.tienda-container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.tienda-row-principal {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* ============================================
   BARRA LATERAL - DISEÑO MINIMALISTA
============================================ */
.tienda-barra-lateral {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 0;
    transition: all 0.3s ease;
}

.tienda-barra-lateral:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Scrollbar minimalista */
.tienda-barra-lateral::-webkit-scrollbar {
    width: 5px;
}

.tienda-barra-lateral::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 10px;
}

.tienda-barra-lateral::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 10px;
}

.tienda-barra-lateral::-webkit-scrollbar-thumb:hover {
    background: #C19F30;
}

/* Cards de filtro minimalistas */
.tienda-card-filtro {
    background: white;
    border: none;
    margin-bottom: 0;
    border-radius: 0;
}

.tienda-card-filtro:first-child {
    border-radius: 12px 12px 0 0;
}

.tienda-card-filtro:last-child {
    border-radius: 0 0 12px 12px;
}

.tienda-card-filtro:not(:last-child) {
    border-bottom: 1px solid #F0F0F0;
}

.tienda-card-encabezado {
    padding: 18px 20px 14px;
    background: #FAFAFA;
    border-bottom: 2px solid #D4AF37;
}

.tienda-card-titulo {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1f36;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tienda-card-titulo i {
    color: #D4AF37;
    font-size: 0.9rem;
}

.tienda-lista-categorias {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tienda-item-categoria {
    border-bottom: 1px solid #F8F8F8;
    transition: all 0.2s ease;
}

.tienda-item-categoria:last-child {
    border-bottom: none;
}

.tienda-item-categoria:hover {
    background: #FAFAFA;
}

.tienda-item-categoria.active {
    background: linear-gradient(90deg, #FFF9E6 0%, #FFFFFF 100%);
    border-left: 3px solid #D4AF37;
}

.tienda-enlace-categoria {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tienda-enlace-categoria:hover {
    color: #D4AF37;
    padding-left: 24px;
}

.tienda-item-categoria.active .tienda-enlace-categoria {
    color: #D4AF37;
    font-weight: 600;
}

.tienda-enlace-categoria i {
    font-size: 0.95rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.tienda-enlace-categoria:hover i,
.tienda-item-categoria.active .tienda-enlace-categoria i {
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================
   ÁREA PRINCIPAL - PRODUCTOS
============================================ */
.tienda-busqueda-superior {
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.barra-busqueda-input {
    border: 2px solid #E8E8E8;
    border-radius: 8px 0 0 8px;
    padding: 12px 18px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.barra-busqueda-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

.barra-busqueda-boton {
    background: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 100%);
    border: none;
    color: #1a1f36;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.barra-busqueda-boton:hover {
    background: linear-gradient(135deg, #C19F30 0%, #E4D4AC 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
}

/* Banner de ofertas - COLOR NARANJA ORIGINAL */
.banner-ofertas {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FDC830 100%);
    color: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 40px;
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.25);
    overflow: hidden;
    position: relative;
}

.banner-ofertas::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.banner-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.oferta-icono {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.oferta-texto h3 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0 0 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.oferta-texto p {
    color: white;
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.oferta-contador {
    display: flex;
    gap: 12px;
}

.contador-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contador-numero {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.contador-label {
    display: block;
    font-size: 0.65rem;
    color: white;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Encabezado principal - PRIMERA SECCIÓN */
.tienda-encabezado {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tienda-titulo-principal {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.tienda-subtitulo {
    font-size: 1.05rem;
    color: #555;
    opacity: 0.85;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   GRID DE PRODUCTOS - UX/UI OPTIMIZADO
============================================ */
.tienda-grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Card de producto */
.producto-contenedor {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tienda-card-producto {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #F0F0F0;
}

.tienda-card-producto:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    border-color: #E0E0E0;
}

/* Badges de producto - MÁS PEQUEÑOS */
.producto-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.producto-badges .badge {
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-nutricion {
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.95) 0%, rgba(76, 175, 80, 0.95) 100%);
    color: white;
}

.badge-belleza {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.95) 0%, rgba(244, 143, 177, 0.95) 100%);
    color: white;
}

/* Imagen del producto - COMPACTA */
.tienda-imagen-contenedor {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #FAFAFA;
}

.tienda-imagen-producto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tienda-card-producto:hover .tienda-imagen-producto {
    transform: scale(1.05);
}

/* ============================================
   OVERLAY DE ACCIONES - DISEÑO PREMIUM GLASSMORPHISM
   Sin fondo oscuro, centrado con animaciones
============================================ */
.tienda-overlay-acciones {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 5;
    pointer-events: none;
}

.tienda-card-producto:hover .tienda-overlay-acciones {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tienda-boton-accion {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #2c3e50;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo */
.tienda-boton-accion::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    transition: width 0.4s ease, height 0.4s ease;
    transform: translate(-50%, -50%);
}

.tienda-boton-accion:hover::before {
    width: 100%;
    height: 100%;
}

.tienda-boton-accion:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35), 0 4px 10px rgba(212, 175, 55, 0.2);
    color: white;
}

/* Colores específicos por botón */
.tienda-boton-accion:nth-child(1):hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.35), 0 4px 10px rgba(52, 152, 219, 0.2);
}

.tienda-boton-accion:nth-child(2):hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35), 0 4px 10px rgba(212, 175, 55, 0.2);
}

.tienda-boton-accion:nth-child(3):hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.35), 0 4px 10px rgba(231, 76, 60, 0.2);
}

/* Animación de entrada */
.tienda-card-producto:hover .tienda-boton-accion:nth-child(1) {
    animation: bounceInBtn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.05s both;
}

.tienda-card-producto:hover .tienda-boton-accion:nth-child(2) {
    animation: bounceInBtn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s both;
}

.tienda-card-producto:hover .tienda-boton-accion:nth-child(3) {
    animation: bounceInBtn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.15s both;
}

@keyframes bounceInBtn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.tienda-boton-accion:active {
    transform: scale(0.92);
    transition: transform 0.1s ease;
}

/* Información del producto - TIPOGRAFÍA BALANCEADA */
.tienda-info-producto {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tienda-categoria-producto {
    font-size: 0.7rem;
    color: #D4AF37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.tienda-nombre-producto {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 8px;
    line-height: 1.35;
    min-height: 2.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tienda-nombre-producto a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tienda-nombre-producto a:hover {
    color: #D4AF37;
}

.tienda-descripcion-corta {
    font-size: 0.8rem;
    color: #666;
    opacity: 0.85;
    margin-bottom: 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3rem;
}

.tienda-precio-contenedor {
    margin-bottom: 8px;
}

.tienda-precio-actual {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1f36;
    font-family: 'Inter', sans-serif;
}

.tienda-stock-info {
    margin-bottom: 10px;
}

.stock-disponible {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #4CAF50;
    font-weight: 600;
}

.stock-disponible i {
    font-size: 0.85rem;
}

/* Botón principal de producto - COMPACTO */
.tienda-acciones-producto {
    margin-top: auto;
}

.tienda-boton-principal {
    width: 100%;
    background: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 100%);
    border: none;
    color: #1a1f36;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tienda-boton-principal:hover {
    background: linear-gradient(135deg, #C19F30 0%, #E4D4AC 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.tienda-boton-principal:active {
    transform: translateY(0);
}

.tienda-boton-principal i {
    font-size: 0.85rem;
}

/* ============================================
   PAGINACIÓN - MINIMALISTA
============================================ */
.tienda-paginacion-premium {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tienda-paginacion-premium .page-item {
    list-style: none;
}

.tienda-paginacion-premium .page-link {
    background: white;
    border: 2px solid #E8E8E8;
    color: #1a1f36;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tienda-paginacion-premium .page-link:hover {
    background: #FAFAFA;
    border-color: #D4AF37;
    color: #D4AF37;
}

.tienda-paginacion-premium .page-item.active .page-link {
    background: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 100%);
    border-color: #D4AF37;
    color: #1a1f36;
}

/* ============================================
   RESPONSIVE - MOBILE OPTIMIZADO
============================================ */
@media (max-width: 991px) {
    .tienda-row-principal {
        flex-direction: column;
    }

    .tienda-barra-lateral {
        position: static;
        max-height: none;
        margin-bottom: 25px;
    }

    .tienda-grid-productos {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .tienda-titulo-principal {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .tienda-contenedor-principal {
        padding: 30px 0 50px;
    }

    .tienda-titulo-principal {
        font-size: 1.6rem;
    }

    .tienda-subtitulo {
        font-size: 0.95rem;
    }

    .banner-contenido {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .oferta-texto h3 {
        font-size: 1.2rem;
    }

    .oferta-contador {
        justify-content: center;
    }

    .tienda-grid-productos {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .tienda-imagen-contenedor {
        height: 180px;
    }

    .tienda-nombre-producto {
        font-size: 0.9rem;
        min-height: 2.4rem;
    }

    .tienda-precio-actual {
        font-size: 1.2rem;
    }

    .tienda-boton-principal {
        font-size: 0.8rem;
        padding: 9px 14px;
    }
}

@media (max-width: 576px) {
    .tienda-titulo-principal {
        font-size: 1.4rem;
    }

    .tienda-subtitulo {
        font-size: 0.9rem;
    }

    .tienda-grid-productos {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .tienda-imagen-contenedor {
        height: 150px;
    }

    .tienda-info-producto {
        padding: 12px;
    }

    .tienda-nombre-producto {
        font-size: 0.85rem;
    }

    .tienda-descripcion-corta {
        font-size: 0.75rem;
    }

    .tienda-boton-principal {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}
