*{
box-sizing:border-box;
}

html, body {
    padding-top: 90px;
    max-width: 100%;
    overflow-x: hidden;
    background-color: #f5f5f5;
}

/* =========================
   BOTONES PROFESIONALES
========================= */

.btn {
    border-radius: 10px !important;
    font-weight: 600;
    padding: 8px 14px;
    transition: all 0.25s ease;
}

/* Botón agregar carrito */
.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #146c2e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

/* Botón ver producto */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #084298);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, #052c65);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13,110,253,0.3);
}

/* Tamaño uniforme botones tarjetas */

.product-card .btn {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   CONTENEDOR PRODUCTOS
========================= */

.product-section {
    margin-top: 100px;
    padding-top: 20px;
    background-color: #EDEDED;
}


/* =========================
   TARJETAS PRODUCTO
========================= */

.product-card{
    border-radius:18px;
    overflow:hidden;
    transition:all 0.3s ease;
    background:white;
    border:1px solid #eee;
    border-radius:12px;
    height:100%;
    display:flex;   
    flex-direction:column;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,0.12);
}

.product-card img{
    transition:transform 0.3s ease;
}

.product-card:hover img{
    transform:scale(1.05);
}

.product-title{
    min-height:48px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}


/* =========================
   SIDEBAR FILTROS
========================= */

.sidebar-filtros {
    position: sticky;
    top: 100px;
}


/* =========================
   PRECIO
========================= */

.text-success{
    font-size:22px;
    font-weight:700;
    color:#16a34a !important;
}


/* =========================
   TARJETAS BOOTSTRAP
========================= */

.card-title {
    font-size: 15px;
    min-height: 40px;
}

.card.shadow-sm {
    border-radius: 16px;
    border: none;
}

.card.shadow-sm h5{
    font-weight:700;
    margin-bottom:15px;
}

.card-body{
    display:flex;
    flex-direction:column;
    height:100%;
}

.card-body .mt-auto{
    margin-top:auto;
}


/* ========================= 
   CONTENEDOR IMAGEN 
=========================*/

.img-container{
    position:relative;
    padding:10px;
    height:170px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fafafa;
    overflow:hidden;
}


/* =========================
   IMAGEN PRODUCTO 
=========================*/

.product-img{
max-height:150px;
max-width:100%;
object-fit:contain;
}


/* =========================
   BOTON FAVORITO
========================= */

.btn-favorito{

position:absolute;
top:12px;
right:12px;

width:42px;
height:42px;

border:none;
border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

cursor:pointer;

background:#ffffff;

box-shadow:0 4px 12px rgba(0,0,0,0.18);

transition:all .25s ease;

z-index:3;

}

.btn-favorito:hover{

transform:scale(1.1);

box-shadow:0 8px 18px rgba(0,0,0,0.25);

}

.btn-favorito i{

font-size:22px;

color:#9e9e9e;

transition:all .25s ease;

}

.btn-favorito:hover i{

color:#ff2e55;

}

.btn-favorito.guardado i{

color:#ff2e55;

animation:likePop .35s ease;

}

@keyframes likePop{

0%{transform:scale(1);}
40%{transform:scale(1.5);}
70%{transform:scale(0.9);}
100%{transform:scale(1);}

}

.btn-favorito:active{
transform:scale(.9);
}

.btn-favorito::after{

content:"";

position:absolute;

width:100%;
height:100%;

border-radius:50%;

background:rgba(255,46,85,0.25);

transform:scale(.5);

opacity:0;

transition:.4s;

}

.btn-favorito:active::after{

transform:scale(1.6);

opacity:1;

}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px){

.btn-favorito{
width:38px;
height:38px;
}

.btn-favorito i{
font-size:20px;
}

}