:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-2: #eef2f6;
    --text: #17202b;
    --muted: #647181;
    --border: rgba(15, 23, 42, .11);
    --primary: #0b2a4a;
    --primary-2: #1d5d86;
    --accent: #f97316;
    --danger: #dc2626;
    --success: #16a34a;
    --shadow: 0 18px 60px rgba(15, 23, 42, .09);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, .07);
    --radius: 8px;
    --header-height: 76px;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #0d1117;
    --surface: #151b23;
    --surface-2: #202834;
    --text: #f8fafc;
    --muted: #a8b3c4;
    --border: rgba(226, 232, 240, .13);
    --primary: #5aa6d6;
    --primary-2: #f97316;
    --accent: #fb923c;
    --shadow: 0 18px 60px rgba(0, 0, 0, .34);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .24);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 1rem;
    z-index: 9999;
    padding: .7rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 1rem;
}

.container.narrow {
    max-width: 900px;
}

.btn {
    border-radius: var(--radius);
    font-weight: 700;
}

.btn-primary {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 12px 28px rgba(11, 42, 74, .22);
}

.btn-primary:hover {
    filter: brightness(.96);
    border-color: var(--primary);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(14px);
}

.form-control,
.form-select {
    border-radius: var(--radius);
    border-color: var(--border);
    background-color: var(--surface);
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(15, 118, 110, .15);
}

.navbar-blur {
    min-height: var(--header-height);
    background: rgba(255, 255, 255, .78);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

html[data-theme="dark"] .navbar-blur {
    background: rgba(16, 19, 24, .78);
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
}

.navbar-brand {
    color: var(--text);
    font-weight: 800;
}

.site-brand {
    flex: 0 0 auto;
    min-width: 0;
    margin-right: 1rem;
    padding: .35rem 0;
}

.navbar-brand.site-brand .site-logo {
    display: block;
    flex: 0 0 auto;
    width: 205px;
    max-width: none;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.footer-brand {
    width: max-content;
    max-width: 100%;
}

.footer-logo {
    width: 205px;
}

.admin-logo {
    width: 132px;
}

.auth-logo,
.invoice-logo {
    width: 190px;
}

.auth-logo {
    margin-left: auto;
    margin-right: auto;
}

.invoice-logo {
    margin-bottom: 1rem;
}

.navbar-nav .nav-link {
    color: var(--muted);
    font-weight: 700;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.icon-btn {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
}

.icon-btn:hover,
.icon-btn:focus {
    color: var(--primary);
    border-color: rgba(11, 42, 74, .4);
}

.icon-btn.danger {
    color: var(--danger);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: min(210px, 30vw);
}

.search-form i {
    position: absolute;
    left: .85rem;
    color: var(--muted);
    z-index: 1;
}

.search-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    padding: .62rem .9rem .62rem 2.25rem;
    outline: none;
}

.live-search-results {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    width: min(360px, 86vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: none;
    z-index: 20;
}

.live-search-results a {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: .8rem;
    align-items: center;
    padding: .75rem;
    border-bottom: 1px solid var(--border);
}

.live-search-results img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius);
}

.mega-menu {
    width: 100%;
    background: var(--surface);
    border-radius: 0 0 var(--radius) var(--radius);
}

.mega-link {
    display: grid;
    gap: .2rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.mega-link span {
    font-weight: 800;
}

.mega-link small {
    color: var(--muted);
}

.hero-section {
    margin-top: var(--header-height);
}

.hero-swiper,
.hero-slide {
    min-height: min(720px, calc(100vh - var(--header-height) - 56px));
}

.hero-slide {
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-copy {
    max-width: 720px;
    color: #fff;
    padding: 6rem 0;
}

.hero-copy h1,
.page-hero h1 {
    max-width: 920px;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: .96;
    font-weight: 800;
}

.hero-copy p {
    max-width: 620px;
    font-size: 1.18rem;
    color: rgba(255, 255, 255, .86);
}

.eyebrow {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.section-pad {
    padding: 5.5rem 0;
}

.section-tight {
    padding: 2rem 0;
}

.bg-soft {
    background: var(--surface-2);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-heading.compact {
    margin-bottom: 1rem;
}

.section-heading h2 {
    max-width: 720px;
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 3rem);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--primary);
    font-weight: 800;
}

.value-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--border);
    box-shadow: var(--shadow-soft);
}

.value-strip div {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    background: var(--surface);
    font-weight: 700;
}

.value-strip i {
    color: var(--primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.category-grid.large {
    grid-template-columns: repeat(3, 1fr);
}

.category-tile {
    position: relative;
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    color: #fff;
    padding: 1.2rem;
    isolation: isolate;
}

.category-tile:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 22, 43, .08), rgba(8, 22, 43, .82));
    z-index: -1;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .4s ease;
}

.category-tile:hover img {
    transform: scale(1.05);
}

.category-tile span {
    font-size: 1.35rem;
    font-weight: 800;
}

.category-tile small {
    color: rgba(255, 255, 255, .8);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

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

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

.product-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-media {
    position: relative;
    aspect-ratio: 1 / .82;
    overflow: hidden;
    background: #fff;
}

.product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

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

.product-badges {
    position: absolute;
    top: .75rem;
    left: .75rem;
    display: flex;
    gap: .4rem;
}

.wishlist-btn {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .9);
    color: var(--text);
}

.wishlist-btn.active {
    color: var(--danger);
}

.product-body {
    padding: 1rem;
}

.product-category {
    margin: 0 0 .25rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-body h3 {
    min-height: 3.1rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #b45309;
    font-weight: 800;
}

.rating.large span {
    color: var(--muted);
    font-weight: 600;
}

.product-copy {
    min-height: 2.8rem;
    color: var(--muted);
    font-size: .9rem;
}

.product-spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    min-height: 2rem;
    margin-bottom: .85rem;
}

.product-spec-chips span {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    padding: .18rem .55rem;
    font-size: .78rem;
    font-weight: 800;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.price {
    display: grid;
}

.price strong {
    font-size: 1.05rem;
}

.price span,
.detail-price span {
    color: var(--muted);
    text-decoration: line-through;
}

.promo-band {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, #0b2a4a, #1d5d86 58%, #f97316);
    box-shadow: var(--shadow);
}

.promo-band h2 {
    font-weight: 800;
}

.countdown {
    display: flex;
    gap: .75rem;
}

.countdown span {
    display: grid;
    min-width: 72px;
    padding: .8rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .14);
}

.countdown strong {
    font-size: 1.45rem;
}

.editorial-panel,
.testimonial-list,
.content-panel,
.summary-panel,
.filter-panel,
.tracking-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    backdrop-filter: blur(14px);
}

html[data-theme="dark"] .editorial-panel,
html[data-theme="dark"] .testimonial-list,
html[data-theme="dark"] .content-panel,
html[data-theme="dark"] .summary-panel,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .tracking-panel {
    background: rgba(23, 27, 34, .82);
}

.testimonial-list {
    display: grid;
    gap: 1rem;
}

.testimonial-list figure,
.review-list article {
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.testimonial-list blockquote {
    margin: 0 0 .7rem;
    font-weight: 700;
}

.testimonial-list figcaption span {
    color: var(--muted);
}

.page-hero {
    margin-top: var(--header-height);
    padding: 7rem 0 4rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(8, 22, 43, .96), rgba(29, 93, 134, .82)), url("../images/rf/emi-hero.jpg") center / cover;
}

.page-hero.compact {
    padding: 4.5rem 0 3rem;
}

.page-hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, .84);
}

.breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255,255,255,.65);
}

.breadcrumb a,
.breadcrumb .active {
    color: rgba(255, 255, 255, .88);
}

.shop-layout,
.cart-layout,
.checkout-layout,
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.cart-layout,
.checkout-layout {
    grid-template-columns: 1fr 360px;
}

.filter-panel {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.filter-header,
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-header h2,
.summary-panel h2,
.content-panel h2 {
    font-size: 1.2rem;
    font-weight: 800;
}

.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    gap: .75rem;
    min-height: 320px;
    padding: 2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.empty-state.small {
    min-height: 180px;
}

.empty-state i {
    color: var(--primary);
    font-size: 2.2rem;
}

.product-detail {
    margin-top: var(--header-height);
}

.product-gallery,
.detail-panel {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.gallery-main {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 1 / .82;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin-top: .75rem;
}

.gallery-thumbs img,
.compare-img,
.line-thumb {
    object-fit: cover;
    border-radius: var(--radius);
}

.gallery-thumbs img {
    aspect-ratio: 1 / .8;
}

.detail-panel h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 800;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin: 1.25rem 0;
}

.detail-price strong {
    font-size: 2rem;
}

.detail-price em {
    color: var(--success);
    font-style: normal;
    font-weight: 800;
}

.qty-input {
    max-width: 94px;
}

.detail-actions,
.security-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.detail-actions .wishlist-btn {
    position: static;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
}

.security-row {
    color: var(--muted);
    font-weight: 700;
}

.stock-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .25rem .65rem;
    background: rgba(22, 163, 74, .12);
    color: var(--success);
    font-size: .8rem;
    font-weight: 800;
    text-transform: capitalize;
}

.stock-pill.low {
    background: rgba(249, 115, 22, .14);
    color: var(--accent);
}

.spec-list {
    display: grid;
    gap: .75rem;
}

.spec-list div,
.summary-lines div,
.invoice-total div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding: .65rem 0;
}

.spec-list dt {
    color: var(--muted);
    font-weight: 700;
}

.spec-list dd {
    margin: 0;
    font-weight: 800;
}

.technical-drawing {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 420px);
    gap: 1.5rem;
    align-items: center;
}

.technical-drawing img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.review-list {
    display: grid;
    gap: 1rem;
}

.cart-lines {
    display: grid;
    gap: 1rem;
}

.cart-line {
    display: grid;
    grid-template-columns: 110px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.cart-line img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius);
}

.cart-title {
    font-weight: 800;
}

.summary-lines {
    margin-top: 1rem;
}

.summary-lines .total,
.invoice-total div:last-child {
    border-bottom: 0;
    font-size: 1.2rem;
}

.checkout-items {
    display: grid;
    gap: .75rem;
    margin: 1rem 0;
}

.checkout-items div {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: .75rem;
    align-items: center;
}

.checkout-items img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius);
}

.auth-section {
    min-height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(8, 22, 43, .9), rgba(29, 93, 134, .66)), url("../images/rf/legacy-home.jpg") center / cover;
}

.auth-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(1040px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-card.reverse .auth-art {
    order: 2;
}

.auth-card form,
.auth-art,
.simple-auth-card {
    padding: 2rem;
}

.auth-art {
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 460px;
    color: #fff;
    background: linear-gradient(180deg, rgba(8, 22, 43, .12), rgba(8, 22, 43, .86)), url("../images/rf/emi-hero.jpg") center / cover;
}

.auth-art h1 {
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    font-weight: 800;
    line-height: 1.04;
}

.simple-auth-card {
    width: min(460px, 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.simple-auth-card.glass {
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(16px);
}

html[data-theme="dark"] .simple-auth-card.glass {
    background: rgba(23, 27, 34, .84);
}

.account-nav {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    display: grid;
    gap: .4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: .75rem;
    box-shadow: var(--shadow-soft);
}

.account-nav a,
.account-nav button {
    display: flex;
    align-items: center;
    gap: .65rem;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    padding: .75rem;
    font-weight: 800;
    text-align: left;
}

.account-nav a.active,
.account-nav a:hover,
.account-nav button:hover {
    background: var(--surface-2);
    color: var(--text);
}

.account-main {
    min-width: 0;
}

.stat-grid,
.admin-stat-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 1.5rem;
    align-items: stretch;
}

.intro-slider {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.intro-swiper,
.intro-swiper .swiper-wrapper,
.intro-swiper .swiper-slide {
    height: 100%;
}

.intro-swiper {
    min-height: 320px;
}

.intro-swiper .swiper-slide {
    display: flex;
    background: var(--surface-2);
}

.intro-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.intro-swiper .swiper-button-prev,
.intro-swiper .swiper-button-next {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    background: rgba(8, 22, 43, .72);
    color: #fff;
    box-shadow: 0 8px 22px rgba(8, 22, 43, .22);
    backdrop-filter: blur(8px);
}

.intro-swiper .swiper-button-prev:after,
.intro-swiper .swiper-button-next:after {
    font-size: .9rem;
    font-weight: 800;
}

.intro-swiper .swiper-button-prev:focus-visible,
.intro-swiper .swiper-button-next:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.intro-swiper .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(8, 22, 43, .55);
    opacity: .64;
}

.intro-swiper .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 999px;
    background: var(--accent);
    opacity: 1;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.industry-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.industry-card i {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: .9rem;
    border-radius: var(--radius);
    background: rgba(249, 115, 22, .13);
    color: var(--accent);
}

.industry-card h3 {
    font-size: 1rem;
    font-weight: 800;
}

.industry-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.certification-band,
.contact-cta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.certification-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.certification-list span,
.download-card {
    display: flex;
    align-items: center;
    gap: .65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: .85rem;
    font-weight: 800;
}

.certification-list i {
    color: var(--accent);
}

.contact-cta {
    padding: 4rem 0;
    color: #fff;
    background: linear-gradient(135deg, #08162b, #123f62);
}

.contact-cta .container {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
}

.contact-cta p {
    max-width: 760px;
    color: rgba(255, 255, 255, .82);
}

.map-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.map-panel iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.rfq-form {
    display: grid;
    gap: 1.25rem;
}

.quote-selection-list,
.rfq-lines,
.download-grid {
    display: grid;
    gap: .85rem;
}

.quote-selection-list article {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: .85rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: .8rem;
}

.quote-selection-list img {
    width: 72px;
    height: 58px;
    object-fit: cover;
    border-radius: var(--radius);
}

.quote-selection-list small {
    display: block;
    color: var(--muted);
}

.quote-selection-list p {
    margin: .25rem 0 0;
    color: var(--muted);
}

.rfq-line {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 120px minmax(220px, 1fr);
    gap: .75rem;
    align-items: end;
}

.rfq-line small,
.rfq-line label span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
}

.download-grid {
    grid-template-columns: repeat(3, 1fr);
}

.download-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: 138px;
}

.download-card i {
    color: var(--primary);
    font-size: 1.35rem;
}

.download-card small {
    color: var(--muted);
    text-transform: capitalize;
}

.stat-grid div,
.metric-grid div {
    display: grid;
    gap: .2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.stat-grid strong,
.metric-grid strong {
    font-size: 2rem;
}

.notification-row {
    display: flex;
    gap: .85rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.notification-row i {
    color: var(--primary);
}

.notification-row p {
    margin: .2rem 0;
    color: var(--muted);
}

.tracking-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin: 1rem 0;
}

.tracking-steps span {
    display: grid;
    place-items: center;
    min-height: 52px;
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 800;
    text-transform: capitalize;
}

.tracking-steps span.done {
    background: rgba(22, 163, 74, .15);
    color: var(--success);
}

.comparison-table {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.compare-img {
    width: 140px;
    height: 110px;
}

.line-thumb {
    width: 56px;
    height: 48px;
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.footer-main a {
    display: block;
    margin-bottom: .5rem;
    color: var(--muted);
}

.footer-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 800;
}

.social-links {
    display: flex;
    gap: .6rem;
}

.social-links a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1.2rem;
    color: var(--muted);
    font-size: .9rem;
}

.toast-notice {
    position: fixed;
    right: 1rem;
    top: calc(var(--header-height) + 1rem);
    z-index: 3000;
    min-width: 280px;
}

.live-chat {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
}

.rounded-media {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mini-promo {
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #f97316);
    box-shadow: var(--shadow-soft);
}

.legal-copy h2 {
    margin-top: 1.5rem;
}

.invoice-page {
    background: #eef3f7;
}

.invoice {
    max-width: 920px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.invoice-total {
    width: min(360px, 100%);
    margin-left: auto;
}

/* Admin */
.admin-shell {
    background: var(--bg);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1rem;
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.admin-nav {
    display: grid;
    gap: .35rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 800;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.admin-main {
    min-width: 0;
    padding: 1.25rem;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-search {
    position: relative;
    width: min(260px, 30vw);
}

.admin-search i {
    position: absolute;
    left: .8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.admin-search input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    padding: .55rem .8rem .55rem 2.2rem;
}

.admin-profile-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: .55rem .8rem;
    color: var(--muted);
    font-weight: 800;
}

.admin-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-stat-grid div {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.admin-stat-grid span {
    color: var(--muted);
    font-weight: 700;
}

.admin-stat-grid strong {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
}

.admin-stat-grid i {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: var(--primary);
    opacity: .22;
    font-size: 2.5rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.admin-grid .span-2 {
    grid-column: span 2;
}

.admin-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.admin-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-card-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.admin-card-header span {
    color: var(--muted);
}

.admin-card canvas {
    max-height: 320px;
}

.inventory-list {
    display: grid;
    gap: .75rem;
}

.inventory-list div {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .75rem;
    align-items: center;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
}

.inventory-list em {
    border-radius: 999px;
    padding: .15rem .5rem;
    background: var(--surface-2);
    color: var(--muted);
    font-size: .75rem;
    font-style: normal;
    font-weight: 800;
}

.inventory-list em.low {
    color: var(--accent);
}

.inventory-list em.out {
    color: var(--danger);
}

.admin-product-cell {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 800;
}

.admin-product-cell img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius);
}

.flag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
}

@media (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid .span-2 {
        grid-column: auto;
    }
}

@media (max-width: 991px) {
    .nav-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 1rem;
    }

    .search-form {
        width: 100%;
    }

    .value-strip,
    .product-grid,
    .product-grid.compact,
    .footer-main,
    .shop-layout,
    .cart-layout,
    .checkout-layout,
    .account-layout,
    .intro-grid,
    .industry-grid,
    .certification-band,
    .contact-cta .container,
    .technical-drawing,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .account-nav,
    .product-gallery,
    .detail-panel,
    .admin-sidebar {
        position: static;
        height: auto;
    }

    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-card.reverse .auth-art {
        order: 0;
    }

    .auth-art {
        min-height: 260px;
    }

    .admin-search {
        width: 100%;
    }

    .admin-stat-grid,
    .stat-grid,
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 68px;
    }

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

    .intro-swiper,
    .intro-swiper .swiper-slide img {
        min-height: 220px;
    }

    .site-brand {
        margin-right: .5rem;
    }

    .navbar-brand.site-brand .site-logo {
        width: 180px;
        height: 56px;
    }

    .hero-swiper,
    .hero-slide {
        min-height: 560px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 3rem;
    }

    .section-pad {
        padding: 3.5rem 0;
    }

    .section-heading,
    .promo-band,
    .footer-bottom,
    .admin-topbar,
    .admin-card-header,
    .invoice-header {
        align-items: start;
        flex-direction: column;
    }

    .promo-band {
        display: flex;
    }

    .countdown {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid,
    .category-grid.large,
    .admin-stat-grid,
    .stat-grid,
    .metric-grid,
    .industry-grid,
    .certification-list,
    .download-grid,
    .rfq-line {
        grid-template-columns: 1fr;
    }

    .cart-line {
        grid-template-columns: 84px 1fr;
    }

    .cart-line img {
        width: 84px;
        height: 78px;
    }

    .cart-line form {
        grid-column: 2;
    }

    .tracking-steps {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .intro-swiper .swiper-wrapper {
        transition-duration: 0ms !important;
    }
}

@media print {
    .print-hidden {
        display: none !important;
    }

    .invoice {
        margin: 0;
        box-shadow: none;
    }
}
