/* Marketplace storefront header and product surface */
:root {
    --mp-ink: #131a22;
    --mp-nav: #232f3e;
    --mp-orange: #ffad4f;
    --mp-orange-deep: #e47911;
    --mp-border: #d5d9d9;
    --mp-purple: #5b1b82;
}

.marketplace-page {
    background: #eaeded !important;
    color: #17202a;
    font-family: 'Inter', 'Outfit', Arial, sans-serif;
}

.marketplace-page .karma-header-bar,
.marketplace-page .search-slide-panel,
.marketplace-page .header-ad-banner {
    display: none !important;
}

.marketplace-page .mp-store-container {
    width: min(100% - 32px, 1480px);
    margin: 0 auto;
}

.mp-store-header {
    position: relative;
    z-index: 20;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.mp-store-main {
    background: var(--mp-ink);
}

.mp-main-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.mp-brand {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    padding: 3px 4px 9px;
    letter-spacing: -1.8px;
}

.mp-brand-word {
    font-size: 2rem;
    font-weight: 800;
    line-height: .9;
}

.mp-brand-dot {
    color: var(--mp-orange);
    margin-left: 5px;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.mp-brand-swoosh {
    position: absolute;
    bottom: 2px;
    left: 4px;
    width: 68px;
    height: 8px;
    border-bottom: 3px solid var(--mp-orange);
    border-radius: 50%;
    transform: rotate(-6deg);
}

.mp-location {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 205px;
    color: #fff;
    text-decoration: none;
    padding: 9px 6px;
    border: 1px solid transparent;
}

.mp-location:hover,
.mp-action-link:hover,
.mp-language:hover,
.mp-cart-link:hover,
.mp-nav-inner a:hover,
.mp-nav-all:hover {
    color: #fff;
    border-color: #fff;
}

.mp-location i {
    font-size: 1.35rem;
}

.mp-location span,
.mp-action-link {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.mp-location small,
.mp-action-link small {
    color: #d5d9d9;
    font-size: .69rem;
    white-space: nowrap;
}

.mp-location strong,
.mp-action-link strong {
    font-size: .86rem;
    white-space: nowrap;
}

.mp-header-search {
    display: flex;
    flex: 1 1 380px;
    height: 48px;
    margin: 0 auto;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    border: 3px solid transparent;
}

.mp-header-search:focus-within {
    border-color: var(--mp-orange);
}

.mp-header-search select {
    width: 108px;
    min-width: 82px;
    border: 0;
    border-right: 1px solid #d5d9d9;
    background: #f3f3f3;
    color: #444;
    padding: 0 10px;
    font-size: .78rem;
    outline: 0;
}

.mp-header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 13px;
    color: #111;
    font-size: 1rem;
    outline: 0;
}

.mp-header-search button {
    width: 58px;
    border: 0;
    background: var(--mp-orange);
    color: #1c2733;
    font-size: 1.3rem;
    transition: background .2s ease;
}

.mp-header-search button:hover {
    background: #ff9900;
}

.mp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.mp-language,
.mp-action-link,
.mp-cart-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 7px 8px;
    border: 1px solid transparent;
}

.mp-language {
    gap: 4px;
    font-weight: 700;
    font-size: .9rem;
}

.mp-language i,
.mp-action-link i {
    color: #aab2ba;
    font-size: .66rem;
}

.mp-cart-link {
    position: relative;
    gap: 4px;
    align-items: flex-end;
    padding-left: 9px;
    font-size: .9rem;
    font-weight: 700;
}

.mp-cart-link > i {
    align-self: center;
    font-size: 2rem;
}

.mp-cart-count {
    position: absolute;
    top: 2px;
    left: 23px;
    min-width: 18px;
    padding: 1px 4px;
    border-radius: 10px;
    background: var(--mp-orange-deep);
    color: #fff;
    text-align: center;
    font-size: .68rem;
    line-height: 1.3;
}

.mp-primary-nav {
    background: var(--mp-nav);
}

.mp-nav-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 25px;
    overflow: hidden;
}

.mp-nav-inner a,
.mp-nav-all {
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 4px;
    border: 1px solid transparent;
    font-size: .87rem;
    font-weight: 600;
}

.mp-nav-all {
    border: 1px solid transparent;
    background: transparent;
    font-size: .98rem;
    cursor: pointer;
}

.mp-nav-all i {
    margin-right: 5px;
}

.mp-nav-promo {
    margin-left: auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: linear-gradient(90deg, #31445d, #0877d1);
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    white-space: nowrap;
}

.mp-nav-promo i {
    margin-left: 8px;
    color: #ffd166;
}

.mp-category-nav {
    background: #fff;
    color: #1f2933;
    border-bottom: 1px solid #ddd;
}

.mp-category-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mp-category-inner::-webkit-scrollbar {
    display: none;
}

.mp-category-inner a {
    position: relative;
    flex: 0 0 auto;
    color: #34404b;
    text-decoration: none;
    padding: 14px 0 12px;
    font-size: .82rem;
    white-space: nowrap;
}

.mp-category-inner a:hover,
.mp-category-inner .mp-category-active {
    color: var(--mp-orange-deep);
}

.mp-category-inner .mp-category-active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--mp-orange-deep);
    content: '';
}

.mp-hero {
    position: relative;
    min-height: 265px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(115deg, #241039 0%, #5b1b82 48%, #d45c16 100%);
}

.mp-hero::before,
.mp-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 210, 137, .22);
    border-radius: 50%;
    content: '';
}

.mp-hero::before {
    width: 480px;
    height: 480px;
    top: -280px;
    right: 6%;
}

.mp-hero::after {
    width: 300px;
    height: 300px;
    bottom: -220px;
    left: 8%;
}

.mp-hero .container,
.mp-hero .container-fluid {
    position: relative;
    z-index: 1;
    padding: 38px 16px;
}

.mp-hero-kicker {
    display: inline-block;
    color: #ffd28a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.mp-hero h1 {
    margin: 8px 0 5px;
    font-family: 'Marcellus', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.mp-hero p {
    max-width: 620px;
    margin: 0 auto 20px;
    color: rgba(255,255,255,.82);
    font-size: 1rem;
}

.mp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 4px;
    background: #fff;
    color: #4a1669;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 700;
}

.mp-hero-cta:hover {
    background: #ffcf8b;
    color: #30103f;
}

.mp-section {
    padding: 38px 0;
    background: #fff;
}

.mp-section-muted {
    background: #eaeded;
}

.mp-section .section-header {
    text-align: left !important;
    margin-bottom: 20px !important;
}

.mp-section .section-eyebrow {
    color: var(--mp-orange-deep);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.mp-section .section-title {
    margin-top: 4px;
    color: #17202a;
    font-family: 'Marcellus', Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.mp-cat-card {
    min-height: 154px;
    border: 1px solid #eaeded !important;
    border-radius: 4px !important;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cat-prod-card {
    border: 1px solid #eaeded !important;
    border-radius: 4px !important;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cat-prod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,.12) !important;
}

.cat-prod-img {
    height: 200px;
    object-fit: cover;
    transition: transform .35s ease;
}

.cat-prod-card:hover .cat-prod-img {
    transform: scale(1.04);
}

.mp-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,.12) !important;
}

.mp-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.mp-featured-card {
    border: 1px solid #eaeded !important;
    border-radius: 4px !important;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mp-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,.12) !important;
}

.mp-featured-img {
    height: 180px;
    object-fit: cover;
    transition: transform .35s ease;
}

.mp-featured-card:hover .mp-featured-img {
    transform: scale(1.04);
}

.mp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(19, 26, 34, .5);
    opacity: 0;
    transition: opacity .2s ease;
}

.mp-featured-card:hover .mp-overlay {
    opacity: 1;
}

.text-purple {
    color: var(--mp-purple) !important;
}

.feature-strip-icon {
    border-radius: 8px;
}

@media (max-width: 1200px) {
    .mp-location {
        min-width: 160px;
    }

    .mp-orders,
    .mp-language {
        display: none;
    }

    .mp-nav-inner {
        gap: 16px;
    }

    .mp-nav-promo {
        display: none;
    }
}

@media (max-width: 800px) {
    .marketplace-page .mp-store-container {
        width: min(100% - 20px, 1480px);
    }

    .mp-main-inner {
        min-height: 0;
        flex-wrap: wrap;
        gap: 8px;
        padding: 9px 0 12px;
    }

    .mp-brand {
        margin-right: auto;
    }

    .mp-location {
        order: 3;
        min-width: 0;
        width: 100%;
        padding: 4px 0 0;
    }

    .mp-location small {
        font-size: .65rem;
    }

    .mp-header-search {
        order: 4;
        flex-basis: 100%;
        height: 44px;
    }

    .mp-header-actions {
        gap: 2px;
    }

    .mp-action-link {
        display: none;
    }

    .mp-cart-link {
        padding-right: 0;
    }

    .mp-nav-inner {
        min-height: 43px;
        gap: 18px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mp-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .mp-nav-inner a,
    .mp-nav-all {
        font-size: .78rem;
    }

    .mp-category-inner {
        gap: 20px;
        min-height: 43px;
    }

    .mp-category-inner a {
        padding: 12px 0 10px;
        font-size: .76rem;
    }

    .mp-hero {
        min-height: 230px;
    }

    .mp-section {
        padding: 28px 0;
    }
}

@media (max-width: 480px) {
    .mp-brand-word {
        font-size: 1.75rem;
    }

    .mp-header-search select {
        width: 78px;
        padding: 0 6px;
        font-size: .7rem;
    }

    .mp-header-search input {
        font-size: .84rem;
    }

    .mp-header-search button {
        width: 48px;
    }

    .mp-hero h1 {
        font-size: 1.8rem;
    }

    .mp-hero p {
        font-size: .84rem;
    }
}
