:root {
    --bg: #030712;
    --surface: #071523;
    --surface2: #0b2038;
    --primary: #167cff;
    --primary-light: #2ea8ff;
    --text: #fff;
    --text2: #b5c5d5;
    --border: rgba(100, 170, 255, .18);
    --success: #2cc36b;
    --warning: #ffb020;
    --danger: #ff5d68;
    --glass: rgba(5, 17, 33, .74);
    --glass-strong: rgba(6, 21, 39, .92);
    --container: 1410px;
    --space-1: .375rem;
    --space-2: .625rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4.5rem;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 34px;
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, .2);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, .38);
    --glow: 0 0 45px rgba(22, 124, 255, .24);
    --transition: 180ms cubic-bezier(.2, .8, .2, 1);
}

html[data-market-theme="light"] {
    --bg: #f4f8fc;
    --surface: #fff;
    --surface2: #eaf2fa;
    --text: #0b1f35;
    --text2: #587087;
    --border: rgba(33, 92, 148, .16);
    --glass: rgba(255, 255, 255, .78);
    --glass-strong: rgba(255, 255, 255, .94);
    --shadow-sm: 0 10px 30px rgba(36, 72, 110, .1);
    --shadow-lg: 0 30px 80px rgba(36, 72, 110, .16);
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    background: var(--bg);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 86% 8%, rgba(15, 101, 220, .13), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(22, 124, 255, .42);
    color: #fff;
}

:focus-visible {
    outline: 3px solid rgba(46, 168, 255, .75);
    outline-offset: 3px;
}

.market-container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.market-skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #071523;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-150%);
}

.market-skip-link:focus {
    transform: translateY(0);
}

.market-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.market-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(3, 7, 18, .96), rgba(3, 7, 18, .7));
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

html[data-market-theme="light"] .market-header {
    background: linear-gradient(180deg, rgba(244, 248, 252, .96), rgba(244, 248, 252, .76));
}

.market-header.is-scrolled {
    border-bottom-color: var(--border);
    background: var(--glass-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.market-header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: 245px 1fr auto;
    align-items: center;
    gap: 30px;
}

.market-logo {
    display: inline-flex;
    width: 225px;
    height: 62px;
    align-items: center;
}

.market-logo img {
    width: 100%;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.market-desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.market-desktop-nav a {
    position: relative;
    padding: 29px 13px 27px;
    color: var(--text2);
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition);
}

.market-desktop-nav a::after {
    position: absolute;
    content: "";
    right: 13px;
    bottom: -1px;
    left: 13px;
    height: 2px;
    border-radius: 99px;
    background: var(--primary);
    box-shadow: 0 0 14px var(--primary);
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity var(--transition), transform var(--transition);
}

.market-desktop-nav a:hover,
.market-desktop-nav a.is-active {
    color: var(--text);
}

.market-desktop-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.market-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.market-company-link,
.market-theme-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.market-company-link {
    gap: 9px;
    padding: 0 17px;
    background: linear-gradient(135deg, #168bff, #075be0);
    border-color: rgba(79, 172, 255, .5);
    box-shadow: 0 10px 24px rgba(6, 104, 239, .28);
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
}

.market-company-link svg,
.market-theme-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-company-link:hover,
.market-theme-toggle:hover {
    transform: translateY(-2px);
}

.market-company-link:hover {
    box-shadow: 0 14px 32px rgba(6, 104, 239, .38);
}

.market-theme-toggle {
    width: 44px;
    padding: 0;
    background: var(--surface);
    color: var(--text2);
    cursor: pointer;
}

.market-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.market-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

.market-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.market-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.market-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.market-icon-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.market-icon-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 109;
    border: 0;
    padding: 0;
    background: rgba(2, 6, 15, .55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    cursor: default;
}

.market-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    width: min(340px, 86vw);
    padding: 0;
    overflow-y: auto;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(0);
    transition: transform var(--transition);
}

.market-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--border);
}

.market-mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.market-mobile-menu-brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: contain;
    background: var(--surface2);
}

.market-mobile-menu-brand strong {
    display: block;
    font-size: .92rem;
}

.market-mobile-menu-brand small {
    display: block;
    color: var(--text2);
    font-size: .74rem;
}

.market-mobile-menu-close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text2);
    cursor: pointer;
    flex: none;
}

.market-mobile-menu-close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.market-mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
}

.market-mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}

.market-mobile-menu-link::-webkit-details-marker {
    display: none;
}

.market-mobile-menu-link .market-nav-svg {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-mobile-menu-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.market-mobile-menu-copy strong {
    color: var(--text);
    font-size: .92rem;
}

.market-mobile-menu-copy small {
    color: var(--text2);
    font-size: .76rem;
    font-weight: 600;
}

.market-mobile-menu-link.is-active {
    color: var(--primary-light);
}

.market-mobile-menu-link.is-active .market-mobile-menu-copy strong {
    color: var(--primary-light);
}

.market-mobile-menu-chevron {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--transition);
}

.market-mobile-menu-group[open] > summary .market-mobile-menu-chevron {
    transform: rotate(180deg);
}

.market-mobile-menu-submenu {
    display: flex;
    flex-direction: column;
    padding: 2px 8px 10px 50px;
    border-bottom: 1px solid var(--border);
}

.market-mobile-menu-submenu a {
    padding: 9px 4px;
    color: var(--text2);
    font-size: .87rem;
    font-weight: 650;
    text-decoration: none;
}

.market-mobile-menu-submenu a:hover,
.market-mobile-menu-submenu a:focus-visible {
    color: var(--primary-light);
}

.market-mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    margin-top: auto;
}

.market-mobile-menu-cta .market-button {
    justify-content: center;
    width: 100%;
}

.market-mobile-menu-foot {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px 20px;
    border-top: 1px solid var(--border);
}

.market-mobile-menu-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text2);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.market-mobile-menu-foot svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.market-hero {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    scroll-margin-top: 80px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 82% 47%, rgba(0, 110, 255, .22), transparent 25rem),
        radial-gradient(circle at 16% 90%, rgba(22, 124, 255, .09), transparent 26rem),
        linear-gradient(115deg, #01040b 0%, #030a17 44%, #041126 100%);
}

html[data-market-theme="light"] .market-hero {
    background:
        radial-gradient(circle at 82% 47%, rgba(0, 110, 255, .2), transparent 25rem),
        radial-gradient(circle at 16% 90%, rgba(22, 124, 255, .08), transparent 26rem),
        linear-gradient(115deg, #eef6ff 0%, #f9fcff 44%, #e7f2ff 100%);
}

.market-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(rgba(26, 118, 238, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 118, 238, .12) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(90deg, transparent 0, #000 43%, #000 100%);
}

.market-hero-grid::after {
    position: absolute;
    content: "";
    inset: 0;
    background-image: radial-gradient(circle, rgba(46, 168, 255, .85) 0 1px, transparent 1.8px);
    background-size: 78px 52px;
    animation: market-grid-drift 22s linear infinite;
}

.market-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 430px;
    grid-template-columns: minmax(0, .85fr) minmax(520px, 1.15fr);
    align-items: center;
    gap: 28px;
    padding-top: 46px;
}

.market-hero-copy {
    max-width: 650px;
    padding-bottom: 12px;
}

.market-eyebrow,
.market-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-light);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.market-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.market-hero h1 {
    max-width: 690px;
    margin: 14px 0 18px;
    font-size: clamp(3rem, 5vw, 5.25rem);
    line-height: .98;
    letter-spacing: -.065em;
}

.market-hero h1 em {
    display: inline;
    color: var(--primary);
    font-style: normal;
    text-shadow: 0 0 34px rgba(22, 124, 255, .3);
}

.market-hero-copy > p {
    max-width: 610px;
    margin: 0;
    color: var(--text2);
    font-size: 1.02rem;
    line-height: 1.75;
}

.market-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.market-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 21px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.market-button:hover {
    transform: translateY(-2px);
}

.market-button.is-primary {
    border-color: rgba(78, 170, 255, .52);
    background: linear-gradient(135deg, #168dff, #075bdc);
    box-shadow: 0 12px 30px rgba(8, 105, 235, .28);
    color: #fff;
}

.market-button.is-primary:hover {
    box-shadow: 0 17px 40px rgba(8, 105, 235, .4);
}

.market-button.is-secondary {
    background: rgba(7, 21, 35, .56);
    backdrop-filter: blur(8px);
}

html[data-market-theme="light"] .market-button.is-secondary {
    background: rgba(255, 255, 255, .72);
}

.market-hero-visual {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
    transform: translate3d(0, var(--market-parallax, 0), 0);
    transition: transform 60ms linear;
}

.market-hero-custom-image {
    width: 100%;
    max-height: 410px;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .52));
}

.market-hero-illustration {
    overflow: visible;
    width: min(100%, 720px);
    filter: drop-shadow(0 30px 32px rgba(0, 0, 0, .46));
}

.market-circuits {
    fill: var(--primary-light);
    stroke: var(--primary);
    stroke-width: 1.4;
    opacity: .7;
}

.market-platform-shadow {
    fill: rgba(0, 0, 0, .55);
}

.market-platform-base {
    fill: url(#mktPlatform);
    stroke: #0a4c9b;
    stroke-width: 4;
}

.market-platform-light {
    fill: #061326;
    stroke: #168cff;
    stroke-width: 5;
    filter: url(#mktGlow);
}

.market-cart-drawing {
    fill: none;
    stroke: #a9bad0;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-cart-drawing .market-cart-basket {
    fill: rgba(6, 17, 33, .78);
    stroke: #398cd8;
}

.market-cart-drawing circle {
    fill: #081a31;
    stroke: #d6e2ef;
}

.market-package {
    fill: url(#mktBox);
    stroke: #e3bb81;
    stroke-width: 1.4;
}

.market-package-tape {
    fill: none;
    stroke: rgba(255, 236, 190, .72);
    stroke-width: 5;
}

.market-shopping-bag {
    fill: #0867db;
    stroke: #4baeff;
    stroke-width: 3;
}

.market-shopping-bag path:nth-child(2) {
    fill: none;
}

.market-shopping-bag text {
    fill: #fff;
    font-size: 54px;
    font-weight: 900;
}

.market-payment-card rect {
    fill: #07111f;
    stroke: #237fcc;
    stroke-width: 2;
}

.market-payment-card text {
    fill: #65c2ff;
    font-size: 16px;
    font-weight: 850;
}

.market-payment-card path {
    fill: none;
    stroke: #e5f3ff;
    stroke-width: 2;
}

.market-shield circle,
.market-lock circle {
    fill: rgba(5, 39, 82, .9);
    stroke: #2598ff;
    stroke-width: 2;
    filter: url(#mktGlow);
}

.market-shield path,
.market-lock rect,
.market-lock path {
    fill: none;
    stroke: #c8e6ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-visual-brand {
    position: absolute;
    right: 4%;
    bottom: 13%;
    width: 140px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(2, 8, 18, .76);
    box-shadow: var(--glow);
}

.market-visual-brand img {
    width: 100%;
    height: 45px;
    object-fit: contain;
}

.market-trust-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(380px, .6fr);
    gap: 20px;
    padding: 8px 0 28px;
}

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

.market-advantage {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(9, 30, 54, .83), rgba(4, 15, 29, .68));
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
    backdrop-filter: blur(10px);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

html[data-market-theme="light"] .market-advantage {
    background: rgba(255, 255, 255, .68);
}

.market-advantage:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 168, 255, .48);
    box-shadow: var(--glow);
}

.market-advantage-icon {
    flex: 0 0 auto;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(46, 168, 255, .4);
    border-radius: 11px;
    background: rgba(22, 124, 255, .14);
    color: var(--primary-light);
    font-size: 1.05rem;
    font-weight: 900;
}

.market-advantage strong,
.market-advantage small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-advantage strong {
    font-size: .78rem;
}

.market-advantage small {
    margin-top: 4px;
    color: var(--text2);
    font-size: .67rem;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--glass);
    backdrop-filter: blur(10px);
    list-style: none;
}

.market-stats li {
    min-width: 0;
    padding: 9px 8px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.market-stats li:last-child {
    border-right: 0;
}

.market-stats strong {
    display: block;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.market-stats li > span {
    display: block;
    margin: 3px 0 0;
    color: var(--text2);
    font-size: .64rem;
}

.market-search-zone {
    position: relative;
    z-index: 5;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.market-search {
    position: relative;
    display: grid;
    min-height: 66px;
    grid-template-columns: minmax(290px, 1fr) 230px 50px 50px 150px;
    align-items: stretch;
    margin: 0;
    border: 1px solid rgba(74, 152, 246, .34);
    border-radius: 15px;
    background: #f8fbff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
    transform: translateY(-12px);
}

.market-search-input {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 17px;
    grid-column: 1;
}

.market-search-input svg,
.market-search-tool svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: #54708b;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-search input[type="search"] {
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #10243a;
    font-size: .92rem;
}

.market-search input::placeholder {
    color: #71849a;
}

.market-search select {
    min-width: 0;
    border: 0;
    border-left: 1px solid #d8e2ed;
    outline: 0;
    padding: 0 36px 0 16px;
    background: #f8fbff;
    color: #1a2d42;
    cursor: pointer;
    grid-column: 2;
}

.market-search-tool {
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1px solid #d8e2ed;
    background: #f8fbff;
    cursor: pointer;
}

.market-search-tool[data-market-voice] {
    grid-column: 3;
}

.market-search-tool[data-market-qr] {
    grid-column: 4;
}

.market-search-tool:hover,
.market-search-tool.is-listening {
    background: #e9f4ff;
}

.market-search-tool.is-listening svg {
    stroke: var(--danger);
    animation: market-pulse 1s infinite;
}

.market-search-submit {
    grid-column: 5;
    border: 0;
    border-radius: 0 13px 13px 0;
    background: linear-gradient(135deg, #168dff, #075bdc);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    transition: filter var(--transition);
}

.market-search-submit:hover {
    filter: brightness(1.13);
}

.market-search-help {
    margin: -2px 0 16px;
    color: var(--text2);
    font-size: .72rem;
}

.market-search-history {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    width: min(520px, 100%);
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--glass-strong);
    box-shadow: var(--shadow-lg);
}

.market-search-history strong {
    display: block;
    margin-bottom: 7px;
    color: var(--text2);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.market-search-history button {
    margin: 3px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--surface2);
    color: var(--text);
    cursor: pointer;
}

.market-section {
    position: relative;
    padding: var(--space-7) 0;
    scroll-margin-top: 84px;
    content-visibility: auto;
    /* Estimate only (avoids layout shift while off-screen content is not yet
       rendered). Most sections settle around 800-850px in practice; a closer
       estimate here reduces jank when they get promoted on scroll. */
    contain-intrinsic-size: 800px;
}

.market-section + .market-section {
    border-top: 1px solid rgba(100, 170, 255, .08);
}

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

.market-section-header h2 {
    margin: 8px 0 0;
    font-size: clamp(1.7rem, 2.6vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.market-section-header p {
    max-width: 720px;
    margin: 9px 0 0;
    color: var(--text2);
    line-height: 1.6;
}

.market-section-header > a {
    flex: 0 0 auto;
    color: var(--primary-light);
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.market-section-header.is-centered {
    justify-content: center;
    text-align: center;
}

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

.market-category-card {
    min-height: 132px;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 15px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, var(--surface2), var(--surface));
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
    text-align: center;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.market-category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(46, 168, 255, .55);
    box-shadow: var(--glow);
}

.market-category-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid rgba(46, 168, 255, .3);
    border-radius: 13px;
    background: rgba(22, 124, 255, .12);
    color: var(--primary-light);
    font-size: 1.35rem;
}

.market-category-card strong {
    width: 100%;
    overflow: hidden;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-category-card small {
    color: var(--text2);
    font-size: .65rem;
}

.market-rail-section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    background: linear-gradient(180deg, rgba(8, 28, 50, .35), transparent);
}

html[data-market-theme="light"] .market-rail-section {
    background: linear-gradient(180deg, rgba(222, 237, 251, .58), transparent);
}

.market-rail-controls {
    display: flex;
    gap: 8px;
}

.market-rail-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.market-rail-controls button:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.market-product-rail {
    display: grid;
    grid-auto-columns: minmax(230px, 270px);
    grid-auto-flow: column;
    gap: 15px;
    overflow-x: auto;
    padding: 3px 2px 15px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(46, 168, 255, .35) transparent;
    scrollbar-width: thin;
}

.market-product-rail .market-product-card {
    scroll-snap-align: start;
}

.market-catalog-section {
    background:
        radial-gradient(circle at 10% 30%, rgba(22, 124, 255, .05), transparent 26rem),
        var(--bg);
}

.market-result-count {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--primary-light);
    font-size: .76rem;
    font-weight: 800;
}

.market-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.market-category-pills a {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--surface);
    color: var(--text2);
    font-size: .73rem;
    font-weight: 750;
    text-decoration: none;
}

.market-category-pills a:hover,
.market-category-pills a.is-current {
    border-color: rgba(46, 168, 255, .55);
    background: rgba(22, 124, 255, .15);
    color: var(--primary-light);
}

.market-catalog-toolbar {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 19px;
    padding: 9px 12px 9px 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: var(--text2);
    font-size: .78rem;
}

.market-sort {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.market-sort label {
    font-weight: 750;
}

.market-sort select {
    min-height: 35px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 30px 0 10px;
    background: var(--surface2);
    color: var(--text);
}

.market-reset-link {
    color: var(--primary-light);
    font-weight: 800;
    text-decoration: none;
}

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

.market-product-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(150deg, var(--surface2), var(--surface) 52%);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.market-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 168, 255, .48);
    box-shadow: 0 20px 46px rgba(0, 73, 176, .2);
}

.market-product-media {
    position: relative;
    overflow: hidden;
    height: 205px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 75% 15%, rgba(22, 124, 255, .2), transparent 45%),
        #07111f;
}

.market-product-media > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.market-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
}

.market-product-card:hover .market-product-media img {
    transform: scale(1.045);
}

.market-product-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(46, 168, 255, .62);
    font-size: 2.2rem;
    font-weight: 950;
    letter-spacing: -.06em;
}

.market-product-badge {
    position: absolute;
    z-index: 2;
    top: 11px;
    left: 11px;
    max-width: calc(100% - 64px);
    overflow: hidden;
    padding: 5px 8px;
    border-radius: 7px;
    background: var(--warning);
    color: #0b1520;
    font-size: .61rem;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.market-product-badge.is-new {
    background: var(--success);
    color: #fff;
}

.market-product-badge.is-sale {
    background: var(--danger);
    color: #fff;
}

.market-favorite {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(2, 9, 20, .62);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.market-favorite svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.market-favorite[aria-pressed="true"] {
    border-color: rgba(255, 93, 104, .7);
    background: rgba(255, 93, 104, .18);
    color: #ff7c85;
}

.market-favorite[aria-pressed="true"] svg {
    fill: currentColor;
}

.market-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.market-product-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text2);
    font-size: .61rem;
}

.market-product-meta a {
    max-width: 60%;
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(22, 124, 255, .12);
    color: var(--primary-light);
    font-weight: 750;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-product-card h3 {
    margin: 11px 0 6px;
    font-size: .96rem;
    line-height: 1.35;
}

.market-product-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.market-product-seller {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    margin-bottom: 12px;
    color: var(--text2);
    font-size: .7rem;
    text-decoration: none;
}

.market-verified {
    display: inline-grid;
    width: 15px;
    height: 15px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .56rem;
    font-weight: 900;
}

.market-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.market-product-price strong {
    color: var(--primary-light);
    font-size: 1.08rem;
    letter-spacing: -.025em;
}

.market-product-price del {
    color: var(--text2);
    font-size: .72rem;
}

.market-stock {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: var(--success);
    font-size: .68rem;
    font-weight: 750;
}

.market-stock::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.market-stock.is-confirmation {
    color: var(--warning);
}

.market-product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--border);
}

.market-product-actions > a {
    color: var(--primary-light);
    font-size: .7rem;
    font-weight: 850;
    text-decoration: none;
}

.market-compare {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text2);
    font-size: .63rem;
    cursor: pointer;
}

.market-compare input {
    accent-color: var(--primary);
}

.market-empty-state {
    grid-column: 1 / -1;
    min-height: 330px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 40px;
    border: 1px dashed rgba(100, 170, 255, .35);
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 0, rgba(22, 124, 255, .13), transparent 55%), var(--surface);
    text-align: center;
}

.market-empty-state > span {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border-radius: 50%;
    background: rgba(22, 124, 255, .14);
    color: var(--primary-light);
    font-size: 1.8rem;
}

.market-empty-state h3 {
    margin: 17px 0 6px;
}

.market-empty-state p {
    max-width: 650px;
    margin: 0 0 20px;
    color: var(--text2);
    line-height: 1.65;
}

.market-empty-state > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.market-empty-inline {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text2);
    text-align: center;
}

.market-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.market-pagination a,
.market-pagination span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text2);
    font-weight: 800;
    text-decoration: none;
}

.market-pagination span {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.market-supplier-section {
    background: linear-gradient(180deg, rgba(7, 21, 35, .82), rgba(3, 7, 18, .4));
}

html[data-market-theme="light"] .market-supplier-section {
    background: linear-gradient(180deg, #eaf3fc, #f4f8fc);
}

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

.market-supplier-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.market-supplier-card:hover {
    transform: translateY(-5px);
    border-color: rgba(46, 168, 255, .5);
    box-shadow: var(--glow);
}

.market-supplier-logo {
    overflow: hidden;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface2);
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 900;
}

.market-supplier-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.market-verified-label {
    color: var(--success);
    font-size: .62rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.market-supplier-card h3 {
    overflow: hidden;
    margin: 5px 0 3px;
    font-size: .95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-supplier-card p,
.market-supplier-card small {
    margin: 0;
    color: var(--text2);
    font-size: .7rem;
}

.market-supplier-card > a {
    grid-column: 1 / -1;
    color: var(--primary-light);
    font-size: .72rem;
    font-weight: 850;
    text-decoration: none;
}

.market-how-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.market-how-grid::before {
    position: absolute;
    z-index: 0;
    content: "";
    top: 32px;
    right: 10%;
    left: 10%;
    border-top: 1px dashed rgba(46, 168, 255, .4);
}

.market-how-grid article {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(150deg, var(--surface2), var(--surface));
}

.market-how-grid article > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(46, 168, 255, .45);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--glow);
    color: var(--primary-light);
    font-size: .74rem;
    font-weight: 900;
}

.market-how-grid h3 {
    margin: 18px 0 8px;
    font-size: 1rem;
}

.market-how-grid p {
    margin: 0;
    color: var(--text2);
    font-size: .8rem;
    line-height: 1.65;
}

.market-commercial-model {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--border);
}

.market-commercial-model > div {
    min-width: 0;
    padding: 18px;
    background: var(--surface);
}

.market-commercial-model span,
.market-commercial-model strong,
.market-commercial-model small {
    display: block;
}

.market-commercial-model span {
    color: var(--text2);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.market-commercial-model strong {
    margin: 7px 0 4px;
    color: var(--primary-light);
    font-size: 1.12rem;
}

.market-commercial-model small {
    color: var(--text2);
    font-size: .69rem;
    line-height: 1.5;
}

.market-transparency {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin-top: 28px;
    padding: 28px 32px;
    border: 1px solid rgba(46, 168, 255, .35);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(100deg, rgba(7, 33, 67, .94), rgba(4, 13, 26, .92)),
        var(--surface);
    box-shadow: var(--glow);
}

html[data-market-theme="light"] .market-transparency {
    background: linear-gradient(100deg, #e6f3ff, #fff);
}

.market-transparency::after {
    position: absolute;
    content: "";
    width: 320px;
    height: 320px;
    right: -100px;
    border: 1px solid rgba(46, 168, 255, .28);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(46, 168, 255, .03), 0 0 0 65px rgba(46, 168, 255, .02);
}

.market-transparency > * {
    position: relative;
    z-index: 1;
}

.market-transparency h2 {
    margin: 8px 0;
    font-size: 1.55rem;
    letter-spacing: -.035em;
}

.market-transparency p {
    max-width: 950px;
    margin: 0;
    color: var(--text2);
    line-height: 1.7;
}

.market-transparency img {
    width: 170px;
    height: 70px;
    flex: 0 0 auto;
    object-fit: contain;
}

.market-faq-section {
    background: rgba(7, 21, 35, .34);
}

.market-faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, .42fr) minmax(0, .58fr);
    align-items: start;
    gap: 70px;
}

.market-faq-layout .market-section-header {
    position: sticky;
    top: 105px;
}

.market-faq details {
    border-bottom: 1px solid var(--border);
}

.market-faq summary {
    display: flex;
    min-height: 67px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text);
    font-size: .92rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.market-faq summary::-webkit-details-marker {
    display: none;
}

.market-faq summary span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--primary-light);
    transition: transform var(--transition), background var(--transition);
}

.market-faq details[open] summary span {
    background: rgba(22, 124, 255, .15);
    transform: rotate(45deg);
}

.market-faq p {
    margin: -2px 50px 20px 0;
    color: var(--text2);
    font-size: .84rem;
    line-height: 1.75;
}

.market-cta-section {
    padding: 55px 0;
}

.market-final-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 38px 42px;
    border: 1px solid rgba(46, 168, 255, .42);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 90% 20%, rgba(46, 168, 255, .25), transparent 20rem),
        linear-gradient(115deg, #07192f, #041021);
    box-shadow: 0 30px 80px rgba(0, 77, 174, .2);
}

html[data-market-theme="light"] .market-final-cta {
    background:
        radial-gradient(circle at 90% 20%, rgba(46, 168, 255, .25), transparent 20rem),
        linear-gradient(115deg, #e9f4ff, #fff);
}

.market-final-cta h2 {
    margin: 8px 0;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    letter-spacing: -.045em;
}

.market-final-cta p {
    max-width: 800px;
    margin: 0;
    color: var(--text2);
    line-height: 1.65;
}

.market-final-cta .market-button {
    flex: 0 0 auto;
}

.market-footer {
    border-top: 1px solid var(--border);
    background: #02050c;
    color: #fff;
}

html[data-market-theme="light"] .market-footer {
    background: #071523;
}

.market-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    padding-top: 52px;
    padding-bottom: 42px;
}

.market-footer-brand img {
    width: 210px;
    height: 75px;
    object-fit: contain;
    object-position: left center;
}

.market-footer-brand p {
    max-width: 380px;
    margin: 11px 0 0;
    color: #9eb0c3;
    font-size: .8rem;
    line-height: 1.65;
}

.market-footer h2 {
    margin: 0 0 14px;
    font-size: .84rem;
}

.market-footer-grid > div:not(.market-footer-brand) a {
    display: block;
    margin: 9px 0;
    color: #9eb0c3;
    font-size: .76rem;
    text-decoration: none;
}

.market-footer a:hover {
    color: var(--primary-light);
}

.market-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 25px;
    border-top: 1px solid rgba(100, 170, 255, .14);
    color: #8093a8;
    font-size: .69rem;
}

.market-footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.market-footer-bottom a {
    color: #9eb0c3;
    text-decoration: none;
}

.market-mobile-bottom-nav {
    display: none;
}

.market-compare-tray {
    position: fixed;
    z-index: 120;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 13px 11px 16px;
    border: 1px solid rgba(46, 168, 255, .45);
    border-radius: 13px;
    background: var(--glass-strong);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    backdrop-filter: blur(18px);
}

.market-compare-tray[hidden] {
    display: none !important;
}

.market-compare-tray button {
    border: 0;
    border-radius: 8px;
    padding: 7px 9px;
    background: rgba(22, 124, 255, .14);
    color: var(--primary-light);
    font-size: .72rem;
    cursor: pointer;
}

[data-market-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms ease, transform 520ms ease;
}

[data-market-reveal].is-visible,
html:not([data-marketplace-ready]) [data-market-reveal] {
    opacity: 1;
    transform: none;
}

html:not([data-marketplace-ready]) .market-product-media {
    background: linear-gradient(100deg, #07111f 20%, #0c2340 40%, #07111f 60%);
    background-size: 200% 100%;
    animation: market-skeleton 1.5s linear infinite;
}

@keyframes market-grid-drift {
    to { transform: translate3d(78px, 52px, 0); }
}

@keyframes market-pulse {
    50% { opacity: .35; }
}

@keyframes market-skeleton {
    to { background-position: -200% 0; }
}

@media (max-width: 1260px) {
    .market-header-inner {
        grid-template-columns: 190px 1fr auto;
        gap: 18px;
    }

    .market-logo {
        width: 185px;
    }

    .market-desktop-nav a {
        padding-inline: 8px;
        font-size: .78rem;
    }

    .market-hero-inner {
        grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
    }

    .market-trust-row {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 980px) {
    .market-desktop-nav {
        display: none;
    }

    .market-header-inner {
        grid-template-columns: 1fr auto;
    }

    .market-menu-toggle,
    .market-icon-btn {
        display: inline-flex;
    }

    .market-hero-inner {
        min-height: auto;
        grid-template-columns: 1fr 1fr;
        padding-top: 44px;
    }

    .market-hero h1 {
        font-size: clamp(2.6rem, 6.8vw, 4rem);
    }

    .market-hero-visual {
        min-height: 330px;
    }

    .market-hero-actions {
        gap: 8px;
    }

    .market-hero-actions .market-button {
        padding-inline: 10px;
        font-size: .76rem;
    }

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

    .market-search {
        grid-template-columns: minmax(260px, 1fr) 190px 46px 46px 125px;
    }

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

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

    .market-how-grid::before {
        display: none;
    }

    .market-faq-layout {
        gap: 40px;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 73px;
    }

    .market-container {
        width: min(100% - 28px, var(--container));
    }

    .market-header-inner {
        min-height: 68px;
    }

    .market-logo {
        width: 155px;
        height: 54px;
    }

    .market-logo img {
        height: 49px;
    }

    .market-company-link {
        min-height: 40px;
        padding: 0 12px;
    }

    .market-company-link span {
        display: none;
    }

    .market-theme-toggle,
    .market-menu-toggle,
    .market-icon-btn {
        width: 40px;
        height: 40px;
    }

    .market-hero {
        min-height: 0;
    }

    .market-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding-top: 40px;
    }

    .market-hero-copy {
        position: relative;
        z-index: 2;
    }

    .market-eyebrow {
        font-size: .58rem;
    }

    .market-hero h1 {
        margin-top: 11px;
        font-size: clamp(2.25rem, 9.5vw, 3.5rem);
        line-height: 1.01;
    }

    .market-hero-copy > p {
        width: auto;
        font-size: .85rem;
        line-height: 1.62;
    }

    .market-hero-actions {
        width: auto;
    }

    .market-button {
        min-height: 44px;
        padding-inline: 16px;
        font-size: .78rem;
    }

    .market-hero-visual {
        min-height: 235px;
        margin: -4px 0 0;
        overflow: hidden;
    }

    .market-hero-illustration {
        width: min(100%, 520px);
        max-width: 100%;
    }

    .market-hero-custom-image {
        max-height: 255px;
    }

    .market-visual-brand {
        display: none;
    }

    .market-trust-row {
        gap: 12px;
        padding-top: 20px;
    }

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

    .market-advantage {
        min-height: 108px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 9px 5px;
        text-align: center;
    }

    .market-advantage-icon {
        width: 34px;
        height: 34px;
    }

    .market-advantage strong,
    .market-advantage small {
        white-space: normal;
    }

    .market-advantage strong {
        font-size: .62rem;
    }

    .market-advantage small {
        font-size: .54rem;
    }

    .market-stats {
        order: -1;
    }

    .market-search-zone {
        padding-top: 15px;
    }

    .market-search {
        grid-template-columns: minmax(0, 1fr) 46px 46px;
        gap: 8px;
        padding: 10px;
        border-radius: 16px;
        background: var(--surface);
        transform: none;
    }

    .market-search-input {
        grid-column: 1 / -1;
        min-height: 50px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: #f8fbff;
    }

    .market-search select {
        grid-column: 1;
        min-height: 46px;
        border: 1px solid var(--border);
        border-radius: 10px;
    }

    .market-search-tool {
        min-height: 46px;
        border: 1px solid var(--border);
        border-radius: 10px;
    }

    .market-search-tool[data-market-voice] {
        grid-column: 2;
    }

    .market-search-tool[data-market-qr] {
        grid-column: 3;
    }

    .market-search-submit {
        grid-column: 1 / -1;
        min-height: 46px;
        border-radius: 10px;
    }

    .market-search-help {
        margin-top: 8px;
    }

    .market-section {
        padding: 45px 0;
    }

    .market-section-header {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .market-section-header h2 {
        font-size: 1.55rem;
    }

    .market-section-header p {
        font-size: .8rem;
    }

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

    .market-category-card {
        min-height: 105px;
        padding: 10px 5px;
    }

    .market-category-icon {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
    }

    .market-category-card strong {
        font-size: .65rem;
    }

    .market-category-card small {
        font-size: .55rem;
    }

    .market-category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .market-category-pills::-webkit-scrollbar {
        display: none;
    }

    .market-category-pills a {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .market-catalog-toolbar {
        flex-wrap: wrap;
    }

    .market-catalog-toolbar > span {
        width: 100%;
    }

    .market-sort {
        margin-left: 0;
    }

    .market-product-grid {
        display: flex;
        gap: 11px;
        overflow-x: auto;
        margin-inline: -14px;
        padding: 2px 14px 14px;
        scroll-padding-left: 14px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .market-product-grid::-webkit-scrollbar {
        display: none;
    }

    .market-product-grid .market-product-card {
        flex: 0 0 min(70vw, 285px);
        scroll-snap-align: start;
    }

    .market-product-grid .market-empty-state {
        flex: 0 0 calc(100vw - 28px);
    }

    .market-product-media {
        height: 175px;
    }

    .market-supplier-grid,
    .market-how-grid {
        grid-template-columns: 1fr;
    }

    .market-commercial-model {
        grid-template-columns: 1fr;
    }

    .market-transparency,
    .market-final-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px;
    }

    .market-transparency img {
        width: 135px;
    }

    .market-faq-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .market-faq-layout .market-section-header {
        position: static;
    }

    .market-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
        padding-top: 38px;
    }

    .market-footer-brand {
        grid-column: 1 / -1;
    }

    .market-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-mobile-bottom-nav {
        position: fixed;
        z-index: 110;
        right: 8px;
        bottom: 7px;
        left: 8px;
        display: grid;
        min-height: 62px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        padding: 4px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: rgba(4, 14, 27, .94);
        box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
        backdrop-filter: blur(18px);
    }

    html[data-market-theme="light"] .market-mobile-bottom-nav {
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 16px 44px rgba(36, 72, 110, .18);
    }

    .market-mobile-bottom-nav a {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 5px 2px;
        color: #9eb0c3;
        text-decoration: none;
    }

    html[data-market-theme="light"] .market-mobile-bottom-nav a {
        color: #526c85;
    }

    .market-mobile-bottom-nav a.is-active {
        color: var(--primary-light);
    }

    .market-mobile-bottom-nav span {
        font-size: 1.16rem;
    }

    .market-mobile-bottom-nav small {
        max-width: 100%;
        overflow: hidden;
        font-size: .56rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .market-compare-tray {
        right: 10px;
        bottom: 80px;
        left: 10px;
        justify-content: space-between;
    }
}

@media (max-width: 460px) {
    .market-header-actions {
        gap: 6px;
    }

    .market-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .market-hero h1 {
        font-size: 2.35rem;
    }

    .market-hero-visual {
        min-height: 205px;
        margin: -6px -20px 0;
    }

    .market-hero-illustration {
        width: min(100%, 410px);
        max-width: 100%;
    }

    .market-stats strong {
        font-size: 1.05rem;
    }

    .market-stats li > span {
        font-size: .52rem;
    }

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

    .market-category-card {
        min-height: 112px;
    }

    .market-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    [data-market-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Compact marketplace composition matching the public HadiTech visual. */
.market-nav-icon {
    color: currentColor;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

.market-desktop-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.market-hero-generated-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 28px 38px rgba(0, 0, 0, .5));
}

.market-hero-illustration {
    display: none;
}

.market-showcase {
    padding: 18px 0 16px;
    background:
        radial-gradient(circle at 68% 26%, rgba(13, 104, 230, .075), transparent 30rem),
        linear-gradient(180deg, #030a16, var(--bg));
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

.market-categories-section {
    padding: 0;
}

html[data-market-theme="light"] .market-showcase {
    background: linear-gradient(180deg, #eef6fd, var(--bg));
}

.market-showcase-grid {
    display: grid;
    grid-template-columns: minmax(310px, 400px) minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
}

.market-showcase-categories {
    min-width: 0;
    padding-right: 14px;
    border-right: 1px solid rgba(100, 170, 255, .12);
}

.market-showcase-products {
    min-width: 0;
}

.market-showcase-heading {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.market-showcase-heading h2 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.market-showcase-heading h2 span {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.market-showcase-heading-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.market-showcase-heading a {
    flex: 0 0 auto;
    color: var(--primary-light);
    font-size: .72rem;
    font-weight: 750;
    text-decoration: none;
}

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

.market-showcase .market-category-card {
    min-height: 128px;
    gap: 7px;
    padding: 11px 5px;
    border-radius: 10px;
}

.market-showcase .market-category-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.25rem;
}

.market-showcase .market-category-card strong {
    font-size: .68rem;
}

.market-showcase .market-category-card small {
    font-size: .55rem;
}

.market-showcase-products .market-product-rail {
    grid-auto-columns: calc((100% - 50px) / 6);
    gap: 10px;
    overflow-y: hidden;
    padding: 1px 1px 4px;
    scrollbar-width: none;
}

.market-showcase-products .market-product-rail::-webkit-scrollbar {
    display: none;
}

.market-showcase-products .market-product-card {
    height: 306px;
    border-radius: 10px;
    box-shadow: none;
}

.market-showcase-products .market-product-media {
    height: 128px;
    flex: 0 0 128px;
}

.market-showcase-products .market-product-body {
    min-height: 0;
    padding: 9px 10px 10px;
}

.market-showcase-products .market-product-meta {
    justify-content: flex-start;
    font-size: .55rem;
}

.market-showcase-products .market-product-meta > span {
    display: none;
}

.market-showcase-products .market-product-meta a {
    max-width: 100%;
    padding: 3px 6px;
    color: #dceeff;
}

html[data-market-theme="light"] .market-showcase-products .market-product-meta a {
    color: #0b5bb0;
}

.market-showcase-products .market-product-card h3 {
    margin: 7px 0 4px;
    font-size: .76rem;
    line-height: 1.25;
}

.market-showcase-products .market-product-seller {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 6px;
    font-size: .59rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-showcase-products .market-verified {
    width: 12px;
    height: 12px;
    font-size: .48rem;
}

.market-showcase-products .market-product-price {
    gap: 5px;
}

.market-showcase-products .market-product-price strong {
    font-size: .82rem;
}

.market-showcase-products .market-product-price del {
    font-size: .57rem;
}

.market-showcase-products .market-stock {
    margin-top: 4px;
    font-size: .58rem;
}

.market-showcase-products .market-product-actions {
    margin-top: 7px;
    padding-top: 0;
    border-top: 0;
}

.market-showcase-products .market-compare {
    display: none;
}

.market-showcase-products .market-product-actions > a {
    min-height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(22, 124, 255, .7);
    border-radius: 6px;
    color: var(--text);
    font-size: .61rem;
}

.market-showcase-products .market-product-placeholder {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 44%, rgba(58, 159, 255, .27), transparent 34%),
        linear-gradient(145deg, #16283c, #060c14 72%);
    color: transparent;
    font-size: 0;
}

.market-showcase-products .market-product-placeholder::before {
    content: "◇";
    color: #89caff;
    font-size: 3.35rem;
    text-shadow: 0 0 25px rgba(22, 124, 255, .55);
    transform: translateY(-2px);
}

.market-showcase-products [data-market-category*="Informatique"] .market-product-placeholder::before {
    content: "▣";
}

.market-showcase-products [data-market-category*="lectrom"] .market-product-placeholder::before {
    content: "❄";
}

.market-showcase-products [data-market-category*="Fournitures"] .market-product-placeholder::before {
    content: "▤";
}

.market-showcase-products [data-market-category*="Services"] .market-product-placeholder::before {
    content: "✦";
}

.market-showcase-products .market-favorite {
    top: 7px;
    right: 7px;
    width: 27px;
    height: 27px;
}

.market-showcase-products .market-favorite svg {
    width: 14px;
    height: 14px;
}

.market-showcase-products .market-product-badge {
    top: 7px;
    left: 7px;
    padding: 4px 6px;
    font-size: .52rem;
}

.market-assurance-strip {
    display: grid;
    min-height: 88px;
    grid-template-columns: minmax(430px, 1.9fr) repeat(4, minmax(0, .8fr));
    align-items: stretch;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid rgba(22, 124, 255, .52);
    border-radius: 11px;
    background:
        linear-gradient(90deg, rgba(6, 38, 77, .52), rgba(4, 15, 30, .86)),
        var(--surface);
}

html[data-market-theme="light"] .market-assurance-strip {
    background: rgba(255, 255, 255, .9);
}

.market-assurance-about,
.market-assurance-item {
    min-width: 0;
    display: flex;
    align-items: center;
}

.market-assurance-about {
    gap: 10px;
    padding: 12px 14px;
}

.market-assurance-icon,
.market-assurance-item > span {
    flex: 0 0 auto;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(46, 168, 255, .42);
    border-radius: 50%;
    background: rgba(22, 124, 255, .16);
    color: var(--primary-light);
    font-weight: 850;
}

.market-assurance-about p {
    min-width: 0;
    margin: 0;
    color: var(--text2);
    font-size: .61rem;
    line-height: 1.55;
}

.market-assurance-about p strong {
    color: var(--text);
}

.market-assurance-about img {
    flex: 0 0 125px;
    width: 125px;
    height: 45px;
    object-fit: contain;
}

.market-assurance-item {
    gap: 9px;
    padding: 11px 12px;
    border-left: 1px solid var(--border);
}

.market-assurance-item > span {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
}

.market-assurance-item p,
.market-assurance-item strong,
.market-assurance-item small,
.market-assurance-item a {
    display: block;
}

.market-assurance-item p {
    min-width: 0;
    margin: 0;
}

.market-assurance-item strong {
    font-size: .66rem;
}

.market-assurance-item small {
    margin-top: 4px;
    color: var(--text2);
    font-size: .55rem;
    line-height: 1.45;
}

.market-assurance-item a {
    margin-top: 4px;
    color: var(--primary-light);
    font-size: .72rem;
    font-weight: 850;
    text-decoration: none;
}

@media (min-width: 981px) {
    .market-header-inner {
        grid-template-columns: 215px 1fr auto;
    }

    .market-logo {
        width: 205px;
    }

    .market-hero {
        min-height: 0;
    }

    .market-hero-inner {
        min-height: 276px;
        grid-template-columns: minmax(430px, 500px) minmax(0, 1fr);
        gap: 18px;
        padding-top: 10px;
    }

    .market-hero-copy {
        max-width: 500px;
        padding-bottom: 0;
    }

    .market-eyebrow::before {
        display: none;
    }

    .market-hero h1 {
        max-width: 500px;
        margin: 11px 0 15px;
        font-size: clamp(2.75rem, 3.25vw, 3.2rem);
        line-height: 1.02;
        letter-spacing: -.05em;
    }

    .market-hero-copy > p {
        max-width: 490px;
        font-size: .87rem;
        line-height: 1.52;
    }

    .market-hero-actions {
        margin-top: 19px;
    }

    .market-button {
        min-height: 42px;
        border-radius: 8px;
        font-size: .76rem;
    }

    .market-hero-visual {
        min-height: 276px;
        overflow: visible;
    }

    .market-hero-generated-image {
        width: 108%;
        max-width: none;
        height: 300px;
        margin-left: -8%;
        object-fit: cover;
        object-position: 62% 63%;
    }

    .market-visual-brand {
        display: none;
    }

    .market-trust-row {
        gap: 20px;
        padding: 4px 0 14px;
    }

    .market-advantage {
        min-height: 70px;
        padding: 10px 11px;
        border-radius: 10px;
    }

    .market-advantage-icon {
        width: 38px;
        height: 38px;
    }

    .market-search-zone {
        padding-top: 14px;
        border-bottom: 0;
    }

    .market-search {
        min-height: 46px;
        max-width: 1180px;
        grid-template-columns: minmax(290px, 1fr) 280px 48px 48px 140px;
        border-radius: 8px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
        transform: none;
    }

    .market-search-submit {
        border-radius: 0 7px 7px 0;
        font-size: .74rem;
    }

    .market-search input[type="search"],
    .market-search select {
        font-size: .74rem;
    }

    .market-search-help {
        display: none;
    }
}

@media (min-width: 1200px) {
    .market-trust-row {
        grid-template-columns: minmax(0, 1.4fr) minmax(380px, .6fr);
    }
}

@media (max-width: 1199px) {
    .market-showcase-grid {
        grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    }

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

    .market-showcase .market-category-card {
        min-height: 125px;
    }

    .market-showcase-products .market-product-rail {
        grid-auto-columns: calc((100% - 30px) / 4);
    }

    .market-assurance-strip {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }

    .market-assurance-about {
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 980px) {
    .market-showcase-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .market-showcase-categories {
        padding-right: 0;
        border-right: 0;
    }

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

    .market-showcase-products .market-product-rail {
        grid-auto-columns: minmax(185px, 29vw);
    }
}

@media (max-width: 760px) {
    .market-hero-generated-image {
        width: 115%;
        max-width: none;
        margin-left: -7%;
    }

    .market-showcase {
        padding-top: 28px;
    }

    .market-showcase .market-category-card {
        min-height: 105px;
    }

    .market-showcase-products .market-product-rail {
        grid-auto-columns: minmax(210px, 68vw);
    }

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

    .market-assurance-about {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .market-assurance-about img {
        flex-basis: 105px;
        width: 105px;
    }

    .market-assurance-item {
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 460px) {
    .market-showcase .market-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-assurance-strip {
        grid-template-columns: 1fr;
    }

    .market-assurance-about,
    .market-assurance-item {
        grid-column: auto;
    }
}

/* Commerce discovery patterns inspired by leading B2B marketplaces. */
.market-search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 218px;
    align-items: stretch;
    gap: 12px;
}

.market-search-discovery {
    min-width: 0;
}

.market-search-tabs {
    display: flex;
    min-height: 28px;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.market-search-tabs a,
.market-search-tabs span {
    position: relative;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 13px;
    border-radius: 99px;
    color: var(--text2);
    font-size: .7rem;
    font-weight: 800;
    text-decoration: none;
}

.market-search-tabs a:hover,
.market-search-tabs .is-active {
    background: rgba(22, 124, 255, .14);
    color: var(--text);
}

.market-search-tabs .is-active::after {
    position: absolute;
    content: "";
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 2px;
    border-radius: 99px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(22, 124, 255, .8);
}

.market-popular-searches {
    display: flex;
    min-height: 27px;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    margin-top: 7px;
    color: var(--text2);
    white-space: nowrap;
}

.market-popular-searches > span {
    flex: 0 0 auto;
    font-size: .6rem;
    font-weight: 750;
}

.market-popular-searches a {
    max-width: 160px;
    overflow: hidden;
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: rgba(7, 21, 35, .68);
    color: var(--text2);
    font-size: .59rem;
    text-decoration: none;
    text-overflow: ellipsis;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

html[data-market-theme="light"] .market-popular-searches a {
    background: rgba(255, 255, 255, .84);
}

.market-popular-searches a:hover {
    border-color: rgba(46, 168, 255, .55);
    background: rgba(22, 124, 255, .12);
    color: var(--primary-light);
}

.market-seller-invite {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 108px;
    flex-direction: column;
    justify-content: center;
    padding: 15px 16px;
    border: 1px solid rgba(46, 168, 255, .34);
    border-radius: 13px;
    background:
        radial-gradient(circle at 100% 0, rgba(22, 124, 255, .26), transparent 58%),
        linear-gradient(145deg, #0b2340, #06111f);
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

html[data-market-theme="light"] .market-seller-invite {
    background: linear-gradient(145deg, #edf6ff, #fff);
}

.market-seller-invite > span {
    color: var(--primary-light);
    font-size: .6rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.market-seller-invite > strong {
    margin-top: 6px;
    font-size: .72rem;
    line-height: 1.35;
}

.market-seller-invite > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: var(--primary-light);
    font-size: .65rem;
    font-weight: 850;
    text-decoration: none;
}

.market-commerce-shortcuts {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 9px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(7, 21, 35, .72);
}

html[data-market-theme="light"] .market-commerce-shortcuts {
    background: rgba(255, 255, 255, .78);
}

.market-commerce-shortcuts > strong {
    flex: 0 0 auto;
    font-size: .7rem;
}

.market-commerce-shortcuts nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.market-commerce-shortcuts a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border-left: 1px solid var(--border);
    color: var(--text2);
    font-size: .63rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.market-commerce-shortcuts a:hover {
    color: var(--text);
}

.market-commerce-shortcuts a span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    background: rgba(22, 124, 255, .12);
    color: var(--primary-light);
    font-size: .8rem;
}

@media (min-width: 981px) {
    .market-search-zone {
        padding-bottom: 12px;
    }

    .market-search-layout .market-search {
        max-width: none;
    }
}

@media (max-width: 980px) {
    .market-search-layout {
        grid-template-columns: 1fr;
    }

    .market-seller-invite {
        min-height: 84px;
    }

    .market-commerce-shortcuts {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding-block: 10px;
    }

    .market-commerce-shortcuts nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .market-commerce-shortcuts nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 760px) {
    .market-search-tabs {
        overflow-x: auto;
        margin-bottom: 8px;
        scrollbar-width: none;
    }

    .market-search-tabs::-webkit-scrollbar,
    .market-popular-searches::-webkit-scrollbar {
        display: none;
    }

    .market-popular-searches {
        overflow-x: auto;
        margin-inline: -2px;
        padding: 1px 2px 4px;
        scrollbar-width: none;
    }

    .market-popular-searches a {
        flex: 0 0 auto;
        max-width: 180px;
    }

    .market-seller-invite {
        display: none;
    }

    .market-commerce-shortcuts {
        margin-top: 8px;
    }
}

/* Final visual refinement: consistent icons, balanced cards and faster mobile discovery. */
.market-nav-svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-showcase-heading h2 svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-category-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.market-product-placeholder svg {
    width: 76px;
    height: 76px;
    color: #8bcaff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 16px rgba(22, 124, 255, .45));
}

.market-product-placeholder small {
    max-width: calc(100% - 24px);
    overflow: hidden;
    color: #a9c8e4;
    font-size: .61rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.market-showcase-products .market-product-placeholder {
    color: #8bcaff;
    font-size: inherit;
}

.market-showcase-products .market-product-placeholder::before {
    display: none;
}

.market-showcase-products .market-product-placeholder svg {
    width: 58px;
    height: 58px;
    stroke-width: 2.1;
}

.market-showcase-products .market-product-placeholder small {
    font-size: .48rem;
}

@media (min-width: 981px) {
    .market-showcase [data-market-category-count="4"] {
        height: 306px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .market-showcase [data-market-category-count="4"] .market-category-card {
        min-height: 0;
        height: 100%;
        padding: 13px 9px;
    }

    .market-showcase [data-market-category-count="4"] .market-category-icon {
        width: 51px;
        height: 51px;
    }

    .market-showcase [data-market-category-count="4"] .market-category-card strong {
        overflow: visible;
        font-size: .72rem;
        line-height: 1.2;
        text-overflow: clip;
        white-space: normal;
    }
}

@media (max-width: 760px) {
    .market-hero-inner {
        gap: 8px;
        padding-top: 30px;
    }

    .market-hero h1 {
        margin-top: 8px;
    }

    .market-hero-copy > p {
        line-height: 1.5;
    }

    .market-hero-actions {
        margin-top: 18px;
    }

    .market-hero-visual {
        min-height: 195px;
        margin-top: -8px;
    }

    .market-hero-generated-image {
        width: 110%;
        margin-left: -5%;
    }

    .market-trust-row {
        gap: 8px;
        padding-top: 10px;
        padding-bottom: 12px;
    }

    .market-advantages {
        gap: 5px;
    }

    .market-advantage {
        min-height: 78px;
        gap: 4px;
        padding: 7px 3px;
    }

    .market-advantage-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: .88rem;
    }

    .market-advantage strong {
        font-size: .57rem;
        line-height: 1.18;
    }

    .market-advantage small {
        font-size: .48rem;
        line-height: 1.18;
    }
}

@media (max-width: 460px) {
    .market-hero-generated-image {
        height: 200px;
        object-fit: cover;
        object-position: 62% 65%;
    }

    .market-advantages {
        display: none;
    }

    .market-advantage small {
        display: none;
    }

    .market-advantage {
        min-height: 70px;
    }
}
