/* ============================================================
   WRAPPER GLOBAL
============================================================ */
#mkstore-wrapper {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    font-family: Arial, sans-serif;z
}

/* ============================================================
   HEADER BESAR (GRADIENT + SEARCH + LOGO + VIDEO)
============================================================ */
.mkstore-header-big {
    position: relative;
    width: 100%;
    height: 230px; /* tinggi utama header */
    overflow: hidden;
}

/* gradient background */
.mkstore-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fe0101 0%, #ffffff 100%);
    filter: blur(1px);
    transform: scale(1.03);
}

/* overlay gelap lembut */
.mkstore-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.14);
}

/* ============================================================
   SEARCH BAR (INSIDE HEADER, BUKAN STICKY)
============================================================ */
.mkstore-search-inside {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 10px;
	
}

.mkstore-icon-search {
    font-size: 16px;
    opacity: 0.9;
    color: #fff;
}

.mkstore-search-input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 15px;
    color: #fff;
    outline: none;
}

.mkstore-search-input::placeholder {
    color: rgba(255, 255, 255, 0.85);
}
.mkstore-icon-back,
.mkstore-icon-menu {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(4px);
    cursor: pointer;
}


.mkstore-searchbox-inside {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;

    border-radius: 24px;

    /* WHITE LOW OPACITY SHOPEE STYLE */
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(10px);

    color: #fff;
}


.mkstore-search-placeholder {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

/* ============================================================
   HEADER MAIN CONTENT (LOGO + TEXT + BUTTONS)
============================================================ */
.mkstore-header-inner {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 65px; /* ruang untuk video bar */
    z-index: 120;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.mkstore-header-left {
    display: flex;
    align-items: center;
}

.mkstore-header-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px solid #fff;
    object-fit: cover;
}

.mkstore-header-text {
    margin-left: 10px;
    color: #fff;
}

.mkstore-header-name {
    font-size: 18px;
    font-weight: 700;
}

.mkstore-header-meta {
    font-size: 13px;
    opacity: 0.95;
    margin-top: 2px;
}

.mkstore-header-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.mkstore-btn-follow-big {
    background: #ff5722;
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
}

.mkstore-btn-chat-big {
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
}

/* ============================================================
   VIDEO PRODUK BAR (INSIDE HEADER)
============================================================ */
.mkstore-video-bar-inside {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    z-index: 125;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mkstore-video-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mkstore-video-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.mkstore-video-title {
    font-weight: 600;
    font-size: 15px;
}

.mkstore-video-right {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* ============================================================
   HEADER KECIL SCROLL COLLAPSE
============================================================ */
.mkstore-header-small {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 420px;   /* tetap mobile 420px */
    height: 48px;

    background: #fe0101;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;

    z-index: 999;
}



.mkstore-header-small.show {
    opacity: 1;
    pointer-events: auto;
}

.mkstore-header-small img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.mkstore-hs-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mkstore-btn-chat-small,
.mkstore-btn-follow-small {
    background: #fff;
    color: #000;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
}

/* ============================================================
   TAB NAV
============================================================ */
.mkstore-tab-nav {
    height: 44px;
    background: #fff;

    position: sticky;
    top: 48px;             /* HEADER KECIL */
    z-index: 900;

    display: flex;
    align-items: center;
    justify-content: space-around;

    border-bottom: 1px solid #eee;
}

.mkstore-tab-item {
    flex: 1;
    text-align: center;
    line-height: 44px;
    font-size: 15px;
    color: #666;
}

.mkstore-tab-item.active {
    color: #e53935;
    font-weight: 600;
}

.mkstore-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    height: 3px;
    background: #e53935;
    transition: left .25s ease;
}

/* ============================================================
   TAB CONTENT
============================================================ */
.mkstore-tab-content {
    display: none;
    padding: 15px;
	transition: opacity .25s ease;
	

}

.mkstore-tab-content.active {
    display: block;
	opacity: 1;

}

}
.mkstore-section-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 16px;
}

/* ============================================================
   VOUCHER
============================================================ */
.mkstore-voucher-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.mkstore-voucher-item {
    min-width: 140px;
    background: #ffe8e0;
    border-left: 4px solid #ff5722;
    padding: 10px;
    border-radius: 8px;
}

/* ============================================================
   FLASH SALE
============================================================ */
.mkstore-flash-sale-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.mkstore-flash-item {
    min-width: 130px;
}

.mkstore-flash-item img {
    width: 100%;
    border-radius: 8px;
}

.mkstore-price {
    color: #ff5722;
    font-weight: 700;
    margin-top: 6px;
}

/* ============================================================
   PRODUK GRID
============================================================ */
.mkstore-produk-filter {
    position: sticky;
    top: 92px;              /* 48 + 44 */
    z-index: 800;

    height: 44px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid #eee;
}

.mkstore-pf-item {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #777;
}

.mkstore-pf-item.active {
    color: #e53935;
    font-weight: 600;
}
.mkstore-price-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 13px;
    transition: transform 0.2s ease;
    opacity: 0.8;
}

/* warna saat aktif */
.mkstore-pf-item.price-asc .mkstore-price-arrow,
.mkstore-pf-item.price-desc .mkstore-price-arrow {
    opacity: 1;
    font-weight: 600;
}

/* ----------------------------------------------------------
   PRODUK GRID — MIRIP SHOPEE
---------------------------------------------------------- */

/* Full width, tanpa padding luar */
.mkstore-produk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0;
    margin: 0 -8px; /* tarik keluar supaya full bleed seperti Shopee */
}

/* Item dasar */
.mkstore-produk-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    position: relative;
	    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.mkstore-produk-item img {
    width: 100%;
    aspect-ratio: 1 / 1;     /* square */
    object-fit: cover;
    background: #f7f7f7;
}

/* Wrapper konten dalam card */
.mkstore-produk-info {
    padding: 8px 8px 10px;
    display: flex;
    flex-direction: column;
}

/* Judul */
.mkstore-produk-title {
    font-size: 13px;
    color: #333;
    line-height: 1.35;

    margin-bottom: 6px;

    height: 34px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Harga */
.mkstore-produk-price {
    color: #d90000;
    font-size: 15px;
    font-weight: 700;
    margin-top: auto;
}


/* ————————————————
   BADGE AREA — SHOPEE
——————————————— */
.mkstore-produk-badge-wrap {
    height: 22px; /* FIX tinggi header agar selalu rata */
    padding: 4px 8px 0;
    position: relative;
}

.mkstore-badge-diskon {
    display: inline-block;
    padding: 1px 6px;
    background: #ff2727;
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 700;
}
.mkstore-produk-badges {
    height: 22px;
    padding: 4px 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mall ORI badge */
.mkstore-badge-mall {
    background: #e60012;
    color: #fff;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: bold;
    line-height: 1;
}

/* Diskon % badge */
.mkstore-badge-sale {
    background: #ff2d2d;
    color: #fff;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
}


/* ————————————————
   RATING & SOLD
——————————————— */

.mkstore-produk-rating {
    font-size: 11px;
    color: #666;
    margin: 6px 8px 0;
}


/* -----------------------------------------------------
   PRICE AREA – SHOPEE STYLE
------------------------------------------------------ */

.mkstore-produk-price-area {
    margin-top: auto;         /* dorong ke bawah */
    padding: 4px 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Harga utama */
.mkstore-produk-price {
    color: #ff2d2d;
    font-size: 15px;
    font-weight: bold;
}

/* Harga coret */
.mkstore-produk-price-old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

/* Badge diskon persen */
.mkstore-produk-discount {
    background: #ffe5e5;
    color: #ff2d2d;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: bold;
}


/* ============================================================
   KATEGORI GRID
============================================================ */
.mkstore-kategori-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.mkstore-kategori-item {
    text-align: center;
}

.mkstore-kategori-item img {
    width: 100%;
    border-radius: 8px;
}
/* WRAP LIST */
.mkstore-kategori-list {
    padding: 14px;
}

/* ITEM STYLE */
.mkstore-kategori-item {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;

    display: flex;
    align-items: center;

    text-decoration: none;
    color: #222;

    box-shadow: 0 2px 6px rgba(0,0,0,0.06);

    position: relative;
}

/* ICON */
.mkstore-kategori-icon img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

/* TEXT GROUP */
.mkstore-kategori-text {
    margin-left: 14px;
    flex: 1;
}

.mkstore-kategori-name {
    font-size: 16px;
    font-weight: 600;
}

.mkstore-kategori-count {
    font-size: 14px;
    color: #999;
    margin-top: 3px;
}

/* ARROW */
.mkstore-kategori-arrow {
    font-size: 24px;
    color: #bbb;
    margin-left: auto;
}
/* =============================
   LIVE LIST WRAPPER
============================= */
.mkstore-live-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* LIVE ITEM CARD */
.mkstore-live-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* THUMB */
.mkstore-live-thumb {
    position: relative;
}

.mkstore-live-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.mkstore-live-item.offline img {
    filter: grayscale(70%);
}

/* BADGES */
.mkstore-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.mkstore-live-badge.live {
    background: #e53935;
}

.mkstore-live-badge.offline {
    background: #999;
}

.mkstore-live-viewers {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #fff;
}

/* INFO AREA */
.mkstore-live-info {
    padding: 14px;
}

.mkstore-live-platform {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.mkstore-live-platform.shopee {
    color: #e53935;
}

.mkstore-live-platform.tiktok {
    color: #111;
}

.mkstore-live-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* BUTTONS */
.mkstore-live-btn {
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
}

.mkstore-live-btn.watch {
    background: #e53935;
    color: #fff;
}

.mkstore-live-btn.profile {
    background: #f1f1f1;
    color: #333;
}
.mkstore-live-btn {
    position: relative;
    overflow: hidden;
}

.mkstore-live-btn::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.mkstore-live-btn.ripple-anim::after {
    animation: ripple 0.5s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    100% {
        transform: scale(25);
        opacity: 0;
    }
}

.mkstore-live-viewers {
    animation: mkPulse 1.2s infinite;
}

@keyframes mkPulse {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1);   opacity: 1; }
}

/* =============================
   TAB TOKO – MAIN SECTIONS
============================= */
.mkstore-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 18px 0 10px;
    padding-left: 12px;
}

/* =============================
   BANNER SLIDER
============================= */
.mkstore-banner-slider {
    width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 10px;
    padding: 10px;
}

.mkstore-banner-item img {
    width: 88%;
    border-radius: 14px;
}

/* =============================
   ABOUT STORE
============================= */
.mkstore-about-box {
    background: #e9e9e9;
    padding: 18px;
    margin: 12px;
    border-radius: 14px;
    text-align: center;
	color: #767676
}
.mkstore-kategori-box {
    background: #FFF3E0;
    padding: 18px;
    margin: 12px;
    border-radius: 14px;
    text-align: center;
}

.mkstore-about-title {
    color: #ff5722;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mkstore-about-more {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #e53935;
}
/* HEADING SECTION STYLE SHOPEE */
.mkstore-section-heading {
    font-size: 16px;
    font-weight: 700;
    color: #E65100;
    text-align: center;
    padding: 10px 4px;
    margin: 20px 0 6px 0;
    letter-spacing: 0.3px;
    position: relative;
}
.mkstore-section-heading-about {
    font-size: 16px;
    font-weight: 700;
    color: #767676;
    text-align: center;
    padding: 5px 4px;
    margin: 20px 0 6px 0;
    letter-spacing: 0.3px;
    position: relative;
}

/* Tambahkan slash sebelum & sesudah */
.mkstore-section-heading::before,
.mkstore-section-heading::after {
    content: "/";
    margin: 0 6px;
    color: #E65100;
    opacity: .8;
    font-weight: 700;
}

/* Garis pemisah */
.mkstore-section-heading-line {
    width: 100%;
    height: 1px;
    background: #ff5722;
    margin: 0 0 16px 0;
}
.mkstore-section-heading-line-about {
    width: 100%;
    height: 1px;
    background: #767676;
    margin: 0 0 16px 0;
}
/* =============================
   KATEGORI GRID
============================= */
.mkstore-home-cat-grid {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.mkstore-home-cat-item {
    text-align: center;
    font-size: 13px;
}

.mkstore-home-cat-item img {
    width: 100%;
    border-radius: 12px;
}

/* =============================
   FLASH SALE
============================= */
.mkstore-flash-list {
    padding: 10px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.mkstore-flash-item {
    width: 150px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mkstore-flash-item img {
    width: 100%;
    border-radius: 8px;
}

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

.mkstore-bestseller-item {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.mkstore-bestseller-item img {
    width: 100%;
    border-radius: 8px;
}

.mkstore-bsi-title {
    font-size: 14px;
    margin-top: 6px;
    height: 34px;
    overflow: hidden;
}

.mkstore-bsi-price {
    color: #e53935;
    font-weight: 700;
    margin-top: 5px;
}
/* HILANGKAN UNDERLINE UNTUK SEMUA LINK DI TAB TOKO */
#mkstore-tab-toko a {
    text-decoration: none !important;
    color: inherit !important;
}


