/* Sana Home Featured & Sales v1.0.0
   Home-only enhancement. Does not change WooCommerce product data. */

.sana-hfs-selected-section,
.sana-hfs-sale-section {
    position: relative;
}

.sana-hfs-sale-section {
    padding: clamp(20px, 2.5vw, 30px);
    border: 1px solid rgba(13, 168, 168, .18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(13,168,168,.09), transparent 30%),
        #fff;
    box-shadow: 0 16px 42px -38px rgba(8, 88, 88, .55);
}

.sana-hfs-sale-section .sana-home-section-head {
    margin-bottom: 20px;
}

.sana-hfs-sale-section .sana-kicker {
    color: #0da8a8;
}

.sana-hfs-sale-section h2 {
    color: #174c4b;
}

.sana-hfs-card {
    position: relative;
    overflow: hidden;
}

.sana-hfs-card.is-sale {
    border-color: rgba(13, 168, 168, .32) !important;
}

.sana-hfs-card--sale {
    background: linear-gradient(180deg, rgba(13,168,168,.035), #fff 36%);
}

.sana-hfs-image {
    position: relative;
}

.sana-hfs-sale-badge {
    position: absolute;
    z-index: 3;
    top: 9px;
    right: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #087f80;
    color: #fff;
    box-shadow: 0 7px 18px -12px rgba(0,0,0,.55);
    font-size: .74rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.sana-hfs-price {
    display: block;
}

.sana-hfs-price del {
    color: #8a9997;
    font-size: .86em;
    font-weight: 500;
    opacity: .9;
    margin-inline-end: 5px;
}

.sana-hfs-price ins {
    color: #078d8e;
    font-weight: 900;
    text-decoration: none;
}

.sana-hfs-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.sana-hfs-nav {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(13,168,168,.24);
    border-radius: 50%;
    background: #fff;
    color: #087f80;
    font: 700 23px/1 Arial, sans-serif;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.sana-hfs-nav:hover {
    transform: translateY(-1px);
    border-color: rgba(13,168,168,.52);
    background: rgba(13,168,168,.04);
}

.sana-hfs-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sana-hfs-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(23,76,75,.22);
    transition: width .18s ease, border-radius .18s ease, background .18s ease;
}

.sana-hfs-dots span.is-active {
    width: 18px;
    border-radius: 999px;
    background: #0da8a8;
}

.sana-home-products {
    transition: opacity .17s ease, transform .17s ease;
}

.sana-home-products.is-changing {
    opacity: .18;
    transform: translateY(3px);
}

@media (max-width: 560px) {
    .sana-hfs-sale-section {
        padding: 16px 12px 18px;
        border-radius: 18px;
    }

    .sana-hfs-sale-badge {
        top: 6px;
        right: 6px;
        min-height: 26px;
        padding: 4px 8px;
        font-size: .66rem;
    }

    .sana-hfs-controls {
        margin-top: 12px;
    }

    .sana-hfs-nav {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sana-home-products,
    .sana-hfs-nav,
    .sana-hfs-dots span {
        transition: none !important;
    }
}
