
        /* =============================
            📌 CONFIGURACIONES GENERALES
        ============================= */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background-color: #f8fafc;
            color: #1e293b;
            line-height: 1.6;
        }

        /* =============================
            📌 CONTENEDOR PRINCIPAL
        ============================= */

        /* =============================
            📌 BOTÓN FILTROS MÓVIL
        ============================= */
        .sidebar-toggle {
            display: none;
        }

        @media (max-width: 768px) {
            .sidebar-toggle {
                display: block;
                background: #f97316;
                color: white;
                padding: 12px 16px;
                border-radius: 8px;
                position: sticky;
                top: 0;
                z-index: 40;
                margin-bottom: 1rem;
                font-weight: 500;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                border: none;
                cursor: pointer;
            }

            .sidebar-toggle:hover {
                background: #ea580c;
            }
        }

        /* =============================
            📌 SIDEBAR (FILTROS)
        ============================= */
        .filters-wrapper {
            width: 100%;
            padding: 1.5rem;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            margin-bottom: 1.5rem;
        }

        .filters-wrapper h2 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #1e293b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .price-container {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            color: #64748b;
        }

        .price-range {
            -webkit-appearance: none;
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #e2e8f0;
            outline: none;
            margin: 1rem 0;
        }

        .price-range::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #f97316;
            cursor: pointer;
            transition: all 0.2s;
        }

        .price-range::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #f97316;
            cursor: pointer;
        }

        .category-select {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background-color: #f8fafc;
            color: #334155;
            font-size: 0.95rem;
            transition: border-color 0.2s;
        }

        .category-select:focus {
            border-color: #f97316;
            outline: none;
        }

        #subfiltros-container {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e2e8f0;
        }

        /* Botones de filtros */
        .filter-button {
            background-color: #f97316;
            color: white;
            padding: 0.75rem;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            flex: 1;
            text-align: center;
        }

        .filter-button:hover {
            background-color: #ea580c;
            transform: translateY(-1px);
        }

        .clear-button {
            background-color: #f1f5f9;
            color: #334155;
            padding: 0.75rem;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            flex: 1;
            text-align: center;
            text-decoration: none;
            display: block;
        }

        .clear-button:hover {
            background-color: #e2e8f0;
            text-decoration: none;
        }

        /* =============================
            📌 SECCIÓN TOP VENTAS
        ============================= */
        .top-sales {
            margin-top: 2rem;
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .top-sales h2 {
            font-size: 1.25rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 1.25rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #e2e8f0;
        }

        #top-sales-list {
            list-style: none;
        }

        #top-sales-list li {
            padding: 0.75rem 0;
            border-bottom: 1px solid #f1f5f9;
            transition: background-color 0.2s;
        }

        #top-sales-list li:last-child {
            border-bottom: none;
        }

        #top-sales-list li:hover {
            background-color: #f8fafc;
        }

        .top-sales-img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
            border: 1px solid #f1f5f9;
            transition: transform 0.2s;
        }

        #top-sales-list li:hover .top-sales-img {
            transform: scale(1.05);
        }


        .top-sales-name {
            font-weight: 500;
            color: #1e293b;
            margin-bottom: 0.25rem;
            transition: color 0.2s;
        }

        #top-sales-list li:hover .top-sales-name {
            color: #f97316;
        }

        .top-sales-price {
            font-weight: 600;
            color: #f97316;
            font-size: 1rem;
        }

        /* =============================
            📌 CONTENIDO PRINCIPAL
        ============================= */
        .products-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 1rem 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            margin-bottom: 1.5rem;
        }

        .per-page-selector,
        .view-selector {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .per-page-selector label,
        .view-selector label {
            color: #64748b;
            font-size: 0.95rem;
        }

        .per-page-selector select,
        .view-selector select {
            padding: 0.5rem 0.75rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background-color: #f8fafc;
            color: #334155;
            font-size: 0.95rem;
        }

        /* =============================
            📌 GRID DE PRODUCTOS
        ============================= */
        /* ======= ESTILOS DE PRODUCTOS ======= */
.product-grid-specific {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columnas en desktop */
    gap: 1rem; /* Espacio entre tarjetas */
    margin-top: 1rem;
}

        .product-card-specific {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .product-card-specific:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        .product-image-specific {
            width: 100%;
            height: 220px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .product-card-specific:hover .product-image-specific {
            transform: scale(1.03);
        }

        .product-body-specific {
            padding: 1.25rem;
        }

        .product-title-specific {
            font-size: 1.1rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 0.5rem;
        }

        .product-text-specific {
            font-size: 0.9rem;
            color: #64748b;
            margin-bottom: 1rem;
            line-height: 1.5;
        }

        .product-price-specific {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.25rem;
        }

        .price-usd {
            font-weight: 700;
            color: #f97316;
            font-size: 1.2rem;
        }

        .price-pen {
            font-weight: 500;
            color: #64748b;
            font-size: 0.95rem;
        }

        .btn-primary {
            display: block;
            text-align: center;
            background-color: #f97316;
            color: white;
            padding: 0.75rem;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.2s;
            text-decoration: none;
        }

        .btn-primary:hover {
            background-color: #ea580c;
            text-decoration: none;
        }

        /* =============================
            📌 PAGINACIÓN
        ============================= */
        #pagination-container {
            margin-top: 2rem;
            text-align: center;
        }

        #pagination-container ul {
            display: inline-flex;
            list-style: none;
        }

        #pagination-container li {
            margin: 0 0.25rem;
        }

        #pagination-container a,
        #pagination-container span {
            display: inline-block;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            background: #f1f5f9;
            color: #334155;
            text-decoration: none;
            transition: all 0.2s;
        }

        #pagination-container a:hover {
            background: #e2e8f0;
            color: #f97316;
        }

        #pagination-container .active span {
            background: #f97316;
            color: white;
        }

        /* =============================
            📌 RESPONSIVE DESIGN
        ============================= */
        @media (max-width: 1024px) {
            .products-wrapper {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {


            .products-controls {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .products-wrapper {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .product-price-specific {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }


        /* Estilos base para la paginación */
.custom-pagination {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
}

.custom-pagination .pagination {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-pagination .page-item {
    min-width: 2.5rem;
    text-align: center;
}

.custom-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    color: #4a5568;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.custom-pagination .page-link:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

.custom-pagination .page-item.active .page-link {
    background-color: #4299e1;
    border-color: #4299e1;
    color: white;
}

.custom-pagination .page-item.disabled .page-link {
    color: #a0aec0;
    pointer-events: none;
    background-color: #f7fafc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-pagination .pagination {
        gap: 0.15rem;
    }

    .custom-pagination .page-item {
        min-width: 2rem;
    }

    .custom-pagination .page-link {
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .custom-pagination {
        padding: 0.25rem 0;
    }

    .custom-pagination .pagination {
        justify-content: flex-start;
    }

    .custom-pagination .page-item:not(.active):not(:first-child):not(:last-child):not(.previous):not(.next) {
        display: none;
    }

    .custom-pagination .page-item.previous,
    .custom-pagination .page-item.next {
        flex-grow: 1;
    }

    .custom-pagination .page-link {
        width: 100%;
    }

    /* Mostrar solo primera y última página en móviles pequeños */
    .custom-pagination .page-item:first-child,
    .custom-pagination .page-item:last-child {
        display: flex !important;
    }
}

/* Efectos para pantallas táctiles */
@media (hover: none) {
    .custom-pagination .page-link {
        padding: 0 1rem; /* Más área de toque */
    }
}
        /* =============================
            📌 CORRECCIÓN RESPONSIVE GENERAL
        ============================= */
        @media (max-width: 768px) {

            /* Fuerza el responsive en todas las páginas de productos */
            body .main-wrapper .flex.flex-col.md\:flex-row {
                flex-direction: column !important;
            }

            body .main-wrapper .w-full.md\:w-1\/4,
            body .main-wrapper .w-full.md\:w-3\/4 {
                width: 100% !important;
                padding: 0 !important;
            }
        }

        /* =============================
            📌 CORRECCIÓN SIDEBAR FILTROS
        ============================= */
        .filters-wrapper {
            position: relative;
            z-index: 30;
        }

        @media (max-width: 768px) {

            /* Contenedor del sidebar */
            .filters-wrapper {
                position: fixed;
                top: 0;
                left: -85%;
                /* Inicialmente oculto */
                width: 85%;
                max-width: 400px;
                /* Evitar que sea demasiado grande */
                height: 100vh;
                overflow-y: auto;
                background: white;
                padding: 1.5rem;
                box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
                transition: left 0.3s ease;
                z-index: 200;
            }

            /* Clase para mostrar el sidebar */
            .filters-wrapper.show {
                left: 0;
                z-index: 1000;
            }

            /* Fondo oscuro al abrir el sidebar */
            .sidebar-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                /* Transparente */
                z-index: 150;
                display: none;
            }

            /* Mostrar overlay cuando el sidebar está activo */
            .sidebar-overlay.active {
                display: block;
            }

            /* Botón para cerrar el sidebar */
            .sidebar-close {
                position: absolute;
                top: 10px;
                right: 15px;
                background: #ff5722;
                color: white;
                border: none;
                padding: 8px 12px;
                cursor: pointer;
                border-radius: 5px;
            }


            /* Asegura que el contenido principal no se desplace */
            .main-wrapper>.flex>.w-full.md\:w-3\/4 {
                margin-top: 0 !important;
            }
        }

        /* =============================
            📌 TOP VENTAS SIN SUBRAYADO
        ============================= */
        #top-sales-list li a {
            text-decoration: none !important;
        }

        /* =============================
            📌 BOTONES AZULES (#0037ff)
        ============================= */
        .filter-button,
        .btn-primary,
        .sidebar-toggle {
            background-color: #0037ff !important;
            color: white !important;
            border: none !important;
        }

        .filter-button:hover,
        .btn-primary:hover,
        .sidebar-toggle:hover {
            background-color: #0026b3 !important;
        }

        .price-range::-webkit-slider-thumb {
            background: #0037ff !important;
        }

        .price-range::-moz-range-thumb {
            background: #0037ff !important;
        }

        /* =============================
            📌 COLOR PRECIO TOP VENTAS
        ============================= */
        .top-sales-price {
            color: #0037ff !important;
        }

        /* =============================
            📌 PAGINACIÓN ACTIVA AZUL
        ============================= */
        #pagination-container .page-item.active .page-link {
            background-color: #0037ff !important;
            border-color: #0037ff !important;
        }

/*  ===========================================================================================================================

/* OTRO STYLE================================================================================================================
   /* Contenedor principal con límite fijo */
   .main-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0% !important;
    box-sizing: border-box;
}
.main-wrapper.p-4 {
    padding: 0% !important;
}


/* Layout principal */
.flex-col.md\:flex-row {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 768px) {
    .flex-col.md\:flex-row {
        flex-direction: row;
    }
}

/* Sidebar (Filtros) */
.w-full.md\:w-1\/4 {
    width: 100%;
    padding: 0 1rem 1rem 0;
}

@media (min-width: 768px) {
    .w-full.md\:w-1\/4 {
        width: 25%;
        min-width: 280px; /* Ancho mínimo para sidebar */
        padding-top: 1.6rem;
    }
}

/* Contenido principal (Productos) */
.w-full.md\:w-3\/4 {
    width: 100%;
    padding: 0;
}

@media (min-width: 768px) {
    .w-full.md\:w-3\/4 {
        width: 75%;
        padding: 0 0 0 1rem;
    }
}

/* Grid de productos responsive */
.products-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 767px) {
    .products-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .products-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Tarjetas de producto */
.product-card-specific {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card-specific:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.product-image-specific {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-body-specific {
    padding: 1.25rem;
}

/* Controles de productos */
.products-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.per-page-selector, .view-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filtros */
.filters-wrapper {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    height: 100%;
}

.price-range {
    -webkit-appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.category-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}

/* Top Ventas */
.top-sales-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Paginación */
.custom-pagination {
    margin-top: 2rem;
}

/* Ajustes para vista de lista */
.products-wrapper.list-view {
    grid-template-columns: 1fr !important;
}

.products-wrapper.list-view .product-card-specific {
    display: flex;
    flex-direction: row;
}

.products-wrapper.list-view .product-image-specific {
    width: 150px;
    height: 150px;
}

@media (max-width: 640px) {
    .products-wrapper.list-view .product-card-specific {
        flex-direction: column;
    }

    .products-wrapper.list-view .product-image-specific {
        width: 100%;
        height: 200px;
    }
}

/* ==============================================================

/* POR FAVOR NO OLVIDES HACER UN BACKUP DE TU CSS ANTES DE HACER CAMBIOS EN EL */


