.mk-product-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.mk-product-intro {
    max-width: 720px;
    margin-top: 13px;
    color: #64748b;
    font-size: 11.5px;
    line-height: 1.9;
}

.mk-product-rail-controls {
    flex: none;
    display: flex;
    gap: 7px;
}

.mk-product-rail-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0369a1;
    background: rgba(255,255,255,.9);
    cursor: pointer;
    box-shadow: 0 9px 24px rgba(15,23,42,.05);
    transition:
        transform .3s cubic-bezier(.16,1,.3,1),
        background .25s ease,
        color .25s ease,
        box-shadow .3s ease;
}

.mk-product-rail-arrow:hover {
    transform: translateY(-2px);
    color: white;
    background: #0ea5e9;
    box-shadow: 0 14px 28px rgba(14,165,233,.18);
}

.mk-product-filter-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mk-product-filter {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    background: white;
    font-size: 8.7px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform .25s cubic-bezier(.16,1,.3,1),
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.mk-product-filter:hover {
    transform: translateY(-1px);
    border-color: #bae6fd;
    color: #0284c7;
}

.mk-product-filter.active {
    color: white;
    background: #0ea5e9;
    border-color: #0ea5e9;
    box-shadow: 0 8px 18px rgba(14,165,233,.18);
}

.mk-product-rail {
    margin-top: 18px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 29%);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding:
        3px
        2px
        14px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #bae6fd transparent;
}

.mk-product-rail::-webkit-scrollbar {
    height: 7px;
}

.mk-product-rail::-webkit-scrollbar-track {
    background: transparent;
}

.mk-product-rail::-webkit-scrollbar-thumb {
    background: #bae6fd;
    border-radius: 999px;
}

.mk-price-card {
    position: relative;
    min-height: 425px;
    padding: 19px;
    scroll-snap-align: start;
    border-radius: 26px;
    border: 1px solid #e2e8f0;
    background:
        radial-gradient(circle at 100% 0%,rgba(56,189,248,.07),transparent 32%),
        linear-gradient(145deg,#fff,#fbfdff);
    box-shadow:
        0 12px 30px rgba(15,23,42,.04),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition:
        transform .38s cubic-bezier(.16,1,.3,1),
        box-shadow .38s ease,
        border-color .3s ease,
        opacity .3s ease;
}

.mk-price-card:hover {
    transform: translateY(-6px);
    border-color: #bae6fd;
    box-shadow:
        0 22px 48px rgba(14,165,233,.10),
        inset 0 1px 0 rgba(255,255,255,.95);
}

.mk-price-card.filtered-out {
    display: none;
}

.mk-price-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.mk-price-card-tag,
.mk-price-size {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 7.5px;
    font-weight: 800;
}

.mk-price-card-tag {
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.mk-price-card-tag.green {
    color: #3f6212;
    background: #f7fee7;
    border-color: #d9f99d;
}

.mk-price-card-tag.promo {
    color: #be123c;
    background: #fff1f2;
    border-color: #fecdd3;
}

.mk-price-card-tag.dark {
    color: white;
    background: #0f172a;
    border-color: #0f172a;
}

.mk-price-card-tag.tuna {
    color: #92400e;
    background: #fff7ed;
    border-color: #fed7aa;
}

.mk-price-size {
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.mk-price-visual {
    height: 115px;
    margin-top: 18px;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* FOTO PRODUK DI KARTU HARGA
   Foto dibuat UTUH, tidak lagi terpotong.
   Area kosong tetap terlihat rapi dengan background lembut. */
.mk-price-visual.product-photo-visual {
    position: relative;
    height: 150px;
    padding: 7px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 18%,
            rgba(224,242,254,.72),
            transparent 58%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f8fbfe
        );

    border: 1px solid rgba(226,232,240,.92);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.96),
        0 7px 18px rgba(15,23,42,.025);
}

.mk-price-visual.product-photo-visual::before,
.mk-price-visual.product-photo-visual::after {
    display: none;
}

.mk-price-visual .mk-product-photo {
    width: 100%;
    height: 100%;
    display: block;

    /* contain menjaga seluruh sisi foto tetap terlihat. */
    object-fit: contain;
    object-position: center;

    border-radius: 15px;

    transform: scale(1);
    transition:
        transform .55s cubic-bezier(.16,1,.3,1),
        filter .4s ease;
}

.mk-price-card:hover .mk-price-visual .mk-product-photo {
    /* Hover tetap hidup, tetapi tidak membuat foto terpotong lagi. */
    transform: scale(1.015);
    filter: saturate(1.02);
}

@media (max-width: 767px) {
    .mk-price-visual.product-photo-visual {
        height: 142px;
        padding: 6px;
        border-radius: 19px;
    }

    .mk-price-visual .mk-product-photo {
        border-radius: 13px;
    }
}


.mk-price-visual::before,
.mk-price-visual::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.mk-price-visual.green-visual {
    color: #3f6212;
    background:
        radial-gradient(circle at 25% 35%,rgba(132,204,22,.18),transparent 32%),
        linear-gradient(145deg,#f7fee7,#ecfccb);
}

.mk-price-visual.blue-visual {
    color: #0369a1;
    background:
        radial-gradient(circle at 75% 25%,rgba(56,189,248,.17),transparent 32%),
        linear-gradient(145deg,#f0f9ff,#e0f2fe);
}

.mk-price-visual.yellow-visual {
    color: #a16207;
    background:
        radial-gradient(circle at 75% 25%,rgba(250,204,21,.18),transparent 32%),
        linear-gradient(145deg,#fefce8,#fef9c3);
}

.mk-price-visual.orange-visual {
    color: #c2410c;
    background:
        radial-gradient(circle at 75% 25%,rgba(251,146,60,.17),transparent 32%),
        linear-gradient(145deg,#fff7ed,#ffedd5);
}

.mk-price-visual.dark-visual {
    color: #bae6fd;
    background:
        radial-gradient(circle at 72% 25%,rgba(56,189,248,.13),transparent 32%),
        linear-gradient(145deg,#0f172a,#1e293b);
}

.mk-price-visual.tuna-visual {
    color: #92400e;
    background:
        radial-gradient(circle at 75% 25%,rgba(245,158,11,.14),transparent 32%),
        linear-gradient(145deg,#fffbeb,#fef3c7);
}

.mk-price-card h3 {
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.mk-price-card > p {
    margin-top: 7px;
    min-height: 47px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.65;
}

.mk-price-block {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #eef2f7;
}

.mk-price-label {
    display: block;
    color: #94a3b8;
    font-size: 7.5px;
    font-weight: 750;
}

.mk-price-block strong {
    display: block;
    margin-top: 5px;
    color: #075985;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -.045em;
}

.mk-price-block del {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 10px;
}

.mk-product-note {
    margin-top: 16px;
    padding: 15px 17px;
    display: grid;
    grid-template-columns: 36px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    border-radius: 20px;
    color: #475569;
    background:
        linear-gradient(145deg,#f8fdff,#fff);
    border: 1px solid #dbeafe;
}

.mk-product-note-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #0284c7;
    background: #f0f9ff;
}

.mk-product-note p {
    font-size: 8.7px;
    line-height: 1.65;
}

.mk-product-note p strong {
    color: #0f172a;
}

.mk-product-note a {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0284c7;
    font-size: 8.5px;
    font-weight: 800;
    text-decoration: none;
}

.mk-product-note a:hover {
    color: #0369a1;
}

@media (max-width: 900px) {
    .mk-product-rail {
        grid-auto-columns: minmax(245px, 42%);
    }
}

@media (max-width: 767px) {

    .mk-product-heading-row {
        align-items: flex-start;
    }

    .mk-product-rail-controls {
        display: none;
    }

    .mk-product-filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .mk-product-filter-row::-webkit-scrollbar {
        display: none;
    }

    .mk-product-filter {
        flex: none;
    }

    .mk-product-rail {
        margin-left: -2px;
        margin-right: -12px;
        grid-auto-columns: minmax(245px, 82%);
        padding-right: 12px;
        scrollbar-width: none;
    }

    .mk-product-rail::-webkit-scrollbar {
        display: none;
    }

    .mk-price-card {
        min-height: 375px;
        border-radius: 23px;
    }

    .mk-product-note {
        grid-template-columns: 34px minmax(0,1fr);
    }

    .mk-product-note a {
        grid-column: 2;
        width: fit-content;
    }

}
