/* ROOT VARIABLES */

:root {
    --bg: rgb(0,0,0);
    --text: rgb(240, 240, 240);
    --menu: rgba(15, 15, 15, 0.98);
    --product-ratio: 4/5;
}

@font-face {
    font-family: "Spectral";
    src: url("/assets/Spectral.ttf") format("truetype");
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    /* background-color: white; */
    color: var(--text);
    font-family: Spectral;
    display: flex;
    flex-direction: column;
    margin: 0;
}

body.noScroll {
    overflow: hidden;
}

/* NAV BAR */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: grid;
    height: 8rem;
    padding: 0 2rem 2rem;
    align-items: center;
    grid-template-columns: 1fr auto 1fr;
    background: linear-gradient(
        to bottom,
        rgb(0 0 0) 0%,
        rgb(0, 0, 0) 55%,
        85%,
        rgb(0 0 0 / 0) 100%
    );
}

#navLogo {
    height: 5rem;
    width: auto;
    display: block;
    margin: 0;
    justify-self: start;
}

#navList {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 1rem;
    margin: 0;
    justify-self: center;
}

.navItem a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.3rem;
}

.iconBtn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0;
}

.cartBtn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-self: end;
    position: relative;
}

.cartBtn svg {
    position: absolute;
    inset: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cartBtn .closeIcon {
    opacity: 0;
    transform: rotate(-90deg);
}

.cartBtn.open .cartIcon {
    opacity: 0;
    transform: rotate(90deg);
}

.cartBtn.open .closeIcon {
    opacity: 1;
    transform: rotate(0deg);
}

.hamburgerBtn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hbLine {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburgerBtn.open .hbLine:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburgerBtn.open .hbLine:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburgerBtn.open .hbLine:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* CART DRAWER */

.cartDrawer {
    position: fixed;
    inset: 0;
    z-index: 5;
    background-color: var(--menu);
    padding: 6rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.cartDrawer.open {
    opacity: 1;
    visibility: visible;
}

.cartHeader {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    margin: 0;
}

.cartItems {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.cartSummary {
    padding: 1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cartItem {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cartItem.removing {
    opacity: 0;
    transform: translateX(1rem);
}

.ciImg {
    width: 8rem;
    aspect-ratio: var(--product-ratio);
    object-fit: cover;
    flex-shrink: 0;
}

.ciInfo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.ciInfo p {
    margin: 0;
}

.ciRemove {
    background: none;
    border: none;
    color: var(--text);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    align-self: start;
    font-family: Spectral;
}

.csRow {
    display: flex;
    justify-content: space-between;
}

.csTotal {
    font-size: 1.6rem;
    margin-top: 0.5rem;
}

.checkoutBtn {
    width: 100%;
    margin-top: 0.5rem;
    background-color: white;
    color: black;
    border: none;
    height: 3rem;
    font-family: Spectral;
    font-size: 1.3rem;
    cursor: pointer;
}

/* MENU DRAWER */

.menuDrawer {
    position: fixed;
    inset: 0;
    z-index: 5;
    background: var(--menu);
    padding-top: 8rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.menuDrawer.open {
    opacity: 1;
    visibility: visible;
}

.drawerList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.drawerList a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
}

.drawerList a.current {
    background: rgba(255, 255, 255, 0.15);
}

/* PRODUCT VIEW */

.productView {
    position: fixed;
    inset: 0;
    z-index: 5;
    background-color: var(--menu);
    padding-top: 4rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.productView.open {
    opacity: 1;
    visibility: visible;
}

.pvContent {
    height: 100dvh;
    overflow-y: auto;
    padding: 3rem 1.25rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pvTopBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
}

.pvTitle {
    font-size: 1.8rem;
    margin: 0;
    padding: 0;
}

.pvClose {
    background: none;
    border: none;
    color: rgba(72, 72, 72, 0.526);
    font-size: 3rem;
    margin: 0;
    padding: 0;
    line-height: 1;
    transform: translateY(-0.45rem);
}

.pvGallery {
    position: relative;
    margin: -1.25rem;
}

.pvTrack {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pvTrack::-webkit-scrollbar {
    display: none;
}

.pvTrack img {
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: var(--product-ratio);
    object-fit: cover;
    scroll-snap-align: center;
    display: block;
}

.pvArrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    color: rgba(72, 72, 72, 0.526);
    cursor: pointer;
    font-size: 5rem;
}

.pvPrev {
    left: 0.2rem;
}

.pvNext {
    right: 0.2rem;
}

.pvBottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pvDots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    max-width: 66.666%;
    margin: 0 auto;
    padding-top: 1rem;
}

.pvDot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    transition: width 0.25s ease, background 0.25s ease;
}

.pvDot.active {
    width: 3rem;
    border-radius: 999px;
    background: var(--text);
}

.pvPrice {
    text-align: left;
    font-size: 1.5rem;
    padding: 1rem 0 0 0;
    margin: 0;
}

.pvSizeText {
    color: rgba(255, 255, 255, 0.335);
    margin: 0;
    padding: 0.5rem 0 1rem;
}

.pvSizes {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 1rem;
    height: 3.5rem;
}

.sizeBtn {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    position: relative;
    background: none;
    border: 0.15rem solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    font-family: Spectral;
    cursor: pointer;
    margin: 0;
    font-size: 1rem;
    overflow: visible;
}

.sizeBtn.unavailable {
    border: 0.2rem solid rgba(34, 34, 34, 0.47);
    cursor: not-allowed;
    color: rgba(73, 73, 73, 0.47);
}

.sizeBtn.unavailable::before,
.sizeBtn.unavailable::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        transparent calc(50% - 0.1rem),
        rgba(34, 34, 34, 0.47) calc(50% - 0.1rem),
        rgba(34, 34, 34, 0.47) calc(50% + 0.1rem),
        transparent calc(50% + 0.1rem)
    );
    pointer-events: none;
}

.sizeBtn.unavailable::after {
    background: linear-gradient(
        to top right,
        transparent calc(50% - 0.1rem),
        rgba(34, 34, 34, 0.47) calc(50% - 0.1rem),
        rgba(34, 34, 34, 0.47) calc(50% + 0.1rem),
        transparent calc(50% + 0.1rem)
    );
}

.sizeBtn.selected {
    border-color: white;
}

.pvAddBtn {
    background-color: white;
    margin-top: 2rem;
    height: 3.5rem;
    border: none;
    font-family: Spectral;
    color: black;
    font-size: 1.3rem;
}

.pvDescription {
    padding-top: 2rem;
}

.pvFeatures {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pvFeatures li {
    padding-left: 1.25rem;
    position: relative;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.pvFeatures li::before {
    content: "♱";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.4);
}

.pvShipping {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
}

/* HERO */

.hero {
    position: relative;    
    margin-bottom: 1rem;

}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 20%);
    pointer-events: none;
}

.heroVideo {
    display: block;
    padding-top: 4rem;
    width: 100%;
    height: 80vh;
    max-height: 65rem;
    object-fit: cover;
    position: relative;
    overflow: hidden;
}

/* SITE PAGES */

.pageWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sitePage {
    display: none;
    padding-top: 3rem;
}

.sitePage.active {
    display: block;
}

.sitePage > * + * {
    margin-top: 3rem;
}

.pageSpacer {
    height: 2rem;
}

.pageAccent {
    display: block;
    max-width: 12rem;
    width: 60%;
    height: auto;
    margin: 0 auto;
    opacity: 0.8;
}

.pageBreak {
    display: block;
    max-width: 6rem;
    width: 30%;
    height: auto;
    margin: 0 auto;
    opacity: 0.8;
}

.pageTitle {
    text-align: center;
    margin: 0;
}

.aboutContent,
.contactContent {
    max-width: 40rem;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    line-height: 1.8;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.contactRow {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    gap: 0.75rem;
    margin: 0 0 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
}

.contactRow svg {
    flex-shrink: 0;
}


/* SHOWCASE */

.showcaseGrid {
    position: relative;
    columns: 2;
    column-gap: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    margin-bottom: 5rem;
}

.showcaseGrid::before,
.showcaseGrid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 6rem;
    pointer-events: none;
    z-index: 1;
}

.showcaseGrid::before {
    top: 0;
    background: linear-gradient(
        to bottom,
        var(--bg) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.2) 75%,
        transparent 100%
    );
}

.showcaseGrid::after {
    bottom: 0;
    background: linear-gradient(
        to top,
        var(--bg) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.2) 75%,
        transparent 100%
    );
}

.showcaseGrid img {
    width: 100%;
    aspect-ratio: unset;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
    break-inside: avoid;
}

/* LISTINGS */

.listingsGrid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 20rem);
    justify-content: center;
    gap: 3rem;
}

.productCard {
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.productImg {
    width: 100%;
    aspect-ratio: var(--product-ratio);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    margin: 0;
    padding: 0;
}

.productInfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.productName {
    margin: 0;
    padding-top: 1rem;
}

.productPrice {
    margin: 0;
}

/* CONFIRMATION PAGE */

.confirmScreen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
}

.confirmTitle {
    font-size: 2rem;
    letter-spacing: 0.2em;
    margin: 0;
}

.confirmText {
    color: rgba(255, 255, 255, 0.6);
    max-width: 24rem;
    margin: 0;
}

.confirmBtn {
    display: inline-block;
    background-color: white;
    color: black;
    text-decoration: none;
    font-family: Spectral;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

/* FOOTER */

.siteFooter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 4rem 1.5rem 3rem;
}

.siteFooter a {
    color: rgba(255, 255, 255, 0.393);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
}

.siteFooter a:hover {
    color: white;
}

.footerCopyright {
    color: rgba(255, 255, 255, 0.236);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
}

/* MOBILE */

@media (max-width: 1000px) {
    header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hamburgerBtn {
        display: flex;
    }

    #desktopNav {
        display: none;
    }

    #navLogo {
        justify-self: center;
        height: 4rem;
    }

    .heroVideo {
        display: block;
        padding-top: 4.6rem;
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    .pageTitle {
        font-size: 1.6rem;
    }

    .aboutContent,
    .contactContent {
        width: 95%;
        font-size: 0.95rem;
    }

    .showcaseGrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .listingsGrid {
        grid-template-columns: repeat(2, 44vw);
        gap: 0 3vw;
        justify-content: center;
    }

    .pvArrow {
        display: none;
    }

    .productName {
        font-size: 1rem;
    }

    .productPrice {
        margin-top: 0;
        padding-top: 0.5rem;
        font-size: 1rem;
    }

    .sitePage {
        padding-top: 1.5rem;
    }

    .sitePage > * + * {
        margin-top: 2rem;
    }
}

/* DESKTOP */

@media (min-width: 1000px) {

    .sitePage > * + * {
        margin-top: 3rem;
    }

    .pvContent {
        height: 100dvh;
        overflow: hidden;
        padding: 6rem 0 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "gallery topbar"
            "gallery bottom";
        align-items: start;
    }

    .pvGallery {
        grid-area: gallery;
        margin: 0;
        align-self: start;
        justify-self: center;
        display: grid;
        grid-template-columns: auto minmax(0, 30rem) auto;
        align-items: center;
        gap: 1.2rem;
        width: auto;
    }

    .pvGallery .pvDots {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .pvTrack {
        width: 100%;
        height: auto;
        aspect-ratio: var(--product-ratio);
    }

    .pvTrack img {
        width: 100%;
        height: 100%;
    }

    .pvArrow {
        position: static;
        transform: none;
    }

    .pvDots {
        grid-area: dots;
        padding-bottom: 2.5rem;
    }

    .pvTopBar {
        grid-area: topbar;
        padding: 0 3rem;
    }

    .pvBottom {
        grid-area: bottom;
        overflow-y: auto;
        min-height: 0;
        align-self: stretch;
        padding: 0 3rem 4rem;
        padding-bottom: 5rem;
    }

    .pvTitle {
        font-size: 2rem;
        padding-bottom: 2rem;
    }

    .pvClose {
        transform: translateY(-1.6rem);
    }

    .pvPrice {
        font-size: 1.5rem;
        padding-top: 0;
        padding-bottom: 2rem;
    }

    .pvSizes {
        max-height: 5rem;
    }

    .sizeBtn {
        font-size: 1.4rem;
    }

    .pvAddBtn {
        height: 4rem;
    }

    .cartDrawer {
        left: auto;
        width: min(26rem, 100%);
    }

    .showcaseGrid {
        columns: 3;
    }

    .aboutContent,
    .contactContent {
        max-width: 55rem;
        font-size: 1.1rem;
    }
}