/* --- 1. Global Reset & Body Setup --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

h1, h2, h3, .logo-text {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 2. Navigation (Frosted Glass Effect) --- */
header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    color: #e63946;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover, .fb-icon:hover {
    color: #e63946;
}

.fb-icon {
    font-size: 1.2rem;
    transition: 0.3s;
}

/* --- 3. Hero Slider (The Banner) --- */
.slider-container {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-color: #0d0d0d;
    overflow: hidden;
    width: 100%;
}

/* Styling for the actual images inside the slider */
.slider-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the photo fills the box perfectly */
    display: block;
}

/* Optional: Add a slight zoom effect to the product image when the slide is active */
.slide.active .slider-product-img {
    transform: scale(1.05);
    transition: transform 2s ease-out;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.slide-product-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slide-image {
    flex: 1;
    max-width: 500px;
    height: 350px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-info {
    flex: 1;
    text-align: left;
}

.category-tag {
    color: #e63946;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.slide-info h1 {
    font-size: 3.5rem;
    margin: 10px 0;
}

.slide-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 20px 0;
}

/* --- 4. Slider Navigation --- */
.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 10%;
    display: flex;
    gap: 15px;
    z-index: 20;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-nav button:hover {
    background: #e63946;
    border-color: #e63946;
}

/* --- 5. Content Sections --- */
section {
    padding: 100px 10%;
    text-align: center;
    scroll-margin-top: 70px;
}

.hero { /* Original static hero for logo */
    padding: 100px 20px;
}

.main-logo {
    width: 180px;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 25px;
    transition: 0.3s;
}

.cta-button:hover {
    background-color: #b91c1c;
    transform: scale(1.05);
}

.partners-bar {
    background-color: #000;
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    border-bottom: 1px solid #222;
}

/* --- 6. Shop Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
    transition: 0.3s;
}

.product-card:hover {
    border-color: #e63946;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.1);
}

.buy-button {
    display: block;
    background: linear-gradient(45deg, #e63946, #b91c1c);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

/* --- Fix for Shop Product Images --- */
.product-card .product-img {
    width: 100%;           /* Fills the horizontal space of the card */
    height: 200px;         /* Gives every product image a consistent height */
    object-fit: cover;     /* Crops the image to fit the box without stretching/elongating */
    object-position: center; /* Ensures the car part/engine is centered in the frame */
    border-radius: 6px;    /* Matches your card style */
    margin-bottom: 15px;
    display: block;
}

/* --- 7. Footer & Sidebar --- */
footer {
    padding: 60px 10%;
    background-color: #0a0a0a;
    text-align: center;
    border-top: 1px solid #222;
    color: #555;
}

.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-sidebar a {
    width: 45px;
    height: 45px;
    background: #1877F2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

/* --- 8. Responsive Design (The Bottom) --- */
@media (max-width: 900px) {
    .slider-container {
        height: auto;
        min-height: 80vh;
        padding-bottom: 80px;
    }

    .slide-product-layout {
        flex-direction: column;
        text-align: center;
    }

    .slide-info h1 {
        font-size: 2.2rem;
    }

    .slide-image {
        height: 250px;
        width: 100%;
    }

    .slider-nav {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 600px) {
    section { padding: 60px 5%; }
    
    .social-sidebar {
        right: 10px;
    }
    
    .social-sidebar a:hover {
        transform: none;
    }
}
