.cortex-market {
    --cm-navy: #0f2342;
    --cm-nav: #1c3659;
    --cm-ink: #17283f;
    --cm-muted: #50637a;
    --cm-line: #dbe4ed;
    --cm-warm: #ffcc67;
    --cm-teal: #00665d;
    background: #f2f5f9;
}
.cortex-market #header.ct-header { display: none; }
.cortex-market-header { position: relative; z-index: 10; background: var(--cm-navy); color: #fff; }
.cortex-market-header a { color: #fff; text-decoration: none; }
.cortex-market-header a:hover { color: var(--cm-warm); }
.cortex-market-top {
    display: grid;
    grid-template-columns: auto auto minmax(12rem, 1fr) auto;
    align-items: center;
    gap: clamp(.75rem, 2vw, 1.65rem);
    max-width: 90rem;
    margin: auto;
    padding: .75rem clamp(.85rem, 3vw, 2rem);
}
.cortex-market-brand { display: block; width: clamp(7.5rem, 13vw, 10rem); padding: 3px; border-radius: 5px; background: #fff; color: var(--cm-navy) !important; }
.cortex-market-brand img { display: block; width: 100%; height: auto; }
.cortex-market-location { line-height: 1.25; white-space: nowrap; }
.cortex-market-location small, .cortex-market-location strong { display: block; }
.cortex-market-location small { color: #d3dfef; font-size: .73rem; }
.cortex-market-location strong { font-size: .9rem; }
.cortex-market-search { display: grid; grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr) 3rem; min-width: 0; border-radius: .55rem; overflow: hidden; background: #fff; }
.cortex-market-search:focus-within { box-shadow: 0 0 0 3px #ffcc67; }
.cortex-market-search select, .cortex-market-search input, .cortex-market-search button { height: 44px; min-width: 0; margin: 0; border: 0; border-radius: 0; }
.cortex-market-search select { background-color: #edf2f8; border-right: 1px solid var(--cm-line); color: var(--cm-ink); padding-inline: .65rem 1.55rem; font-size: .77rem; }
.cortex-market-search input { background: #fff; color: var(--cm-ink); padding-inline: .85rem; font-size: 16px; }
.cortex-market-search button { display: grid; place-items: center; background: var(--cm-warm); color: #17283f; cursor: pointer; padding: 0; }
.cortex-market-search button:hover { background: #ffd985; }
.cortex-market-header svg, .cortex-market-department svg { width: 23px; height: 23px; flex: 0 0 auto; }
.cortex-market-actions { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.3rem); }
.cortex-market-actions a { display: flex; align-items: center; gap: .28rem; font-size: .86rem; font-weight: 700; white-space: nowrap; min-height: 42px; }
.cortex-market-cart-count { display: inline-grid; min-width: 1.2rem; height: 1.2rem; place-items: center; color: #192942; background: var(--cm-warm); border-radius: 999px; font-size: .7rem; padding-inline: 3px; }
.cortex-market-nav { display: flex; align-items: center; justify-content: safe center; gap: .2rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #7391b4 var(--cm-nav); background: var(--cm-nav); padding: 0 clamp(.75rem, 2vw, 1.5rem); }
.cortex-market-nav a { flex: 0 0 auto; padding: .62rem .7rem; font-size: .85rem; font-weight: 650; white-space: nowrap; }
.cortex-market-nav a[aria-current="page"], .cortex-market-nav .cortex-market-all { color: var(--cm-warm); }
.cortex-market-header :focus-visible { outline: 2px solid var(--cm-warm); outline-offset: -2px; }

.cortex-market-home { max-width: 84rem !important; width: calc(100% - 2.5rem); margin: 0 auto !important; color: var(--cm-ink); }
.cortex-market.home #main > [data-vertical-spacing] { padding-top: clamp(.8rem, 2vw, 1.6rem); }
.cortex-market.home #main article > .hero-section { display: none; }
.cortex-market-hero { display: grid; grid-template-columns: minmax(0, 1.23fr) minmax(0, .77fr); align-items: center; gap: clamp(1.25rem, 4vw, 3rem); padding: clamp(1.25rem, 4.5vw, 3.2rem); border-radius: 1.1rem; background: radial-gradient(ellipse at 100% 100%, #d1f4e7 0, transparent 65%), linear-gradient(112deg, #e5efff, #f2f7fb 62%, #e1f7ef); }
.cortex-market-kicker { font-size: .76rem; font-weight: 800; letter-spacing: .09em; color: #005a51; margin: 0 0 .7rem; }
.cortex-market-hero h1 { color: var(--cm-navy); font-size: clamp(2rem, 4.4vw, 4.15rem); line-height: 1.06; letter-spacing: -.045em; margin: 0 0 .8rem; max-width: 12em; }
.cortex-market-hero-copy > p:not(.cortex-market-kicker) { color: var(--cm-muted); font-size: clamp(1rem, 1.5vw, 1.18rem); margin-bottom: 1.15rem; }
.cortex-market-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.cortex-market-hero-actions a { font-weight: 700; }
.cortex-market-hero-actions .cortex-market-button { display: inline-flex; justify-content: center; align-items: center; padding: .7rem 1rem; background: var(--cm-warm); color: var(--cm-navy); border-radius: .5rem; text-decoration: none; }
.cortex-market-hero-actions .cortex-market-button:hover { background: #ffd985; }
.cortex-market-feature { display: grid; gap: .55rem; min-width: 0; max-width: 29rem; width: 100%; margin-inline: auto; border: 1px solid #d9e7ec; border-radius: .85rem; padding: .7rem; background: #fff; color: var(--cm-ink); box-shadow: 0 12px 28px #142d4712; text-decoration: none; }
.cortex-market-feature-label { justify-self: start; padding: .14rem .5rem; color: var(--cm-teal); background: #e5f6ee; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.cortex-market-feature-image { height: clamp(8rem, 17vw, 14rem); border-radius: .45rem; background: #f3f6f9; overflow: hidden; }
.cortex-market-feature-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cortex-market-feature-caption { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .3rem .7rem; font-size: .88rem; line-height: 1.35; }
.cortex-market-feature-caption > span { font-weight: 800; color: var(--cm-navy); }
.cortex-market-section { margin: clamp(1.3rem, 3vw, 2.5rem) 0; }
.cortex-market-section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem .8rem; margin-bottom: .8rem; }
.cortex-market-section-head h2 { margin: 0; color: var(--cm-navy); font-size: clamp(1.35rem, 2.5vw, 1.9rem); letter-spacing: -.025em; }
.cortex-market-section-head a, .cortex-market-department-link { color: #075b79; font-weight: 700; font-size: .84rem; }
.cortex-market-departments { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.cortex-market-department { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: .3rem; padding: clamp(.65rem, 2vw, 1rem); border: 1px solid var(--cm-line); border-radius: .65rem; background: #fff; color: var(--cm-ink); text-decoration: none; }
.cortex-market-department:hover { border-color: #6c9eb1; color: var(--cm-ink); box-shadow: 0 4px 12px #18394f12; }
.cortex-market-department-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: .2rem; border-radius: .7rem; color: #0e5f78; background: #e4f4fa; }
.cortex-market-department:nth-child(2n) .cortex-market-department-icon { color: #116250; background: #e0f4ec; }
.cortex-market-department:nth-child(3n) .cortex-market-department-icon { color: #7a4b08; background: #fff1d7; }
.cortex-market-department > strong { line-height: 1.25; }
.cortex-market-department > span:not(.cortex-market-department-icon):not(.cortex-market-department-link) { color: var(--cm-muted); font-size: .81rem; }
.cortex-market-department-link { margin-top: auto; padding-top: .3rem; }
.cortex-market-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1.6rem 0; }
.cortex-market-info a { display: block; background: #e7f0f9; border-radius: .55rem; color: #17496c; padding: .8rem; text-decoration: none; }
.cortex-market-info a:hover { background: #d9e9f7; }
.cortex-market-info span { display: block; font-size: .82rem; color: var(--cm-muted); }

.cortex-market .cortex-shop-intro { background: #fff; border: 1px solid var(--cm-line); border-radius: .8rem; box-shadow: none; }
.cortex-market .cortex-shop-categories { display: none; }
.cortex-market #main ul.products li.product { background: #fff; border: 1px solid var(--cm-line); border-radius: .65rem; overflow: hidden; box-shadow: none; }
.cortex-market #main ul.products li.product:hover { border-color: #8faec0; }
.cortex-market #main ul.products li.product .price, .cortex-market.single-product .summary .price { color: var(--cm-navy); font-weight: 800; }
.cortex-market #main ul.products li.product .add_to_cart_button, .cortex-market.single-product .single_add_to_cart_button { background: var(--cm-warm); color: var(--cm-navy); font-weight: 750; border-color: transparent; }
.cortex-market #main ul.products li.product .add_to_cart_button:hover, .cortex-market.single-product .single_add_to_cart_button:hover { background: #ffd985; }
.cortex-market.single-product .summary { padding: clamp(.9rem, 2vw, 1.4rem); border: 1px solid var(--cm-line); border-radius: .8rem; background: #fff; }

@media (max-width: 1040px) {
    .cortex-market-top { grid-template-columns: auto minmax(0, 1fr) auto; }
    .cortex-market-location { display: none; }
    .cortex-market-departments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .cortex-market-top { grid-template-columns: 1fr auto; gap: .45rem .7rem; padding: .55rem .75rem .7rem; }
    .cortex-market-brand { width: 7.5rem; }
    .cortex-market-search { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 5.75rem) minmax(0, 1fr) 2.75rem; }
    .cortex-market-search select { padding-inline: .4rem 1.1rem; }
    .cortex-market-search input { padding-inline: .55rem; }
    .cortex-market-nav { justify-content: flex-start; }
    .cortex-market-nav a { font-size: .78rem; padding-inline: .55rem; }
    .cortex-market-home { width: calc(100% - 1.3rem); }
    .cortex-market-hero { grid-template-columns: 1fr; gap: .95rem; padding: 1rem; }
    .cortex-market-hero h1 { font-size: clamp(1.85rem, 8vw, 2.6rem); }
    .cortex-market-feature { max-width: none; }
    .cortex-market-feature-image { height: 8.5rem; }
    .cortex-market-departments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .cortex-market-info { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .cortex-market-header *, .cortex-market-home * { scroll-behavior: auto !important; }
}
