:root {
    color-scheme: light;
    --ink: #18212b;
    --muted: #647281;
    --line: #d7dde4;
    --panel: #ffffff;
    --bg: #f3f6f8;
    --blue: #245f9f;
    --green: #167055;
    --amber: #b66a16;
    --red: #a33a32;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
}
button, input { font: inherit; }
.app-shell {
    display: grid;
    grid-template-columns: 276px 1fr;
    min-height: 100vh;
}
.sidebar {
    background: #101820;
    color: #f6f8fb;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #fff;
    text-decoration: none;
}
.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--blue);
    border-radius: 6px;
    font-weight: 700;
}
.brand small, .tenant-card span { display: block; color: #b8c4cf; font-size: 12px; margin-top: 3px; line-height: 1.4; }
nav { display: grid; gap: 5px; }
nav a {
    color: #dce5ed;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}
nav a.active, nav a:hover { background: #22313f; color: #fff; }
.tenant-card {
    margin-top: auto;
    padding: 14px;
    border: 1px solid #2b3b49;
    border-radius: 8px;
}
main { min-width: 0; }
.topbar {
    min-height: 72px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    position: sticky;
    top: 0;
    z-index: 3;
}
.search { flex: 1; max-width: 720px; }
.search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
}
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 6px;
    padding: 10px 13px;
    cursor: pointer;
}
button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.content { padding: 26px; }
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}
.page-heading h1, .store-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: 0;
}
.page-heading p, .store-hero p { margin: 0; color: var(--muted); max-width: 760px; line-height: 1.55; }
.eyebrow {
    color: var(--green) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}
.cert-box {
    width: min(360px, 100%);
    background: #fff8eb;
    border: 1px solid #efc88d;
    border-radius: 8px;
    padding: 14px;
}
.cert-box span { display: block; color: #70502a; font-size: 13px; line-height: 1.45; margin-top: 4px; }
.metric-grid, .rule-grid, .kanban {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.metric-grid div, .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}
.metric-grid span { color: var(--muted); display: block; font-size: 13px; margin-bottom: 8px; }
.metric-grid strong { font-size: 26px; letter-spacing: 0; }
.split {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(500px, 1.2fr);
    gap: 18px;
}
.panel h2 { font-size: 18px; margin: 0 0 14px; }
.panel p { color: var(--muted); line-height: 1.5; }
.work-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.work-list li { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.work-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.work-list span { color: var(--muted); display: block; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #526171; font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e8f1fb;
    color: var(--blue);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    margin: 2px;
}
.pill.warning { background: #fff0d9; color: var(--amber); }
.store-hero {
    min-height: 360px;
    display: flex;
    align-items: end;
    padding: 34px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(16, 24, 32, .88), rgba(16, 24, 32, .45)),
        url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: #fff;
    margin-bottom: 18px;
}
.store-hero p, .store-hero .eyebrow { color: #eef4f7 !important; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.category-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.category-strip a {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .topbar, .page-heading { flex-direction: column; align-items: stretch; }
    .metric-grid, .rule-grid, .kanban, .split, .category-strip { grid-template-columns: 1fr; }
}

.storefront-body {
    --store-ink: #111827;
    --store-muted: #5b6675;
    --store-line: #d8e0e8;
    --store-panel: #ffffff;
    --store-bg: #f4f7fa;
    --store-blue: #155e9f;
    --store-blue-dark: #0f3558;
    --store-red: #bc2f2a;
    --store-green: #19735a;
    --store-gold: #c98122;
    background: var(--store-bg);
    color: var(--store-ink);
}
.notice-bar {
    display: flex;
    justify-content: center;
    gap: 34px;
    background: #0f1720;
    color: #f7fafc;
    font-size: 13px;
    padding: 9px 24px;
}
.commerce-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--store-line);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(15, 23, 32, .06);
}
.header-row {
    display: grid;
    grid-template-columns: 270px minmax(360px, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 18px 38px 14px;
}
.commerce-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--store-ink);
    text-decoration: none;
}
.commerce-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--store-blue);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0;
}
.commerce-brand strong { display: block; font-size: 23px; line-height: 1; }
.commerce-brand small { display: block; color: var(--store-muted); font-size: 12px; margin-top: 5px; }
.commerce-search {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 112px;
    min-width: 0;
    border: 2px solid var(--store-blue);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.commerce-search select,
.commerce-search input,
.commerce-search button {
    border: 0;
    border-radius: 0;
    min-height: 46px;
}
.commerce-search select {
    padding: 0 12px;
    color: var(--store-ink);
    background: #eef4f9;
    border-right: 1px solid #c8d7e3;
}
.commerce-search input {
    min-width: 0;
    padding: 0 14px;
}
.commerce-search button {
    background: var(--store-blue);
    color: #fff;
    font-weight: 800;
}
.commerce-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    white-space: nowrap;
}
.commerce-actions a {
    color: var(--store-ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.commerce-actions .login-link { color: var(--store-blue); }
.commerce-actions .cart-link {
    background: var(--store-green);
    color: #fff;
    padding: 11px 14px;
    border-radius: 8px;
}
.department-nav {
    display: flex;
    gap: 2px;
    padding: 0 38px;
    background: var(--store-blue-dark);
    overflow-x: auto;
}
.department-nav a {
    color: #fff;
    text-decoration: none;
    padding: 14px 18px;
    font-weight: 800;
    font-size: 14px;
}
.department-nav a:hover { background: rgba(255, 255, 255, .12); }
.commerce-hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(420px, 790px) minmax(340px, 440px);
    align-items: center;
    justify-content: space-between;
    gap: 46px;
    color: #fff;
    padding: 70px 6vw 92px;
    background:
        linear-gradient(90deg, rgba(11, 21, 32, .93) 0%, rgba(16, 37, 55, .80) 45%, rgba(16, 37, 55, .36) 100%),
        url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=2200&q=85') center/cover;
}
.hero-copy {
    max-width: 820px;
}
.commerce-hero .eyebrow,
.branch-band .eyebrow {
    color: #9fd2ff !important;
}
.commerce-hero h1 {
    margin: 8px 0 18px;
    max-width: 900px;
    font-size: clamp(42px, 5.4vw, 82px);
    line-height: .98;
    letter-spacing: 0;
}
.commerce-hero p {
    max-width: 760px;
    color: #eef5fa;
    font-size: 20px;
    line-height: 1.55;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.commerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 900;
}
.commerce-button.primary {
    background: var(--store-red);
    border-color: var(--store-red);
}
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.trust-row span {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}
.hero-commerce-card {
    background: rgba(255, 255, 255, .96);
    color: var(--store-ink);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}
.finder-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}
.finder-head strong { font-size: 22px; }
.finder-head span {
    color: var(--store-blue);
    font-size: 12px;
    font-weight: 900;
}
.hero-commerce-card label {
    display: block;
    color: var(--store-muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}
.finder-control {
    display: grid;
    grid-template-columns: 1fr 84px;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.finder-control input,
.finder-control button {
    border: 0;
    border-radius: 0;
}
.finder-control input { padding: 12px; }
.finder-control button {
    background: var(--store-blue);
    color: #fff;
    font-weight: 900;
}
.availability-list {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}
.availability-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: #f2f6f9;
    border-radius: 6px;
    padding: 11px 12px;
}
.availability-list span { color: var(--store-muted); }
.hero-commerce-card a,
.commerce-strip a,
.business-tools a,
.section-heading a,
.promo-tile a,
.commerce-footer a {
    color: var(--store-blue);
    font-weight: 900;
    text-decoration: none;
}
.commerce-strip {
    max-width: 1440px;
    margin: -44px auto 0;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    position: relative;
    z-index: 3;
}
.commerce-strip a {
    display: grid;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 32, .08);
}
.commerce-strip span,
.business-tools p,
.department-card span,
.service-grid span,
.brand-showcase p,
.promo-tile p,
.commerce-footer span {
    color: var(--store-muted);
    line-height: 1.48;
}
.business-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1440px;
    margin: 34px auto 0;
    padding: 0 28px;
}
.business-tools article,
.department-card,
.product-card,
.service-grid article,
.promo-tile {
    background: #fff;
    border: 1px solid var(--store-line);
    border-radius: 8px;
}
.tool-feature {
    min-height: 210px;
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 11px;
}
.tool-feature > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf3fb;
    color: var(--store-blue);
    font-weight: 900;
}
.tool-feature strong {
    font-size: 20px;
}
.tool-feature p {
    margin: 0;
}
.store-section {
    max-width: 1440px;
    margin: 58px auto 0;
    padding: 0 28px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 22px;
    margin-bottom: 20px;
}
.section-heading h2,
.brand-showcase h2,
.branch-band h2,
.promo-large h2 {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 46px);
    letter-spacing: 0;
}
.department-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.department-card {
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}
.department-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 19, 30, .15), rgba(9, 19, 30, .86)),
        var(--dept-image, url('https://images.unsplash.com/photo-1581092334247-6ac26004b504?auto=format&fit=crop&w=900&q=80')) center/cover;
    z-index: -1;
    transition: transform .22s ease;
}
.department-card:hover::before { transform: scale(1.04); }
.dept-kicker {
    color: #d7efff !important;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.department-card strong { font-size: 24px; line-height: 1.05; }
.department-card span { color: #ecf4f8; }
.department-hvac { --dept-image: url('https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=900&q=80'); }
.department-commercial { --dept-image: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80'); }
.department-mini { --dept-image: url('https://images.unsplash.com/photo-1632923057155-8b673a26a57b?auto=format&fit=crop&w=900&q=80'); }
.department-refrigerant { --dept-image: url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=900&q=80'); }
.department-motors { --dept-image: url('https://images.unsplash.com/photo-1581092334707-11c5f4f2f5f0?auto=format&fit=crop&w=900&q=80'); }
.department-controls { --dept-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=900&q=80'); }
.department-plumbing { --dept-image: url('https://images.unsplash.com/photo-1607472586893-edb57bdc0e39?auto=format&fit=crop&w=900&q=80'); }
.department-electrical { --dept-image: url('https://images.unsplash.com/photo-1621905251918-48416bd8575a?auto=format&fit=crop&w=900&q=80'); }
.merchandising-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 16px;
}
.promo-tile {
    min-height: 260px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(135deg, rgba(17, 42, 65, .94), rgba(21, 94, 159, .72)),
        url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=1200&q=85') center/cover;
    color: #fff;
}
.promo-tile span {
    color: #9fd2ff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.promo-tile h2,
.promo-tile h3 {
    margin: 8px 0 10px;
}
.promo-tile p { color: #eef6fb; max-width: 700px; }
.promo-tile a { color: #fff; }
.promo-accent {
    background:
        linear-gradient(135deg, rgba(35, 27, 18, .93), rgba(201, 129, 34, .70)),
        url('https://images.unsplash.com/photo-1581093458791-9d09cc89f121?auto=format&fit=crop&w=900&q=85') center/cover;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.product-card {
    padding: 16px;
    display: grid;
    gap: 11px;
    min-height: 360px;
    transition: box-shadow .18s ease, transform .18s ease;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 32, .11);
}
.product-image {
    height: 134px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(21, 94, 159, .12), rgba(25, 115, 90, .10)),
        #e9eff4;
    color: #3b556e;
}
.product-image span {
    font-size: 36px;
    font-weight: 900;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}
.product-card .sku {
    color: var(--store-blue);
    font-size: 12px;
    font-weight: 900;
}
.stock-dot {
    color: var(--store-green);
    font-size: 12px;
    font-weight: 900;
}
.product-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.26;
}
.product-card p {
    margin: 0;
    color: var(--store-muted);
    line-height: 1.4;
}
.product-flags { min-height: 30px; }
.product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}
.product-actions button {
    background: var(--store-blue);
    color: #fff;
    border-color: var(--store-blue);
    font-weight: 900;
}
.product-actions a {
    color: var(--store-blue);
    font-weight: 900;
    text-decoration: none;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.service-grid article {
    min-height: 178px;
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 10px;
}
.service-grid strong { font-size: 19px; }
.brand-showcase {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 34px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    padding: 30px;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.brand-grid a {
    min-height: 82px;
    display: grid;
    place-items: center;
    background: #f7fafc;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    color: var(--store-ink);
    text-decoration: none;
    font-weight: 900;
}
.branch-band {
    max-width: none;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(15, 23, 32, .96), rgba(15, 53, 88, .86)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=85') center/cover;
    color: #fff;
    padding: 46px 6vw;
}
.branch-band p,
.branch-band span {
    color: #dce9f2;
    display: block;
}
.branch-band strong { font-size: 30px; }
.commerce-footer {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 30px;
    padding: 44px 6vw;
    background: #fff;
    border-top: 1px solid var(--store-line);
}
.commerce-footer div {
    display: grid;
    align-content: start;
    gap: 9px;
}
.footer-badge {
    display: inline-flex !important;
    width: fit-content;
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef4f9;
    color: var(--store-blue) !important;
    font-size: 12px;
    font-weight: 900;
}
.commerce-footer .employee-login {
    margin-top: 10px;
    color: #6a7380;
    font-size: 13px;
}

@media (max-width: 1180px) {
    .header-row,
    .commerce-hero,
    .brand-showcase,
    .merchandising-grid,
    .commerce-footer {
        grid-template-columns: 1fr;
    }
    .commerce-header { position: static; }
    .commerce-actions { flex-wrap: wrap; }
    .commerce-strip,
    .business-tools,
    .department-grid,
    .product-grid,
    .service-grid,
    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .notice-bar {
        display: grid;
        gap: 5px;
        text-align: center;
    }
    .header-row,
    .store-section,
    .commerce-strip,
    .business-tools {
        padding-left: 16px;
        padding-right: 16px;
    }
    .commerce-search,
    .finder-control,
    .product-actions {
        grid-template-columns: 1fr;
    }
    .commerce-search select,
    .commerce-search input,
    .commerce-search button,
    .finder-control input,
    .finder-control button {
        border-radius: 0;
        min-height: 44px;
    }
    .commerce-hero {
        min-height: auto;
        padding: 42px 18px 72px;
    }
    .commerce-strip,
    .business-tools,
    .department-grid,
    .product-grid,
    .service-grid,
    .brand-grid {
        grid-template-columns: 1fr;
    }
    .section-heading,
    .branch-band {
        flex-direction: column;
        align-items: flex-start;
    }
}
