.product-card{
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    padding: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.product-card-body{
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-card-img{
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-card-img img{
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.producto-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #007bbf;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.producto-badge.nuevo {
    background: white;
    color: #007bbf;
}

.producto-badge.descuento {
    background: #007bbf;
}

.product-card-contenido{
    padding-top: 5%;
    text-align: left;
    display: flex;   
    flex-direction: column;     
    flex-grow: 1;
}

.product-card-contenido-categoria{
    font-size: 12px;
    color: #007bbf;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-card-contenido-nombre{
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.product-card-contenido-descripcion{
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;

    /* Truncar en 3 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.product-card-pie{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid #ecf0f1;
}

.product-card-pie-contenedorPrecio{
    display: flex;
    flex-direction: column;
    text-align: left;
    min-height: 50px;
}

.product-card-pie-contenedorPrecio-actual{
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3436;
}

.product-card-pie-contenedorPrecio-original{
    font-size: 0.625rem;
    color: #95a5a6;
    text-decoration: line-through;
}

.btn-carrito{
    background-color: #007bbf;
    color: white;
    border: none;
    width: 100%;
    max-width: 25%;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    -webkit-transition: background-color 0.3s ease;
    -moz-transition: background-color 0.3s ease;
    -ms-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
}

.btn-carrito:hover {
    background: #007bbf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 61, 138, 0.4);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
}

.btn-ver-detalles {
    width: 100%;
    background: transparent;
    color: #007bbf;
    border: 2px solid #007bbf;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 12px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

.btn-ver-detalles:hover {
    background: #007bbf;
    color: white;
}

.contenedorPaginacion-paginacion{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: clamp(0.5rem, 2vw, 2rem);
    padding: 1rem;
    flex-wrap: wrap;
}

.contenedorPaginacion-paginacion-objeto{
    border: 2px #007bbf solid;
    padding: clamp(3px, 1vw, 5px) clamp(15px, 3vw, 25px);
    border-radius: 9px;
    color: #007bbf;
    cursor: pointer;
    font-weight: bold;
    font-size: clamp(0.875rem, 2vw, 1rem);
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.contenedorPaginacion-paginacion-objeto:hover{
    color: white;
    background-color: #007bbf;
    transform: translateY(-5px);
}

.contenedorPaginacion-paginacion-objeto.flecha{
    padding: clamp(3px, 1vw, 5px) clamp(10px, 2vw, 15px);
}

/* Tablet y móviles grandes */
@media (max-width: 768px) {
    .contenedorPaginacion-paginacion{
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .contenedorPaginacion-paginacion-objeto{
        padding: 4px 18px;
        font-size: 0.9rem;
        min-width: 35px;
    }
    
    .contenedorPaginacion-paginacion-objeto.flecha{
        padding: 4px 12px;
    }
    
    .contenedorPaginacion-paginacion-objeto:hover{
        transform: translateY(-3px);
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .contenedorPaginacion-paginacion{
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .contenedorPaginacion-paginacion-objeto{
        padding: 3px 12px;
        font-size: 0.85rem;
        min-width: 30px;
        border-width: 1.5px;
    }
    
    .contenedorPaginacion-paginacion-objeto.flecha{
        padding: 3px 8px;
    }
    
    .contenedorPaginacion-paginacion-objeto:hover{
        transform: translateY(-2px);
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .contenedorPaginacion-paginacion{
        gap: 0.35rem;
    }
    
    .contenedorPaginacion-paginacion-objeto{
        padding: 2px 10px;
        font-size: 0.8rem;
        min-width: 28px;
    }
    
    .contenedorPaginacion-paginacion-objeto.flecha{
        padding: 2px 6px;
    }
}

.product-col {
    margin-bottom: 30px;
}