/* Values are set from the current host's database in the page head. */
.site-design-enabled {
    --sh-brand: var(--site-design-brand, #900000);
    --sh-brand-bright: var(--site-design-accent, #b20000);
    --site-design-ink: var(--site-design-text, #243442);
    background-color: var(--site-design-background, #f1f1f1) !important;
    background-image: var(--site-design-background-image, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--site-design-ink);
}
body.site-design-enabled > .bg-black.fixed-top {
    background-color: var(--site-design-brand) !important;
}
.site-design-enabled .bg-white.mt-5 > header {
    background-color: var(--site-design-surface) !important;
    color: var(--site-design-ink);
}

.site-design-enabled .btn-sh-red,
.site-design-enabled .bg-sh-red {
    background-color: var(--site-design-brand) !important;
    border-color: var(--site-design-brand) !important;
}
.site-design-enabled .text-sh-red,
.site-design-enabled a.text-primary,
.site-design-enabled .navbar .nav-link:hover {
    color: var(--site-design-brand) !important;
}
.site-design-enabled .btn-outline-sh-red {
    color: var(--site-design-brand) !important;
    border-color: var(--site-design-brand) !important;
}
.site-design-enabled .btn-outline-sh-red:hover,
.site-design-enabled .btn-outline-sh-red:focus {
    color: #fff !important;
    background: var(--site-design-brand) !important;
}
.site-design-enabled .btn-success {
    color: #fff !important;
    background-color: var(--site-design-brand) !important;
    border-color: var(--site-design-brand) !important;
}
.site-design-enabled .form-control:focus,
.site-design-enabled .form-select:focus,
.site-design-enabled .form-check-input:checked {
    border-color: var(--site-design-brand) !important;
    --bs-focus-ring-color: color-mix(in srgb, var(--site-design-brand), transparent 78%);
}
.site-design-enabled .form-check-input:checked {
    background-color: var(--site-design-brand) !important;
}
.site-design-enabled .sticky-logo img,
.site-design-enabled header img {
    object-fit: contain;
}
.site-design-catalog-banner img {
    display: block;
    max-height: 360px;
    border-radius: 18px;
    object-fit: cover;
}

body.site-design-enabled[data-site-page="home"][data-site-layout="compact"] .category-section > .row,
body.site-design-enabled[data-site-page="catalog"][data-site-layout="compact"] .category-section > .row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
body.site-design-enabled[data-site-page="home"][data-site-layout="compact"] .category-section > .row,
body.site-design-enabled[data-site-page="catalog"][data-site-layout="compact"] .category-section > .row {
    display: grid;
    gap: 1rem;
}
body.site-design-enabled[data-site-page="home"][data-site-layout="compact"] .category-section > .row > *,
body.site-design-enabled[data-site-page="catalog"][data-site-layout="compact"] .category-section > .row > * {
    width: auto;
}
body.site-design-enabled[data-site-page="product"][data-site-layout="wide"] main.container {
    max-width: min(1440px, calc(100% - 2rem));
}
body.site-design-enabled[data-site-page="cart"][data-site-layout="compact"] .cart-item-row {
    padding: .65rem !important;
}
body.site-design-enabled[data-site-page="cart"][data-site-layout="compact"] .cart-item-row h5 {
    font-size: 1rem;
}
body.site-design-enabled[data-site-page="checkout"][data-site-layout="compact"] main.container {
    max-width: 1040px;
}
body.client-app-body.site-design-enabled {
    color: var(--site-design-ink);
    background: var(--site-design-background);
    --client-ink: var(--site-design-text);
    --client-accent: var(--site-design-accent);
    --client-muted: color-mix(in srgb, var(--site-design-text), white 48%);
    --client-line: color-mix(in srgb, var(--site-design-text), white 86%);
}
body.client-app-body.site-design-enabled .client-app-header,
body.client-app-body.site-design-enabled .client-app-card,
body.client-app-body.site-design-enabled .client-app-product-card {
    background-color: var(--site-design-surface);
}
body.client-app-body.site-design-enabled .client-app-link {
    color: var(--site-design-brand);
}
body.client-app-body.site-design-enabled .client-app-header {
    background-color: var(--site-design-brand);
    color: #fff;
}
body.client-app-body.site-design-enabled .client-app-welcome {
    background: linear-gradient(125deg, var(--site-design-brand), var(--site-design-accent));
}
body.client-app-body.site-design-enabled .client-app-brand {
    color: #fff;
}
body.client-app-body.site-design-enabled .client-app-auth-card,
body.client-app-body.site-design-enabled .client-app-card,
body.client-app-body.site-design-enabled .client-auth-card,
body.client-app-body.site-design-enabled .client-stat-card,
body.client-app-body.site-design-enabled .client-order-card,
body.client-app-body.site-design-enabled .client-detail-card,
body.client-app-body.site-design-enabled .client-history-card {
    background-color: var(--site-design-surface);
}
body.client-app-body.site-design-enabled .client-auth-card .btn-primary {
    background-color: var(--site-design-brand);
}
body.client-app-body.site-design-enabled[data-site-page="client_app"][data-site-layout="compact"] .client-app-main {
    max-width: 760px;
}
