@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Montserrat:wght@400;700;900&family=Open+Sans:wght@400;600&display=swap');
@import './variables.css';

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--color-title);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #e62e00;
    transform: translateY(-2px);
}

/* Header */
.site-header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #f8f8f8;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact-list {
    display: flex;
    gap: 20px;
}

.top-contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-social-list {
    display: flex;
    gap: 15px;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 28px;
    color: var(--color-title);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo span {
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-title);
}

.main-nav a:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icon {
    font-size: 18px;
    color: var(--color-title);
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    height: 80vh;
    /* Taller hero */
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    /* Placeholder Car Image */
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-left: 5%;
}

.hero-badge {
    background: var(--color-primary);
    color: white;
    padding: 5px 15px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    /* Slight skew */
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 72px;
    line-height: 1;
    color: var(--color-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
    color: var(--color-primary);
    -webkit-text-stroke: 0;
}

.hero-content .subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    display: block;
    color: #ddd;
}

.hero-content .btn-primary {
    font-size: 16px;
    padding: 15px 40px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-content .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: 0.5s;
    z-index: -1;
}

.hero-content .btn-primary:hover::after {
    left: 100%;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>* {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.hero-content .hero-badge {
    animation-delay: 0.2s;
}

.hero-content h1 {
    animation-delay: 0.4s;
}

.hero-content .subtitle {
    animation-delay: 0.6s;
}

.hero-content .btn {
    animation-delay: 0.8s;
}


/* Categories Section */
.categories-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.category-item {
    padding: 30px;
    border: 1px solid #eee;
    transition: var(--transition-fast);
    border-radius: 4px;
}

.category-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    transform: translateY(-5px);
}

.category-icon {
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    max-height: 100%;
}

.category-title {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* Featured Products */
.featured-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 18px;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #999;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: var(--color-white);
    margin-bottom: 25px;
    font-size: 18px;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* Mobile Menu Styles */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-title);
}

.mobile-close {
    display: none;
    text-align: right;
    padding: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 768px) {
    .top-bar {
        display: none;
        /* Hide top bar on mobile */
    }

    .main-header .container {
        height: 60px;
        padding: 0 15px;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-white);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        transition: 0.3s;
    }

    .main-nav.active {
        left: 0;
    }

    .mobile-close {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .logo {
        font-size: 20px;
    }

    .header-actions {
        gap: 15px;
    }

    .header-icon {
        font-size: 16px;
    }

    /* Hero Responsive */
    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content .subtitle {
        font-size: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}