body {
    font-family: 'Open Sans', sans-serif; /* Clean reading font */
    background-color: #f0f2f5;
    margin: 0;
    color: #333;
    animation: fadeIn 0.8s ease-in-out;
}

h1, h2, h3, h4, .price, .site-logo, .main-nav a, button {
    font-family: 'Montserrat', sans-serif; /* Bold brand font */
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    background-color: #333333;
    color: white;
    padding: 15px 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1000;
    border-bottom: 4px solid #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.logo-wrapper img.site-logo {
    height: 90px;
    width: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.logo-wrapper:hover img.site-logo {
    transform: scale(1.05);
    border-color: white;
}

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
}

.header-center h1 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#carSearch {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #555;
    background-color: #444;
    color: white;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#carSearch::placeholder { color: #bbb; }
#carSearch:focus { background-color: #fff; color: #000; }

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header-actions-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* AUTH BUTTON */
.auth-btn {
    background-color: #4285F4; /* Google Blue */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.9rem;
}
.auth-btn:hover {
    background-color: #357ae8;
}

.social-group { display: flex; gap: 15px; }

.social-icon-large {
    width: 45px; height: 45px; border-radius: 10px;
    transition: transform 0.2s ease, filter 0.2s ease;
    background: white; padding: 2px;
}

.social-icon-large:hover { transform: translateY(-3px); filter: brightness(1.1); }

#cart-btn {
    background-color: transparent; border: 2px solid white; color: white;
    padding: 10px 20px; border-radius: 50px; font-weight: bold; font-size: 1rem;
    cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
}

#cart-btn:hover { background-color: white; color: #333; }

.main-nav { display: flex; gap: 20px; margin-right: 5px; }

.main-nav a {
    color: #bbb; text-decoration: none; font-weight: 600;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease;
}

.main-nav a:hover { color: #f1c40f; transform: translateX(-2px); }
.main-nav a.active { color: #f1c40f; border-bottom: 2px solid #f1c40f; }

@media (max-width: 900px) {
    header { flex-direction: column; padding: 20px 10px; gap: 15px; }
    .header-center { width: 100%; order: 2; }
    .header-right { alignItems: center; width: 100%; order: 3; margin-top: 5px; }
    .logo-wrapper { order: 1; }
}

.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.page-view.active {
    display: block;
    opacity: 1;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.info-container {
    max-width: 800px; margin: 50px auto; background: white; padding: 40px;
    border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); text-align: center;
}

.info-container h2 { color: #333; font-size: 2.5rem; margin-bottom: 20px; text-transform: uppercase; }
.info-container p { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 30px; }

.contact-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.contact-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px;
    color: white; text-decoration: none; border-radius: 50px; font-weight: bold;
    font-size: 1rem; transition: transform 0.2s;
}
.contact-btn:hover { transform: translateY(-5px); }
.btn-whatsapp { background: #25D366; }
.btn-insta { background: #E1306C; }
.btn-email { background: #3498db; }

/* --- REVIEWS STYLES --- */
.review-form-box {
    background: #f9f9f9; padding: 20px; border-radius: 10px; margin-bottom: 40px;
    border: 1px solid #eee; text-align: left;
}
.review-form-box h3 { margin-top: 0; color: #333; }
.review-form-box input, .review-form-box textarea {
    width: 100%; padding: 10px; margin-bottom: 15px; border-radius: 5px;
    border: 1px solid #ccc; font-family: inherit; box-sizing: border-box;
}
.star-rating-input { font-size: 2rem; color: #ccc; cursor: pointer; margin-bottom: 15px; }
.star-rating-input .star:hover, .star-rating-input .star.active { color: #f1c40f; }

.review-card {
    background: #fff; padding: 20px; margin-bottom: 20px; border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: left; border-left: 5px solid #f1c40f;
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.reviewer-name { font-weight: bold; font-size: 1.1rem; color: #333; }
.review-stars { color: #f1c40f; letter-spacing: 2px; }
.review-text { color: #666; font-style: italic; line-height: 1.5; }

.filter-bar { display: flex; justify-content: center; gap: 15px; padding: 20px 0 10px 0; margin-bottom: 10px; }
.filter-btn { background-color: white; border: 2px solid #333; color: #333; padding: 8px 24px; border-radius: 30px; font-weight: 700; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-btn:hover { background-color: #eee; transform: translateY(-2px); }
.filter-btn.active { background-color: #333; color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.filter-btn[onclick*="available"].active { background-color: #27ae60; border-color: #27ae60; }
.filter-btn[onclick*="sold"].active { background-color: #e74c3c; border-color: #e74c3c; }

.container { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 15px; padding: 30px 2%; max-width: 98%; margin: 0 auto; }
.car-card { background: white; padding: 15px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-top: 5px solid #ddd; display: flex; flex-direction: column; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease; cursor: pointer; position: relative; }
.car-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.car-image { width: 100%; height: 370px; object-fit: cover; border-radius: 6px; background-color: #eee; cursor: zoom-in; transition: transform 0.2s ease, opacity 0.2s ease; }
.car-image:hover { opacity: 0.9; transform: scale(1.02); }
.description { font-size: 0.9rem; color: #666; margin: 15px 0; line-height: 1.4; flex-grow: 1; }
.price-container { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; }
.price-labels { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.price { font-size: 1.4rem; font-weight: bold; color: #000000; margin: 0; }
.old-price { font-size: 0.9rem; text-decoration: line-through; color: #7f8c8d; font-weight: 600; }
.add-btn { background-color: #3498db; color: white; border: none; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; min-width: 100px; justify-content: center; box-shadow: 0 3px 6px rgba(52, 152, 219, 0.2); }
.add-btn:hover { background-color: #2980b9; transform: scale(1.03); }
.add-btn.disabled { background-color: #bdc3c7; cursor: not-allowed; box-shadow: none; }

.cart-drawer { position: fixed; right: -400px; top: 0; width: 350px; height: 100%; background: white; box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: 0.3s ease; z-index: 2000; display: flex; flex-direction: column; color: #333; }
.cart-drawer.open { right: 0; }
.cart-header { padding: 15px 20px; background: #333333; color: white; display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid #444; }
.cart-header button { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); color: white; font-size: 0.9rem; font-weight: 600; padding: 8px 16px; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.cart-header button:hover { background-color: #e74c3c; border-color: #e74c3c; transform: scale(1.05); box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4); }
#cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-footer { padding: 20px; border-top: 2px solid #eee; }
.checkout-btn { width: 100%; padding: 15px; background: #25D366; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }

.status-tag { font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; font-weight: bold; }
.available { border-top-color: #27ae60; }
.available .status-tag { background: #e8f8f0; color: #27ae60; }
.sold { border-top-color: #e74c3c; }
.sold .status-tag { background: #fdeaea; color: #e74c3c; }
.discount-badge { position: absolute; top: 15px; right: 15px; background-color: #c0392b; color: white; padding: 5px 8px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.lightbox { display: none; position: fixed; z-index: 2000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); cursor: zoom-out; }
.lightbox-content { margin: auto; display: block; width: 85%; max-width: 900px; max-height: 80vh; object-fit: contain; border: 3px solid white; border-radius: 10px; animation: zoomAnimation 0.3s ease; }
#lightbox-caption { margin: auto; display: block; width: 80%; text-align: center; color: white; padding: 15px 0; font-size: 1.2rem; font-weight: bold; }
.close-lightbox { position: absolute; top: 15px; right: 35px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; }
@keyframes zoomAnimation { from {transform: scale(0.7); opacity: 0;} to {transform: scale(1); opacity: 1;} }

.product-layout { display: flex; flex-wrap: wrap; gap: 40px; padding: 40px; max-width: 1200px; margin: 20px auto; background: white; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.product-image-box { flex: 1; min-width: 300px; }
.product-image-box img { width: 100%; border-radius: 10px; border: 1px solid #eee; }
.product-info-box { flex: 1.2; min-width: 300px; text-align: left; }
.product-price-tag { font-size: 2.2rem; color: #B12704; font-weight: bold; margin: 15px 0; }
@media (max-width: 768px) { .product-layout { flex-direction: column; padding: 20px; } }
.thumbnail-container { display: flex; gap: 10px; margin-top: 15px; justify-content: flex-start; overflow-x: auto; padding-bottom: 5px; }
.thumbnail { width: 70px; height: 70px; object-fit: cover; border: 2px solid #eee; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; opacity: 0.6; }
.thumbnail:hover { opacity: 1; transform: translateY(-2px); }
.thumbnail.active { border-color: #3498db; opacity: 1; box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2); }

/* --- HERO SECTION --- */
.hero-banner {
    /* Uses one of your existing car images as the background */
    background-image: url('assets/car-photos/Team Transport Ferrari/WhatsApp Image 2026-01-21 at 3.26.13 PM.jpeg'); 
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6); /* Darkens the image so text pops */
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 0 0 20px 20px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-overlay button {
    background-color: #f1c40f;
    color: #333;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}
.hero-overlay button:hover { transform: scale(1.05); }

/* --- TRUST BADGES --- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-weight: 600;
    color: #555;
    border: 1px solid #eee;
}

/* --- TOAST NOTIFICATIONS --- */
#toast-box {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3000;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastUp 0.3s ease-out;
    min-width: 250px;
}
.toast.success { border-left: 6px solid #2ecc71; }
.toast.error { border-left: 6px solid #e74c3c; }

@keyframes toastUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FOOTER STYLES --- */
.site-footer {
    background-color: #222;
    color: #ecf0f1;
    padding: 50px 0 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.footer-section { flex: 1; min-width: 250px; }
.footer-section h3 { color: #f1c40f; margin-bottom: 20px; font-size: 1.2rem; }
.footer-section p { color: #aaa; line-height: 1.6; }

.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-section ul li a:hover { color: #f1c40f; padding-left: 5px; }

.footer-socials a {
    display: inline-block;
    margin-right: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    background: #333;
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 10px;
    transition: 0.3s;
}
.footer-socials a:hover { background: #f1c40f; color: #222; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid #444;
    color: #777;
    font-size: 0.8rem;
}

/* ... (Your existing Toast styles are here) ... */

@keyframes toastUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HEADER ALIGNMENT FIXES --- */
/* Paste your new code here */
.header-actions-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn, #cart-btn {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}