:root {
    --ink: #16263c;
    --muted: #5b6d83;
    --line: #d7dee4;
    --paper: #ffffff;
    --soft: #f4f6f7;
    --brand: #c22032;
    --brand-dark: #931827;
    --accent: #174f9a;
    --blue: #174f9a;
    --blue-dark: #0f376f;
    --green: #1f7a4d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(15, 55, 111, .08);
}

.site-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    background: var(--brand);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px clamp(14px, 3vw, 30px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 206px;
    max-width: 292px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--brand);
    border-radius: 6px;
    font-weight: 800;
}

.brand-logo {
    width: 64px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 16px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
    align-items: center;
}

.main-nav a,
.cart-link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav .is-active {
    color: #fff;
    background: var(--brand);
}

.cart-link {
    gap: 8px;
    color: #fff;
    background: var(--brand);
    box-shadow: inset 0 -3px 0 var(--blue-dark);
}

.cart-link span {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    color: var(--brand);
    background: #fff;
    border-radius: 999px;
    font-size: 12px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    align-items: stretch;
    padding: clamp(24px, 4vw, 42px) clamp(16px, 4vw, 42px);
    background: #fff;
}

.hero-copy {
    align-self: center;
    max-width: 720px;
}

.eyebrow {
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
}

h1,
h2,
h3 {
    line-height: 1.12;
    margin: 0 0 14px;
    color: var(--blue-dark);
}

h1 {
    font-size: clamp(28px, 3.4vw, 44px);
}

h2 {
    font-size: clamp(22px, 2.2vw, 30px);
}

h3 {
    font-size: 18px;
}

.text-red {
    color: var(--brand);
}

.text-blue {
    color: var(--blue);
}

p {
    margin: 0 0 16px;
}

.hero-copy p,
.section-lead {
    color: var(--muted);
    font-size: 16px;
}

.section-head h2::after,
.admin-main h1::after {
    content: "";
    display: block;
    width: 58px;
    height: 5px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--brand);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.promo-slide {
    display: grid;
    min-height: 310px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-dark), var(--brand));
    align-content: end;
}

.promo-carousel .promo-slide {
    display: none;
    min-height: 410px;
}

.promo-carousel .promo-slide.is-active {
    display: grid;
}

.promo-slide img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 18px;
    background: #fff;
}

.promo-slide h2,
.promo-slide h3,
.promo-slide p {
    color: #fff;
}

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    pointer-events: auto;
}

.carousel-dots button.is-active {
    background: #fff;
}

.button {
    border: 0;
    color: #fff;
    background: var(--brand);
    cursor: pointer;
}

.button.secondary {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.button.accent {
    color: #fff;
    background: var(--blue);
}

.section {
    padding: 34px clamp(16px, 4vw, 42px);
}

.section.white {
    background: #fff;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

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

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.card-body {
    padding: 14px;
}

.product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    color: var(--muted);
    background: #e9eef2;
    font-weight: 700;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.price {
    color: var(--brand);
    font-size: 18px;
    font-weight: 800;
}

.card-body h2,
.card-body h3 {
    color: var(--blue-dark);
}

.card-body h3 a:hover {
    color: var(--brand);
}

.badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.badge.muted {
    color: var(--ink);
    background: #dce5ed;
}

.thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #e9eef2;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filters,
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.notice {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    background: #fff8dc;
    border: 1px solid #ecd47a;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(16px, 4vw, 42px);
    color: #fff;
    background: var(--blue-dark);
    border-top: 6px solid var(--brand);
}

.site-footer a {
    display: block;
    color: #dce5ed;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    color: var(--blue-dark);
    background: #fff;
    border-radius: 999px;
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-links a:hover {
    color: #fff;
    background: var(--brand);
}

.footer-logo {
    display: block;
    width: 86px;
    height: auto;
    margin-bottom: 10px;
}

.site-footer p {
    color: #dbe7f7;
}

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

.admin-sidebar {
    padding: 20px;
    color: #fff;
    background: var(--blue-dark);
}

.admin-sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    margin: 4px 0;
}

.admin-sidebar a:hover,
.admin-sidebar .is-active {
    background: var(--brand);
}

.admin-main {
    padding: 28px;
}

@media (max-width: 980px) {
    .hero,
    .site-footer {
        display: grid;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin-left: 0;
        padding: 10px 0 4px;
        background: #fff;
        border-top: 1px solid var(--line);
    }

    .site-header.menu-open .main-nav,
    .menu-open .main-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 5px);
        width: auto;
        padding: 12px;
        border: 1px solid var(--line);
        border-top: 5px solid var(--brand);
        border-radius: 0 0 8px 8px;
        box-shadow: 0 14px 28px rgba(15, 55, 111, .16);
        z-index: 30;
    }

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

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

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

@media (max-width: 620px) {
    .grid,
    .filters,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .site-header.menu-open .main-nav,
    .menu-open .main-nav {
        grid-template-columns: 1fr;
    }

    .brand {
        min-width: 0;
        max-width: calc(100% - 56px);
    }

    .brand-logo {
        width: 48px;
        max-height: 32px;
    }

    .brand strong {
        font-size: 14px;
    }

    .brand small {
        font-size: 10px;
    }

    .main-nav a,
    .cart-link,
    .button {
        width: 100%;
    }
}
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 1px solid var(--brand);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--blue);
}

.site-header.menu-open .menu-toggle,
.menu-open .menu-toggle {
    background: var(--brand);
}

.site-header.menu-open .menu-toggle span,
.menu-open .menu-toggle span {
    background: #fff;
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .site-header.menu-open .main-nav,
    .menu-open .main-nav {
        display: grid;
    }
}
.icon-nav-link {
    width: 90px;
    min-width: 38px;
    padding: 0;
}

.icon-nav-link img,
.icon-nav-link svg {
    width: 90px;
    height: 32px;
    object-fit: contain;
    display: block;
}