:root {
    --app-navbar-min-height: 5rem;
    --bs-body-font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
}

:root, [data-bs-theme=light] {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-primary-rgb: 13,110,253;
    --bs-secondary-rgb: 108,117,125;
    --bs-success-rgb: 25,135,84;
    --bs-info-rgb: 13,202,240;
    --bs-warning-rgb: 255,193,7;
    --bs-danger-rgb: 220,53,69;
    --bs-light-rgb: 248,249,250;
    --bs-dark-rgb: 33,37,41;
    --bs-primary-text-emphasis: #052c65;
    --bs-secondary-text-emphasis: #2b2f32;
    --bs-success-text-emphasis: #0a3622;
    --bs-info-text-emphasis: #055160;
    --bs-warning-text-emphasis: #664d03;
    --bs-danger-text-emphasis: #58151c;
    --bs-light-text-emphasis: #495057;
    --bs-dark-text-emphasis: #495057;
    --bs-primary-bg-subtle: #cfe2ff;
    --bs-secondary-bg-subtle: #e2e3e5;
    --bs-success-bg-subtle: #d1e7dd;
    --bs-info-bg-subtle: #cff4fc;
    --bs-warning-bg-subtle: #fff3cd;
    --bs-danger-bg-subtle: #f8d7da;
    --bs-light-bg-subtle: #fcfcfd;
    --bs-dark-bg-subtle: #ced4da;
    --bs-primary-border-subtle: #9ec5fe;
    --bs-secondary-border-subtle: #c4c8cb;
    --bs-success-border-subtle: #a3cfbb;
    --bs-info-border-subtle: #9eeaf9;
    --bs-warning-border-subtle: #ffe69c;
    --bs-danger-border-subtle: #f1aeb5;
    --bs-light-border-subtle: #e9ecef;
    --bs-dark-border-subtle: #adb5bd;
    --bs-white-rgb: 255,255,255;
    --bs-black-rgb: 0,0,0;
    --bs-font-sans-serif: Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif;
    --bs-font-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-color-rgb: 33,37,41;
    --bs-body-bg: #fff;
    --bs-body-bg-rgb: 255,255,255;
    --bs-emphasis-color: #000;
    --bs-emphasis-color-rgb: 0,0,0;
    --bs-secondary-color: rgba(33, 37, 41, 0.75);
    --bs-secondary-color-rgb: 33,37,41;
    --bs-secondary-bg: #e9ecef;
    --bs-secondary-bg-rgb: 241,239,236;
    --bs-tertiary-color: rgba(33, 37, 41, 0.5);
    --bs-tertiary-color-rgb: 33,37,41;
    --bs-tertiary-bg: #f8f9fa;
    --bs-tertiary-bg-rgb: 248,249,250;
    --bs-heading-color: inherit;
    --bs-link-color: #0d6efd;
    --bs-link-color-rgb: 13,110,253;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #0a58ca;
    --bs-link-hover-color-rgb: 10,88,202;
    --bs-code-color: #d63384;
    --bs-highlight-color: #212529;
    --bs-highlight-bg: #fff3cd;
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 2rem;
    --bs-border-radius-2xl: var(--bs-border-radius-xxl);
    --bs-border-radius-pill: 50rem;
    --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    --bs-focus-ring-width: 0.25rem;
    --bs-focus-ring-opacity: 0.25;
    --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
    --bs-form-valid-color: #198754;
    --bs-form-valid-border-color: #198754;
    --bs-form-invalid-color: #dc3545;
    --bs-form-invalid-border-color: #dc3545;
}

@media (min-width: 576px) {
    :root {
        --app-navbar-min-height: 5.5rem;
    }
}

@media (min-width: 768px) {
    :root {
        --app-navbar-min-height: 6rem;
    }
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

html,
body {
    /*overflow-x: hidden; !* Prevent scroll on narrow devices *!*/
}
body {
    padding-top: var(--app-navbar-min-height);
}

.bi {
    vertical-align: -.125em;
    fill: currentColor
}

/** Offcanvas **/

@media (max-width: 991.98px) {
    .offcanvas-collapse {
        position: fixed;
        top: var(--app-navbar-min-height);
        bottom: 0;
        left: 100%;
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
        overflow-y: auto;
        visibility: hidden;
        background-color: #343a40;
        transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    }
    .offcanvas-collapse.open {
        visibility: visible;
        transform: translateX(-100%);
    }
}
/** End Offcanvas **/

/** Nav Scroller **/

/* Make the wrapper scroll horizontally */
.nav-scroller {
    overflow-x: auto;
    background-color: #F1F1F1;
}

/* Keep the breadcrumb on one line and scrollable */
.nav-scroller .breadcrumb {
    display: flex;          /* keep Bootstrap default */
    flex-wrap: nowrap;      /* no wrapping */
    white-space: nowrap;
    --bs-breadcrumb-padding-x: 1.2rem;
    --bs-breadcrumb-padding-y: 1.2rem;
    --bs-breadcrumb-item-padding-x: .5rem;
    --bs-breadcrumb-margin-bottom: 0;
}

/* Prevent items from squishing */
.nav-scroller .breadcrumb-item {
    display: flex;
    align-items: center;
}

/* Fix the divider overlapping by removing the float */
.nav-scroller .breadcrumb-item + .breadcrumb-item::before {
    float: none;
    padding-right: 0;
    content: "";
    display: block;
    width: 0.9rem;
    height: 0.9rem;
    margin: 0 .5rem 0 0;
    background-image: var(--bs-breadcrumb-divider);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/** End Nav Scroller **/

/** Carousel **/
.carousel-full {
    height: calc(100vh - 132px);
    .carousel-item {
        height: 100%;
    }
}
.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}
@media (min-width: 40em) {
    .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }
}
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

/** End Carousel **/

/** Section Pin **/
@supports(animation-timeline: view()) {

    @keyframes move {
        to {
            /* Move horizontally so that right edge is aligned against the viewport */
            transform: translateX(calc(-100% + 100vw));
        }
    }

    #sectionPin {
        /* Stretch it out, so that we create room for the horizontal scroll animation */
        height: 500vh;
        overflow-x: visible; /* To make position sticky work … */
        display: flex;
        view-timeline-name: --section-pin-tl;
        view-timeline-axis: block;
    }

    .pin-wrap-sticky {
        /* Stick to Top */
        height: 100vh;
        width: 100vw;
        position: sticky;
        top: 0;
        overflow-x: hidden;
    }

    .pin-wrap {
        height: 100vh;
        width: 250vmax;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0 0 0 5vw;

        /* Hook animation */
        will-change: transform;
        animation: linear move forwards;

        /* Link animation to view-timeline */
        animation-timeline: --section-pin-tl;
        animation-range: contain 0% contain 100%;

        img {
            height: 100vh;
            width: auto;
            max-width: 100%;
            object-fit: cover;
        }

        > * {
            min-width: 60vmax;
            padding: 0 0 0 2vmax;
        }
    }
}
/** End Section Pin **/

@scroll-timeline nav-fade-timeline {
    scroll-source: body;
    orientation: landscape;
    range: auto;
}

#mainNav {
    /*background-color: rgb(255, 255, 255);*/
    /*animation: fadeNav 1s linear both;*/
    /*animation-timeline: nav-fade-timeline;*/
    /*animation-range: 0% 300px;*/
    min-height: var(--app-navbar-min-height);
}

@keyframes fadeNav {
    from { background-color: rgba(33, 37, 41, 0); }
    to { background-color: rgba(33, 37, 41, 1); }
}

.search-wrapper {
    background-color: rgba(52, 58, 64, 1);
    border: 1px solid rgb(62, 70, 78);
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in, box-shadow 0.15s ease-in;
}

.search-wrapper:focus-within {
    background-color: rgb(65, 73, 87);
    border-color: rgba(13, 110, 253, 0.8);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.search-icon {
    /*padding: 0.75rem 1rem;*/
    /*color: #6c757d;*/
}


.search-wrapper > .form-control {
    --bs-body-bg: transparent;
}

.search-wrapper > .form-control:focus {
    /*flex: 1;*/
    /*border: none;*/
    /*outline: none;*/
    /*padding: 0.75rem 0.5rem;*/
    /*font-size: 1rem;*/
    /*transition: width 100ms ease-in;*/
    /*&:focus {*/
    /*    width: 250px;*/
    /*}*/
    box-shadow: none;
}

/*.filter-button {*/
/*    padding: 0.75rem 1rem;*/
/*    background: none;*/
/*    border: none;*/
/*    color: #6c757d;*/
/*    cursor: pointer;*/
/*    transition: color 0.15s ease-in-out;*/
/*}*/

/*.filter-button:hover {*/
/*    color: #0d6efd;*/
/*}*/

/*.filter-button:focus {*/
/*    outline: 2px solid #0d6efd;*/
/*    outline-offset: -2px;*/
/*}*/

.categories hgroup {
    display: flex;
    flex-direction: column-reverse;
}

.categories h2 {
    border-top: 1px solid rgba(33, 37, 31, .25);
    border-bottom: 1px solid rgba(33, 37, 31, .25);
    padding: 1rem .5rem;
    margin: 1.5rem 0;
    font-size: 1rem;
}

.categories ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
}

@media (min-width: 576px) {
    .categories ul {
        grid-template-columns: repeat(2, 1fr);   /* tablet: 2 columns */
    }
}

@media (min-width: 768px) {
    .categories ul {
        grid-template-columns: repeat(3, 1fr);   /* desktop: 3 columns */
    }
}

.products h1 {
    font-size: 2.25rem;
    font-weight: 400;
    margin: 2rem 0;
}

/* Closed state */
#sidebarMenu [data-bs-toggle="collapse"] .btn-icon {
    display: inline-block;
    transition: transform .2s ease;
}

/* When the collapse is open */
#sidebarMenu [aria-expanded="true"] .btn-icon {
    transform: rotate(90deg);   /* clockwise */
}

[popover] {
    max-width: min(80rem, 130vw);
    max-height: 80vh;
    overflow: auto;
}

[popover]:popover-open {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 50;
}

[popover]::backdrop {
    background: rgba(15, 23, 42, 0.55);
}
