/* Hilitron Portal — Mouser-inspired industrial theme */

:root {
    --hilitron-navy: #0c2340;
    --hilitron-navy-dark: #081829;
    --hilitron-blue: #1a4d8f;
    --hilitron-accent: #ed8b22;
    --hilitron-accent-hover: #d67b1a;
    --hilitron-light: #f4f7fb;
    --hilitron-border: #dde3ec;
    --hilitron-text: #2b3442;
    --hilitron-muted: #6b7785;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--hilitron-text);
    background: #fff;
    scroll-padding-top: 4.75rem;
}

/* Top utility bar */
.top-bar {
    background: var(--hilitron-navy-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.top-bar a:hover {
    color: #fff;
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
}

.portal-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hilitron-accent);
}

/* Main header */
.site-header {
    background: var(--hilitron-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.brand-logo-img {
    display: block;
    height: 56px;
    width: auto;
    max-width: min(280px, 100%);
    object-fit: contain;
}

.brand-logo-img-footer {
    height: 48px;
}

.brand-logo-img-auth {
    height: auto;
    max-height: 72px;
    max-width: min(320px, 100%);
}

.brand-logo-text span {
    color: var(--hilitron-accent);
}

.search-box {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.search-box .form-control {
    border: 0;
    box-shadow: none;
    font-size: 0.95rem;
}

.search-box .form-control:focus {
    box-shadow: none;
}

.search-box .btn-search {
    background: var(--hilitron-accent);
    color: #fff;
    border: 0;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
}

.search-box .btn-search:hover {
    background: var(--hilitron-accent-hover);
    color: #fff;
}

/* Site search autocomplete */
.portal-search {
    position: relative;
    z-index: 20;
}

.portal-search-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 1090;
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.65rem;
    box-shadow: 0 16px 40px rgba(12, 35, 64, 0.14);
    overflow: hidden;
}

.portal-search-results {
    max-height: 22rem;
    overflow-y: auto;
}

.portal-search-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--hilitron-text);
    text-decoration: none;
    border-bottom: 1px solid var(--hilitron-border);
    transition: background-color 0.12s ease;
}

.portal-search-item:last-child {
    border-bottom: 0;
}

.portal-search-item:hover,
.portal-search-item.is-active {
    background: rgba(26, 77, 143, 0.06);
    color: var(--hilitron-navy);
}

.portal-search-item-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--hilitron-light);
    color: var(--hilitron-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-search-item-body {
    min-width: 0;
    flex: 1 1 auto;
}

.portal-search-item-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
}

.portal-search-item-title code {
    color: var(--hilitron-blue);
    font-size: 0.85em;
}

.portal-search-item-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--hilitron-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-search-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.portal-search-footer,
.portal-search-empty {
    padding: 0.75rem 1rem;
    background: var(--hilitron-light);
    border-top: 1px solid var(--hilitron-border);
    font-size: 0.875rem;
}

.portal-search-footer a {
    color: var(--hilitron-blue);
    font-weight: 600;
    text-decoration: none;
}

.portal-search-footer a:hover {
    color: var(--hilitron-navy);
}

.hero-search-box .search-box {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-search-box .portal-search-dropdown {
    text-align: left;
}

.header-actions .btn {
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-accent {
    background: var(--hilitron-accent);
    border-color: var(--hilitron-accent);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--hilitron-accent-hover);
    border-color: var(--hilitron-accent-hover);
    color: #fff;
}

.btn-outline-light-subtle {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-outline-light-subtle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Hero */
.hero-section {
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section.subpage-hero-bg::before,
.portal-customer .hero-section.parts-page-hero::before {
    display: none;
}

.hero-section:not(.subpage-hero-bg):not(.parts-page-hero) {
    background: linear-gradient(135deg, var(--hilitron-navy) 0%, var(--hilitron-blue) 100%);
}

.hero-section:not(.subpage-hero-bg):not(.parts-page-hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(237, 139, 34, 0.25), transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08), transparent 35%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-image-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.hero-image-wrap img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* Stats strip */
.stats-strip,
.parts-stats-strip,
.market-stats-strip,
.product-line-stats-strip {
    position: relative;
    z-index: 1;
}

.stats-strip {
    background: var(--hilitron-light);
    border-top: 1px solid var(--hilitron-border);
    border-bottom: 1px solid var(--hilitron-border);
}

.stat-item h3 {
    color: var(--hilitron-navy);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.stat-item p {
    color: var(--hilitron-muted);
    margin: 0;
    font-size: 0.875rem;
}

/* Category cards */
.section-title {
    font-weight: 700;
    color: var(--hilitron-navy);
}

.section-subtitle {
    color: var(--hilitron-muted);
    max-width: 640px;
}

.category-card {
    border: 1px solid var(--hilitron-border);
    border-radius: 0.65rem;
    padding: 1.25rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(12, 35, 64, 0.1);
    border-color: var(--hilitron-blue);
    color: inherit;
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    background: var(--hilitron-light);
    color: var(--hilitron-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.category-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hilitron-navy);
    margin-bottom: 0.35rem;
}

.category-card p {
    font-size: 0.8125rem;
    color: var(--hilitron-muted);
    margin: 0;
}

/* Feature blocks */
.feature-block {
    background: var(--hilitron-light);
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--hilitron-border);
}

.feature-block .icon {
    font-size: 1.75rem;
    color: var(--hilitron-accent);
    margin-bottom: 1rem;
}

/* CTA band */
.cta-band {
    background: var(--hilitron-navy);
    color: #fff;
    border-radius: 0.75rem;
}

/* Page header (inner pages) */
.page-header {
    background: linear-gradient(135deg, var(--hilitron-navy) 0%, var(--hilitron-blue) 100%);
    color: #fff;
    padding: 3rem 0;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .page-hero-search {
    max-width: calc(32rem - 80px);
    margin-top: calc(1.25rem + 110px);
}

.breadcrumb-portal {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.breadcrumb-portal .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.breadcrumb-portal .breadcrumb-item.active {
    color: #fff;
}

/* Contact / forms */
.form-card {
    border: 1px solid var(--hilitron-border);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.06);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--hilitron-navy);
}

.required-asterisk {
    color: #dc3545;
    font-weight: 700;
}

/* Market pills */
.market-pill {
    display: inline-block;
    background: var(--hilitron-light);
    border: 1px solid var(--hilitron-border);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hilitron-navy);
    margin: 0.25rem;
}

/* Footer */
.site-footer {
    background: var(--hilitron-navy-dark);
    color: rgba(255, 255, 255, 0.75);
}

.site-footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.72);
    max-width: 22rem;
    line-height: 1.6;
}

.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer-contact-list i {
    color: var(--hilitron-accent);
}

.footer-view-all {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--hilitron-accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-view-all:hover {
    color: var(--hilitron-accent-hover);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

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

/* Brands strip */
.brands-strip {
    background: #fff;
    border-bottom: 1px solid var(--hilitron-border);
}

.letter-spacing {
    letter-spacing: 0.08em;
}

.brand-logo-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--hilitron-light);
    border: 1px solid var(--hilitron-border);
    border-radius: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hilitron-navy);
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

.brand-logo-pill:hover {
    border-color: var(--hilitron-blue);
    color: var(--hilitron-blue);
}

/* Product cards */
.product-card {
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.65rem;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 12px 28px rgba(12, 35, 64, 0.1);
    transform: translateY(-2px);
}

.product-card-img {
    background: linear-gradient(135deg, var(--hilitron-light) 0%, #e8eef6 100%);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--hilitron-blue);
    border-bottom: 1px solid var(--hilitron-border);
    overflow: hidden;
    padding: 0;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-img img.catalog-image-placeholder,
.product-detail-image img.catalog-image-placeholder,
.part-card-media img.catalog-image-placeholder,
.parts-landing-card-media img.catalog-image-placeholder {
    object-fit: contain;
    object-position: center;
    background: #f0f2f5;
    box-sizing: border-box;
    padding: 0.45rem 0.6rem;
}

.product-detail-image img.catalog-image-placeholder {
    background: transparent;
    padding: 0.75rem 1rem;
}

.product-detail-image:has(img.catalog-image-placeholder) {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
}

.part-card-media img.catalog-image-placeholder {
    padding: 0.4rem 0.55rem 1.75rem;
}

.part-card-media:hover img.catalog-image-placeholder {
    transform: none;
}

.category-card-media {
    padding: 0;
    overflow: hidden;
}

.category-card-img {
    height: 140px;
    overflow: hidden;
    background: var(--hilitron-light);
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.category-card-media:hover .category-card-img img {
    transform: scale(1.04);
}

.category-card-media .category-icon,
.category-card-media h5,
.category-card-media p {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

.category-card-media .category-icon {
    margin-top: 1rem;
}

.category-card-media h5 {
    margin-bottom: 0.35rem;
}

.category-card-media p {
    margin-bottom: 1.25rem;
}

.product-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hilitron-accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-mpn {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hilitron-navy);
    margin: 0.25rem 0;
    font-family: ui-monospace, monospace;
}

.product-name {
    font-size: 0.8125rem;
    color: var(--hilitron-muted);
    margin: 0;
    line-height: 1.4;
}

.product-price {
    font-weight: 700;
    color: var(--hilitron-navy);
    font-size: 0.95rem;
}

.badge.stock-in {
    background: #d1fae5;
    color: #065f46;
}

.badge.stock-low {
    background: #fef3c7;
    color: #92400e;
}

.badge.stock-quote {
    background: var(--hilitron-light);
    color: var(--hilitron-blue);
}

/* How it works steps */
.step-card {
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--hilitron-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 1.5rem auto 1rem;
    background: var(--hilitron-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--hilitron-blue);
    border: 2px solid var(--hilitron-border);
}

.step-card h5 {
    font-weight: 600;
    color: var(--hilitron-navy);
    margin-bottom: 0.5rem;
}

/* Portal access section */
.portal-access-section {
    background: linear-gradient(135deg, var(--hilitron-navy-dark) 0%, var(--hilitron-navy) 50%, var(--hilitron-blue) 100%);
}

.portal-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    color: #fff;
    transition: background 0.2s, border-color 0.2s;
}

.portal-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.portal-card-icon {
    width: 52px;
    height: 52px;
    background: var(--hilitron-accent);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.portal-card h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.portal-card p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1.25rem;
}

.portal-card-link {
    color: var(--hilitron-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.portal-card-link:hover {
    color: #fff;
}

/* Service chips */
.service-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--hilitron-light);
    border: 1px solid var(--hilitron-border);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--hilitron-navy);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.service-chip i {
    color: var(--hilitron-accent);
    flex-shrink: 0;
}

.service-chip:hover {
    border-color: var(--hilitron-blue);
    background: #fff;
    color: var(--hilitron-blue);
}

/* Certification cards */
.cert-card {
    padding: 1.5rem 1rem;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.65rem;
    height: 100%;
    transition: box-shadow 0.2s;
}

.cert-card:hover {
    box-shadow: 0 8px 20px rgba(12, 35, 64, 0.08);
}

.cert-icon {
    font-size: 2rem;
    color: var(--hilitron-blue);
    margin-bottom: 0.75rem;
}

/* Testimonial */
.testimonial-card {
    max-width: 720px;
    padding: 2.5rem;
    background: var(--hilitron-light);
    border-radius: 0.75rem;
    border: 1px solid var(--hilitron-border);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--hilitron-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.testimonial-card blockquote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--hilitron-text);
    border: 0;
    padding: 0;
    margin: 0;
}

/* Newsletter */
.newsletter-band {
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.06);
}

.newsletter-form .form-control {
    border-color: var(--hilitron-border);
}

.newsletter-form .form-control:focus {
    border-color: var(--hilitron-blue);
    box-shadow: 0 0 0 0.2rem rgba(26, 77, 143, 0.15);
}

@media (max-width: 991.98px) {
    .hero-image-wrap img {
        height: 220px;
    }

    .brand-logo-img {
        height: 42px;
    }

    .brand-logo-img-footer {
        height: 36px;
    }
}

/* Markets page */
.market-card {
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.market-card:hover {
    box-shadow: 0 12px 28px rgba(12, 35, 64, 0.1);
    transform: translateY(-2px);
    border-color: var(--hilitron-blue);
}

.market-card-img {
    height: 200px;
    overflow: hidden;
    background: var(--hilitron-light);
}

.market-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.market-card:hover .market-card-img img {
    transform: scale(1.04);
}

.market-card-body {
    padding: 1.5rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.market-card-body .icon {
    font-size: 1.5rem;
    color: var(--hilitron-accent);
    margin-bottom: 0.75rem;
}

.market-card-body .btn {
    align-self: flex-start;
    margin-top: auto;
}

.market-detail-card {
    border-radius: 1rem;
}

.market-detail-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 77, 143, 0.1);
    color: var(--hilitron-primary);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.market-detail-content p:last-child {
    margin-bottom: 0;
}

.market-detail-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--hilitron-navy);
    text-decoration: none;
    border: 1px solid rgba(12, 35, 64, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.market-detail-link:hover {
    background: var(--hilitron-light);
    border-color: rgba(26, 77, 143, 0.2);
    color: var(--hilitron-primary);
}

.market-detail-link i {
    color: var(--hilitron-accent);
}

/* Market detail page */
.market-page-hero {
    min-height: 710px;
    background:
        linear-gradient(100deg, rgba(10, 16, 34, .88) 0%, rgba(15, 24, 42, .68) 45%, rgba(30, 44, 58, .5) 100%),
        var(--market-hero-image, url('/images/child-pages-menu-bg.jpg')) center/cover no-repeat !important;
}

.market-page-hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.market-page-hero .hero-badge {
    margin-bottom: 0.75rem;
}

.market-page-hero-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.market-page-hero h1 {
    width: 100%;
    max-width: min(56rem, 100%);
    margin: 0 auto 0.75rem;
    font-size: clamp(1.75rem, 2.8vw, 3rem);
    line-height: 1.15;
    text-wrap: balance;
}

.market-page-hero .page-hero-lead {
    width: 100%;
    max-width: min(48rem, 100%);
    margin: 0 auto;
}

.market-page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.market-stats-strip {
    background: #fff;
    border-bottom: 1px solid var(--hilitron-border);
}

.market-stats-strip .stat-item h3 {
    color: var(--hilitron-navy);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.market-stats-strip .stat-item p {
    color: var(--hilitron-muted);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.market-main-section {
    background: var(--hilitron-light);
}

.market-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hilitron-accent);
    margin-bottom: 0.5rem;
}

.market-overview-card {
    border-radius: 1rem;
    overflow: hidden;
}

.market-overview-media {
    height: 100%;
    min-height: 260px;
    background: var(--hilitron-light);
}

.market-overview-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.market-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.85rem;
    box-shadow: 0 8px 20px rgba(12, 35, 64, 0.04);
}

.market-highlight-icon {
    color: var(--hilitron-accent);
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.market-pillar-card {
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.85rem;
    padding: 1.35rem 1.25rem;
    height: 100%;
    box-shadow: 0 8px 20px rgba(12, 35, 64, 0.04);
}

.market-pillar-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 77, 143, 0.1);
    color: var(--hilitron-primary);
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.market-category-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.85rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.market-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(12, 35, 64, 0.1);
    border-color: rgba(26, 77, 143, 0.25);
    color: inherit;
}

.market-category-card-media {
    width: 7.5rem;
    flex-shrink: 0;
    background: var(--hilitron-light);
}

.market-category-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.market-category-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    min-width: 0;
}

.market-category-card-body strong {
    color: var(--hilitron-navy);
    font-size: 0.95rem;
    line-height: 1.35;
}

.market-category-card-body span {
    color: var(--hilitron-blue);
    font-size: 0.82rem;
    font-weight: 600;
}

.market-cert-strip {
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.85rem;
    padding: 1.25rem;
}

.market-cert-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
    height: 100%;
}

.market-cert-item i {
    color: var(--hilitron-accent);
    font-size: 1.35rem;
    margin-bottom: 0.15rem;
}

.market-cert-item strong {
    color: var(--hilitron-navy);
    font-size: 0.88rem;
}

.market-cert-item span {
    color: var(--hilitron-muted);
    font-size: 0.78rem;
}

.market-sidebar {
    top: 6rem;
}

.market-sidebar-card {
    border-radius: 1rem;
}

.market-sidebar-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.market-sidebar-points li:last-child {
    margin-bottom: 0;
}

.market-sidebar-points i {
    color: var(--hilitron-accent);
    margin-top: 0.1rem;
}

@media (max-width: 991.98px) {
    .market-sidebar {
        position: static !important;
    }

    .market-overview-media,
    .market-overview-media img {
        min-height: 220px;
    }
}

/* Auth pages */
.auth-page-hero.page-hero {
    min-height: 710px;
    padding: 168px 0 70px;
}

.auth-page {
    background: var(--hilitron-light);
    padding: 48px 0 80px;
}

.auth-page .auth-card {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.auth-card {
    border-top: 3px solid var(--hilitron-accent);
}

/* Parts catalog layout */
.parts-page-inner {
    width: 100%;
}

.parts-page .catalog-sidebar.sticky-top {
    top: 5.5rem;
}

.parts-main-section .catalog-sidebar.form-card {
    min-height: 42rem;
    height: 100%;
}

.parts-page:not(.parts-page--catalog) .catalog-sidebar {
    max-height: none;
}

.parts-main-section .catalog-sidebar-nav {
    min-height: 34rem;
    max-height: calc(100vh - 10rem);
}

.parts-page.parts-page--catalog .parts-main-section .catalog-sidebar.form-card {
    min-height: 0;
    height: auto;
    max-height: 52rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.parts-page.parts-page--catalog .parts-main-section .catalog-sidebar.sticky-top {
    max-height: 52rem;
    top: 5.5rem;
}

.parts-page.parts-page--catalog .parts-main-section .catalog-sidebar-nav {
    min-height: 0;
    max-height: none;
}

.parts-page.parts-page--catalog .catalog-sidebar-nav-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 48rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-right: -0.15rem;
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 77, 143, 0.55) rgba(12, 35, 64, 0.1);
}

.parts-page.parts-page--catalog .catalog-sidebar-nav-wrap::-webkit-scrollbar {
    width: 8px;
}

.parts-page.parts-page--catalog .catalog-sidebar-nav-wrap::-webkit-scrollbar-track {
    background: rgba(12, 35, 64, 0.08);
    border-radius: 999px;
}

.parts-page.parts-page--catalog .catalog-sidebar-nav-wrap::-webkit-scrollbar-thumb {
    background: rgba(26, 77, 143, 0.45);
    border-radius: 999px;
}

.parts-page.parts-page--catalog .catalog-sidebar-nav-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 77, 143, 0.62);
}

.parts-page.parts-page--catalog .catalog-sidebar-nav {
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.parts-page--catalog .catalog-sidebar-link {
    font-size: 0.95rem;
    padding: 0.4rem 0;
}

.parts-page--catalog .catalog-sidebar-link--depth-0 {
    font-size: 1.02rem;
}

.parts-page--catalog .catalog-sidebar-link--depth-1 {
    font-size: 0.9rem;
}

.parts-page--catalog .catalog-sidebar h6 {
    font-size: 1.05rem;
}

.parts-page--catalog .catalog-sidebar-search .form-label {
    font-size: 0.9rem;
}

.parts-catalog-new-arrival {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(12, 35, 64, 0.08);
}

.parts-page--catalog .parts-catalog-new-arrival + .d-flex {
    margin-top: 1.5rem;
}

.parts-catalog-pagination .pagination {
    margin-bottom: 0;
    gap: 0.25rem;
}

.parts-catalog-pagination .page-link {
    color: var(--hilitron-blue);
    border-color: var(--hilitron-border);
}

.parts-catalog-pagination .page-item.active .page-link {
    background-color: var(--hilitron-blue);
    border-color: var(--hilitron-blue);
}

.markets-page-hero.page-hero,
.parts-page-hero.page-hero {
    min-height: 710px;
}

.markets-page-hero .page-hero-main,
.parts-page-hero .page-hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.markets-page-hero .breadcrumb-portal {
    justify-content: center;
    margin-bottom: 1.25rem;
}

.markets-page-hero h1,
.markets-page-hero .page-hero-lead {
    width: 100%;
    max-width: min(48rem, 100%);
    margin-left: auto;
    margin-right: auto;
}

.markets-page-hero .page-hero-lead {
    margin-bottom: 0;
}

.parts-page-hero .hero-badge {
    display: inline-block;
}

.market-page-hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-hero-main .page-hero-search {
    width: 100%;
    max-width: calc(32rem - 80px);
    margin: calc(1.35rem + 110px) auto 0;
}

.parts-page-hero .page-hero-lead {
    margin-bottom: 0;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.parts-page-hero .parts-hero-search {
    width: 100%;
    max-width: calc(32rem - 80px);
    margin-top: calc(1.75rem + 110px);
    margin-left: auto;
    margin-right: auto;
}

.page-hero-main .hero-search-not-found {
    width: 100%;
    max-width: calc(32rem - 80px);
    margin: 0.65rem auto 0;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 12px;
    color: var(--hilitron-text);
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.page-hero-main .hero-search-not-found__text {
    font-size: 0.9375rem;
    line-height: 1.45;
}

.page-hero-main .hero-search-not-found__hint {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--hilitron-muted);
}

.page-hero-main .hero-search-not-found a {
    color: var(--hilitron-blue);
    font-weight: 600;
}

.parts-stats-strip {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

.parts-main-section {
    padding-top: 1.75rem !important;
    padding-bottom: 2rem !important;
}

/* Parts page */
.parts-search-panel .form-control {
    border: 0;
}

.parts-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.parts-stat strong {
    color: var(--hilitron-navy);
    font-size: 1.15rem;
}

.parts-stat span {
    color: var(--hilitron-muted);
    font-size: 0.8125rem;
}

.parts-filters {
    top: 80px;
}

.catalog-sidebar {
    top: 80px;
    max-height: calc(100vh - 6rem);
    display: flex;
    flex-direction: column;
}

.catalog-sidebar-nav {
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-bottom: 0;
    padding-right: 0.25rem;
}

.catalog-sidebar-search {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--hilitron-border);
}

.catalog-sidebar-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--hilitron-text);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.35rem 0;
    line-height: 1.35;
}

.catalog-sidebar-link--depth-0 {
    font-weight: 600;
    font-size: 0.9rem;
}

.catalog-sidebar-link--depth-1 {
    font-size: 0.8125rem;
    padding-left: 0.15rem;
}

.catalog-sidebar-children {
    display: block;
    margin-left: 0.35rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--hilitron-border);
}

.catalog-sidebar-group.is-open > .catalog-sidebar-link--depth-0,
.catalog-sidebar-link.active {
    color: var(--hilitron-blue);
}

.catalog-sidebar-label {
    flex: 1 1 auto;
}

.catalog-sidebar-count {
    flex-shrink: 0;
    font-size: 0.8125rem;
}

.catalog-sidebar-link:hover,
.catalog-sidebar-link.active,
.parts-filter-link:hover,
.parts-filter-link.active {
    color: var(--hilitron-blue);
}

.catalog-sidebar-link.active,
.parts-filter-link.active {
    font-weight: 600;
}

.parts-filter-link {
    color: var(--hilitron-text);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.parts-filter-link:hover,
.parts-filter-link.active {
    color: var(--hilitron-blue);
}

.parts-filter-link.active {
    font-weight: 600;
}

.part-card {
    border: 1px solid var(--hilitron-border);
    border-radius: 0.65rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.part-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(12, 35, 64, 0.12);
    border-color: var(--hilitron-blue);
}

.part-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--hilitron-light);
    overflow: hidden;
}

.part-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.part-card-category {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    background: rgba(8, 24, 41, 0.82);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 0.25rem;
}

.part-card-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.part-card-title-link {
    color: inherit;
    text-decoration: none;
}

.part-card-title-link:hover {
    color: var(--hilitron-blue);
    text-decoration: underline;
}

.part-card-media:hover img {
    transform: scale(1.03);
}

.part-card-media img {
    transition: transform 0.25s ease;
}

/* Parts landing sliders */
.parts-page--landing .parts-main-section {
    padding-bottom: 3rem !important;
}

.parts-landing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(12, 35, 64, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: inherit;
}

.parts-landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(12, 35, 64, 0.12);
    color: inherit;
}

.parts-landing-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--hilitron-light);
}

.parts-landing-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.parts-landing-card:hover .parts-landing-card-media img {
    transform: scale(1.05);
}

.parts-landing-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 35, 64, 0.05) 35%, rgba(12, 35, 64, 0.72) 100%);
    pointer-events: none;
}

.parts-landing-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--hilitron-blue);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parts-landing-card-icon {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--hilitron-blue);
    font-size: 1rem;
    z-index: 1;
}

.parts-landing-card-body {
    padding: 1rem 1rem 1.15rem;
    flex: 1;
    min-height: 4.25rem;
    display: flex;
    align-items: center;
}

.parts-landing-card-brand {
    display: block;
    color: var(--hilitron-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.parts-landing-card-title {
    color: var(--hilitron-navy);
    font-weight: 700;
    line-height: 1.35;
}

.parts-landing-card-desc {
    color: #5c6b7a;
    font-size: 0.82rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.parts-landing-hub-grid {
    margin-top: 0.25rem;
}

.parts-landing-hub-grid .hub-card {
    color: inherit;
    text-decoration: none;
}

.parts-landing-hub-grid .hub-card:hover {
    color: inherit;
}

.parts-landing-section + .parts-landing-section {
    margin-top: 2.75rem;
    padding-top: 2.75rem;
    border-top: 1px solid rgba(12, 35, 64, 0.08);
}

.parts-landing-slider {
    margin: 0 -0.5rem;
}

.parts-landing-slide {
    padding: 0.5rem;
    height: auto;
}

.parts-landing-slider .slick-track {
    display: flex !important;
    align-items: stretch;
}

.parts-landing-slider .slick-slide {
    height: auto;
}

.parts-landing-slider .slick-slide > div {
    height: 100%;
}

.parts-landing-slider .parts-landing-card {
    min-height: 17.5rem;
}

.parts-landing-slider .slick-prev,
.parts-landing-slider .slick-next {
    width: 2.25rem;
    height: 2.25rem;
    z-index: 2;
}

.parts-landing-slider .slick-prev {
    left: -0.35rem;
}

.parts-landing-slider .slick-next {
    right: -0.35rem;
}

.parts-landing-slider .slick-prev:before,
.parts-landing-slider .slick-next:before {
    color: var(--hilitron-blue);
    font-size: 1.75rem;
    opacity: 0.85;
}

.part-card--compact .part-card-body {
    padding: 0.85rem 0.9rem 1rem;
}

.part-card--compact .product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
}

.parts-landing-view-all {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .parts-landing-section + .parts-landing-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }
}

.portal-cart-btn .portal-cart-count {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--hilitron-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

.portal-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    background: var(--hilitron-navy);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 12px 28px rgba(12, 35, 64, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.portal-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.stock-quote {
    background: #eef2f7;
    color: var(--hilitron-navy);
}

.parts-cta {
    background: linear-gradient(135deg, var(--hilitron-navy) 0%, var(--hilitron-blue) 100%);
    color: #fff;
    border-radius: 0.75rem;
}

/* Page hero — contact, quote, and inner pages with background image */
.page-hero,
.quote-hero {
    position: relative;
    color: #fff;
    overflow: visible;
    z-index: 2;
    background:
        linear-gradient(100deg, rgba(10, 16, 34, .82) 0%, rgba(15, 24, 42, .55) 45%, rgba(30, 44, 58, .35) 100%),
        url('/images/child-pages-menu-bg.jpg') center/cover no-repeat;
    min-height: 710px;
    display: flex;
    align-items: flex-end;
    padding: 168px 0 70px;
}

.page-hero.market-page-hero {
    min-height: 710px;
    background:
        linear-gradient(100deg, rgba(10, 16, 34, .88) 0%, rgba(15, 24, 42, .68) 45%, rgba(30, 44, 58, .5) 100%),
        var(--market-hero-image, url('/images/child-pages-menu-bg.jpg')) center/cover no-repeat !important;
}

.page-hero-media,
.quote-hero-media {
    position: absolute;
    inset: 0;
}

.page-hero-media img,
.quote-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay,
.quote-hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.page-hero-content,
.quote-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-points,
.quote-hero-points {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.75rem;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.page-hero-points i,
.quote-hero-points i {
    color: var(--hilitron-accent);
    margin-right: 0.5rem;
}

/* Feature image band below page content */
.page-feature-band {
    background: var(--hilitron-light);
    border-top: 1px solid var(--hilitron-border);
}

.page-feature-band-img {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(12, 35, 64, 0.1);
    aspect-ratio: 4 / 3;
    background: var(--hilitron-border);
}

.page-feature-band-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quote-step-card {
    height: 100%;
}

.quote-step-img {
    position: relative;
    border-radius: 0.65rem;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--hilitron-border);
}

.quote-step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quote-step-num {
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--hilitron-accent);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quote-form-card {
    border-top: 3px solid var(--hilitron-accent);
}

.quote-parts-textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875rem;
}

.quote-upload {
    border: 1.5px dashed var(--hilitron-border);
    border-radius: 0.65rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    background: var(--hilitron-light);
}

.quote-upload .form-control {
    max-width: 320px;
    margin: 0 auto;
}

.quote-side-card {
    border: 1px solid var(--hilitron-border);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.quote-side-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.quote-side-card-body {
    padding: 1.25rem 1.35rem 1.4rem;
}

.quote-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    color: var(--hilitron-text);
}

.quote-checklist i {
    color: var(--hilitron-accent);
    margin-top: 0.15rem;
}

.quote-modal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(12, 35, 64, 0.18);
}

.quote-modal .modal-header,
.quote-modal .modal-footer {
    padding: 1.25rem 1.5rem;
}

.quote-modal .modal-body {
    padding: 0 1.5rem 1.25rem;
}

.quote-modal-part {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--hilitron-light);
    border: 1px solid rgba(12, 35, 64, 0.08);
}

.quote-modal .quote-modal-part-image {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(12, 35, 64, 0.08);
}

.quote-modal .quote-modal-part-image img,
.quote-modal .quote-modal-part-thumb {
    display: block;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: cover;
}

/* Separate portal apps: /admin/, /vendor/ */
.portal-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at top right, rgba(26, 77, 143, 0.18), transparent 45%),
        linear-gradient(180deg, var(--hilitron-light) 0%, #fff 55%);
}

.portal-app-header {
    background: var(--hilitron-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.portal-app-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
}

.portal-app-main {
    flex: 1;
}

.portal-auth-panel {
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(12, 35, 64, 0.08);
}

.portal-app-footer {
    background: var(--hilitron-navy-dark);
}

/* Vendor portal — sharper panels matching home */
.portal-app-vendor .portal-auth-panel {
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(12, 35, 64, 0.06);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.portal-app-vendor .portal-auth-panel:hover {
    border-color: rgba(26, 77, 143, 0.25);
}

.portal-app-vendor h1,
.portal-app-vendor h2,
.portal-app-vendor .h3,
.portal-app-vendor .h5 {
    color: var(--hilitron-navy);
}

.portal-app-vendor .table thead th {
    color: var(--hilitron-navy);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--hilitron-border);
    background: var(--hilitron-light);
}

.portal-app-vendor .table > tbody > tr:hover > * {
    background-color: rgba(26, 77, 143, 0.04);
}

.portal-app-vendor .portal-stat-tile {
    background: #fff;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 16px rgba(12, 35, 64, 0.06);
}

.portal-app-vendor .portal-stat-tile small {
    color: var(--hilitron-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
}

.portal-app-vendor .portal-stat-tile .fs-3 {
    color: var(--hilitron-navy);
}

.portal-app-vendor .portal-stat-tile .text-success {
    color: var(--hilitron-blue) !important;
}

.portal-app-vendor .alert-success {
    border-color: rgba(26, 77, 143, 0.2);
    background-color: rgba(26, 77, 143, 0.08);
    color: var(--hilitron-navy);
}

/* Product detail page */
.product-detail-hero.page-hero {
    min-height: 710px;
    color: #fff;
}

.product-detail-hero-main {
    width: 100%;
}

.product-detail-hero .breadcrumb-portal {
    margin-bottom: 1.5rem;
}

.product-detail-hero .product-brand {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.product-detail-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 42rem;
    margin-bottom: 0;
}

.product-detail-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.product-detail-price-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 600;
}

.product-detail-hero-actions {
    margin-top: 0.25rem;
}

.product-detail-datasheets-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.5rem;
}

.product-detail-datasheet-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-detail-datasheet-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.product-detail-datasheet-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

.product-gallery-viewer {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 4.5rem;
    flex-shrink: 0;
    max-height: 22rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.product-gallery-thumb {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 2px solid var(--hilitron-border);
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery-thumb:hover {
    border-color: rgba(26, 77, 143, 0.45);
}

.product-gallery-thumb.is-active {
    border-color: var(--hilitron-primary);
    box-shadow: 0 0 0 1px var(--hilitron-primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-stage {
    flex: 1;
    min-width: 0;
    min-height: 22rem;
    border: 1px solid var(--hilitron-border);
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.product-gallery-stage-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 22rem;
    padding: 0.75rem;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-gallery-stage-image {
    width: 100%;
    height: 100%;
    max-height: 20.5rem;
    object-fit: contain;
    display: block;
}

.product-gallery-modal .modal-content {
    border: 0;
    border-radius: 0.85rem;
    overflow: hidden;
}

.product-gallery-modal-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #fff;
}

@media (max-width: 575.98px) {
    .product-gallery-viewer {
        flex-direction: column-reverse;
    }

    .product-gallery-thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 0.15rem;
    }

    .product-gallery-thumb {
        flex: 0 0 4rem;
        width: 4rem;
        height: 4rem;
    }

    .product-gallery-stage,
    .product-gallery-stage-button {
        min-height: 16rem;
    }

    .product-gallery-stage-image {
        max-height: 14.5rem;
    }
}

.product-detail-image {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    max-height: min(36vh, 280px);
    margin-left: auto;
}

@media (min-width: 992px) {
    .product-detail-image {
        max-height: min(42vh, 320px);
        max-width: 100%;
    }
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-image img.catalog-image-placeholder {
    object-fit: contain;
}

.product-detail-mpn {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.15;
}

.product-main-section {
    background: var(--hilitron-light);
}

.product-spec-list {
    display: grid;
    gap: 0;
}

.product-spec-row {
    display: grid;
    grid-template-columns: minmax(9rem, 30%) 1fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--hilitron-border);
}

.product-spec-row:last-child {
    border-bottom: 0;
}

.product-spec-row dt {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

.product-spec-row dd {
    margin: 0;
    color: var(--hilitron-navy);
}

.product-spec-datasheet-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-spec-datasheet-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(26, 77, 143, 0.25);
    background: rgba(26, 77, 143, 0.06);
    color: var(--hilitron-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-spec-datasheet-link:hover {
    background: rgba(26, 77, 143, 0.12);
    border-color: rgba(26, 77, 143, 0.4);
    color: var(--hilitron-navy);
}

@media (max-width: 575.98px) {
    .product-spec-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* Customer portal pages share the marketing site header/footer */
body.portal-customer .portal-main .btn.btn-accent,
body.portal-customer .portal-main .btn.btn-outline-primary,
body.portal-customer .portal-main .btn.btn-outline-secondary,
body.portal-customer .portal-main .btn.btn-outline-light,
body.portal-customer .portal-main .btn.btn-primary {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    white-space: nowrap;
}

body.portal-customer .portal-main .btn.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

body.portal-customer .portal-main .btn.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

body.portal-customer .portal-main .form-control,
body.portal-customer .portal-main .form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

/* Match marketing site header gutters on portal catalog pages */
body.portal-customer header .container,
body.portal-customer .portal-main .container {
    width: 100%;
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 50px;
    padding-right: 50px;
}

@media (max-width: 991.98px) {
    body.portal-customer header .container,
    body.portal-customer .portal-main .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1800px) {
    body.portal-customer header .container,
    body.portal-customer .portal-main .container {
        max-width: 1670px;
    }
}

/* Restore marketing header dropdown behavior when Bootstrap is loaded on portal pages */
body.portal-customer > header .main-nav .dropdown-menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: #ffffff;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 20px 45px rgba(10, 15, 30, 0.22);
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    margin: 0;
    --bs-dropdown-min-width: 280px;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 0;
    overflow: visible;
}

body.portal-customer > header .main-nav .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
}

body.portal-customer > header .main-nav .nav-item:hover .dropdown-menu,
body.portal-customer > header .main-nav .nav-item.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%);
    display: block;
}

body.portal-customer > header .main-nav .dropdown-menu a {
    display: block;
    padding: 10px 15px !important;
    font-size: 15px !important;
    font-weight: 500;
    color: #151b33 !important;
    border-radius: 0;
    line-height: 18px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

body.portal-customer > header .main-nav .dropdown-menu a:first-child:hover {
    border-radius: 10px 10px 0 0;
}

body.portal-customer > header .main-nav .dropdown-menu a:last-child:hover {
    border-radius: 0 0 10px 10px;
}

body.portal-customer > header .main-nav .dropdown-menu a:only-child:hover {
    border-radius: 10px;
}

body.portal-customer > header .main-nav .dropdown-menu a:hover {
    background: #ed8b22;
    color: #fff !important;
    padding-left: 18px !important;
}

@media (min-width: 992px) {
    body.portal-customer > header .nav-item:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    body.portal-customer > header .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        display: none;
        margin-top: 6px;
        min-width: 0;
        width: 100%;
        background: transparent;
        padding: 10px 0 10px 15px;
    }

    body.portal-customer > header .main-nav .dropdown-menu::before {
        display: none;
    }

    body.portal-customer > header .nav-item.active > .dropdown-menu,
    body.portal-customer > header .main-nav .nav-item.open .dropdown-menu {
        display: block;
    }
}
