:root {
    --black: #000000;
    --white: #ffffff;
    --stealth: #172430;
    --titanium: #283030;
    --gray: #dcdcdc;
    --grayDark: #737373;
    --grayLight: #ededed;
    --dangerRed: #dd2c00;
    --dangerRed2: #a02000;
    --dataBlue: #a4e3ef;
    --primaryBlue: #305195;
    --primaryBlue2: #213867;
    --blueDark: #305195;
    --blueLight: #4c98d0;
    --blueLight2: #2e79b0;
    --alertDangerColor: #f8d7da;
    --alertDangerAccentColor: #f5c2c7;
    --alertDangerTextColor: #842029;
    --alertInfoColor: #cfe2ff;
    --alertInfoAccentColor: #b6d4fe;
    --alertInfoTextColor: #084298;
    --alertSuccessColor: #d1e7dd;
    --alertSuccessAccentColor: #badbcc;
    --alertSuccessTextColor: #0f5132;
    --alertWarningColor: #fff3cd;
    --alertWarningAccentColor: #ffecb5;
    --alertWarningTextColor: #664d03;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url(/fonts/IBMPlexSans/IBMPlexSans-Regular.otf);
}

/** LAYOUT **/
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "IBM Plex Sans", sans-serif;
    background-color: var(--grayLight);
}

a {
    color: #333333;
    font-size: 0.9rem;
    text-decoration: none;
    word-break: break-word;
}
a:hover {
    text-decoration: underline;
}

h1 {
    text-transform: uppercase;
}
@media (max-width: 536px) {
    h1 {
        font-size: 1.5rem;
    }
}

ul {
    margin: 0;
    padding: 0;
}

header, main, footer {
    width: 100%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--white);
    color: var(--grayDark);
    z-index: 5;
}

    header a {
        color: var(--grayDark);
    }

header img, footer img {
    max-width: 50%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
}

main {
    flex: 1;
    margin-top: 72px;
}

    main > .container {
        
        padding: 0.5rem;
    }

nav {
    display: flex;
    justify-content: center;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav > ul {
    display: flex;
    gap: 5px;
}

    nav > ul ul {
        display: none;
    }

nav li {
    position: relative;
}

nav li:hover > u,
nav li:active > ul {
    display: inline;
    position: absolute; 
    top: 1em; 
    left: 0;
}

footer {
    background-color: var(--stealth);
    color: var(--white);
}

    footer a {
        color: var(--white);
    }
    footer a:hover {
        text-decoration: none;
    }

    footer .container {
        display: grid;
        grid-template-columns: 30% 45% 25%;
        align-items: center;
        padding: 0.5rem;
    }
@media(max-width: 732px) {
    footer > .container {
        display: flex;
        justify-content: center;
    }
        footer > .container > a,
        footer > .container > .menu-social {
            display: none;
        }
}

/** COMPONENTS **/
.alert {
    background-color: white;
    border: solid 1px gray;
    box-shadow: 1px 1px 2px gray, -1px -1px 2px gray;
    color: dimgray;
    padding: 0.5rem;
    white-space: pre;
    width: fit-content;
}

.alert-danger, 
.alert-danger .btn, 
.alert-error, 
.alert-error .btn {
    background-color: var(--alertDangerColor);
    border: solid 1px var(--alertDangerAccentColor);
    box-shadow: 1px 1px 2px var(--alertDangerAccentColor), -1px -1px 2px var(--alertDangerAccentColor);
    color: var(--alertDangerTextColor);
}

.alert-info,
.alert-info btn {
    background-color: var(--alertInfoColor);
    border: solid 1px var(--alertInfoAccentColor);
    box-shadow: 1px 1px 2px var(--alertInfoAccentColor), -1px -1px 2px var(--alertInfoAccentColor);
    color: var(--alertInfoTextColor);
}

.alert-success,
.alert-success btn {
    background-color: var(--alertSuccessColor);
    border: solid 1px var(--alertSuccessAccentColor);
    box-shadow: 1px 1px 2px var(--alertSuccessAccentColor), -1px -1px 2px var(--alertSuccessAccentColor);
    color: var(--alertSuccessTextColor);
}

.alert-warning,
.alert-warning btn {
    background-color: var(--alertWarningColor);
    border: solid 1px var(--alertWarningAccentColor);
    box-shadow: 1px 1px 2px var(--alertWarningAccentColor), -1px -1px 2px var(--alertWarningAccentColor);
    color: var(--alertWarningTextColor);
}

.banner {
    /*aspect-ratio: 16 / 9;*/
    position: relative;
    width: 100%;
}

    .banner img {
        border-radius: 10px;
        object-fit: cover;
        height: 100%;
        max-height: 400px;
        max-width: 100%;
        width: 100%;
    }

    .banner .caption {
        position: absolute;
        display: flex;
        flex-direction: column;
        bottom: 4px;
        background-color: var(--stealth);
        color: var(--white);
        margin: 0;
        border-radius: 0.25rem;
        font-size: 1.5rem;
    }

        .banner .caption:has(.title),
        .banner .caption:has(.description) {
            padding: 0.5rem 1rem;
        }

        .banner .caption .title {
            font-size: 2rem;
            text-transform: uppercase;
            text-decoration: underline;
            text-decoration-color: var(--dangerRed);
            text-underline-offset: 0.25rem;
        }

.btn {
    background-color: transparent;
    border: 0;
    color: var(--titanium);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: bolder;
    line-height: 1.5;
    /*margin: 0.375rem;*/
    padding: 0.375rem 1rem;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    -o-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

    .btn:hover {
        color: var(--titanium);
        text-decoration: none;
    }

    .btn:hover,
    .btn:focus,
    .btn.focus,
    .btn:not(:disabled):not(.disabled):active,
    .btn:not(:disabled):not(.disabled).active {
        -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
        box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
        outline: 0;
    }

    .btn.disabled,
    .btn:disabled {
        background-color: var(--stealth);
        cursor: not-allowed;
        opacity: 0.65;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .btn:not(:disabled):not(.disabled):active:focus,
    .btn:not(:disabled):not(.disabled).active:focus {
        -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25), inset 0 3px 5px rgba(0, 0, 0, 0.125);
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25), inset 0 3px 5px rgba(0, 0, 0, 0.125);
    }

.btn-primary {
    background-color: var(--primaryBlue);
    color: var(--white);
}
    .btn-primary:hover, 
    .btn-primary:not(:disabled):not(.disabled):active, 
    .btn-primary:not(:disabled):not(.disabled).active {
        background-color: var(--primaryBlue2);
        color: var(--white);
    }

.btn-secondary {
    background-color: var(--blueLight);
    color: var(--white);
}
    .btn-secondary:hover, 
    .btn-secondary:not(:disabled):not(.disabled):active, 
    .btn-secondary:not(:disabled):not(.disabled).active {
        background-color: var(--blueLight2);
        color: var(--white);
    }

.btn-danger {
    background-color: var(--dangerRed);
    color: var(--white);
}
    .btn-danger:hover,
    .btn-danger:not(:disabled):not(.disabled):active,
    .btn-danger:not(:disabled):not(.disabled).active {
        background-color: var(--dangerRed2);
        color: var(--white);
    }

.btn-small {
    line-height: 1;
    margin: 0;
    padding: 0.25rem;
}

.btn-action {
    background-color: var(--dangerRed);
    border: none;
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    padding: 0.5rem;
    cursor: pointer;
}
.btn-action:hover {
    box-shadow: 0 2px 6px var(--grayDark);
}

.captcha-container {
    height: 4rem;
    position: relative;
}
.captcha-container .alert {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 95%;
    padding: 0 1rem;
    top: 0;
    left: 2px;
    z-index: -1;
}

.cart-indicator {
    position: relative;
}
    .cart-indicator > button {
        border: none;
        background-color: transparent;
    }

.cart {
    display: flex;
    flex-flow: column nowrap;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    color: black;
    border: 1px solid #ccc;
    padding: 0;
    min-width: 10rem;
    z-index: 100;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #e6e6e6;
}
    .cart-header .cart-title {
        margin: 0;
        padding: 0.25rem;
        background-color: #e6e6e6;
    }
    .cart-header button {
        background-color: transparent;
        border: none;
        font-size: 1.75rem;
        line-height: 1;
        margin-right: 0.25rem;
        padding: 0 0.25rem;
    }
        .cart-header button:hover {
            background-color: var(--stealth);
            box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); 
            color: var(--white);
            cursor: pointer;
        }

.cart-content {
    display: initial;
    padding: 0.5rem;
}

    .cart-content li {
        font-size: 0.875rem;
        margin: 0.5rem 0;
        display: grid;
        grid-template-columns: 3.5rem 20rem 1rem;
        align-items: flex-end;
        column-gap: 0.25rem;
    }
        .cart-content li input[type="number"] {
            max-height: 1rem;
        }
        .cart-content li span {
            border-bottom: solid 1px;
        }
        .cart-content li button {
            max-height: 1.4rem;
        }

.cart-footer {
    display: flex;
    column-gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .categories li {
        flex: 1 1 200px;
        max-width: 300px;
        text-align: center;
    }
    .categories li a {
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        color: var(--black);
        font-weight: bold;
        text-transform: uppercase;
    }
        .categories li a:hover {
            box-shadow: 1px 1px 2px gray, -1px -1px 2px gray;
            text-decoration: none;
        }
        .categories li a:hover span {
            color: var(--dangerRed);
        }
        .categories li a img {
            height: auto;
            width: 100%;
            max-width: 300px;
        }
        .categories li a span {
            padding: 0.5em 0;
        }

@media(max-width: 900px) {
    .categories li {
        flex: 1 1 calc(50% - 1rem);
        max-width: none;
    }
}
@media (max-width: 500px) { 
    .categories {
        flex-direction: column;
        align-items: center;
    }
        .categories li {
            flex: 1 1 100%;
            max-width: 98%;
        }
}

.container {
    margin: 0 auto;
    max-width: 1280px;
}
.container-title {
    display: flex;
    column-gap: 1rem;
    align-items: center;
    min-height: 10rem;
}
    .container-title img {
        max-height: 100%;
        max-width: 10rem;
    }

.content {
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0;
    padding-top: 0.5rem;
    text-align: center;
}

form {
    display: flex;
    flex-flow: column nowrap;
    row-gap: 1rem;
}
    form input, form textarea {
        font-size: 0.9rem;
    }

    form:has(.cart-content) h2 {
        margin-bottom: 0;
    }

form .cart-content {
    padding: 0;
}

form label:has(+ [required])::before {
    content :'*';
    color: var(--dangerRed);
    margin-right: 0.1rem;
}

.form-content {
    display: grid;
    grid-template-columns: 11rem 50rem;
    row-gap: 1rem;
}
.form-content textarea {
    height: 3rem;
}

.form-submitted span,
.form-submitted p {
    border-bottom: 1px solid;
}

.menu-footer {
    justify-content: center;
}
    .menu-footer li a:hover {
        color: var(--dangerRed);
    }

.menu-social .menu {
    margin: 0;
}
.menu-social li {
    width: 1.25rem;
}
    .menu-social li a {
        font-size: 0;
        opacity: 0.6;
    }
        .menu-social li a:hover {
            opacity: initial;
        }

.menu-top {
    align-self: flex-end;
    align-items: center;
}
    .menu-top ul {
        margin-top: 0;
    }

    .menu-top li {
        padding: 0.5rem 0.25rem;
    }

    .menu-top li a {
        color: var(--titanium);
        font-weight: bold;
    }

        .menu-top li a:hover {
            text-decoration-color: var(--dangerRed);
            text-underline-offset: 0.25rem;
            text-decoration-thickness: 2px;
        }

    .menu-top .menu-toggle {
        display: none;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
    }
    .menu-top > ul > li:hover > ul {
        display: block;
        position: absolute;
        background-color: var(--white);
        top: 2.2rem;
        width: 20rem;
    }
    .menu-top > ul > li > ul > li {
        padding-left: 0.5rem;
    }
        .menu-top > ul > li:hover > ul > li {
            border-bottom: 1px solid var(--grayLight);
        }
        .menu-top > ul > li > ul > li a {
            display: flex;
        }

@media (max-width: 1040px) {
    .menu-top {
        align-self: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .menu-top .menu-toggle {
        display: block;
    }
        .menu-top ul {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 3.75rem;
            left: 50%;
            transform: translateX(-50%);
            background: var(--white);
            padding: 0;
            row-gap: 0;
            width: 200px;
        }
        .menu-top ul.open {
            display: flex;
        }
            .menu-top ul li {
                border: solid 1px;
                padding: 0.75rem;
            }
}

.parts-container {
    display: grid;
    grid-template-areas:
        'title-1 title-2'
        'sidebar content';
    grid-template-columns: 10rem auto;
    column-gap: 2rem;
}
    .parts-container > img {
        grid-area: title-1;
        max-width: 10rem;
    }
    .parts-container > h1 {
        grid-area: title-2;
        align-self: center;
    }
    .parts-container .sidebar {
        grid-area: sidebar;
        max-width: 10rem;
    }
    .parts-container .sidebar h2 span {
        font-size: 0.75rem;
        font-weight: normal;
    }
    .parts-container .content {
        grid-area: content;
    }

.parts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
    gap: 1rem;
    list-style: none;
    padding: 0;
}
.part {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    column-gap: 2rem;
    justify-content: space-between;
    position: relative;
}
.part:hover {
    box-shadow: 0 2px 6px var(--grayDark);
}
    .part:hover a:last-child {
        text-decoration: underline;
    }

    .part a:has(img) {
        margin: auto;
    }
    .part img {
        max-width: 11rem;
        max-height: 11rem;
    }

    .part .part-action {
        background-color: var(--grayLight);
        display: none;
        column-gap: 0.5rem;
        justify-content: center;
        position: absolute;
        bottom: 2.5rem;
        width: 100%;
    }
    .part .part-action button {
        min-width: 5.5rem;
    }

    .part:hover .part-action {
        display: flex;
    }

.part-detail {
    display: grid;
    grid-template-areas:
        'image name'
        'id description'
        'action action';
    column-gap: 2rem;
    row-gap: 1rem;
    padding: 2rem;
}
    .part-detail > img {
        grid-area: image;
        justify-self: right;
        max-width: 20rem;
        max-height: 100%;
    }
    .part-detail > span {
        grid-area: id;
        color: var(--grayDark);
        justify-self: right;
    }
    .part-detail > h1 {
        grid-area: name;
        align-self: center;
        font-weight: normal;
    }
    .part-detail > p {
        grid-area: description;
        margin-top: 0;
    }
    .part-detail > div {
        grid-area: action;
        justify-self: center;
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }
        .part-detail input[type="number"] {
            max-width: 3rem;
            padding: 0.25rem;
        }
    .part-detail .btn {
        font-size: 0.9rem;
        line-height: 1;
        padding: 0.3rem 0.5rem;
    }

.products {
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.product:hover {
    box-shadow: 0 2px 6px var(--grayDark);
}

.product a {
    display: flex;
    align-items: center;
    flex-flow: column wrap;
    justify-content: center;
}
.product a img {
    max-height: 100%;
    max-width: 8rem;
    height: auto;
    object-fit: cover;
    display: block;
}

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: auto;
    max-height: 400px;
    border-radius: 10px;
}

    .slider .slides {
        display: flex;
        margin: 0;
        padding: 0;
        list-style: none;
        /* transform is controlled by JS; transition used for smooth animation */
        transition: transform 0.55s ease;
        height: 100%;
    }

    /* each slide fills the viewport (100% of slider width) */
    .slider .slide {
        flex: 0 0 100%; /* fixed to slot = slider width */
        position: relative;
        min-width: 0;
        height: 100%;
    }

        .slider .slide img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

    .slider .slide .caption {
        position: absolute;
        bottom: 0;
    }

    .slider .arrow {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.2);
        color: var(--dangerRed);
        border: none;
        font-size: 4rem;
        font-weight: bold;
        z-index: 3;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

        .slider .arrow.prev {
            left: 0;
            transform: translateX(-100%);
        }

        .slider .arrow.next {
            right: 0;
            transform: translateX(100%);
        }

    .slider:hover .arrow {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }
@media (max-width: 536px) {
    .slider .slide .caption {
        font-size: 1.5rem;
    }
}

.toast {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    padding: 0.5rem;
}
.toast p {
    margin: 0;
    order: 1;
}
    .toast .btn {
        box-shadow: none;
        cursor: pointer;
        font-size: 1.5rem;
        line-height: 1;
        max-height: 1.5rem;
        margin: -0.5rem -0.5rem 0 0.25rem;
        padding: 0 0.25rem;
        order: 2;
    }


/** UTILITIES **/
img.placeholder {
    opacity: 0.1;
}

.all-caps {
    text-transform: uppercase;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
    align-items: center;
    column-gap: 0.5rem;
}

.grd-col-2nd {
    grid-column: 2;
}

.hidden {
    display: none !important;
}

.lh-1 {
    line-height: 1;
}

.hmax-4 {
    max-height: 4rem;
}

.wmax-25p {
    max-width: 25%;
}
.wmax-30 {
    max-width: 30rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-05 {
    margin-bottom: 0.5rem;
}

.ml-25p {
    margin-left: 25%;
}

.mt-025 {
    margin-top: 0.25rem;
}

.p-1 {
    padding: 1rem;
}
