/**
 * File: assets/css/frontend/catalog/home-featured-products.css
 * Purpose: Styles the paired HyperDAF Vpro theme and WhatsApp Floating Button homepage promotions.
 * Scope: HyperDAF Pro homepage featured-product section only.
 * Related PHP: src/Product/Catalog/Frontend/HomeFeaturedProductsRenderer.php
 * Related JS: None
 * Package: HyperDAF Engine
 */

.hdf-home-featured-products {
    position: relative;
    padding: 20px 0 1rem;
    background: var(--hdf-engine-color-surface);
}

.hdf-home-featured-products__inner {
    display: grid;
    width: min(calc(100% - 4rem), 81.25rem);
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.hdf-home-featured-product {
    display: grid;
    min-width: 0;
    min-height: 14.5rem;
    grid-template-columns: minmax(11.5rem, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 1.7rem);
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--hdf-engine-color-border);
    border-radius: 0.85rem;
    background: linear-gradient(145deg, var(--hdf-engine-color-surface) 0%, var(--hdf-engine-color-surface-hover) 100%);
    box-shadow: 0 8px 24px rgb(16 24 40 / 5%);
}

.hdf-home-featured-product__visual {
    display: grid;
    min-width: 0;
    min-height: 12rem;
    place-items: center;
}

.hdf-home-featured-product__image {
    display: block;
    width: 100%;
    max-width: 13.5rem;
    max-height: 12.75rem;
    object-fit: contain;
    filter: drop-shadow(0 14px 13px rgb(16 24 40 / 18%));
}

.hdf-home-featured-product__box {
    position: relative;
    display: flex;
    width: min(100%, 10rem);
    min-height: 12rem;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 1rem 0.9rem;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 0.35rem;
    background: linear-gradient(150deg, color-mix(in srgb, var(--hdf-engine-color-primary-strong) 55%, var(--hdf-engine-color-text-strong)) 0%, var(--hdf-engine-color-text-strong) 68%, var(--hdf-engine-color-text) 100%);
    box-shadow: 0 18px 24px rgb(16 24 40 / 22%), inset -1.1rem 0 0 rgb(255 255 255 / 5%);
    color: var(--hdf-engine-color-text-inverse);
    transform: perspective(44rem) rotateY(-7deg);
}

.hdf-home-featured-product__box::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.45rem;
    background: var(--hdf-engine-color-primary);
    content: "";
}

.hdf-home-featured-product__box--whatsapp {
    background: linear-gradient(165deg, var(--hdf-engine-color-primary-strong) 0 36%, var(--hdf-engine-color-text-strong) 36% 100%);
}

.hdf-home-featured-product__box-brand {
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    color: color-mix(in srgb, var(--hdf-engine-color-primary) 38%, var(--hdf-engine-color-text-inverse));
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hdf-home-featured-product__box strong {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.08;
}

.hdf-home-featured-product__box small {
    position: relative;
    z-index: 1;
    margin-top: 0.35rem;
    color: color-mix(in srgb, var(--hdf-engine-color-primary) 34%, var(--hdf-engine-color-text-inverse));
    font-size: 0.7rem;
    line-height: 1.3;
}

.hdf-home-featured-product__box-orbit {
    position: absolute;
    top: 2.2rem;
    right: 0.9rem;
    width: 3.1rem;
    height: 3.1rem;
    border: 1px solid rgb(170 217 127 / 45%);
    border-radius: 50%;
    box-shadow: 0 0 0 0.55rem rgb(121 181 48 / 7%), 0 0 0 1rem rgb(121 181 48 / 5%);
}

.hdf-home-featured-product__box-icon {
    position: absolute;
    top: 2.8rem;
    left: 50%;
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border-radius: 50%;
    background: var(--hdf-engine-color-text-inverse);
    color: var(--hdf-engine-color-success);
    transform: translateX(-50%);
}

.hdf-home-featured-product__box-icon svg {
    width: 2.7rem;
    height: 2.7rem;
}

.hdf-home-featured-product__content {
    min-width: 0;
}

.hdf-home-featured-product__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong));
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.hdf-home-featured-product__title {
    margin: 0;
    color: var(--hdf-engine-color-text);
    font-size: clamp(1.35rem, 1.8vw, 1.75rem);
    font-weight: 760;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.hdf-home-featured-product__subtitle {
    margin: 0.2rem 0 0;
    color: var(--hdf-engine-color-text-secondary);
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.35;
}

.hdf-home-featured-product__features {
    display: grid;
    gap: 0.32rem;
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
}

.hdf-home-featured-product__features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hdf-engine-color-text-secondary);
    font-size: 0.78rem;
    line-height: 1.35;
}

.hdf-home-featured-product__features li span {
    display: grid;
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong)) 30%, transparent);
    border-radius: 50%;
    color: var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong));
    font-size: 0.62rem;
    font-weight: 900;
}

.hdf-home-featured-product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.hdf-home-featured-product__button {
    display: inline-flex;
    min-width: 7.2rem;
    min-height: 2.45rem;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border: 1px solid var(--hdf-engine-color-border);
    border-radius: 0.4rem;
    background: var(--hdf-engine-color-text-inverse);
    color: var(--hdf-engine-color-text);
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.hdf-home-featured-product__button:hover,
.hdf-home-featured-product__button:focus-visible {
    border-color: var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong));
    color: var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong));
}

.hdf-home-featured-product__button.is-primary {
    border-color: var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong));
    background: var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong));
    color: var(--hdf-engine-color-text-inverse);
}

.hdf-home-featured-product__button.is-primary:hover,
.hdf-home-featured-product__button.is-primary:focus-visible {
    border-color: var(--hdf-engine-color-primary-hover);
    background: var(--hdf-engine-color-primary-hover);
    color: var(--hdf-engine-color-text-inverse);
}

.hdf-home-featured-products__whatsapp-preview {
    position: absolute;
    right: max(1rem, calc((100vw - 81.25rem) / 2 - 0.75rem));
    bottom: 1.2rem;
    display: grid;
    width: 3.2rem;
    height: 3.2rem;
    place-items: center;
    border: 3px solid var(--hdf-engine-color-text-inverse);
    border-radius: 50%;
    background: var(--hdf-engine-color-success);
    box-shadow: 0 8px 24px rgb(16 24 40 / 24%);
    color: var(--hdf-engine-color-text-inverse);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hdf-home-featured-products__whatsapp-preview:hover,
.hdf-home-featured-products__whatsapp-preview:focus-visible {
    color: var(--hdf-engine-color-text-inverse);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgb(16 24 40 / 28%);
}

.hdf-home-featured-products__whatsapp-preview svg {
    width: 1.9rem;
    height: 1.9rem;
}

@media (max-width: 64rem) {
    .hdf-home-featured-products__inner {
        width: min(calc(100% - 2.5rem), 81.25rem);
        grid-template-columns: 1fr;
    }

    .hdf-home-featured-product {
        grid-template-columns: minmax(10rem, 0.5fr) minmax(0, 1.5fr);
    }

    .hdf-home-featured-products__whatsapp-preview {
        right: 1.25rem;
    }
}

@media (max-width: 42rem) {
    .hdf-home-featured-products {
        padding-bottom: 1.2rem;
    }

    .hdf-home-featured-products__inner {
        width: min(calc(100% - 2rem), 81.25rem);
    }

    .hdf-home-featured-product {
        grid-template-columns: 1fr;
        padding: 1.1rem;
        text-align: left;
    }

    .hdf-home-featured-product__visual {
        min-height: 10.5rem;
    }

    .hdf-home-featured-product__image {
        max-height: 11rem;
    }

    .hdf-home-featured-product__box {
        min-height: 10.5rem;
    }

    .hdf-home-featured-product__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hdf-home-featured-product__button {
        min-width: 0;
        width: 100%;
    }

    .hdf-home-featured-products__whatsapp-preview {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 2.9rem;
        height: 2.9rem;
    }
}
