﻿/* style for mobile first, then work your way up to tablet and desktop sizes */

body {
    background-color: var(--ltgray);
}

.body-container {
    display: flex;
    flex-flow: row wrap;
    background-color: white;
    width: 100%;
    padding-bottom: 0.5rem;
}

.top-bar {
    position: sticky;
    top: 0;
    left: 0;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    z-index: 99;
}

.title-identifiers {
    display: flex;
    background-color: var(--black);
    background: linear-gradient(0deg, black, black, gray, darkgray);
    border-bottom: 0.25rem solid var(--blue);
    width: 100%;
    padding: 0.5rem;
}

.title-container a {
    display: flex;
    gap: 0.5rem;
    text-decoration: none;
}

.logo {
    width: 27px;
    height: 27px;
}

.title {
    color: white;
    font-size: 1.75rem;
    font-weight: bold;
}

.tagline {
    display: none;
}

.identifiers-container {
    display: none;
}

.um-container {
    background-color: var(--gray);
    width: 100%;
}

.um-buttons {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--dkgray);
}

.um-buttons div {
    display: flex;
}

.um-buttons button.active {
    background-color: var(--ltrblue);
}

.um-buttons button:hover, .um-buttons a:hover {
    background-color: var(--ltrblue);
}

.um-buttons div:first-child button {
    border-right: 1px solid var(--dkgray);
}

.um-buttons div:last-child button, .um-buttons div:last-child a {
    border-left: 1px solid var(--dkgray);
}

.login-text {
    display: none;
}

.search-container, .user-container, .nav-links {
    display: none;
}

.search-container.open, .user-container.open, .nav-links.open {
    display: flex;
}

.search-container.open {
    border-bottom: 1px solid var(--dkgray);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.25rem;
}

#search {
    border: 1px solid var(--black);
    border-radius: 0.25rem;
    width: 100%;
    padding: 0.25rem;
    font-size: 1.25rem;
}

#search:focus {
    outline: 1px solid var(--blue);
}

#search-btn {
    padding: 0.25rem;
    color: var(--black);
    font-size: 1.25rem;
    cursor: pointer;
}

#user-toggle-desktop {
    display: none;
}

.nav-links, .page-links-container {
    flex-flow: row wrap;
    width: 100%;
}

.nav-links a, .nav-links button, .page-links-container button{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: inherit;
    border: none;
    border-bottom: 1px solid var(--dkgray);
    width: 100%;
    padding: 0.5rem;
    color: var(--black);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.nav-links .accordion-dropdown a {
    font-size: 1.25rem;
    font-weight: normal;
    text-indent: 0.5rem;
}

.user-container .accordion-dropdown a {
    border-bottom: 1px solid var(--dkgray);
    width: 100%;
    padding: 0.5rem;
    color: var(--black);
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    text-indent: 0.5rem;
    cursor: pointer;
}

.accordion {
    width: 100%;
}

.accordion-dropdown {
    display: none;
}

.accordion-dropdown.open {
    display: flex;
    flex-flow: row wrap;
}

.page-footer .accordion {
    border-bottom: 3px solid var(--blue);
}

.page-footer .dropdown-btn {
    border: none;
}

.page-footer .accordion-dropdown a {
    width: 100%;
    padding: 0.5rem;
    color: var(--blue);
    font-size: 1.25rem;
    text-decoration: none;
}

.page-footer .accordion-dropdown a:hover {
    text-decoration: underline;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.dropdown-arrow.active {
    transform: rotate(135deg);
    transition: transform 0.3s;
}

.page-footer {
    border-top: 0.25rem solid var(--blue);
    width: 100%;
}


.breadcrumbs-container {
    display: flex;
    flex-flow: row wrap;
    gap: 0.5rem;
    border-left: 1px solid var(--dkgray);
    border-right: 1px solid var(--dkgray);
    width: 100%;
    padding: 0.5rem;
    color: var(--black);
    font-size: 0.9rem;
}

.breadcrumbs-container a {
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: bold;
}

.main-container {
    width: 100%;
    height: 100%;
}

.cat-container {
    position: fixed;
    top: 0;
    left: -100%;
    background-color: white;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    z-index: 9999;
}

.cat-container.open {
    left: 0;
    transition: left 0.3s;
}

.cat-menu {
    background-color: white;
    height: max-content;
}

.cat-header {
    position: relative;
    display: flex;
    justify-content: center;
    background: linear-gradient(0deg, var(--blue), var(--ltblue));
    border-bottom: 3px solid var(--dkgray);
    width: 100%;
    padding: 0.25rem;
}

.cat-header h2 {
    color: white;
    font-size: 1.75rem;
}

#close-cat-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem;
}

.cat-links {
    display: flex;
    flex-flow: row wrap;
    background-color: white;
    width: 100%;
    height: 100%;
}

.cat-links a {
    border-bottom: 1px solid var(--dkgray);
    width: 100%;
    padding: 0.5rem;
    color: var(--dkblue);
    font-size: 1.25rem;
    text-decoration: none;
}

.cat-links a:hover {
    background-color: var(--ltrblue);
}

/* .sub-menu {
    display: flex;
} */

.sub-menu.hide {
    display: none;
}

.show-sub-menu {
    display: flex;
    flex-flow: row wrap;
}

.cat-links .sel-menu {
    text-decoration: underline;
}

.show-sub-menu a {
    text-indent: 0.25rem;
}

.show-sub-menu .sub-menu2 {
    text-indent: 1rem;
}

.show-sub-menu .sel-sub-menu {
    text-decoration: underline;
}

.show-sub-menu .sel-sub-menu2 {
    text-indent: 1.75rem;
    text-decoration: underline;
}

.home-container {
    display: flex;
    flex-flow: row wrap;
    gap: 0.5rem;
    width: 100%;
}

.information-container {
    width: 100%;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow {
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
    animation: fade-in 1s;
}

@keyframes fade-in {
    0% {
        opacity: 0.75;
    }
    100% {
        opacity: 1;
    }
}

.slide img {
    width: 100%;
    height: auto;
}

.slide-tracker {
    position: absolute;
    left: 0;
    bottom: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.dot {
    background-color: var(--ltgray);
    border: none;
    border-radius: 50%;
    opacity: 0.5;
    width: 1rem;
    height: 1rem;
    cursor: default;
}

.dot.active {
    opacity: 0.75;
    transition: opacity 0.3s;
}

.slide-prev, .slide-next {
    display: none;
}

.swipe-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    fill: var(--ltgray);
    opacity: 0;
    transform: translateY(-50%);
    width: 4rem;
    height: 4rem;
    animation: swipe-indicate 1s ease-in-out alternate 4;
}

@keyframes swipe-indicate {
    0% {
        opacity: 0;
        left: 15%
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        left: 75%
    }
}

.featured-container {
    position: relative;
    width: 100%;
}

.featured-container::before, .featured-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    width: 1.25rem;
    height: 85%;
    z-index: 2;
}

.featured-container::after {
    left: auto;
    right: 0;
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.group-name {
    border-bottom: 3px solid var(--dkblue);
    padding: 0 0.25rem;
    color: var(--dkblue);
    font-size: 1.5rem;
}

.featured-products, .fp-products {
    position: relative;
    display: flex;
    gap: 0.5rem;
    overflow-x: scroll;
    width: 100%;
    padding: 0.5rem;
}

.featured-products a, .fp-products-container a {
    text-decoration: none;
}

.fp-products-container {
    position: relative;
    width: 100%;
}

.fp-products-container::before, .fp-products-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    width: 1.25rem;
    height: 85%;
    z-index: 2;
}

.fp-products-container::after {
    left: auto;
    right: 0;
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.item {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    gap: 0.25rem;
    background-color: var(--gray);
    border: 1px solid var(--dkgray);
    border-radius: 0.75rem;
    width: 15rem;
    padding: 0.5rem;
    text-align: center;
}

.product-name {
    width: 100%;
    height: calc(0.9rem * 2);
    color: var(--black);
    font-size: 0.9rem;
    font-weight: bold;
}

.product-sku {
    width: 100%;
    height: 0.9rem;
    color: var(--black);
    font-size: 0.9rem;
    font-weight: bold;
}

.price, .special-price {
    width: 100%;
    height: 0.9rem;
    color: var(--black);
    font-size: 0.9rem;
    font-weight: bold;
}

.special-price {
    color: var(--red);
    text-decoration: underline;
}

.item img {
    width: 90px;
    height: 90px;
}

.carousel-prev, .carousel-next {
    display: none;
}

.page-header {
    display: flex;
    justify-content: flex-start;
    background: linear-gradient(0deg, var(--blue), var(--ltblue));
    border-bottom: 3px solid var(--dkgray);
    width: 100%;
    padding: 0.25rem;
}

.page-header h2 {
    color: white;
    font-size: 1.75rem;
}

.info-contents {
    padding: 0.25rem;
}

.info_header {
    color: var(--dkblue);
    font-size: 1.25rem;
    font-weight: bold;
}

.info_text, .info_list {
    margin-bottom: 1rem;
    color: var(--black);
    font-size: 1.1rem;
}

.info_list li {
    margin-left: 1.25rem;
}

.footer-note {
    display: flex;
    flex-flow: row wrap;
    gap: 0.25rem;
    width: 100%;
    padding: 0.25rem;
    color: var(--black);
    font-size: 1.1rem;
}

.footer-note a {
    color: var(--black);
    font-size: 1rem;
    text-decoration: none;
}

.footer-note a i {
    text-decoration: underline;
}

.cookies-container {
    position: fixed;
    bottom: 0;
    left: 0;
    display: none;
    background-color: rgba(7, 71, 135, 0.75);
    width: 100%;
    padding: 1rem;
    z-index: 999;
}

.cookies-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-flow: row wrap;
}

.cookies-bar p {
    width: 100%;
    color: white;
    font-size: 1.25rem;
    text-align: center;   
}

.cookies-btns {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.cookies-btns a, .cookies-btns button {
    background-color: var(--ltgray);
    border: none;
    border-radius: 0.5rem;
    width: 40%;
    padding: 0.25rem 0.5rem;
    color: var(--dkblue);
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.cookies-btns a:hover, .cookies-btns button:hover {
    background-color: var(--ltrblue);
    color: var(--black);
    transition: background-color 0.3s, color 0.3s;
}

/* 768px x 1024 desktop screens */

@media screen and (min-width: 768px) {
    .title-identifiers {
        justify-content: space-between;
        align-items: center;
    }

    .identifiers-container {
        display: flex;
        gap: 0.5rem;
    }

    .identifier {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 2.25rem;
    }

    .identifier img {
        width: auto;
    }

    .identifier p {
        color: white;
        font-size: 0.8rem;
        font-weight: bold;
    }

    #user-btn {
        color: var(--black);
        font-size: 1.5rem;
        text-decoration: none;
    }

    .login-text {
        display: block;
        padding: 0 0.25rem;
        font-size: 1.25rem;
    }

    .cat-container {
        background-color: rgba(255, 255, 255, 0);
        width: 75%;
    }

    .cat-container.open {
        left: 0;
        transition: left 0.3s;
    }

    .cat-menu {
        width: 100%;
    }

    .slideshow {
        display: flex;
        justify-content: center;
        background-color: var(--gray);
    }

    .slide {
        width: auto;
    }

    .slide img {
        width: 560px;
        height: 400px;
    }
}

/* 1024 tablet screens */

@media screen and (min-width: 1024px) {
    .featured-container::before, .featured-container::after {
        display: none;
    }
}

@media screen and (min-width: 1280px) {
    .body-container, .footer-note {
        margin: auto;
        width: 98%;
    }

    .body-container {
        border-radius: 0 0 0.75rem 0.75rem;
        padding: 0;
    }

    .top-bar {
        background-color: var(--ltgray);
    }

    .title-identifiers {
        border-radius: 0.75rem 0.75rem 0 0;
    }

    .title-container {
        display: flex;
        align-items: baseline;
        gap: 0.25rem;
    }

    .title-container a {
        align-items: baseline;
    }

    .title {
        font-size: 1.65rem;
    }

    .tagline {
        display: block;
        color: white;
        font-size: 1rem;
        font-weight: bold;
        font-style: italic;
    }

    .identifier {
        height: 2.25rem;
    }

    .identifier p {
        font-size: 0.75rem;
    }

    .um-buttons {
        display: none;
    }

    .um-container {
        display: flex;
        border-left: 1px solid var(--dkgray);
        border-right: 1px solid var(--dkgray);
        border-bottom: 1px solid var(--dkgray);
    }

    .search-container, .user-container, .nav-links {
        display: flex;
    }

    .search-container {
        flex-grow: 1;
        border-right: 1px solid var(--dkgray);
    }
    
    #search {
        font-size: 0.9rem;
        padding: 0.1rem;
    }

    #search-btn {
        font-size: 0.9rem;
    }

    .nav-links {
        flex-flow: row nowrap;
        flex-grow: 2;
        width: auto;
    }

    .nav-links a, .nav-links button, .user-container a, .user-container button {
        border: none;
        border-right: 1px solid var(--dkgray);
        width: auto;
        padding: 0 0.5rem;
        font-size: 0.9rem;
    }

    .nav-links a:hover, .nav-links button:hover, .user-container a:hover, .user-container button:hover {
        background-color: var(--ltrblue);
    }

    .nav-links .accordion, .user-container .accordion {
        position: relative;
        display: flex;
        width: auto;
    }

    .nav-links .accordion-dropdown, .user-container .accordion-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        background-color: var(--gray);
        border: none;
        border-top: 1px solid var(--dkgray);
        border-left: 1px solid var(--dkgray);
        border-right: 1px solid var(--dkgray);
        min-width: 175px;
        max-width: 250px;
    }

    .user-container .accordion-dropdown {
        left: auto;
        right: 0;
    }

   .nav-links .accordion .dropdown-btn:hover + .accordion-dropdown, .nav-links .accordion .accordion-dropdown:hover, .user-container .accordion .dropdown-btn:hover + .accordion-dropdown, .user-container .accordion .accordion-dropdown:hover {
        display: flex;
        flex-flow: row wrap;
    }

    .nav-links .accordion-dropdown a, .user-container .accordion-dropdown a {
        border: none;
        border-bottom: 1px solid var(--dkgray);
        width: 100%;
        padding: 0.25rem;
        font-size: 0.9rem;
        font-weight: normal;
        text-indent: 0;
    }

    .user-container .accordion-dropdown a {
        text-align: right;
    }

    .user-container {
        border-left: 1px solid var(--dkgray);
    }

    #user-btn {
        padding: 0;
    }

    .login-text {
        font-size: 0.9rem;
    }

    .page-links-container {
        display: flex;
        flex-flow: row nowrap;
        gap: 0.5rem;
        width: 100%;
    }

    .page-links-container .accordion-dropdown, .page-links-container .accordion-dropdown.open {
        display: flex;
        flex-flow: row wrap;
    }

    .page-links-container button {
        padding: 0.25rem;
        font-size: 1rem;
        cursor: default;
    }

    .dropdown-arrow {
        display: none;
    }

    .page-footer {
        border-left: 1px solid var(--dkgray);
        border-right: 1px solid var(--dkgray);
        border-bottom: 1px solid var(--dkgray);
        border-radius: 0 0 0.75rem 0.75rem;
        padding: 1rem;
    }

    .page-footer .accordion {
        border: none;
    }

    .page-footer .dropdown-btn {
        border-bottom: 3px solid var(--blue);
    }

    .page-footer .accordion-dropdown a {
        padding: 0.25rem;
        font-size: 0.9rem;
    }

    #user-toggle-desktop {
        display: flex;
        border: none;
        padding: 0;
    }

    .main-container {
        display: flex;
        justify-content: space-evenly;
    }

    .cat-container { 
        position: static;
        border-radius: 0.75rem;
        box-shadow: none;
        overflow-y: auto;
        width: 20%;
        z-index: 1;
    }

    .cat-container.open {
        position: static;
        box-shadow: none;
        transition: none;
    }

    .cat-menu {
        width: 100%;
    }

    .cat-header h2 {
        font-size: 1rem;
    }

    #close-cat-btn {
        display: none;
    }

    .cat-links {
        border-left: 1px solid var(--dkgray);
        border-right: 1px solid var(--dkgray);
        overflow-y: auto;
        height: 100%;
    }

    .cat-links a {
        padding: 0.25rem;
        font-size: 0.9rem;
    }

    .cat-links a:last-of-type {
        border-radius: 0 0 0.75rem 0.75rem;
    }

    .main-container {
        gap: 0.25rem;
        border-left: 1px solid var(--dkgray);
        border-right: 1px solid var(--dkgray);
        padding: 0.25rem 0.25rem 1rem 0.25rem;
    }

    .home-container {
        align-items: center;
        gap: 0.25rem;
        width: 79%;
    }

    .information-container {
        width: 79%;
    }

    .slides-container {
        width: 49%;
        height: fit-content;
    }

    .slideshow {
        display: block;
        background-color: inherit;
    }

    .slide {
        border-radius: 0.75rem;
    }

    .slide img {
        border-radius: 0.75rem;
        width: 100%;
        height: auto;
    }

    .dot {
        cursor: pointer;
    }

    .dot:hover {
        opacity: 0.75;
        transition: opacity 0.3s;
    }

    .slides-container:hover .slide-prev, .slides-container:hover .slide-next {
        position: absolute;
        top: 50%;
        left: 0.25rem;
        transform: translateY(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.25);
        border: none;
        border-radius: 50%;
        width: 2rem;
        height: 2rem;
        padding: 0.25rem;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .slides-container:hover .slide-prev:hover, .slides-container:hover .slide-next:hover {
        background-color: rgba(255, 255, 255, 0.75);
        transition: background-color 0.3s;
    }

    .slides-container:hover .slide-next {
        left: auto;
        right: 0.25rem;
    }

    .swipe-indicator {
        display: none;
    }

    .featured-container {
        width: 50%;
    }

    .fp-products-container {
        position: relative;
    }

    .group-name {
        font-size: 1.25rem;
    }

    .featured-products {
        flex-flow: row wrap;
        justify-content: center;
        overflow-x: hidden;
        padding: 0.25rem;
    }

    .fp-products {
        overflow-x: hidden;
        padding: 0.75rem;
    }

    .featured-products a {
        width: 49%;
    }

    .fp-products a {
        display: block;
        width: 15rem;
    }

    .featured-products .item {
        width: 100%;
        transition: box-shadow 0.3s;
    }

    .fp-products .item {
        display: flex;
        justify-content: center;
        flex-flow: row wrap;
        gap: 0.25rem;
        background-color: var(--gray);
        border: 1px solid var(--dkgray);
        border-radius: 0.75rem;
        width: 15rem;
        padding: 0.5rem;
        text-align: center;
    }

    .item:hover {
        box-shadow: 0 0 0.5rem rgba(39, 117, 190, 0.5);
        transition: box-shadow 0.3s;
    }

    .product-name {
        width: 100%;
        height: calc(0.9rem * 2);
        color: var(--black);
        font-size: 0.9rem;
        font-weight: bold;
    }

    .product-sku {
        width: 100%;
        height: 0.9rem;
        color: var(--black);
        font-size: 0.9rem;
        font-weight: bold;
    }

    .price, .special-price {
        width: 100%;
        height: 0.9rem;
        color: var(--black);
        font-size: 0.9rem;
        font-weight: bold;
    }

    .carousel-prev, .carousel-next {
        position: absolute;
        top: 55%;
        left: 0;
        transform: translateY(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(199, 199, 199, 0.5);
        border: none;
        border-radius: 50%;
        width: 2rem;
        height: 2rem;
        cursor: pointer;
        z-index: 3;
        transition: background-color 0.3s;
    }

    .carousel-prev:hover, .carousel-next:hover {
        background-color: rgba(199, 199, 199, 0.75);
        transition: background-color 0.3s;
    }

    .carousel-next {
        left: auto;
        right: 0;
    }

    .page-header {
        border-radius: 0.75rem 0.75rem 0 0;
    }

    .page-header h2 {
        padding-left: 0.5rem;
        font-size: 1rem;
    }

    .footer-note {
        justify-content: space-between;
        flex-flow: row nowrap;
        gap: 0.25rem;
        padding: 0.25rem;
        color: var(--black);
        font-size: 0.9rem;
    }

    .footer-note div {
        display: flex;
        gap: 0.25rem;
    }

    .cookies-btns a, .cookies-btns button {
        width: 25%;
    }
}

@media screen and (min-width: 1440px) {
    .slide-prev, .slide-next {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media screen and (min-width: 1536px) {
    .body-container, .footer-note {
        width: 90%;
    }

    .cat-container { 
        width: 18%;
    }

    .search-container {
        flex-grow: 0.5;
    }

    .home-container {
        gap: 0.5rem;
        width: 81%;
    }

    .information-container {
        width: 81%;
    }

    .slides-container {
        width: 560px;
        height: 400px;
    }

    .slide {
        width: 560px;
        height: 400px;
    }

    .slide img {
        border-radius: 0.75rem;
        width: 560px;
        height: 400px;
    }

    .featured-container {
        width: 48%;
    }

    .cookies-btns a, .cookies-btns button {
        width: 20%;
    }
}

@media screen and (min-width: 1600px) {
    .featured-container {
        width: 50%;
    }
}

@media screen and (min-width: 1920px) {
    .body-container, .footer-note {
        width: 79%;
    }

    .cat-header h2 {
        font-size: 1.1rem;
    }

    .group-name {
        padding: 0.25rem 0.75rem;
    }

    .featured-container {
        width: 53%;
    }

    .page-header h2 {
        font-size: 1.1rem;
    }

    .cookies-btns a, .cookies-btns button {
        width: 15%;
    }
}