/* GLOBAL */
body {
    font-family: Arial, Helvetica, sans-serif !important;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #e30613, #ff6600);
    padding: 10px 20px;
}

.logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .logo img {
        width: 150px;
        height: 150px;
    }
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    background: linear-gradient(to right, #e30613, #ff6600);
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: linear-gradient(to right, #ff6600, #e30613);
}
/* Improved Mobile Dropdown Menu */
.nav-links {
    border-radius: 12px;
    overflow: hidden;
}

.nav-links a {
    padding: 14px 18px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: 0.25s ease;
}

.nav-links a:last-child {
    border-bottom: none;
}

.nav-links a:hover {
    background: rgba(0,0,0,0.08);
    padding-left: 25px !important;  /* gives animation feel */
}

/* MOBILE NAV */
@media (max-width: 600px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #f4f4f4;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 150px;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        color: #333;
        padding: 10px 0;
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: #e30613;
    }

    .hamburger {
        display: block;
    }
}
.title {
    width: 100%;
    background: #000;
    padding: 15px 10%;        /* reduced height (was 10px 10%) */
    text-align: center;
    box-sizing: border-box;
}

.title h3 {
    color: #fff;
    margin: 0;
    font-size: 1.6rem;       /* smaller than 2rem */
    font-weight: bold;
}

.intro {
    width: 90%;
    margin: 20px auto;
    padding: 25px 30px;
    font-size: 22px;
	font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.6;
    color: #1a1a1a; /* dark charcoal */
    background: linear-gradient(
        to right,
        rgba(227, 6, 19, 0.60),
        rgba(255, 102, 0, 0.60)
    );
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* HERO IMAGE (CENTERED) */
.hero-image {
    width: 100%;
    max-width: 1100px;
    height: 300px;
    margin: 25px auto;
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.center-img {
    display: block;
    margin: 25px auto;
    max-width: 1100px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}


/* CARD GRID — MAX 3 ACROSS */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

@media (max-width: 900px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

/* CARDS WITH GRADIENT */
.card {
    background: linear-gradient(to right, #e30613, #ff6600);
    border-radius: 12px;
    padding: 25px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;               /* removed grey border */
    transition: 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.card a {
    color: #fff;                 /* white text on gradient */
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
}

/* HOVER EFFECT */
.card:hover {
    transform: translateY(-5px);
    background: linear-gradient(to right, #ff6600, #e30613);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}


/* FOOTER STAYS AT BOTTOM */
footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
}
/* Vehicles Page Layout */
.vehicles-page {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Grid Container */
.cards-container-vehicles {
    width: 90%;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.vehicle-card {
    max-width: 600px;    /* slightly bigger than image max-width */
    width: 90%;
    margin: 20px auto;
    background: #111;
    padding: 15px;
    border-radius: 12px;
    color: #fff;
}

.vehicle-card, .vehicle-image, .vehicle-info {
    text-align: center;
}

.vehicle-card:hover {
    transform: scale(1.03);
}

.vehicle-image img {
    width: 100%;
    max-width: 550px;    /* ← reduce this to the width you want */
    height: auto;
    display: block;
    margin: 0 auto;      /* centers the image */
    border-radius: 8px;
}

.vehicle-info {
    padding: 20px 30px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}


.vehicle-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
}

.vehicle-price {
    margin: 5px 0;
    font-size: 1.1rem;
}


.vehicle-price {
    font-size: 1.2rem;
    color: #ffcc00;
    margin: 10px 0;
}

.vehicle-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 18px;
    background: linear-gradient(to right, #c89b00, #ffdd44);
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.2s ease-in-out;
}

.vehicle-button:hover {
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(255, 221, 68, 0.7);
}


/* VEHICLE DETAILS PAGE MATCHING VEHICLES LISTING STYLE */
.vehicle-details-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
}

.details-card {
    background: #111;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.vehicle-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stock-info {
    color: #ffb347;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Gallery */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-box {
    display: inline-block;
}

.image-box img {
    width: 180px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
}


/* Orange Button - same as index.php cards */
.btn-orange {
    display: inline-block;
    padding: 12px 20px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(to right, #e30613, #ff6600);
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    width: 220px;
    transition: 0.3s ease;
}

.btn-orange:hover {
    opacity: 0.85;
    transform: translateY(-3px);
}
/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.enlargeable {
    cursor: zoom-in;
}

/* PARTS PAGE – SAME STYLE AS VEHICLES BUT SMALLER THUMBNAILS */

.parts-page {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.cards-container-parts {
    width: 90%;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* Same card style as vehicles, just smaller */
.part-card {
    background: #111;
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: 0.25s ease;
}

.part-card:hover {
    transform: scale(1.03);
}

/* THUMBNAIL IMAGES */
.part-image img {
    width: 120px;         /* 👈 thumbnail */
    height: 120px;        /* 👈 thumbnail */
    object-fit: cover;    
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

/* Info area */
.part-info {
    padding: 10px 5px;
    font-family: 'Orbitron', sans-serif;
}

/* Same button as vehicle pages */
.part-button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(to right, #c89b00, #ffdd44);
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    text-decoration: none

