/* ============================================================
   WIDGET — PRODUCTOS DESTACADOS
   ============================================================ */

.hb-products {
    padding: 50px 0;
    background: var(--hb-cream);
}
.hb-products__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Tabs */
.hb-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.hb-tab {
    font-family: var(--hb-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 9px 22px;
    border-radius: 50px;
    border: 1.5px solid var(--color-rosa2);
    cursor: pointer;
    color: var(--hb-gray);
    background: transparent;
    transition: all .25s;
}
.hb-tab:hover {
    border-color: var(--color-rosa3);
    color: var(--color-rosa3);
}
.hb-tab.is-active {
    background: var(--color-rosa3);
    border-color: var(--color-rosa3);
    color: #fff;
}

/* Tab panels */
.hb-tab-panel           { display: none; }
.hb-tab-panel.is-active { display: grid; }

.hb-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product Card */
.hb-product-card {
    background: #fff;
    border-radius: var(--hb-radius);
    overflow: hidden;
    position: relative; /* ← NUEVO: ancla el botón + activa el clip */
    border: 1px solid var(--color-rosa2);
    transition: box-shadow .35s, transform .35s;
}

.hb-product-card:hover {
    box-shadow: 0 16px 48px rgba(255,149,191,.2);
    transform: translateY(-4px);
}
.hb-product-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--color-rosa1);
}
.hb-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .5s, transform .6s var(--hb-ease);
    position: absolute;
    inset: 0;

}
.hb-product-card__img--front { opacity: 1; z-index: 1; border-radius:0px;}
.hb-product-card__img--back  { opacity: 0; z-index: 2; transform: scale(1.05); }
.hb-product-card:hover .hb-product-card__img--front { opacity: 0; }
.hb-product-card:hover .hb-product-card__img--back  { opacity: 1; transform: scale(1); }
.hb-product-card:hover .hb-product-card__img--front:only-child {
    transform: scale(1.06);
    opacity: 1;
}

/* Badge */
.hb-product-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    font-family: var(--hb-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--hb-gray);
    color: #fff;
}
.hb-product-card__badge--sale { background: #e14d4d; }
.hb-product-card__badge--new  { background: var(--color-rosa3); }

/* Quick add — oscuro para contrastar con imagen */
.hb-product-card__quick {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: var(--color-rosa3);
    color: #fff;
    font-family: var(--hb-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    padding: 14px;
    cursor: pointer;
    border: none;
    transform: translateY(100%);
    transition: transform .35s var(--hb-ease), background .2s;
    width: 100%;
}


.hb-product-card:hover .hb-product-card__quick {
    transform: translateY(0);
}

.hb-product-card__quick:hover { background: var(--color-rosa3); }


.hb-product-card__wish {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
}

    .hb-product-card__wish i {
        font-size: 13px;
        color: #ccc;
        transition: color 0.2s ease;
    }

    .hb-product-card__wish:hover {
        transform: scale(1.12);
        background: #fff;
    }

        .hb-product-card__wish:hover i,
        .hb-product-card__wish.active i {
            color: var(--color-rosa3);
        }

/* Info */
.hb-product-card__info {
    padding: 16px;
    margin-bottom: 40px;
    transition: transform .35s var(--hb-ease);
}



.hb-product-card__category {
    font-family: var(--hb-body);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-rosa3);
    margin: 0 0 5px;
}
.hb-product-card__name {
    font-family: var(--hb-display);
    font-size: 16px;
    font-weight: 400;
    color: var(--hb-dark);
    margin: 0 0 10px;
    line-height: 1.3;
}
.hb-product-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.hb-product-card__name a:hover { color: var(--color-rosa3); }

/* Price */
.hb-product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.hb-price-current {
    font-family: var(--hb-body);
    font-size: 17px;
    font-weight: 700;
    color: var(--hb-dark);
}
.hb-price-original {
    font-family: var(--hb-body);
    font-size: 12px;
    color: var(--hb-gray-light);
    text-decoration: line-through;
}
.hb-price-sale { color: #e14d4d; }

/* Stars */
.hb-stars {
    display: flex;
    gap: 2px;
    margin-top: 8px;
}
.hb-stars i    { font-size: 11px; color: #f5b942; }
.hb-stars span {
    font-family: var(--hb-body);
    font-size: 10px;
    color: var(--hb-gray-light);
    margin-left: 4px;
}

/* Swatches */
.hb-product-card__colors {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}
.hb-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,.1);
    cursor: pointer;
    transition: transform .2s, border-color .2s;
}
.hb-swatch:hover,
.hb-swatch.is-active {
    transform: scale(1.3);
    border-color: var(--color-rosa3);
}

/* Empty state */
.hb-empty-tab {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--hb-gray-light);
    padding: 40px 0;
    font-family: var(--hb-body);
    font-size: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hb-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hb-products {
        padding: 40px 0;
    }

    .hb-products__inner {
        padding: 0 20px;
    }

    /* ✅ Inactivos siguen ocultos */
    .hb-tab-panel.hb-products-grid {
        display: none !important;
    }

        /* ✅ Solo el activo se muestra como grid */
        .hb-tab-panel.hb-products-grid.is-active {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

   

    .hb-product-card {
        margin: 0 0px;
    }

    .hb-product-card__quick {
        transform: translateY(0);
        padding: 12px;
    }

    .hb-section-header {
        margin-bottom: 32px;
    }

    /* Dots del slider de productos */
    .hb-tab-panel .slick-dots {
        display: flex !important;
        justify-content: center;
        gap: 6px;
        list-style: none;
        padding: 16px 0 0;
        margin: 0;
    }

        .hb-tab-panel .slick-dots li button {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--color-rosa2);
            border: none;
            cursor: pointer;
            font-size: 0;
            padding: 0;
            transition: all .3s;
        }

        .hb-tab-panel .slick-dots li.slick-active button {
            background: var(--color-rosa3);
            width: 22px;
            border-radius: 4px;
        }
}

@media (max-width: 480px) {
    .hb-product-card__info  { padding: 12px; }
    .hb-product-card__name  { font-size: 14px; }
    .hb-product-card__quick {
        padding: 8px;
    }
}

.hb-product-card__wish.active {
    opacity: 1;
    color: var(--color-rosa3);
}