/* ==========================================================================
   Marketplace — landing, listing (browse / category / store), product page,
   product + supplier cards, category sub-nav.
   custom.css forces font-size / line-height on h1-h6, p, li and a with
   !important, so those two properties need !important here as well.
   ========================================================================== */

:root {
    --mk-primary: #652d90;
    --mk-primary-dark: #3e006d;
    --mk-navy: #14003e;
    --mk-red: #ff0000;
    --mk-red-dark: #cc0000;
    --mk-lime: #d6e43a;
    --mk-heading: #333333;
    --mk-text: #424242;
    --mk-muted: #6b6b76;
    --mk-border: #dcdce3;
    --mk-soft: #f7f4fb;
    --mk-radius: 8px;
}

/* ---------- Sections / headings ---------- */
.mk-section {
    padding: 64px 0;
    background: #fff;
}

/* Landing page: products section directly under the banner */
.mk-section--after-hero {
    padding-top: 44px;
}

.mk-section--soft {
    background: var(--mk-soft);
}

.mk-section--listing {
    padding: 32px 0 72px;
}

.mk-title {
    margin-bottom: 28px;
}

.mk-title h2 {
    color: var(--mk-heading);
    font-weight: 800;
    font-size: clamp(26px, 3vw, 34px) !important;
    line-height: 1.3 !important;
    margin-bottom: 12px;
}

.mk-baseline {
    height: 1px;
    background: var(--mk-border);
}

.mk-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mk-border);
}

.mk-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--mk-heading);
    font-weight: 800;
    font-size: clamp(22px, 2.4vw, 28px) !important;
    line-height: 1.3 !important;
}

.mk-head > a {
    color: var(--mk-primary);
    font-weight: 700;
    font-size: 14px !important;
}

.mk-head__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--mk-soft);
    color: var(--mk-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mk-section--soft .mk-head__icon {
    background: #fff;
}

html[dir="rtl"] .mk-head > a .bi-arrow-right,
html[dir="rtl"] .mk-catcard__link .bi-arrow-right {
    display: inline-block;
    transform: scaleX(-1);
}

/* ---------- Buttons / badges ---------- */
.mk-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mk-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px !important;
    line-height: 1.4 !important;
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s;
}

.mk-btn--primary {
    background: var(--mk-primary-dark);
    color: #fff;
}

.mk-btn--primary:hover {
    background: var(--mk-primary);
    color: #fff;
}

.mk-btn--red {
    background: var(--mk-red);
    color: #fff;
}

.mk-btn--red:hover {
    background: var(--mk-red-dark);
    color: #fff;
}

.mk-btn--outline {
    border-color: var(--mk-red);
    color: var(--mk-red);
    background: transparent;
}

.mk-btn--outline:hover {
    background: var(--mk-red);
    color: #fff;
}

.mk-btn--ghost {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

.mk-btn--ghost:hover {
    background: #fff;
    color: var(--mk-navy);
}

.mk-btn--outline-primary {
    border-color: var(--mk-primary-dark);
    color: var(--mk-primary-dark);
    background: #fff;
}

.mk-btn--outline-primary:hover {
    background: var(--mk-soft);
    color: var(--mk-primary-dark);
}

.mk-link-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: var(--mk-primary);
    font-weight: 700;
    font-size: 14px !important;
}

.mk-link-btn:hover {
    color: var(--mk-primary-dark);
    text-decoration: underline;
}

/* Quantity stepper + buy box */
.mk-buy {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.mk-buy .mk-btn {
    flex: 1 1 150px;
}

.mk-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--mk-border);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.mk-qty button {
    width: 40px;
    border: 0;
    background: var(--mk-soft);
    color: var(--mk-primary-dark);
    font-size: 18px;
    cursor: pointer;
}

.mk-qty input {
    width: 64px;
    border: 0;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--mk-heading);
    -moz-appearance: textfield;
}

.mk-qty input::-webkit-outer-spin-button,
.mk-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mk-buy__hint {
    color: var(--mk-muted);
    font-size: 13px !important;
    margin: 0 0 14px;
}

.mk-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}

.mk-badge--red {
    background: var(--mk-red);
    color: #fff;
}

.mk-badge--lime {
    background: var(--mk-lime);
    color: var(--mk-navy);
}

/* ---------- Hero ---------- */
.mk-hero {
    padding: 26px 0 0;
    background: #fff;
}

.mk-hero__inner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 48px;
    border-radius: 12px;
    background: radial-gradient(circle at 85% 30%, #7d42ad 0%, var(--mk-primary-dark) 55%, var(--mk-navy) 100%);
    color: #fff;
}

html[dir="rtl"] .mk-hero__inner {
    background: radial-gradient(circle at 15% 30%, #7d42ad 0%, var(--mk-primary-dark) 55%, var(--mk-navy) 100%);
}

.mk-kicker {
    display: inline-block;
    color: var(--mk-lime);
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 14px;
}

html[dir="rtl"] .mk-kicker {
    letter-spacing: 0;
}

.mk-hero h1 {
    color: #fff;
    font-size: clamp(34px, 4.5vw, 54px) !important;
    line-height: 1.15 !important;
    font-weight: 800;
    margin: 6px 0 12px;
}

.mk-hero p {
    color: rgba(255, 255, 255, .85);
    max-width: 620px;
    margin: 0;
}

.mk-search {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin-top: 26px;
    padding: 6px;
    border-radius: 50px;
    background: #fff;
}

.mk-search > i {
    color: var(--mk-muted);
    padding: 0 12px;
    font-size: 18px;
}

.mk-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 10px 4px;
    font-size: 15px;
    color: var(--mk-heading);
    background: transparent;
}

.mk-search button {
    border: 0;
    padding: 11px 28px;
    border-radius: 50px;
    background: var(--mk-red);
    color: #fff;
    font-weight: 700;
}

.mk-search button:hover {
    background: var(--mk-red-dark);
}

.mk-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.mk-hero__stats li {
    color: rgba(255, 255, 255, .75);
    font-size: 14px !important;
}

.mk-hero__stats strong {
    display: block;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.mk-hero__art {
    position: relative;
    height: 280px;
}

.mk-hero__bag {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: #fff;
    color: var(--mk-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 78px;
    box-shadow: 0 0 0 18px rgba(255, 255, 255, .1), 0 0 0 36px rgba(255, 255, 255, .05);
}

.mk-hero__bubble {
    position: absolute;
    z-index: 1;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--mk-navy);
    background: var(--mk-lime);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
    animation: mk-float 6s ease-in-out infinite;
}

.mk-hero__bubble--1 {
    top: 6%;
    inset-inline-start: 18%;
}

.mk-hero__bubble--2 {
    top: 14%;
    inset-inline-end: 10%;
    background: #fff;
    color: var(--mk-primary);
    animation-delay: -1.5s;
}

.mk-hero__bubble--3 {
    bottom: 8%;
    inset-inline-start: 10%;
    background: #fff;
    color: var(--mk-red);
    animation-delay: -3s;
}

.mk-hero__bubble--4 {
    bottom: 4%;
    inset-inline-end: 22%;
    background: var(--mk-red);
    color: #fff;
    animation-delay: -4.5s;
}

@keyframes mk-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .mk-hero__bubble { animation: none; }
}

/* ---------- Main category cards ---------- */
.mk-catcards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.mk-catcard {
    position: relative;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    padding: 22px 20px 20px;
    background: #fff;
    border: 1px solid var(--mk-border);
    border-bottom: 3px solid var(--mk-primary);
    border-radius: var(--mk-radius);
    color: var(--mk-heading);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.mk-catcard::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--mk-soft);
    top: -50px;
    inset-inline-end: -40px;
    transition: background-color .25s;
}

.mk-catcard:hover {
    transform: translateY(-4px);
    border-bottom-color: var(--mk-red);
    box-shadow: 0 16px 34px rgba(62, 0, 109, .12);
    color: var(--mk-heading);
}

.mk-catcard:hover::after {
    background: rgba(101, 45, 144, .12);
}

.mk-catcard__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.mk-catcard__icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--mk-primary-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: background-color .25s;
}

.mk-catcard__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-catcard:hover .mk-catcard__icon {
    background: var(--mk-red);
}

.mk-catcard__count {
    padding: 4px 10px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--mk-border);
    color: var(--mk-primary);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.mk-catcard h4 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: var(--mk-heading);
    font-weight: 800;
    font-size: 18px !important;
    line-height: 1.35 !important;
}

.mk-catcard__subs {
    position: relative;
    z-index: 1;
    color: var(--mk-muted);
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    margin: 0 0 14px;
}

.mk-catcard__link {
    position: relative;
    z-index: 1;
    margin-top: auto;
    color: var(--mk-primary);
    font-weight: 700;
    font-size: 14px;
}

/* ---------- Tags / quick links ---------- */
.mk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.mk-tags a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid var(--mk-text);
    border-radius: 3px;
    background: #fff;
    color: var(--mk-text);
    font-size: 14px !important;
    line-height: 1.3 !important;
    transition: background-color .2s, color .2s, border-color .2s;
}

.mk-tags a:hover,
.mk-tags a.is-active {
    background: var(--mk-primary-dark);
    border-color: var(--mk-primary-dark);
    color: #fff;
}

.mk-tags--tabs {
    margin-top: 18px;
}

/* ---------- Product card ---------- */
.mk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.mk-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mk-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Product grid next to the category sidebar: 4 per row, slightly tighter so the cards keep their width */
.mk-grid--with-side {
    gap: 16px;
}

.mk-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}

.mk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(62, 0, 109, .12);
}

.mk-card__media {
    position: relative;
    display: block !important;
    aspect-ratio: 4 / 3;
    background: var(--mk-soft);
    overflow: hidden;
}

.mk-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.mk-card:hover .mk-card__media img {
    transform: scale(1.05);
}

.mk-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    color: rgba(255, 255, 255, .92);
    background: radial-gradient(circle at 30% 25%, #8a4dbb 0%, var(--mk-primary) 50%, var(--mk-primary-dark) 100%);
}

.mk-card__badges {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mk-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

.mk-card__vendor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.mk-vendor-mini {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--mk-muted);
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.mk-vendor-mini img,
.mk-vendor-mini > span {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--mk-primary-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-vendor-mini em {
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.mk-vendor-mini:hover {
    color: var(--mk-primary);
}

.mk-card__type {
    flex: 0 1 auto;
    min-width: 0;
    padding: 3px 9px;
    border-radius: 50px;
    background: var(--mk-soft);
    color: var(--mk-primary);
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-card h3 {
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mk-card h3 a {
    color: var(--mk-heading);
    font-weight: 700;
    font-size: 16px !important;
    line-height: 1.4 !important;
    display: inline !important;
}

.mk-card h3 a:hover {
    color: var(--mk-primary);
}

.mk-card__foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.mk-card__btn {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 3px;
    background: var(--mk-primary-dark);
    color: #fff;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 600;
    white-space: nowrap;
}

.mk-card__btn:hover {
    background: var(--mk-primary);
    color: #fff;
}

.mk-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.mk-card__actions form {
    margin: 0;
}

.mk-card__actions button {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.mk-card__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 3px;
    border: 1px solid var(--mk-primary-dark) !important;
    background: #fff;
    color: var(--mk-primary-dark);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}

.mk-card__cart:hover {
    background: var(--mk-soft);
}

.mk-card__cart i {
    font-size: 15px;
}

.mk-card__soldout {
    grid-column: 1 / -1;
    padding: 7px;
    border-radius: 3px;
    background: #f1f1f4;
    color: var(--mk-muted);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.mk-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--mk-border);
    color: var(--mk-primary);
    font-size: 12.5px;
    font-weight: 600;
}

/* ---------- Price ---------- */
.mk-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    line-height: 1.1;
}

.mk-price__cur {
    color: var(--mk-muted);
    font-size: 12px;
    font-weight: 700;
}

.mk-price strong {
    color: var(--mk-heading);
    font-size: 22px;
    font-weight: 800;
}

.mk-price del {
    color: var(--mk-muted);
    font-size: 13px;
}

/* "/ kg" sits on the same line as the price */
.mk-price small {
    color: var(--mk-muted);
    font-size: 13px;
    font-weight: 600;
}

.mk-price strong.mk-price__ask {
    color: var(--mk-primary);
    font-size: 15px;
}

.mk-price--lg strong {
    font-size: 34px;
}

.mk-price--lg del {
    font-size: 16px;
}

.mk-price--lg strong.mk-price__ask {
    font-size: 22px;
}

/* ---------- Wholesale band ---------- */
.mk-band {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 30px;
    padding: 34px;
    border-radius: 12px;
    background: var(--mk-primary-dark);
    color: #fff;
}

.mk-band--solo {
    grid-template-columns: 1fr;
}

.mk-band h2 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(24px, 2.6vw, 32px) !important;
    line-height: 1.3 !important;
    margin: 14px 0 10px;
}

.mk-band p {
    color: rgba(255, 255, 255, .82);
    margin: 0 0 22px;
    max-width: 640px;
}

/* ---------- Supplier cards ---------- */
.mk-vendor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.mk-vendor-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--mk-border);
    border-radius: 6px;
    background: #fff;
}

.mk-vendor-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mk-vendor-card__logo {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--mk-primary-dark);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-vendor-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.mk-vendor-card__badge {
    background: var(--mk-primary-dark);
    color: #fff;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.mk-vendor-card h6 {
    color: var(--mk-heading);
    font-weight: 700;
    font-size: 16px !important;
    margin: 0 0 6px;
}

.mk-vendor-card__desc {
    color: var(--mk-muted);
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin: 0 0 8px;
}

.mk-vendor-card__count {
    margin: auto 0 0;
    color: var(--mk-primary);
    font-weight: 600;
    font-size: 12.5px !important;
}

.mk-vendor-card__count span {
    color: var(--mk-muted);
}

.mk-vendor-card > a {
    display: block;
    margin-top: 14px;
    padding: 9px 0;
    text-align: center;
    border: 1px solid var(--mk-red);
    color: var(--mk-red);
    font-weight: 600;
    font-size: 14px !important;
    transition: background-color .2s, color .2s;
}

.mk-vendor-card > a:hover {
    background: var(--mk-red);
    color: #fff;
}

/* ---------- Join-as-supplier highlight ---------- */
.mk-highlight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    padding: 32px 36px;
    border-radius: 10px;
    background: var(--mk-navy);
    color: #fff;
}

.mk-highlight__icon {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--mk-lime);
    color: var(--mk-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.mk-highlight > div {
    flex: 1 1 360px;
}

.mk-highlight h3 {
    color: #fff;
    font-weight: 800;
    font-size: 24px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px;
}

.mk-highlight p {
    color: rgba(255, 255, 255, .85);
    margin: 0;
}

/* ---------- Listing head ---------- */
.mk-listhead {
    position: relative;
    overflow: hidden;
    padding: 24px 0 26px;
    background:
        radial-gradient(circle at 95% 0%, rgba(101, 45, 144, 0.12), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(255, 176, 32, 0.1), transparent 35%),
        linear-gradient(180deg, #f7f3fb 0%, #fbf9fd 100%);
    border-bottom: 1px solid var(--mk-border);
}

.mk-listhead--slim {
    padding: 18px 0;
}

/* Breadcrumb (partials/breadcrumb): white pill bar, home icon, current page as a purple pill */
.mk-crumbs {
    display: flex;
}

.mk-crumbs ol {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    margin: 0;
    padding: 5px;
    overflow-x: auto;
    list-style: none;
    border: 1px solid var(--mk-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 26px -20px rgba(20, 0, 63, 0.45);
    scrollbar-width: none;
}

.mk-crumbs ol::-webkit-scrollbar {
    display: none;
}

.mk-crumbs li {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
}

.mk-crumbs li + li::before {
    content: '\F285';
    font-family: 'bootstrap-icons';
    color: #c9b3e0;
    font-size: 10px;
    line-height: 1;
}

html[dir='rtl'] .mk-crumbs li + li::before {
    transform: scaleX(-1);
}

.mk-crumbs a,
.mk-crumbs span {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--mk-muted);
    font-size: 13.5px !important;
    font-weight: 600;
    line-height: 1.3 !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mk-crumbs a:hover {
    background: #f7f3fb;
    color: #652d90;
}

.mk-crumbs a .bi {
    color: #652d90;
    font-size: 14px;
}

.mk-crumbs .mk-crumbs__home {
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #ece3f5;
}

.mk-crumbs .mk-crumbs__home:hover {
    background: #652d90;
}

.mk-crumbs .mk-crumbs__home:hover .bi {
    color: #fff;
}

.mk-crumbs li[aria-current] span {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #652d90;
    color: #fff;
}

/* Phones: wrap onto several lines so the current page is always visible */
@media (max-width: 575px) {
    .mk-crumbs ol {
        flex-wrap: wrap;
        row-gap: 4px;
        border-radius: 18px;
    }

    .mk-crumbs li[aria-current] span {
        max-width: 240px;
    }
}

.mk-listhead__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.mk-listhead h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--mk-heading);
    font-weight: 800;
    font-size: clamp(26px, 3vw, 36px) !important;
    line-height: 1.25 !important;
}

.mk-listhead h1 small {
    color: var(--mk-muted);
    font-size: 18px;
    font-weight: 600;
}

.mk-listhead h1 .mk-head__icon {
    background: #fff;
}

.mk-listhead__count {
    padding: 6px 14px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--mk-border);
    color: var(--mk-primary);
    font-weight: 700;
    font-size: 14px;
}

.mk-store-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 18px;
}

.mk-store-head__logo {
    flex-basis: 84px;
    width: 84px;
    height: 84px;
    font-size: 26px;
}

.mk-store-head h1 {
    margin-bottom: 6px;
}

.mk-store-head p {
    color: var(--mk-text);
    max-width: 760px;
    margin: 0 0 8px;
}

.mk-store-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--mk-muted);
    font-size: 14px;
}

/* ---------- Listing layout / filters ---------- */
.mk-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.mk-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

.mk-panel {
    padding: 20px;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    background: #fff;
}

.mk-panel h4 {
    margin: 0 0 12px;
    color: var(--mk-heading);
    font-weight: 700;
    font-size: 15px !important;
}

.mk-panel h4:not(:first-child) {
    margin-top: 20px;
}

.mk-panel__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--mk-border);
    border-radius: 6px;
}

.mk-panel__search i {
    color: var(--mk-muted);
}

.mk-panel__search input,
.mk-price-range input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 0;
    font-size: 14px;
    background: transparent;
}

.mk-price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mk-price-range input {
    border: 1px solid var(--mk-border);
    border-radius: 6px;
    padding: 9px 10px;
}

.mk-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--mk-text);
    font-size: 14px;
    cursor: pointer;
}

.mk-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--mk-primary-dark);
}

.mk-panel .mk-btn {
    margin-top: 12px;
}

.mk-reset {
    display: block !important;
    margin-top: 10px;
    text-align: center;
    color: var(--mk-red);
    font-size: 13.5px !important;
    font-weight: 600;
}

/* ---------- Sidebar category tree (listing pages) ----------
   Main category -> sub-category -> item category, each level a <details> dropdown. */
.mk-tree li + li {
    margin-top: 4px;
}

.mk-tree a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--mk-text);
    font-size: 15px !important;
    line-height: 1.4 !important;
    transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease;
}

.mk-tree a > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ece3f5;
    color: #652d90;
    font-size: 14px;
}

.mk-tree a span {
    flex: 1;
}

.mk-tree a em,
.mk-tree__drop summary em {
    flex: 0 0 auto;
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3eef9;
    color: #652d90;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.mk-tree a:hover,
.mk-tree a.is-active {
    background: #f7f3fb;
    color: #652d90;
    font-weight: 700;
}

/* Dropdown rows */
.mk-tree__drop summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--mk-heading);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mk-tree__drop summary::-webkit-details-marker {
    display: none;
}

.mk-tree__drop summary > i:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ece3f5;
    color: #652d90;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mk-tree__drop summary span {
    flex: 1;
    min-width: 0;
}

.mk-tree__drop summary:hover {
    background: #f7f3fb;
}

.mk-tree__drop[open] > summary,
.mk-tree__drop summary.is-active {
    background: #f7f3fb;
    color: #652d90;
    font-weight: 700;
}

.mk-tree__drop[open] > summary > i:first-child,
.mk-tree__drop summary.is-active > i:first-child {
    background: #652d90;
    color: #fff;
}

.mk-tree__chevron {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--mk-muted);
    font-size: 11px;
    transition: transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.mk-tree__drop summary:hover > .mk-tree__chevron {
    background: #ece3f5;
    color: #652d90;
}

.mk-tree__drop[open] > summary > .mk-tree__chevron {
    transform: rotate(180deg);
    color: #652d90;
}

/* Sub-categories, with a guide line back to the main category */
.mk-tree__subs {
    position: relative;
    margin: 6px 0 10px;
    padding-inline-start: 12px;
}

.mk-tree__subs::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 10px;
    inset-inline-start: 11px;
    width: 2px;
    border-radius: 2px;
    background: #ece3f5;
}

.mk-tree__subs > li {
    padding-inline-start: 10px;
}

.mk-tree__subs a {
    padding: 8px 10px;
    color: var(--mk-text);
    font-size: 14.5px !important;
}

.mk-tree__drop--sub summary {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--mk-text);
    font-size: 14.5px;
    font-weight: 600;
}

.mk-tree__drop--sub summary em {
    font-size: 11.5px;
}

/* Item categories */
.mk-tree__items {
    position: relative;
    margin: 4px 0 8px;
    padding-inline-start: 14px;
}

.mk-tree__items::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 10px;
    inset-inline-start: 10px;
    width: 2px;
    border-radius: 2px;
    background: #ece3f5;
}

.mk-tree__items a {
    padding: 7px 10px;
    color: var(--mk-text);
    font-size: 14px !important;
}

.mk-tree__items a em {
    background: transparent;
    color: var(--mk-muted);
}

.mk-tree__items a:hover,
.mk-tree__items a.is-active {
    padding-inline-start: 14px;
}

.mk-tree__items a.is-active em {
    background: #652d90;
    color: #fff;
}

.mk-tree a.mk-tree__all {
    color: #652d90;
    font-size: 14px !important;
    font-weight: 700;
}

/* Item-category chips under the sub-category tabs on a category page */
.mk-itemchips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mk-itemchips a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 5px;
    border: 1px solid var(--mk-border);
    border-radius: 999px;
    background: #fff;
    color: var(--mk-heading);
    font-size: 13.5px !important;
    font-weight: 600;
    line-height: 1.3 !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

html[dir="rtl"] .mk-itemchips a {
    padding: 5px 5px 5px 14px;
}

.mk-itemchips a:hover {
    border-color: #652d90;
}

.mk-itemchips a.is-active {
    border-color: #652d90;
    background: #652d90;
    color: #fff;
}

.mk-itemchips__thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ece3f5;
    color: #652d90;
    font-size: 13px;
}

.mk-itemchips__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-itemchips em {
    font-style: normal;
    font-size: 11.5px;
    font-weight: 800;
    opacity: 0.6;
}

/* Brand · net weight line on product cards */
.mk-card__details {
    margin: -4px 0 8px;
    color: var(--mk-muted);
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* ---------- Landing page category accordion (All Products sidebar) ---------- */
.mk-cats {
    overflow: hidden;
    border: 1px solid var(--mk-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px -34px rgba(20, 0, 63, 0.45);
}

.mk-cats__head {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #14003f 0%, #652d90 100%);
    color: #fff;
}

.mk-cats__head::after {
    content: "";
    position: absolute;
    top: -50px;
    inset-inline-end: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.mk-cats__head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 18px;
}

.mk-cats__head h4 {
    margin: 0;
    color: #fff;
    font-size: 17px !important;
    font-weight: 800;
    line-height: 1.3 !important;
}

.mk-cats__head small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12.5px;
}

.mk-cats__list {
    padding: 10px;
}

.mk-cat + .mk-cat {
    margin-top: 6px;
}

.mk-cat summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    color: var(--mk-heading);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mk-cat summary::-webkit-details-marker {
    display: none;
}

.mk-cat summary:hover,
.mk-cat[open] summary {
    background: #f7f3fb;
}

.mk-cat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ece3f5;
    color: #652d90;
    font-size: 16px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mk-cat[open] .mk-cat__icon {
    background: #652d90;
    color: #fff;
}

.mk-cat__name {
    flex: 1;
    min-width: 0;
}

.mk-cat__count {
    flex: 0 0 auto;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ece3f5;
    color: #652d90;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.mk-cat__chevron {
    flex: 0 0 auto;
    color: var(--mk-muted);
    font-size: 12px;
    transition: transform 0.25s ease;
}

.mk-cat[open] .mk-cat__chevron {
    transform: rotate(180deg);
}

.mk-cat__subs {
    position: relative;
    margin: 6px 0 8px;
    padding: 0;
    padding-inline-start: 29px;
    list-style: none;
}

/* Vertical guide line linking the sub-categories to their parent icon */
.mk-cat__subs::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 14px;
    inset-inline-start: 28px;
    width: 2px;
    border-radius: 2px;
    background: #ece3f5;
}

.mk-cat__subs a {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 18px;
    border-radius: 8px;
    color: var(--mk-text);
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

html[dir="rtl"] .mk-cat__subs a {
    padding: 7px 18px 7px 12px;
}

.mk-cat__subs a::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: -2px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #c9b3e0;
    transition: background-color 0.2s ease;
}

.mk-cat__subs a:hover {
    background: #f7f3fb;
    color: #652d90;
}

.mk-cat__subs a:hover::before {
    background: #652d90;
}

.mk-cat__all a {
    color: #652d90;
    font-weight: 700;
}

.mk-cat__all a::before {
    display: none;
}

html[dir="rtl"] .mk-cat__all .bi-arrow-right,
html[dir="rtl"] .mk-cats__foot .bi-arrow-right {
    transform: scaleX(-1);
}

.mk-cats__foot {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 10px 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f3fb;
    color: #652d90;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.3 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mk-cats__foot .bi-arrow-right {
    margin-inline-start: auto;
}

.mk-cats__foot:hover {
    background: #652d90;
    color: #fff;
}

.mk-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.mk-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mk-muted);
    font-size: 14px;
}

.mk-sort select,
.mk-filter-toggle {
    padding: 9px 14px;
    border: 1px solid var(--mk-border);
    border-radius: 6px;
    background: #fff;
    color: var(--mk-heading);
    font-size: 14px;
}

.mk-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    margin-inline-end: auto;
}

/* ---------- Empty / pagination ---------- */
.mk-empty {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 1px dashed var(--mk-border);
    border-radius: 12px;
}

.mk-empty__icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--mk-soft);
    color: var(--mk-primary);
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-empty h3 {
    color: var(--mk-heading);
    font-weight: 800;
    font-size: 22px !important;
    margin-bottom: 8px;
}

.mk-empty p {
    color: var(--mk-muted);
    max-width: 520px;
    margin: 0 auto 20px;
}

.mk-pagination {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.mk-pagination .pagination {
    flex-wrap: wrap;
    gap: 6px;
}

.mk-pagination .page-link {
    min-width: 40px;
    text-align: center;
    border-radius: 4px !important;
    border-color: var(--mk-border);
    color: var(--mk-heading);
}

.mk-pagination .page-item.active .page-link {
    background: var(--mk-primary-dark);
    border-color: var(--mk-primary-dark);
    color: #fff;
}

/* ---------- Product page ---------- */
.mk-product {
    display: grid;
    /* Smaller photo column, wider info column */
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
    gap: 40px;
}

.mk-gallery__main {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--mk-border);
    background: var(--mk-soft);
}

.mk-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-gallery__main .mk-card__placeholder {
    font-size: 110px;
}

.mk-gallery__credit {
    margin: 8px 0 0;
    color: var(--mk-muted);
    font-size: 11.5px !important;
    line-height: 1.5 !important;
}

.mk-gallery__credit a {
    color: var(--mk-muted);
    font-size: 11.5px !important;
    line-height: 1.5 !important;
    display: inline !important;
}

.mk-gallery__credit a:hover {
    text-decoration: underline;
}

.mk-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.mk-gallery__thumbs button {
    padding: 0;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
}

.mk-gallery__thumbs button.is-active {
    border-color: var(--mk-primary);
}

.mk-gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-info .mk-card__vendor {
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.mk-verified {
    color: #0d9e6e;
}

.mk-info h1 {
    color: var(--mk-heading);
    font-weight: 800;
    font-size: clamp(26px, 3vw, 36px) !important;
    line-height: 1.25 !important;
    margin: 0 0 12px;
}

.mk-info__lead {
    color: var(--mk-text);
}

.mk-info__price {
    margin: 22px 0;
    padding: 20px 0;
    border-top: 1px solid var(--mk-border);
    border-bottom: 1px solid var(--mk-border);
}

.mk-info__b2b {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--mk-soft);
    color: var(--mk-primary-dark);
}

.mk-info__b2b > i {
    font-size: 22px;
}

.mk-info__b2b strong,
.mk-info__b2b span {
    display: block;
}

.mk-info__b2b span {
    color: var(--mk-muted);
    font-size: 13.5px;
}

.mk-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
}

.mk-specs li {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border: 1px solid var(--mk-border);
    border-radius: 6px;
}

.mk-specs span {
    color: var(--mk-muted);
    font-size: 12.5px;
}

.mk-specs strong {
    color: var(--mk-heading);
    font-size: 15px;
}

.mk-in-stock {
    color: #0d9e6e !important;
}

.mk-out-stock {
    color: var(--mk-red) !important;
}

.mk-product-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    /* Both columns end at the same line */
    align-items: stretch;
    margin-top: 40px;
}

.mk-product-lower__main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* The details box grows to fill the column next to the quote form */
.mk-product-lower__main > .mk-details {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.mk-box {
    padding: 24px;
    border: 1px solid var(--mk-border);
    border-radius: 10px;
    background: #fff;
}

.mk-box h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--mk-heading);
    font-weight: 800;
    font-size: 21px !important;
    line-height: 1.3 !important;
}

.mk-box__body {
    color: var(--mk-text);
}

.mk-box--vendor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.mk-box--vendor > div {
    flex: 1 1 220px;
}

.mk-box--vendor small {
    color: var(--mk-muted);
}

.mk-box--vendor h3 {
    color: var(--mk-heading);
    font-weight: 800;
    font-size: 18px !important;
    margin: 0 0 4px;
}

.mk-box--vendor p {
    color: var(--mk-muted);
    font-size: 14px !important;
    margin: 0;
}

.mk-quote {
    position: sticky;
    top: 100px;
    border-top: 4px solid var(--mk-red);
    scroll-margin-top: 110px;
}

.mk-quote > p {
    color: var(--mk-muted);
    font-size: 14px !important;
    margin: -6px 0 16px;
}

.mk-quote__form {
    display: grid;
    gap: 14px;
}

.mk-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 8px;
    background: var(--mk-soft);
}

.mk-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mk-segment span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    border-radius: 6px;
    color: var(--mk-muted);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.mk-segment input:checked + span {
    background: #fff;
    color: var(--mk-primary-dark);
    box-shadow: 0 2px 8px rgba(62, 0, 109, .12);
}

.mk-segment input:focus-visible + span {
    outline: 2px solid var(--mk-primary);
}

.mk-field[hidden] {
    display: none;
}

.mk-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--mk-heading);
    font-weight: 600;
    font-size: 13.5px;
}

.mk-field input,
.mk-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--mk-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--mk-heading);
    background: #fff;
}

.mk-field input:focus,
.mk-field textarea:focus {
    outline: none;
    border-color: var(--mk-primary);
    box-shadow: 0 0 0 3px rgba(101, 45, 144, .12);
}

.mk-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mk-form-errors {
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff1f1;
    color: var(--mk-red-dark);
    font-size: 13.5px;
}

.mk-related {
    margin-top: 56px;
}

/* ---------- Cart / checkout ---------- */
.mk-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.mk-checkout > aside {
    position: sticky;
    top: 100px;
}

.mk-cart {
    border: 1px solid var(--mk-border);
    border-radius: 10px;
    background: #fff;
}

.mk-cart__line {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto 110px 40px;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--mk-border);
}

.mk-cart__thumb {
    position: relative;
    display: block !important;
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mk-soft);
}

.mk-cart__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-cart__thumb .mk-card__placeholder {
    font-size: 30px;
}

.mk-cart__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mk-cart__name {
    color: var(--mk-heading);
    font-weight: 700;
    font-size: 16px !important;
    line-height: 1.35 !important;
}

.mk-cart__name:hover {
    color: var(--mk-primary);
}

.mk-cart__seller,
.mk-cart__unit {
    color: var(--mk-muted);
    font-size: 13px;
}

.mk-cart__unit .mk-badge {
    margin-inline-start: 6px;
    font-size: 11px;
}

.mk-cart__unit .mk-price__ask {
    color: var(--mk-primary);
    font-weight: 700;
}

.mk-cart__tip {
    color: var(--mk-primary);
    font-size: 12.5px;
    font-weight: 600;
}

.mk-cart__total {
    text-align: end;
    color: var(--mk-heading);
    font-weight: 800;
}

.mk-cart__remove {
    width: 38px;
    height: 38px;
    border: 1px solid var(--mk-border);
    border-radius: 50%;
    background: #fff;
    color: var(--mk-muted);
}

.mk-cart__remove:hover {
    border-color: var(--mk-red);
    color: var(--mk-red);
}

.mk-cart__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.mk-summary {
    padding: 22px;
    border: 1px solid var(--mk-border);
    border-top: 4px solid var(--mk-primary-dark);
    border-radius: 10px;
    background: #fff;
}

.mk-summary h3 {
    color: var(--mk-heading);
    font-weight: 800;
    font-size: 19px !important;
    margin-bottom: 14px;
}

.mk-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--mk-border);
    color: var(--mk-text);
    font-size: 14px;
}

.mk-summary__row strong {
    color: var(--mk-heading);
    text-align: end;
}

.mk-summary__row--total {
    border-bottom: 0;
    font-size: 16px;
}

.mk-summary__row--total strong {
    color: var(--mk-primary-dark);
    font-size: 22px;
    font-weight: 800;
}

.mk-summary__note {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff8e1;
    color: #7a5a00;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.mk-summary__items {
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--mk-border);
    max-height: 240px;
    overflow: auto;
}

.mk-summary__items li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: var(--mk-text);
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.mk-summary__items li + li {
    border-top: 1px dashed var(--mk-border);
}

.mk-summary__thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f7f3fb;
    color: #652d90;
}

.mk-summary__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-summary__name {
    flex: 1;
    min-width: 0;
    color: var(--mk-heading);
    font-weight: 600;
}

.mk-summary__name small {
    display: block;
    color: var(--mk-muted);
    font-size: 12.5px;
    font-weight: 500;
}

.mk-summary__items li > strong {
    flex: 0 0 auto;
    color: var(--mk-heading);
    white-space: nowrap;
}

.mk-pay {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mk-pay input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mk-pay span {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--mk-border);
    border-radius: 8px;
    cursor: pointer;
}

.mk-pay span i {
    grid-row: span 2;
    font-size: 24px;
    color: var(--mk-primary);
}

.mk-pay span strong {
    color: var(--mk-heading);
    font-size: 14.5px;
}

.mk-pay span small {
    color: var(--mk-muted);
    font-size: 12.5px;
}

.mk-pay input:checked + span {
    border-color: var(--mk-primary-dark);
    background: var(--mk-soft);
    box-shadow: inset 0 0 0 1px var(--mk-primary-dark);
}

.mk-pay input:focus-visible + span {
    outline: 2px solid var(--mk-primary);
}

.mk-placed {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.mk-placed__icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e5f6ee;
    color: #0d9e6e;
    font-size: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-placed h1 {
    color: var(--mk-heading);
    font-weight: 800;
    font-size: clamp(24px, 3vw, 32px) !important;
    margin-bottom: 10px;
}

.mk-placed__lead {
    color: var(--mk-muted);
}

.mk-placed__items {
    margin: 26px 0;
    text-align: start;
}

.mk-placed__items table {
    width: 100%;
}

.mk-placed__items th,
.mk-placed__items td {
    padding: 10px 6px;
    border-bottom: 1px solid var(--mk-border);
    font-size: 14px;
}

.mk-placed__items tfoot th {
    border-bottom: 0;
    font-size: 16px;
    color: var(--mk-primary-dark);
}

.mk-placed__pay {
    margin: 12px 0 0;
    color: var(--mk-muted);
    font-size: 14px !important;
}

/* ---------- Home: categories left, products right ---------- */
.mk-shelf {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.mk-shelf .mk-panel {
    position: sticky;
    top: 100px;
}

.mk-shelf__cats button,
.mk-shelf__cats a {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--mk-text);
    font-size: 14.5px !important;
    line-height: 1.35 !important;
    text-align: start;
    cursor: pointer;
}

.mk-shelf__cats button i {
    width: 18px;
    text-align: center;
    color: var(--mk-primary);
}

.mk-shelf__cats button span {
    flex: 1;
}

.mk-shelf__cats button em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: var(--mk-muted);
}

.mk-shelf__cats button:hover,
.mk-shelf__cats button.is-active {
    background: var(--mk-soft);
    color: var(--mk-primary-dark);
    font-weight: 700;
}

.mk-shelf__subs {
    margin: 2px 0 8px;
    padding-inline-start: 38px;
}

.mk-shelf__subs a {
    padding: 6px 8px;
    color: var(--mk-muted);
    font-size: 13.5px !important;
}

.mk-shelf__subs a:hover {
    color: var(--mk-primary);
}

.mk-shelf__pane[hidden] {
    display: none;
}

.mk-shelf__more {
    margin-top: 26px;
    text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .mk-grid,
    .mk-vendor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mk-catcards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 991px) {
    .mk-hero__inner {
        grid-template-columns: 1fr;
        padding: 32px 26px;
    }

    .mk-hero__art {
        display: none;
    }

    .mk-band {
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .mk-grid,
    .mk-grid--3,
    .mk-vendor-grid,
    .mk-catcards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mk-layout,
    .mk-product,
    .mk-product-lower {
        grid-template-columns: 1fr;
    }

    .mk-sidebar {
        position: static;
        display: none;
    }

    .mk-sidebar.is-open,
    .mk-sidebar--always {
        display: grid;
    }

    .mk-filter-toggle {
        display: inline-flex;
    }

    .mk-quote {
        position: static;
    }

    .mk-checkout,
    .mk-shelf {
        grid-template-columns: 1fr;
    }

    .mk-checkout > aside,
    .mk-shelf .mk-panel {
        position: static;
    }

    .mk-cart__line {
        grid-template-columns: 72px minmax(0, 1fr) 40px;
    }

    .mk-cart__thumb {
        width: 72px;
        height: 72px;
    }

    .mk-cart__line .mk-qty {
        grid-column: 2;
        justify-self: start;
    }

    .mk-cart__total {
        grid-column: 3;
        grid-row: 2;
    }

    .mk-cart__remove {
        grid-column: 3;
        grid-row: 1;
    }

    .mk-pay {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .mk-section {
        padding: 44px 0;
    }

    .mk-vendor-grid,
    .mk-catcards {
        grid-template-columns: 1fr;
    }

    /* Two compact product cards per row on phones */
    .mk-grid,
    .mk-grid--2,
    .mk-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mk-card__body {
        padding: 10px 10px 12px;
    }

    .mk-card__type,
    .mk-vendor-mini em {
        display: none;
    }

    .mk-card h3 a {
        font-size: 14px !important;
    }

    .mk-price strong {
        font-size: 18px;
    }

    .mk-card__actions {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 10px;
    }

    .mk-card__placeholder {
        font-size: 40px;
    }

    .mk-search button {
        padding: 11px 16px;
    }

    .mk-highlight {
        padding: 24px 20px;
    }

    .mk-field-row,
    .mk-specs {
        grid-template-columns: 1fr;
    }

    .mk-store-head {
        flex-direction: column;
    }
}

/* Product page: details box beside the quote form */
.mk-details__list {
    display: flex;
    flex-direction: column;
    /* Rows spread over the height the box gets from the quote form beside it */
    flex: 1 0 auto;
    justify-content: space-between;
    margin: 0;
}

.mk-details__list > div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--mk-border);
}

.mk-details__list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mk-details__list dt {
    color: var(--mk-muted);
    font-size: 14px;
    font-weight: 600;
}

.mk-details__list dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--mk-heading);
    font-size: 14.5px;
    font-weight: 600;
}

.mk-details__list dd a {
    color: #652d90;
    font-size: 14.5px !important;
}

.mk-details__list dd .bi {
    color: #c9b3e0;
    font-size: 10px;
}

html[dir="rtl"] .mk-details__list dd .bi-chevron-right {
    transform: scaleX(-1);
}

@media (max-width: 575px) {
    .mk-details__list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.mk-details__trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: auto 0 0;
    padding: 22px 0 0;
    list-style: none;
}

.mk-details__trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7f3fb;
    color: var(--mk-heading);
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4 !important;
}

.mk-details__trust .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ece3f5;
    color: #652d90;
    font-size: 17px;
}

@media (max-width: 575px) {
    .mk-details__trust {
        grid-template-columns: 1fr;
    }
}
