/* ===========================
   SHOPEE STYLE PRODUCT GRID
=========================== */

.mkch-shop-wrapper {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
}

/* HEADER */
.mkch-shop-header {
    background: #fff;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.mkch-back {
    margin-right: 12px;
    font-size: 22px;
    color: #f6532a;
    text-decoration: none;
}

/* ======================
   FILTER TABS SHOPEE
====================== */
.mk-filter-tabs {
    display: flex;
    justify-content: space-between;
    gap: 25px;              /* lebih lebar dan rapi */
    padding: 10px 15px 15px 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
	

}

.mk-filter-tab {
    flex: 1;
    text-align: center;
    font-size: 15px;
    padding: 8px 0;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
}
.mk-filter-tab.active {
    color: #f6532a;
    border-bottom: 2px solid #f6532a;
}

/* TAB HARGA — default (belum di klik) */
.mk-price-sort .arrow {
    font-size: 14px;
    margin-left: 4px;
    color: #777;
}

/* Aktif ascending */
.mk-price-sort.asc .arrow {
    color: #f6532a;
}

/* Aktif descending */
.mk-price-sort.desc .arrow {
    color: #f6532a;
}

/* Full clickable area */
.mk-filter-tab a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* k */


.mk-filter-tabs .mk-tab {
    color: #666;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    padding-bottom: 6px;
}

.mk-filter-tabs .mk-tab.active {
    color: #f6532a;
    font-weight: 600;
}

.mk-filter-tabs .mk-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f6532a;
    border-radius: 10px;
}

/* Panah harga */
.mk-price-arrow {
    font-weight: bold;
    margin-left: 6px;
}

/* ======================
   PRODUCT GRID
====================== */
.mkch-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 12px;
    padding: 10px;
}

.mkch-product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f2f2f2;
    text-decoration: none;
    color: #333;
	    position: relative;
    overflow: hidden; /* agar badge tidak keluar kotak */
}

.mkch-product-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.mkch-product-badge {
    position: absolute;
    top: 8px;            /* sedikit turun biar tidak mepet */
    left: 8px;           /* sedikit ke kanan */
    background: #ffbf00;
    padding: 4px 8px;    /* lebih proporsional */
    font-size: 11px;
    font-weight: 700;
    color: #000;
    border-radius: 4px;
    z-index: 10;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 1px 3px rgba(0,0,0,0.15); /* biar terlihat di gambar terang */
}

.mkch-product-info {
    padding: 10px;
}

.mkch-product-name {
    font-size: 13px;
    height: 32px;
    overflow: hidden;
}

.mkch-product-price {
    font-size: 15px;
    color: #f6532a;
    font-weight: 700;
}

.mkch-product-meta {
    display: flex;
    gap: 6px;
    font-size: 11px;
    color: #777;
}

.mkch-rating::before {
    content: "⭐ ";
}
