/* =========================================
   ESTILOS DE PRODUCTOS Y GRILLA (KOKORO)
   ========================================= */

/* Tarjeta de Producto */
.kk-product-card {
    background: #fff;
    position: relative;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.kk-product-img-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.kk-product-img-wrapper {
    position: relative;
    aspect-ratio: 3/4; /* Proporción alargada estilo ropa/maquillaje */
    background-color: #f8f8f8;
    overflow: hidden;
}

.kk-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kk-product-card:hover .kk-product-image {
    transform: scale(1.05); /* Zoom sutil al pasar el mouse */
}

/* Badge Cuadrado */
.kk-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--nude-rose);
    color: var(--contrast);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 0;
}

/* Botón Añadir Rápido (Hover) */
.kk-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.9);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.3s ease, background-color 0.2s;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.kk-product-card:hover .kk-quick-add {
    transform: translateY(0);
}

.kk-quick-add:hover {
    background-color: var(--soft-wine);
}

/* Información del producto */
.kk-product-info {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kk-product-category {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kk-product-title-link {
    text-decoration: none;
    margin: 5px 0;
}

.kk-product-title {
    font-size: 0.9rem;
    color: var(--contrast);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Máximo 2 líneas para mantener la grilla uniforme */
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.kk-product-title-link:hover .kk-product-title {
    color: var(--soft-wine);
}

/* Precios */
.kk-product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto; /* Empuja el precio al fondo si el título es corto */
    padding-top: 8px;
}

.kk-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--contrast);
}

.kk-price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

/* Puntos de color cuadrados */
.kk-color-dots {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.kk-dot {
    width: 14px;
    height: 14px;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 0; /* Geometría estricta */
}

.kk-dot.active {
    border: 2px solid var(--contrast);
}

.kk-dot-wine { background-color: var(--soft-wine); }
.kk-dot-nude { background-color: var(--nude-rose); }
.kk-dot-blush { background-color: var(--blush-pink); }

/* Paginación Cuadrada */
.kk-pagination-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.kk-pagination {
    display: flex;
    gap: 5px;
}

.kk-page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e0e0e0;
    color: var(--contrast);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0 !important;
}

.kk-page-btn:hover {
    border-color: var(--soft-wine);
    color: var(--soft-wine);
}

.kk-page-btn.active {
    background-color: var(--contrast);
    border-color: var(--contrast);
    color: white;
}

/* Estado Vacío */
.kk-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fafafa;
    border: 1px dashed #ddd;
}

.kk-empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

/* Buscador Cuadrado */
.kk-search-input {
    border-radius: 0 !important;
    border: 1px solid #ddd;
}
.kk-search-input:focus {
    box-shadow: none;
    border-color: var(--soft-wine);
}