/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f8;
    color: #111;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ================= NAV ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff3b00;
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
    position: relative;
    z-index: 2;
    /* Bring text in front of 3D canvas */
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span {
    color: #ff3b00;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.hero-btn {
    padding: 16px 38px;
    font-size: 16px;
    background: #ff3b00;
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
}




/* ================= PRODUCTS ================= */
/* ================= PRODUCTS ================= */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 100px 5%;
    background: #0f0f0f;
}

/* product card */
.product {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0;
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* hover */
.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-color: #ff3b00;
}

/* image */
.img-box {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #111;
    position: relative;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

/* Scale effect on hover */
.product:hover .img-box img {
    transform: scale(1.1);
}

/* simulated secondary visual (gradient overlay on hover) */
.img-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(255, 59, 0, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product:hover .img-box::after {
    opacity: 1;
}

/* product text */
.product-info {
    padding: 25px;
    background: #1a1a1a;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product p {
    font-size: 15px;
    margin-bottom: 20px;
    color: #888;
    font-weight: 400;
}

/* add to cart button */
.product button {
    margin-top: auto;
    width: 100%;
    padding: 14px 0;
    background: transparent;
    color: #fff;
    border: 1px solid #444;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.product button:hover {
    background: #ff3b00;
    border-color: #ff3b00;
    color: white;
}

/* ================= FADE-IN ================= */
/* Scroll animation */
.fade-in {
    opacity: 1;
    /* ✅ visible by default */
    transform: translateY(0);
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= CART ================= */
.cart-section {
    padding: 60px 40px;
    background: #ffffff;
}

.cart-section h2 {
    margin-bottom: 20px;
}

.cart-section p {
    margin: 8px 0;
}

#cart-list {
    margin-top: 20px;
}

#cart-list li {
    margin-bottom: 10px;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}