/* ========================= */
/* CONTENEDOR */
/* ========================= */

.categoria-container{

max-width:1400px;
margin:auto;

padding:40px 20px;

}

/* ========================= */
/* HEADER CATEGORIA */
/* ========================= */

.categoria-header{

display:flex;

align-items:flex-start;
justify-content:space-between;

gap:20px;

margin-bottom:35px;

flex-wrap:wrap;

}

.breadcrumb-custom{

display:flex;

align-items:center;

gap:8px;

margin-bottom:12px;

font-size:14px;

font-weight:400;

color:#777;

line-height:1;

}

.breadcrumb-custom a,
.breadcrumb-custom a:visited,
.breadcrumb-custom a:focus,
.breadcrumb-custom a:active{

color:#111;

text-decoration:none;

font-weight:400;

outline:none;

box-shadow:none;

}

.breadcrumb-custom a:hover{

color:#555 !important;

text-decoration:none !important;

}

.breadcrumb-custom .sep{

color:#bbb;

font-size:12px;

}

.categoria-titulo{

font-size:48px;

font-weight:300;

line-height:1.1;

margin-bottom:18px;

color:#111;

}

.categoria-total{

font-size:15px;

color:#666;

font-weight:400;

}

.categoria-total strong{

font-weight:700;

color:#111;

}

/* ========================= */
/* ORDENAR */
/* ========================= */

.orden-select-top{

display:flex;
align-items:center;
gap:12px;

}

.orden-select-top label{

font-size:14px;
font-weight:600;

color:#444;

}

.orden-select-top select{

height:42px;

padding:0 15px;

border:1px solid #ddd;

border-radius:12px;

background:#fff;

outline:none;

}

/* ========================= */
/* LAYOUT */
/* ========================= */

.categoria-layout{

display:grid;

grid-template-columns:280px 1fr;

gap:25px;

align-items:flex-start;

}

/* ========================= */
/* SIDEBAR */
/* ========================= */

.sidebar-filtros{

position:sticky;
top:20px;

}

.sidebar-inner{

background:#fff;

border:1px solid #eee;

border-radius:20px;

padding:22px;

}

/* ========================= */
/* FILTROS */
/* ========================= */

.filtro-box{

padding-bottom:22px;

margin-bottom:22px;

border-bottom:1px solid #f0f0f0;

}

.filtro-box:last-child{

border:none;
margin-bottom:0;
padding-bottom:0;

}

.filtro-header{

display:flex;

align-items:center;
justify-content:space-between;

}

.filtro-titulo{

font-size:15px;
font-weight:700;

margin-bottom:16px;

color:#111;

}

/* ========================= */
/* SWITCH */
/* ========================= */

.switch{

position:relative;

display:inline-block;

width:48px;
height:26px;

}

.switch input{

opacity:0;
width:0;
height:0;

}

.slider{

position:absolute;

cursor:pointer;

top:0;
left:0;
right:0;
bottom:0;

background:#ccc;

transition:.3s;

border-radius:50px;

}

.slider:before{

position:absolute;

content:"";

height:20px;
width:20px;

left:3px;
bottom:3px;

background:white;

transition:.3s;

border-radius:50%;

}

.switch input:checked + .slider{

background:#b720eb;

}

.switch input:checked + .slider:before{

transform:translateX(22px);

}

/* ========================= */
/* PRECIO */
/* ========================= */

.precio-valores{

display:flex;

justify-content:space-between;

font-size:14px;

margin-bottom:12px;

color:#666;

}

.slider-precio{

width:100%;

accent-color:#b720eb;

}

/* ========================= */
/* CATEGORIAS */
/* ========================= */

.lista-categorias{

display:flex;
flex-direction:column;

gap:12px;

}

.lista-categorias a{

text-decoration:none;

color:#444;

font-size:14px;

transition:.2s;

}

.lista-categorias a:hover{

color:#b720eb;

padding-left:5px;

}

/* ========================= */
/* PRODUCTOS */
/* ========================= */

.categoria-productos-grid{

display:grid;

grid-template-columns:
repeat(auto-fill,minmax(250px,1fr));

gap:22px;

}

/* ========================= */
/* CARD */
/* ========================= */

.categoria-producto-card{

position:relative;

background:#fff;

border:1px solid #eee;

border-radius:24px;

overflow:hidden;

transition:.25s;

text-decoration:none;

color:#111;

display:flex;
flex-direction:column;

}

.producto-card:hover{

transform:translateY(-6px);

box-shadow:
0 12px 30px rgba(0,0,0,.08);

}

/* ========================= */
/* BADGES */
/* ========================= */

.badge-oferta{
    position:absolute;
    top:12px;
    left:12px;

    background:#b720eb;
    color:#fff;

    padding:5px 10px;

    border-radius:12px;

    font-size:10px;
    line-height:1.2;

    font-weight:700;
    text-align:center;

    z-index:5;

    box-shadow:0 4px 12px rgba(183,32,235,.25);
}

.badge-preventa{

position:absolute;

top:15px;
right:15px;

background:#111;

color:#fff;

font-size:11px;
font-weight:700;

padding:6px 10px;

border-radius:50px;

z-index:5;

}

.badge-cuotas{

position:absolute;

bottom:15px;
left:15px;

background:#b720eb;

color:#fff;

font-size:10px;
font-weight:700;

text-align:center;

padding:8px 10px;

border-radius:12px;

line-height:1.3;

z-index:5;

}

/* ========================= */
/* IMAGEN */
/* ========================= */

.producto-img-box{

height:260px;

display:flex;

align-items:center;
justify-content:center;

padding:25px;

background:#fff;

}

.producto-img{

max-width:100%;
max-height:100%;

object-fit:contain;

transition:.3s;

}

.producto-card:hover .producto-img{

transform:scale(1.05);

}

/* ========================= */
/* INFO */
/* ========================= */

.producto-info{

padding:20px;

display:flex;
flex-direction:column;

gap:10px;

}

.producto-nombre{

font-size:15px;
font-weight:600;

line-height:1.5;

min-height:48px;

color:#111;

}

/* ========================= */
/* TEMPORIZADOR */
/* ========================= */

.temporizador-box{

background:#faf7ff;

border-radius:12px;

padding:12px;

margin-top:5px;

}

.barra-tiempo{

width:100%;
height:6px;

background:#eee;

border-radius:50px;

overflow:hidden;

margin-bottom:10px;

}

.barra-progreso{

height:100%;

background:#b720eb;

width:100%;

transition:1s linear;

}

.temporizador{

font-size:13px;
font-weight:600;

color:#b720eb;

}

/* ========================= */
/* RATING */
/* ========================= */

.producto-rating{

font-size:13px;

color:#ffb400;

display:flex;
align-items:center;
gap:6px;

}

.producto-rating span{

color:#666;

}

/* ========================= */
/* ENVIO */
/* ========================= */

.producto-envio{

font-size:13px;

color:#00a650;

font-weight:600;

}

/* ========================= */
/* PRECIOS */
/* ========================= */

.precio-anterior{

font-size:14px;

color:#999;

text-decoration:line-through;

}

.descuento-texto{

font-size:13px;

font-weight:700;

color:#00a650;

}

.precio{

font-size:28px;
font-weight:800;

color:#111;

line-height:1;

}

.precio-extra{

font-size:12px;

color:#777;

line-height:1.5;

}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:1100px){

.categoria-layout{

grid-template-columns:1fr;

}

.sidebar-filtros{

position:relative;
top:auto;

}

}

@media(max-width:768px){

.categoria-header{

flex-direction:column;

align-items:flex-start;

}

.productos-grid{

grid-template-columns:
repeat(2,1fr);

gap:16px;

}

.producto-img-box{

height:180px;

padding:15px;

}

.producto-info{

padding:15px;

}

.precio{

font-size:22px;

}

}

@media(max-width:520px){

.productos-grid{

grid-template-columns:1fr;

}

.categoria-titulo{

font-size:36px;

}

}

/* =========================
   BREADCRUMB
========================= */

.categoria-breadcrumb{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:15px;
    font-size:14px;
    color:#666;
}

.categoria-breadcrumb a{
    color:#111;
    text-decoration:none;
    font-weight:500;
}

.categoria-breadcrumb a:hover{
    color:#b720eb;
    text-decoration:none;
}

.categoria-breadcrumb .actual{
    color:#111;
    font-weight:600;
}

.categoria-breadcrumb i{
    text-decoration:none;
    margin-right:5px;
}

.categoria-titulo{
    font-size:48px;
    font-weight:700;
    color:#111;
    margin-bottom:10px;
    line-height:1;
}

.categoria-total{
    font-size:16px;
    color:#666;
}

.categoria-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:40px;
    padding-bottom:20px;
}

.categoria-container{
    max-width:1400px;
    margin:auto;
    padding:40px 20px 60px;
}

.categoria-breadcrumb a,
.categoria-breadcrumb a:hover,
.categoria-breadcrumb a:focus,
.categoria-breadcrumb a:active,
.categoria-breadcrumb a:visited{
    text-decoration:none !important;
    border:none !important;
    box-shadow:none !important;
}

.categoria-breadcrumb a i{
    text-decoration:none !important;
    border:none !important;
}

.categorias-slider-box{
    position:relative;
    width:100%;
    margin:0 0 28px;
    padding:18px 52px;
    background:#fff;
    border-bottom:1px solid #eee;
}

.categorias-slider{
    display:flex;
    gap:38px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scrollbar-width:none;
}

.categorias-slider::-webkit-scrollbar{
    display:none;
}

.cat-slider-item{
    min-width:130px;
    text-decoration:none;
    color:#111;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    font-weight:700;
    font-size:15px;
    white-space:nowrap;
}

.cat-slider-item i{
    font-size:34px;
    color:#777;
    transition:.2s;
}

.cat-slider-item:hover i,
.cat-slider-item.active i{
    color:#b720eb;
}

.cat-slider-item:hover span,
.cat-slider-item.active span{
    color:#b720eb;
}

.cat-slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    border:0;
    border-radius:50%;
    background:#bdbdbd;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:5;
}

.cat-prev{
    left:14px;
}

.cat-next{
    right:14px;
}

.cat-slider-btn:hover{
    background:#999;
}

@media(max-width:768px){

    .categorias-slider-box{
        padding:16px 42px;
        margin-bottom:22px;
    }

    .categorias-slider{
        gap:24px;
    }

    .cat-slider-item{
        min-width:105px;
        font-size:13px;
    }

    .cat-slider-item i{
        font-size:28px;
    }

}

.cat-slider-item.recomendados{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
}

.cat-slider-item.recomendados i{
    color:#777;
    transition:.2s;
}

.cat-stars{
    color:#f5b301;
    font-size:12px;
    line-height:1;
    letter-spacing:1px;
    margin-top:-2px;
}

.cat-stars{
    color:#999;
    font-size:11px;
    line-height:1;
    margin-top:-8px;
    transition:.2s;
}

.cat-slider-item.recomendados:hover i,
.cat-slider-item.recomendados.active i{
    color:#28a745;
}

.cat-slider-item.recomendados:hover .cat-stars,
.cat-slider-item.recomendados.active .cat-stars{
    color:#f5b301;
}

.categoria-productos-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
}

/* IGUAL AL FIXTURE DEL INDEX */

.categoria-producto-card{

    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:6px;
    overflow:hidden;

}

.categoria-producto-card .producto-img-box{

    height:190px;

    background:#fff;

    border-bottom:1px solid #eee;

    padding:10px;

    overflow:hidden;

}

.categoria-producto-card .producto-img{

    width:100%;
    height:100%;

    object-fit:contain;

    display:block;

}

.categoria-producto-card .producto-info{
    padding:12px;
    text-align:center;
}

.categoria-producto-card .producto-nombre{
    font-size:16px;
    font-weight:600;
    line-height:1.3;
    color:#000;
    margin-bottom:4px;
    text-align:center;
}

.categoria-producto-card .producto-envio{
    color:#00a650;
    font-size:15px;
    font-weight:500;
    margin-bottom:4px;
}

.categoria-producto-card .precio-anterior{
    font-size:14px;
    color:#999;
    text-decoration:line-through;
    margin-bottom:6px;
}

.categoria-producto-card .descuento-texto{
    font-size:16px;
    font-weight:700;
    color:#00a650;
    margin-bottom:8px;
}

.categoria-producto-card .precio{
    font-size:24px;
    font-weight:700;
    color:#111;
    margin-bottom:8px;
    line-height:1;
}

.categoria-producto-card .precio-extra{
    font-size:13px;
    color:#777;
    line-height:1.4;
    font-weight:500;
}

.categoria-producto-card .producto-rating{
    display:none;
}

@media(max-width:1024px){
    .categoria-productos-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:600px){
    .categoria-productos-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .categoria-producto-card .producto-nombre{
        font-size:14px;
    }

    .categoria-producto-card .precio{
        font-size:20px;
    }

    .categoria-producto-card .precio-extra{
        font-size:11px;
    }
}

/* FIX ESPACIADO CARD CATEGORIA */

.categoria-producto-card .producto-info{
    gap:4px !important;
    padding:12px 10px 14px !important;
}

.categoria-producto-card .producto-nombre{
    min-height:auto !important;
    margin-bottom:6px !important;
}

.categoria-producto-card .producto-envio{
    margin-bottom:6px !important;
}

.categoria-producto-card .precio-anterior{
    margin-bottom:4px !important;
}

.categoria-producto-card .descuento-texto{
    margin-bottom:8px !important;
}

.categoria-producto-card .precio{
    margin-bottom:8px !important;
}

.categoria-producto-card .precio-extra{
    margin-top:0 !important;
}

@media(max-width:1024px){
    .categoria-productos-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:600px){
    .categoria-productos-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .categoria-producto-card .producto-img-box{
        height:170px;
        padding:8px;
    }
}