/* ===== VARIABLES ===== */
:root {
    /* Colores principales - Serán sobrescritos por theme-manager.js */
    --primary-color: #0D47A1;
    --secondary-color: #2E7D32;
    --dark-color: #263238;
    --background-color: #ECEFF1;
    --light-color: #F5F5F5;
    --white: #FFFFFF;
    --gray: #6C757D;
    --cta-color: #FB8C00;
    --text-color: #263238;
    --danger: #DC3545;
    --warning: #FFC107;
    
    /* Gradientes */
    --banner-gradient: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    
    /* Header dinámico */
    --header-transparent: transparent;
    --header-scrolled: #FFFFFF;
    --header-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
    /* Variaciones */
    --primary-light: #1976D2;
    --primary-dark: #01579B;
    --cta-hover: #EF6C00;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECCIONES OCULTAS ===== */
.showcase,
.features,
.categories,
.parts-selector,
.benefits-section,
.why-us,
.faq-section,
.vehicle-explorer,
.map-section {
    display: none !important;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--cta-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(251, 140, 0, 0.4);
}

.btn-primary:hover {
    background: var(--cta-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(251, 140, 0, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.btn-block {
    width: 100%;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    border-radius: 10px;
    animation: slideWidth 2s ease-in-out infinite;
}

.section-title::after {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,107,53,0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes slideWidth {
    0%, 100% { width: 100px; }
    50% { width: 140px; }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(255,107,53,0.2);
    }
    50% { 
        transform: scale(1.3);
        box-shadow: 0 0 0 8px rgba(255,107,53,0.1);
    }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.5s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: var(--header-scrolled);
    box-shadow: var(--header-shadow);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}

.header.scrolled .logo {
    color: var(--primary-color);
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 28px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.header.scrolled .nav-menu li a {
    color: var(--text-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--cta-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover {
    color: var(--cta-color);
}

.header.scrolled .nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: var(--white);
    transition: var(--transition);
}

.header.scrolled .cart-icon {
    color: var(--text-color);
}

.cart-icon:hover {
    transform: scale(1.1);
    color: var(--cta-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--cta-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
}

.header.scrolled .menu-toggle {
    color: var(--text-color);
}

.menu-toggle:hover {
    color: var(--cta-color);
}

/* Overlay para menú móvil */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    top: -150px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    bottom: -100px;
    left: -80px;
    animation: float 15s infinite ease-in-out reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    border-radius: 50%;
}

.features::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,78,137,0.05) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(20px, 10px) rotate(3deg);
    }
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 0;
    background-color: var(--light-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,53,0.1) 0%, transparent 100%);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: scale(2);
}

.feature-card:hover {
    transform: translateY(-15px) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-card:nth-child(even):hover {
    transform: translateY(-15px) rotate(2deg);
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.feature-card:hover i {
    transform: scale(1.15) rotateY(360deg);
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--gray);
    position: relative;
    z-index: 1;
}

/* ===== CATEGORIES SECTION ===== */
.categories {
    padding: 80px 0;
    position: relative;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,107,53,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0,78,137,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background: linear-gradient(135deg, var(--light-color) 0%, #fff 100%);
    padding: 35px 25px;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 3px solid transparent;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 30px;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 20px 40px rgba(255,107,53,0.3);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    display: inline-block;
}

.category-card:hover i {
    color: var(--white);
    transform: rotateY(180deg) scale(1.2);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover h3,
.category-card:hover p {
    color: var(--white);
}

.category-card p {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover h3,
.category-card:hover p {
    color: var(--white);
}

.category-card p {
    position: relative;
    z-index: 1;
    transition: var(--transition);
    transition: var(--transition);
}

.category-card:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.category-card:hover i {
    color: var(--white);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

/* ===== WHY US SECTION ===== */
.why-us {
    padding: 80px 0;
    background-color: var(--light-color);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.why-us-text ul {
    margin-bottom: 30px;
}

.why-us-text li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.why-us-text li i {
    color: var(--success);
    font-size: 1.2rem;
}

.why-us-image {
    text-align: center;
}

.why-us-image i {
    font-size: 15rem;
    color: var(--primary-color);
    opacity: 0.2;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,53,0.05) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,107,53,0.05), transparent);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(255,107,53,0.1), transparent);
    box-shadow: 0 5px 15px rgba(255,107,53,0.1);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
    transition: var(--transition);
}

.contact-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--secondary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-item p {
    color: var(--gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--light-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.15);
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 80px 0;
    background-color: var(--light-color);
    position: relative;
}

.map-section .container {
    position: relative;
}

/* Layout horizontal del título en pantallas medianas/grandes */
.map-section .section-title {
    text-align: left;
    margin-bottom: 40px;
    display: block;
}

@media (min-width: 768px) {
    .map-section .section-title {
        position: relative;
        padding-left: 30px;
    }
    
    .map-section .section-title::before {
        left: 0;
        transform: translateX(0);
    }
    
    .map-section .section-title::after {
        margin: 0;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

.locations-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.location-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
}

.location-card:hover::before {
    top: -30%;
    right: -30%;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255,107,53,0.2);
    border-left-color: var(--secondary-color);
}

.location-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
    position: relative;
    z-index: 1;
}

.location-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.location-card h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.location-card p {
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.location-card p i {
    color: var(--primary-color);
    font-size: 1rem;
}

.btn-location {
    margin-top: 15px;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--secondary-color), #0062b1);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.btn-location:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8757);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.google-map {
    width: 100%;
    height: 500px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 5px solid var(--white);
    position: relative;
}

.google-map::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    box-shadow: inset 0 0 0 1px rgba(255,107,53,0.2);
    pointer-events: none;
}

/* Estilos personalizados para OpenStreetMap */
#map {
    width: 100%;
    height: 500px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 5px solid var(--white);
    z-index: 1;
}

/* Marcadores personalizados de Leaflet */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #ff8757);
    border-radius: 50% 50% 50% 0;
    position: relative;
    transform: rotate(-45deg);
    box-shadow: 0 5px 15px rgba(255,107,53,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: marker-drop 0.6s ease-out;
    transition: all 0.3s ease;
}

.marker-pin::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255,107,53,0.3);
    border-radius: 50%;
    animation: marker-pulse 2s infinite;
}

.marker-pin i {
    color: var(--white);
    font-size: 18px;
    transform: rotate(45deg);
    z-index: 2;
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 8px 25px rgba(255,107,53,0.6);
}

/* Animación de caída del marcador */
@keyframes marker-drop {
    0% {
        transform: rotate(-45deg) translateY(-200px);
        opacity: 0;
    }
    50% {
        transform: rotate(-45deg) translateY(10px);
    }
    100% {
        transform: rotate(-45deg) translateY(0);
        opacity: 1;
    }
}

/* Animación de pulso del marcador */
@keyframes marker-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Animación de bounce para marcadores seleccionados */
.marker-bounce {
    animation: marker-bounce-anim 1s ease-out;
}

@keyframes marker-bounce-anim {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(-10px);
    }
    75% {
        transform: translateY(-15px);
    }
}

/* Popup personalizado de Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 250px;
}

.custom-popup {
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-popup h3 {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-popup p {
    margin: 8px 0;
    color: var(--gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-popup p i {
    color: var(--secondary-color);
    width: 20px;
}

.directions-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--secondary-color), #0062b1);
    color: var(--white) !important;
    text-decoration: none !important;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.directions-link:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8757);
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(255,107,53,0.3);
}

.leaflet-popup-tip {
    background: white !important;
}

.leaflet-popup-close-button {
    color: var(--gray) !important;
    font-size: 20px !important;
    padding: 5px !important;
}

.leaflet-popup-close-button:hover {
    color: var(--primary-color) !important;
}

/* Tarjeta de ubicación activa */
.location-card.active {
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(0,78,137,0.05));
    border: 3px solid var(--primary-color);
    box-shadow: 0 15px 40px rgba(255,107,53,0.3);
}

.location-card.active .location-icon {
    background: linear-gradient(135deg, var(--primary-color), #ff8757);
    transform: scale(1.1) rotateY(180deg);
}

.location-card.active h3 {
    color: var(--primary-color);
}

/* Mejorar cursor en tarjetas clicables */
.location-card {
    cursor: pointer;
    user-select: none;
}

/* Estilos para los InfoWindows de Google Maps */
.gm-style .gm-style-iw-c {
    border-radius: 15px !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style-iw button {
    top: 8px !important;
    right: 8px !important;
}

/* Animación de pulso para el ícono del mapa */
@keyframes map-pulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(255,107,53,0.3);
    }
    50% {
        box-shadow: 0 5px 25px rgba(255,107,53,0.5);
    }
}

.location-icon {
    animation: map-pulse 2s ease-in-out infinite;
}

/* ===== FOOTER ===== */
.footer {
    background-color: transparent;
    color: var(--dark-color);
    padding: 80px 0 60px;
}

.footer .container {
    background-color: #F5F7FA;
    border-radius: 30px;
    padding: 50px 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 2fr 4fr 1fr;
    gap: 60px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-col:nth-child(1) {
    text-align: left;
}

.footer-col:nth-child(2) {
    text-align: center;
}

.footer-col:nth-child(3) {
    text-align: right;
}

.footer-col h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 600;
}

.footer-col p {
    color: #546E7A;
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #546E7A;
    font-size: 1.05rem;
    transition: var(--transition);
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-info {
    margin: 20px 0;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #546E7A;
    font-size: 1.05rem;
}

.footer-contact-info p i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: white;
    border: 2px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
}

.newsletter-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #e55a2b;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #E0E0E0;
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.footer-bottom-links span {
    color: #CCC;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== SHOP SECTION ===== */
.shop-section {
    padding: 60px 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Shop Sidebar */
.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.filter-widget {
    background-color: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.filter-widget:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(255,107,53,0.15);
}

.filter-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-box button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-filters label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: var(--transition);
}

.category-filters label:hover {
    background-color: var(--light-color);
}

/* Brand Filters - Estilos Personalizados */
.brand-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-filters label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    background: var(--light-color);
    border: 2px solid transparent;
}

.brand-filters label:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.brand-filters input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-filters input[type="checkbox"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.2);
}

.brand-filters input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--primary-color), #ff8757);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.brand-filters input[type="checkbox"]:checked::after {
    content: '\2714';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.brand-filters span {
    color: var(--dark-color);
    font-size: 15px;
    font-weight: 500;
    user-select: none;
}

.brand-filters label:hover span {
    color: var(--primary-color);
}

.brand-filters input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Estilo especial para "Todas las marcas" */
.brand-filters label:first-child {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 78, 137, 0.1));
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.brand-filters label:first-child:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(0, 78, 137, 0.15));
    transform: translateX(8px);
}

.price-filter input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gray);
}

.filter-widget select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Shop Content */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
}

.results-count {
    color: var(--gray);
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active,
.view-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(255,107,53,0.25);
    transform: translateY(-10px) rotate(-1deg);
}

.product-card:nth-child(even):hover {
    transform: translateY(-10px) rotate(1deg);
}

.product-image {
    position: relative;
    height: 250px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    border-color: var(--primary-color);
    border-radius: 20px 20px 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    /* border-radius: 10px; */
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 250px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.product-image i {
    /* font-size: 5rem; */
    color: var(--white);
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--danger);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.new {
    background-color: var(--success);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
}

.product-rating i {
    color: var(--warning);
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 1.1rem;
    color: var(--gray);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--secondary-color), #0062b1);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 5;
    pointer-events: auto;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8757);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background-color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== ENHANCED SHOP FEATURES ===== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gray);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: var(--gray);
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Shop Header Stats */
.shop-stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item i {
    font-size: 20px;
    color: var(--primary-color);
}

.stat-item span {
    font-size: 14px;
    color: var(--white);
}

.stat-item strong {
    color: var(--white);
}

/* Toolbar Actions */
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-compare {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.btn-compare:hover {
    background: #003d6b;
    transform: translateY(-2px);
}

/* Filter Tags */
.filter-tags {
    display: flex;
    gap: 8px;
    margin-left: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
}

/* Loading Skeleton */
.products-loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.skeleton-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: skeleton-pulse 1.5s infinite;
}

.skeleton-card::before {
    content: '';
    display: block;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-card::after {
    content: '';
    display: block;
    height: 150px;
    padding: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Empty State */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
}

.empty-state i {
    font-size: 80px;
    color: var(--gray);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 25px;
}

/* Product Card Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: auto;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-icon:active {
    transform: scale(1.05);
}

.btn-icon.active {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-wishlist.active i::before {
    content: "\f004";
    font-weight: 900;
}

/* List View */
.products-grid.products-list {
    grid-template-columns: 1fr;
}

.product-card-list {
    display: grid !important;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    align-items: center;
}

.product-card-list .product-image {
    height: 150px;
}

.product-card-list .product-info {
    padding: 0;
}

.product-actions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Stock indicators */
.stock-ok, .stock-low {
    font-size: 12px;
    margin-bottom: 8px;
}

.stock-ok {
    color: var(--success);
}

.stock-low {
    color: var(--danger);
}

/* Enhanced filter widgets */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.checkbox-label:hover {
    background: var(--light-color);
}

.rating-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-filters label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.rating-filters label:hover {
    background: var(--light-color);
}

.rating-filters i {
    color: var(--warning);
    font-size: 12px;
}

.btn-reset-filters {
    width: 100%;
    padding: 12px;
    background: var(--light-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
}

.btn-reset-filters:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-reset-filters i {
    margin-right: 8px;
}

/* ===== VEHICLE HISTORY WIDGET ===== */
.vehicle-history-widget h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.vehicle-history-widget h3 i {
    color: var(--primary-color);
}

#vehicleHistoryList {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.no-vehicles {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    padding: 20px 10px;
    font-style: italic;
}

.vehicle-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vehicle-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.vehicle-item.selected {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border-left-color: #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.vehicle-name {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 14px;
    flex: 1;
}

.vehicle-nickname {
    font-size: 12px;
    color: var(--gray);
    font-style: italic;
    margin-top: 2px;
}

.vehicle-info {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vehicle-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vehicle-info i {
    color: var(--primary-color);
    width: 14px;
}

.vehicle-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.vehicle-actions button {
    flex: 1;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-use-vehicle {
    background: var(--primary-color);
    color: var(--white);
}

.btn-use-vehicle:hover {
    background: #ff5722;
    transform: translateY(-2px);
}

.btn-delete-vehicle {
    background: #ffebee;
    color: #d32f2f;
}

.btn-delete-vehicle:hover {
    background: #d32f2f;
    color: var(--white);
}

.btn-add-vehicle {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8757 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-vehicle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.maintenance-reminder {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 11px;
    color: #856404;
}

.maintenance-reminder i {
    color: #ffc107;
    margin-right: 6px;
}

/* Quick View Modal */
.quick-view-modal {
    z-index: 3000;
}

.quick-view-content {
    max-width: 900px;
    width: 90%;
}

.quick-view-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.quick-view-image {
    position: relative;
}

.quick-view-image img {
    width: 100%;
    border-radius: 16px;
}

.quick-view-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.quick-view-badge.new {
    background: var(--success);
}

.quick-view-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qv-category {
    color: var(--gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-view-info h2 {
    font-size: 28px;
    color: var(--dark-color);
    line-height: 1.3;
}

.qv-brand {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.qv-rating {
    display: flex;
    gap: 3px;
}

.qv-rating i {
    color: var(--warning);
    font-size: 16px;
}

.qv-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.qv-price .current-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.qv-price .old-price {
    font-size: 20px;
    color: var(--gray);
    text-decoration: line-through;
}

.qv-stock {
    padding: 8px 12px;
    background: var(--light-color);
    border-radius: 8px;
    display: inline-block;
    font-size: 14px;
}

.qv-desc {
    color: var(--gray);
    line-height: 1.6;
}

.qv-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-selector .qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
}

.quantity-selector .qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.qv-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.qv-actions .btn {
    flex: 1;
}

/* Compare Modal */
.compare-modal {
    z-index: 3000;
}

.compare-modal .modal-content,
.compare-modal .compare-content,
.modal-content.compare-content {
    max-width: 1400px !important;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.compare-body {
    padding: 0;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
}

.compare-table th,
.compare-table td {
    padding: 25px 30px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.compare-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 700;
    font-size: 16px;
    color: var(--dark-color);
    vertical-align: middle;
    border-right: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.compare-table thead th:last-child {
    border-right: none;
}

.compare-table thead img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.compare-table thead img:hover {
    transform: scale(1.05);
}

.compare-table thead h4 {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
    color: var(--dark-color);
}

.compare-table tbody tr {
    transition: background-color 0.2s ease;
}

.compare-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.02);
}

.compare-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.compare-table tbody tr:nth-child(even):hover {
    background: rgba(255, 107, 53, 0.03);
}

.compare-table tbody td {
    border-right: 1px solid #e0e0e0;
}

.compare-table tbody td:last-child {
    border-right: none;
}

.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 700;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--dark-color);
    font-size: 15px;
    width: 180px;
    position: sticky;
    left: 0;
    z-index: 5;
}

.price-cell {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

/* Mobile Cards - Hidden by default on desktop */
.compare-cards-mobile {
    display: none;
}

/* Page numbers */
.page-numbers {
    display: flex;
    gap: 5px;
}

/* Product card animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

/* Add to Cart Button States */
.add-to-cart {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 5;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 98, 22, 0.3);
}

.add-to-cart.added {
    background: #10b981 !important;
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.add-to-cart.added:hover {
    background: #059669 !important;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.add-to-cart:active {
    animation: cartBounce 0.3s ease;
}

/* Cart count badge animation */
@keyframes badgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-count {
    transition: all 0.3s ease;
}

.cart-count.updated {
    animation: badgePop 0.3s ease;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-color);
}

.cart-header h3 {
    font-size: 1.3rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--light-color);
    border-radius: 8px;
    margin-bottom: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: var(--light-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image i {
    font-size: 2rem;
    color: var(--gray);
    opacity: 0.3;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background-color: var(--white);
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--light-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.total-amount {
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 3000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-large {
    max-width: 900px;
}

.modal-header {
    padding: 25px 35px;
    border-bottom: 2px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--dark-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 i {
    color: var(--primary-color);
    font-size: 26px;
}

.modal-body {
    padding: 25px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--light-color);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: var(--dark-color);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--danger);
    color: var(--white);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Checkout Form */
.checkout-form h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.checkout-form h3:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.order-summary {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-size: 1.2r25px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    transition: var(--transition);
    position: relative;
}

.featured-post::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    box-shadow: 0 0 0 0 rgba(255,107,53,0.4);
    transition: box-shadow 0.3s ease;
}

.featured-post:hover::after {
    box-shadow: 0 0 0 8px rgba(255,107,53,0.1);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15)id #ddd;
    margin-top: 10px;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Featured Post */
.featured-post {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.featured-image {
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.featured-image i {
    font-size: 8rem;
    color: rgba(255,255,255,0.2);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.featured-content {
    padding: 30px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 14px;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.featured-excerpt {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Blog Toolbar */
.blog-toolbar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.blog-search {
    flex: 1;
    display: flex;
    gap: 5px;
}

.blog-search input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.blog-search button {
    padding: 12px 220px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 250px 1fr;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.blog-card:hover::before {
    transform: scaleY(1);
}

.blog-card:hover {
    box-shadow: 0 10px 30px rgba(0,78,137,0.15);
    transform: translateX(8px) translateY(-3px);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image i {
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 13px;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.blog-card-excerpt {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.blog-category {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background-color: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sidebar-widget:hover::before {
    transform: scaleX(1);
}

.sidebar-widget:hover {
    box-shadow: 0 8px 25px rgba(0,78,137,0.12);
    transform: translateY(-3px);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.category-list li a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.category-list .count {
    background-color: var(--light-color);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-color);
    cursor: pointer;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recent-post-image i {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.5);
}

.recent-post-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.recent-post-date {
    font-size: 12px;
    color: var(--gray);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.tag:hover::before {
    transform: translateX(0);
}

.tag span {
    position: relative;
    z-index: 1;
}

.tag:hover {
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 250px 1fr;
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image i {
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 13px;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.blog-card-excerpt {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.blog-category {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background-color: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sidebar-widget:hover::before {
    transform: scaleX(1);
}

.sidebar-widget:hover {
    box-shadow: 0 8px 25px rgba(0,78,137,0.12);
    transform: translateY(-3px);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.category-list li a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.category-list .count {
    background-color: var(--light-color);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-color);
    cursor: pointer;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recent-post-image i {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.5);
}

.recent-post-info h4 {
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.tag:hover::before {
    transform: translateX(0);
}

.tag span {
    position: relative;
}

.newsletter-widget {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.newsletter-widget h3 {
    color: var(--white);
    border-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
}

.newsletter-form-blog {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form-blog input {
    padding: 12px;
    border: none;
    border-radius: 5px;
}

.tag {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.newsletter-widget {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.newsletter-widget h3 {
    color: var(--white);
    border-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
}

.newsletter-form-blog {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form-blog input {
    padding: 12px;
    border: none;
    border-radius: 5px;
}

/* Full Post */
.post-full {
    padding: 40px;
}

.post-full-header {
    margin-bottom: 30px;
}

.post-full-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.post-full-meta {
    display: flex;
    gap: 25px;
    color: var(--gray);
    font-size: 15px;
}

.post-full-image {
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-full-image i {
    font-size: 8rem;
    color: rgba(255,255,255,0.2);
}

.post-full-content {
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.post-full-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.post-full-content p {
    margin-bottom: 15px;
}

/* Comments */
.comments-section {
    border-top: 2px solid var(--light-color);
    padding-top: 40px;
}

.comments-section h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.comment-form {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.comment-form h4 {
    margin-bottom: 15px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: var(--dark-color);
}

.comment-date {
    font-size: 13px;
    color: var(--gray);
}

.comment-text {
    color: var(--dark-color);
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .shop-layout,
    .why-us-content,
    .contact-grid,
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        order: -1;
    }
    
    .blog-card {
        grid-template-columns: 1fr;
    }
    
    .blog-card-image {
        height: 250px;
    }
}

@media (max-width: 992px) {
    /* Tablets y pantallas medianas */
    .navbar .container {
        gap: 20px;
    }
    
    .nav-menu {
        gap: 30px;
        font-size: 0.95rem;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    /* Menú responsive móvil */
    .navbar .container {
        gap: 15px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 22px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 30px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        gap: 0;
        justify-content: flex-start;
        margin: 0;
        max-width: 320px;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 18px 15px;
        font-size: 1.1rem;
        width: 100%;
        transition: all 0.3s ease;
        color: var(--text-color) !important;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a.active {
        color: var(--primary-color) !important;
        background: linear-gradient(90deg, rgba(21, 101, 192, 0.1), transparent);
        border-left: 4px solid var(--primary-color);
        font-weight: 700;
    }
    
    .nav-menu a:hover {
        background: rgba(21, 101, 192, 0.05);
        padding-left: 20px;
        color: var(--primary-color) !important;
    }
    
    .menu-toggle {
        display: block;
        padding: 8px;
        margin: 0;
    }
    
    .cart-icon {
        font-size: 22px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 11px;
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 480px) {
    /* Móviles pequeños */
    .navbar {
        padding: 12px 0;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    .logo i {
        font-size: 20px;
    }
    
    .nav-menu {
        width: 90%;
    }
    
    .cart-icon {
        font-size: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .feature-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .blog-toolbar {
        flex-direction: column;
    }
    
    .locations-info {
        grid-template-columns: 1fr;
    }
    
    .google-map {
        height: 400px;
    }
    
    /* Compare Modal Responsive */
    .compare-modal .modal-content,
    .compare-modal .compare-content,
    .modal-content.compare-content {
        width: 98% !important;
        max-width: 98% !important;
        max-height: 95vh;
    }
    
    /* Ocultar tabla desktop, mostrar cards mobile */
    .compare-table-desktop {
        display: none;
    }
    
    .compare-cards-mobile {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .compare-card {
        background: var(--white);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border: 2px solid #e0e0e0;
    }
    
    .compare-card.best-value-card {
        border: 3px solid #ffc107;
        background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
        position: relative;
    }
    
    .best-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
        color: var(--dark-color);
        padding: 8px 16px;
        border-radius: 25px;
        font-size: 12px;
        font-weight: 800;
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
        z-index: 10;
    }
    
    .compare-card-image {
        padding: 30px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .compare-card-image img {
        width: 180px;
        height: 180px;
        object-fit: cover;
        border-radius: 12px;
    }
    
    .compare-card-content {
        padding: 25px;
    }
    
    .compare-card-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--dark-color);
        margin: 0 0 15px 0;
        text-align: center;
    }
    
    .compare-card-price {
        font-size: 36px;
        font-weight: 800;
        color: var(--primary-color);
        text-align: center;
        margin-bottom: 20px;
    }
    
    .compare-card-details {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
        padding: 15px;
        background: var(--light-color);
        border-radius: 8px;
    }
    
    .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .detail-label {
        font-weight: 600;
        color: var(--dark-color);
        font-size: 14px;
    }
    
    .detail-value {
        color: var(--gray);
        font-size: 14px;
    }
    
    .btn-block {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        font-weight: 700;
    }
    
    .compare-actions {
        flex-direction: column;
        padding: 20px;
    }
    
    .compare-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    /* Móviles pequeños */
    .navbar {
        padding: 12px 0;
    }
    .hero {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .google-map {
        height: 350px;
        border-radius: 15px;
    }
    
    .location-card {
        padding: 20px;
    }
}
/* ===== VEHICLE EXPLORER SECTION ===== */
.vehicle-explorer {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.vehicle-explorer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.explorer-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.explorer-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: var(--white);
    transition: var(--transition);
}

.explorer-box:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.explorer-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Hotspots */
.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    border: 3px solid rgba(255, 107, 53, 0.9);
    background: rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    animation: pulse 2s infinite;
}

.hotspot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hotspot:hover,
.hotspot:focus {
    transform: scale(1.3);
    background: rgba(255, 107, 53, 0.5);
    border-color: var(--primary-color);
    animation: none;
}

.hotspot:active {
    transform: scale(1.1);
}

.hotspot.active-hotspot {
    transform: scale(1.4);
    background: rgba(255, 107, 53, 0.7);
    border-color: var(--primary-color);
    animation: none;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

/* Tooltip Mejorado */
.explorer-tooltip {
    position: absolute;
    width: 300px;
    max-width: 90vw;
    padding: 0;
    border-radius: 16px;
    background: var(--white);
    color: var(--dark-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.05);
    display: none;
    z-index: 100;
    overflow: hidden;
    animation: tooltipFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Tooltip positioning indicators */
.explorer-tooltip.tooltip-right::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--primary-color) transparent transparent;
}

.explorer-tooltip.tooltip-left::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--primary-color);
}

.explorer-tooltip.tooltip-bottom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent var(--primary-color) transparent;
}

.explorer-tooltip.tooltip-top::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: var(--primary-color) transparent transparent transparent;
}

.tooltip-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c61 100%);
    padding: 15px 20px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tooltip-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.tooltip-price {
    font-size: 18px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.tooltip-desc {
    padding: 15px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
    margin: 0;
}

.tooltip-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 15px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.tooltip-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.tooltip-btn i {
    margin-right: 6px;
}

/* Info Cards */
.explorer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.info-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.info-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.explorer-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.explorer-cta p {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.explorer-cta .btn {
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vehicle-explorer {
        padding: 60px 0;
    }
    
    .hotspot {
        width: 35px;
        height: 35px;
    }
    
    .explorer-tooltip {
        width: 260px;
        max-width: calc(100vw - 40px);
    }
    
    .tooltip-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .tooltip-price {
        align-self: flex-end;
    }
    
    .tooltip-desc {
        font-size: 13px;
    }
    
    .explorer-info {
        grid-template-columns: 1fr;
    }
    
    .explorer-cta .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .explorer-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hotspot {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
    
    .explorer-box {
        border-radius: 12px;
    }
    
    .explorer-tooltip {
        width: 240px;
        max-width: calc(100vw - 30px);
    }
    
    .tooltip-header {
        padding: 12px 15px;
    }
    
    .tooltip-title {
        font-size: 14px;
    }
    
    .tooltip-price {
        font-size: 16px;
    }
    
    .tooltip-desc {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .tooltip-btn {
        width: calc(100% - 30px);
        margin: 0 15px 12px;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .hotspot {
        animation: pulseMobile 2s infinite;
    }
    
    @keyframes pulseMobile {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.2);
        }
    }
    
    .hotspot:active {
        transform: scale(1.4);
    }
    
    /* Make product overlay always visible on touch devices */
    .product-overlay {
        opacity: 1;
        pointer-events: auto;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
        align-items: flex-end;
        padding-bottom: 10px;
    }
    
    .btn-icon {
        /* background: rgba(255, 255, 255, 0.95); */
        border-color: rgba(255, 255, 255, 0.8);
        color: var(--dark-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .btn-icon:active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        transform: scale(1.1);
    }
    
    .btn-icon.active {
        background: var(--danger);
        border-color: var(--danger);
        color: white;
    }
}

/* Mobile responsive - max-width: 768px */
@media (max-width: 768px) {
    /* Make product overlay always visible on mobile */
    .product-overlay {
        opacity: 1;
        pointer-events: auto;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
        align-items: flex-end;
        padding-bottom: 10px;
    }
    
    .btn-icon {
        /* background: rgba(255, 255, 255, 0.95); */
        border-color: rgba(255, 255, 255, 0.8);
        color: var(--dark-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .btn-icon:active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        transform: scale(1.1);
    }
    
    .btn-icon.active {
        background: var(--danger);
        border-color: var(--danger);
        color: white;
    }
}