@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500&display=swap');

:root {
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    font-family: var(--font-body);
}

body {
    font-family: var(--font-body);
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

.navbar, .section-title, button, .btn, .font-bold, .font-semibold {
    font-family: var(--font-heading);
}

.car-price-display {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.car-price-display > span {
    font-size: 10px !important;
    font-weight: 400 !important;
}

.category-badge {
    transform: none !important;
    display: inline-block !important;
    background: transparent !important;
    color: #e10600 !important;
    padding: 0 !important;
}

p, span, li, td, th, label, input, textarea, select, a {
    font-family: var(--font-body);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #e10600;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b30000;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.scroll-reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Red Text Gradient (Optional, keeping simple red as requested) */
.text-gradient-red {
    background: linear-gradient(to right, #e10600, #ff4d4d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Panel - Updated for Light Theme */
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 229, 229, 0.5);
}

/* Button Red Glow */
.btn-primary-glow {
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
}

/* Hover scale effect for cards */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar for Dropdowns */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e10600;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #b30000;
}

.custom-selector-dropdown {
    min-width: 280px;
}

/* Fix for mobile custom selector - restricted to very small screens */
@media (max-width: 639px) {
    .custom-selector-dropdown {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100% !important;
        margin-top: 0;
        border-radius: 20px 20px 0 0;
        max-height: 70vh;
        z-index: 10002;
        /* Higher than sticky nav */
        background: white !important;
    }
}

/* Ensure dropdown is constrained on desktop and has a solid background */
@media (min-width: 640px) {
    .custom-selector-dropdown {
        width: 100%;
        max-width: 400px;
        background: #ffffff;
        /* Solid background as fallback */
    }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    z-index: 9999;
    pointer-events: none; /* Ensure container doesn't block clicks */
}

.floating-actions > * {
    pointer-events: auto; /* Re-enable clicks for buttons */
}

.scroll-top-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    position: relative;
    border: none;
    padding: 0;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.scroll-top-btn .progress-circle {
    fill: none;
    stroke: #e10600;
    stroke-width: 4;
    stroke-dasharray: 282.74;
    stroke-dashoffset: 282.74;
    transition: stroke-dashoffset 0.1s linear;
}

.scroll-top-btn .icon {
    font-size: 20px;
    color: #000;
    z-index: 1;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    font-size: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe5d;
    color: white;
}

.scroll-top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .scroll-top-btn, .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .scroll-top-btn .icon {
        font-size: 16px;
    }
}