:root {
    --navy-950: #061225;
    --navy-900: #07162d;
    --navy-800: #0b2342;
    --blue-600: #1769ff;
    --blue-500: #2484ff;
    --cyan-400: #24d4ff;
    --cyan-300: #69e7ff;
    --gray-50: #f7fbff;
    --gray-100: #edf4fb;
    --gray-300: #c9d6e2;
    --gray-600: #5d6d7f;
    --white: #ffffff;
    --shadow: 0 18px 55px rgba(5, 18, 38, 0.18);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--navy-900);
    background: var(--white);
    font-family: var(--custom-font-family, Arial, Helvetica, "Segoe UI", sans-serif);
    font-size: var(--custom-base-size, 16px);
    font-weight: var(--custom-body-weight, 400);
    line-height: 1.6;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 14px;
    color: var(--navy-950);
    background: var(--cyan-300);
    border-radius: var(--radius);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 18, 37, 0.92);
    backdrop-filter: blur(16px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    color: var(--navy-950);
    background: linear-gradient(135deg, var(--cyan-300), var(--blue-500));
    font-weight: 800;
}

.brand-logo-image {
    display: block;
    width: auto;
    max-width: 190px;
    height: 46px;
    padding: 0;
    object-fit: contain;
    background: var(--custom-logo-bg, transparent);
    mix-blend-mode: var(--custom-logo-blend, normal);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    line-height: 1.15;
}

.brand small {
    color: #a9bad0;
    font-size: 0.75rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: #d8e5f3;
    font-size: 0.94rem;
    font-weight: var(--custom-nav-weight, 500);
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--white);
    background: rgba(36, 212, 255, 0.13);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero,
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 78% 18%, rgba(36, 212, 255, 0.18), transparent 32%), var(--navy-950);
}

.home-hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
}

.page-hero {
    padding: 48px 0 38px;
}

.page-hero.compact {
    padding: 38px 0 30px;
}

.image-hero {
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6, 18, 37, 0.94), rgba(6, 18, 37, 0.67) 50%, rgba(6, 18, 37, 0.32));
}

.hero-content {
    max-width: 760px;
    padding: 72px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan-300);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
    font-weight: var(--custom-heading-weight, 800);
}

h1 {
    max-width: 780px;
    font-size: clamp(2.45rem, 7vw, 4.85rem);
}

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(1.85rem, 3.2vw, 2.85rem);
    line-height: 1.12;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: 1.12rem;
}

.hero p,
.page-hero p {
    max-width: 680px;
    color: #dce8f6;
    font-size: 0.98rem;
    margin-bottom: 0;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--custom-button-size, 14px);
    font-weight: var(--custom-button-weight, 800);
    font-style: var(--custom-button-style, normal);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    color: var(--navy-950);
    background: linear-gradient(135deg, var(--cyan-300), var(--blue-500));
    box-shadow: 0 18px 34px rgba(36, 132, 255, 0.25);
}

.btn-secondary {
    color: var(--white);
    border-color: rgba(105, 231, 255, 0.45);
    background: rgba(36, 212, 255, 0.13);
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
}

.btn-ghost.dark {
    color: var(--navy-900);
    border-color: var(--gray-300);
    background: var(--white);
}

.btn-light {
    color: var(--navy-950);
    background: var(--white);
}

.btn-small {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.9rem;
}

.section {
    padding: 86px 0;
}

.section-muted {
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.split-layout > div > p {
    color: var(--gray-600);
}

.card-grid,
.product-grid,
.reason-grid {
    display: grid;
    gap: 20px;
}

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

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

.card-grid.four,
.reason-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.product-card,
.form-panel,
.contact-panel,
.stat-panel,
.check-panel {
    border: 1px solid rgba(7, 22, 45, 0.09);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(7, 22, 45, 0.07);
}

.feature-card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(36, 132, 255, 0.25);
    box-shadow: var(--shadow);
}

.feature-card.tall {
    min-height: 260px;
}

.feature-card p,
.product-card p {
    color: var(--gray-600);
}

.feature-card a,
.service-list a {
    color: var(--blue-600);
    font-weight: 800;
}

.card-icon {
    display: block;
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-300));
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    gap: 48px;
    align-items: center;
}

.split-layout.reverse {
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
}

.split-layout.align-start {
    align-items: start;
}

.rounded-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 0.85fr);
    gap: 48px;
    align-items: start;
}

.product-gallery {
    display: grid;
    gap: 14px;
}

.product-gallery-main {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid rgba(7, 22, 45, 0.1);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, var(--gray-50));
    box-shadow: var(--shadow);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 22px;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 10px;
}

.product-gallery-thumbs button {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid rgba(7, 22, 45, 0.1);
    border-radius: var(--radius);
    padding: 6px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-gallery-thumbs button:hover,
.product-gallery-thumbs button.active {
    border-color: var(--blue-600);
    box-shadow: 0 10px 22px rgba(23, 105, 255, 0.16);
    transform: translateY(-1px);
}

.product-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-detail-panel {
    min-width: 0;
}

.service-list {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.service-list article {
    padding: 20px;
    border-left: 4px solid var(--cyan-400);
    background: var(--white);
    border-radius: var(--radius);
}

.check-list,
.footer-links,
.contact-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.check-list li,
.check-panel div,
.reason-item {
    position: relative;
    padding: 16px 16px 16px 44px;
    border-radius: var(--radius);
    color: var(--navy-800);
    background: var(--gray-50);
}

.check-list li::before,
.check-panel div::before,
.reason-item::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 21px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--cyan-400);
    box-shadow: 0 0 0 5px rgba(36, 212, 255, 0.12);
}

.product-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--gray-100);
}

.product-card > div {
    padding: 20px;
}

.product-card h2,
.product-card h3 {
    margin: 8px 0 10px;
    font-size: 1.12rem;
}

.product-tag,
.price {
    display: inline-block;
    color: var(--blue-600);
    font-size: 0.84rem;
    font-weight: 800;
}

.price {
    display: block;
    margin: 14px 0;
}

.product-card .button-row {
    margin-top: 16px;
}

.product-card .btn-secondary {
    color: var(--blue-600);
    border-color: rgba(23, 105, 255, 0.45);
    background: rgba(23, 105, 255, 0.08);
}

.product-card .btn-secondary:hover {
    color: var(--white);
    border-color: var(--blue-600);
    background: var(--blue-600);
}

.catalog-hero {
    padding-bottom: 46px;
}

.catalog-section {
    padding: 34px 0 86px;
    background: var(--custom-page-bg, var(--gray-50));
}

.catalog-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.catalog-shell.no-sidebar {
    grid-template-columns: 1fr;
}

.catalog-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.sidebar-block,
.catalog-toolbar,
.results-strip,
.market-product-card,
.empty-results {
    border: 1px solid rgba(7, 22, 45, 0.09);
    border-radius: var(--custom-card-radius, 4px);
    background: var(--custom-surface, var(--white));
    box-shadow: 0 2px 8px rgba(7, 22, 45, 0.06);
}

.sidebar-block {
    padding: 18px;
}

.department-panel {
    padding: 0;
}

.department-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 70px;
    gap: 14px;
    border: 0;
    border-radius: var(--custom-card-radius, 4px);
    padding: 15px 16px;
    color: var(--navy-900);
    background: linear-gradient(135deg, rgba(36, 212, 255, 0.12), rgba(23, 105, 255, 0.06));
    cursor: pointer;
    text-align: left;
}

.department-toggle strong,
.department-toggle small {
    display: block;
}

.department-toggle strong {
    font-size: var(--custom-sidebar-title-size, 16px);
    font-weight: var(--custom-sidebar-title-weight, 900);
    font-style: var(--custom-sidebar-title-style, normal);
}

.department-toggle small {
    margin-top: 3px;
    color: var(--gray-600);
    font-size: 0.82rem;
    font-weight: 500;
}

.department-chevron {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--navy-900);
    transition: transform 0.2s ease, background 0.2s ease;
}

.department-chevron::before {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: translateY(-2px) rotate(45deg);
}

.department-panel:not(.is-collapsed) .department-chevron {
    background: var(--blue-600);
    transform: rotate(180deg);
}

.department-list {
    display: grid;
    overflow-y: auto;
    max-height: 70vh;
    padding: 10px 12px 12px;
    transition: max-height 0.22s ease, padding 0.22s ease, opacity 0.18s ease;
}

.department-panel.is-collapsed .department-list {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.sidebar-block h2 {
    margin-bottom: 14px;
    font-size: var(--custom-sidebar-title-size, 16px);
    font-weight: var(--custom-sidebar-title-weight, 900);
    font-style: var(--custom-sidebar-title-style, normal);
}

.department-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    gap: 12px;
    margin-bottom: 5px;
    border: 0;
    border-radius: 4px;
    padding: 10px 11px;
    color: var(--navy-800);
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: var(--custom-sidebar-item-size, 16px);
    font-weight: var(--custom-sidebar-item-weight, 400);
    font-style: var(--custom-sidebar-item-style, normal);
    transition: color 0.2s ease, background 0.2s ease;
}

.department-link:hover,
.department-link.active {
    color: var(--navy-950);
    background: rgba(36, 212, 255, 0.14);
}

.department-link strong {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 24px;
    border-radius: 999px;
    color: var(--blue-600);
    background: var(--gray-100);
    font-size: 0.78rem;
}

.trust-box ul {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0;
    color: var(--gray-600);
    list-style: none;
}

.trust-box li {
    position: relative;
    padding-left: 22px;
}

.trust-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--custom-cyan, var(--cyan-400));
}

.catalog-main {
    display: grid;
    gap: 16px;
}

.catalog-product-section {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(7, 22, 45, 0.09);
    border-radius: var(--custom-card-radius, 4px);
    background: var(--custom-surface, var(--white));
    box-shadow: 0 2px 8px rgba(7, 22, 45, 0.06);
}

.catalog-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.catalog-section-head h2 {
    color: var(--navy-900);
    font-size: 1.15rem;
    line-height: 1.18;
}

.catalog-section-head p {
    margin: 4px 0 0;
    color: var(--gray-600);
    font-size: 0.92rem;
}

.featured-products-section {
    margin-top: 2px;
    margin-bottom: -4px;
}

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

.catalog-search-results {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(7, 22, 45, 0.09);
    border-radius: var(--custom-card-radius, 4px);
    background: var(--custom-surface, var(--white));
    box-shadow: 0 2px 8px rgba(7, 22, 45, 0.06);
}

.catalog-search-results[hidden] {
    display: none;
}

.catalog-search-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.catalog-search-results-head div {
    display: grid;
    gap: 2px;
}

.catalog-search-results-head strong {
    color: var(--navy-900);
    font-size: 1rem;
}

.catalog-search-results-head span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.catalog-search-results-head button {
    min-height: 36px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 7px 12px;
    color: var(--navy-800);
    background: var(--white);
    cursor: pointer;
    font-weight: 800;
}

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

.catalog-search-result-card {
    display: grid;
    grid-template-rows: 142px minmax(0, 1fr);
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(7, 22, 45, 0.09);
    border-radius: var(--custom-card-radius, 4px);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(7, 22, 45, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.catalog-search-result-card:hover {
    transform: translateY(-1px);
    border-color: rgba(36, 132, 255, 0.28);
    box-shadow: 0 12px 26px rgba(7, 22, 45, 0.12);
}

.catalog-search-result-image {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 14px;
    background: #f8fbff;
}

.catalog-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-search-result-body {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
}

.catalog-search-result-body strong {
    overflow: hidden;
    color: var(--navy-900);
    font-size: 0.95rem;
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-search-result-body small {
    overflow: hidden;
    color: var(--gray-600);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-search-result-body b {
    color: var(--blue-600);
    font-size: 0.94rem;
}

.catalog-search-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-600);
    background: var(--gray-50);
    text-align: center;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px;
    gap: 14px;
    padding: 12px;
}

.catalog-search,
.catalog-sort {
    display: grid;
    gap: 6px;
    color: var(--navy-800);
    font-size: 0.82rem;
    font-weight: var(--custom-nav-weight, 800);
}

.catalog-search input,
.catalog-sort select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 9px 11px;
    color: var(--navy-900);
    background: var(--gray-50);
    outline: none;
}

.catalog-search input:focus,
.catalog-sort select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(36, 132, 255, 0.12);
}

.results-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
}

.results-strip p {
    margin: 0;
    font-size: var(--custom-results-size, 15px);
    font-weight: var(--custom-results-weight, 400);
    font-style: var(--custom-results-style, normal);
}

.results-strip span {
    color: var(--gray-600);
    font-size: var(--custom-results-size, 15px);
    font-weight: var(--custom-results-weight, 400);
    font-style: var(--custom-results-style, normal);
}

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

[hidden] {
    display: none !important;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(7, 22, 45, 0.08);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(7, 22, 45, 0.12);
    border-radius: 6px;
    background: var(--white, #fff);
    color: var(--navy-700, #374151);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pagination-btn:hover {
    background: var(--gray-100, #f3f4f6);
    border-color: rgba(7, 22, 45, 0.22);
}

.pagination-active {
    background: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
    color: var(--white, #fff);
}

.pagination-active:hover {
    background: var(--primary-700, #1d4ed8);
    border-color: var(--primary-700, #1d4ed8);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--gray-500, #6b7280);
    font-size: 0.85rem;
    user-select: none;
}

.department-products-section {
    margin-bottom: 24px;
}

.market-product-card {
    display: grid;
    overflow: hidden;
    min-height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.market-product-card:hover {
    transform: translateY(-1px);
    border-color: rgba(36, 132, 255, 0.24);
    box-shadow: 0 8px 18px rgba(7, 22, 45, 0.12);
}

.market-product-card.is-hidden {
    display: none;
}

.market-image-link {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 210px;
    background: linear-gradient(180deg, #ffffff, var(--gray-100));
}

.market-image-link img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    padding: 16px;
}

.deal-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 3px;
    padding: 6px 9px;
    color: var(--navy-950);
    background: var(--cyan-300);
    font-size: 0.76rem;
    font-weight: var(--custom-button-weight, 800);
}

.market-card-body {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto auto auto;
    gap: 8px;
    padding: 14px;
}

.market-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.market-meta span {
    border-radius: 3px;
    padding: 3px 7px;
    color: var(--blue-600);
    background: rgba(23, 105, 255, 0.08);
    font-size: 0.75rem;
    font-weight: var(--custom-nav-weight, 800);
}

.market-product-card h2 {
    font-size: var(--custom-product-title-size, 16px);
    line-height: 1.25;
    font-weight: var(--custom-product-title-weight, 900);
    font-style: var(--custom-product-title-style, normal);
}

.market-product-card h2 a:hover {
    color: var(--blue-600);
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.stars {
    color: #f5a524;
    letter-spacing: 0;
}

.market-product-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: var(--custom-product-body-size, 14px);
    font-weight: var(--custom-product-body-weight, 400);
    font-style: var(--custom-product-body-style, normal);
}

.market-price {
    color: var(--navy-950);
    font-size: var(--custom-price-size, 21px);
    font-weight: var(--custom-price-weight, 900);
    font-style: var(--custom-price-style, normal);
}

.market-price span {
    display: block;
    color: var(--gray-600);
    font-size: 0.78rem;
    font-weight: var(--custom-body-weight, 700);
}

.stock-line {
    font-size: 0.86rem;
    font-weight: 800;
}

.stock-line.in-stock {
    color: #087f5b;
}

.stock-line.check-stock {
    color: #8a5a00;
}

.market-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.market-actions .btn {
    width: 100%;
}

.market-actions .btn-secondary {
    color: var(--blue-600);
    border-color: rgba(23, 105, 255, 0.5);
    background: #eef7ff;
}

.market-actions .btn-secondary:hover {
    color: var(--white);
    border-color: var(--blue-600);
    background: var(--blue-600);
}

.product-theme-electronics_retail {
    background: #f0f2f5;
}

.product-theme-electronics_retail .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: #003da6;
    backdrop-filter: none;
}

.product-theme-electronics_retail .nav-shell {
    min-height: 70px;
}

.product-theme-electronics_retail .brand-mark {
    color: #003da6;
    background: #fff200;
}

.product-theme-electronics_retail .site-nav a.active,
.product-theme-electronics_retail .site-nav a:hover {
    color: #fff200;
    background: rgba(255, 255, 255, 0.12);
}

.products-theme-electronics_retail {
    background: #f0f2f5;
}

.products-theme-electronics_retail .storefront-masthead {
    color: #ffffff;
    background: #0046be;
}

.products-theme-electronics_retail .storefront-mainbar {
    grid-template-columns: minmax(180px, 260px) minmax(420px, 1fr) minmax(250px, 330px);
    min-height: 72px;
    padding: 10px max(18px, calc((100vw - 1228px) / 2));
    background: #0046be;
}

.products-theme-electronics_retail .storefront-location,
.products-theme-electronics_retail .storefront-action,
.products-theme-electronics_retail .storefront-cart {
    border-radius: 2px;
}

.products-theme-electronics_retail .storefront-location span,
.products-theme-electronics_retail .storefront-action span {
    color: rgba(255, 255, 255, 0.78);
}

.products-theme-electronics_retail .storefront-search {
    min-height: 52px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    box-shadow: 0 5px 14px rgba(0, 22, 72, 0.18);
}

.products-theme-electronics_retail .search-department {
    background: #ffffff;
}

.products-theme-electronics_retail .storefront-search button {
    color: #061225;
    background: #fff200;
}

.products-theme-electronics_retail .storefront-cart-count {
    color: #061225;
    background: #fff200;
    box-shadow: 0 0 0 2px #0046be;
}

.products-theme-electronics_retail .storefront-subnav {
    min-height: 42px;
    padding: 0 max(18px, calc((100vw - 1228px) / 2));
    background: #003da6;
}

.products-theme-electronics_retail .storefront-subnav a,
.products-theme-electronics_retail .storefront-subnav button {
    border-radius: 0;
    font-size: 0.88rem;
    font-weight: 800;
}

.products-theme-electronics_retail .storefront-subnav a:hover,
.products-theme-electronics_retail .storefront-subnav button:hover,
.products-theme-electronics_retail .storefront-subnav .active {
    color: #061225;
    background: #fff200;
}

.products-theme-electronics_retail .all-menu-panel button:hover,
.products-theme-electronics_retail .all-menu-panel button.active {
    color: #0046be;
    background: #eef4ff;
}

.products-theme-electronics_retail .marketplace-promo {
    width: min(100% - 48px, 1228px);
    min-height: 336px;
    margin: 14px auto 0;
    overflow: hidden;
    border-radius: 14px;
    color: #ffffff;
    background: #0b4fd8;
    box-shadow: 0 14px 34px rgba(0, 25, 82, 0.14);
}

.products-theme-electronics_retail .promo-content {
    width: 100%;
    padding: 42px 44px;
}

.products-theme-electronics_retail .promo-content p {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    margin-bottom: 16px;
    padding: 5px 18px;
    color: #061225;
    background: #fff200;
    font-size: 0.92rem;
    font-weight: 900;
}

.products-theme-electronics_retail .promo-content h1 {
    max-width: 470px;
    color: #ffffff;
    font-size: 2.8rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.products-theme-electronics_retail .promo-media {
    min-height: 248px;
    border-radius: 0 12px 12px 0;
    background: #ffffff;
}

.products-theme-electronics_retail .promo-slide {
    max-height: 248px;
    padding: 18px;
    filter: none;
}

.products-theme-electronics_retail .promo-arrow {
    width: 42px;
    height: 58px;
    border-radius: 999px;
    color: #061225;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 22, 72, 0.16);
}

.retail-category-rail {
    width: min(100% - 48px, 1228px);
    margin: 0 auto 14px;
    border-radius: 0 0 14px 14px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(6, 18, 37, 0.08);
}

.retail-category-shell {
    width: 100%;
    padding: 20px;
}

.retail-category-shell h2 {
    margin-bottom: 14px;
    font-size: 1.08rem;
    font-weight: 900;
}

.retail-category-list {
    display: grid;
    grid-auto-columns: minmax(112px, 1fr);
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.retail-category-tile {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-width: 112px;
    border: 0;
    color: #061225;
    background: transparent;
    cursor: pointer;
    text-align: center;
    font-weight: 900;
}

.retail-category-tile span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    color: #0046be;
    background: #f5f6f8;
    font-size: 1.55rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(0, 70, 190, 0.08);
}

.retail-category-tile:hover span,
.retail-category-tile.active span {
    color: #061225;
    background: #fff200;
}

.retail-category-tile strong {
    font-size: 0.82rem;
    line-height: 1.25;
}

.products-theme-electronics_retail .catalog-section {
    padding-top: 14px;
    background: #f0f2f5;
}

.products-theme-electronics_retail .catalog-shell {
    width: min(100% - 48px, 1228px);
}

.products-theme-electronics_retail .sidebar-block,
.products-theme-electronics_retail .catalog-toolbar,
.products-theme-electronics_retail .results-strip,
.products-theme-electronics_retail .market-product-card,
.products-theme-electronics_retail .empty-results {
    border: 1px solid #d8dde6;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
}

.products-theme-electronics_retail .department-toggle {
    min-height: 74px;
    border-radius: 6px;
    background: #ffffff;
}

.products-theme-electronics_retail .department-chevron {
    background: #0046be;
}

.products-theme-electronics_retail .department-link:hover,
.products-theme-electronics_retail .department-link.active {
    color: #0046be;
    background: #eef4ff;
}

.products-theme-electronics_retail .department-link strong {
    color: #061225;
    background: #fff200;
}

.products-theme-electronics_retail .trust-box li::before {
    background: #0046be;
}

.products-theme-electronics_retail .catalog-toolbar {
    justify-content: end;
    min-height: 84px;
    padding: 16px;
}

.products-theme-electronics_retail .catalog-sort select {
    border-color: #b9c7dc;
    background: #f7f9fc;
}

.products-theme-electronics_retail .results-strip {
    min-height: 50px;
    padding: 12px 16px;
}

.products-theme-electronics_retail .market-product-grid {
    gap: 14px;
}

.products-theme-electronics_retail .market-product-card {
    border-radius: 6px;
}

.products-theme-electronics_retail .market-product-card:hover {
    transform: none;
    border-color: #0046be;
    box-shadow: 0 7px 18px rgba(0, 70, 190, 0.12);
}

.products-theme-electronics_retail .market-image-link {
    min-height: 220px;
    background: #f5f6f8;
}

.products-theme-electronics_retail .market-image-link img {
    height: 220px;
    padding: 18px;
}

.products-theme-electronics_retail .deal-badge {
    color: #061225;
    background: #fff200;
}

.products-theme-electronics_retail .market-meta span {
    color: #0046be;
    background: #eef4ff;
}

.products-theme-electronics_retail .market-product-card h2 a:hover {
    color: #0046be;
    text-decoration: underline;
}

.products-theme-electronics_retail .stars {
    color: #bb6200;
}

.products-theme-electronics_retail .market-price {
    color: #061225;
}

.products-theme-electronics_retail .market-actions .btn-primary {
    color: #061225;
    border-color: #fff200;
    background: #fff200;
}

.products-theme-electronics_retail .market-actions .btn-primary:hover {
    color: #061225;
    border-color: #ffdf00;
    background: #ffdf00;
}

.products-theme-electronics_retail .market-actions .btn-secondary {
    color: #0046be;
    border-color: #0046be;
    background: #ffffff;
}

.products-theme-electronics_retail .market-actions .btn-secondary:hover {
    color: #ffffff;
    background: #0046be;
}

.product-theme-tech_marketplace {
    background: #d7e9ff;
}

.product-theme-tech_marketplace .site-header {
    border-bottom: 0;
    background: #083a7a;
    backdrop-filter: none;
}

.product-theme-tech_marketplace .nav-shell {
    min-height: 68px;
}

.product-theme-tech_marketplace .brand-mark {
    color: #083a7a;
    background: linear-gradient(135deg, #ffffff, #ff8a00);
}

.product-theme-tech_marketplace .site-nav a.active,
.product-theme-tech_marketplace .site-nav a:hover {
    color: #ffffff;
    background: rgba(123, 173, 255, 0.22);
}

.products-theme-tech_marketplace {
    min-height: 100vh;
    background: #cfe3ff;
}

.products-theme-tech_marketplace .storefront-masthead {
    color: #ffffff;
    background: #083a7a;
}

.products-theme-tech_marketplace .storefront-mainbar {
    grid-template-columns: minmax(220px, 320px) minmax(420px, 1fr) minmax(250px, 360px);
    min-height: 74px;
    padding: 10px max(18px, calc((100vw - 1460px) / 2));
    background: #083a7a;
}

.products-theme-tech_marketplace .storefront-location,
.products-theme-tech_marketplace .storefront-action,
.products-theme-tech_marketplace .storefront-cart {
    border-radius: 999px;
}

.products-theme-tech_marketplace .storefront-location span,
.products-theme-tech_marketplace .storefront-action span {
    color: #d6e7ff;
}

.products-theme-tech_marketplace .storefront-search {
    grid-template-columns: 74px minmax(0, 1fr) 88px;
    min-height: 54px;
    overflow: hidden;
    border: 6px solid #a8c8ff;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 12px 22px rgba(3, 30, 73, 0.18);
}

.products-theme-tech_marketplace .search-department {
    border-right: 1px solid #d8e4f7;
    background: #ffffff;
}

.products-theme-tech_marketplace .storefront-search button {
    color: #061225;
    background: #9fc4ff;
}

.products-theme-tech_marketplace .storefront-cart-count {
    color: #ffffff;
    background: #ff8500;
    box-shadow: 0 0 0 2px #083a7a;
}

.products-theme-tech_marketplace .storefront-subnav {
    gap: 6px;
    min-height: 56px;
    padding: 0 max(18px, calc((100vw - 1460px) / 2));
    color: #1c2736;
    background: #f0f5fc;
    border-bottom: 1px solid #b5cbe8;
}

.products-theme-tech_marketplace .storefront-subnav a,
.products-theme-tech_marketplace .storefront-subnav button {
    color: #1c2736;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 900;
}

.products-theme-tech_marketplace .storefront-subnav a:hover,
.products-theme-tech_marketplace .storefront-subnav button:hover,
.products-theme-tech_marketplace .storefront-subnav .active {
    color: #ffffff;
    background: #1769ff;
}

.products-theme-tech_marketplace .all-menu-panel button:hover,
.products-theme-tech_marketplace .all-menu-panel button.active {
    color: #083a7a;
    background: #e8f1ff;
}

.tech-marketplace-hero {
    display: grid;
    grid-template-columns: minmax(250px, 350px) minmax(0, 1fr);
    gap: 20px;
    width: min(100% - 48px, 1460px);
    margin: 16px auto 0;
}

.tech-marketplace-menu {
    display: grid;
    align-content: start;
    min-height: 420px;
    overflow: hidden;
    border-radius: 8px;
    padding: 16px;
    color: #ffffff;
    background: linear-gradient(180deg, #0b3778, #153d7a);
    box-shadow: 0 18px 36px rgba(5, 32, 82, 0.18);
}

.tech-marketplace-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 7px 10px;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-weight: 700;
}

.tech-marketplace-menu button:hover,
.tech-marketplace-menu button.active {
    color: #061225;
    background: #f4f8ff;
}

.tech-marketplace-main {
    display: grid;
    gap: 20px;
}

.products-theme-tech_marketplace .tech-marketplace-promo {
    width: 100%;
    min-height: 300px;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 84% 22%, rgba(255, 133, 0, 0.36), transparent 24%),
        linear-gradient(120deg, #071c48 0%, #124ca5 52%, #061836 100%);
    box-shadow: 0 18px 36px rgba(5, 32, 82, 0.18);
}

.products-theme-tech_marketplace .tech-marketplace-promo .promo-content {
    width: 100%;
    padding: 34px 36px;
}

.products-theme-tech_marketplace .tech-marketplace-promo .promo-content p {
    display: inline-flex;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 6px 14px;
    color: #061225;
    background: #ff8500;
    font-size: 0.88rem;
    font-weight: 900;
}

.products-theme-tech_marketplace .tech-marketplace-promo .promo-content h1 {
    max-width: 520px;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1.02;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.18);
}

.tech-marketplace-cta {
    display: inline-grid;
    place-items: center;
    min-height: 40px;
    margin-top: 20px;
    border-radius: 999px;
    padding: 0 24px;
    color: #061225;
    background: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.products-theme-tech_marketplace .tech-marketplace-promo .promo-media {
    min-height: 235px;
}

.products-theme-tech_marketplace .tech-marketplace-promo .promo-slide {
    max-height: 235px;
    padding: 10px;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.28));
}

.products-theme-tech_marketplace .tech-marketplace-promo .promo-arrow {
    width: 42px;
    height: 56px;
    border-radius: 999px;
    color: #061225;
    background: rgba(255, 255, 255, 0.86);
}

.tech-deal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tech-deal-card {
    display: grid;
    gap: 12px;
    min-height: 190px;
    overflow: hidden;
    border-radius: 8px;
    padding: 20px;
    color: #ffffff;
    background: linear-gradient(180deg, #1056b4, #1e5a9d);
    box-shadow: 0 16px 34px rgba(5, 32, 82, 0.14);
}

.tech-deal-card span {
    color: #ffffff;
    font-weight: 900;
}

.tech-deal-card div {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border-radius: 8px;
    padding: 10px;
    color: #1c2736;
    background: rgba(255, 255, 255, 0.74);
}

.tech-deal-card img {
    width: 84px;
    height: 64px;
    object-fit: contain;
}

.tech-deal-card h2 {
    font-size: 0.92rem;
    line-height: 1.25;
    font-weight: 900;
}

.tech-deal-card strong {
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 900;
}

.products-theme-tech_marketplace .catalog-section {
    padding-top: 20px;
    background: #cfe3ff;
}

.products-theme-tech_marketplace .catalog-shell {
    width: min(100% - 48px, 1460px);
    grid-template-columns: 300px minmax(0, 1fr);
}

.products-theme-tech_marketplace .sidebar-block,
.products-theme-tech_marketplace .catalog-toolbar,
.products-theme-tech_marketplace .results-strip,
.products-theme-tech_marketplace .market-product-card,
.products-theme-tech_marketplace .empty-results {
    border: 1px solid #aac7ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(5, 32, 82, 0.1);
}

.products-theme-tech_marketplace .department-toggle {
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #123f82, #1d6fe3);
}

.products-theme-tech_marketplace .department-toggle small {
    color: rgba(255, 255, 255, 0.76);
}

.products-theme-tech_marketplace .department-chevron {
    background: #ff8500;
}

.products-theme-tech_marketplace .department-link:hover,
.products-theme-tech_marketplace .department-link.active {
    color: #083a7a;
    background: #e8f1ff;
}

.products-theme-tech_marketplace .department-link strong {
    color: #ffffff;
    background: #1769ff;
}

.products-theme-tech_marketplace .trust-box li::before {
    background: #ff8500;
}

.products-theme-tech_marketplace .catalog-toolbar,
.products-theme-tech_marketplace .results-strip {
    padding: 14px 16px;
}

.products-theme-tech_marketplace .market-product-grid {
    gap: 16px;
}

.products-theme-tech_marketplace .market-product-card:hover {
    transform: translateY(-2px);
    border-color: #1769ff;
    box-shadow: 0 14px 28px rgba(5, 32, 82, 0.16);
}

.products-theme-tech_marketplace .market-image-link {
    background: linear-gradient(180deg, #ffffff, #eaf3ff);
}

.products-theme-tech_marketplace .deal-badge {
    color: #ffffff;
    background: #ff8500;
}

.products-theme-tech_marketplace .market-meta span {
    color: #083a7a;
    background: #e8f1ff;
}

.products-theme-tech_marketplace .market-product-card h2 a:hover {
    color: #1769ff;
    text-decoration: underline;
}

.products-theme-tech_marketplace .market-actions .btn-primary {
    color: #ffffff;
    border-color: #ff8500;
    background: #ff8500;
}

.products-theme-tech_marketplace .market-actions .btn-primary:hover {
    border-color: #e97800;
    background: #e97800;
}

.products-theme-tech_marketplace .market-actions .btn-secondary {
    color: #083a7a;
    border-color: #9bbbe7;
    background: #f4f8ff;
}

.products-theme-tech_marketplace .market-actions .btn-secondary:hover {
    color: #ffffff;
    background: #1769ff;
}

.quote-cart-link {
    color: var(--navy-900);
    border-color: var(--gray-300);
    background: var(--white);
}

.quote-cart-link span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-left: 6px;
    border-radius: 999px;
    color: var(--navy-950);
    background: var(--custom-accent, #ffb454);
    font-size: 0.82rem;
    font-weight: 900;
}

.quote-cart-section {
    background: var(--gray-50);
}

.quote-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 24px;
    align-items: start;
}

.quote-cart-panel {
    border: 1px solid rgba(7, 22, 45, 0.09);
    border-radius: var(--custom-card-radius, var(--radius));
    background: var(--white);
    box-shadow: 0 10px 30px rgba(7, 22, 45, 0.07);
}

.quote-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--gray-100);
}

.quote-cart-head h2,
.quote-form h2 {
    font-size: 1.25rem;
}

.quote-cart-items {
    display: grid;
}

.quote-cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 92px auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-100);
}

.quote-cart-item img {
    width: 92px;
    height: 76px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--gray-100);
}

.quote-cart-item h3 {
    font-size: 1rem;
    line-height: 1.25;
}

.quote-cart-item h3 a:hover {
    color: var(--blue-600);
}

.quote-cart-item p,
.quote-cart-item span {
    margin: 4px 0 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.quote-cart-item label {
    display: grid;
    gap: 5px;
    color: var(--navy-800);
    font-size: 0.82rem;
    font-weight: 800;
}

.quote-cart-item input {
    width: 76px;
    min-height: 38px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 8px;
}

.quote-empty {
    margin: 18px;
}

.quote-form .btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.empty-results {
    padding: 42px 24px;
    text-align: center;
}

.storefront-masthead {
    color: var(--white);
    background: var(--custom-storefront-bg, var(--navy-950));
}

.storefront-mainbar {
    display: grid;
    grid-template-columns: minmax(300px, 390px) minmax(360px, 1fr) minmax(270px, 360px);
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 8px 18px;
    background: var(--custom-storefront-bg, #071120);
}

.storefront-identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.storefront-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--white);
}

.storefront-logo-image {
    display: block;
    width: auto;
    max-width: 190px;
    height: 42px;
    padding: 0;
    object-fit: contain;
    background: var(--custom-logo-bg, transparent);
    mix-blend-mode: var(--custom-logo-blend, normal);
}

.storefront-logo strong {
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 900;
}

.storefront-logo span {
    color: var(--custom-cyan, var(--cyan-300));
    font-size: 1.05rem;
    font-weight: 900;
}

.storefront-location,
.storefront-action,
.storefront-cart {
    display: grid;
    gap: 1px;
    min-width: 0;
    border-radius: 3px;
    padding: 7px 8px;
    color: var(--white);
}

.storefront-location:hover,
.storefront-action:hover,
.storefront-cart:hover {
    outline: 1px solid rgba(255, 255, 255, 0.36);
}

.storefront-location span,
.storefront-action span {
    color: #b7c7d9;
    font-size: 0.72rem;
    line-height: 1;
}

.storefront-location strong,
.storefront-action strong,
.storefront-cart strong {
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.storefront-location strong {
    white-space: normal;
}

.storefront-search {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 76px;
    overflow: hidden;
    min-height: 48px;
    border-radius: 5px;
    background: var(--white);
}

.storefront-search-wrap {
    position: relative;
    min-width: 0;
}

.storefront-search-wrap .storefront-search {
    width: 100%;
}

.search-department,
.storefront-search button {
    display: grid;
    place-items: center;
    color: var(--navy-900);
}

.search-department {
    border-right: 1px solid var(--gray-300);
    background: #eef2f6;
    font-weight: 900;
}

.storefront-search input {
    width: 100%;
    border: 0;
    padding: 0 14px;
    color: var(--navy-900);
    outline: 0;
    font-size: 1rem;
}

.storefront-search button {
    border: 0;
    background: var(--custom-accent, #ffb454);
    cursor: pointer;
    font-weight: 900;
    font-size: 0.98rem;
}

.storefront-cart {
    position: relative;
    grid-template-columns: auto;
    align-items: end;
    gap: 6px;
}

.storefront-actions {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(78px, 0.85fr) 58px;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.storefront-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 6px;
}

.storefront-cart-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 38px;
    color: var(--white);
}

.storefront-cart-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.storefront-cart-count {
    position: absolute;
    right: -3px;
    top: -3px;
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--navy-950);
    background: var(--custom-accent, #ffb454);
    box-shadow: 0 0 0 2px var(--custom-storefront-bg, #071120);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
}

.storefront-subnav {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: visible;
    min-height: 44px;
    padding: 0 18px;
    background: var(--custom-subnav-bg, #1a2636);
}

.storefront-subnav a,
.storefront-subnav button {
    flex: 0 0 auto;
    max-width: 210px;
    border: 0;
    border-radius: 5px;
    padding: 8px 12px;
    color: var(--white);
    background: transparent;
    cursor: pointer;
    font-size: var(--custom-category-size, 16px);
    font-weight: var(--custom-category-weight, 500);
    font-style: var(--custom-category-style, normal);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storefront-subnav a:hover,
.storefront-subnav button:hover,
.storefront-subnav .active {
    background: rgba(255, 255, 255, 0.12);
}

.storefront-menu::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 11px;
    margin-right: 7px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    box-shadow: inset 0 4px 0 transparent, 0 -4px 0 transparent;
}

.all-menu-wrap {
    position: relative;
    flex: 0 0 auto;
}

.all-menu-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 80;
    display: grid;
    width: min(320px, calc(100vw - 24px));
    border: 1px solid rgba(7, 22, 45, 0.14);
    border-radius: 5px;
    padding: 8px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(6, 18, 37, 0.2);
}

.all-menu-panel[hidden] {
    display: none;
}

.all-menu-panel button {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    min-height: 38px;
    color: var(--navy-900);
    text-align: left;
}

.all-menu-panel button:hover,
.all-menu-panel button.active {
    color: var(--navy-950);
    background: var(--gray-100);
}

.marketplace-promo {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 68px;
    align-items: center;
    min-height: 150px;
    color: var(--white);
    background: linear-gradient(100deg, var(--custom-promo-from, #0477ff) 0%, #0c8dff 45%, var(--custom-promo-to, #0bbfff) 100%);
}

.marketplace-promo.no-arrows {
    grid-template-columns: 1fr;
}

.promo-content {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(240px, 0.65fr);
    align-items: center;
    gap: 24px;
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: 14px 12px;
}

.promo-content p {
    margin: 0 0 6px;
    color: var(--white);
    font-size: var(--custom-banner-eyebrow-size, 15px);
    font-weight: var(--custom-banner-eyebrow-weight, 800);
    font-style: var(--custom-banner-eyebrow-style, normal);
}

.promo-content h1 {
    max-width: 520px;
    color: var(--white);
    font-size: clamp(20px, 3.4vw, var(--custom-banner-headline-size, 42px));
    line-height: 1.04;
    font-weight: var(--custom-banner-headline-weight, 900);
    font-style: var(--custom-banner-headline-style, normal);
    letter-spacing: -0.01em;
}

.promo-media {
    position: relative;
    width: 100%;
    min-height: 130px;
}

.promo-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 115px;
    object-fit: contain;
    opacity: 0;
    filter: drop-shadow(0 24px 34px rgba(6, 18, 37, 0.3));
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: translateX(-10px) scale(0.98);
}

.promo-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.promo-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 58px;
    margin: 0 auto;
    border: 0;
    color: var(--white);
    background: rgba(6, 18, 37, 0.08);
    font-size: 1.8rem;
    cursor: pointer;
}

.compact-toolbar {
    grid-template-columns: minmax(180px, 220px);
    justify-content: end;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-btn {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--navy-800);
    background: var(--white);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--white);
    border-color: var(--blue-600);
    background: var(--blue-600);
}

.product-card.is-hidden {
    display: none;
}

.reason-item {
    min-height: 128px;
    background: var(--white);
    border: 1px solid rgba(7, 22, 45, 0.08);
}

.cta-band {
    padding: 54px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-950), var(--blue-600));
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-content h2 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.process-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.process-grid article {
    padding: 22px;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--navy-800);
}

.process-grid span {
    color: var(--cyan-300);
    font-weight: 800;
}

.check-panel {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.stat-panel {
    display: grid;
    gap: 1px;
    overflow: hidden;
    background: rgba(7, 22, 45, 0.1);
}

.stat-panel div {
    padding: 26px;
    background: var(--white);
}

.stat-panel strong,
.stat-panel span {
    display: block;
}

.stat-panel strong {
    color: var(--blue-600);
    font-size: 1.4rem;
}

.stat-panel span {
    color: var(--gray-600);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 32px;
    align-items: start;
}

.form-panel,
.contact-panel {
    padding: 28px;
}

.form-panel {
    display: grid;
    gap: 16px;
}

.form-panel label {
    display: grid;
    gap: 7px;
    color: var(--navy-800);
    font-weight: 800;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 12px 13px;
    color: var(--navy-900);
    background: var(--gray-50);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(36, 132, 255, 0.12);
}

.form-message {
    display: none;
    padding: 12px 14px;
    border-radius: var(--radius);
    color: #064a28;
    background: #def7e9;
}

.form-message.is-visible {
    display: block;
}

.contact-list {
    display: grid;
    gap: 10px;
}

.contact-list.large {
    margin: 18px 0 24px;
}

.contact-list.large li {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}

.contact-list a {
    color: var(--cyan-300);
}

.contact-panel .contact-list a {
    color: var(--blue-600);
}

.map-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    margin-top: 24px;
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-600);
    background: var(--gray-50);
}

.map-placeholder iframe {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: var(--radius);
}

.content-page {
    max-width: 860px;
}

.content-page h2 {
    margin-top: 34px;
    font-size: 1.55rem;
}

.content-page h2:first-child {
    margin-top: 0;
}

.content-page p {
    color: var(--gray-600);
}

.site-footer {
    color: #d9e6f4;
    background: var(--navy-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding: 56px 0;
}

.footer-brand {
    margin-bottom: 18px;
}

.site-footer h2 {
    margin-bottom: 14px;
    font-size: 1rem;
}

.site-footer p,
.footer-links a,
.site-footer .contact-list {
    color: #aebfd2;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a:hover {
    color: var(--white);
}

.social-row {
    display: flex;
    gap: 10px;
}

.social-row a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        background: rgba(6, 18, 37, 0.98);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .card-grid.two,
    .card-grid.three,
    .card-grid.four,
    .product-grid,
    .reason-grid,
    .process-grid,
    .split-layout,
    .split-layout.reverse,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .split-layout > img {
        order: -1;
    }

    .process-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .cta-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-shell {
        grid-template-columns: 1fr;
    }

    .catalog-search-results-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery-main {
        min-height: 380px;
    }

    .catalog-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

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

    .storefront-mainbar {
        grid-template-columns: 1fr;
    }

    .storefront-search-wrap {
        order: 2;
    }

    .storefront-search {
        grid-column: auto;
    }

    .storefront-actions {
        order: 3;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 58px;
    }

    .marketplace-promo {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        min-height: 140px;
    }

    .promo-content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: left;
    }

    .promo-media {
        display: none;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .brand small {
        display: none;
    }

    .home-hero {
        min-height: 660px;
    }

    .hero-content {
        padding: 56px 0;
    }

    .page-hero,
    .page-hero.compact {
        padding: 34px 0 28px;
    }

    h1 {
        font-size: 2.38rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.86rem;
    }

    .section {
        padding: 62px 0;
    }

    .card-grid.two,
    .card-grid.three,
    .card-grid.four,
    .product-grid,
    .reason-grid,
    .process-grid,
    .split-layout,
    .split-layout.reverse,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .button-row,
    .button-row.stack-mobile {
        width: 100%;
    }

    .button-row .btn,
    .form-panel .btn {
        width: 100%;
    }

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

    .filter-btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .catalog-section {
        padding: 22px 0 62px;
    }

    .catalog-sidebar,
    .catalog-toolbar,
    .catalog-search-results-grid,
    .market-product-grid,
    .product-detail-layout,
    .quote-cart-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery-main {
        min-height: 300px;
    }

    .product-gallery-main img {
        padding: 16px;
    }

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

    .results-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-image-link,
    .market-image-link img {
        min-height: 190px;
        height: 190px;
    }

    .storefront-mainbar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 12px;
    }

    .storefront-identity {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .storefront-logo strong {
        font-size: 1.55rem;
    }

    .storefront-location {
        padding: 0;
    }

    .storefront-location span {
        display: none;
    }

    .storefront-location strong {
        color: #c8d7e8;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .storefront-actions {
        grid-template-columns: 1fr 1fr 54px;
    }

    .storefront-cart {
        min-width: 44px;
    }

    .storefront-search {
        grid-template-columns: 54px minmax(0, 1fr) 68px;
        min-height: 46px;
    }

    .storefront-subnav {
        min-height: 44px;
        padding: 0 10px;
    }

    .storefront-subnav a,
    .storefront-subnav button {
        padding: 9px 10px;
        font-size: min(var(--custom-category-size, 16px), 14px);
    }

    .marketplace-promo {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .promo-arrow {
        display: none;
    }

    .promo-content {
        padding: 22px 20px;
    }

    .promo-content h1 {
        font-size: min(var(--custom-banner-headline-size, 42px), 42px);
    }

    .compact-toolbar {
        justify-content: stretch;
    }

    .catalog-search-results-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-search-results-head button {
        width: 100%;
    }

    .catalog-search-result-card {
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .catalog-search-result-image {
        min-height: 112px;
    }

    .quote-cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .quote-cart-item img {
        width: 76px;
        height: 66px;
    }

    .quote-cart-item label,
    .quote-cart-item button {
        grid-column: 1 / -1;
    }

    .quote-cart-item input,
    .quote-cart-item button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .brand strong {
        font-size: 0.92rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

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

/* Product image sizing guardrails: keep uploaded images from changing card layout. */
.products-theme .market-image-link {
    height: var(--product-card-image-height, 220px);
    min-height: 0;
    overflow: hidden;
}

.products-theme .market-image-link img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: var(--product-card-image-padding, 16px);
}

.products-theme .promo-media {
    min-height: var(--promo-image-height, 210px);
    overflow: hidden;
}

.products-theme .promo-slide {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.tech-deal-card div {
    min-height: 84px;
}

.tech-deal-card img {
    width: 84px;
    height: 64px;
    max-width: 84px;
    max-height: 64px;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 720px) {
    .products-theme .market-image-link {
        height: var(--product-card-image-height-mobile, 190px);
    }

    .products-theme .promo-media {
        min-height: var(--promo-image-height-mobile, 170px);
    }
}

@media (max-width: 960px) {
    .products-theme-electronics_retail .storefront-mainbar {
        grid-template-columns: 1fr;
        padding: 12px 16px;
    }

    .products-theme-electronics_retail .storefront-search {
        min-height: 50px;
    }

    .products-theme-electronics_retail .storefront-subnav {
        overflow-x: auto;
        padding: 0 12px;
    }

    .products-theme-electronics_retail .marketplace-promo {
        width: min(100% - 24px, 1228px);
        min-height: auto;
        margin-top: 12px;
    }

    .products-theme-electronics_retail .promo-content {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .products-theme-electronics_retail .promo-media {
        min-height: 220px;
        border-radius: 12px;
    }

    .retail-category-rail,
    .products-theme-electronics_retail .catalog-shell {
        width: min(100% - 24px, 1228px);
    }

    .products-theme-tech_marketplace .storefront-mainbar {
        grid-template-columns: 1fr;
        padding: 12px 16px;
    }

    .products-theme-tech_marketplace .storefront-subnav {
        overflow-x: auto;
        padding: 0 12px;
    }

    .tech-marketplace-hero {
        grid-template-columns: 1fr;
        width: min(100% - 24px, 1460px);
    }

    .tech-marketplace-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: auto;
    }

    .products-theme-tech_marketplace .tech-marketplace-promo .promo-content {
        grid-template-columns: 1fr;
    }

    .products-theme-tech_marketplace .tech-marketplace-promo .promo-media {
        min-height: 210px;
    }

    .products-theme-tech_marketplace .catalog-shell {
        width: min(100% - 24px, 1460px);
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .product-theme-electronics_retail .nav-shell {
        min-height: 64px;
    }

    .products-theme-electronics_retail .storefront-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 54px;
    }

    .products-theme-electronics_retail .storefront-search {
        grid-template-columns: 52px minmax(0, 1fr) 74px;
    }

    .products-theme-electronics_retail .storefront-subnav a,
    .products-theme-electronics_retail .storefront-subnav button {
        font-size: 0.84rem;
    }

    .products-theme-electronics_retail .promo-content {
        padding: 24px 20px;
    }

    .products-theme-electronics_retail .promo-content h1 {
        font-size: 2rem;
    }

    .products-theme-electronics_retail .promo-media {
        display: block;
        min-height: 170px;
    }

    .products-theme-electronics_retail .promo-slide {
        max-height: 170px;
    }

    .retail-category-shell {
        padding: 16px;
    }

    .retail-category-list {
        grid-auto-columns: 98px;
        gap: 12px;
    }

    .retail-category-tile {
        min-width: 98px;
    }

    .retail-category-tile span {
        width: 78px;
        height: 78px;
        font-size: 1.28rem;
    }

    .products-theme-electronics_retail .catalog-section {
        padding-top: 12px;
    }

    .products-theme-electronics_retail .catalog-toolbar {
        min-height: auto;
    }

    .product-theme-tech_marketplace .nav-shell {
        min-height: 64px;
    }

    .products-theme-tech_marketplace .storefront-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 54px;
    }

    .products-theme-tech_marketplace .storefront-search {
        grid-template-columns: 54px minmax(0, 1fr) 72px;
        min-height: 50px;
        border-width: 4px;
    }

    .products-theme-tech_marketplace .storefront-subnav {
        min-height: 48px;
    }

    .products-theme-tech_marketplace .storefront-subnav a,
    .products-theme-tech_marketplace .storefront-subnav button {
        font-size: 0.82rem;
    }

    .tech-marketplace-menu {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .tech-marketplace-menu button {
        min-height: 34px;
        font-size: 0.92rem;
    }

    .products-theme-tech_marketplace .tech-marketplace-promo {
        min-height: auto;
    }

    .products-theme-tech_marketplace .tech-marketplace-promo .promo-content {
        padding: 24px 18px;
    }

    .products-theme-tech_marketplace .tech-marketplace-promo .promo-content h1 {
        font-size: 2.1rem;
    }

    .products-theme-tech_marketplace .tech-marketplace-promo .promo-media {
        display: block;
        min-height: 170px;
    }

    .products-theme-tech_marketplace .tech-marketplace-promo .promo-slide {
        max-height: 170px;
    }

    .tech-deal-grid {
        grid-template-columns: 1fr;
    }

    .tech-deal-card {
        min-height: auto;
    }
}

/* Product photos should fit the sales frame without cropping tall or wide items. */
.market-image-link {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fbff;
}

.market-image-link img,
.products-theme .market-image-link img,
.products-theme-electronics_retail .market-image-link img,
.products-theme-tech_marketplace .market-image-link img {
    width: auto !important;
    height: auto !important;
    max-width: calc(100% - 56px);
    max-height: calc(100% - 56px);
    object-fit: contain !important;
    object-position: center;
    padding: 0;
}

/* Keep product photos and product information in separate card sections. */
.market-product-card,
.products-theme .market-product-card,
.products-theme-electronics_retail .market-product-card,
.products-theme-tech_marketplace .market-product-card {
    display: grid;
    grid-template-rows: var(--product-card-image-height, 220px) minmax(0, 1fr);
    align-content: start;
    overflow: hidden;
}

.market-image-link,
.products-theme .market-image-link,
.products-theme-electronics_retail .market-image-link,
.products-theme-tech_marketplace .market-image-link {
    grid-row: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--product-card-image-height, 220px) !important;
    min-height: 0 !important;
    padding: 28px !important;
    overflow: hidden;
    box-sizing: border-box;
}

.market-card-body,
.products-theme .market-card-body,
.products-theme-electronics_retail .market-card-body,
.products-theme-tech_marketplace .market-card-body {
    grid-row: 2;
    position: relative;
    z-index: 1;
    background: var(--white, #fff);
}

.market-image-link img,
.products-theme .market-image-link img,
.products-theme-electronics_retail .market-image-link img,
.products-theme-tech_marketplace .market-image-link img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
}

@media (max-width: 700px) {
    .market-product-card,
    .products-theme .market-product-card,
    .products-theme-electronics_retail .market-product-card,
    .products-theme-tech_marketplace .market-product-card {
        grid-template-rows: var(--product-card-image-height-mobile, 190px) minmax(0, 1fr);
    }

    .market-image-link,
    .products-theme .market-image-link,
    .products-theme-electronics_retail .market-image-link,
    .products-theme-tech_marketplace .market-image-link {
        height: var(--product-card-image-height-mobile, 190px) !important;
    }
}

/* CMS pages */
.cms-page {
    padding: 24px 0 48px;
}

.cms-page .container {
    max-width: var(--container, 1180px);
    margin: 0 auto;
    padding: 0 20px;
}

.cms-page h1,
.cms-page h2,
.cms-page h3,
.cms-page h4,
.cms-page h5,
.cms-page h6 {
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    line-height: 1.25;
}

.cms-page p,
.cms-page ul,
.cms-page ol {
    margin-top: 0;
    margin-bottom: 1em;
}

.cms-page ul,
.cms-page ol {
    padding-left: 1.4em;
}

.cms-page img {
    border-radius: var(--radius, 8px);
    height: auto;
}

.cms-page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.cms-page th,
.cms-page td {
    padding: 10px 12px;
    border: 1px solid var(--gray-300, #c9d6e2);
    text-align: left;
}

.cms-page th {
    background: var(--gray-100, #edf4fb);
    font-weight: 600;
}

.cms-page blockquote {
    margin: 1em 0;
    padding: 12px 18px;
    border-left: 4px solid var(--blue-500, #2484ff);
    background: var(--gray-50, #f7fbff);
}

.cms-page pre {
    background: var(--navy-950, #061225);
    color: var(--gray-100, #edf4fb);
    padding: 14px 16px;
    border-radius: var(--radius, 8px);
    overflow-x: auto;
}

.cms-page code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.95em;
}
