@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-color: #ff5f00; /* Vibrant Nike Orange */
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --accent-glow: rgba(255, 95, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* --- Header & Navbar --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
}

.top-nav {
    background: #f5f5f5;
    padding: 5px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #111;
}

.top-nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-nav-right a {
    text-decoration: none;
    color: #111;
}

.top-nav-right span {
    color: #ccc;
}

nav {
    width: 100%;
    padding: 10px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
    border-bottom: 1px solid transparent;
}

.logo svg {
    width: 60px;
    height: auto;
}

/* --- Categories Section --- */
.categories {
    padding: 100px 8%;
    background: #0a0a0a;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cat-card {
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-card:hover img {
    transform: scale(1.1);
}

.cat-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.cat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cat-content a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
    transition: 0.3s;
}

.cat-content a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-links a:hover {
    border-bottom: 2px solid #111;
    padding-bottom: 5px;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 50px;
    gap: 10px;
}

.search-box svg {
    width: 20px;
    color: #111;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 120px;
}

.icon-btn {
    color: #111;
    transition: 0.3s;
}

.icon-btn svg {
    width: 24px;
}

.icon-btn:hover {
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}


/* --- Hero Section (Creative Update) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 8% 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, rgba(255, 95, 0, 0.15) 0%, rgba(10, 10, 10, 1) 60%);
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    animation: rotateBG 100s linear infinite;
    z-index: 0;
}

@keyframes rotateBG {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28vw;
    font-weight: 900;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: -10px;
}

.hero-content h1 {
    font-size: 8rem;
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 30px;
    text-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    filter: blur(180px);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
    top: 20%;
    right: -10%;
    pointer-events: none;
}

.hero-content {
    width: 50%;
    z-index: 10;
    position: relative;
}

.hero-content h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
}
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 95, 0, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 95, 0, 0.5);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
    transform: scale(1.05);
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 55%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.8));
    user-select: none;
}

/* --- Products Section --- */
.products {
    padding: 100px 8%;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    border: 1px solid var(--glass-border);
}

.product-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Cart Drawer --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    color: #111;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

#close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 10px;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: black;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #333;
}

.cart-icon-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* --- Featured Section --- */
.featured {
    padding: 80px 8%;
    background: white;
    color: #111;
}

.featured-banner {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
}

.featured-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.featured-banner:hover img {
    transform: scale(1.05);
}

.banner-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    z-index: 10;
}

.banner-content h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

/* --- Gear Up Section --- */
.gear-up {
    padding: 80px 8%;
    background: white;
    color: #111;
}

/* --- Product Cards (Light Theme for Original Look) --- */
.product-card {
    background: white;
    border: none;
    border-radius: 0; /* Nike uses sharp corners or very slight radius */
    padding: 0;
    transition: 0.3s;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.product-img-container {
    background: #f5f5f5;
    padding: 0;
    margin-bottom: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Fixes white backgrounds */
}

.product-info {
    padding: 10px 0;
    color: #111;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-info p {
    color: #757575;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.price-tag .price {
    color: #111;
    font-weight: 600;
}

.btn-add-cart {
    background: #111;
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-shop {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    padding: 50px 8%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo svg {
    width: 40px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    list-style: none;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 40px;
        gap: 20px;
        border-bottom: 1px solid #eee;
        z-index: 999;
        transform: translateX(0);
        opacity: 1;
    }
}

    .hero-content h1 {
        font-size: 5rem;
    }
    
    .search-box input {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        display: none; /* Hide top bar on mobile */
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        width: 100%;
        margin-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        position: relative;
        width: 100%;
        right: 0;
        top: 0;
        transform: rotate(-10deg);
        margin-top: 40px;
    }

    .hero-bg-text {
        font-size: 40vw;
    }
}
