:root, [data-bs-theme="light"] {
    --bs-primary: #336799;
    --bs-primary-rgb: 51, 103, 153;

    --bs-link-color: var(--bs-primary);
    --bs-link-color-rgb: 51, 103, 153;
    --bs-link-hover-color-rgb: 28, 78, 136;
    --bs-link-hover-color: #1c4e88;
}

:root[data-bs-theme="dark"],
:root[data-bs-theme="dark"] .storefront-navbar {
    --bs-body-color: #e2eaf4;
    --bs-body-color-rgb: 226, 234, 244;
    --bs-body-bg: #182535;
    --bs-body-bg-rgb: 24, 37, 53;
    --bs-secondary-bg: #233246;
    --bs-secondary-bg-rgb: 35, 50, 70;
    --bs-tertiary-bg: #0d1927;
    --bs-tertiary-bg-rgb: 13, 25, 39;
    --bs-primary: #6da9ff;
    --bs-primary-rgb: 109, 169, 255;
    --bs-primary-bg-subtle: #2b3d53;
    --bs-link-color: rgb(var(--bs-link-color-rgb));
    --bs-link-color-rgb: 156, 214, 255;
    --bs-link-hover-color: rgb(var(--bs-link-hover-color-rgb));
    --bs-link-hover-color-rgb: 198, 233, 255;
    --bs-border-color: #405166;
}

body {
    font-family: sans-serif;
}

:root[data-bs-theme="light"] body {
    background-color: #ffffcc;
}

:root[data-bs-theme="dark"] body {
    background-color: #131f2d;
}

.storefront-navbar {
    background-color: var(--bs-primary);
}

:root[data-bs-theme="dark"] .storefront-navbar {
    background-color: var(--bs-tertiary-bg);
}

:root[data-bs-theme="dark"] .form-control {
    background-color: var(--bs-secondary-bg);
}

h1 {
    font-size: 1.2rem;
}

h2 {
    font-size: 1.1rem;
}

@media (min-width: 992px) {
    .main-menu {
        border-radius: 0.5rem;
    }
}

.custom-number {
    min-width: 150px;
}

.custom-number input[type=number]::-webkit-outer-spin-button,
.custom-number input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-number input[type=number] {
    -moz-appearance: textfield;
}

form.with-required-fields-highlighted label.required:before {
    color: red;
    content: "* ";
}

.current-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-secondary);
    color: var(--bs-secondary);
    border-radius: 0.25rem;
    width: 25px;
    height: 25px;
}

.brand-card {
    align-items: center;
    display: flex;
    height: 120px;
    justify-content: center;
    width: 120px;
}

.product-card {
    border: 1px solid var(--bs-light-border-subtle);
    width: 300px;
}

.spare-parts .reference,
.spare-parts .price {
    width: 10%;
}

.spare-parts .stock-status,
.spare-parts .show {
    width: 15%;
}

.spare-parts-photo {
    max-width: 6rem;
}

.spare-parts-view {
    min-width: 44px;
    min-height: 44px;
}

.product-gallery-image {
    aspect-ratio: 16 / 9;
    max-height: 22rem;
}

.product-gallery [data-bs-slide]:focus-visible > span {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.product-gallery .product-gallery-thumbnails {
    justify-content: flex-start;
}

.product-gallery-thumbnails [data-bs-target] {
    flex: 0 0 clamp(3rem, calc((100% - 2rem) / 5), 6.5rem);
    box-sizing: border-box;
    width: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0;
    border: 2px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    opacity: 1;
}

.product-gallery-thumbnails [data-bs-target]:first-child {
    margin-inline-start: auto;
}

.product-gallery-thumbnails [data-bs-target]:last-child {
    margin-inline-end: auto;
}

.product-gallery-thumbnails [aria-current="true"] {
    border-color: var(--bs-primary);
}

.product-gallery-enlarged {
    max-height: 75vh;
    object-fit: contain;
}
