:root {
    --bg: #f5f7f8;
    --surface: #ffffff;
    --surface-2: #eef3f4;
    --ink: #12181b;
    --muted: #667278;
    --line: #dce4e7;
    --graphite: #11181b;
    --graphite-2: #182226;
    --cyan: #00a7d8;
    --cyan-2: #dff7ff;
    --green: #17a65a;
    --amber: #f0a202;
    --red: #de3c3c;
    --shadow: 0 20px 60px rgba(15, 25, 30, .12);
    --radius: 8px;
    --font: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Production retail storefront refresh */
.public-shell {
    background: #f3f6f8;
}

.public-shell main {
    padding-bottom: 0;
}

.public-header {
    height: auto;
    display: block;
    padding: 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #d9e3e8;
}

.public-topbar,
.public-mainbar,
.public-nav-row,
.section-shell {
    width: min(1320px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.public-topbar {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #667278;
    font-size: 13px;
    font-weight: 700;
}

.public-mainbar {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.public-nav-row {
    min-height: 46px;
    justify-content: flex-start;
    overflow-x: auto;
}

.catalog-button,
.header-contact {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.catalog-button {
    padding: 0 16px;
    background: #10191d;
    color: #fff;
    box-shadow: 0 14px 30px rgba(16, 25, 29, .16);
}

.catalog-button svg {
    width: 18px;
    height: 18px;
}

.header-search {
    height: 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border: 2px solid #079fd0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.header-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    padding: 0 16px;
    outline: 0;
    color: #12181b;
    font-size: 15px;
    font-weight: 650;
}

.header-search button {
    border: 0;
    padding: 0 20px;
    background: #079fd0;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.header-contact {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 0 14px;
    border: 1px solid #dce4e7;
    color: #12181b;
    background: #f8fbfc;
}

.header-contact strong,
.header-contact span {
    line-height: 1.1;
}

.header-contact span {
    color: #667278;
    font-size: 12px;
}

.retail-hero {
    width: min(1320px, calc(100% - 40px));
    margin: 22px auto 22px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 250px;
    gap: 16px;
    align-items: stretch;
}

.hero-catalog,
.hero-deals,
.hero-promo,
.product-tile,
.promo-card,
.news-card,
.lead-panel,
.catalog-sidebar,
.product-buy-card,
.product-gallery {
    border: 1px solid #dce4e7;
    border-radius: 8px;
    background: #fff;
}

.hero-catalog,
.hero-deals {
    padding: 18px;
    min-height: 430px;
}

.hero-catalog > strong,
.hero-deals > strong,
.catalog-sidebar > strong {
    display: block;
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.2;
}

.hero-category-list,
.deal-list {
    display: grid;
    gap: 8px;
}

.hero-category-list a,
.deal-list a,
.category-chips a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #12181b;
    font-size: 14px;
    font-weight: 800;
    transition: background .18s ease, color .18s ease;
}

.hero-category-list a:hover,
.category-chips a:hover,
.category-chips a.active {
    background: #eaf7fb;
    color: #007ea4;
}

.hero-category-list svg,
.category-chips svg {
    width: 22px;
    height: 22px;
    color: #079fd0;
    flex: 0 0 auto;
}

.deal-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #e4edf1;
    background: #f8fbfc;
}

.deal-list span {
    color: #de3c3c;
    font-size: 19px;
    font-weight: 950;
}

.deal-list em,
.hero-category-list em,
.category-card em,
.promo-card em {
    font-style: normal;
}

.hero-promo {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
    overflow: hidden;
    box-shadow: 0 20px 54px rgba(15, 25, 30, .1);
}

.hero-promo .hero-copy {
    max-width: none;
    padding: 44px 18px 44px 42px;
    align-self: center;
}

.hero-promo h1 {
    margin: 0;
    max-width: 520px;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-promo p {
    max-width: 500px;
    margin: 18px 0 0;
    color: #667278;
    font-size: 17px;
    line-height: 1.55;
}

.hero-promo .hero-media {
    min-height: 430px;
    border-radius: 0;
    box-shadow: none;
    background: #eef3f4;
}

.hero-promo .hero-media::before {
    background: linear-gradient(90deg, #fff 0, rgba(255, 255, 255, .74) 10%, transparent 34%);
}

.hero-promo .hero-media img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    object-position: center;
}

.section-shell {
    margin-top: 0;
    margin-bottom: 34px;
}

.category-showcase {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    min-height: 154px;
    padding: 16px;
    box-shadow: none;
}

.category-card .product-icon {
    width: 48px;
    height: 48px;
}

.category-card .product-icon svg {
    width: 30px;
    height: 30px;
}

.category-card strong {
    font-size: 16px;
}

.category-card em {
    display: -webkit-box;
    overflow: hidden;
    color: #667278;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-products {
    display: block;
}

.home-products .section-heading {
    margin-bottom: 16px;
}

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

.product-grid,
.catalog-grid {
    gap: 14px;
}

.product-tile {
    min-height: 390px;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
    transform-style: flat;
}

.product-tile:hover {
    border-color: #079fd0;
    box-shadow: 0 18px 46px rgba(15, 25, 30, .12);
}

.product-tile::before {
    display: none;
}

.product-photo {
    height: 210px;
    display: grid;
    place-items: center;
    padding: 12px;
    background: #f7fafb;
    border-bottom: 1px solid #e2ebef;
}

.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-photo.fallback .product-icon {
    width: 118px;
    height: 118px;
}

.product-meta {
    margin: 0;
    padding: 16px 16px 0;
}

.product-meta h3 {
    min-height: 48px;
    margin: 7px 0 8px;
    font-size: 17px;
    line-height: 1.25;
}

.product-meta p {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-footer {
    padding: 14px 16px 0;
}

.product-footer strong,
.buy-price strong {
    color: #10191d;
    font-size: 22px;
    line-height: 1.1;
}

.price-stack strong {
    color: #de3c3c;
}

.price-stack del {
    color: #7a878d;
    font-size: 13px;
}

.discount-badge {
    top: 12px;
    left: 12px;
    right: auto;
    border-radius: 6px;
    background: #de3c3c;
}

.product-buy-card .discount-badge {
    position: static;
    align-self: flex-start;
}

.product-card-action {
    margin: 14px 16px 16px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #10191d;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.tile-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.lead-panel.compact {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    gap: 18px;
    padding: 22px;
    background: #10191d;
    color: #fff;
}

.lead-panel.compact p {
    color: #c4d0d5;
}

.lead-mini-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
}

.lead-mini-form textarea {
    grid-column: 1 / 4;
    min-height: 70px;
}

.lead-mini-form .primary-button {
    grid-row: span 2;
    height: 100%;
}

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

.promo-card {
    min-height: 210px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #edf9fd 100%);
}

.promo-card::after {
    display: none;
}

.assurance-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #10191d;
}

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

.catalog-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 170px;
    padding: 18px;
}

.catalog-sidebar .category-chips {
    display: grid;
    gap: 6px;
}

.catalog-sidebar .category-chips a {
    border: 0;
}

.catalog-results {
    min-width: 0;
}

.catalog-toolbar {
    width: 100%;
    margin-bottom: 16px;
    grid-template-columns: minmax(0, 1fr) 210px auto;
    background: #fff;
}

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

.content-page {
    padding-top: 28px;
}

.page-heading {
    margin-bottom: 22px;
}

.page-heading h1 {
    font-size: 40px;
    line-height: 1.08;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.news-card {
    min-height: 250px;
    padding: 22px;
    box-shadow: none;
}

.news-card.featured {
    grid-column: span 2;
    background: #10191d;
    color: #fff;
}

.news-card.featured p,
.news-card.featured div,
.news-card.featured time {
    color: #d0dde1;
}

.product-detail-page {
    padding-top: 24px;
}

.breadcrumb {
    display: inline-flex;
    margin-bottom: 14px;
    color: #079fd0;
    font-size: 14px;
    font-weight: 900;
}

.product-detail {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.product-gallery {
    padding: 14px;
}

.product-gallery-main {
    min-height: 430px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f7fafb;
}

.product-gallery-main img {
    width: 100%;
    height: 430px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumb {
    height: 92px;
    border: 1px solid #dce4e7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.gallery-thumb.active {
    border-color: #079fd0;
    box-shadow: inset 0 0 0 1px #079fd0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-copy,
.product-buy-card {
    padding: 24px;
}

.product-detail-copy {
    border: 1px solid #dce4e7;
    border-radius: 8px;
    background: #fff;
}

.product-detail-copy h1 {
    margin: 10px 0 14px;
    font-size: 34px;
    line-height: 1.12;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 7px 10px;
    border-radius: 8px;
    background: #eef3f4;
    color: #263238;
    font-size: 13px;
    font-weight: 800;
}

.product-buy-card {
    position: sticky;
    top: 170px;
    display: grid;
    gap: 14px;
}

.buy-price {
    display: grid;
    gap: 4px;
}

.product-buy-card p {
    margin: 0;
    color: #667278;
}

.inline-lead {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.site-footer {
    width: 100%;
    margin-top: 46px;
    padding: 38px max(20px, calc((100vw - 1320px) / 2)) 22px;
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, .7fr));
    gap: 28px;
    border-top: 1px solid #243239;
    background: #10191d;
    color: #fff;
}

.site-footer .brand {
    color: #fff;
}

.footer-brand p {
    max-width: 360px;
    margin: 16px 0 0;
    color: #b8c5ca;
}

.footer-column {
    display: grid;
    gap: 9px;
    align-content: start;
}

.footer-column strong {
    margin-bottom: 4px;
    font-size: 15px;
}

.footer-column a,
.footer-column span {
    color: #b8c5ca;
    font-size: 14px;
}

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

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #8fa0a7;
    font-size: 13px;
}

@media (max-width: 1180px) {
    .retail-hero {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .hero-deals {
        grid-column: 1 / -1;
        min-height: auto;
    }

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

    .featured-grid,
    .catalog-grid,
    .news-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .product-detail-copy {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .category-showcase,
    .assurance-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .public-topbar,
    .public-mainbar,
    .public-nav-row,
    .section-shell,
    .retail-hero {
        width: min(100% - 28px, 1320px);
    }

    .public-topbar {
        display: none;
    }

    .public-mainbar {
        grid-template-columns: 1fr auto;
        padding: 14px 0 10px;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .header-contact {
        display: none;
    }

    .public-nav-row {
        min-height: 44px;
        padding-bottom: 8px;
    }

    .retail-hero,
    .hero-promo,
    .catalog-layout,
    .lead-panel.compact,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .hero-catalog,
    .hero-deals {
        min-height: auto;
    }

    .hero-promo .hero-copy {
        padding: 30px 22px;
    }

    .hero-promo h1,
    .page-heading h1 {
        font-size: 32px;
    }

    .hero-promo .hero-media {
        min-height: 280px;
    }

    .hero-promo .hero-media img {
        min-height: 280px;
    }

    .deal-list,
    .category-showcase,
    .featured-grid,
    .catalog-grid,
    .promo-grid,
    .news-list,
    .news-cards,
    .assurance-band,
    .lead-mini-form,
    .catalog-toolbar,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar,
    .product-buy-card {
        position: static;
    }

    .product-detail-copy {
        grid-column: auto;
        grid-row: auto;
    }

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

    .news-card.featured,
    .footer-bottom {
        grid-column: auto;
    }

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

    .lead-mini-form textarea,
    .lead-mini-form .primary-button {
        grid-column: auto;
        grid-row: auto;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

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

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

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

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 0 34px;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(220, 228, 231, .85);
    backdrop-filter: blur(18px);
}

.public-header {
    grid-template-columns: auto minmax(0, 1fr);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: var(--cyan);
    background: #0f171a;
    border: 1px solid rgba(0, 167, 216, .5);
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 167, 216, .18);
}

.brand-mark svg {
    width: 25px;
    height: 25px;
}

.brand-mark.solo {
    margin: 0 auto 16px;
}

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

.site-nav {
    justify-content: center;
}

.public-header .site-nav {
    justify-content: flex-end;
}

.site-nav a,
.nav-ghost,
.nav-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.site-nav a:hover,
.site-nav a.active,
.nav-ghost:hover {
    color: var(--ink);
    background: var(--surface-2);
}

.nav-cta,
.primary-button {
    position: relative;
    overflow: hidden;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid #008eb8;
    border-radius: var(--radius);
    background: #079fd0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 167, 216, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nav-cta::after,
.primary-button::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
    transition: transform .55s ease;
}

.nav-cta:hover::after,
.primary-button:hover::after {
    transform: translateX(110%);
}

.nav-cta:hover,
.primary-button:hover {
    transform: translateY(-1px);
    background: #008eb8;
    box-shadow: 0 16px 28px rgba(0, 167, 216, .28);
}

.primary-button.full,
.ghost-button.full {
    width: 100%;
}

.primary-button.compact {
    min-height: 38px;
    padding: 0 14px;
}

.ghost-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.ghost-button:hover {
    transform: translateY(-1px);
    background: var(--surface-2);
}

.ghost-button.light {
    background: rgba(255, 255, 255, .82);
    border-color: rgba(255, 255, 255, .62);
}

.hero {
    min-height: 680px;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(420px, .72fr) minmax(0, 1.28fr);
    gap: 36px;
    align-items: center;
    padding: 48px max(34px, calc((100vw - 1540px) / 2)) 58px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    min-width: 0;
    max-width: 720px;
}

.hero h1 {
    margin: 0;
    font-size: 62px;
    line-height: 1.02;
    font-weight: 860;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.hero p {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-media {
    position: relative;
    min-width: 0;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #eaf0f2;
    box-shadow: var(--shadow);
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .34), transparent 34%);
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.category-showcase {
    width: min(1320px, calc(100% - 44px));
    margin: -34px auto 64px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    position: relative;
    z-index: 3;
}

.category-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 46px rgba(15, 25, 30, .1);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.category-card:hover {
    border-color: rgba(0, 167, 216, .55);
    box-shadow: 0 24px 60px rgba(15, 25, 30, .14);
}

.category-card .product-icon {
    width: 58px;
    height: 58px;
}

.category-card .product-icon svg {
    width: 36px;
    height: 36px;
}

.category-card strong {
    font-size: 19px;
    line-height: 1.2;
}

.category-card em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

.promo-strip {
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto 68px;
}

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

.promo-card {
    position: relative;
    min-height: 220px;
    padding: 24px;
    border: 1px solid rgba(0, 167, 216, .34);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff 0%, #eefaff 100%);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.promo-card::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 22px solid rgba(0, 167, 216, .1);
}

.promo-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 18px 48px rgba(0, 167, 216, .16);
}

.promo-card span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--graphite);
    color: #fff;
    font-weight: 900;
}

.promo-card h3 {
    margin: 18px 0 10px;
    font-size: 22px;
    line-height: 1.18;
}

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

.promo-card em {
    display: block;
    margin-top: 18px;
    color: var(--green);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

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

.metric-band {
    width: min(1320px, calc(100% - 44px));
    margin: -30px auto 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.assurance-band {
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto 68px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--graphite);
    color: #fff;
    overflow: hidden;
}

.assurance-band div {
    min-height: 136px;
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.assurance-band div:last-child {
    border-right: 0;
}

.assurance-band strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.assurance-band span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, .72);
}

.metric {
    min-height: 126px;
    padding: 24px;
    border-right: 1px solid var(--line);
}

.metric:last-child {
    border-right: 0;
}

.metric span,
.admin-metric span,
.caption {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.metric strong,
.admin-metric strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
    line-height: 1.1;
}

.metric em,
.admin-metric em {
    display: block;
    margin-top: 8px;
    color: var(--green);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.section-grid,
.news-strip,
.catalog-page,
.product-detail {
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto 68px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

.section-heading,
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.section-heading h2,
.panel-heading h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.section-heading a,
.panel-heading a,
.actions a {
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
}

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

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

.product-tile {
    position: relative;
    min-height: 288px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.discount-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--graphite);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(17, 24, 27, .18);
}

.product-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transition: left .55s ease;
}

.product-tile:hover {
    border-color: rgba(0, 167, 216, .55);
    box-shadow: 0 18px 42px rgba(15, 25, 30, .12);
}

.product-tile:hover::before {
    left: 110%;
}

.product-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--cyan);
    background: var(--cyan-2);
}

.product-icon svg {
    width: 46px;
    height: 46px;
}

.product-icon.low {
    color: var(--amber);
    background: #fff3d5;
}

.product-icon.critical {
    color: var(--red);
    background: #ffe1e1;
}

.product-icon.ok {
    color: var(--green);
    background: #e0f7ea;
}

.product-meta {
    margin-top: 18px;
}

.product-meta span,
.sku-line {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-meta h3 {
    margin: 6px 0 8px;
    font-size: 19px;
    line-height: 1.22;
}

.product-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.product-footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-stack {
    display: grid;
    gap: 2px;
}

.price-stack del {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.stock-pill,
.status-dot {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: var(--surface-2);
    color: var(--muted);
    white-space: nowrap;
}

.stock-pill.ok,
.status-won,
.status-published {
    color: var(--green);
    background: #e3f8ec;
}

.stock-pill.low,
.status-waiting,
.status-quote,
.status-draft {
    color: #9b6800;
    background: #fff2cf;
}

.stock-pill.critical,
.status-lost {
    color: var(--red);
    background: #ffe3e3;
}

.status-new,
.status-processing {
    color: var(--cyan);
    background: var(--cyan-2);
}

.tile-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.lead-panel,
.admin-panel,
.login-box,
.news-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.lead-panel {
    position: sticky;
    top: 94px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.lead-panel h2,
.login-box h1 {
    margin: 0 0 8px;
}

.lead-panel p,
.login-box p,
.page-heading p {
    margin: 0 0 20px;
    color: var(--muted);
}

.stack-form {
    display: grid;
    gap: 14px;
}

.stack-form.dense {
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 167, 216, .14);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.news-list,
.news-cards {
    display: grid;
    gap: 14px;
}

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

.news-row,
.news-card {
    padding: 20px;
}

.news-row {
    border-left: 3px solid var(--cyan);
    background: var(--surface);
}

.news-row time,
.news-card time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.news-row h3,
.news-card h2 {
    margin: 8px 0;
    font-size: 18px;
}

.news-row p,
.news-card p {
    color: var(--muted);
    margin: 0;
}

.page-heading {
    padding: 54px 0 24px;
}

.page-heading h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
}

.catalog-toolbar,
.admin-toolbar {
    display: grid;
    grid-template-columns: 1fr 210px auto;
    gap: 10px;
    margin-bottom: 14px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.category-chips a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.category-chips a.active,
.category-chips a:hover {
    color: #fff;
    border-color: var(--graphite);
    background: var(--graphite);
}

.product-detail {
    min-height: calc(100vh - 160px);
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 44px;
    align-items: center;
    padding-top: 40px;
}

.product-detail-visual {
    min-height: 480px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff, #edf4f6);
}

.product-icon.mega {
    width: 260px;
    height: 260px;
}

.product-icon.mega svg {
    width: 160px;
    height: 160px;
}

.product-detail-copy h1 {
    margin: 8px 0 14px;
    font-size: 44px;
    line-height: 1.08;
}

.product-detail-copy p {
    color: var(--muted);
}

.spec-list {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.spec-list div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

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

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

.inline-lead {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.login-page {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 44px 20px;
}

.login-box {
    width: min(430px, 100%);
    padding: 28px;
    box-shadow: var(--shadow);
}

.security-note,
.flash {
    width: min(1320px, calc(100% - 44px));
    margin: 16px auto 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 800;
}

.security-note {
    color: #765000;
    background: #fff4d6;
    border: 1px solid #f1d48a;
}

.flash-success {
    color: #0b6b39;
    background: #e4f8ed;
    border: 1px solid #bdeacb;
}

.flash-error {
    color: #a52222;
    background: #ffe5e5;
    border: 1px solid #f0b8b8;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 34px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: var(--surface);
    font-size: 13px;
    font-weight: 750;
}

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

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 18px 14px;
    background: var(--graphite);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand {
    color: #fff;
    padding: 8px;
}

.admin-nav {
    display: grid;
    gap: 6px;
    align-content: start;
    margin-top: 20px;
}

.admin-nav a {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .74);
    font-size: 14px;
    font-weight: 800;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: rgba(0, 167, 216, .22);
}

.admin-nav a:hover {
    transform: translateX(2px);
}

.nav-icon {
    width: 20px;
    height: 20px;
}

.sidebar-logout {
    padding: 12px 8px 4px;
}

.sidebar-logout .ghost-button {
    width: 100%;
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, .18);
}

.admin-main {
    min-width: 0;
    padding: 22px;
}

.admin-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 0 2px;
}

.admin-topbar h1 {
    margin: 2px 0 0;
    font-size: 30px;
    line-height: 1.1;
}

.caption {
    margin: 0;
    text-transform: uppercase;
}

.admin-user {
    min-height: 46px;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 2px 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 13px;
    font-weight: 850;
}

.admin-user .muted {
    grid-column: 2;
    color: var(--muted);
    font-weight: 650;
}

.online-dot {
    grid-row: span 2;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(23, 166, 90, .12);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.admin-metric,
.admin-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-metric {
    min-height: 126px;
    padding: 20px;
}

.admin-panel {
    min-width: 0;
    padding: 18px;
}

.admin-panels {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.admin-panels.two {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .65fr);
}

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

.admin-editor,
.security-grid {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.security-grid {
    grid-template-columns: 430px minmax(0, 1fr);
}

.wide {
    min-width: 0;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table.slim {
    min-width: 620px;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.data-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.data-table td strong {
    display: block;
    font-size: 13px;
}

.data-table td small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}

.data-table tr {
    transition: background .14s ease;
}

.data-table tbody tr:hover {
    background: #f7fbfc;
}

.num {
    text-align: right;
    white-space: nowrap;
}

.success {
    color: var(--green);
    font-weight: 900;
}

.table-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-product-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--cyan);
    background: var(--cyan-2);
}

.mini-product-icon svg {
    width: 27px;
    height: 27px;
}

.mini-product-photo {
    flex: 0 0 auto;
    width: 56px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f7fafb;
    overflow: hidden;
}

.mini-product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.admin-image-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f7fafb;
}

.admin-image-preview img {
    width: 100%;
    height: 72px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.admin-image-preview.empty {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.actions {
    text-align: right;
    white-space: nowrap;
}

.lead-workbench {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.lead-status-card {
    min-height: 96px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.lead-status-card:hover,
.lead-status-card.active {
    border-color: rgba(0, 167, 216, .55);
    box-shadow: 0 14px 30px rgba(15, 25, 30, .08);
    transform: translateY(-1px);
}

.lead-status-card.active {
    background: linear-gradient(180deg, #f5fcfe, #fff);
}

.lead-status-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.lead-status-card strong {
    font-size: 28px;
    line-height: 1;
}

.lead-status-card em {
    color: var(--green);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.lead-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.quick-status-form {
    display: inline-grid;
    grid-template-columns: 150px 48px;
    gap: 6px;
    align-items: center;
}

.quick-status-form select {
    height: 34px;
    padding: 0 30px 0 10px;
    font-size: 12px;
}

.quick-status-form .primary-button {
    min-height: 34px;
    padding: 0 10px;
}

.pipeline-list {
    display: grid;
    gap: 12px;
}

.pipeline-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
    align-items: center;
}

.pipeline-row span {
    font-weight: 850;
}

.pipeline-row strong {
    text-align: right;
}

.pipeline-row em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.pipeline-row i {
    grid-column: 1 / -1;
    height: 4px;
    border-radius: 99px;
    background: var(--surface-2);
    overflow: hidden;
}

.pipeline-row i::before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--cyan);
}

.pipeline-row i.bar-5::before {
    width: 5%;
}

.pipeline-row i.bar-10::before {
    width: 10%;
}

.pipeline-row i.bar-15::before {
    width: 15%;
}

.pipeline-row i.bar-20::before {
    width: 20%;
}

.pipeline-row i.bar-25::before {
    width: 25%;
}

.pipeline-row i.bar-30::before {
    width: 30%;
}

.pipeline-row i.bar-35::before {
    width: 35%;
}

.pipeline-row i.bar-40::before {
    width: 40%;
}

.pipeline-row i.bar-45::before {
    width: 45%;
}

.pipeline-row i.bar-50::before {
    width: 50%;
}

.pipeline-row i.bar-55::before {
    width: 55%;
}

.pipeline-row i.bar-60::before {
    width: 60%;
}

.pipeline-row i.bar-65::before {
    width: 65%;
}

.pipeline-row i.bar-70::before {
    width: 70%;
}

.pipeline-row i.bar-75::before {
    width: 75%;
}

.pipeline-row i.bar-80::before {
    width: 80%;
}

.pipeline-row i.bar-85::before {
    width: 85%;
}

.pipeline-row i.bar-90::before {
    width: 90%;
}

.pipeline-row i.bar-95::before {
    width: 95%;
}

.pipeline-row i.bar-100::before {
    width: 100%;
}

.empty-state {
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: #fafcfc;
    font-weight: 750;
}

.check-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: inset 0 0 0 3px #dff7e8;
}

code {
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--surface-2);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 1380px) {
    .hero h1 {
        font-size: 54px;
    }

    .hero-copy {
        max-width: 540px;
    }
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .hero-media {
        min-height: 420px;
    }

    .metric-band,
    .category-showcase,
    .assurance-band,
    .promo-grid,
    .dashboard-grid,
    .admin-panels.three,
    .lead-workbench,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-grid,
    .admin-panels.two,
    .admin-editor,
    .security-grid,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .lead-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .site-header {
        height: auto;
        min-height: 72px;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 18px;
    }

    .site-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
        padding: 34px 18px 42px;
    }

    .hero h1,
    .product-detail-copy h1,
    .page-heading h1 {
        font-size: 34px;
    }

    .hero-media,
    .hero-media img {
        min-height: 320px;
    }

    .metric-band,
    .category-showcase,
    .assurance-band,
    .promo-grid,
    .product-grid,
    .news-list,
    .dashboard-grid,
    .admin-panels.three,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .metric {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .assurance-band div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .assurance-band div:last-child {
        border-bottom: 0;
    }

    .metric:last-child {
        border-bottom: 0;
    }

    .catalog-toolbar,
    .admin-toolbar,
    .inline-lead,
    .form-row {
        grid-template-columns: 1fr;
    }

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

    .admin-sidebar {
        position: relative;
        height: auto;
    }

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

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

    .lead-row-actions {
        display: grid;
        justify-items: end;
    }

    .quick-status-form {
        grid-template-columns: 140px 46px;
    }

    .table-wrap .leads-table {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .leads-table thead {
        display: none;
    }

    .leads-table,
    .leads-table tbody,
    .leads-table tr,
    .leads-table td {
        display: block;
        width: 100%;
    }

    .leads-table tr {
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
    }

    .leads-table td {
        min-height: 34px;
        display: grid;
        gap: 4px;
        padding: 7px 0;
        border-bottom: 1px solid #edf2f4;
        text-align: left;
        white-space: normal;
    }

    .leads-table td:last-child {
        border-bottom: 0;
    }

    .leads-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
        text-align: left;
        text-transform: uppercase;
    }

    .leads-table .actions,
    .leads-table .num {
        text-align: left;
    }

    .leads-table .lead-row-actions {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        display: grid;
        gap: 8px;
        justify-items: stretch;
    }

    .leads-table .quick-status-form {
        display: grid;
        justify-self: stretch;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 46px;
    }

    .leads-table .quick-status-form select {
        min-width: 0;
        width: 100%;
    }

    .leads-table .lead-row-actions a {
        justify-self: start;
    }

    .admin-main {
        padding: 16px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 18px;
    }

    .section-grid,
    .news-strip,
    .promo-strip,
    .catalog-page,
    .product-detail,
    .metric-band,
    .category-showcase,
    .assurance-band,
    .security-note,
    .flash {
        width: min(100% - 28px, 1320px);
    }

    .product-detail-visual {
        min-height: 300px;
    }

    .product-icon.mega {
        width: 190px;
        height: 190px;
    }

    .product-icon.mega svg {
        width: 120px;
        height: 120px;
    }
}

/* Final public storefront overrides: keep this block after legacy styles. */
.public-shell .site-header.public-header {
    height: auto;
    display: block;
    padding: 0;
    background: rgba(255, 255, 255, .96);
}

.public-shell .public-topbar,
.public-shell .public-mainbar,
.public-shell .public-nav-row,
.public-shell .section-shell,
.public-shell .retail-hero {
    width: min(1320px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.public-shell .public-mainbar {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.public-shell .retail-hero {
    margin-top: 22px;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 250px;
    gap: 16px;
    align-items: stretch;
}

.public-shell .hero-promo {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(390px, .9fr) minmax(0, 1.1fr);
}

.public-shell .hero-promo .hero-copy {
    min-width: 0;
    padding: 36px 18px 36px 32px;
}

.public-shell .hero-promo h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.12;
    overflow-wrap: break-word;
}

.public-shell .hero-promo .hero-media,
.public-shell .hero-promo .hero-media img {
    min-height: 430px;
}

.public-shell .category-showcase.section-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto 34px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

.public-shell .product-tile {
    min-height: 390px;
    padding: 0;
}

.public-shell .product-photo {
    height: 210px;
}

.public-shell .product-meta {
    margin: 0;
    padding: 16px 16px 0;
}

.public-shell .catalog-page.section-shell,
.public-shell .product-detail-page.section-shell,
.public-shell .content-page.section-shell,
.public-shell .promo-strip.section-shell,
.public-shell .news-strip.section-shell,
.public-shell .assurance-band.section-shell,
.public-shell .home-products.section-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto 34px;
}

.public-shell .catalog-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 18px;
}

.public-shell .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) 210px auto;
}

.public-shell .product-detail {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding-top: 0;
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1fr) 340px;
    align-items: start;
}

.public-shell .product-detail-page.section-shell {
    padding-top: 24px;
}

.public-shell .product-buy-card .inline-lead {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.public-shell .product-buy-card .inline-lead input,
.public-shell .product-buy-card .inline-lead button {
    width: 100%;
}

.public-shell .site-footer {
    width: 100%;
    margin-top: 46px;
    padding: 38px max(20px, calc((100vw - 1320px) / 2)) 22px;
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, .7fr));
    align-items: start;
    gap: 28px;
    border-top: 1px solid #243239;
    background: #10191d;
    color: #fff;
}

@media (max-width: 1180px) {
    .public-shell .retail-hero {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .public-shell .hero-deals {
        grid-column: 1 / -1;
    }

    .public-shell .featured-grid,
    .public-shell .catalog-grid,
    .public-shell .news-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-shell .product-detail {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 860px) {
    .public-shell .public-topbar {
        display: none;
    }

    .public-shell .public-mainbar {
        grid-template-columns: 1fr auto;
        padding: 14px 0 10px;
    }

    .public-shell .header-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .public-shell .header-contact {
        display: none;
    }

    .public-shell .public-nav-row {
        flex-wrap: wrap;
        overflow: visible;
        gap: 4px;
        padding-bottom: 10px;
    }

    .public-shell .public-nav-row a {
        min-height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }

    .public-shell .retail-hero,
    .public-shell .hero-promo,
    .public-shell .catalog-layout,
    .public-shell .lead-panel.compact,
    .public-shell .product-detail,
    .public-shell .site-footer,
    .public-shell .catalog-toolbar,
    .public-shell .category-showcase.section-shell,
    .public-shell .featured-grid,
    .public-shell .catalog-grid,
    .public-shell .promo-grid,
    .public-shell .news-cards,
    .public-shell .assurance-band {
        grid-template-columns: 1fr;
    }

    .public-shell .retail-hero,
    .public-shell .section-shell,
    .public-shell .catalog-page.section-shell,
    .public-shell .product-detail-page.section-shell,
    .public-shell .content-page.section-shell,
    .public-shell .promo-strip.section-shell,
    .public-shell .news-strip.section-shell,
    .public-shell .assurance-band.section-shell,
    .public-shell .home-products.section-shell {
        width: min(100% - 28px, 1320px);
    }

    .public-shell .catalog-sidebar,
    .public-shell .product-buy-card {
        position: static;
    }

    .public-shell .hero-promo h1,
    .public-shell .page-heading h1 {
        font-size: 30px;
    }

    .public-shell .hero-category-list,
    .public-shell .deal-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-shell .hero-category-list a,
    .public-shell .deal-list a {
        min-height: 40px;
    }

    .public-shell .hero-catalog,
    .public-shell .hero-deals {
        min-height: auto;
        padding: 14px;
    }

    .public-shell .hero-deals {
        display: none;
    }

    .public-shell .hero-promo .hero-copy {
        padding: 24px 20px;
    }

    .public-shell .hero-promo .hero-media,
    .public-shell .hero-promo .hero-media img {
        min-height: 230px;
    }
}

/* Retail cart flow final overrides */
.public-shell .public-mainbar {
    grid-template-columns: auto auto minmax(220px, 1fr) auto auto;
}

.public-shell .header-cart {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid #d7e3e8;
    border-radius: 8px;
    background: #fff;
    color: #152024;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.public-shell .header-cart:hover,
.public-shell .header-cart.active {
    border-color: rgba(0, 167, 216, .55);
    box-shadow: 0 12px 28px rgba(13, 47, 58, .11);
    transform: translateY(-1px);
}

.public-shell .header-cart svg {
    width: 18px;
    height: 18px;
    color: #00a7d8;
}

.public-shell .header-cart em {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #11181b;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    line-height: 1;
}

.public-shell .product-card-actions {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 14px;
}

.public-shell .product-card-actions form {
    margin: 0;
}

.public-shell .product-card-action,
.public-shell .product-detail-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.public-shell .product-card-action {
    width: 100%;
    border: 0;
    background: #11181b;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(17, 24, 27, .14);
}

.public-shell .product-detail-link {
    padding: 0 12px;
    border: 1px solid #d7e3e8;
    color: #152024;
    background: #fff;
}

.public-shell .product-card-action:hover,
.public-shell .product-detail-link:hover {
    transform: translateY(-1px);
}

.public-shell .add-to-cart-form {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 14px;
}

.public-shell .add-to-cart-form input {
    min-height: 46px;
    width: 100%;
    border: 1px solid #d7e3e8;
    border-radius: 8px;
    padding: 0 12px;
    font-weight: 900;
}

.public-shell .add-to-cart-form button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #11181b;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.public-shell .cart-page {
    padding-top: 24px;
    margin-bottom: 34px;
}

.public-shell .cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.public-shell .cart-items,
.public-shell .cart-summary,
.public-shell .cart-empty {
    border: 1px solid #dce5e9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(17, 24, 27, .07);
}

.public-shell .cart-items {
    overflow: hidden;
}

.public-shell .cart-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 118px 116px 34px;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e1e9ed;
}

.public-shell .cart-row:last-child {
    border-bottom: 0;
}

.public-shell .cart-row-media {
    aspect-ratio: 1 / .78;
    overflow: hidden;
    border-radius: 8px;
    background: #eef3f4;
}

.public-shell .cart-row-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-shell .cart-row-copy strong {
    display: block;
    color: #11181b;
    font-size: 16px;
    line-height: 1.3;
}

.public-shell .cart-row-copy h2 {
    margin: 2px 0 0;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0;
}

.public-shell .cart-row-copy h2 a {
    color: #11181b;
    text-decoration: none;
}

.public-shell .cart-row-copy small,
.public-shell .cart-row-copy span,
.public-shell .cart-row-copy em {
    display: block;
    margin-top: 4px;
    color: #667278;
    font-size: 13px;
    font-weight: 800;
    font-style: normal;
}

.public-shell .cart-qty {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 6px;
}

.public-shell .cart-qty input {
    min-height: 38px;
    width: 100%;
    border: 1px solid #d7e3e8;
    border-radius: 8px;
    padding: 0 8px;
    font-weight: 900;
}

.public-shell .cart-qty button,
.public-shell .cart-remove {
    min-height: 38px;
    border: 1px solid #d7e3e8;
    border-radius: 8px;
    background: #fff;
    color: #152024;
    font-weight: 900;
    cursor: pointer;
}

.public-shell .cart-remove-form {
    margin: 0;
}

.public-shell .cart-remove {
    width: 34px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    color: #de3c3c;
    font-size: 0;
}

.public-shell .cart-remove::before {
    content: "×";
    font-size: 20px;
    line-height: 1;
}

.public-shell .cart-row-price {
    color: #11181b;
    font-weight: 1000;
    text-align: right;
}

.public-shell .cart-row-price .old-price,
.public-shell .cart-row-price small {
    display: block;
    margin-top: 4px;
    color: #667278;
    font-size: 12px;
    font-weight: 900;
}

.public-shell .cart-summary {
    position: sticky;
    top: 18px;
    padding: 18px;
}

.public-shell .cart-summary h2 {
    margin: 0 0 14px;
    font-size: 22px;
    letter-spacing: 0;
}

.public-shell .cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 16px;
    border-top: 1px solid #e1e9ed;
    color: #11181b;
    font-size: 22px;
    font-weight: 1000;
}

.public-shell .cart-total span {
    color: #667278;
    font-size: 13px;
    font-weight: 900;
}

.public-shell .cart-checkout {
    display: grid;
    gap: 10px;
}

.public-shell .cart-checkout input,
.public-shell .cart-checkout textarea {
    width: 100%;
    border: 1px solid #d7e3e8;
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    font-weight: 800;
}

.public-shell .cart-checkout button,
.public-shell .cart-empty a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #00a7d8;
    color: #fff;
    font-weight: 1000;
    text-decoration: none;
    cursor: pointer;
}

.public-shell .cart-empty {
    padding: 42px;
    text-align: center;
}

.public-shell .cart-empty h1 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: 0;
}

.public-shell .cart-empty p {
    margin: 0 auto 18px;
    max-width: 520px;
    color: #667278;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .public-shell .cart-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .public-shell .cart-row {
        grid-template-columns: 96px minmax(0, 1fr) 112px;
    }

    .public-shell .cart-row-price {
        grid-column: 2 / 3;
        text-align: left;
    }
}

@media (max-width: 860px) {
    .public-shell .public-mainbar {
        grid-template-columns: 1fr auto auto;
    }

    .public-shell .header-cart {
        min-width: 44px;
        padding: 0 8px;
    }

    .public-shell .header-cart span {
        display: none;
    }

    .public-shell .cart-layout,
    .public-shell .cart-row {
        grid-template-columns: 1fr;
    }

    .public-shell .cart-summary {
        position: static;
    }

    .public-shell .cart-row-media {
        aspect-ratio: 16 / 10;
    }

    .public-shell .cart-row-price {
        grid-column: auto;
        text-align: left;
    }

    .public-shell .cart-qty {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .public-shell .product-card-actions,
    .public-shell .add-to-cart-form {
        grid-template-columns: 1fr;
    }
}

/* Production storefront cleanup */
.public-shell .assurance-band {
    display: none;
}

.public-shell .lead-panel.compact {
    scroll-margin-top: 120px;
}

.public-shell .catalog-page.section-shell,
.public-shell .content-page.section-shell,
.public-shell .product-detail-page.section-shell,
.public-shell .cart-page.section-shell {
    min-height: calc(100vh - 360px);
}

.public-shell .catalog-results,
.public-shell .product-grid,
.public-shell .product-tile {
    min-width: 0;
}

.public-shell .product-tile {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.public-shell .product-photo {
    overflow: hidden;
}

.public-shell .product-photo img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.public-shell .product-meta {
    flex: 1 1 auto;
}

.public-shell .product-meta h3 {
    min-height: 48px;
}

.public-shell .product-meta p {
    min-height: 54px;
}

.public-shell .product-footer {
    padding: 0 16px 12px;
}

.public-shell .product-card-actions {
    grid-template-columns: minmax(0, 1fr) 108px;
    padding: 0 16px 16px;
    margin-top: 0;
}

.public-shell .product-card-action,
.public-shell .product-detail-link {
    min-width: 0;
}

.public-shell .site-footer {
    width: 100%;
    display: block;
    margin-top: 40px;
    padding: 0;
    border-top: 1px solid #243239;
    background: #10191d;
    color: #fff;
}

.public-shell .footer-inner {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 22px;
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, .7fr));
    gap: 34px;
    align-items: start;
}

.public-shell .footer-brand p {
    max-width: 360px;
    margin: 16px 0 0;
    color: #c8d5da;
    line-height: 1.55;
}

.public-shell .footer-column {
    display: grid;
    gap: 10px;
}

.public-shell .footer-column strong {
    color: #fff;
    font-size: 15px;
}

.public-shell .footer-column a,
.public-shell .footer-column span {
    color: #c8d5da;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.public-shell .footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #c8d5da;
    font-size: 13px;
    font-weight: 800;
}

.public-shell .cart-remove::before {
    content: "X";
}

@media (max-width: 860px) {
    .public-shell .footer-inner {
        width: min(100% - 28px, 1320px);
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0 20px;
    }

    .public-shell .footer-bottom {
        display: block;
    }

    .public-shell .product-card-actions {
        grid-template-columns: 1fr;
    }

    .public-shell .product-meta h3,
    .public-shell .product-meta p {
        min-height: auto;
    }
}

/* Product/news/promo production pass */
.public-shell .product-gallery-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    min-height: 0;
    display: block;
    overflow: hidden;
}

.public-shell .product-gallery,
.public-shell .product-detail-copy,
.public-shell .product-buy-card {
    width: 100%;
    min-width: 0;
}

.public-shell .product-gallery-main img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-shell .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-shell .promo-grid {
    align-items: stretch;
}

.public-shell .promo-card {
    min-height: 190px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-color: #d9e4e9;
}

.public-shell .promo-card::after {
    display: none;
}

.public-shell .promo-card > img {
    width: 100%;
    height: 190px;
    min-height: 190px;
    object-fit: cover;
    background: #eef3f4;
}

.public-shell .promo-card-copy {
    min-width: 0;
    padding: 20px;
}

.public-shell .promo-card span {
    width: max-content;
    margin: 0 0 14px;
}

.public-shell .promo-card h3 {
    margin: 0 0 10px;
}

.public-shell .promo-card p {
    margin: 0 0 18px;
}

.public-shell .news-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.public-shell .news-card,
.public-shell .news-card.featured {
    min-height: 0;
    padding: 22px;
    border: 1px solid #d9e4e9;
    border-radius: 8px;
    background: #fff;
    color: #11181b;
}

.public-shell .news-card.featured {
    grid-column: auto;
    border-color: rgba(0, 167, 216, .45);
    box-shadow: 0 18px 42px rgba(17, 24, 27, .07);
}

.public-shell .news-card time,
.public-shell .news-card.featured time {
    color: #667278;
}

.public-shell .news-card h2 {
    margin: 14px 0 12px;
    font-size: 19px;
    line-height: 1.3;
}

.public-shell .news-card p,
.public-shell .news-card div,
.public-shell .news-card.featured p,
.public-shell .news-card.featured div {
    color: #334147;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .public-shell .news-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .public-shell .promo-card,
    .public-shell .news-cards {
        grid-template-columns: 1fr;
    }

    .public-shell .promo-card > img {
        height: 180px;
        min-height: 180px;
    }

    .public-shell .product-gallery-main {
        aspect-ratio: 16 / 11;
    }

    .public-shell .product-detail-copy,
    .public-shell .product-buy-card {
        padding: 20px;
    }

    .public-shell .product-detail-copy h1 {
        font-size: 28px;
        line-height: 1.1;
    }

    .public-shell .spec-list div {
        grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
        gap: 10px;
    }
}

.settings-preview {
    display: grid;
    gap: 14px;
    color: var(--ink);
}

.settings-preview h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.settings-preview strong {
    display: block;
    max-width: 680px;
    font-size: 22px;
    line-height: 1.2;
}

.settings-preview p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.settings-preview ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
}

/* Mobile catalog image hard stop */
.public-shell .product-photo {
    position: relative;
    display: block;
    box-sizing: border-box;
}

.public-shell .product-photo img {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    object-fit: contain;
}
