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

.yf-detail {
        --primary: #ff642f;
        --primary-dark: #e64d1d;
        --soft: #fff3ee;
        --ink: #172033;
        --muted: #748096;
        --border: #e7ebf1;
        --success: #159455;
        --danger: #dc3545;
        padding: 22px 0 115px;
        color: var(--ink);
    }

    .yf-detail-container {
        width: min(1340px, calc(100% - 28px));
        margin-inline: auto;
    }

    .yf-detail-breadcrumb {
        margin-bottom: 17px;
        display: flex;
        align-items: center;
        gap: 8px;
        overflow: hidden;
        color: var(--muted);
        font-size: 10px;
        white-space: nowrap;
    }

    .yf-detail-breadcrumb a {
        color: var(--muted);
        text-decoration: none;
        flex: 0 0 auto;
    }

    .yf-detail-breadcrumb a:hover {
        color: var(--primary);
    }

    .yf-detail-breadcrumb strong {
        overflow: hidden;
        color: var(--ink);
        text-overflow: ellipsis;
    }

    .yf-detail-card {
        padding: 25px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 24px;
        box-shadow: 0 17px 45px rgba(29, 42, 68, .08);
    }

    /* Galeri */
    .yf-gallery {
        position: sticky;
        top: 92px;
    }

    .yf-media-stage {
        position: relative;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background:
            linear-gradient(145deg, #fafbfc, #f0f3f7);
        border: 1px solid var(--border);
        border-radius: 20px;
    }

    .yf-media-item {
        position: absolute;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .yf-media-item.active {
        display: flex;
    }

    .yf-media-item img,
    .yf-media-item video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
    }

    .yf-media-item img {
        padding: 7px;
    }

    /* V4.16.1.3: semua slide gambar produk terlihat natural sejak request awal.
       Tidak ada lazy load dan tidak ada opacity/load-event gate. */
    .yf-product-stage-image {
        opacity: 1;
    }
    .yf-product-stage-image-critical {
        opacity: 1 !important;
        transition: none !important;
    }

    .yf-media-item video {
        background: #000;
    }

    .yf-gallery-arrow {
        position: absolute;
        top: 50%;
        z-index: 5;
        width: 39px;
        height: 39px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--ink);
        background: rgba(255,255,255,.94);
        border: 1px solid var(--border);
        border-radius: 50%;
        box-shadow: 0 7px 20px rgba(29,42,68,.13);
        transform: translateY(-50%);
        cursor: pointer;
    }

    .yf-gallery-prev { left: 12px; }
    .yf-gallery-next { right: 12px; }

    .yf-gallery-count {
        position: absolute;
        right: 12px;
        bottom: 12px;
        z-index: 5;
        padding: 6px 10px;
        color: #fff;
        background: rgba(17,24,39,.72);
        border-radius: 999px;
        font-size: 9px;
        font-weight: 800;
        backdrop-filter: blur(8px);
    }

    .yf-sold-ribbon {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 5;
        padding: 7px 10px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #fff;
        background: var(--danger);
        border-radius: 999px;
        font-size: 8px;
        font-weight: 850;
    }

    .yf-thumbnails {
        margin-top: 11px;
        padding-bottom: 3px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .yf-thumbnail {
        position: relative;
        width: 65px;
        height: 65px;
        flex: 0 0 65px;
        padding: 4px;
        overflow: hidden;
        background: #fff;
        border: 2px solid var(--border);
        border-radius: 12px;
        cursor: pointer;
    }

    .yf-thumbnail.active {
        border-color: var(--primary);
    }

    .yf-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .yf-thumbnail-video {
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
        color: #fff;
        background: #172033;
        border-radius: 7px;
        font-size: 19px;
    }

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

    .yf-product-name {
        margin: 0;
        color: var(--ink);
        font-size: clamp(24px, 3.2vw, 36px);
        font-weight: 850;
        line-height: 1.3;
        letter-spacing: -.8px;
    }

    .yf-product-share {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
        padding: 9px 14px;
        margin-top: 10px;
        border: 1px solid rgba(238, 77, 45, .2);
        border-radius: 999px;
        color: #d94325;
        background: #fff7f3;
        font-weight: 800;
        font-size: 13px;
        cursor: pointer;
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .yf-product-share:hover,
    .yf-product-share:focus-visible {
        color: #fff;
        background: #ee4d2d;
        box-shadow: 0 10px 24px rgba(238, 77, 45, .22);
        transform: translateY(-1px);
        outline: none;
    }

    .yf-google-seo-summary {
        max-width: 720px;
        margin: 10px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.65;
    }

    .yf-product-meta {
        margin: 12px 0 17px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px 15px;
        color: var(--muted);
        font-size: 10px;
    }

    .yf-product-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .yf-price-box {
        margin-bottom: 15px;
        padding: 17px 19px;
        background: linear-gradient(135deg, var(--soft), #fff);
        border: 1px solid #ffdfd2;
        border-radius: 16px;
    }

    .yf-price {
        color: var(--primary);
        font-size: clamp(27px, 4vw, 39px);
        font-weight: 900;
        line-height: 1.15;
        letter-spacing: -1px;
    }

    .yf-price-note {
        margin-top: 5px;
        color: var(--muted);
        font-size: 9px;
    }

    .yf-stock {
        margin-bottom: 15px;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-radius: 13px;
        font-size: 10px;
    }

    .yf-stock.ready {
        color: var(--success);
        background: #eefbf4;
        border: 1px solid #c3efd3;
    }

    .yf-stock.empty {
        color: var(--danger);
        background: #fff2f2;
        border: 1px solid #ffd0d0;
    }

    .yf-stock strong {
        display: block;
        margin-bottom: 2px;
        font-size: 11px;
    }

    .yf-service-grid {
        margin-bottom: 15px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .yf-service {
        padding: 11px;
        display: flex;
        align-items: center;
        gap: 9px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .yf-service-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: grid;
        place-items: center;
        color: var(--primary);
        background: var(--soft);
        border-radius: 10px;
    }

    .yf-service strong {
        display: block;
        font-size: 9px;
    }

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

    /* Pembelian */
    .yf-buy-panel {
        padding: 18px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 17px;
    }

    .yf-buy-section + .yf-buy-section {
        margin-top: 17px;
    }

    .yf-buy-label {
        margin-bottom: 9px;
        display: block;
        font-size: 11px;
        font-weight: 850;
    }

    .yf-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .yf-options label {
        margin: 0;
        cursor: pointer;
    }

    .yf-options input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .yf-options span {
        min-width: 51px;
        min-height: 38px;
        padding: 8px 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #4c576b;
        background: #fff;
        border: 1px solid #dce2e9;
        border-radius: 10px;
        font-size: 9px;
        font-weight: 750;
        transition: .2s ease;
    }

    .yf-options input:checked + span {
        color: var(--primary);
        background: var(--soft);
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(255,100,47,.09);
    }

    .yf-options input:disabled + span {
        color: #adb5bd;
        background: #f3f4f6;
        text-decoration: line-through;
        cursor: not-allowed;
    }

    .yf-variant-help {
        display: none;
        margin-top: 7px;
        color: #b76e00;
        font-size: 8px;
        font-weight: 700;
    }

    .yf-variant-help.show {
        display: block;
    }

    .yf-qty-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .yf-qty {
        padding: 4px;
        display: inline-flex;
        align-items: center;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 11px;
    }

    .yf-qty button {
        width: 35px;
        height: 35px;
        color: var(--ink);
        background: #f2f4f7;
        border: 0;
        border-radius: 8px;
        cursor: pointer;
    }

    .yf-qty input {
        width: 48px;
        border: 0;
        outline: 0;
        text-align: center;
        font-size: 12px;
        font-weight: 850;
    }

    .yf-actions {
        margin-top: 17px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .yf-btn-cart,
    .yf-btn-buy,
    .yf-btn-chat {
        min-height: 49px;
        padding: 10px 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 850;
        cursor: pointer;
    }

    .yf-btn-cart {
        color: var(--primary);
        background: #fff;
        border: 1.5px solid var(--primary);
    }

    .yf-btn-buy {
        color: #fff;
        background: var(--primary);
        border: 1.5px solid var(--primary);
        box-shadow: 0 11px 25px rgba(255,100,47,.24);
    }

    .yf-btn-chat {
        width: 100%;
        min-height: 41px;
        margin-top: 9px;
        color: #465169;
        background: #f5f7fa;
        border: 1px solid var(--border);
    }

    .yf-btn-cart:disabled,
    .yf-btn-buy:disabled {
        cursor: not-allowed;
    }

    .yf-purchase-busy {
        cursor: wait !important;
        pointer-events: none !important;
        opacity: .84;
    }

    .yf-purchase-busy .spinner-border {
        width: 1em;
        height: 1em;
        border-width: .15em;
        vertical-align: -.12em;
    }

    /* Deskripsi dan rekomendasi */
    .yf-description {
        margin-top: 20px;
        padding: 24px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 19px;
        box-shadow: 0 12px 35px rgba(29,42,68,.055);
    }

    .yf-description h2,
    .yf-related-header h2 {
        margin: 0 0 13px;
        font-size: 20px;
        font-weight: 850;
    }

    .yf-description-content {
        color: #536076;
        font-size: 11px;
        line-height: 1.85;
    }

    .yf-product-knowledge {
        margin-top: 16px;
        padding: 21px 22px;
        background: linear-gradient(135deg, #172033, #29384e);
        border-radius: 18px;
        box-shadow: 0 14px 36px rgba(23,32,51,.15);
    }

    .yf-product-knowledge header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .yf-product-knowledge header span {
        color: #ff8b3d;
        font-size: 8px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .yf-product-knowledge h2 {
        margin: 5px 0 0;
        color: #fff;
        font-size: 16px;
        font-weight: 900;
    }

    .yf-product-knowledge header > a {
        flex: 0 0 auto;
        color: #fff;
        font-size: 8px;
        font-weight: 850;
        text-decoration: none;
    }

    .yf-product-knowledge-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 9px;
        margin-top: 15px;
    }

    .yf-product-knowledge-links a {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 12px;
        color: rgba(255,255,255,.88);
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px;
        font-size: 9px;
        font-weight: 800;
        line-height: 1.35;
        text-decoration: none;
    }

    .yf-product-knowledge-links a:hover {
        color: #fff;
        background: rgba(255,100,47,.2);
        border-color: rgba(255,139,61,.42);
    }

    .yf-product-knowledge-links i { color: #ff8b3d; font-size: 14px; }

    .yf-related {
        margin-top: 33px;
    }

    .yf-related-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .yf-related-header a {
        color: var(--primary);
        font-size: 9px;
        font-weight: 850;
        text-decoration: none;
    }

    .yf-related-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .yf-related-card {
        overflow: hidden;
        color: inherit;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        text-decoration: none;
    }

    .yf-related-card img {
        width: 100%;
        aspect-ratio: 1/1;
        display: block;
        object-fit: contain;
        background: #f7f8fa;
    }

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

    .yf-related-name {
        min-height: 39px;
        display: -webkit-box;
        overflow: hidden;
        font-size: 9px;
        font-weight: 700;
        line-height: 1.45;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .yf-related-price {
        margin-top: 7px;
        color: var(--primary);
        font-size: 13px;
        font-weight: 850;
    }

    /* Toast dan mobile */
    .yf-toast {
        position: fixed;
        left: 50%;
        bottom: 85px;
        z-index: 10000;
        max-width: calc(100% - 28px);
        padding: 12px 17px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #fff;
        background: #d98a00;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 750;
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 20px);
        transition: .25s ease;
        box-shadow: 0 13px 32px rgba(0,0,0,.22);
    }

    .yf-toast.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .yf-toast.error { background: var(--danger); }
    .yf-toast.success { background: var(--success); }

    .yf-mobile-bar {
        display: none;
    }

    @media (max-width: 991px) {
        .yf-gallery { position: static; }
        .yf-detail-card { padding: 17px; }
    }

    @media (max-width: 767px) {
        .yf-detail {
            padding-top: 12px;
            padding-bottom: 100px;
        }

        .yf-detail-container {
            width: calc(100% - 18px);
        }

        .yf-detail-card {
            padding: 10px;
            border-radius: 16px;
        }

        .yf-media-stage {
            border-radius: 14px;
        }

        .yf-thumbnail {
            width: 57px;
            height: 57px;
            flex-basis: 57px;
        }

        .yf-product-name {
            margin-top: 5px;
            font-size: 21px;
        }

        .yf-service-grid {
            grid-template-columns: 1fr 1fr;
        }

        .yf-buy-panel {
            padding: 14px;
            border-radius: 14px;
        }

        .yf-actions {
            grid-template-columns: 1fr;
        }

        .yf-description {
            padding: 17px;
            border-radius: 15px;
        }

        .yf-related-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 9px;
        }

        .yf-mobile-bar {
            position: fixed;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 9990;
            padding: 9px 10px;
            display: grid;
            grid-template-columns: minmax(95px, .8fr) 48px 1fr;
            gap: 8px;
            align-items: center;
            background: rgba(255,255,255,.97);
            border-top: 1px solid var(--border);
            box-shadow: 0 -10px 30px rgba(29,42,68,.11);
            backdrop-filter: blur(12px);
        }

        .yf-mobile-price small {
            display: block;
            color: var(--muted);
            font-size: 7px;
        }

        .yf-mobile-price strong {
            display: block;
            overflow: hidden;
            color: var(--primary);
            font-size: 12px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .yf-mobile-bar button {
            min-height: 46px;
            padding: 7px;
        }
    }
    /* ======================================================
   STICKY BUY BAR MOBILE PREMIUM
====================================================== */

@media (max-width: 767px) {

    .yf-mobile-bar {
        min-height: 70px;
        padding:
            9px
            max(
                10px,
                env(safe-area-inset-right)
            )
            calc(
                9px +
                env(safe-area-inset-bottom)
            )
            max(
                10px,
                env(safe-area-inset-left)
            );

        grid-template-columns:
            minmax(90px, .75fr)
            52px
            minmax(115px, 1fr);

        gap: 8px;

        background:
            rgba(
                255,
                255,
                255,
                .98
            );

        border-top:
            1px solid
            #e3e7ed;

        box-shadow:
            0 -12px 35px
            rgba(
                29,
                42,
                68,
                .14
            );

        backdrop-filter:
            blur(16px);
    }

    /* Harga */
    .yf-mobile-price {
        min-width: 0;
        padding-right: 3px;
    }

    .yf-mobile-price small {
        margin-bottom: 2px;
        display: block;
        color: #748096;
        font-size: 7px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .yf-mobile-price strong {
        display: block;
        overflow: hidden;
        color: #ff642f;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.25;
        letter-spacing: -.3px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Tombol keranjang */
    .yf-mobile-bar .yf-btn-cart {
        width: 52px;
        min-width: 52px;
        height: 49px;
        min-height: 49px;
        padding: 0;

        color: #ff642f;
        background:
            linear-gradient(
                145deg,
                #fff7f3,
                #ffebe3
            );

        border:
            1.5px solid
            #ff642f;

        border-radius: 13px;

        font-size: 19px;

        box-shadow:
            0 7px 18px
            rgba(
                255,
                100,
                47,
                .14
            );
    }

    .yf-mobile-bar .yf-btn-cart:hover,
    .yf-mobile-bar .yf-btn-cart:active {
        color: #fff;
        background: #ff642f;
    }

    /* Tombol beli */
    .yf-mobile-bar .yf-btn-buy {
        width: 100%;
        min-height: 49px;
        padding: 9px 13px;

        color: #fff;

        background:
            linear-gradient(
                135deg,
                #ff7a45,
                #ff642f,
                #e94c1b
            );

        border: 0;
        border-radius: 13px;

        font-size: 10px;
        font-weight: 900;

        box-shadow:
            0 10px 23px
            rgba(
                255,
                100,
                47,
                .3
            );
    }

    .yf-mobile-bar .yf-btn-buy:hover,
    .yf-mobile-bar .yf-btn-buy:active {
        color: #fff;

        background:
            linear-gradient(
                135deg,
                #ff6d36,
                #e94c1b
            );

        transform:
            translateY(-1px);
    }

    /*
     * Tombol belum aktif tetap terlihat jelas,
     * tetapi tidak dapat diklik.
     */
    .yf-mobile-bar
    .yf-btn-cart:disabled {
        color: #c56d4c;
        background: #fff1eb;
        border-color: #efb49d;
        opacity: .78;
        box-shadow: none;
    }

    .yf-mobile-bar
    .yf-btn-buy:disabled {
        color: #fff;
        background:
            linear-gradient(
                135deg,
                #c7ccd4,
                #aeb5c0
            );

        opacity: .82;
        box-shadow: none;
    }

    /*
     * Ikon selalu terlihat.
     */
    .yf-mobile-bar button i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: inherit;
        font-size: inherit;
    }
}
/* Varian yang stoknya kosong */
.yf-options input:disabled + span {
    color: #aeb5bf !important;
    background: #f1f3f5 !important;
    border-color: #e0e4e9 !important;
    opacity: .72;
    text-decoration: line-through;
    cursor: not-allowed;
    box-shadow: none !important;
    pointer-events: none;
}

.yf-options label:has(input:disabled) {
    cursor: not-allowed;
}
.yf-thumbnail {
    position: relative;
    overflow: hidden;
}

.yf-thumbnail-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, .25);
    font-size: 22px;
    pointer-events: none;
}

.yf-thumbnail-play i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
    border-radius: 50%;
}

@media (max-width: 575px) {
    .yf-product-knowledge header { display: block; }
    .yf-product-knowledge header > a { display: inline-block; margin-top: 9px; }
    .yf-product-knowledge-links { grid-template-columns: 1fr; }
}
