/* 
* Estilos para la grilla de productos personalizada 
*/

/* Contenedor principal */
.hc-product-grid {
    margin: 30px 0;
}

/* Estilo para cada item de producto */
.hc-product-item {
    margin-bottom: 30px;
}

/* Contenedor interno del producto */
.hc-product-inner {
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    padding: 15px;
    max-height: 448px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hc-product-inner:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Área de imagen del producto */
.hc-product-thumbnail {
    margin-bottom: 15px;
    text-align: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hc-product-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-product-thumbnail img {
    width: 100%;
    height: 200px;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    background-color: #f8f8f8;
    object-fit: contain;
}

.no-image-placeholder {
    width: 100%;
    height: 200px;
    min-height: 200px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* .no-image-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-style: italic;
    font-size: 14px;
} */

/* Detalles del producto */
.hc-product-details {
    padding: 0 10px;
}

/* Título del producto */
.hc-product-title {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
}

.hc-product-title a {
    color: #333;
    text-decoration: none;
}

.hc-product-title a:hover {
    color: #0073aa;
}

/* SKU del producto */
.hc-product-sku {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* Precio del producto */
.hc-product-price {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

.hc-product-price del {
    color: #999;
    font-weight: normal;
    font-size: 14px;
    margin-right: 5px;
}

.hc-product-price ins {
    text-decoration: none;
    color: #d9534f;
}

/* Estado del stock */
.hc-product-stock {
    margin-bottom: 15px;
    font-size: 14px;
}

.hc-product-stock .in-stock {
    color: #5cb85c;
    font-weight: 600;
}

.hc-product-stock .out-of-stock {
    color: #d9534f;
    font-weight: 600;
}

/* Botones */
.hc-product-button .button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.hc-product-button .button:hover {
    background-color: #005177;
}

/* Mensaje para usuarios no conectados */
.hc-product-login-message button {
    display: block;
    width: 100%;
    background-color: #d9534f;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hc-product-login-message button:hover {
    background-color: #c9302c;
}

/* Paginación */
.hc-pagination {
    text-align: center;
    margin-top: 30px;
}

.hc-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.hc-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.hc-pagination .page-numbers:hover {
    background-color: #f5f5f5;
}

/* Mensaje de "No hay productos" */
.no-products {
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

/* Responsive */
@media (max-width: 991px) {
    .hc-product-title {
        height: auto;
        max-height: 60px;
    }
}

@media (max-width: 767px) {
    .hc-product-inner {
        padding: 10px;
    }
    
    .hc-product-details {
        padding: 0 5px;
    }
}
