:root {
    --ots-blue: #075ba8;
    --ots-blue-dark: #063f78;
    --ots-accent: #f5a623;
    --ots-ink: #172033;
    --ots-muted: #64748b;
    --ots-line: #dbe3ef;
    --ots-bg: #f4f7fb;
    --ots-green: #157347;
    --ots-font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ots-bg);
    color: var(--ots-ink);
    font-family: var(--ots-font);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.navbar,
.product-card,
.admin-nav,
.table {
    font-family: var(--ots-font);
    letter-spacing: 0;
}

a {
    color: var(--ots-blue);
    text-decoration: none;
}

a:hover {
    color: var(--ots-blue-dark);
}

.top-strip {
    background: #122640;
    color: #dbeafe;
    font-size: 0.85rem;
    padding: 0.35rem 0;
}

.main-nav {
    background: var(--ots-blue);
    color: #fff;
    padding: 0.75rem 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-right: 0.55rem;
}

.brand-text {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
}

.btn-nav {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    width: 42px;
    height: 42px;
}

.search-wrap {
    max-width: 780px;
    display: flex;
}

.search-input {
    height: 44px;
    border-radius: 6px 0 0 6px;
    border: 0;
}

.search-btn {
    width: 54px;
    border-radius: 0 6px 6px 0;
    background: var(--ots-accent);
    color: #111827;
    border: 0;
}

.search-suggestions {
    display: none;
    position: absolute;
    left: 0;
    right: 54px;
    top: 48px;
    z-index: 1000;
    background: #fff;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.search-suggestions a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--ots-ink);
    border-bottom: 1px solid var(--ots-line);
}

.quote-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
}

.quote-link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.quote-link b {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    background: var(--ots-accent);
    color: #111827;
    font-size: 0.85rem;
}

.category-bar {
    background: #fff;
    border-bottom: 1px solid var(--ots-line);
    padding: 0.6rem 0;
}

.category-bar a {
    color: var(--ots-ink);
    font-size: 0.94rem;
}

.home-grid {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 1rem;
}

.category-panel,
.deal-panel,
.cart-summary,
.quote-sidebar,
.admin-card {
    background: #fff;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
}

.category-panel {
    overflow: hidden;
}

.panel-title {
    background: #edf4fc;
    font-weight: 800;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--ots-line);
}

.category-panel a {
    display: flex;
    justify-content: space-between;
    padding: 0.72rem 1rem;
    color: var(--ots-ink);
    border-bottom: 1px solid #eef2f7;
}

.category-panel a:hover {
    background: #f7fbff;
}



.hero-banner h1 {
    max-width: 620px;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1;
    margin: 0.5rem 0 1rem;
}

.hero-banner p {
    max-width: 560px;
    color: #eaf4ff;
    font-size: 1.1rem;
}

.eyebrow {
    display: inline-block;
    background: rgba(245,166,35,0.95);
    color: #111827;
    font-weight: 800;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.deal-panel {
    padding: 1.2rem;
}

.deal-panel h2,
.cart-summary h2,
.quote-sidebar h2 {
    font-size: 1.25rem;
    font-weight: 800;
}

.btn-accent {
    background: var(--ots-accent);
    color: #111827;
    border: 0;
    font-weight: 800;
}

.btn-accent:hover {
    background: #e29318;
    color: #111827;
}

.promo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
}

.promo-strip div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    font-weight: 800;
    border-right: 1px solid var(--ots-line);
}

.promo-strip div:last-child {
    border-right: 0;
}

.section-head,
.listing-head,
.admin-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head h2,
.listing-head h1,
.admin-head h1 {
    margin: 0;
    font-weight: 800;
    line-height: 1.15;
}

.section-head p,
.listing-head p,
.admin-head p {
    margin: 0.2rem 0 0;
    color: var(--ots-muted);
    font-size: 0.95rem;
    font-weight: 400;
}

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

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

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    border-bottom: 1px solid var(--ots-line);
    overflow: hidden;
    padding: 0.75rem;
    box-sizing: border-box;
}

.product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.home-shell .product-image {
    height: var(--homepage-product-image-height, 220px);
    min-height: var(--homepage-product-image-height, 220px);
    max-height: var(--homepage-product-image-height, 220px);
}

.home-shell .product-body {
    padding: calc(1rem * var(--homepage-card-scale, 1));
}

.home-shell .product-card h3 {
    font-size: calc(0.96rem * var(--homepage-card-scale, 1));
    min-height: calc(2.6rem * var(--homepage-card-scale, 1));
}

.home-shell .product-card p {
    font-size: calc(0.86rem * var(--homepage-card-scale, 1));
    min-height: calc(3.4rem * var(--homepage-card-scale, 1));
}

.home-shell .price {
    font-size: calc(1rem * var(--homepage-card-scale, 1));
}

.home-shell .stock {
    font-size: calc(0.74rem * var(--homepage-card-scale, 1));
}

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

.product-meta,
.sku {
    color: var(--ots-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.product-card h3 {
    font-size: 0.96rem;
    line-height: 1.28;
    min-height: 2.6rem;
    margin: 0.25rem 0;
    font-weight: 700;
}

.product-card p {
    color: var(--ots-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    min-height: 3.4rem;
}

.price {
    color: #b45309;
    font-size: 1rem;
    font-weight: 800;
}

.stock {
    display: inline-block;
    color: #8a1f11;
    background: #fff1f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
}

.stock.ok {
    color: var(--ots-green);
    background: #e9f7ef;
}

.add-quote-row {
    margin-top: auto;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.5rem;
}

.listing-tools,
.admin-filter {
    display: flex;
    gap: 0.5rem;
}

.listing-tools .form-select {
    min-width: 220px;
}

.empty-state,
.confirmation-box {
    background: #fff;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(300px, 520px) 1fr;
    gap: 2rem;
    background: #fff;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-image {
    display: grid;
    place-items: center;
    background: #f8fafc;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.detail-info h1 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
}

.detail-price {
    font-size: 1.9rem;
    color: #b45309;
    font-weight: 900;
    margin: 1rem 0 0.5rem;
}

.description {
    color: #334155;
    margin: 1.5rem 0;
    font-size: 0.98rem;
    line-height: 1.65;
}

.detail-quote-form {
    max-width: 480px;
}

.cart-layout,
.quote-request-layout,
.quote-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1rem;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 0.75rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
    padding: 0.75rem;
}

.cart-item img {
    width: 96px;
    height: 80px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 6px;
}

.cart-item h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0;
}

.cart-qty {
    display: flex;
    gap: 0.5rem;
}

.cart-qty input {
    width: 84px;
}

.cart-summary,
.quote-sidebar {
    padding: 1.2rem;
    position: sticky;
    top: 145px;
}

.summary-row,
.mini-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--ots-line);
}

.quote-form {
    background: #fff;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
    padding: 1.25rem;
}

.confirmation-box {
    max-width: 680px;
    margin: 0 auto;
}

.confirmation-box i {
    font-size: 4rem;
    color: var(--ots-green);
}

.auth-card,
.customer-gate {
    max-width: 720px;
    background: #fff;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
    box-shadow: var(--ots-shadow);
}

.auth-card {
    margin: 0 auto;
    padding: 2rem;
}

.customer-gate {
    padding: 1.5rem;
}

.auth-card h1,
.customer-gate h2 {
    font-weight: 900;
    letter-spacing: 0;
    color: var(--ots-ink);
}

.auth-card p,
.customer-gate p {
    color: var(--ots-muted);
}

.auth-switch,
.resend-form {
    border-top: 1px solid var(--ots-line);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.site-footer {
    background: #122640;
    color: #dbeafe;
    padding: 2.5rem 0 1rem;
}

.site-footer h5,
.site-footer h6 {
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.16);
    color: #b7c8df;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.7rem;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.whatsapp-float:hover {
    color: #fff;
    background: #1fb357;
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--ots-blue);
}

.admin-login-card {
    width: min(420px, calc(100% - 2rem));
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
}

.admin-login-card img {
    width: 64px;
    height: 64px;
    display: block;
    margin-bottom: 1rem;
}

.admin-login-card h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.admin-body {
    background: #eef3f8;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #0f1f38;
    color: #dbeafe;
    padding: 1rem;
    z-index: 1040;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-weight: 900;
    margin-bottom: 1.1rem;
}

.admin-sidebar-brand:hover {
    color: #fff;
}

.admin-sidebar-brand img {
    width: 58px;
    height: 44px;
    object-fit: contain;
}

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

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    color: #dbeafe;
    padding: 0.68rem 0.78rem;
    border-radius: 8px;
    font-weight: 650;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    color: #fff;
    background: #1d4f91;
}

.admin-sidebar-nav i {
    width: 22px;
    text-align: center;
}

.admin-workspace {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    min-height: 72px;
    padding: 0.85rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--ots-line);
}

.admin-top-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: min(520px, 100%);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
}

.admin-top-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-icon-link {
    position: relative;
    color: var(--ots-ink);
    font-size: 1.3rem;
}

.admin-icon-link span {
    position: absolute;
    top: -9px;
    right: -11px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
}

.admin-main {
    padding: 1.5rem;
}

.admin-card {
    padding: 1rem;
}

.admin-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
}

.admin-filter {
    margin-bottom: 1rem;
}

.status-pill {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    background: #edf4fc;
    color: var(--ots-blue-dark);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.78rem;
}

.btn {
    font-weight: 700;
}

.form-control,
.form-select {
    font-family: var(--ots-font);
    font-size: 0.95rem;
}

.table {
    font-size: 0.93rem;
}

.detail-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0.65rem 1rem;
}

.detail-list dt {
    color: var(--ots-muted);
}

.detail-list dd {
    margin: 0;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-stat-card {
    display: grid;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid var(--ots-line);
    border-radius: 10px;
    padding: 1.1rem;
}

.admin-stat-card i {
    color: var(--ots-blue);
    font-size: 1.8rem;
}

.admin-stat-card span {
    color: var(--ots-muted);
    font-weight: 650;
}

.admin-stat-card strong {
    font-size: 2rem;
    line-height: 1;
}

.admin-stat-card.warning i {
    color: #b45309;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-list-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--ots-line);
    padding: 0.7rem 0;
}

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

.admin-list-row span {
    display: grid;
}

.admin-list-row small {
    color: var(--ots-muted);
}

.admin-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
    margin-right: 0.55rem;
}

.admin-inline-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(100px, 1fr));
    gap: 0.35rem;
}

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

.admin-asset {
    display: grid;
    gap: 0.35rem;
    border: 1px solid var(--ots-line);
    border-radius: 8px;
    padding: 0.75rem;
}

.admin-asset img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 6px;
}

.active-logo-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid var(--ots-line);
    border-radius: 10px;
    padding: 1rem;
}

.active-logo-preview img {
    width: 180px;
    height: 78px;
    object-fit: contain;
    background: #073875;
    border-radius: 8px;
    padding: 0.5rem;
}

.active-logo-preview small {
    display: block;
    color: var(--ots-muted);
    word-break: break-all;
}

.admin-asset.active {
    border-color: #9ec2f8;
    box-shadow: 0 0 0 3px rgba(158, 194, 248, 0.35);
}

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

.maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: rgba(7, 17, 35, 0.78);
    backdrop-filter: blur(6px);
    padding: 1.5rem;
    pointer-events: all;
}

.maintenance-panel {
    width: min(720px, 100%);
    text-align: center;
    background: #fff;
    border-radius: 18px;
    padding: 3rem 2rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.maintenance-panel img {
    width: 190px;
    height: 86px;
    object-fit: contain;
    background: #073875;
    border-radius: 12px;
    padding: 0.6rem;
    margin-bottom: 1.5rem;
}

.maintenance-panel span {
    display: inline-flex;
    background: #edf4fc;
    color: var(--ots-blue-dark);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.maintenance-panel h1 {
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    line-height: 1;
    font-weight: 900;
    margin-bottom: 1rem;
}

.maintenance-panel p {
    color: var(--ots-muted);
    font-size: 1.08rem;
    margin: 0 auto;
    max-width: 520px;
}

.maintenance-admin-toggle {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 1rem;
}

.maintenance-admin-toggle p {
    color: #7c2d12;
    margin: 0.25rem 0 0;
}

.maintenance-admin-toggle .form-switch {
    min-width: 110px;
    font-weight: 800;
}

.homepage-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: stretch;
    border: 1px solid var(--ots-line);
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.9rem;
}

.homepage-picker__column {
    min-width: 0;
}

.homepage-picker__column .form-select {
    min-height: 230px;
    background: #fff;
}

.homepage-picker__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    justify-content: center;
}

.homepage-picker__actions .btn {
    min-width: 48px;
    font-weight: 800;
}

.homepage-picker__list-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.twofa-secret {
    display: inline-block;
    background: #0f1f38;
    color: #fff;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .homepage-picker {
        grid-template-columns: 1fr;
    }

    .homepage-picker__actions {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.theme-gradient-preview {
    min-height: 96px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--ots-line);
    color: #0f172a;
    font-weight: 900;
}

.admin-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-token-list span {
    display: inline-flex;
    background: #edf4fc;
    border: 1px solid #cfe0f4;
    color: var(--ots-blue-dark);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-weight: 700;
    font-size: 0.82rem;
}

.rms-wizard {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.rms-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #fff;
    border: 1px solid var(--ots-line);
    border-radius: 10px;
    padding: 0.8rem;
    color: var(--ots-muted);
    font-weight: 700;
}

.rms-step b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background: #e2e8f0;
    color: #334155;
}

.rms-step.active {
    border-color: #9ec2f8;
    color: var(--ots-ink);
}

.rms-step.active b {
    background: var(--ots-blue);
    color: #fff;
}

/* Marketplace layout inspired by the provided reference, branded for On The Spot Hardware. */
.site-header {
    box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}

.main-nav {
    background: #073875;
    min-height: 108px;
    padding: 0;
    position: relative;
    overflow: visible;
}

.header-shell {
    gap: 1.1rem;
}

.navbar-brand {
    margin-right: 0;
    margin-left: 40px;
    padding: 0 1rem 0 0.55rem;
    min-height: 108px;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.navbar-brand::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: -38px;
    right: -30px;
    background: #fff;
    border-radius: 10px;
    transform: skewX(-24deg);
    transform-origin: center;
    box-shadow: 0 8px 20px rgba(10, 24, 52, 0.2);
    z-index: -1;
}

.navbar-brand::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -140px;
    width: 160px;
    background: #072f62;
    clip-path: polygon(0 0, 100% 0, 66% 100%, 0 100%);
    z-index: -2;
}

.brand-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.2rem;
}

.brand-logo-frame.logo-blend-enabled {
    border-radius: 0;
    padding: 0.15rem 0.2rem;
    background: transparent;
    box-shadow: none;
}

.brand-logo {
    width: 156px;
    height: 74px;
    margin-right: 0;
    object-fit: contain;
}

.brand-logo.logo-blend-enabled {
    border-radius: 10px;
    mix-blend-mode: multiply;
    filter: contrast(1.08) saturate(1.08) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.address-chip {
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    min-width: 150px;
    line-height: 1.1;
}

.address-chip i {
    font-size: 2rem;
}

.address-chip span {
    font-size: 0.88rem;
    font-weight: 500;
}

.address-chip strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.address-chip:hover,
.header-actions a:hover {
    color: #fff;
}

.search-wrap {
    max-width: 835px;
    min-height: 62px;
    display: grid;
    grid-template-columns: 86px minmax(170px, 1fr) 104px;
    align-items: center;
    background: #fff;
    border: 5px solid #9ec2f8;
    border-radius: 32px;
    overflow: visible;
}

.search-scope {
    height: 52px;
    border: 0;
    border-right: 1px solid #d9e0ea;
    border-radius: 27px 0 0 27px;
    background: #fff;
    color: #071b36;
    font-weight: 900;
    font-size: 1.05rem;
}

.search-input {
    height: 52px;
    min-width: 170px;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    font-size: 1.02rem;
    font-weight: 500;
    padding-left: 1.05rem;
}

.search-btn {
    display: grid;
    place-items: center;
    width: 100%;
    height: 52px;
    border-radius: 0 27px 27px 0;
    background: #9fc0f4;
    color: #061f3f;
    border: 0;
    font-size: 1.02rem;
    font-weight: 900;
}

.search-btn:hover {
    background: #8fb6ef;
    color: #061f3f;
}

.search-suggestions {
    left: 86px;
    right: 104px;
    top: 64px;
}

.header-actions {
    align-items: center;
    gap: 1.25rem;
    color: #fff;
}

.header-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    line-height: 1.08;
    font-size: 0.84rem;
    font-weight: 500;
}

.header-actions i {
    font-size: 2rem;
}

.header-actions strong {
    font-size: 1rem;
    font-weight: 800;
}

.quote-link {
    position: relative;
    padding: 0;
    font-size: 2rem;
}

.quote-link:hover {
    background: transparent;
}

.quote-link b {
    position: absolute;
    right: -9px;
    top: 10px;
    min-width: 20px;
    height: 20px;
    font-size: 0.72rem;
}

.category-bar {
    height: 57px;
    display: flex;
    align-items: center;
    background: #f3f5f8;
    border-bottom: 1px solid #d5dbe5;
    padding: 0;
}

.category-scroll {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
    white-space: nowrap;
}

.category-bar a,
.menu-button {
    color: #242933;
    font-weight: 700;
    font-size: 0.92rem;
}

.menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 1.05rem;
}

.menu-button .bi-list {
    font-size: 1.6rem;
}

.bar-divider {
    width: 1px;
    height: 26px;
    background: #cbd3df;
}

.home-shell {
    background: #bcd7f6;
    padding-top: 16px !important;
}

.market-layout {
    display: grid;
    grid-template-columns: 438px minmax(0, 1fr);
    gap: 24px;
    max-width: 1864px;
    margin: 0 auto;
}

.market-content {
    min-width: 0;
}

.category-panel {
    background: #123a78;
    border: 0;
    border-radius: 8px 8px 0 0;
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.category-panel-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 18px 12px;
}

.category-panel-search i {
    color: rgba(255,255,255,0.85);
}

.category-panel-search .form-control {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.92rem;
}

.category-panel-search .form-control::placeholder {
    color: rgba(255,255,255,0.72);
}

.category-panel-search .form-control:focus {
    border-color: rgba(255,255,255,0.5);
    box-shadow: none;
}

.category-panel-list {
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 8px 0 14px;
    height: 720px;
    max-height: 720px;
}

.category-no-results {
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    padding: 12px 34px;
}

.category-panel a {
    display: grid;
    grid-template-columns: 26px 1fr 18px;
    align-items: center;
    gap: 12px;
    color: #fff;
    border-bottom: 0;
    height: 48px;
    padding: 0 34px;
    font-size: 1.02rem;
    font-weight: 500;
}

.category-panel a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.category-panel a > i:first-child {
    color: #fff;
    font-size: 1.05rem;
}

.category-panel a > i:last-child {
    color: rgba(255,255,255,0.78);
}

.hero-banner {
    min-height: 375px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background-color: #0e4f93;
    background-image:
        linear-gradient(90deg, rgba(5,22,54,0.9) 0%, rgba(5,22,54,0.78) 38%, rgba(5,22,54,0.38) 66%, rgba(5,22,54,0.14) 100%),
        url("../images/hardware-hero-real.jpg.png");
    background-position: center, right center;
    background-size: 100% 100%, cover;
    background-repeat: no-repeat;
    position: relative;
}

.hero-text {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-image-wrap {
    display: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-banner h1 {
    max-width: 560px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 3px 16px rgba(0,0,0,0.32);
    font-weight: 900;
}

.hero-banner p {
    max-width: 520px;
    font-weight: 500;
}

.hero-actions .btn {
    min-width: 128px;
    border-radius: 24px;
    font-weight: 900;
}

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

.deal-card {
    min-height: 336px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0d56ad 0%, #dcecff 100%);
    border-radius: 8px 8px 0 0;
    color: #fff;
    padding: 24px;
    overflow: hidden;
}

.deal-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 1.12rem;
    line-height: 1.25;
}

.deal-top a {
    color: #fff;
    font-weight: 800;
    font-size: 0.94rem;
}

.deal-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 22px 0;
}

.deal-products span {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255,255,255,0.82);
    color: #1f2937;
    border-radius: 8px;
    padding: 0.8rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.deal-products i {
    color: var(--ots-blue);
    font-size: 1.8rem;
}

.deal-price {
    margin-top: auto;
    color: #071b36;
    font-size: 1.45rem;
    font-weight: 900;
}

.deal-card .btn {
    align-self: flex-end;
    min-width: 172px;
    border-radius: 24px;
    margin-top: 1rem;
}

.shell-card {
    background:
        linear-gradient(180deg, rgba(13,86,173,0.96), rgba(208,226,247,0.92)),
        url("../images/product-placeholder.svg") bottom right / 70% auto no-repeat;
}

.shell-card p {
    color: rgba(255,255,255,0.9);
    margin: 1rem 0;
    max-width: 380px;
    font-weight: 500;
}

.home-shell > .promo-strip,
.home-shell > .section-head,
.home-shell > .product-grid {
    max-width: 1864px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1199px) {
    .market-layout {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 16px;
    }

    .category-panel a {
        height: 44px;
        padding: 0 22px;
        font-size: 0.98rem;
    }

    .category-panel-list {
        height: 660px;
        max-height: 660px;
    }

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

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

@media (max-width: 991px) {
    .main-nav .container-fluid {
        flex-wrap: nowrap;
    }

    .brand-text {
        display: none;
    }

    .search-wrap {
        min-width: 0;
    }

    .market-layout,
    .cart-layout,
    .quote-request-layout,
    .quote-detail-grid,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .main-nav {
        min-height: 82px;
    }

    .navbar-brand {
        min-height: 82px;
        margin-left: 24px;
        padding: 0 0.6rem 0 0.35rem;
    }

    .navbar-brand::before {
        top: 7px;
        bottom: 7px;
        left: -22px;
        right: -16px;
        border-radius: 8px;
        transform: skewX(-20deg);
    }

    .navbar-brand::after {
        left: -88px;
        width: 104px;
    }

    .brand-logo {
        width: 92px;
        height: 54px;
    }

    .brand-logo-frame.logo-blend-enabled {
        border-radius: 10px;
        padding: 0.15rem 0.25rem;
    }

    .search-wrap {
        min-height: 48px;
        grid-template-columns: 58px minmax(100px, 1fr) 78px;
        border-width: 3px;
    }

    .search-scope,
    .search-input,
    .search-btn {
        height: 42px;
        font-size: 0.88rem;
    }

    .search-scope {
        border-radius: 23px 0 0 23px;
    }

    .search-btn {
        border-radius: 0 23px 23px 0;
    }

    .deal-panel,
    .cart-summary,
    .quote-sidebar {
        position: static;
    }

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

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

    .admin-sidebar {
        position: fixed;
        left: -290px;
        width: 282px;
        transition: left 0.2s ease;
    }

    .admin-sidebar.open {
        left: 0;
    }

    .admin-grid-2,
    .admin-stat-grid,
    .rms-wizard {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .admin-top-search {
        order: 3;
        width: 100%;
    }

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

@media (max-width: 767px) {
    .hero-banner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-text {
        padding: 1.25rem;
    }

    .hero-image-wrap {
        width: 100%;
        min-height: 220px;
    }

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

    .listing-head,
    .section-head,
    .admin-head,
    .listing-tools,
    .admin-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-item {
        grid-template-columns: 72px 1fr;
    }

    .cart-item img {
        width: 72px;
        height: 72px;
    }

    .cart-qty {
        grid-column: 1 / -1;
    }

    .deal-card {
        min-height: 260px;
    }

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

@media (max-width: 520px) {
    .product-grid,
    .compact-grid,
    .promo-strip {
        grid-template-columns: 1fr;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .quote-link span {
        display: none !important;
    }
}

@media print {
    .admin-nav,
    .print-hide,
    .whatsapp-float {
        display: none !important;
    }

    .admin-main {
        padding: 0;
    }

    .admin-card {
        border: 0;
    }
}
