:root {
    --primary-color: #1f4b6e;
    --secondary-color: #2f6a8f;
    --accent-color: #d07a3a;
    --dark-color: #10253a;
    --light-color: #eef3f8;
    --gray-color: #4f5f70;
    --white: #ffffff;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #1f4b6e 0%, #2f6a8f 100%);
    --gradient-accent: linear-gradient(135deg, #c96d2e 0%, #e39b57 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* ==================== NAVIGATION BAR ==================== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    position: static;
    z-index: 100;
}

.nav-container {
    max-width: none;
    margin: 0;
    padding: 0.2rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-logo-link:focus,
.nav-logo-link:focus-visible {
    outline: none;
    box-shadow: none;
}

.nav-logo-img {
    display: block;
    height: 120px;
    width: auto;
    max-width: min(280px, 48vw);
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
    image-rendering: auto;
}

.nav-logo-text {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.auth-hidden {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-icon::after {
    display: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== SHOPPING CART SIDEBAR ==================== */
.cart-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--dark-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-color);
}

.empty-cart-message i {
    font-size: 3rem;
    color: var(--light-color);
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: var(--white);
    border: 1px solid #ddd;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: 700;
    font-size: 0.8rem;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.3rem;
    font-size: 0.85rem;
}

.remove-from-cart {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.remove-from-cart:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--light-color);
    background: var(--light-color);
}

.cart-summary {
    margin-bottom: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 2px solid var(--light-color);
    padding-top: 0.8rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.btn-checkout,
.btn-continue-shopping {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.btn-checkout {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-checkout:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-continue-shopping {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-continue-shopping:hover {
    background: var(--light-color);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background:
        radial-gradient(circle at 78% 35%, rgba(255, 183, 77, 0.22) 0%, rgba(255, 183, 77, 0) 42%),
        linear-gradient(130deg, #0f172a 0%, #1f4b6e 45%, #6b2d2d 100%);
    color: var(--white);
    padding: 4.8rem 20px 6.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 580px;
    max-width: 100%;
}

.hero-content {
    animation: slideInLeft 0.8s ease;
    max-width: 640px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: #ff5722;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s ease;
    width: 100%;
}

.hero-cars-pair {
    position: relative;
    width: min(920px, 100%);
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
}

.hero-car {
    width: 50%;
    max-width: none;
    height: auto;
    min-height: 100%;
    align-self: stretch;
    border-radius: 0;
    object-fit: cover;
    box-shadow: none;
    display: block;
    animation: none;
}

.hero-car-left {
    transform: none;
    z-index: 2;
}

.hero-car-right {
    transform: scaleX(-1);
    z-index: 1;
}

@media (min-width: 1025px) {
    .hero {
        min-height: auto;
        padding: 3.5rem 32px 4.5rem;
        gap: 2rem;
        grid-template-columns: 1fr 1.1fr;
    }

    .hero-image {
        justify-content: flex-end;
    }

    .hero-cars-pair {
        min-height: unset;
        width: 100%;
        max-width: 720px;
        height: auto;
        border-radius: 16px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    }

    .hero-car {
        width: 50%;
        height: auto;
        min-height: unset;
        align-self: auto;
        object-fit: contain;
        object-position: center bottom;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== SEARCH SECTION ==================== */
.search-section {
    background: linear-gradient(to bottom, #e7eef6, #f8fbff);
    padding: 4rem 20px;
    margin: -3rem 0 0 0;
    position: relative;
    z-index: 10;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.search-container h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.search-container > p {
    color: var(--gray-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.search-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
}

.search-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: flex-end;
}

.search-field {
    text-align: left;
}

.search-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.search-field i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-button {
    width: 100%;
    padding: 0.8rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== SECTION STYLING ==================== */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==================== FEATURED CARS SECTION ==================== */
.featured-cars {
    padding: 4rem 20px;
    background: linear-gradient(to bottom, #f8fbff, #edf3f9);
    max-width: 1400px;
    margin: 0 auto;
}

.cars-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-feedback {
    display: none;
    max-width: 860px;
    margin: -1.2rem auto 1.6rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
}

.search-feedback.success {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.search-feedback.warning {
    color: #7c2d12;
    background: #fff7ed;
    border-color: #fed7aa;
}

.search-feedback.info {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.car-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.car-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f4b6e 0%, #2f6a8f 100%);
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.car-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #1f4b6e 0%, #2f6a8f 100%);
    transition: var(--transition);
}

/* Car placeholder gradient variations */
.car-placeholder-2 {
    background: linear-gradient(135deg, #1f4b6e 0%, #2f6a8f 100%) !important;
}

.car-placeholder-3 {
    background: linear-gradient(135deg, #2f6a8f 0%, #1f4b6e 100%) !important;
}

.car-placeholder-4 {
    background: linear-gradient(135deg, #3e7c8c 0%, #2f6a8f 100%) !important;
}

.car-placeholder-5 {
    background: linear-gradient(135deg, #5a7f95 0%, #3e7c8c 100%) !important;
}

.car-placeholder-6 {
    background: linear-gradient(135deg, #c96d2e 0%, #e39b57 100%) !important;
}

.car-card:hover .car-placeholder {
    transform: scale(1.05);
}

.car-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}

@keyframes landingAvailableDance {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-3px) rotate(-2deg) scale(1.05); }
    50% { transform: translateY(0) rotate(0deg) scale(1.08); }
    75% { transform: translateY(-3px) rotate(2deg) scale(1.05); }
}

@keyframes landingReservedPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.06); filter: brightness(1.12); }
}

@keyframes landingSoldGlitch {
    0%, 100% { transform: translateX(0); filter: grayscale(0.2); }
    20% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

.car-status-badge.available {
    background: linear-gradient(135deg, #69f0ae 0%, #00e676 45%, #00c853 100%);
    box-shadow: 0 10px 22px rgba(0, 200, 83, 0.4);
    animation: landingAvailableDance 1s ease-in-out infinite;
}

.car-status-badge.reserved {
    background: linear-gradient(135deg, #ffd180 0%, #ffb300 55%, #ff8f00 100%);
    color: #4e342e;
    box-shadow: 0 10px 22px rgba(255, 143, 0, 0.35);
    animation: landingReservedPulse 1.35s ease-in-out infinite;
}

.car-status-badge.sold {
    background: linear-gradient(135deg, #ff8a80 0%, #ff5252 55%, #ff1744 100%);
    box-shadow: 0 10px 22px rgba(255, 23, 68, 0.34);
    animation: landingSoldGlitch 1.8s steps(2, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
    .car-status-badge.available,
    .car-status-badge.reserved,
    .car-status-badge.sold {
        animation: none;
    }
}

.car-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.car-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.car-title-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}

.car-title-price h3 {
    margin-bottom: 0;
}

.car-inline-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.car-subtitle {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.spec i {
    color: var(--primary-color);
    width: 20px;
}

.car-description {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.car-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-details,
.btn-add-to-cart {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-details {
    background: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-details:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-add-to-cart {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-add-to-cart.added {
    background: var(--success-color);
}

.view-more {
    text-align: center;
}

.btn-primary-large {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ==================== WHY CHOOSE US SECTION ==================== */
.why-choose-us {
    padding: 4rem 20px;
    background: linear-gradient(to bottom, #edf3f9, #e7eef6);
    max-width: 1400px;
    margin: 0 auto;
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background:
        radial-gradient(circle at 20% 15%, rgba(227, 155, 87, 0.25), transparent 45%),
        linear-gradient(130deg, #14344f 0%, #1f4b6e 52%, #7d3b2a 100%);
    color: var(--white);
    padding: 4rem 20px;
    text-align: center;
    margin-top: 2rem;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.cta-btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.cta-btn-primary:hover {
    background: #ff5722;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-btn-secondary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-btn-secondary:hover {
    background: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==================== FOOTER ==================== */
.footer {
    background: #0d2033;
    color: var(--white);
    padding: 3rem 20px 1rem;
    max-width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: #aaa;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3.2rem 20px 4.4rem;
        min-height: unset;
    }

    .hero-image {
        display: none;
    }

    .search-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--light-color);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.65rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.85rem;
        line-height: 1.45;
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1.25rem 14px 0;
    }

    .hero-content {
        max-width: none;
        margin-bottom: 0.65rem;
    }

    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
    }

    .hero-image {
        display: block;
        margin: 0;
        padding: 0;
        width: 100%;
        animation: none;
    }

    .hero-cars-pair {
        width: 100%;
        min-height: 0;
        max-height: 190px;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .hero-car {
        width: 50%;
        height: 100%;
        min-height: 0;
    }

    .hero-car-left {
        transform: none;
    }

    .hero-car-right {
        transform: scaleX(-1);
    }

    .search-section {
        margin-top: 0;
        padding: 1.25rem 16px 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .featured-cars {
        padding: 2rem 14px;
    }

    .why-choose-us {
        padding: 2rem 14px;
    }

    .cta-section {
        padding: 2rem 14px;
    }

    .search-group {
        grid-template-columns: 1fr;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .car-actions {
        flex-direction: column;
    }

    .btn-details,
    .btn-add-to-cart {
        width: 100%;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.3rem;
    }

    .nav-logo-img {
        height: 96px;
        max-width: min(230px, 70vw);
    }

    .nav-logo span {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .hero {
        padding: 1rem 12px 0;
    }

    .hero-content {
        margin-bottom: 0.5rem;
    }

    .hero-cars-pair {
        max-height: 160px;
        aspect-ratio: 5 / 3;
        border-radius: 10px;
    }

    .search-section {
        padding: 1rem 12px 1.75rem;
    }

    .search-container h2 {
        font-size: 1.8rem;
    }

    .featured-cars {
        padding: 1.5rem 12px;
    }

    .why-choose-us {
        padding: 1.5rem 12px;
    }

    .cta-section {
        padding: 1.5rem 12px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .search-field input,
    .search-field select,
    .search-button {
        font-size: 0.85rem;
        padding: 0.7rem;
    }

    .search-form {
        padding: 1.5rem;
    }

    .search-field label {
        font-size: 0.85rem;
    }

    .car-card {
        margin-bottom: 0.5rem;
    }

    .car-details h3 {
        font-size: 1.1rem;
    }

    .car-specs {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .spec {
        font-size: 0.85rem;
    }

    .car-description {
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 1.1rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 2rem 20px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .btn-primary-large {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .cart-item {
        padding: 0.8rem;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .cart-item-name {
        font-size: 0.8rem;
    }

    .cart-item-price {
        font-size: 0.85rem;
    }

    .summary-row {
        font-size: 0.85rem;
    }

    .summary-row.total {
        font-size: 1rem;
    }

    .btn-checkout,
    .btn-continue-shopping {
        font-size: 0.85rem;
        padding: 0.8rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .footer-section a {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* ==================== SCROLLBAR STYLING ==================== */
.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}