/*RESET*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/*RESET END*/
:root {
    font-family: Helvetica, Arial, sans-serif;
    font-size: calc(9px + .2vw);
}
*, *:before, *:after {
    box-sizing: border-box;
}
* {
    line-height: 1.25rem;
}
a {
    color: black;
    text-decoration: none;
    text-transform: uppercase;
}
a:hover {
    text-decoration: underline;
}
header, main {
    display: flex;
}
body {
    overscroll-behavior-y: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-bottom: 2rem;
    padding-top: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    z-index: 2;
}



main {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 5.75rem;
}
.main-left, .main-right {
    position: sticky;
    align-self: flex-start;
    top: 0;
}
.header-left, .header-right, .main-left, .main-right {
    flex-basis: 20%;
}
.header-left {
    text-align: left;
}
.header-item+.header-item {
    margin-left: 1rem;
}
.header-right {
    text-align: right;
}
.header-center {
    text-align: center;
}
.header-center, .main-center  {
    flex-basis: 40%;
    flex-grow: 1;
}
.main-nav-heading {
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 1.25rem;
}
.main-nav-item {
    display: block;
}
.main-nav-item:hover, .desktop-nav a:hover {
    text-decoration: none;
}
.product-list {
    display: flex;
    flex-wrap: wrap;
}
.product-card {
    width: 33.33%;
    padding-left: .5rem;
    padding-right: .5rem;
    padding-bottom: 1rem;
}
.product-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
}
.product-card-info {
    padding-top: .5rem;
}
.checkbox::before {
    font-family: monospace;
    content: '\2610';
    margin-right: .2rem;
}
.checkbox:hover::before {
    content: '\2611';
}
.checkbox:hover {
    cursor: pointer;
    text-decoration: none;
}
footer {
    text-align: center;
    margin-top: 5rem;
    padding-bottom: 4.5rem;
}
footer#footer-desktop {
    padding-top: 6rem;
    padding-bottom: 2rem;
}


.footer-link {
    position: fixed;
    right: 1rem;
    bottom: 2rem;
}
.gallery-container {
    height: 80vh;
    padding-left: 5rem;
    padding-right: 5rem;
    scroll-snap-align: start;
    scroll-margin-top: 5.75rem;
    margin-left: auto;
    margin-right: auto;
    }
.gallery-image {
    height: 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}
@media only screen and (max-width: 800px) {
    .product-variants span {
        line-height: 1.5rem;
    }
    .product-action-links a{
        line-height: 1.5rem;
    }
    header {
        padding-left: 2rem;
        padding-right: 2rem;    
    }
}
.product-title, .product-price, .product-variants {
    margin-bottom: 1.25rem;
}

.product-variants span {
    display: block;
}

.product-action-links a{
    display: block;
}

.underline {
    text-decoration: underline;
}

.indicators {
    position: fixed;
    bottom: 2rem;
    left: 1rem;
}
.indicator:hover {
    cursor: pointer;
}
/*.gallery-container:last-of-type {
    height: 200px
}*/

.overlay {
    display: none;
}
body:has(.nav-button.open) .overlay {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
body:has(.nav-button.open) {
    overflow: hidden;
}



@media only screen and (max-width: 800px) {
    .main-left,  .header-left, .header-right {
        display: none;
    }
    main {
        display: block;
    }
    .gallery, .gallery-container {
        width: 100%;
    }
    .gallery {
        padding-top: 2rem;
        display: flex;
        overflow: scroll;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .gallery-image {
        height: auto;
    }
    .gallery::-webkit-scrollbar {
        display: none;
    }
    .gallery-container {
        scroll-snap-align: start;
        flex-shrink: 0;
        height: auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .gallery-container:last-of-type {
        display: none;
    }
    main {
        scroll-snap-type: none;
    }
    .main-right {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .footer-link-desktop {
        display: none;
    }
    #footer-desktop {
        display: none;
    }
    .indicators {
        position: unset;
        font-size: 2rem;
    }
    .indicator span {
        display: none;
    }
    .indicator::after {
        content: '\25A1';
    }
    .underline {
        text-decoration: none;
    }
    .indicator.underline::after {
        content: '\25A3';
        font-size: 1.4rem;
    }
    .indicator {
        padding-left: .25rem;
        padding-right: .25rem;
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
    }
    .indicators {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 1rem;
    }
    #footer-mobile {
        margin-top: 33vh;
    }
    .product-card {
        width: 50%;
    }
}

@media only screen and (min-width: 800px) {
    #footer-desktop {
        scroll-snap-align: start;
    }
    .footer-link-mobile {
        display: none;
    }
    #footer-mobile {
        display: none;
    }
    .nav-button.open ~ .desktop-nav {
        display: block;
    }    
    .gallery-container {
        margin-bottom: 40vh;
    }

}

/* NAVIGATION STYLES*/

.nav-button, .desktop-nav div {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid black;
    background-color: white;
    width: calc(20% + 120px);
    border-radius: .3rem;
    box-shadow: 0.3rem 0.3rem 0.2rem rgba(0,0,0,.4);
    padding: 1rem 0;
    text-align: center;
    font-weight: bold;
}

.desktop-nav {
    display: none;
}
.navigation {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.mobile-nav {
    display: none;
    position: relative;
}

.nav-button svg {
    height: 1rem; 
    position: absolute; 
    right: .5rem;
}

.desktop-nav div {
    margin-top: .5rem;
}
.desktop-nav div:hover, .nav-button:hover {
    box-shadow: 0.3rem 0.3rem 0.2rem rgba(0,0,0,.6);
    cursor: pointer;
    transition: box-shadow 0.1s;
}

@media only screen and (max-width: 800px) {
    .nav-button.open ~ .mobile-nav {
        display: block;
    }
    .nav-button {
        width: 100%;
    }
    .mobile-nav {
        background-color: #fff;
        border: 1px solid #000;
        width: 100%;
        padding-top: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: .3rem;
        box-shadow: 0.3rem 0.3rem 0.2rem rgba(0,0,0,.4);
        margin-top: 1rem;
        text-align: left;
    }
    .mobile-nav:hover {
        box-shadow: 0.4rem 0.4rem 0.2rem rgba(0,0,0,.4);
        transition: box-shadow 0.1s;
    }
    .mobile-nav a {
        line-height: 1.75rem;
    }
    .mobile-nav .nav-group {
        margin-bottom: 1.25rem;
    }
    .indicators + #footer-mobile {
        margin-top: 50vh;
    }
    .footer-link-mobile {
        right: 2rem;
    }
}

@media only screen and (min-width: 800px) {
    .nav-button.open ~ .desktop-nav {
        display: block;
    }
    .navigation {
        margin-top: -1rem
    }
}

.selected-currency {
    text-decoration: underline;
}

#footer-desktop div {
    display: flex;
    justify-content: space-between;
}

#footer-desktop {
    width: calc(540px + 3vw);
    margin: 0 auto;
}

main.nosnap {
    scroll-snap-type: unset;
}