/**
 * Tecnorep - Product Slider Plugin Compatibility
 * Estilos y documentacion para el plugin TecnoRep Product Slider
 *
 * El plugin "TecnoRep Product Slider" es un plugin personalizado para
 * Tecnoreparaciones Medellin que muestra productos en slider usando Swiper.
 *
 * SHORTCODES:
 * [tecnorep_product_slider] - Slider basico de productos
 * [tecnorep_product_slider category="cctv" limit="8"] - Por categoria
 * [tecnorep_product_slider featured="yes" limit="6"] - Solo destacados
 * [tecnorep_product_slider sale="yes" limit="4"] - Solo ofertas
 *
 * Atributos:
 * - category: slug de categoria (opcional)
 * - limit: numero de productos (default: 8)
 * - featured: "yes" para solo productos destacados
 * - sale: "yes" para solo productos en oferta
 * - orderby: "date", "price", "title", "rand" (default: "date")
 * - columns: 3,4,5 (default: 4)
 * - autoplay: "yes" o "no" (default: "yes")
 *
 * @package Tecnorep
 * @since 1.0.1
 */

/* Compatibilidad visual del Product Slider con el theme */
.tecnorep-product-slider {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.tecnorep-product-slider .swiper-slide {
    height: auto;
}

.tecnorep-product-slider .swiper-slide .product,
.tecnorep-product-slider .swiper-slide .trp-product-card {
    height: 100%;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

/* Botones de navegacion */
.tecnorep-product-slider .swiper-button-prev,
.tecnorep-product-slider .swiper-button-next {
    width: 44px;
    height: 44px;
    background: var(--trp-bg, #fff);
    border: 1px solid var(--trp-border, #e8e8e8);
    border-radius: 50%;
    color: var(--trp-text, #444);
    transition: all 0.3s ease;
    top: 45%;
    box-shadow: 0 2px 8px var(--trp-shadow, rgba(0,0,0,0.08));
}

.tecnorep-product-slider .swiper-button-prev:hover,
.tecnorep-product-slider .swiper-button-next:hover {
    background: var(--trp-primary, #1F8A9F);
    border-color: var(--trp-primary, #1F8A9F);
    color: #fff;
}

.tecnorep-product-slider .swiper-button-prev::after,
.tecnorep-product-slider .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}

.tecnorep-product-slider .swiper-button-prev {
    left: 0;
}

.tecnorep-product-slider .swiper-button-next {
    right: 0;
}

/* Paginacion */
.tecnorep-product-slider .swiper-pagination {
    bottom: -5px;
}

.tecnorep-product-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--trp-border, #e8e8e8);
    opacity: 1;
    transition: all 0.3s ease;
}

.tecnorep-product-slider .swiper-pagination-bullet-active {
    background: var(--trp-primary, #1F8A9F);
    width: 24px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .tecnorep-product-slider .swiper-button-prev,
    .tecnorep-product-slider .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .tecnorep-product-slider .swiper-button-prev::after,
    .tecnorep-product-slider .swiper-button-next::after {
        font-size: 12px;
    }
}

/* Dark mode */
body.dark-mode .tecnorep-product-slider .swiper-button-prev,
body.dark-mode .tecnorep-product-slider .swiper-button-next {
    background: var(--trp-bg, #0A0A0A);
    border-color: var(--trp-border, #2A2A2A);
    color: var(--trp-text, #D0D0D0);
}
