:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #2b2b2b;
    --secondary-bg: #f5f5f5;
    --font-heading: 'Playfair Display', serif;
    /* Elegant Serif */
    --font-body: 'Outfit', sans-serif;
    --btn-primary-bg: #000000;
    --btn-primary-text: #ffffff;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

/* Header / Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    cursor: pointer;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.logo-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #555;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 1rem;
    text-transform: uppercase;
    color: #555;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #000;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Hero Section - Gymshark Style: Full visual, bold overlay */
.hero {
    position: relative;
    height: 90vh;
    /* Not quite full screen to show content peek */
    width: 100%;
    margin-top: 80px;
    /* Offset fixed header */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align content */
    overflow: hidden;
}

.hero-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/banners/hero_trendsi.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 60px;
    max-width: 600px;
    color: #000;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-group {
    display: flex;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: white;
    color: black;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: black;
}

/* Featured / Grid Section */
.featured {
    padding: 80px 40px;
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h2 {
    font-size: 2.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Forced 3 columns as requested */
    gap: 30px;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Placeholder Product Card */
.product-card {
    background: transparent;
    /* Clean look */
    cursor: pointer;
}

.product-image {
    width: 100%;
    aspect-ratio: 9/16;
    /* Updated to match video style (Vertical) */
    background-color: #f0f0f0;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    /* Prepare for potential img use */
    background-size: cover;
    background-position: center;
}

.product-card:hover .product-image {
    transform: translateY(-5px);
    /* Lift effect instead of zoom for bg-image to be safe */
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.product-price {
    color: #666;
    font-weight: 500;
}

/* Category Split Banner */
.split-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 80vh;
    width: 100%;
}

.banner-item {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.banner-item:hover .banner-bg {
    transform: scale(1.05);
}

.banner-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    /* Slight darkening for text pop */
    padding: 2rem;
    backdrop-filter: blur(2px);
    border-radius: 4px;
}

.banner-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Community Section */
.community-section {
    position: relative;
    padding: 100px 40px;
    background: #f5f5f5;
    text-align: center;
}

.community-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.community-text {
    flex: 1;
    text-align: left;
}

.community-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.community-image {
    flex: 1.5;
    aspect-ratio: 9/16;
    /* Vertical alignment */
    background-image: url('assets/banners/community_lifestyle.png');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

/* Newsletter */
.newsletter {
    background: #000;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    color: #aaa;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #333;
    background: #111;
    color: white;
    font-family: var(--font-body);
}

/* Footer Extended */
.footer {
    background: #111;
    color: #fff;
    padding: 80px 40px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    grid-column: 1 / -1;
    margin-top: 60px;
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .split-banner {
        grid-template-columns: 1fr;
        height: auto;
    }

    .banner-item {
        height: 60vh;
    }

    .community-grid {
        flex-direction: column;
    }

    .footer {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* Cart Styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.empty-cart-msg {
    text-align: center;
    margin-top: 50px;
    color: #888;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #666;
    font-size: 0.9rem;
}

.cart-footer {
    padding: 20px 30px 40px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.free-shipping-note {
    font-size: 0.8rem;
    text-align: center;
    color: #666;
    margin-top: 15px;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
    }
}

/* Campaign Video Section */
.campaign-video-grid {
    padding: 0 40px 100px;
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns for desktop */
    gap: 20px;
    width: 100%;
}

.campaign-video-item {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    /* Force vertical format to show full video */
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.campaign-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover ensures it fills, but ratio matches source so it won't crop much */
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.campaign-video-item:hover video {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .campaign-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .campaign-grid {
        grid-template-columns: 1fr;
    }
}