/* Yasta Fashion V4.17.0.6 — extracted cacheable page CSS from pages/home.php */

/* ======================================================
       YASTA HOMEPAGE PREMIUM
    ====================================================== */

    .yf-home {
        --yf-primary: #ff642f;
        --yf-primary-dark: #e94f1d;
        --yf-primary-soft: #fff3ee;
        --yf-ink: #172033;
        --yf-muted: #738096;
        --yf-border: #e9edf3;
        --yf-surface: #ffffff;
        --yf-background: #f7f8fb;
        --yf-success: #159455;
        --yf-warning: #f3a712;
        color: var(--yf-ink);
    }

    .yf-home-shell {
        width: min(1420px, calc(100% - 32px));
        margin-inline: auto;
    }

    /* ======================================================
       BENEFIT STRIP
    ====================================================== */

    .yf-home-benefits {
        margin-top: 17px;
        padding: 13px 17px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: #fff;
        border: 1px solid var(--yf-border);
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(29, 42, 68, .045);
    }

    .yf-home-benefit {
        padding: 4px 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 11px;
        border-right: 1px solid var(--yf-border);
    }

    .yf-home-benefit:last-child {
        border-right: 0;
    }

    .yf-home-benefit-icon {
        width: 37px;
        height: 37px;
        flex: 0 0 37px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--yf-primary);
        background: var(--yf-primary-soft);
        border-radius: 11px;
        font-size: 15px;
    }

    .yf-home-benefit strong {
        display: block;
        font-size: 11px;
        font-weight: 800;
    }

    .yf-home-benefit small {
        display: block;
        margin-top: 2px;
        color: var(--yf-muted);
        font-size: 9px;
    }

    /* ======================================================
       HERO
    ====================================================== */

   .yf-home-hero {
    margin-top: 14px;
}
    .yf-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 2.05fr) minmax(265px, .95fr);
        gap: 16px;
    }

    .yf-hero-slider {
        position: relative;
        min-height: 440px;
        overflow: hidden;
        background: #1d2939;
        border-radius: 24px;
        box-shadow: 0 18px 45px rgba(27, 39, 65, .12);
    }

    .yf-hero-slider .carousel-inner,
    .yf-hero-slider .carousel-item {
        height: 440px;
    }

    .yf-hero-image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .8s ease;
    }

    .yf-hero-slider:hover .carousel-item.active .yf-hero-image {
        transform: scale(1.025);
    }

    .yf-hero-overlay {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                90deg,
                rgba(10, 18, 32, .76) 0%,
                rgba(10, 18, 32, .4) 46%,
                rgba(10, 18, 32, .08) 78%
            );
    }

    .yf-hero-content {
        position: absolute;
        top: 50%;
        left: clamp(24px, 5vw, 66px);
        z-index: 2;
        width: min(540px, calc(100% - 48px));
        transform: translateY(-50%);
    }

    .yf-hero-eyebrow {
        width: fit-content;
        margin-bottom: 15px;
        padding: 7px 13px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #fff;
        background: rgba(255, 100, 47, .92);
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 999px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .4px;
    }

    .yf-hero-content h1,
    .yf-hero-content h2 {
        max-width: 540px;
        margin: 0;
        color: #fff;
        font-size: clamp(30px, 4.2vw, 52px);
        font-weight: 850;
        line-height: 1.08;
        letter-spacing: -1.5px;
        text-shadow: 0 5px 25px rgba(0, 0, 0, .2);
    }

    .yf-hero-content p {
        max-width: 490px;
        margin: 17px 0 0;
        color: rgba(255, 255, 255, .86);
        font-size: 13px;
        line-height: 1.75;
    }

    .yf-hero-action {
        margin-top: 23px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .yf-hero-button {
        min-height: 44px;
        padding: 10px 19px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #fff;
        background: var(--yf-primary);
        border-radius: 12px;
        font-size: 11px;
        font-weight: 800;
        text-decoration: none;
        box-shadow: 0 10px 25px rgba(255, 100, 47, .28);
        transition:
            color .2s ease,
            background .2s ease,
            transform .2s ease;
    }

    .yf-hero-button:hover {
        color: #fff;
        background: var(--yf-primary-dark);
        transform: translateY(-2px);
    }

    .yf-hero-button-secondary {
        color: #fff;
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .2);
        box-shadow: none;
        backdrop-filter: blur(10px);
    }

    .yf-hero-button-secondary:hover {
        color: #fff;
        background: rgba(255, 255, 255, .19);
    }

    .yf-hero-slider .carousel-indicators {
        right: auto;
        left: clamp(24px, 5vw, 66px);
        margin: 0 0 22px;
        justify-content: flex-start;
    }

    .yf-hero-slider .carousel-indicators [data-bs-target] {
        width: 7px;
        height: 7px;
        margin: 0 4px;
        border: 0;
        border-radius: 999px;
        opacity: .55;
        transition:
            width .2s ease,
            opacity .2s ease;
    }

    .yf-hero-slider .carousel-indicators .active {
        width: 25px;
        background: var(--yf-primary);
        opacity: 1;
    }

    .yf-hero-placeholder {
        height: 440px;
        display: flex;
        align-items: center;
        background:
            radial-gradient(
                circle at 78% 28%,
                rgba(255, 127, 80, .38),
                transparent 25%
            ),
            radial-gradient(
                circle at 85% 85%,
                rgba(255, 255, 255, .09),
                transparent 28%
            ),
            linear-gradient(
                135deg,
                #172033,
                #263652
            );
    }

    /* ======================================================
       SIDE PROMOS
    ====================================================== */

    .yf-hero-side {
        display: grid;
        grid-template-rows: 1fr 1fr;
        gap: 16px;
    }

    .yf-side-card {
        position: relative;
        min-height: 212px;
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
        color: #fff;
        border-radius: 22px;
        box-shadow: 0 14px 35px rgba(27, 39, 65, .1);
        isolation: isolate;
    }

    .yf-side-card::before,
    .yf-side-card::after {
        content: "";
        position: absolute;
        z-index: -1;
        border-radius: 50%;
    }

    .yf-side-card::before {
        top: -55px;
        right: -35px;
        width: 155px;
        height: 155px;
        border: 30px solid rgba(255, 255, 255, .09);
    }

    .yf-side-card::after {
        right: 26px;
        bottom: -46px;
        width: 110px;
        height: 110px;
        background: rgba(255, 255, 255, .07);
    }

    .yf-side-card.orange {
        background:
            linear-gradient(
                135deg,
                #ff642f,
                #ff895f
            );
    }

    .yf-side-card.dark {
        background:
            linear-gradient(
                135deg,
                #172033,
                #2d3c58
            );
    }

    .yf-side-card-icon {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: inherit;
        background: rgba(255, 255, 255, .14);
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 13px;
        font-size: 18px;
    }

    .yf-side-card small {
        display: block;
        margin-bottom: 6px;
        color: rgba(255, 255, 255, .72);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .8px;
        text-transform: uppercase;
    }

    .yf-side-card h3 {
        max-width: 240px;
        margin: 0;
        color: #fff;
        font-size: 20px;
        font-weight: 850;
        line-height: 1.25;
    }

    .yf-side-link {
        width: fit-content;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        text-decoration: none;
    }

    .yf-side-link:hover {
        color: #fff;
    }

    /* ======================================================
       SECTION
    ====================================================== */

    .yf-products-section {
        padding: 58px 0 18px;
    }

    .yf-section-header {
        margin-bottom: 24px;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
    }

    .yf-section-eyebrow {
        margin-bottom: 6px;
        display: block;
        color: var(--yf-primary);
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }

    .yf-section-header h2 {
        margin: 0;
        color: var(--yf-ink);
        font-size: clamp(23px, 3vw, 32px);
        font-weight: 850;
        letter-spacing: -.8px;
    }

    .yf-section-header p {
        margin: 7px 0 0;
        color: var(--yf-muted);
        font-size: 11px;
    }

    .yf-view-all {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 9px 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: var(--yf-primary);
        background: var(--yf-primary-soft);
        border: 1px solid #ffe0d3;
        border-radius: 11px;
        font-size: 10px;
        font-weight: 800;
        text-decoration: none;
        transition:
            color .2s ease,
            background .2s ease,
            transform .2s ease;
    }

    .yf-view-all:hover {
        color: #fff;
        background: var(--yf-primary);
        transform: translateY(-2px);
    }

    /* ======================================================
       PRODUCT GRID
    ====================================================== */

    .yf-product-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 17px;
    }

    .yf-product-link {
        min-width: 0;
        display: block;
        color: inherit;
        text-decoration: none;
    }

    .yf-product-link:hover {
        color: inherit;
    }

    .yf-product-card {
        position: relative;
        height: 100%;
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--yf-border);
        border-radius: 18px;
        box-shadow: 0 7px 25px rgba(29, 42, 68, .055);
        transition:
            transform .25s ease,
            box-shadow .25s ease,
            border-color .25s ease;
    }

    .yf-product-card:hover {
        border-color: #ffd7c8;
        box-shadow: 0 18px 42px rgba(29, 42, 68, .12);
        transform: translateY(-5px);
    }

    .yf-product-image-wrap {
        position: relative;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background:
            linear-gradient(
                145deg,
                #fafbfc,
                #f2f4f8
            );
    }

    .yf-product-image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        padding: 5px;
        transition: transform .4s ease;
    }

    .yf-product-card:hover .yf-product-image {
        transform: scale(1.035);
    }

    .yf-product-image-wrap.image-error::after {
        content: "Yasta Fashion";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: #a0a8b6;
        font-size: 11px;
        font-weight: 800;
    }

    .yf-product-status {
        position: absolute;
        top: 11px;
        left: 11px;
        z-index: 2;
        padding: 6px 9px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--yf-success);
        background: rgba(255, 255, 255, .94);
        border: 1px solid rgba(21, 148, 85, .14);
        border-radius: 999px;
        font-size: 8px;
        font-weight: 850;
        box-shadow: 0 5px 16px rgba(29, 42, 68, .08);
        backdrop-filter: blur(8px);
    }

    .yf-product-status.out {
        color: #dc3545;
        border-color: rgba(220, 53, 69, .15);
    }

    .yf-product-status i {
        font-size: 7px;
    }

    .yf-product-body {
        padding: 15px;
    }

    .yf-product-official {
        margin-bottom: 7px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--yf-primary);
        font-size: 8px;
        font-weight: 850;
        letter-spacing: .2px;
        text-transform: uppercase;
    }

    .yf-product-title {
        min-height: 43px;
        margin: 0;
        display: -webkit-box;
        overflow: hidden;
        color: var(--yf-ink);
        font-size: 12px;
        font-weight: 650;
        line-height: 1.55;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        transition: color .2s ease;
    }

    .yf-product-card:hover .yf-product-title {
        color: var(--yf-primary);
    }

    .yf-product-meta {
        min-height: 19px;
        margin-top: 9px;
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--yf-muted);
        font-size: 9px;
    }

    .yf-product-meta i {
        color: var(--yf-warning);
    }

    .yf-product-price {
        margin-top: 9px;
        color: var(--yf-primary);
        font-size: clamp(17px, 2vw, 21px);
        font-weight: 850;
        letter-spacing: -.5px;
    }

    .yf-product-action {
        margin-top: 13px;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: #fff;
        background: var(--yf-primary);
        border-radius: 10px;
        font-size: 9px;
        font-weight: 850;
        transition:
            background .2s ease,
            transform .2s ease;
    }

    .yf-product-card:hover .yf-product-action {
        background: var(--yf-primary-dark);
    }

    .yf-product-action.disabled {
        color: #788397;
        background: #edf0f4;
    }

    /* ======================================================
       EMPTY STATE
    ====================================================== */

    .yf-product-empty {
        grid-column: 1 / -1;
        padding: 60px 20px;
        color: var(--yf-muted);
        background: #fff;
        border: 1px dashed #dce2ec;
        border-radius: 20px;
        text-align: center;
    }

    .yf-product-empty i {
        display: block;
        margin-bottom: 13px;
        color: #c2c9d4;
        font-size: 40px;
    }

    .yf-product-empty strong {
        display: block;
        margin-bottom: 5px;
        color: var(--yf-ink);
        font-size: 15px;
    }

    /* ======================================================
       SHOPPING INFO
    ====================================================== */

    .yf-shopping-info {
        margin: 45px 0 20px;
        padding: 31px;
        display: grid;
        grid-template-columns: 1.3fr repeat(3, 1fr);
        gap: 20px;
        color: #fff;
        background:
            radial-gradient(
                circle at 90% 15%,
                rgba(255, 100, 47, .22),
                transparent 28%
            ),
            linear-gradient(
                145deg,
                #172033,
                #263652
            );
        border-radius: 23px;
        box-shadow: 0 18px 45px rgba(27, 39, 65, .13);
    }

    .yf-shopping-info-main h2 {
        margin: 0;
        font-size: 21px;
        font-weight: 850;
    }

    .yf-shopping-info-main p {
        margin: 8px 0 0;
        color: rgba(255, 255, 255, .66);
        font-size: 10px;
        line-height: 1.7;
    }

    .yf-shopping-info-item {
        padding-left: 19px;
        display: flex;
        align-items: center;
        gap: 11px;
        border-left: 1px solid rgba(255, 255, 255, .1);
    }

    .yf-shopping-info-icon {
        width: 39px;
        height: 39px;
        flex: 0 0 39px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ff986e;
        background: rgba(255, 100, 47, .12);
        border-radius: 11px;
        font-size: 16px;
    }

    .yf-shopping-info-item strong {
        display: block;
        font-size: 10px;
    }

    .yf-shopping-info-item small {
        display: block;
        margin-top: 3px;
        color: rgba(255, 255, 255, .6);
        font-size: 8px;
        line-height: 1.5;
    }

    /* ======================================================
       RESPONSIVE
    ====================================================== */

    @media (max-width: 1199px) {
        .yf-product-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .yf-shopping-info {
            grid-template-columns: repeat(3, 1fr);
        }

        .yf-shopping-info-main {
            grid-column: 1 / -1;
        }

        .yf-shopping-info-item:first-of-type {
            padding-left: 0;
            border-left: 0;
        }
    }

    @media (max-width: 991px) {
        .yf-hero-grid {
            grid-template-columns: 1fr;
        }

        .yf-hero-slider,
        .yf-hero-slider .carousel-inner,
        .yf-hero-slider .carousel-item,
        .yf-hero-placeholder {
            min-height: 350px;
            height: 350px;
        }

        .yf-hero-side {
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto;
        }

        .yf-side-card {
            min-height: 180px;
        }

        .yf-home-benefits {
            grid-template-columns: repeat(2, 1fr);
        }

        .yf-home-benefit:nth-child(2) {
            border-right: 0;
        }

        .yf-home-benefit:nth-child(-n+2) {
            margin-bottom: 12px;
        }
    }

    @media (max-width: 767px) {
        .yf-home-shell {
            width: min(100% - 20px, 1420px);
        }

        .yf-home-benefits {
            padding: 11px;
        }

        .yf-home-benefit {
            padding: 4px 9px;
            justify-content: flex-start;
        }

        .yf-home-benefit-icon {
            width: 32px;
            height: 32px;
            flex-basis: 32px;
            border-radius: 9px;
            font-size: 13px;
        }

        .yf-home-benefit strong {
            font-size: 9px;
        }

        .yf-home-benefit small {
            display: none;
        }

        .yf-hero-slider,
        .yf-hero-slider .carousel-inner,
        .yf-hero-slider .carousel-item,
        .yf-hero-placeholder {
            min-height: 275px;
            height: 275px;
            border-radius: 17px;
        }

        .yf-hero-overlay {
            background:
                linear-gradient(
                    90deg,
                    rgba(10, 18, 32, .72),
                    rgba(10, 18, 32, .16)
                );
        }

        .yf-hero-content {
            left: 20px;
            width: calc(100% - 40px);
        }

        .yf-hero-content h1,
        .yf-hero-content h2 {
            max-width: 360px;
            font-size: 27px;
            letter-spacing: -.8px;
        }

        .yf-hero-content p {
            max-width: 350px;
            margin-top: 10px;
            display: -webkit-box;
            overflow: hidden;
            font-size: 10px;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .yf-hero-action {
            margin-top: 15px;
        }

        .yf-hero-button {
            min-height: 38px;
            padding: 8px 13px;
            font-size: 9px;
        }

        .yf-hero-slider .carousel-indicators {
            left: 20px;
            margin-bottom: 13px;
        }

        .yf-hero-side {
            gap: 10px;
        }

        .yf-side-card {
            min-height: 155px;
            padding: 18px;
            border-radius: 16px;
        }

        .yf-side-card-icon {
            width: 35px;
            height: 35px;
            border-radius: 10px;
            font-size: 14px;
        }

        .yf-side-card h3 {
            font-size: 15px;
        }

        .yf-products-section {
            padding-top: 41px;
        }

        .yf-section-header {
            align-items: center;
            margin-bottom: 17px;
        }

        .yf-section-header p {
            display: none;
        }

        .yf-view-all {
            min-height: 36px;
            padding: 7px 10px;
            font-size: 9px;
        }

        .yf-product-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .yf-product-card {
            border-radius: 13px;
        }

        .yf-product-body {
            padding: 11px;
        }

        .yf-product-title {
            min-height: 39px;
            font-size: 10.5px;
        }

        .yf-product-price {
            font-size: 16px;
        }

        .yf-product-action {
            min-height: 34px;
            margin-top: 10px;
            font-size: 8px;
        }

        .yf-product-status {
            top: 7px;
            left: 7px;
            padding: 5px 7px;
            font-size: 7px;
        }

        .yf-shopping-info {
            margin-top: 30px;
            padding: 22px;
            grid-template-columns: 1fr;
            gap: 16px;
            border-radius: 18px;
        }

        .yf-shopping-info-item {
            padding: 12px 0 0;
            border-top: 1px solid rgba(255, 255, 255, .1);
            border-left: 0;
        }

        .yf-shopping-info-item:first-of-type {
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, .1);
        }
    }

    @media (max-width: 430px) {
        .yf-home-benefit {
            gap: 7px;
        }

        .yf-home-benefit-icon {
            width: 29px;
            height: 29px;
            flex-basis: 29px;
        }

        .yf-side-card {
            min-height: 145px;
        }

        .yf-side-link {
            font-size: 8px;
        }

        .yf-product-official {
            font-size: 7px;
        }

        .yf-product-meta {
            font-size: 8px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .yf-home *,
        .yf-home *::before,
        .yf-home *::after {
            scroll-behavior: auto !important;
            transition-duration: .01ms !important;
            animation-duration: .01ms !important;
        }
    }
    /* ======================================================
   HERO BANNER PREMIUM V2
   Banner tampil utuh tanpa terpotong
====================================================== */

.yf-hero-slider {
    background: #182235;
}

.yf-hero-slider .carousel-item {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/*
 * Latar belakang menggunakan gambar banner yang sama,
 * diperbesar dan diblur untuk mengisi ruang kosong.
 */
.yf-hero-slider .carousel-item::before {
    content: "";
    position: absolute;
    inset: -35px;
    z-index: -2;
    background-image:
        var(--yf-banner-background);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter:
        blur(24px)
        brightness(.62)
        saturate(1.15);
    transform: scale(1.1);
}

.yf-hero-slider .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(13, 21, 36, .45),
            rgba(13, 21, 36, .08),
            rgba(13, 21, 36, .28)
        );
    pointer-events: none;
}

/*
 * contain membuat seluruh banner tampil,
 * tidak ada bagian yang dipotong.
 */
.yf-hero-image {
    position: relative;
    z-index: 0;
    object-fit: contain;
    object-position: center;
    padding: 0;
}

/*
 * Overlay dibuat lebih ringan karena backdrop blur
 * sudah memberikan kontras.
 */
.yf-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(10, 18, 32, .63) 0%,
            rgba(10, 18, 32, .18) 48%,
            rgba(10, 18, 32, .04) 75%
        );
    pointer-events: none;
}

.yf-hero-content {
    z-index: 2;
}

/* Navigasi banner */
.yf-hero-slider .carousel-control-prev,
.yf-hero-slider .carousel-control-next {
    width: 48px;
    opacity: 0;
    transition: opacity .2s ease;
}

.yf-hero-slider:hover .carousel-control-prev,
.yf-hero-slider:hover .carousel-control-next {
    opacity: .85;
}

.yf-hero-slider .carousel-indicators {
    z-index: 4;
}

/* ======================================================
   PROMO SIDE CARDS PREMIUM
====================================================== */

.yf-side-card {
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.yf-side-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 19px 42px rgba(27, 39, 65, .17);
}

.yf-side-card h3 {
    text-wrap: balance;
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 991px) {

    .yf-hero-slider,
    .yf-hero-slider .carousel-inner,
    .yf-hero-slider .carousel-item,
    .yf-hero-placeholder {
        width: 100%;
        height: clamp(
            280px,
            49vw,
            390px
        );
        min-height: 0;
    }

    /*
     * Kartu promo diperkecil menjadi satu baris.
     */
    .yf-hero-side {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .yf-side-card {
        min-height: 132px;
        padding: 17px;
    }

    .yf-side-card-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .yf-side-card small {
        margin-bottom: 3px;
        font-size: 7px;
    }

    .yf-side-card h3 {
        max-width: 210px;
        font-size: 13px;
        line-height: 1.35;
    }

    .yf-side-link {
        font-size: 8px;
    }
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 767px) {

    .yf-home-hero {
        margin-top: 10px;
    }

    .yf-hero-grid {
        gap: 10px;
    }

    /*
     * Rasio mobile lebih pendek.
     * Gambar tetap tampil seluruhnya menggunakan contain.
     */
    .yf-hero-slider,
    .yf-hero-slider .carousel-inner,
    .yf-hero-slider .carousel-item {
        width: 100%;
        height: clamp(
            205px,
            53vw,
            275px
        );
        min-height: 0;
        border-radius: 16px;
    }

    .yf-hero-placeholder {
        height: 230px;
        min-height: 230px;
        border-radius: 16px;
    }

    .yf-hero-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    /*
     * Pada banner yang memiliki gambar,
     * teks overlay disembunyikan di mobile agar gambar
     * promo tidak tertutup.
     *
     * Teks fallback tanpa banner tetap tampil.
     */
    .yf-hero-slider
    .carousel-item
    .yf-hero-content {
        display: none;
    }

    .yf-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(10, 18, 32, .03),
                rgba(10, 18, 32, .12)
            );
    }

    /*
     * Indicator berada di tengah bawah.
     */
    .yf-hero-slider .carousel-indicators {
        right: 0;
        left: 0;
        margin-right: 15%;
        margin-bottom: 10px;
        margin-left: 15%;
        justify-content: center;
    }

    .yf-hero-slider
    .carousel-indicators
    [data-bs-target] {
        width: 6px;
        height: 6px;
        margin: 0 3px;
        background-color: #fff;
        box-shadow:
            0 2px 7px rgba(0, 0, 0, .25);
    }

    .yf-hero-slider
    .carousel-indicators
    .active {
        width: 20px;
        background: var(--yf-primary);
    }

    /*
     * Kartu konsultasi dan tracking menjadi
     * horizontal slider compact.
     */
    .yf-hero-side {
        width: calc(100vw - 10px);
        margin-right: calc(
            -1 * (
                (100vw - 100%) / 2
            )
        );
        padding-right: 10px;
        display: flex;
        gap: 9px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .yf-hero-side::-webkit-scrollbar {
        display: none;
    }

    .yf-side-card {
        width: min(76vw, 310px);
        min-width: min(76vw, 310px);
        min-height: 105px;
        padding: 13px 15px;
        display: grid;
        grid-template-columns: 34px 1fr;
        grid-template-rows: 1fr auto;
        column-gap: 11px;
        row-gap: 5px;
        scroll-snap-align: start;
        border-radius: 15px;
    }

    .yf-side-card::before {
        top: -55px;
        right: -45px;
        width: 125px;
        height: 125px;
        border-width: 23px;
    }

    .yf-side-card::after {
        display: none;
    }

    .yf-side-card-icon {
        grid-row: 1 / 3;
        align-self: center;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 13px;
    }

    .yf-side-card > div:nth-child(2) {
        align-self: end;
    }

    .yf-side-card small {
        margin-bottom: 2px;
        font-size: 6.5px;
        letter-spacing: .65px;
    }

    .yf-side-card h3 {
        max-width: none;
        font-size: 11px;
        line-height: 1.35;
    }

    .yf-side-link {
        grid-column: 2;
        align-self: start;
        font-size: 7.5px;
    }

    /*
     * Benefit bar dipadatkan.
     */
    .yf-home-benefits {
        margin-top: 10px;
        padding: 8px;
        gap: 4px;
        border-radius: 13px;
    }

    .yf-home-benefit {
        min-height: 38px;
        padding: 3px 6px;
    }

    .yf-home-benefit-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        font-size: 11px;
    }

    .yf-home-benefit strong {
        font-size: 8px;
    }
}

/* ======================================================
   SMALL MOBILE
====================================================== */

@media (max-width: 430px) {

    .yf-hero-slider,
    .yf-hero-slider .carousel-inner,
    .yf-hero-slider .carousel-item {
        height: clamp(
            190px,
            54vw,
            235px
        );
    }

    .yf-side-card {
        width: 78vw;
        min-width: 78vw;
        min-height: 98px;
    }
}
/* ======================================================
   PERBAIKAN PRODUCT CARD
   Judul tidak tertutup harga dan tombol
====================================================== */

.yf-product-link {
    height: 100%;
}

.yf-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.yf-product-image-wrap {
    flex: 0 0 auto;
}

.yf-product-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/*
 * Judul dapat tampil maksimal 4 baris.
 */
.yf-product-title {
    min-height: 75px;
    margin: 0 0 5px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--yf-ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

/*
 * Informasi stok tidak boleh menimpa judul.
 */
.yf-product-meta {
    position: static;
    min-height: 20px;
    margin-top: 5px;
    flex: 0 0 auto;
}

/*
 * Harga selalu berada setelah informasi stok.
 */
.yf-product-price {
    position: static;
    margin-top: 8px;
    flex: 0 0 auto;
}

/*
 * Tombol berada di bagian bawah kartu tanpa menutupi konten.
 */
.yf-product-action {
    position: static;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex: 0 0 auto;
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 991px) {

    .yf-product-title {
        min-height: 70px;
        font-size: 11.5px;
        line-height: 1.5;
        -webkit-line-clamp: 4;
    }
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 767px) {

    .yf-product-body {
        padding: 10px;
    }

    .yf-product-title {
        min-height: 65px;
        margin-bottom: 3px;
        font-size: 10.5px;
        line-height: 1.55;
        -webkit-line-clamp: 4;
    }

    .yf-product-meta {
        min-height: 18px;
        margin-top: 4px;
        font-size: 8px;
    }

    .yf-product-price {
        min-height: 23px;
        margin-top: 6px;
        font-size: 16px;
        line-height: 1.3;
    }

    .yf-product-action {
        min-height: 34px;
        margin-top: auto;
        padding: 8px 5px;
    }
}

/* ======================================================
   SMALL PHONE
====================================================== */

@media (max-width: 430px) {

    .yf-product-title {
        min-height: 62px;
        font-size: 10px;
        line-height: 1.55;
    }

    .yf-product-official {
        margin-bottom: 5px;
    }

    .yf-product-price {
        font-size: 15px;
    }
}
