/* Estilos específicos para Productos Destacados */
.products-swiper-container {
    position: relative;
    padding: 0 50px;
    margin: 2rem 0;
}

.products-swiper-horizontal-container {
    position: relative;
    padding: 0 50px;
    margin: 2rem 0;
}

.products-swiper-horizontal {
    overflow: hidden;
    border-radius: 0;
}

.product-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    padding: 1rem;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e74c3c;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 237, 78, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 5;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.view-product-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 2px solid rgba(255, 215, 0, 0.6);
    padding: 12px 24px;
    border-radius: 25px;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.view-product-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    border-color: rgba(255, 215, 0, 0.8);
}

.view-product-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.view-product-btn:hover i {
    transform: translateX(3px);
}

.product-details {
    padding: 1.8rem 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 0 0 12px 12px;
}

.product-category {
    color: #ffd700;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: justify;
}

.product-brand {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: justify;
}

.product-specs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.spec-item {
    background: linear-gradient(135deg, #ffd700, #ffd700);
    color: #2c3e50;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.spec-item i {
    color: #ffd700;
    font-size: 0.8rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.product-price {
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #ffd700, #ffd700);
    border-radius: 12px;
    border-left: 4px solid #ffd700;
}

.current-price {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.original-price {
    color: #95a5a6;
    font-size: 1rem;
    text-decoration: line-through;
    margin-left: 0.8rem;
    font-weight: 500;
}

.product-stock {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #d5f4e6, #01f59c);
}

.stock-available {
    color: #0cee6a;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stock-unavailable {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stock-available i,
.stock-unavailable i {
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

/* Botones de navegación del Swiper Horizontal */
.products-horizontal-next,
.products-horizontal-prev {
    color: #ffd700 !important;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.products-horizontal-next:hover,
.products-horizontal-prev:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.products-horizontal-next::after,
.products-horizontal-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Paginación del Swiper Horizontal */
.products-horizontal-pagination {
    position: relative;
    margin-top: 2rem;
}

.products-horizontal-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.products-horizontal-pagination .swiper-pagination-bullet-active {
    background: #ffd700;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Responsive para Swiper Horizontal */
@media (max-width: 1200px) {
    .products-swiper-horizontal-container {
        padding: 0 40px;
    }
    
    .products-horizontal-next,
    .products-horizontal-prev {
        width: 45px;
        height: 45px;
        margin-top: -22.5px;
    }
}

@media (max-width: 768px) {
    .products-swiper-horizontal-container {
        padding: 0 30px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .product-details {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
        min-height: 2.4rem;
    }
    
    .products-horizontal-next,
    .products-horizontal-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    
    .products-horizontal-next::after,
    .products-horizontal-prev::after {
        font-size: 16px;
    }
    
    .view-product-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .products-swiper-horizontal-container {
        padding: 0 20px;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-title {
        font-size: 0.95rem;
        min-height: 2.2rem;
    }
    
    .products-horizontal-next,
    .products-horizontal-prev {
        width: 35px;
        height: 35px;
        margin-top: -17.5px;
    }
    
    .products-horizontal-next::after,
    .products-horizontal-prev::after {
        font-size: 14px;
    }
}

/* Estilos para 6 productos por slide */
.col-lg-2 .product-card-square {
    margin-bottom: 1.5rem;
}

.col-lg-2 .product-image-square {
    height: 280px;
}

.col-lg-2 .product-info-square {
    padding: 1.8rem 1.2rem;
    min-height: 280px;
}

.col-lg-2 .product-name-square {
    font-size: 1.2rem;
    min-height: 3.2rem;
    line-height: 1.3;
}

.col-lg-2 .product-brand-square {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.col-lg-2 .product-specs-square {
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.col-lg-2 .spec-square {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
}

.col-lg-2 .product-price-square {
    padding: 1rem;
    margin-bottom: 1rem;
}

.col-lg-2 .price-current-square {
    font-size: 1.4rem;
}

.col-lg-2 .product-stock-square {
    font-size: 0.9rem;
    padding: 0.8rem;
}

.col-lg-2 .action-btn-square {
    width: 45px;
    height: 45px;
    font-size: 1rem;
}

.col-lg-2 .product-actions-square {
    gap: 0.6rem;
}

/* Responsive para 6 columnas */
@media (max-width: 1200px) {
    .col-lg-2 .product-image-square {
        height: 260px;
    }
    
    .col-lg-2 .product-info-square {
        padding: 1.5rem 1rem;
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .col-lg-2 .product-image-square {
        height: 240px;
    }
    
    .col-lg-2 .product-info-square {
        padding: 1.2rem 0.8rem;
        min-height: 240px;
    }
    
    .col-lg-2 .product-name-square {
        font-size: 1.1rem;
        min-height: 2.8rem;
    }
}

/* Estilos dorados para el contenedor de información del producto */
.product-info-square {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 255, 255, 0.05)) !important;
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2) !important;
}
