/*
 * AccVilla Marketplace 10.0
 * Premium responsive storefront layer for PHP/SQLite shared hosting.
 */

:root {
    --teal: #0ca7a4;
    --teal-dark: #078b89;
    --blue: #087fda;
    --ink: #111a2d;
    --muted: #687587;
    --line: #dce9e8;
    --soft: #edf9f7;
    --surface: #ffffff;
    --market-accent: #0ca7a4;
    --market-accent-dark: #078b89;
    --market-pink: #19c5b4;
    --market-yellow: #ffca3a;
    --market-bg: #f2faf9;
    --market-card: #ffffff;
    --market-ink: #111a2d;
    --market-muted: #687587;
    --market-border: #dce9e8;
    --market-shadow: 0 16px 42px rgba(8, 127, 119, .09);
    --market-shadow-hover: 0 24px 58px rgba(8, 127, 119, .15);
    --radius: 18px;
}

html {
    scroll-padding-top: 172px;
}

body {
    color: var(--market-ink);
    background: var(--market-bg);
    font-weight: 450;
}

body.menu-open {
    overflow: hidden;
}

button,
a,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}

a,
button,
.product-card,
.market-category-card,
.top-store-card,
.platform-rail > a {
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(12, 167, 164, .28);
    outline-offset: 3px;
}

.shell {
    width: min(1320px, calc(100% - 48px));
}

.page-section {
    padding: 66px 0;
}

.button {
    min-height: 46px;
    border-radius: 12px;
    font-weight: 800;
}

.button-gradient {
    border-color: transparent;
    background: linear-gradient(135deg, var(--market-accent), #087f8f);
    box-shadow: 0 10px 24px rgba(8, 139, 137, .22);
}

.button-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(8, 139, 137, .3);
}

.button-outline {
    border-color: #d8d4e2;
    background: #fff;
}

.eyebrow,
.marketplace-kicker {
    color: var(--market-accent);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 22px;
    height: 3px;
    background: linear-gradient(90deg, var(--market-accent), var(--market-pink));
}

.section-head {
    align-items: end;
    margin-bottom: 26px;
}

.section-head h1,
.section-head h2 {
    color: var(--market-ink);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -.045em;
}

.section-head p {
    max-width: 720px;
    color: var(--market-muted);
    font-size: .93rem;
}

.section-text-link,
.marketplace-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--market-ink);
    font-size: .84rem;
    font-weight: 800;
    white-space: nowrap;
}

.section-text-link span,
.marketplace-arrow-link i {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--market-ink);
}

.section-text-link:hover,
.marketplace-arrow-link:hover {
    color: var(--market-accent);
}

.section-text-link:hover span,
.marketplace-arrow-link:hover i {
    background: var(--market-accent);
    transform: translateX(2px);
}

/* Premium marketplace header */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border: 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 30px rgba(8, 65, 69, .08);
    backdrop-filter: blur(18px);
}

.header-utility {
    color: #d8d5e1;
    background: #17151f;
}

.header-utility-inner {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: .69rem;
    font-weight: 650;
}

.header-utility p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.header-utility p i {
    color: #4dd6c7;
}

.header-utility nav {
    display: flex;
    align-items: center;
    gap: 21px;
}

.header-utility a:hover {
    color: #fff;
}

.header-inner {
    display: flex;
    height: 86px;
    align-items: center;
    gap: 26px;
}

.brand {
    gap: 10px;
}

.brand-mark,
.market-brand-mark {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #12bdb7, #078b89);
    box-shadow: 0 10px 22px rgba(7, 139, 137, .25);
    font-size: 0;
}

.brand-mark::before,
.market-brand-mark::before {
    position: absolute;
    z-index: -1;
    width: 34px;
    height: 34px;
    border: 7px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    content: "";
    transform: rotate(26deg) translate(11px, -9px);
}

.brand-mark i {
    position: absolute;
    right: -8px;
    bottom: -13px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--market-pink);
    opacity: .9;
}

.brand-mark b {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.08em;
}

.brand-name,
.market-brand-name {
    color: #17151f;
    font-size: 1.42rem;
    font-weight: 900;
    letter-spacing: -.055em;
}

.brand-name span,
.market-brand-name span {
    color: var(--market-accent);
}

.header-search {
    display: flex;
    width: auto;
    min-width: 0;
    height: 54px;
    flex: 1 1 620px;
    align-items: center;
    gap: 12px;
    padding: 5px 6px 5px 16px;
    border: 2px solid #dad7e2;
    border-radius: 14px;
    background: #f7f7f9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.header-search:focus-within {
    border-color: var(--market-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(12, 167, 164, .1);
}

.header-search > i {
    color: #898494;
    font-size: .92rem;
}

.header-search-category {
    display: flex;
    max-width: 154px;
    align-items: center;
}

.header-search-category select {
    width: 145px;
    padding: 0 24px 0 0;
    border: 0;
    outline: 0;
    color: #3c3845;
    background: transparent;
    font-size: .76rem;
    font-weight: 750;
}

.header-search-divider {
    width: 1px;
    height: 26px;
    flex: 0 0 auto;
    background: #dad7e2;
}

.header-search input {
    min-width: 100px;
    height: 100%;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    color: var(--market-ink);
    background: transparent;
    font-size: .86rem;
}

.header-search input::placeholder {
    color: #9995a2;
}

.header-search button {
    display: inline-flex;
    min-width: 112px;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--market-accent);
    font-size: .78rem;
    font-weight: 850;
}

.header-search button:hover {
    background: var(--market-accent-dark);
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 17px;
}

.header-action-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.header-action-icon {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #e3e0e9;
    border-radius: 12px;
    color: #37323f;
    background: #fff;
    font-size: 1rem;
}

.header-action-link:hover .header-action-icon {
    border-color: #a9ded9;
    color: var(--market-accent);
    background: #edf9f7;
}

.header-action-icon.header-avatar,
.mobile-menu-account .header-avatar {
    color: #fff;
    background: linear-gradient(145deg, var(--market-accent), var(--market-pink));
}

.header-action-icon b {
    position: absolute;
    top: -6px;
    right: -7px;
    display: grid;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    background: #0ca7a4;
    font-size: .58rem;
    font-weight: 900;
}

.header-action-copy {
    display: grid;
    gap: 1px;
    line-height: 1.1;
}

.header-action-copy small {
    color: #8b8693;
    font-size: .62rem;
}

.header-action-copy strong {
    color: #28242f;
    font-size: .75rem;
    font-weight: 850;
}

.desktop-category-bar {
    border-top: 1px solid #efedf2;
    border-bottom: 1px solid #e9e7ed;
    background: #fff;
}

.desktop-category-bar-inner {
    display: flex;
    min-height: 48px;
    align-items: stretch;
    gap: 0;
}

.desktop-marketplace-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.desktop-marketplace-trigger {
    min-height: 47px;
    gap: 10px;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: #1d1a25;
    font-size: .74rem;
    font-weight: 850;
}

.desktop-marketplace-trigger:hover,
.desktop-marketplace-trigger.active,
.desktop-marketplace-dropdown.is-open .desktop-marketplace-trigger {
    color: #fff;
    background: var(--market-accent);
}

.desktop-marketplace-trigger .fa-chevron-down {
    margin-left: 4px;
    font-size: .58rem;
    transition: transform .2s ease;
}

.desktop-marketplace-dropdown.is-open .desktop-marketplace-trigger .fa-chevron-down {
    transform: rotate(180deg);
}

.desktop-marketplace-panel {
    position: absolute;
    z-index: 120;
    top: calc(100% + 10px);
    left: 0;
    width: 720px;
    max-height: min(560px, calc(100vh - 185px));
    padding: 22px;
    border: 1px solid #dce9e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(5, 52, 56, .2);
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -8px);
}

.desktop-marketplace-dropdown.is-open .desktop-marketplace-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, 0);
}

.desktop-marketplace-head {
    margin-bottom: 17px;
    padding: 0 0 17px;
    border-color: #dfeae9;
}

.desktop-marketplace-head strong {
    color: var(--market-ink);
    font-size: 1rem;
    font-weight: 850;
}

.desktop-marketplace-head small {
    color: var(--market-muted);
}

.desktop-marketplace-head > a {
    color: var(--market-accent);
}

.desktop-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.desktop-service-grid a {
    justify-content: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #474250;
    background: #faf9fb;
    font-size: .76rem;
}

.desktop-service-grid a > i:first-child {
    display: grid;
    width: 33px;
    height: 33px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: var(--nav-accent);
    background: #fff;
    box-shadow: 0 5px 13px rgba(8, 76, 75, .08);
}

.desktop-service-grid a > span {
    flex: 1;
    font-weight: 750;
}

.desktop-service-grid a > i:last-child {
    color: #aaa5b2;
    font-size: .58rem;
}

.desktop-service-grid a:hover {
    border-color: #cfe8e5;
    color: var(--market-accent);
    background: #edf9f7;
    transform: translateX(2px);
}

.desktop-category-links {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: stretch;
    overflow: hidden;
}

.desktop-category-links a {
    display: flex;
    align-items: center;
    padding: 0 17px;
    color: #514c58;
    font-size: .7rem;
    font-weight: 750;
    white-space: nowrap;
}

.desktop-category-links a:hover {
    color: var(--market-accent);
    background: #edf9f7;
}

.desktop-sell-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding-left: 20px;
    color: var(--market-accent);
    font-size: .72rem;
    font-weight: 850;
    white-space: nowrap;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    margin: 0;
    padding: 8px;
    border: 1px solid #e3e0e9;
    border-radius: 11px;
    background: #fff;
}

.mobile-menu-button span {
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: #28242f;
}

.mobile-menu-backdrop {
    position: fixed;
    z-index: 190;
    inset: 0;
    background: rgba(20, 17, 29, .58);
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity .24s ease;
}

.mobile-menu-backdrop.is-open {
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    z-index: 200;
    inset: 0 auto 0 0;
    display: block;
    width: min(390px, calc(100vw - 34px));
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow-y: auto;
    border: 0;
    background: #fff;
    box-shadow: 24px 0 70px rgba(9, 44, 48, .25);
    transform: translateX(-104%);
    transition: transform .24s ease;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu[hidden],
.mobile-menu-backdrop[hidden] {
    display: none !important;
}

.mobile-menu-head {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #dfeae9;
    background: rgba(255, 255, 255, .97);
}

.mobile-menu-head > button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #e3e0e9;
    border-radius: 11px;
    color: #393440;
    background: #f8f7fa;
}

.mobile-drawer-search {
    display: flex;
    height: 48px;
    align-items: center;
    gap: 10px;
    margin: 18px 20px;
    padding: 0 7px 0 14px;
    border: 1px solid #ddd9e5;
    border-radius: 12px;
    background: #f8f7fa;
}

.mobile-drawer-search > i {
    color: #8c8794;
}

.mobile-drawer-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .8rem;
}

.mobile-drawer-search button {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--market-accent);
}

.mobile-menu-account {
    margin: 0 20px 14px;
}

.mobile-menu-account > a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid #cfe8e5;
    border-radius: 13px;
    background: #edf9f7;
}

.mobile-menu-account > a > span:first-child {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--market-accent);
}

.mobile-menu-account > a > span:nth-child(2) {
    display: grid;
    flex: 1;
}

.mobile-menu-account small {
    color: #7d7589;
    font-size: .62rem;
}

.mobile-menu-account strong {
    color: #2b2632;
    font-size: .8rem;
}

.mobile-menu-account .fa-chevron-right {
    color: #928ba0;
    font-size: .65rem;
}

.mobile-menu-links {
    display: grid;
    padding: 6px 20px 18px;
}

.mobile-menu-links a,
.mobile-category-list a {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #efedf2;
    color: #403a47;
    font-size: .78rem;
    font-weight: 750;
}

.mobile-menu-links a > i,
.mobile-category-list a > i:first-child {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    color: var(--market-accent);
    background: #edf9f7;
    font-size: .72rem;
}

.mobile-menu-links a span,
.mobile-category-list a span {
    flex: 1;
}

.mobile-menu-links a b {
    display: grid;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--market-accent);
    font-size: .6rem;
}

.mobile-category-list {
    padding: 17px 20px 20px;
    border-top: 8px solid #f5f4f7;
}

.mobile-category-list > p {
    margin: 0 0 7px;
    color: #8a8592;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mobile-category-list a > i:first-child {
    color: var(--nav-accent);
    background: #f8f7fa;
}

.mobile-category-list a > i:last-child {
    color: #aaa4b1;
    font-size: .58rem;
}

.mobile-menu-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 20px 30px;
    border-top: 1px solid #dfeae9;
    background: #faf9fb;
}

.mobile-menu-foot a {
    padding: 0;
    border: 0;
    color: #6f6978;
    font-size: .66rem;
    font-weight: 700;
}

/* Category-first homepage */

.marketplace-discovery {
    padding: 28px 0 26px;
    background: #fff;
}

.marketplace-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.marketplace-section-heading h1,
.marketplace-section-heading h2 {
    margin: 5px 0 0;
    color: var(--market-ink);
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 880;
    letter-spacing: -.055em;
}

.market-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.market-category-card {
    position: relative;
    display: grid;
    min-height: 94px;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 15px;
    border: 1px solid #e8e5eb;
    border-radius: 16px;
    color: var(--market-ink);
    background: #fff;
    box-shadow: 0 7px 20px rgba(8, 91, 88, .04);
}

.market-category-card::after {
    display: none;
}

.market-category-card:hover {
    z-index: 1;
    border-color: #cbc6d1;
    background: #fff;
    box-shadow: 0 13px 28px rgba(8, 91, 88, .08);
    transform: translateY(-3px);
}

.market-category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    border: 1px solid #e9e6ec;
    color: var(--category-accent);
    background: #fff;
    box-shadow: 0 5px 14px rgba(8, 91, 88, .055);
    font-size: 1rem;
}

.market-category-arrow {
    display: grid;
    width: 28px;
    height: 28px;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    place-items: center;
    border-radius: 50%;
    color: #807a89;
    background: #f6f5f8;
    font-size: .62rem;
}

.market-category-card:hover .market-category-arrow {
    color: #211d27;
    background: #efedf2;
}

.market-category-card h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: .96rem;
    line-height: 1.22;
    font-weight: 850;
    letter-spacing: -.025em;
}

.market-category-card-foot {
    display: none;
}

.market-category-card-foot span,
.market-category-card-foot strong {
    color: #746f7b;
    font-size: .7rem;
    font-weight: 720;
}

.market-category-card-foot strong {
    color: #45404b;
    font-size: .68rem;
    font-weight: 850;
}

.popular-platforms-section {
    padding: 34px 0 38px;
    border-top: 1px solid #eeebf1;
    border-bottom: 1px solid #e8e5ec;
    background: #f8f8fb;
}

.platform-rail-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.platform-rail-heading h2 {
    margin: 5px 0 4px;
    color: var(--market-ink);
    font-size: 1.4rem;
    font-weight: 870;
    letter-spacing: -.035em;
}

.platform-rail-heading p {
    max-width: 680px;
    margin: 0;
    color: #77717e;
    font-size: .78rem;
    line-height: 1.55;
}

.platform-rail-heading > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: var(--market-accent);
    font-size: .74rem;
    font-weight: 820;
}

.platform-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.platform-rail > a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    align-items: center;
    min-width: 0;
    min-height: 76px;
    gap: 11px;
    padding: 14px;
    border: 1px solid #e5e2e9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(30, 24, 48, .045);
}

.platform-rail > a > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--platform-color) 16%, #ece9ef);
    border-radius: 12px;
    color: var(--platform-color);
    background: #fff;
    font-size: 1.16rem;
}

.platform-rail > a strong {
    overflow: hidden;
    max-width: 100%;
    color: #37323d;
    font-size: .76rem;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-rail > a > i {
    color: #aaa5af;
    font-size: .62rem;
}

.platform-rail > a:hover {
    border-color: var(--platform-color);
    box-shadow: 0 13px 25px rgba(29, 23, 50, .1);
    transform: translateY(-3px);
}

.marketplace-live-stats {
    margin: 0;
    padding: 0 0 30px;
    background: var(--market-bg);
}

.marketplace-live-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e4e1e9;
    border-radius: 16px;
    background: #1d1a25;
    box-shadow: 0 14px 34px rgba(25, 20, 43, .15);
}

.marketplace-live-stats-grid > div {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    text-align: left;
}

.marketplace-live-stats-grid > div:last-child {
    border-right: 0;
}

.marketplace-live-stats-grid > div > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    color: #69dfd2;
    background: rgba(49, 201, 185, .14);
    font-size: .9rem;
}

.marketplace-live-stats-grid p {
    display: grid;
    gap: 0;
    margin: 0;
}

.marketplace-live-stats-grid strong {
    color: #fff;
    font-size: 1.24rem;
    font-weight: 900;
    line-height: 1.1;
}

.marketplace-live-stats-grid small {
    color: #aaa5b2;
    font-size: .64rem;
    font-weight: 600;
}

/* Product marketplace */

.homepage-product-section,
.marketplace-results-section,
.marketplace-all-products {
    background: var(--market-bg);
}

.homepage-featured {
    padding-top: 56px;
    background: #fff;
}

.seller-leaderboards-section {
    background: linear-gradient(180deg, #edf9f7 0, #faf9fd 100%);
}

.top-stores-section {
    background: #fff;
}

.homepage-best-selling,
.marketplace-all-products {
    background: var(--market-bg);
}

.homepage-products-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
}

.product-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e2e9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(8, 76, 75, .065);
    transform: translateZ(0);
}

.product-card:hover {
    border-color: #aed8d4;
    box-shadow: var(--market-shadow-hover);
    transform: translateY(-5px);
}

.product-card .product-visual {
    position: relative;
    display: grid;
    min-height: 164px;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, .96), transparent 47%),
        linear-gradient(155deg, var(--brand-soft), #fff);
}

.product-card .product-visual::before {
    position: absolute;
    width: 132px;
    height: 132px;
    border: 17px solid var(--brand-color);
    border-radius: 50%;
    content: "";
    opacity: .055;
    transform: translate(58px, 44px);
}

.product-card .product-visual::after {
    background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .55), transparent 75%);
}

.product-brand-logo {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 7px;
}

.product-brand-logo > i {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 19px;
    color: var(--brand-color);
    background: #fff;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-color) 17%, transparent);
    font-size: 1.85rem;
}

.product-brand-logo small {
    max-width: 140px;
    overflow: hidden;
    color: color-mix(in srgb, var(--brand-color) 74%, #292431);
    font-size: .64rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-image {
    z-index: 1;
    width: 104px;
    height: 104px;
    border: 5px solid #fff;
    border-radius: 23px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(27, 22, 43, .18);
}

.product-card .stock-pill,
.product-featured-pill,
.product-card .discount {
    z-index: 3;
    top: 11px;
    border-radius: 8px;
    box-shadow: none;
    font-size: .58rem;
    font-weight: 850;
}

.product-card .stock-pill {
    left: 11px;
    padding: 7px 9px;
    color: #087653;
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 6px 14px rgba(24, 18, 40, .08);
}

.product-card .stock-pill i {
    color: #12b981;
}

.product-featured-pill {
    right: 11px;
    padding: 7px 9px;
    color: #fff;
    background: var(--market-accent);
}

.product-featured-pill i {
    color: #ffdd59;
}

.product-card .discount {
    top: auto;
    right: 10px;
    bottom: 10px;
    padding: 7px 8px;
    background: #0ca7a4;
}

.product-card .product-body {
    display: flex;
    min-height: 263px;
    flex: 1;
    flex-direction: column;
    padding: 15px 15px 14px;
}

.product-card .product-meta {
    color: #87818e;
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .035em;
}

.product-card .product-meta > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card .product-meta span:last-child {
    color: #ee9c00;
}

.product-card .product-body h3 {
    min-height: 42px;
    margin: 8px 0 5px;
    color: #24202b;
    font-size: .88rem;
    font-weight: 780;
    line-height: 1.38;
}

.product-card .product-body h3 a:hover {
    color: var(--market-accent);
}

.product-summary {
    min-height: 35px;
    color: #77717f;
    font-size: .64rem;
    line-height: 1.45;
}

.product-attribute-row {
    gap: 5px;
    margin-top: 7px;
}

.product-attribute-row span {
    padding: 4px 7px;
    border-radius: 6px;
    color: #696273;
    background: #f4f2f6;
    font-size: .53rem;
}

.product-card .seller-name {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0 0;
    color: #817b87;
    font-size: .62rem;
}

.product-card .seller-name i {
    color: #4a8df6;
}

.product-card .product-price-row {
    margin-top: 10px;
}

.product-card .product-price-row > span {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-card .product-price-row small {
    color: #8d8794;
    font-size: .55rem;
    font-weight: 650;
}

.product-card .product-price-row strong {
    color: #24202b;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -.035em;
}

.product-card .product-price-row del {
    color: #aaa4b0;
    font-size: .62rem;
}

.product-card-actions {
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid #efedf2;
}

.product-view-link {
    color: #514b59;
    font-size: .68rem;
    font-weight: 800;
}

.product-view-link i {
    font-size: .58rem;
}

.product-view-link:hover {
    color: var(--market-accent);
}

.product-cart-button {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: var(--market-accent);
    box-shadow: 0 8px 17px rgba(12, 167, 164, .24);
}

.product-buy-now {
    width: auto;
    min-width: 92px;
    padding: 0 14px;
    border-radius: 10px;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.product-cart-button:hover {
    background: var(--market-accent-dark);
    box-shadow: 0 11px 23px rgba(12, 167, 164, .32);
}

/* Sellers and stores */

.seller-leaderboards-grid {
    gap: 18px;
}

.seller-leaderboard-card {
    border: 1px solid #d8e9e7;
    border-radius: 17px;
    box-shadow: 0 14px 34px rgba(8, 76, 75, .08);
}

.seller-leaderboard-card > header,
.seller-leaderboard-card.monthly > header {
    padding: 19px 20px;
    border-color: #ebe7f4;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .9), transparent 34%),
        linear-gradient(135deg, #e5f8f5, #f8fcfb);
}

.seller-leaderboard-card.monthly > header {
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .9), transparent 34%),
        linear-gradient(135deg, #e7f7fb, #f8fcfd);
}

.seller-leaderboard-card header span {
    color: var(--market-accent);
}

.seller-leaderboard-card header h3 {
    color: #292431;
    font-weight: 850;
}

.seller-leaderboard-card header > strong {
    color: #726b7a;
    box-shadow: 0 5px 15px rgba(8, 76, 75, .06);
}

.seller-leaderboard-card li {
    padding: 13px 18px;
    border-color: #efedf2;
}

.leader-rank {
    background: #f2efff;
    color: var(--market-accent);
}

.seller-leaderboard-card li:first-child .leader-rank {
    color: #8b6400;
    background: #fff2bd;
}

.seller-leaderboard-card li a {
    color: #393440;
}

.seller-leaderboard-card li a > i {
    border-radius: 10px;
    background: linear-gradient(145deg, var(--market-accent), var(--market-pink));
    box-shadow: 0 7px 15px rgba(12, 167, 164, .2);
}

.seller-leaderboard-card li > b {
    color: var(--market-accent);
}

.top-stores-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.top-store-card {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #e5e2e9;
    border-radius: 17px;
    color: #292431;
    box-shadow: 0 10px 28px rgba(35, 28, 57, .065);
}

.top-store-card::after {
    position: absolute;
    top: -40px;
    right: -35px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(12, 167, 164, .05);
    content: "";
}

.top-store-card:hover {
    border-color: #b7ddd9;
    box-shadow: var(--market-shadow-hover);
    transform: translateY(-4px);
}

.top-store-logo,
.store-hero-logo {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--market-accent), var(--market-pink));
    box-shadow: 0 10px 22px rgba(12, 167, 164, .24);
}

.top-store-logo img,
.store-hero-logo img,
.seller-logo img,
.seller-leaderboard-card li a > i img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.store-hero .store-hero-logo {
    width: 82px;
    height: 82px;
}

.seller-leaderboard-card li a > i {
    overflow: hidden;
}

.top-store-logo i {
    position: absolute;
    right: -5px;
    bottom: -3px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #3b82f6;
    font-size: .55rem;
}

.top-store-card h3 {
    color: #292431;
    font-weight: 850;
}

.top-store-card p {
    color: #85808c;
}

.top-store-card dl {
    border-color: #efedf2;
}

.top-store-card dt {
    color: #928c98;
}

.top-store-card dd {
    color: #302a37;
}

.top-store-link {
    color: var(--market-accent);
}

.marketplace-empty-card {
    display: flex;
    min-height: 126px;
    align-items: center;
    gap: 17px;
    padding: 22px;
    border: 1px dashed #bcdeda;
    border-radius: 17px;
    background: rgba(255, 255, 255, .72);
}

.marketplace-empty-card > i {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    color: var(--market-accent);
    background: #e6f7f5;
    font-size: 1.1rem;
}

.marketplace-empty-card > div {
    flex: 1;
}

.marketplace-empty-card h3 {
    margin: 0 0 4px;
    font-size: .95rem;
}

.marketplace-empty-card p {
    margin: 0;
    color: var(--market-muted);
    font-size: .75rem;
}

.marketplace-empty-card > a {
    padding: 10px 13px;
    border-radius: 10px;
    color: #fff;
    background: var(--market-accent);
    font-size: .69rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Filter and supporting content */

.marketplace-filter-section {
    padding: 25px 0 0;
    background: var(--market-bg);
}

.marketplace-advanced-filter {
    overflow: hidden;
    border: 1px solid #e2dfea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 28, 57, .055);
}

.marketplace-advanced-filter > summary {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
    list-style: none;
    cursor: pointer;
}

.marketplace-advanced-filter > summary::-webkit-details-marker {
    display: none;
}

.marketplace-advanced-filter > summary > span {
    display: grid;
    grid-template-columns: 38px auto;
    align-items: center;
    column-gap: 11px;
}

.marketplace-advanced-filter > summary > span > i {
    grid-row: 1 / 3;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    color: var(--market-accent);
    background: #e6f7f5;
}

.marketplace-advanced-filter > summary b {
    align-self: end;
    color: #322d39;
    font-size: .8rem;
}

.marketplace-advanced-filter > summary small {
    align-self: start;
    color: #89838f;
    font-size: .63rem;
}

.marketplace-advanced-filter > summary > i {
    color: #8f8995;
    font-size: .68rem;
    transition: transform .2s ease;
}

.marketplace-advanced-filter[open] > summary > i {
    transform: rotate(180deg);
}

.marketplace-filter-bar {
    grid-template-columns: 1.3fr repeat(4, minmax(120px, 1fr)) auto;
    margin: 0;
    padding: 17px;
    border: 0;
    border-top: 1px solid #dfeae9;
    border-radius: 0;
    background: #faf9fb;
}

.marketplace-filter-bar label {
    color: #77717d;
    font-size: .61rem;
}

.marketplace-filter-bar input,
.marketplace-filter-bar select {
    min-height: 43px;
    border-color: #dedbe3;
    border-radius: 9px;
    background: #fff;
    font-size: .7rem;
}

.marketplace-filter-bar .button {
    min-height: 43px;
    gap: 7px;
    border-radius: 9px;
    font-size: .68rem;
}

.catalog-filter-panel {
    margin: 24px 0 18px;
}

.catalog-filter-panel > summary {
    display: flex;
    width: fit-content;
    min-width: 142px;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 15px;
    border: 1px solid #d8e5e4;
    border-radius: 10px;
    color: #176d68;
    background: #fff;
    box-shadow: 0 6px 18px rgba(30, 76, 73, .05);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 750;
    list-style: none;
}

.catalog-filter-panel > summary::-webkit-details-marker {
    display: none;
}

.catalog-filter-panel > summary span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-filter-panel > summary > i {
    font-size: .65rem;
    transition: transform .18s ease;
}

.catalog-filter-panel[open] > summary > i {
    transform: rotate(180deg);
}

.catalog-filter-panel .marketplace-filter-bar {
    margin: 12px 0 0;
}

.feature-band {
    padding: 40px 0;
    background:
        radial-gradient(circle at 10% 100%, rgba(12, 167, 164, .2), transparent 35%),
        #1d1a25;
}

.feature-grid {
    gap: 0;
}

.feature-item {
    padding: 0 25px;
    border-right: 1px solid rgba(255, 255, 255, .11);
}

.feature-item:first-child {
    padding-left: 0;
}

.feature-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.feature-icon {
    color: #fff;
    background: rgba(63, 211, 194, .22);
}

.feature-item h3 {
    font-size: .86rem;
}

.feature-item p {
    color: #aaa5b2;
    font-size: .69rem;
}

.market-testimonials-section,
.market-faq-section {
    background: #fff;
}

.market-testimonial-card,
.market-faq-item {
    border-color: #e5e2e9;
    box-shadow: 0 10px 25px rgba(35, 28, 57, .055);
}

.market-rating-summary {
    color: var(--market-accent);
    background: #e8f7f5;
}

.market-review-avatar {
    color: #fff;
    background: linear-gradient(145deg, var(--market-accent), var(--market-pink));
}

.market-home-cta {
    background: #fff;
}

.market-home-cta-inner {
    overflow: hidden;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at 92% 20%, rgba(33, 194, 181, .35), transparent 28%),
        linear-gradient(135deg, #0d2b31, #087f77);
    box-shadow: 0 24px 55px rgba(5, 75, 76, .24);
}

.market-home-cta .eyebrow {
    color: #85e7dc;
}

.market-home-cta .eyebrow::before {
    background: #35d6c4;
}

.market-home-cta p {
    color: #d6d0e9;
}

.market-home-cta .button-outline {
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

/* Footer */

.site-footer {
    padding: 0 0 20px;
    border: 0;
    color: #b9b4c2;
    background: #17151f;
}

.footer-promise-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-promise-bar > div {
    display: flex;
    min-height: 104px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer-promise-bar > div:last-child {
    border-right: 0;
}

.footer-promise-bar > div > i {
    color: #50d7c8;
    font-size: 1.12rem;
}

.footer-promise-bar span {
    display: grid;
}

.footer-promise-bar strong {
    color: #fff;
    font-size: .8rem;
}

.footer-promise-bar small {
    color: #8f8998;
    font-size: .63rem;
}

.footer-grid {
    grid-template-columns: 1.55fr repeat(3, 1fr);
    gap: 60px;
}

.footer-brand .brand-name {
    color: #fff;
}

.footer-about > p {
    max-width: 400px;
}

.site-footer p {
    color: #918b9a;
    line-height: 1.7;
}

.site-footer h3 {
    color: #fff;
    font-size: .78rem;
    letter-spacing: .02em;
}

.site-footer a:not(.brand) {
    color: #a49eac;
    font-size: .72rem;
}

.site-footer a:hover {
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.footer-socials a:not(.brand) {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .04);
    font-size: .85rem;
}

.footer-socials a:hover {
    border-color: #13b8ab;
    background: #078b89;
}

.footer-bottom {
    margin-top: 42px;
    border-color: rgba(255, 255, 255, .1);
    color: #7f7988;
    font-size: .64rem;
}

.footer-payment-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-payment-note i {
    color: #50d7c8;
    font-size: .85rem;
}

/* Shared marketplace pages */

.catalog-page-hero {
    padding: 58px 0 52px;
    background:
        radial-gradient(circle at 78% 15%, rgba(25, 197, 180, .22), transparent 30%),
        linear-gradient(135deg, #0d2b31, #087f77);
}

.catalog-page-hero h1 {
    font-weight: 880;
}

.catalog-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .72);
    font-size: .69rem;
    font-weight: 700;
}

.catalog-breadcrumb a {
    color: #fff;
}

.catalog-breadcrumb a:hover {
    text-decoration: underline;
}

.catalog-breadcrumb i {
    color: rgba(255, 255, 255, .45);
    font-size: .48rem;
}

.catalog-category-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-directory-section,
.catalog-products-section {
    background: var(--market-bg);
}

.catalog-category-card {
    border-color: #e5e2e9;
    color: #302b37;
    box-shadow: 0 10px 26px rgba(35, 28, 57, .06);
}

.catalog-category-card .service-icon {
    border: 1px solid color-mix(in srgb, var(--catalog-color) 18%, #e8e5eb);
    background: #fff;
}

.catalog-category-card:hover {
    border-color: var(--catalog-color);
    box-shadow: var(--market-shadow);
}

.card,
.order-card,
.auth-card,
.sidebar-card,
.product-detail-card {
    border-color: #e5e2e9;
    box-shadow: 0 12px 30px rgba(35, 28, 57, .07);
}

/* Static category/article pages use the same marketplace identity. */

.market-catalog-body {
    --market-ink: #17151f;
    --market-muted: #746f7c;
    color: var(--market-ink);
    background: var(--market-bg);
}

.market-catalog-body .market-shell {
    width: min(1320px, calc(100% - 48px));
}

.market-header {
    border: 0;
    border-bottom: 1px solid #e7e4eb;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 30px rgba(8, 65, 69, .08);
    backdrop-filter: blur(18px);
}

.market-header-inner {
    min-height: 84px;
    gap: 25px;
}

.market-brand {
    gap: 10px;
}

.market-brand-mark {
    color: #fff;
    font-size: 1.25rem;
}

.market-brand-name {
    color: #17151f;
}

.market-search {
    width: auto;
    min-width: 280px;
    height: 52px;
    flex: 1 1 620px;
    border: 2px solid #dad7e2;
    border-radius: 14px;
    background: #f7f7f9;
}

.market-search:focus-within {
    border-color: var(--market-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(12, 167, 164, .1);
}

.market-search > i {
    color: #898494;
}

.market-search input {
    color: var(--market-ink);
}

.marketplace-trigger {
    border-radius: 11px;
    color: #fff;
    background: #1d1a25;
}

.marketplace-trigger:hover,
.marketplace-dropdown.is-open .marketplace-trigger {
    color: #fff;
    background: var(--market-accent);
}

.market-avatar,
.market-icon-button {
    border-color: #e3e0e9;
    color: #342f3b;
    background: #fff;
}

.market-avatar {
    color: #fff;
    background: linear-gradient(145deg, var(--market-accent), var(--market-pink));
}

.market-icon-button:hover {
    color: var(--market-accent);
    background: #f4f1ff;
}

.market-menu-button {
    border: 1px solid #e3e0e9;
    border-radius: 11px;
    background: #fff;
}

.market-menu-button span {
    background: #28242f;
}

.market-drawer {
    background: #fff;
    box-shadow: 24px 0 70px rgba(9, 44, 48, .25);
}

.market-drawer .drawer-head {
    border-color: #dfeae9;
}

.drawer-browse-all {
    color: #fff;
    background: var(--market-accent);
}

.market-page {
    background: var(--market-bg);
}

.market-breadcrumb {
    color: #7c7683;
}

.content-area {
    border-color: #e5e2e9;
    border-radius: 19px;
    box-shadow: 0 15px 38px rgba(35, 28, 57, .07);
}

.page-header {
    border-radius: 15px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .2), transparent 30%),
        linear-gradient(135deg, #0d2b31, var(--brand, #0ca7a4));
}

.page-header h1 span {
    color: #85e7dc;
}

.catalog-product-card {
    overflow: hidden;
    border-color: #e5e2e9;
    border-radius: 15px;
    box-shadow: 0 9px 24px rgba(8, 76, 75, .065);
}

.catalog-product-card:hover {
    border-color: var(--brand, var(--market-accent));
    box-shadow: var(--market-shadow-hover);
    transform: translateY(-4px);
}

.catalog-product-media {
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, .95), transparent 50%),
        color-mix(in srgb, var(--brand, #0ca7a4) 10%, #fff);
}

.catalog-product-icon {
    color: var(--brand, var(--market-accent));
    background: #fff;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--brand, #0ca7a4) 18%, transparent);
}

.catalog-view-link {
    color: var(--market-accent);
}

.catalog-cart-link {
    background: var(--market-accent);
}

.market-footer {
    border: 0;
    color: #a9a3b1;
    background: #17151f;
}

.market-footer h3 {
    color: #fff;
}

.market-footer a:hover {
    color: #fff;
}

/* Responsive */

@media (max-width: 1180px) {
    .header-inner {
        gap: 17px;
    }

    .header-action-copy {
        display: none;
    }

    .desktop-category-links a {
        padding-inline: 13px;
        font-size: .66rem;
    }

    .desktop-category-links a:nth-last-child(-n + 2) {
        display: none;
    }

    .market-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .homepage-products-grid,
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .platform-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    html {
        scroll-padding-top: 132px;
    }

    .shell,
    .market-catalog-body .market-shell {
        width: min(100% - 30px, 760px);
    }

    .header-utility,
    .desktop-category-bar {
        display: none;
    }

    .site-header {
        position: sticky;
    }

    .header-inner {
        display: grid;
        height: auto;
        min-height: 126px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: 66px 52px;
        gap: 0 10px;
        padding-bottom: 8px;
    }

    .mobile-menu-button {
        display: block;
        grid-column: 1;
        grid-row: 1;
    }

    .header-inner > .brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .header-inner .brand-name {
        display: inline;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 48px;
        padding-left: 14px;
        border-width: 1px;
        border-radius: 12px;
    }

    .header-search-category,
    .header-search-divider {
        display: none;
    }

    .header-search button {
        min-width: 47px;
        height: 38px;
        padding: 0;
        border-radius: 9px;
    }

    .header-search button span {
        display: none;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        gap: 8px;
    }

    .header-actions .header-action-link:first-child {
        display: none;
    }

    .header-action-icon {
        width: 40px;
        height: 40px;
    }

    .marketplace-discovery {
        padding: 23px 0 22px;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 28px;
    }

    .market-header-inner {
        position: relative;
        display: flex;
        min-height: 126px;
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-block: 10px;
    }

    .market-header-inner > .market-brand {
        position: absolute;
        top: 11px;
        left: 50%;
        order: 1;
        transform: translateX(-50%);
    }

    .market-actions {
        order: 2;
        min-height: 46px;
        margin-left: auto;
    }

    .market-actions [data-drawer-open] {
        position: absolute;
        top: 12px;
        left: 0;
    }

    .market-search {
        display: flex !important;
        order: 3;
        width: 100%;
        height: 46px;
        flex-basis: 100%;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .market-search.is-open {
        display: flex;
    }

    .market-actions [data-search-open] {
        display: none;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 126px;
    }

    .shell,
    .market-catalog-body .market-shell {
        width: calc(100% - 24px);
    }

    .page-section {
        padding: 47px 0;
    }

    .section-head,
    .marketplace-section-heading {
        align-items: center;
    }

    .section-head p {
        font-size: .78rem;
    }

    .section-text-link,
    .marketplace-arrow-link {
        font-size: 0;
    }

    .section-text-link span,
    .marketplace-arrow-link i {
        font-size: .72rem;
    }

    .marketplace-section-heading h1,
    .marketplace-section-heading h2 {
        font-size: 1.45rem;
    }

    .market-category-grid {
        gap: 8px;
    }

    .market-category-card {
        min-height: 68px;
        grid-template-columns: 34px minmax(0, 1fr) 22px;
        gap: 8px;
        padding: 10px;
        border-radius: 13px;
    }

    .market-category-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: .76rem;
    }

    .market-category-arrow {
        width: 22px;
        height: 22px;
        font-size: .55rem;
    }

    .market-category-card h2 {
        margin: 0;
        font-size: .82rem;
        line-height: 1.18;
    }

    .platform-rail-heading {
        align-items: end;
        margin-bottom: 15px;
    }

    .platform-rail-heading h2 {
        font-size: 1.22rem;
    }

    .platform-rail-heading p {
        font-size: .7rem;
    }

    .platform-rail-heading > a {
        font-size: 0;
    }

    .platform-rail-heading > a i {
        font-size: .72rem;
    }

    .platform-rail {
        display: flex;
        margin-right: -12px;
        padding: 2px 12px 12px 0;
        gap: 9px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .platform-rail::-webkit-scrollbar {
        display: none;
    }

    .platform-rail > a {
        min-width: 178px;
        min-height: 76px;
        scroll-snap-align: start;
    }

    .marketplace-live-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 14px;
    }

    .marketplace-live-stats-grid > div {
        min-height: 72px;
        justify-content: flex-start;
        padding: 12px;
    }

    .marketplace-live-stats-grid > div:nth-child(2) {
        border-right: 0;
    }

    .marketplace-live-stats-grid > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .marketplace-live-stats-grid > div > span {
        width: 34px;
        height: 34px;
    }

    .marketplace-live-stats-grid strong {
        font-size: 1rem;
    }

    .marketplace-live-stats-grid small {
        font-size: .55rem;
    }

    .homepage-products-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-card .product-visual {
        min-height: 132px;
    }

    .product-brand-logo {
        gap: 5px;
    }

    .product-brand-logo > i {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 1.45rem;
    }

    .product-brand-logo small {
        max-width: 100px;
        font-size: .56rem;
    }

    .product-card .stock-pill,
    .product-featured-pill {
        top: 8px;
        padding: 6px 7px;
        font-size: .49rem;
    }

    .product-card .stock-pill {
        left: 8px;
    }

    .product-featured-pill {
        right: 8px;
    }

    .product-card .product-body {
        min-height: 222px;
        padding: 12px 11px 11px;
    }

    .product-card .product-meta {
        font-size: .49rem;
    }

    .product-card .product-body h3 {
        min-height: 38px;
        margin: 7px 0 4px;
        font-size: .74rem;
        line-height: 1.35;
    }

    .product-summary {
        display: none;
    }

    .product-attribute-row {
        margin-top: 4px;
    }

    .product-attribute-row span {
        padding: 3px 5px;
        font-size: .47rem;
    }

    .product-card .seller-name {
        margin-top: 7px;
        font-size: .52rem;
    }

    .product-card .product-price-row strong {
        font-size: 1.03rem;
    }

    .product-card .product-price-row small,
    .product-card .product-price-row del {
        font-size: .49rem;
    }

    .product-view-link {
        font-size: .59rem;
    }

    .product-cart-button {
        width: 35px;
        height: 35px;
        border-radius: 9px;
        font-size: .72rem;
    }

    .product-cart-button.product-buy-now {
        width: auto;
        min-width: 72px;
        padding: 0 9px;
        font-size: .62rem;
    }

    .seller-leaderboards-grid,
    .top-stores-grid {
        grid-template-columns: 1fr;
    }

    .seller-leaderboard-card li {
        padding: 12px 13px;
    }

    .seller-leaderboard-card li > b {
        font-size: .62rem;
    }

    .top-store-card {
        padding: 17px;
    }

    .marketplace-empty-card {
        display: grid;
        grid-template-columns: auto 1fr;
        padding: 18px;
    }

    .marketplace-empty-card > a {
        grid-column: 1 / -1;
        text-align: center;
    }

    .marketplace-filter-section {
        padding-top: 16px;
    }

    .marketplace-filter-bar {
        grid-template-columns: 1fr;
    }

    .marketplace-advanced-filter > summary small {
        display: none;
    }

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

    .feature-item {
        padding: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .feature-item:nth-child(2) {
        border-right: 0;
    }

    .feature-item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .footer-promise-bar {
        grid-template-columns: 1fr;
        margin-bottom: 38px;
    }

    .footer-promise-bar > div {
        min-height: 78px;
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .footer-promise-bar > div:last-child {
        border-bottom: 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 22px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        gap: 10px;
    }

    .footer-bottom span {
        width: 100%;
    }

    .market-catalog-body .content-area {
        padding: 13px;
        border-radius: 15px;
    }

    .market-catalog-body .page-header {
        padding: 27px 19px;
    }
}

@media (max-width: 430px) {
    .market-actions .market-avatar {
        display: none;
    }

    .header-inner {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .header-inner .brand-mark {
        width: 39px;
        height: 39px;
        border-radius: 11px;
    }

    .header-inner .brand-name {
        font-size: 1.12rem;
    }

    .header-actions {
        gap: 0;
    }

    .header-action-icon {
        width: 39px;
        height: 39px;
    }

    .market-category-card {
        min-height: 64px;
        padding: 9px;
    }

    .market-category-card h2 {
        font-size: .78rem;
    }

    .marketplace-live-stats-grid > div {
        gap: 8px;
    }

    .marketplace-live-stats-grid > div > span {
        display: none;
    }

    .product-card .product-body {
        min-height: 218px;
    }

    .product-card .product-meta > span:first-child {
        max-width: 76px;
    }

    .product-featured-pill {
        font-size: 0;
    }

    .product-featured-pill i {
        font-size: .52rem;
    }

    .seller-leaderboard-card li a small {
        max-width: 130px;
    }

    .feature-item {
        padding: 15px 11px;
    }
}

@media (max-width: 360px) {
    .homepage-products-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card .product-body {
        min-height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Homepage teal theme
 * Matches the buyer, seller, and admin workspace palette while preserving the
 * marketplace layout and each platform's official brand colors.
 */

body:is(.marketplace-home, .accvilla-theme, .market-catalog-body) {
    --teal: #08b9a8;
    --teal-dark: #007f77;
    --blue: #087fda;
    --ink: #111a2d;
    --muted: #687587;
    --line: #dce9e8;
    --soft: #edf9f7;
    --market-accent: #0ca7a4;
    --market-accent-dark: #078b89;
    --market-pink: #19c5b4;
    --market-bg: #f2faf9;
    --market-card: #ffffff;
    --market-ink: #111a2d;
    --market-muted: #687587;
    --market-border: #dce9e8;
    --market-shadow: 0 16px 42px rgba(8, 127, 119, .09);
    --market-shadow-hover: 0 24px 58px rgba(8, 127, 119, .15);
    background: var(--market-bg);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) :where(a, button, input, select, textarea, summary):focus-visible {
    outline-color: rgba(12, 167, 164, .28);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .button-gradient {
    background: linear-gradient(135deg, #0ca7a4, #087f8f);
    box-shadow: 0 10px 24px rgba(8, 139, 137, .22);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .button-gradient:hover {
    box-shadow: 0 15px 30px rgba(8, 139, 137, .3);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .site-header {
    box-shadow: 0 8px 30px rgba(8, 65, 69, .08);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .header-utility {
    color: #cfe5e3;
    background: #0d2b31;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .header-utility p i {
    color: #4dd6c7;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .brand-mark,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-brand-mark {
    background: linear-gradient(145deg, #12bdb7, #078b89);
    box-shadow: 0 10px 22px rgba(7, 139, 137, .25);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .brand-mark i {
    background: #087fda;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .header-search {
    border-color: #d6e5e3;
    background: #f5faf9;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .header-search:focus-within {
    box-shadow: 0 0 0 4px rgba(12, 167, 164, .12);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .header-action-link:hover .header-action-icon {
    border-color: #a9ded9;
    background: #edf9f7;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .desktop-category-bar {
    border-color: #e2eceb;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .desktop-marketplace-trigger {
    background: #0d2b31;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .desktop-service-grid a:hover,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .desktop-category-links a:hover {
    border-color: #cfe8e5;
    background: #edf9f7;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .mobile-menu-account > a {
    border-color: #cfe8e5;
    background: #edf9f7;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .mobile-menu-links a > i {
    background: #edf9f7;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .marketplace-discovery,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .homepage-featured,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .top-stores-section,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-testimonials-section,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-faq-section,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-home-cta {
    background: #ffffff;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-category-card {
    border-color: #dfeae9;
    box-shadow: 0 7px 18px rgba(8, 91, 88, .055);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-category-card:hover {
    border-color: #b8dcd8;
    box-shadow: 0 13px 26px rgba(8, 91, 88, .1);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-category-arrow {
    background: #edf7f6;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-category-card:hover .market-category-arrow {
    background: #e0f2f0;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .popular-platforms-section {
    border-color: #dfeae9;
    background: #f2faf9;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .platform-rail > a {
    border-color: #dfeae9;
    box-shadow: 0 7px 18px rgba(8, 91, 88, .045);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .platform-rail > a:hover {
    box-shadow: 0 13px 25px rgba(8, 91, 88, .1);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .marketplace-live-stats-grid {
    border-color: #174147;
    background: linear-gradient(135deg, #0d2b31, #0a464b);
    box-shadow: 0 14px 34px rgba(6, 60, 63, .17);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .marketplace-live-stats-grid > div > span {
    color: #69dfd2;
    background: rgba(49, 201, 185, .14);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .marketplace-live-stats-grid small {
    color: #a9c6c4;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .seller-leaderboards-section {
    background: linear-gradient(180deg, #eaf8f7, #f7fbfb);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .product-card {
    border-color: #dfe9e8;
    box-shadow: 0 9px 24px rgba(8, 76, 75, .065);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .product-card:hover {
    border-color: #aed8d4;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .product-cart-button {
    box-shadow: 0 8px 17px rgba(8, 139, 137, .22);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .product-cart-button:hover {
    box-shadow: 0 11px 23px rgba(8, 139, 137, .3);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .seller-leaderboard-card {
    border-color: #d8e9e7;
    box-shadow: 0 14px 34px rgba(8, 76, 75, .08);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .seller-leaderboard-card > header,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .seller-leaderboard-card.monthly > header {
    border-color: #dceae8;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .92), transparent 34%),
        linear-gradient(135deg, #e5f8f5, #f8fcfb);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .seller-leaderboard-card.monthly > header {
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .92), transparent 34%),
        linear-gradient(135deg, #e7f7fb, #f8fcfd);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .leader-rank {
    background: #e7f6f4;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .seller-leaderboard-card li a > i,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .top-store-logo {
    box-shadow: 0 8px 18px rgba(8, 139, 137, .2);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .top-store-card {
    border-color: #dfe9e8;
    box-shadow: 0 10px 28px rgba(8, 76, 75, .065);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .top-store-card::after {
    background: rgba(12, 167, 164, .06);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .top-store-card:hover {
    border-color: #b7ddd9;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .marketplace-empty-card {
    border-color: #bcdeda;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .marketplace-empty-card > i,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .marketplace-advanced-filter > summary > span > i {
    background: #e6f7f5;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .marketplace-advanced-filter {
    border-color: #dbe8e7;
    box-shadow: 0 8px 24px rgba(8, 76, 75, .055);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .marketplace-filter-bar {
    border-color: #dce9e8;
    background: #f5faf9;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .feature-band {
    background:
        radial-gradient(circle at 10% 100%, rgba(12, 167, 164, .2), transparent 35%),
        #0d2b31;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .feature-icon {
    background: rgba(63, 211, 194, .18);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .feature-item p {
    color: #afc8c6;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-testimonial-card,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-faq-item {
    border-color: #dfe9e8;
    box-shadow: 0 10px 25px rgba(8, 76, 75, .055);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-rating-summary {
    background: #e8f7f5;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-home-cta-inner {
    background:
        radial-gradient(circle at 92% 20%, rgba(33, 194, 181, .3), transparent 28%),
        linear-gradient(135deg, #0d2b31, #087f77);
    box-shadow: 0 24px 55px rgba(5, 75, 76, .22);
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-home-cta .eyebrow {
    color: #85e7dc;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-home-cta .eyebrow::before {
    background: #35d6c4;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .market-home-cta p {
    color: #c8dcda;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .site-footer {
    color: #b9d0ce;
    background: #0d252b;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .footer-promise-bar > div > i {
    color: #50d7c8;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .footer-promise-bar small,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .site-footer p,
:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .site-footer a:not(.brand) {
    color: #8eaaa8;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .footer-socials a:hover {
    border-color: #13b8ab;
    background: #078b89;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .footer-bottom {
    color: #789795;
}

:is(.marketplace-home, .accvilla-theme, .market-catalog-body) .footer-payment-note i {
    color: #50d7c8;
}
