/**
 * Marketplace desktop homepage — Roval (روال)
 * Desktop-only (md+). Mobile feed unchanged.
 */

:root {
    --mk-bg: #F7F8FC;
    --mk-surface: #ffffff;
    --mk-primary: #5146E5;
    --mk-primary-2: #7C5CFF;
    --mk-accent: #2563EB;
    --mk-orange: #FF8A00;
    --mk-green: #16B981;
    --mk-danger: #EF4444;
    --mk-text: #171A2B;
    --mk-muted: #697386;
    --mk-border: #E8EAF0;
    --mk-radius: 16px;
    --mk-radius-sm: 12px;
    --mk-shadow: 0 4px 18px rgba(23, 26, 43, 0.06);
    --mk-shadow-hover: 0 12px 28px rgba(23, 26, 43, 0.1);
    --mk-max: 1680px;
}

@media (min-width: 768px) {
    body:has(.mk-home) {
        background: var(--mk-bg) !important;
    }
    body:has(.mk-home) .app {
        margin-bottom: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        display: block !important;
        max-width: 100% !important;
        padding-bottom: 0 !important;
    }
    body:has(.mk-home)::after {
        display: none !important;
        content: none !important;
    }
}

.mk-container {
    width: 100%;
    max-width: var(--mk-max);
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
}

/* ========== HEADER ========== */
.mk-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--mk-surface);
    border-bottom: 1px solid var(--mk-border);
    box-shadow: 0 2px 12px rgba(23, 26, 43, 0.04);
}
.mk-header__top {
    border-bottom: 1px solid #f0f2f7;
}
.mk-header__top-inner {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding-block: 10px;
}
.mk-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--mk-text);
    flex-shrink: 0;
}
.mk-brand img {
    height: 34px;
    width: auto;
    display: block;
}
.mk-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.mk-brand__text strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--mk-primary);
}
.mk-brand__text small {
    font-size: 11px;
    font-weight: 500;
    color: var(--mk-muted);
}
.mk-search {
    display: flex;
    align-items: stretch;
    height: 48px;
    border: 1px solid var(--mk-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    justify-self: center;
}
.mk-search__cat {
    display: flex;
    align-items: center;
    border-inline-end: 1px solid var(--mk-border);
    background: #fafbff;
    margin: 0;
}
.mk-search__cat select {
    border: 0;
    background: transparent;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mk-text);
    padding: 0 12px;
    max-width: 140px;
    outline: none;
    cursor: pointer;
}
.mk-search__input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 0 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mk-text);
    min-width: 0;
    background: transparent;
}
.mk-search__input::placeholder { color: #9aa3b5; }
.mk-search__btn {
    width: 48px;
    border: 0;
    background: var(--mk-primary);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.mk-search__btn:hover { background: #4338ca; }
.mk-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
}
.mk-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--mk-text);
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease;
}
.mk-icon-btn:hover { background: #f3f4fb; }
.mk-icon-btn i { font-size: 20px; }
.mk-icon-btn__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-muted);
    white-space: nowrap;
}
.mk-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--mk-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.mk-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--mk-primary);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-inline-start: 4px;
    transition: transform .15s ease, background .2s ease;
}
.mk-user-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    color: #fff !important;
}
.mk-header__nav {
    background: #fff;
}
.mk-header__nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding-block: 6px;
}
.mk-cats-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--mk-primary);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background .2s ease;
}
.mk-cats-btn:hover { background: #4338ca; color: #fff !important; }
.mk-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.mk-nav::-webkit-scrollbar { display: none; }
.mk-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--mk-muted);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
.mk-nav__item i { font-size: 15px; }
.mk-nav__item:hover,
.mk-nav__item.is-active {
    color: var(--mk-primary);
    background: #f3f1ff;
}
.mk-deal-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FF8A00, #EF4444);
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ========== HOME BODY ========== */
.mk-home {
    background: var(--mk-bg);
    color: var(--mk-text);
    padding: 0;
    overflow-x: clip;
    width: 100%;
}
.mk-home .mk-container {
    max-width: var(--mk-max);
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px;
    overflow-x: clip;
    box-sizing: border-box;
}
.mk-home .mk-container > * + * {
    margin-top: 24px;
}

.mk-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--mk-border);
    background: rgba(255,255,255,.96);
    color: var(--mk-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--mk-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mk-nav-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--mk-shadow-hover);
}
.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.mk-btn:hover { transform: translateY(-1px); }
.mk-btn--primary {
    background: var(--mk-primary);
    color: #fff !important;
}
.mk-btn--primary:hover { background: #4338ca; }
.mk-btn--light {
    background: #fff;
    color: var(--mk-primary) !important;
    box-shadow: 0 4px 14px rgba(15,23,42,.12);
}

/* HERO — full container width @ exact 2073×758 */
.mk-hero {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.mk-hero__main {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 2073 / 758;
    height: auto !important;
    min-height: 0;
    background: #1e1b4b;
    box-shadow: var(--mk-shadow);
}
.mk-hero__main.swiper {
    height: auto !important;
}
.mk-hero__main .swiper-wrapper {
    height: 100% !important;
}
.mk-hero__main .swiper-slide {
    height: 100% !important;
    width: 100%;
}
.mk-hero__slide {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}
.mk-hero__slide--img {
    display: block;
    width: 100%;
    height: 100%;
}
.mk-hero__slide--img img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    display: block;
}
.mk-hero__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 32px 36px;
    background: linear-gradient(transparent, rgba(15, 18, 40, .78));
}
.mk-hero__overlay h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.35;
    max-width: 18ch;
}
.mk-hero__slide--tone {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 28px 36px;
    gap: 16px;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}
.mk-hero__slide--violet { background: linear-gradient(135deg, #5146E5, #7C5CFF 55%, #2563EB); }
.mk-hero__slide--orange { background: linear-gradient(135deg, #FF8A00, #f97316 50%, #ef4444); }
.mk-hero__slide--blue { background: linear-gradient(135deg, #2563EB, #5146E5 60%, #0ea5e9); }
.mk-hero__slide--mint { background: linear-gradient(135deg, #0d9488, #16B981 55%, #5146E5); }
.mk-hero__eyebrow {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.mk-hero__copy h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 2.6vw, 2.35rem);
    font-weight: 700;
    line-height: 1.35;
    white-space: pre-line;
}
.mk-hero__copy p {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 500;
    opacity: .92;
    max-width: 34ch;
}
.mk-hero__art {
    position: relative;
    height: 100%;
    min-height: 220px;
    max-height: 320px;
}
.mk-hero__art img {
    position: absolute;
    width: 58%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid rgba(255,255,255,.35);
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.mk-hero__art img:first-child {
    inset-inline-end: 8%;
    top: 8%;
    transform: rotate(-6deg);
}
.mk-hero__art img:last-child {
    inset-inline-start: 4%;
    bottom: 6%;
    width: 48%;
    transform: rotate(8deg);
}
.mk-hero__dots {
    position: absolute !important;
    bottom: 16px !important;
    inset-inline: 0;
}
.mk-hero__dots .swiper-pagination-bullet {
    background: #fff;
    opacity: .4;
}
.mk-hero__dots .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}
.mk-hero__prev { inset-inline-start: 14px; }
.mk-hero__next { inset-inline-end: 14px; }
.mk-promo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--mk-text);
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    min-height: 0;
}
.mk-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mk-shadow);
    border-color: var(--mk-border);
}
.mk-promo-card--violet { background: #f1efff; }
.mk-promo-card--blue { background: #ebf3ff; }
.mk-promo-card--mint { background: #e8faf3; }
.mk-promo-card__ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--mk-primary);
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(23,26,43,.06);
}
.mk-promo-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}
.mk-promo-card small {
    font-size: 12px;
    color: var(--mk-muted);
    font-weight: 500;
}

/* SECTIONS */
.mk-section {
    background: var(--mk-surface);
    border: 1px solid var(--mk-border);
    border-radius: 18px;
    padding: 20px 20px 18px;
    box-shadow: 0 1px 2px rgba(23,26,43,.03);
}
.mk-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.mk-section__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--mk-text);
}
.mk-section__sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--mk-muted);
    font-weight: 500;
}
.mk-section__tools {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.mk-link-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--mk-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.mk-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #fff4e8;
    color: #c2410c;
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.mk-countdown em {
    font-style: normal;
    opacity: .6;
}
.mk-countdown span {
    min-width: 1.6em;
    text-align: center;
}

/* FLASH DEALS — warm energetic card */
.mk-section--deals {
    position: relative;
    overflow: hidden;
    border-color: transparent;
    background:
        radial-gradient(90% 120% at 0% 100%, rgba(255, 255, 255, 0.16), transparent 55%),
        radial-gradient(70% 90% at 100% 0%, rgba(255, 214, 102, 0.35), transparent 50%),
        linear-gradient(125deg, #ff8a00 0%, #ff5c39 42%, #ef4444 78%, #e11d48 100%);
    box-shadow: 0 14px 36px rgba(239, 68, 68, 0.28);
    color: #fff;
}
.mk-section--deals::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.14) 0 2px, transparent 3px),
        radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.1) 0 1.5px, transparent 2.5px);
    background-size: 48px 48px, 36px 36px;
    pointer-events: none;
    opacity: .55;
}
.mk-section--deals > * {
    position: relative;
    z-index: 1;
}
.mk-section--deals .mk-section__title {
    color: #fff;
    text-shadow: 0 1px 0 rgba(120, 20, 20, 0.12);
}
.mk-section--deals .mk-section__title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-inline-end: 8px;
    border-radius: 50%;
    background: #ffe566;
    box-shadow: 0 0 0 4px rgba(255, 229, 102, 0.28);
    vertical-align: middle;
    transform: translateY(-1px);
}
.mk-section--deals .mk-link-more {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
    transition: background .15s ease, border-color .15s ease;
}
.mk-section--deals .mk-link-more:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}
.mk-section--deals .mk-countdown {
    background: #fff;
    color: #c2410c;
    border: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    padding: 7px 12px;
}
.mk-section--deals .mk-pcard {
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.mk-section--deals .mk-pcard:hover {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}
.mk-section--deals .mk-nav-btn {
    border-color: transparent;
    background: #fff;
    color: #c2410c;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

/* RAILS */
.mk-rail {
    position: relative;
    padding: 2px 2px 4px;
}
.mk-rail__prev { inset-inline-start: -6px; }
.mk-rail__next { inset-inline-end: -6px; }
#mkCatsSwiper .swiper-slide { width: 108px; }

/* CATEGORY GRID — evenly fill the home card edge-to-edge */
.mk-section--cats {
    padding: 14px 10px 12px;
}
.mk-cats-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    min-width: 0;
}
.mk-cats-grid .mk-cat {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
    padding: 6px 2px;
    gap: 8px;
}
.mk-cats-grid .mk-cat__ico {
    width: clamp(52px, 4.6vw, 72px);
    height: clamp(52px, 4.6vw, 72px);
    font-size: clamp(20px, 1.6vw, 26px);
}
.mk-cats-grid .mk-cat__name {
    width: 100%;
    font-size: clamp(11px, 0.8vw, 12.5px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
@media (max-width: 1100px) {
    .mk-cats-grid {
        flex-wrap: wrap;
        row-gap: 10px;
    }
    .mk-cats-grid .mk-cat {
        flex: 1 1 calc(16.666% - 4px);
        max-width: calc(16.666% - 4px);
    }
}

.mk-rail--products .swiper-wrapper {
    align-items: stretch;
}
#mkDealsSwiper .swiper-slide,
#mkRecSwiper .swiper-slide,
#mkNewSwiper .swiper-slide {
    width: 220px;
    height: auto;
    display: flex;
    box-sizing: border-box;
}
#mkDealsSwiper .mk-pcard,
#mkRecSwiper .mk-pcard,
#mkNewSwiper .mk-pcard {
    width: 100%;
    height: 100%;
}
#mkShopsSwiper .swiper-wrapper {
    align-items: stretch;
    transition-timing-function: linear !important;
}
#mkShopsSwiper .swiper-slide {
    width: 268px;
    height: auto;
    display: flex;
    box-sizing: border-box;
}
#mkShopsSwiper .mk-scard {
    width: 100%;
    height: 100%;
}

/* CATEGORY ICONS */
.mk-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--mk-text);
    padding: 8px 4px;
    border-radius: 14px;
    transition: transform .2s ease;
    box-sizing: border-box;
}
.mk-cat:hover { transform: translateY(-3px); }
.mk-cat__ico {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mk-cat-bg, #f3f1ff);
    color: var(--mk-cat-color, var(--mk-primary));
    font-size: 26px;
    border: 1px solid rgba(23,26,43,.04);
    transition: box-shadow .2s ease, background .2s ease;
}
.mk-cat:hover .mk-cat__ico {
    box-shadow: 0 8px 20px rgba(81,70,229,.16);
}
.mk-cat__name {
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}
.mk-cat--purple .mk-cat__ico { background: #f1efff; color: #5146E5; }
.mk-cat--pink .mk-cat__ico,
.mk-cat--rose .mk-cat__ico { background: #ffe8f1; color: #db2777; }
.mk-cat--blue .mk-cat__ico { background: #e8f0ff; color: #2563EB; }
.mk-cat--mint .mk-cat__ico,
.mk-cat--green .mk-cat__ico,
.mk-cat--teal .mk-cat__ico { background: #e7faf2; color: #059669; }
.mk-cat--orange .mk-cat__ico,
.mk-cat--yellow .mk-cat__ico { background: #fff4e5; color: #ea580c; }
.mk-cat--slate .mk-cat__ico { background: #eef2f7; color: #475569; }
.mk-cat--indigo .mk-cat__ico { background: #ecebff; color: #4f46e5; }

/* PROMO BANNERS — two equal photo cards side by side (full width like categories) */
.mk-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.mk-promo-grid:has(> :only-child),
.mk-promo-grid--single {
    grid-template-columns: minmax(0, 1fr);
}
.mk-banner {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--mk-border);
    background: #f4f6fb;
    min-width: 0;
    line-height: 0;
    box-shadow: 0 2px 10px rgba(23, 26, 43, 0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mk-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--mk-shadow);
}
.mk-banner--photo {
    aspect-ratio: 2172 / 724;
    height: auto;
    width: 100%;
}
.mk-banner--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.mk-banner--pink,
.mk-banner--mint,
.mk-banner--amber {
    display: none;
}

/* PRODUCT CARD */
.mk-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.mk-pcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--mk-shadow-hover);
}
.mk-pcard__media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: none;
    flex: 0 0 auto;
    background: #f4f6fb;
    overflow: hidden;
}
.mk-pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .3s ease;
}
.mk-pcard:hover .mk-pcard__media img {
    transform: scale(1.05);
}
.mk-pcard.is-oos .mk-pcard__media img {
    filter: grayscale(1);
    opacity: .85;
}
.mk-pcard__badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.mk-pcard__badge--sale { background: var(--mk-danger); }
.mk-pcard__badge--oos { background: #64748b; }
.mk-pcard__badge--new { background: var(--mk-accent); }
.mk-pcard__badge--personal { background: var(--mk-primary); }
.mk-pcard__wish {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.92);
    color: var(--mk-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(23,26,43,.08);
    transition: color .15s ease, background .15s ease, transform .15s ease;
}
.mk-pcard__wish:hover { color: var(--mk-danger); }
.mk-pcard__wish.is-on {
    color: var(--mk-danger);
    background: #fff5f5;
}
.mk-pcard__wish.is-on i { color: var(--mk-danger); }
.mk-pcard__wish:disabled {
    opacity: 0.7;
    cursor: wait;
}
.mk-pcard__wish:active:not(:disabled) {
    transform: scale(0.92);
}
.mk-pcard__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
}
.mk-pcard__title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    height: 2.9em;
    min-height: 2.9em;
    max-height: 2.9em;
    overflow: hidden;
}
.mk-pcard__title a {
    color: var(--mk-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.9em;
}
.mk-pcard__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    min-height: 1.2em;
    height: 1.2em;
}
.mk-pcard__rating small {
    color: var(--mk-muted);
    font-weight: 600;
}
.mk-pcard__seller {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--mk-muted);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 1.35em;
    height: 1.35em;
    max-width: 100%;
}
.mk-pcard__seller span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mk-pcard__seller-spacer {
    display: inline-block;
    width: 100%;
}
.mk-pcard__price {
    margin-top: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px 8px;
    min-height: 2.2em;
    height: 2.2em;
    overflow: hidden;
}
.mk-pcard__price strong {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--mk-text);
    white-space: nowrap;
}
.mk-pcard__price small {
    font-size: 11px;
    font-weight: 700;
    color: var(--mk-muted);
}
.mk-pcard__old {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
    white-space: nowrap;
}
.mk-pcard__off {
    font-size: 11px;
    font-weight: 700;
    color: var(--mk-danger);
    white-space: nowrap;
}
.mk-pcard__cart {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: #f3f1ff;
    color: var(--mk-primary) !important;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}
.mk-pcard__cart:hover {
    background: var(--mk-primary);
    color: #fff !important;
}
.mk-pcard__cart.is-disabled {
    background: #f1f5f9;
    color: #94a3b8 !important;
    pointer-events: none;
}

/* STORE CARD */
.mk-scard {
    --mk-scard-band: #ecebff;
    --mk-scard-band-2: #f7f6ff;
    --mk-scard-accent: var(--mk-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 168px;
    border-radius: 18px;
    border: 1px solid var(--mk-border);
    background: #fff;
    text-decoration: none;
    color: var(--mk-text);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(23, 26, 43, 0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mk-scard:hover {
    transform: translateY(-3px);
    box-shadow: var(--mk-shadow-hover);
    border-color: color-mix(in srgb, var(--mk-scard-accent) 35%, var(--mk-border));
}
.mk-scard--violet { --mk-scard-band: #ecebff; --mk-scard-band-2: #f8f7ff; --mk-scard-accent: #5146E5; }
.mk-scard--sky { --mk-scard-band: #e8f1ff; --mk-scard-band-2: #f5f9ff; --mk-scard-accent: #2563EB; }
.mk-scard--mint { --mk-scard-band: #e6f8f0; --mk-scard-band-2: #f4fcf8; --mk-scard-accent: #059669; }
.mk-scard--amber { --mk-scard-band: #fff1e0; --mk-scard-band-2: #fffaf3; --mk-scard-accent: #ea580c; }
.mk-scard--rose { --mk-scard-band: #ffe8f1; --mk-scard-band-2: #fff6fa; --mk-scard-accent: #db2777; }
.mk-scard__banner {
    flex: 0 0 56px;
    height: 56px;
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--mk-scard-accent) 16%, transparent), transparent 55%),
        linear-gradient(160deg, var(--mk-scard-band), var(--mk-scard-band-2));
}
.mk-scard__body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
    padding: 0 14px 14px;
    margin-top: -28px;
    min-height: 0;
}
.mk-scard__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
    text-align: start;
    padding-top: 28px;
}
.mk-scard__logo-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    align-self: flex-start;
}
.mk-scard__logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(23, 26, 43, 0.12);
    display: block;
}
.mk-scard__verified {
    position: absolute;
    inset-inline-end: -2px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #34d399, #059669);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
    font-size: 11px;
    line-height: 1;
}
.mk-scard__verified-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    max-width: 100%;
    height: 24px;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
    line-height: 1;
    overflow: hidden;
}
.mk-scard__verified-label i {
    flex-shrink: 0;
    font-size: 11px;
}
.mk-scard__verified-label.is-empty {
    visibility: hidden;
    background: transparent;
    border-color: transparent;
}
.mk-scard__title {
    margin: 0;
    width: 100%;
    min-height: 0;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mk-scard__cta {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--mk-scard-accent);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    overflow: hidden;
    transition: filter .15s ease;
}
.mk-scard__cta i {
    flex-shrink: 0;
    font-size: 11px;
}
.mk-scard:hover .mk-scard__cta {
    filter: brightness(1.05);
}
.mk-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8faf3;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
}

/* TRUST */
.mk-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.mk-trust__card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--mk-border);
}
.mk-trust__ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.mk-trust__ico--blue { background: #e8f0ff; color: #2563EB; }
.mk-trust__ico--orange { background: #fff4e5; color: #ea580c; }
.mk-trust__ico--green { background: #e7faf2; color: #059669; }
.mk-trust__ico--purple { background: #f1efff; color: #5146E5; }
.mk-trust__card strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}
.mk-trust__card p {
    margin: 0;
    font-size: 12px;
    color: var(--mk-muted);
    font-weight: 500;
    line-height: 1.5;
}

/* POPULAR CATEGORIES */
.mk-popular-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.mk-popular {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}
.mk-popular img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.mk-popular:hover img { transform: scale(1.06); }
.mk-popular::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 35%, rgba(15,18,40,.78));
}
.mk-popular__meta {
    position: absolute;
    inset-inline: 12px;
    bottom: 14px;
    z-index: 1;
}
.mk-popular__meta strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}
.mk-popular__meta span {
    font-size: 11.5px;
    font-weight: 600;
    opacity: .9;
}
.mk-popular__arrow {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* SHOWCASE — featured shop spotlight card */
.mk-showcase {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
    border-color: transparent;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(124, 92, 255, 0.45), transparent 55%),
        radial-gradient(80% 100% at 0% 100%, rgba(37, 99, 235, 0.35), transparent 50%),
        linear-gradient(125deg, #3730a3 0%, #5146E5 48%, #2563EB 100%);
    box-shadow: 0 14px 36px rgba(81, 70, 229, 0.28);
    color: #fff;
}
.mk-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.14) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.1) 0 1.5px, transparent 2.5px);
    background-size: 44px 44px, 34px 34px;
    pointer-events: none;
    opacity: .5;
}
.mk-showcase > * {
    position: relative;
    z-index: 1;
}
.mk-showcase__head {
    align-items: center;
}
.mk-showcase__identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.mk-showcase__logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
    background: #fff;
    flex-shrink: 0;
}
.mk-showcase__identity-text {
    min-width: 0;
}
.mk-showcase .mk-section__title {
    color: #fff;
    text-shadow: 0 1px 0 rgba(30, 27, 75, 0.18);
}
.mk-showcase .mk-section__title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-inline-end: 8px;
    border-radius: 50%;
    background: #a5b4fc;
    box-shadow: 0 0 0 4px rgba(165, 180, 252, 0.32);
    vertical-align: middle;
    transform: translateY(-1px);
}
.mk-showcase__shop-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.mk-showcase__shop-line strong {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}
.mk-showcase .mk-verified {
    background: rgba(255, 255, 255, 0.16);
    color: #bbf7d0;
    border: 1px solid rgba(187, 247, 208, 0.35);
    backdrop-filter: blur(4px);
}
.mk-showcase .mk-link-more {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
    transition: background .15s ease, border-color .15s ease;
}
.mk-showcase .mk-link-more:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}
.mk-showcase__products {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    align-items: stretch;
    width: 100%;
}
.mk-showcase__products .mk-pcard {
    min-height: 0;
    height: 100%;
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}
.mk-showcase__products .mk-pcard:hover {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

/* MORE GRID */
.mk-more-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    min-width: 0;
}
.mk-more-grid .mk-pcard {
    min-height: 0;
}
/* CAMPAIGN */
.mk-campaign {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 24px;
    min-height: 260px;
    padding: 36px 40px;
    border-radius: 22px;
    background: linear-gradient(120deg, #5146E5 0%, #7C5CFF 45%, #2563EB 100%);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    position: relative;
}
.mk-campaign__eyebrow {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.mk-campaign__copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 700;
}
.mk-campaign__copy p {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 500;
    opacity: .92;
}
.mk-campaign__collage {
    position: relative;
    height: 200px;
}
.mk-campaign__collage img {
    position: absolute;
    width: 42%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid rgba(255,255,255,.4);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.mk-campaign__collage img:nth-child(1) { inset-inline-end: 8%; top: 0; transform: rotate(-8deg); }
.mk-campaign__collage img:nth-child(2) { inset-inline-start: 18%; top: 28%; width: 38%; transform: rotate(6deg); }
.mk-campaign__collage img:nth-child(3) { inset-inline-end: 28%; bottom: -4%; width: 34%; transform: rotate(-3deg); }

/* FOOTER styles live in marketplace-footer.css (shared sitewide) */

/* RESPONSIVE DESKTOP SUPPORT 1280 */
@media (max-width: 1360px) {
    .mk-header__top-inner {
        grid-template-columns: auto minmax(360px, 520px) auto;
    }
    .mk-icon-btn__label { display: none; }
    .mk-popular-grid { grid-template-columns: repeat(4, 1fr); }
    .mk-more-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .mk-showcase__products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .mk-trust { grid-template-columns: repeat(2, 1fr); }
    .mk-promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-showcase__products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mk-more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
