:root {
    --mk-primary: #006dd8;
    --mk-primary-dark: #004a99;
}

.header--1 .menu--product-categories .menu__toggle,
.header--1 .ps-form--quick-search button,
.ps-btn--primary,
.btn-primary {
    background-color: var(--mk-primary) !important;
    border-color: var(--mk-primary) !important;
}

.header--1 .menu--product-categories .menu__toggle:hover,
.ps-btn--primary:hover,
.btn-primary:hover {
    background-color: var(--mk-primary-dark) !important;
}

.ps-product .ps-product__price.sale,
.ps-product__price,
.text-primary-mk {
    color: var(--mk-primary) !important;
}

.header--1 .header__topone {
    background: var(--mk-primary-dark);
}

.ps-block--category .category-icon-circle {
    background: rgba(0, 109, 216, 0.1);
    color: var(--mk-primary);
}

.ps-home-banner {
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-primary-dark));
    color: #fff;
    padding: 28px 0 18px;
    margin-bottom: 10px;
}

.ps-home-banner h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.ps-home-banner p {
    opacity: 0.9;
    margin: 0;
}

.mk-flash {
    margin: 12px 0;
}

.toko-list {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ededed;
    border-radius: 8px;
    background: #fff;
}

.toko-name {
    border-bottom: 3px solid #ededed;
    background: #f5f5f5;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
}

.ps-product--cart-mobile {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dotted #e3e3e3;
}

.ps-product--cart-mobile:last-child {
    border-bottom: none;
}

.ps-product--cart-mobile .ps-product__thumbnail img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.ps-product--cart-mobile .ps-product__content {
    flex: 1;
}

.ps-product--cart-mobile .ps-product__remove {
    float: right;
    color: #999;
}

/* ── Tahap 9: Homepage Martfury layout ── */
#homepage-1 .ps-home-banner .ps-section__left img,
#homepage-1 .ps-section__right .ps-collection img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

#mk-hero-main,
#mk-hero-main .item,
#mk-hero-main .item img,
.mk-hero-single,
.mk-hero-single img {
    min-height: 320px;
    object-fit: cover;
}

.mk-hero-single {
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.mk-hero-single img {
    width: 100%;
    display: block;
}

.mk-hero-fallback {
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-primary-dark));
    color: #fff;
    border-radius: 4px;
    padding: 48px 32px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mk-hero-fallback h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mk-side-card {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 155px;
    border-radius: 4px;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    padding: 16px;
}

.mk-side-pengadaan { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.mk-side-donasi { background: linear-gradient(135deg, #10b981, #047857); }

.mk-module-ad {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    color: #111;
    text-decoration: none !important;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}

.mk-module-ad:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
    color: var(--mk-primary);
}

.mk-module-ad i {
    font-size: 1.75rem;
    color: var(--mk-primary);
    display: block;
    margin-bottom: 8px;
}

.mk-module-ad strong { display: block; font-size: 1rem; }
.mk-module-ad span { display: block; font-size: .8rem; color: #64748b; margin-top: 4px; }

.mk-module-ad--promo i { color: #f59e0b; }

.ps-product-list .ps-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.ps-product-list .ps-section__header h3 {
    margin: 0;
    font-weight: 700;
}

.ps-product-list .ps-section__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-product-list .ps-section__links a {
    color: var(--mk-primary);
    font-weight: 600;
}

.mk-home-tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.mk-home-tabs .nav-link {
    color: #64748b;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
}

.mk-home-tabs .nav-link.active {
    color: var(--mk-primary);
    border-bottom-color: var(--mk-primary);
    background: transparent;
}

.mk-product-carousel .item {
    padding: 4px;
}

.header--1 .header__left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ps-home-banner .ps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ps-home-banner .ps-section__left {
    flex: 1 1 65%;
    min-width: 280px;
}

.ps-home-banner .ps-section__right {
    flex: 1 1 30%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ps-home-banner .ps-section__right .ps-collection {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
}

.ps-home-banner .ps-section__right .ps-collection img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 155px;
}

.header--1 .menu--product-categories .menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
}

.ps-deal-of-day {
    padding: 24px 0;
    background: #f8fafc;
}

.ps-home-ads {
    padding: 20px 0;
}

.ps-top-categories {
    padding: 24px 0 12px;
}

@media (max-width: 991px) {
    .ps-home-banner .ps-section__left,
    .ps-home-banner .ps-section__right {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .header--1 .menu--product-categories .menu__toggle span {
        display: none;
    }
    .mk-hero-fallback { min-height: 200px; padding: 28px 20px; }
}
