/* Marketplace homepage — navy + lime, matches public mockup */

:root {
    --mk-navy: #0b2340;
    --mk-navy-2: #123056;
    --mk-lime: #9ccb2a;
    --mk-lime-dark: #7eae14;
    --mk-text: #163056;
    --mk-muted: #5b6f88;
    --mk-line: #e4ebf2;
    --mk-bg: #ffffff;
    --mk-bg-alt: #f3f6f9;
}

.landing-home {
    background: var(--mk-bg) !important;
    color: var(--mk-text);
}

.landing-home .landing-theme-btn {
    display: none;
}

.landing-home main {
    position: relative;
    z-index: 1;
}

/* ——— Public chrome (navy header) ——— */
.landing-nav {
    background: var(--mk-navy);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav.is-scrolled {
    background: var(--mk-navy);
    box-shadow: 0 8px 28px rgba(7, 20, 38, 0.35);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    padding: 0;
}

.landing-nav-bar {
    width: min(1180px, calc(100% - 2rem));
    min-height: 72px;
    gap: 1rem;
}

.landing-menu {
    gap: 0.15rem 1.15rem;
    margin-right: 0;
    flex: 1;
}

.landing-menu-link,
.landing-dd-toggle {
    color: #eef4fb;
    font-size: 0.86rem;
    font-weight: 600;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.landing-menu-link::after {
    background: var(--mk-lime);
    bottom: -10px;
}

.landing-menu-link:hover,
.landing-menu-link.is-active,
.landing-dd-toggle:hover,
.landing-dd-toggle.is-active {
    color: #fff;
}

.landing-btn--primary,
.landing-home .landing-btn--primary {
    color: var(--mk-navy);
    background: var(--mk-lime);
    box-shadow: none;
}

.landing-btn--primary:hover,
.landing-home .landing-btn--primary:hover {
    background: var(--mk-lime-dark);
    color: var(--mk-navy);
    box-shadow: none;
}

.landing-btn--ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
}

.landing-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.landing-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    border-radius: 10px;
    padding: 0.5rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.landing-auth-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.landing-cart-btn {
    width: 2.55rem;
    height: 2.55rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mk-lime);
    color: var(--mk-navy);
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
}

.landing-cart-btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

.landing-theme-btn,
.landing-panel-btn,
.landing-burger {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.landing-nav .rep-cart-trigger {
    background: var(--mk-lime);
    color: var(--mk-navy);
    border: 0;
    border-radius: 50%;
    width: 2.55rem;
    height: 2.55rem;
}

.landing-dd-panel {
    background: #fff;
    color: var(--mk-text);
}

.landing-dd-panel--cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.1rem 1.4rem;
    min-width: min(720px, 80vw);
    padding: 1.1rem 1.25rem;
}

.landing-cat-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.landing-cat-col-title {
    font-weight: 800;
    color: var(--mk-navy);
    text-decoration: none;
    margin-bottom: 0.2rem;
}

.landing-cat-col-link {
    color: var(--mk-muted);
    text-decoration: none;
    font-size: 0.82rem;
}

.landing-cat-col-link:hover {
    color: var(--mk-lime-dark);
}

[data-theme="light"] .landing-nav,
[data-theme="light"] .landing-nav.is-scrolled {
    background: var(--mk-navy);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .landing-menu-link,
[data-theme="light"] .landing-dd-toggle {
    color: #eef4fb;
}

[data-theme="light"] .landing-menu-link:hover,
[data-theme="light"] .landing-menu-link.is-active {
    color: #fff;
}

/* ——— Hero ——— */
.mk-hero {
    position: relative;
    min-height: 640px;
    padding: 7.5rem 0 4.5rem;
    overflow: hidden;
    color: #fff;
    background: #08192e;
}

.mk-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.mk-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 24, 46, 0.12) 0%, rgba(8, 24, 46, 0.58) 46%, rgba(8, 24, 46, 0.9) 100%),
        linear-gradient(180deg, rgba(8, 24, 46, 0.28) 0%, transparent 32%, rgba(8, 24, 46, 0.4) 100%);
}

.mk-hero-inner {
    position: relative;
    z-index: 1;
}

.mk-hero-copy {
    text-align: right;
    margin: 0 0 1.85rem;
}

.mk-hero-title {
    margin: 0 0 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(1.85rem, 4.1vw, 2.9rem);
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -0.03em;
}

.mk-hero-line {
    display: block;
    white-space: nowrap;
}

.mk-hero-line--2 {
    margin-inline-start: 2.6rem;
    color: var(--mk-lime);
}

.mk-hero-line--3 {
    margin-inline-start: 5.4rem;
}

.mk-hero-lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    font-weight: 500;
}

.mk-search {
    background: #fff;
    color: var(--mk-text);
    border-radius: 22px;
    padding: 0.35rem 0.35rem 0.85rem;
    box-shadow: 0 22px 50px rgba(6, 20, 40, 0.28);
    text-align: right;
}

.mk-search-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.45rem 0.7rem 0;
    border-bottom: 1px solid var(--mk-line);
}

.mk-search-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: none;
    color: var(--mk-muted);
    font: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.75rem 0.7rem 0.85rem;
    cursor: pointer;
    position: relative;
}

.mk-search-tab svg {
    width: 1.05rem;
    height: 1.05rem;
}

.mk-search-tab.is-active {
    color: var(--mk-lime-dark);
}

.mk-search-tab.is-active::after {
    content: "";
    position: absolute;
    right: 0.5rem;
    left: 0.5rem;
    bottom: -1px;
    height: 3px;
    background: var(--mk-lime);
    border-radius: 3px 3px 0 0;
}

.mk-search-form {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 0.65rem;
    padding: 0.9rem 0.75rem 0.15rem;
    align-items: stretch;
}

.mk-search-form.is-oem {
    grid-template-columns: 1fr auto;
}

.mk-search-form.is-oem .mk-search-car {
    display: none;
}

.mk-search-car,
.mk-search-q {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--mk-line);
    border-radius: 12px;
    padding: 0 0.85rem;
    min-height: 54px;
    background: #fff;
}

.mk-search-car svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--mk-navy);
    flex-shrink: 0;
}

.mk-search-car select,
.mk-search-q input {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--mk-text);
    outline: none;
}

.mk-search-submit {
    border: 0;
    border-radius: 12px;
    background: var(--mk-lime);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    padding: 0 1.5rem;
    min-height: 54px;
    cursor: pointer;
    white-space: nowrap;
}

.mk-search-submit:hover {
    background: var(--mk-lime-dark);
    color: #fff;
}

.mk-popular {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.45rem 0.7rem;
    margin-top: 1.1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.mk-popular a {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
}

.mk-popular a:hover {
    border-color: var(--mk-lime);
    color: var(--mk-lime);
}

/* ——— Trust / how / cats ——— */
.mk-trust {
    background: #fff;
    border-bottom: 1px solid var(--mk-line);
}

.mk-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
}

.mk-trust-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.mk-trust-icon {
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    color: var(--mk-navy);
    flex-shrink: 0;
}

.mk-trust-icon svg {
    width: 2.35rem;
    height: 2.35rem;
}

.mk-trust-item h3 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
    font-weight: 700;
}

.mk-trust-item p {
    margin: 0;
    color: var(--mk-muted);
    font-size: 0.8rem;
}

.mk-how,
.mk-cats,
.mk-brands {
    padding: 3.25rem 0;
    background: #fff;
}

.mk-head {
    text-align: center;
    margin-bottom: 2rem;
}

.mk-head h2 {
    margin: 0;
    font-size: 1.55rem;
    position: relative;
    display: inline-block;
}

.mk-head h2::after {
    content: "";
    display: block;
    width: 2.4rem;
    height: 4px;
    background: var(--mk-lime);
    border-radius: 4px;
    margin: 0.55rem auto 0;
}

.mk-head p {
    margin: 0.7rem 0 0;
    color: var(--mk-muted);
    font-size: 0.9rem;
}

.mk-head--row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    text-align: right;
}

.mk-head--row h2::after {
    margin: 0.55rem 0 0 auto;
}

.mk-link-all {
    color: var(--mk-navy);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    border: 1px solid var(--mk-line);
    border-radius: 999px;
    padding: 0.42rem 0.95rem;
    background: #fff;
}

.mk-link-all:hover {
    color: var(--mk-navy);
    border-color: var(--mk-lime);
    background: #f7fbe9;
}

.mk-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    position: relative;
}

.mk-steps::before {
    content: "";
    position: absolute;
    top: 1.35rem;
    right: 8%;
    left: 8%;
    border-top: 2px dashed #d5deea;
}

.mk-steps li {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

.mk-step-visual {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mk-step-num {
    position: absolute;
    top: -0.15rem;
    inset-inline-start: -0.2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--mk-lime);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 4px #fff;
    z-index: 2;
}

.mk-step-icon {
    width: 6.1rem;
    height: 6.1rem;
    border-radius: 50%;
    background: #eef3f8;
    color: var(--mk-navy);
    display: grid;
    place-items: center;
}

.mk-step-icon svg {
    width: 2.85rem;
    height: 2.85rem;
}

.mk-steps strong {
    font-size: 0.95rem;
    font-weight: 700;
    max-width: 16ch;
    line-height: 1.65;
}

.mk-cat-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.7rem;
}

.mk-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 124px;
    padding: 0.85rem 0.35rem;
    background: #fff;
    border: 1px solid var(--mk-line);
    border-radius: 14px;
    text-decoration: none;
    color: var(--mk-navy);
    font-weight: 700;
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.45;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.mk-cat-card:hover {
    border-color: #c9d7e6;
    box-shadow: 0 10px 24px rgba(15, 36, 64, 0.08);
    transform: translateY(-2px);
    color: var(--mk-navy);
}

.mk-cat-ico {
    width: 2.75rem;
    height: 2.75rem;
    color: var(--mk-navy);
}

.mk-cat-ico svg {
    width: 100%;
    height: 100%;
}

/* ——— Compare sample ——— */
.mk-compare {
    background: var(--mk-bg-alt);
    padding: 3.25rem 0;
}

.mk-compare-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--mk-line);
    border-radius: 18px;
    padding: 1.25rem;
}

.mk-compare-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
    padding: 0.5rem;
}

.mk-compare-product img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.mk-compare-product h3 {
    margin: 0;
    font-size: 0.95rem;
}

.mk-offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.mk-offer {
    position: relative;
    border: 1px solid var(--mk-line);
    border-radius: 14px;
    padding: 1rem 0.85rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: #fff;
}

.mk-offer.is-best {
    border-color: var(--mk-lime);
    box-shadow: 0 0 0 1px var(--mk-lime);
}

.mk-offer-ribbon {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    background: var(--mk-lime);
    color: var(--mk-navy);
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
}

.mk-offer-brand {
    margin: 0;
    font-weight: 800;
    color: var(--mk-navy);
}

.mk-offer-price {
    margin: 0.2rem 0 0;
    font-size: 1.15rem;
    font-weight: 900;
}

.mk-offer-price small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mk-muted);
}

.mk-offer-term {
    margin: 0 0 0.5rem;
    color: var(--mk-muted);
    font-size: 0.78rem;
}

.mk-compare-foot {
    margin-top: 1rem;
}

.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.86rem;
    padding: 0.62rem 0.9rem;
    border: 0;
}

.mk-btn--lime {
    background: var(--mk-lime);
    color: #fff;
    font-weight: 700;
}

.mk-btn--lime:hover {
    background: var(--mk-lime-dark);
    color: #fff;
}

.mk-btn--navy {
    background: var(--mk-navy);
    color: #fff;
}

.mk-btn--ghost {
    background: transparent;
    color: var(--mk-navy);
    border: 1px solid var(--mk-line);
}

.mk-btn--wide {
    width: 100%;
    background: var(--mk-navy);
    color: #fff;
    padding: 0.85rem;
    border-radius: 12px;
}

.mk-brand-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.mk-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 92px;
    border: 1px solid var(--mk-line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--mk-text);
    background: #fff;
}

.mk-brand span {
    font-size: 1.2rem;
    font-weight: 900;
    color: #94a3b8;
}

.mk-brand strong {
    font-size: 0.78rem;
    font-weight: 800;
}

.mk-banners {
    padding: 0 0 2.5rem;
    background: #fff;
}

.mk-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.mk-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.85rem;
    align-items: center;
    min-height: 198px;
    border-radius: 18px;
    padding: 1.45rem 1.3rem;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(11, 35, 64, 0.16);
}

.mk-banner h3 {
    margin: 0 0 1rem;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.65;
}

.mk-banner-kicker {
    margin: 0 0 0.45rem;
    opacity: 1;
    font-size: 0.92rem;
    font-weight: 700;
}

.mk-banner--shop { background: #163a63; }
.mk-banner--supplier { background: #2f6b32; }
.mk-banner--own { background: #0f2b4d; }

.mk-banner-art {
    width: 5.2rem;
    height: 5.2rem;
    opacity: 1;
}

.mk-banner-art svg,
.mk-banner img {
    width: 108px;
    height: 108px;
    object-fit: contain;
}

.mk-banner .mk-btn {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.72rem 1.15rem;
}

.mk-footbar {
    background: #f3f6f9;
    border-top: 1px solid var(--mk-line);
    padding: 1.35rem 0;
}

.mk-footbar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mk-navy);
}

.mk-footbar-grid div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.mk-footbar-ico {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 50%;
    background: #fff;
    color: var(--mk-navy);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(15, 36, 64, 0.08);
    flex-shrink: 0;
}

.mk-footbar-ico svg {
    width: 1.35rem;
    height: 1.35rem;
}

.landing-home .landing-footer {
    background: var(--mk-navy);
    color: rgba(255, 255, 255, 0.78);
    border-top: 0;
}

.landing-home .landing-footer-links a,
.landing-home .landing-footer-copy {
    color: rgba(255, 255, 255, 0.72);
}

.landing-home .landing-footer-links a:hover {
    color: var(--mk-lime);
}

@media (max-width: 1100px) {
    .mk-offer-grid { grid-template-columns: repeat(2, 1fr); }
    .mk-compare-card { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .mk-search-form,
    .mk-search-form.is-oem {
        grid-template-columns: 1fr;
    }

    .mk-trust-grid,
    .mk-steps,
    .mk-banner-grid,
    .mk-footbar-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mk-cat-grid {
        grid-template-columns: repeat(8, minmax(132px, 1fr));
        overflow-x: auto;
        padding-bottom: 0.4rem;
    }

    .mk-steps::before { display: none; }

    .landing-menu {
        background: #0b2340;
        border-left-color: rgba(255, 255, 255, 0.08);
    }

    .landing-menu-link {
        color: #eef4fb;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 640px) {
    .mk-trust-grid,
    .mk-banner-grid,
    .mk-footbar-grid,
    .mk-offer-grid {
        grid-template-columns: 1fr;
    }

    .mk-search-tabs { overflow-x: auto; }
    .mk-search-tab { flex-shrink: 0; }
}
