:root,
[data-bs-theme=light] {
    --font-heading: "Bebas Neue", "Arial Narrow", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.25rem;
    --text-6xl: 4rem;

    --ff-brand-primary: #143968;
    --ff-brand-primary-rgb: 20, 57, 104;
    --ff-brand-secondary: #e1262f;
    --ff-brand-secondary-rgb: 225, 38, 47;
    --ff-brand-accent: #f8c72f;
    --ff-brand-accent-rgb: 248, 199, 47;
    --ff-brand-navy-dark: #071a33;
    --ff-brand-blue: #1f5c9a;
    --ff-surface: #ffffff;
    --ff-surface-alt: #eef3f8;
    --ff-surface-blue: #e6eef7;
    --ff-ink: #081a30;
    --ff-muted: #5b6a7c;
    --ff-border: #c9d5e3;

    --bs-primary: var(--ff-brand-primary);
    --bs-primary-rgb: var(--ff-brand-primary-rgb);
    --bs-secondary: var(--ff-brand-secondary);
    --bs-secondary-rgb: var(--ff-brand-secondary-rgb);
    --bs-warning: var(--ff-brand-accent);
    --bs-warning-rgb: var(--ff-brand-accent-rgb);
    --bs-body-bg: var(--ff-surface-alt);
    --bs-body-bg-rgb: 238, 243, 248;
    --bs-body-color: var(--ff-ink);
    --bs-body-color-rgb: 8, 26, 48;
    --bs-secondary-color: var(--ff-muted);
    --bs-tertiary-bg: var(--ff-surface);
    --bs-tertiary-bg-rgb: 255, 255, 255;
    --bs-border-color: var(--ff-border);
    --bs-link-color: var(--ff-brand-primary);
    --bs-link-hover-color: var(--ff-brand-secondary);
    --bs-focus-ring-color: rgba(var(--ff-brand-secondary-rgb), 0.25);
    --bs-border-radius: 0.4rem;
    --bs-border-radius-sm: 0.3rem;
    --bs-border-radius-lg: 0.45rem;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.5;
    background:
        radial-gradient(circle at 9% 4%, rgba(var(--ff-brand-secondary-rgb), 0.12), transparent 16rem),
        radial-gradient(circle at 90% 0%, rgba(var(--ff-brand-primary-rgb), 0.13), transparent 18rem),
        var(--bs-body-bg);
}

h1,
h2,
h3,
.display {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-transform: uppercase;
}

h1,
.display {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
}

h2 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
}

h3 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
}

p,
li,
input,
textarea,
select,
button {
    font-family: var(--font-body);
    font-size: var(--text-base);
}

h1:focus {
    outline: none;
}

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

.section-label {
    color: var(--ff-brand-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge {
    font-size: var(--text-sm);
    line-height: 1.4;
}

button {
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1;
}

.catalogue-intro {
    max-width: 58ch;
}

.product-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cart-panel,
.order-summary-card {
    position: sticky;
    top: 6rem;
}

.first-cart-line:first-child {
    border-top: none !important;
    padding-top: 0 !important;
}

.cart-thumb {
    border-radius: 0.35rem;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.product-admin-thumb {
    border-radius: 0.35rem;
    height: 56px;
    object-fit: cover;
    width: 56px;
}

.staff-login-shell {
    max-width: 520px;
}

.staff-note {
    border-left: 0.25rem solid var(--ff-brand-secondary);
}

.card,
.modal-content,
.dropdown-menu {
    border-color: rgba(20, 57, 104, 0.16);
}

.card.shadow-sm,
.shadow-sm {
    box-shadow: 0 0.75rem 1.75rem rgba(7, 26, 51, 0.08) !important;
}

.bg-body-tertiary {
    background-color: var(--ff-surface-blue) !important;
}

.btn {
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--ff-brand-secondary);
    --bs-btn-border-color: var(--ff-brand-secondary);
    --bs-btn-hover-bg: #bd1720;
    --bs-btn-hover-border-color: #bd1720;
    --bs-btn-active-bg: #9f121a;
    --bs-btn-active-border-color: #9f121a;
    --bs-btn-color: #fff;
}

.btn-secondary {
    --bs-btn-bg: var(--ff-brand-primary);
    --bs-btn-border-color: var(--ff-brand-primary);
    --bs-btn-hover-bg: var(--ff-brand-navy-dark);
    --bs-btn-hover-border-color: var(--ff-brand-navy-dark);
    --bs-btn-color: #fff;
}

.btn-outline-secondary {
    --bs-btn-color: var(--ff-brand-primary);
    --bs-btn-border-color: var(--ff-brand-primary);
    --bs-btn-hover-bg: var(--ff-brand-primary);
    --bs-btn-hover-border-color: var(--ff-brand-primary);
    --bs-btn-hover-color: #fff;
}

.badge.text-bg-primary {
    background-color: var(--ff-brand-secondary) !important;
}

.text-primary {
    color: var(--ff-brand-secondary) !important;
}

.text-bg-primary,
.list-group-item.active {
    background-color: var(--ff-brand-primary) !important;
    border-color: var(--ff-brand-primary) !important;
}

.table > :not(caption) > * > * {
    background-color: transparent;
}

.table thead th {
    color: var(--ff-brand-primary);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.validation-summary ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.validation-message {
    color: var(--bs-danger);
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid.modified:not([type=checkbox]) {
    border-color: var(--bs-success);
}

.invalid {
    border-color: var(--bs-danger);
}

.blazor-error-boundary {
    background: var(--bs-danger);
    color: #fff;
    padding: 1rem 1rem 1rem 3.7rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

@media (max-width: 1199.98px) {
    .cart-panel,
    .order-summary-card {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .cart-thumb {
        height: 64px;
        width: 64px;
    }
}

img {
    border-radius: 0.4rem;
}