@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Gravitas+One&family=Inconsolata:wght@200..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Quicksand:wght@300..700&family=Titan+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= RESET ================= */

section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
}

/* Enable snap scrolling */
html {
    scroll-behavior: smooth;
}

body {
    color: #fff;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    font-family: "Inconsolata", monospace;
    font-weight: bold;
}

/* ================= HERO ================= */

.hero {
    height: 100vh;
    width: 100%;
    background: url("assets/img/shoot.PNG") no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 80px 60px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: transparent;
    margin-top: 12px;
}

/* Logo Center */
.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

/* ================= HAMBURGER ================= */

.hamburger {
    position: absolute;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #000000;
    transition: all 0.3s ease;
}

/* When page is scrolled */
.navbar.scrolled .hamburger span {
    background: #000;
    /* BLACK after hero */
}

/* Hamburger Animation */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ================= SIDE MENU ================= */

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 250px;
    height: 100vh;
    background: #000;
    padding: 120px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 1001;
}

.side-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.side-menu.active {
    transform: translateX(0);
}

/* ================= OVERLAY ================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ================= CLOSE BUTTON ================= */

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s ease;
}

.close-btn:hover {
    opacity: 0.6;
}

.nav-btn:hover {
    opacity: 0.6;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .navbar {
        padding: 20px 25px;
    }

    .hamburger {
        left: 25px;
    }

}

/* ================= HERO CONTENT ================= */

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(42px, 10vw, 180px);
    line-height: 0.9;
    letter-spacing: -2px;
    white-space: nowrap;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-weight: bold;

}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #ddd;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .hero {
        padding: 40px 25px;
    }

    .navbar {
        padding: 20px 25px;
    }

    .nav-left {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .hero-content h1 {
        white-space: normal;
    }
}

/* ================= STORE SECTION ================= */

.store {
    background: #fff;
    color: #000;
    padding: 120px 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.store-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.product {
    text-align: center;
}

.product img {
    width: 100%;
    max-width: 250px;
    margin-bottom: 20px;
}

.product h3 {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 200;


}

.product p {
    font-size: 14px;
    font-weight: 200;
}

#ss-font {
    font-family: "Inconsolata", monospace;
    font-weight: bold;
}

/* ================= PRODUCT IMAGE HOVER SWAP ================= */

.product-image {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin: 0 auto 20px;
}

.product-image img {
    width: 100%;
    display: block;
    transition: opacity 0.4s ease;
}

/* Back image sits on top */
.product-image .back {
    position: absolute;
    inset: 0;
    opacity: 0;
}

/* Hover effect */
.product:hover .back {
    opacity: 1;
}

.product:hover .front {
    opacity: 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .store-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #store {
        margin-top: 250px;
    }
}

@media (max-width: 600px) {
    .store {
        padding: 80px 25px;
    }

    .store-container {
        grid-template-columns: 1fr;
    }
}

/* ================= MOBILE SCROLL FIX ================= */

@media (max-width: 768px) {

    html,
    body {
        height: auto;
        overflow-y: auto;
        scroll-snap-type: none;
    }

    section {
        min-height: auto;
    }

}

/* ================= FIX STORE HEIGHT ON MOBILE ================= */

@media (max-width: 768px) {

    #store {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 80px;
        /* optional breathing space */
    }

}

body {
    background: #fff;
    color: #000;
}


/* ================= CART ICON ================= */

.cart-icon {
    position: absolute;
    right: 40px;
    /* RIGHT SIDE */
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    cursor: pointer;
    color: #000000;
    transition: 0.3s ease;
}

/*
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: rgb(122, 87, 87);
    color: #ffffff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}
*/
.cart-count {
    color: #000000;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Change color after scroll */
.navbar.scrolled .cart-icon {
    color: #000;
}
/* ================= CART DRAWER ================= */

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100dvh; /* FIX mobile viewport issue */
    background: #fff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 2000;

    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

/* ================= HEADER ================= */

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.close-cart {
    font-size: 28px;
    cursor: pointer;
}

/* ================= ITEMS ================= */

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Single Item */
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-item img {
    width: 70px;
    height: auto;
}

.cart-item-info h4 {
    font-size: 14px;
    margin: 0;
}

.cart-item-info p {
    margin: 5px 0 0;
    font-size: 13px;
}

/* ================= FOOTER ================= */

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    font-weight: bold;

    background: #fff;
    flex-shrink: 0;
}

/* ================= CHECKOUT BUTTON ================= */

.checkout-btn {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s ease;
}

.checkout-btn:hover {
    opacity: 0.8;
}

/* ================= MOBILE FIX ================= */

@media (max-width: 600px) {
    .cart-drawer {
        width: 100%;
        max-width: 100%;
    }
}
/* ================= REMOVE ITEM ================= */

.remove-item {
    margin-left: auto;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
}

.remove-item:hover {
    opacity: 0.6;
}

/* ================= SIZE SELECTOR ================= */

.size-selector {
    margin-top: 25px;
    text-align: center;
    /* centers title */
}

.size-selector p {
    margin-bottom: 12px;
    font-size: 14px;
    font-family: "Inconsolata", monospace;
    font-weight: bold;
}

.sizes {
    display: flex;
    justify-content: center;
    /* centers buttons horizontally */
    gap: 12px;
}

.size-btn {
    padding: 10px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50em;
    transition: 0.3s ease;
    color:black;
}

.size-btn:hover {
    color: white;
    background-color: #000;
}

.size-btn.active {
    background: #000;
    color: #fff;
}


.add-to-cart-btn {
    background: transparent !important;
    border: 2px solid black !important;
    color: black !important;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0 !important;
    width: 100%;
    transition: all 0.3s ease;

}


.add-to-cart-btn:hover {
    background: black !important;
    color: white !important;
}
/*
.add-to-cart-btn1 {
    background: transparent !important;
    border: 1px solid black !important;
    color: black !important;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0 !important;
    margin-top: 24px;
    transition: all 0.3s ease;
}
*/
/*
.add-to-cart-btn1:hover {
    background: black !important;
    color: white !important;
}
*/
.add-to-cart-btn1 {
    background: transparent !important;
    border: none;
    color: black !important;
    padding: 12px 28px;
    font-size: 18px;
    cursor: pointer;
}

.add-to-cart-btn1 i {
    transition: 0.3s ease;
}

.add-to-cart-btn1:hover i {
    transform: rotate(45deg);
}



/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .product-page {
        padding: 60px 15px;
    }

    .image-viewer {
        width: 280px;
        height: 320px;
    }

    .nav-btn {
        font-size: 22px;
    }

    .left {
        left: -60px;
    }

    .right {
        right: -60px;
    }

    .product-wrapper h1 {
        font-size: 18px;
    }

    .product-wrapper p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .image-viewer {
        width: 240px;
        height: 280px;
    }

    .left {
        left: -45px;
    }

    .right {
        right: -45px;
    }

    .nav-btn {
        font-size: 18px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    color: #000;
}

/* ================= PRODUCT PAGE ================= */

.product-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

/* Make wrapper bigger */
.product-wrapper {
    text-align: center;
    width: 100%;
    max-width: 1000px;   /* Bigger container */
}
/* ================= IMAGE VIEWER ================= */

.image-viewer {
    position: relative;
    width: 100%;
    max-width: 500px;   /* Bigger on desktop */
    height: 550px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.1s ease, transform 0.01s ease;
    opacity: 1;
}

/* Fade effect */
.image-viewer img.fade-out {
    opacity: 0;
}

@media (max-width: 768px) {
    .image-viewer {
        height: 75vh;   /* Takes 75% of screen height */
        max-width: 100%;
    }

    .image-viewer img {
        max-height: 100%;
    }
}
/* ================= NAV BUTTONS ================= */

.nav-btn {
    position: absolute;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s ease;
}

.nav-btn:hover {
    opacity: 0.6;
}

.left {
    left: -120px;
    /* DESKTOP stays same */
    top: 50%;
    transform: translateY(-50%);
}

.right {
    right: -120px;
    /* DESKTOP stays same */
    top: 50%;
    transform: translateY(-50%);
}

.nav-btn {
    position: absolute;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s ease;
    color: black;
    font-family: "Gravitas One", serif;
}

.nav-btn:hover {
    opacity: 0.6;
}

/* ================= TEXT ================= */

.product-wrapper h1 {
    font-size: clamp(12px, 2vw, 16px);
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 200;

}

.product-wrapper p {
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 200;

}

/* ================= RESPONSIVE ================= */


@media (max-width: 480px) {

    .image-viewer {
        width: 340px;
        height: 380px;
    }

    .left {
        left: -4px;
    }

    .right {
        right: -4px;
    }

    .nav-btn {
        font-size: 18px;
    }
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo {
    width: 100px; /* adjust size */
    filter: brightness(0) invert(1); /* makes logo white */
    animation: heartbeat 1.4s infinite ease-in-out;
}

/* Heartbeat Animation */
@keyframes heartbeat {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.08); }
    40%  { transform: scale(1); }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Hide loader */
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}