/*
Theme Name: Fatbike Nova
Theme URI: https://fatbikenova.com
Author: Antigravity AI
Description: A premium, responsive, conversion-focused e-commerce layout for Fatbike Nova.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fatbikenova
*/

:root {
    --primary-color: #0F1E4A;
    --primary-light: #1A3275;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #E2E8F0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(15, 30, 74, 0.1);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }
.pb-5 { padding-bottom: 3rem; }
.bg-light { background-color: var(--bg-light); }
.text-dark { color: var(--primary-color) !important; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.top-bar p {
    margin: 0;
}

/* Header */
.site-header {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.site-header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-soft);
    border-bottom: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.search-bar {
    flex: 0 1 500px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--primary-color);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-light);
}

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

.icon-link {
    font-size: 1.25rem;
    color: var(--primary-color);
    position: relative;
}

.icon-link:hover {
    color: var(--primary-light);
}

.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #E53E3E;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.mobile-nav a:hover {
    color: var(--primary-light);
}

/* Dual Hero Section */
.hero-col {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.hero-col:hover .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.light-overlay {
    background: rgba(255, 255, 255, 0.2);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    padding: 0 40px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h2 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(255,255,255,0.5);
}

@media (min-width: 992px) {
    .dual-hero {
        display: flex;
    }
    .hero-col {
        flex: 1;
        height: 70vh;
        min-height: 600px;
    }
}

/* USP Bar */
.usp-bar {
    background-color: var(--bg-light);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.usp-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .usp-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.usp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.usp-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.usp-item span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
}

/* Product Category Grid */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    display: block;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: var(--border-color);
    background-color: var(--white);
}

.category-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.category-img img {
    max-height: 100%;
    transition: var(--transition);
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

/* Featured Products Carousel */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.carousel-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.product-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.product-card {
    flex: 0 0 280px;
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.sale {
    background-color: #E53E3E;
}

.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-info {
    text-align: left;
}

.rating {
    color: #F59E0B;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.rating span {
    color: var(--text-muted);
    font-family: var(--font-body);
    margin-left: 5px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-right: 8px;
}

.color-swatches {
    display: flex;
    gap: 8px;
}

.swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.swatch:hover {
    transform: scale(1.2);
}

/* Trust Brands Slider */
.trust-brands {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.font-inter { font-family: var(--font-body); font-weight: 500;}

.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logo-track {
    display: flex;
    align-items: center;
    width: calc(200px * 10);
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 5)); }
}

.brand-logo {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    transition: var(--transition);
}

.brand-logo:hover {
    opacity: 1;
}

.brand-logo h3 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #e2e8f0;
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.brand-col p {
    margin-bottom: 30px;
    max-width: 300px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col a:hover {
    color: var(--white);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-body);
    outline: none;
}

.newsletter-form button {
    background-color: #3182CE;
    color: var(--white);
    border: none;
    padding: 0 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #2B6CB0;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a:hover {
    color: var(--white);
}

/* Responsive utilities */
@media (max-width: 991px) {
    .search-bar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1, .hero-content h2 {
        font-size: 2.2rem;
    }
}
