/*
Theme Name: Fotontruk
Text Domain: fotontruk
Description: Tema de WordPress para Fotontruk - Exportaci贸n de veh铆culos. Conversi贸n 1:1 de index.html.
Author: Fotontruk
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-menu, featured-images
*/

:root {
    --primary: #1e4a8c;
    --primary-dark: #14335f;
    --primary-light: #2d6bc4;
    --accent: #2563eb;
    --navy: #0d2137;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    overflow: hidden;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    white-space: nowrap;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.top-bar-left a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.95;
    transition: opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-bar-left a:hover {
    opacity: 1;
}

.top-bar-left i {
    color: var(--accent-light, #60a5fa);
}

.btn-inquire {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

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

/* Main Nav */
.main-nav {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 110px;
    width: auto;
    display: block;
}

.footer-brand .logo-img {
    height: 85px;
}

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

.nav-menu a {
    padding: 0.6rem 1.1rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: rgba(30, 74, 140, 0.06);
}

/* Dropdown (desktop) */
.nav-menu li {
    position: relative;
}


.nav-menu li.menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.72rem;
    margin-left: 0.5rem;
    opacity: 0.65;
    transition: transform 0.2s;
}

.nav-menu li.menu-item-has-children > a.open::after,
.nav-menu li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 0.45rem;
    list-style: none;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 400;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu .sub-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-dark);
    border-radius: 8px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
}

/* Nav Actions: search + language */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(13, 33, 55, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 1rem 2rem;
}

.search-modal.open {
    display: flex;
}

.search-modal-box {
    width: 100%;
    max-width: 720px;
    background: #f4f6f8;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-modal-close:hover {
    background: var(--border);
}

.search-modal-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
}

.search-modal-form {
    display: flex;
    gap: 0;
    margin-bottom: 1.75rem;
}

.search-modal-form input {
    flex: 1;
    height: 56px;
    border: none;
    outline: none;
    background: var(--white);
    border-radius: 8px 0 0 8px;
    padding: 0 1.25rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.search-modal-form input::placeholder {
    color: var(--text-light);
}

.search-modal-form button {
    width: 64px;
    height: 56px;
    border: none;
    background: var(--primary);
    color: var(--white);
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-modal-form button:hover {
    background: var(--primary-dark);
}

.search-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.search-modal-tags a {
    display: inline-block;
    padding: 0.55rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: all 0.2s;
}

.search-modal-tags a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-select {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 40px;
    padding: 0 0.85rem;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn i.fa-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.lang-btn.open i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    display: none;
    z-index: 200;
}

.lang-menu.open {
    display: block;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: background 0.2s;
}

.lang-menu a:hover,
.lang-menu a.active {
    background: rgba(30, 74, 140, 0.07);
    color: var(--primary);
}

.lang-menu .flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* Banner Carousel */
.hero {
    position: relative;
    background: var(--navy);
    overflow: hidden;
    padding: 0;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 0;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(13, 33, 55, 0.88) 0%,
        rgba(13, 33, 55, 0.65) 30%,
        rgba(13, 33, 55, 0.25) 60%,
        rgba(13, 33, 55, 0.05) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    color: #fff;
    padding: 2rem 1rem;
    margin-left: max(1rem, calc((100vw - 1280px) / 2));
    padding-left: 2rem;
}

.banner-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.banner-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.95;
    margin-bottom: 1.6rem;
    max-width: 540px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s;
    padding: 0;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.05);
}

.banner-arrow.prev { left: 5rem; }
.banner-arrow.next { right: 5rem; }

.banner-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.banner-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 0;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.banner-dots button.active {
    background: #fff;
    width: 28px;
    border-radius: 6px;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
}

.btn-hero-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background: #ffd24a;
    color: #0d2137;
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-hero-secondary:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}


/* Tabs Section */
.tabs-section {
    padding: 2.5rem 0 1.5rem;
}

.tabs-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.tabs {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.4rem;
    background: var(--white);
    color: var(--text-dark);
    border: none;
    border-right: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.tab:last-child {
    border-right: none;
}

.tab:hover:not(.active) {
    background: var(--bg-gray);
}

.tab.active {
    background: var(--primary);
    color: var(--white);
}

@media (max-width: 768px) {
    .tabs-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.1rem;
    }

    .tab {
        padding: 0.7rem 0.2rem;
        font-size: 0.78rem;
    }
}

/* Featured Cars */
.featured {
    background: var(--white);
    padding: 2rem 0 4rem;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    transition: opacity 0.25s;
}

.cars-grid.loading {
    opacity: 0.4;
    pointer-events: none;
}

.car-card.hidden {
    display: none;
}

.car-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.car-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.car-image::before {
    content: 'DESTACADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(30, 74, 140, 0.05);
    letter-spacing: 3px;
    white-space: nowrap;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
}

.car-info {
    padding: 1.25rem;
}

.car-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.car-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.car-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Advantages */
.advantages {
    background: var(--bg-light);
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.section-title-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--primary);
}

.section-title-line .title-line {
    flex: 1;
    height: 2px;
    min-width: 40px;
    background: var(--primary);
    position: relative;
    border-radius: 1px;
    opacity: 0.35;
}

.section-title-line .title-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.advantage-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.advantage-preview {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 300px;
    overflow: hidden;
}

.adv-preview-icon {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.advantage-preview h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.advantage-preview p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.advantage-media {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s;
}

.advantage-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.adv-list-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1rem 0 1rem 1.6rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.adv-list-item::before {
    content: '鈥?;
    position: absolute;
    left: 0.15rem;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    opacity: 0;
    transition: all 0.2s;
}

.adv-list-item.active::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.adv-list-item .adv-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    flex-shrink: 0;
    min-width: 40px;
    transition: color 0.2s;
}

.adv-list-item.active .adv-number,
.adv-list-item.active h4 {
    color: var(--primary);
}

.adv-list-item h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
    transition: color 0.2s;
}

.adv-list-item p {
    font-size: 0.83rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.adv-nav {
    display: none;
    gap: 0.75rem;
    padding: 1rem 0;
    justify-content: center;
}

.adv-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-dark);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.adv-nav button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Map Section */
.map-section {
    background: var(--bg-light);
    padding: 2rem 0 4rem;
    text-align: center;
}

.map-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.map-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.world-map {
    width: 100%;
    min-height: 300px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.world-map > div,
.world-map > svg {
    width: 100%;
    height: 100%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: background 0.2s;
}

.btn-outline:hover {
    background: var(--primary-dark);
}

/* Pages */
.page-hero {
    background: var(--primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 40, 80, 0.55);
}

.page-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.page-content {
    padding: 3rem 0 4rem;
    background: var(--white);
}

.page-content .container {
    max-width: 1280px;
}

.page-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-result-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.search-result-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.search-result-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.search-result-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: rgba(30, 74, 140, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    width: fit-content;
}

.search-result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.search-result-title a {
    color: inherit;
    transition: color 0.2s;
}

.search-result-title a:hover {
    color: var(--primary);
}

.search-result-excerpt {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.search-result-excerpt p:last-child {
    margin-bottom: 0;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
}

.no-results h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.no-results .search-form {
    max-width: 400px;
    margin: 2rem auto 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    background: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--text-gray);
    min-width: auto;
    padding: 0 0.5rem;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-size: 1rem;
}

/* Products List Page */
.products-layout .container {
    display: flex;
    gap: 2rem;
    max-width: 1280px;
    padding: 2rem 1rem;
}

.products-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.category-list li {
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: block;
    padding: 0.85rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.category-list li.active a,
.category-list li a:hover {
    background: var(--primary);
    color: var(--white);
}

.sidebar-new-products {
    margin-top: 1.5rem;
}

.sidebar-new-products-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
    padding: 0 0.25rem;
}

.sidebar-new-products-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-new-product-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sidebar-new-product-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(30, 74, 140, 0.1);
}

.sidebar-new-product-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-gray);
}

.sidebar-new-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-new-product-info {
    flex: 1;
    min-width: 0;
}

.sidebar-new-product-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-new-product-info .read-more {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
}

.sidebar-help-card {
    position: relative;
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.sidebar-help-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 33, 55, 0.25) 0%, rgba(13, 33, 55, 0.88) 100%);
    z-index: 1;
}

.sidebar-help-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    color: var(--white);
    width: 100%;
}

.sidebar-help-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

.sidebar-help-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.92;
    margin: 0 0 1rem;
}

.sidebar-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e74c3c;
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-help-btn:hover {
    background: #c0392b;
    color: var(--white);
}

.sidebar-banner {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    color: var(--white);
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sidebar-banner-text {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.sidebar-banner-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-banner-text p {
    font-size: 0.8rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.sidebar-banner-text .btn-details {
    background: var(--primary);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.sidebar-banner-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sidebar-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.products-main {
    flex: 1;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.products-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
    margin: 0;
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
}

.view-toggle button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.2s;
}

.view-toggle button.active,
.view-toggle button:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.products-grid.hidden {
    display: none;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.product-card.hidden {
    display: none;
}

.product-card .product-image {
    display: block;
    background: #eef4fb;
    text-align: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-info {
    padding: 1rem 1.25rem 1.25rem;
}

.product-card .product-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-info h3 a {
    color: inherit;
    text-decoration: none;
}

.product-price {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.read-more:hover {
    opacity: 0.75;
}

.products-empty {
    text-align: center;
    color: var(--text-gray);
    padding: 2rem 0;
}

.wc-archive .woocommerce-pagination {
    margin-top: 2.5rem;
    text-align: center;
}

.wc-archive .woocommerce-pagination ul.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
}

.wc-archive .woocommerce-pagination ul.page-numbers li {
    list-style: none;
    margin: 0;
}

.wc-archive .woocommerce-pagination .page-numbers {
    display: inline-flex;
    min-width: 46px;
    height: 46px;
    padding: 0 0.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: var(--text-dark);
    text-decoration: none;
    background: var(--white);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.wc-archive .woocommerce-pagination a.page-numbers:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.wc-archive .woocommerce-pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    font-weight: 600;
}

.wc-archive .woocommerce-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--text-gray);
    min-width: auto;
    padding: 0 0.25rem;
}

.wc-archive .woocommerce-pagination .page-numbers.prev,
.wc-archive .woocommerce-pagination .page-numbers.next {
    font-size: 1.05rem;
    color: var(--text-gray);
}

.wc-archive .woocommerce-pagination .page-numbers.prev:hover,
.wc-archive .woocommerce-pagination .page-numbers.next:hover {
    background: var(--bg-light);
}

/* List view */
.products-grid.products-list {
    grid-template-columns: 1fr;
}

.products-grid.products-list .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.products-list .product-card .product-image {
    width: 280px;
    height: auto;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.products-grid.products-list .product-card .product-info {
    flex: 1;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-layout .container {
        flex-direction: column;
    }
    .products-sidebar {
        width: 100%;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid.products-list .product-card {
        flex-direction: column;
    }
    .products-grid.products-list .product-card .product-image {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Product */
.wc-single .container {
    padding: 2.5rem 1rem;
}

.single-product-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-gallery,
.product-info {
    min-width: 0;
}

.product-gallery .gallery-main {
    background: #eef4fb;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
    position: relative;
}

.gallery-thumbs-track {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    padding: 0.15rem 0;
}

.gallery-thumbs-track::-webkit-scrollbar {
    display: none;
}

.gallery-nav {
    flex-shrink: 0;
    width: 32px;
    height: 74px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.gallery-nav:hover {
    background: var(--primary);
    color: var(--white);
}

.gallery-nav.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.gallery-thumb {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: var(--white);
    transition: border-color 0.2s;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

.product-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
}

.product-detail-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.product-specs {
    margin-bottom: 1.5rem;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.product-specs th,
.product-specs td {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    background: var(--white);
}

.product-specs tr:last-child th,
.product-specs tr:last-child td {
    border-bottom: none;
}

.product-specs th {
    background: var(--bg-light);
    color: var(--primary);
    font-weight: 600;
    width: 38%;
}

.product-specs td {
    color: var(--text-dark);
}

/* Product variation form */
.product-variation-form {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.product-variation-form .variations {
    width: 100%;
    border-collapse: collapse;
}

.product-variation-form .variations th,
.product-variation-form .variations td {
    padding: 0.5rem 0.75rem 0.5rem 0;
    text-align: left;
    border: none;
    vertical-align: middle;
}

.product-variation-form .variations label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.product-variation-form .variations select {
    width: 100%;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.product-variation-form .variations select:focus {
    border-color: var(--primary);
}

.product-variation-form .reset_variations {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary);
}

.product-variation-form .single_variation_wrap {
    margin-top: 1rem;
}

.product-variation-form .woocommerce-variation-price {
    margin-bottom: 0.5rem;
}

.product-variation-form .woocommerce-variation-price .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.product-variation-form .woocommerce-variation-availability {
    margin-bottom: 0.5rem;
}

.product-variation-form .variations_button {
    margin-top: 0.5rem;
}

.product-variation-form .variations_button .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.product-variation-form .variations_button .button:hover {
    background: var(--primary-dark);
}

.product-variation-form .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-variation-form .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.product-variation-form .woocommerce-variation-add-to-cart .btn-quote {
    flex: 1 1 0;
    min-width: 180px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.product-variation-form .quantity {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-variation-form .quantity-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.product-variation-form .quantity input.qty {
    width: 90px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border, #cbd6e2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    text-align: center;
}

.btn-quote {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}

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

/* Quote modal */
.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quote-modal.open {
    display: flex;
}

.quote-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.quote-modal-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.quote-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 2;
    transition: all 0.2s;
}

.quote-modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.quote-modal-body {
    padding: 2.25rem 1.5rem 1.5rem;
}

.quote-modal-body iframe,
.quote-modal-body img {
    max-width: 100%;
}

.product-detail-tabs {
    margin-top: 3rem;
}

.product-detail-tabs-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

.product-detail-desc-content {
    border: 1px solid var(--border);
    border-radius: 0 12px 12px 12px;
    overflow: hidden;
    background: var(--white);
    padding: 1.5rem;
}

.product-detail-desc-content p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-detail-desc-content p:last-child {
    margin-bottom: 0;
}

.product-detail-desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Related Products */
.product-related {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.product-related-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.5rem;
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

.product-related .related-card .car-card-img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
}

.product-related .related-card .car-card-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.product-related .related-card .car-card-info {
    text-align: center;
    padding: 1rem 0.5rem 0;
}

.product-related .related-card .car-card-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
}

.product-related .related-card .car-card-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.55rem 1.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.product-related .related-card .car-card-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

@media (max-width: 900px) {
    .single-product-layout {
        grid-template-columns: 1fr;
    }
}
.stats {
    background: var(--primary);
    background-image: url('images/khalbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 3rem 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 100, 0.55);
    z-index: 0;
}

.stats .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-text {
    text-align: left;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* About */
.about {
    background: var(--white);
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.about h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.about p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 220px;
    background: var(--bg-gray);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News */
.news {
    background: var(--bg-light);
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img {
    height: 160px;
    background: var(--bg-gray);
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.25rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin: 1.25rem 0;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.2);
}

.footer h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.footer-contact i {
    margin-top: 0.3rem;
    color: #93c5fd;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    margin-left: 1rem;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Floating Sidebar */
.floating-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px 0 0 12px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.floating-bar a {
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
    gap: 0.15rem;
}

.floating-bar a:last-child {
    border-bottom: none;
}

.floating-bar a:hover {
    background: var(--primary);
    color: var(--white);
}

.floating-bar a span {
    font-size: 0.6rem;
    font-weight: 600;
}

/* Floating WhatsApp button (bottom-right) */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
    z-index: 98;
    transition: transform 0.2s, background 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    background: #1ebe56;
    color: #fff;
}

@media (max-width: 1024px) {
    .cars-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-title {
        font-size: 2.2rem;
    }

    .banner-carousel {
        height: 460px;
    }

    .advantage-layout {
        grid-template-columns: 1fr;
    }

    .advantage-media {
        order: -1;
        min-height: 200px;
        height: 200px;
    }

    .advantage-list {
        display: none;
    }

    .adv-nav {
        display: flex;
        justify-content: center;
        padding: 0.5rem 0 0;
    }

    .logo-img {
        height: 72px;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .lang-btn {
        padding: 0 0.6rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 0.75rem;
        right: 0.75rem;
        flex-direction: column;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
        padding: 0.45rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.34s ease, opacity 0.26s ease, transform 0.26s ease;
        margin: 0;
        z-index: 300;
    }

    .nav-menu.active {
        max-height: 480px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li.menu-item-has-children > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-right: 1rem;
    }

    .nav-menu li.menu-item-has-children > a::after {
        margin-left: auto;
        transition: transform 0.25s;
    }

    .nav-menu li.menu-item-has-children > a.open::after {
        transform: rotate(180deg);
    }

    .nav-menu .sub-menu {
        position: static;
        max-height: 0;
        margin: 0;
        padding: 0 0.4rem;
        overflow: hidden;
        background: rgba(30, 74, 140, 0.04);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: max-height 0.32s ease, opacity 0.25s ease, padding 0.32s ease;
    }

    .nav-menu .sub-menu.open {
        max-height: 420px;
        padding: 0.3rem 0.4rem;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .sub-menu a {
        white-space: normal;
        padding: 0.7rem 1rem;
        font-size: 0.98rem;
        border-bottom: 1px solid rgba(30, 74, 140, 0.08);
    }

    .nav-menu .sub-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.8rem 1rem;
        font-size: 1.02rem;
        font-weight: 600;
        border-radius: 11px;
        border-bottom: 1px solid #eef2f7;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary);
        background: rgba(30, 74, 140, 0.07);
    }
}

@media (max-width: 768px) {
    .top-bar .btn-inquire {
        display: none;
    }

    .top-bar-left {
        gap: 1rem;
        justify-content: flex-start;
        font-size: 0.85rem;
    }

    .top-bar-left i {
        font-size: 0.9em;
    }

    .tab {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }

    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x proximity;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        flex: 0 0 auto;
        min-width: 5.25rem;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .banner-carousel {
        height: 380px;
    }

    .banner-content {
        padding: 1.5rem 1rem 1.5rem 1.5rem;
        margin-left: 0;
        max-width: 100%;
    }

    .banner-title {
        font-size: 1.6rem;
    }

    .banner-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .banner-arrow {
        width: 38px;
        height: 38px;
    }

    .banner-arrow.prev { left: 0.5rem; }
    .banner-arrow.next { right: 0.5rem; }

    .banner-actions {
        flex-wrap: nowrap;
        gap: 0.6rem;
    }

    .banner-actions .btn-hero-primary,
    .banner-actions .btn-hero-secondary {
        flex: 1;
        justify-content: center;
        white-space: nowrap;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .search-modal-title {
        font-size: 1.4rem;
    }

    .search-modal-form input,
    .search-modal-form button {
        height: 50px;
    }

    .cars-grid,
    .news-grid,
    .stats-grid,
    .about-grid,
    .advantage-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .advantage-media {
        order: -1;
        min-height: 200px;
        height: 200px;
    }

    .about-images {
        grid-template-columns: 1fr;
    }

    .section-title,
    .section-title-line,
    .tabs-section h2,
    .map-title,
    .about h2 {
        font-size: 1.5rem;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }

    .stat-text {
        text-align: center;
    }

    .floating-bar {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        transform: none;
        border-radius: 12px;
        flex-direction: row;
    }

    .floating-bar a {
        width: 48px;
        height: 48px;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }

    .floating-bar a:last-child {
        border-right: none;
    }

    .whatsapp-float {
        right: 1rem;
        bottom: calc(1rem + 48px + 0.6rem);
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .top-bar .container {
        gap: 0.5rem;
    }

    .top-bar-left {
        gap: 0.6rem;
        font-size: 0.72rem;
    }

    .top-bar-left i {
        font-size: 0.85em;
    }

    .banner-actions {
        gap: 0.45rem;
    }

    .banner-actions .btn-hero-primary,
    .banner-actions .btn-hero-secondary {
        padding: 0.5rem 0.7rem;
        font-size: 0.78rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .nav-actions {
        gap: 0.35rem;
    }

    .lang-btn #langLabel {
        display: none;
    }

    .lang-btn .fa-globe {
        margin: 0;
    }

    .tab {
        padding: 0.55rem 0.9rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .advantage-media {
        height: 180px;
    }
}

/* Single Post Page */
.post-hero {
    padding: 1.5rem 0 0;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.post-breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.post-breadcrumb a:hover {
    color: var(--primary);
}

.post-breadcrumb .sep {
    color: var(--border);
}

.post-breadcrumb .current {
    color: var(--text-dark);
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-single {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--border);
}

.post-single-content {
    max-width: 800px;
}

.post-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.post-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    margin: 0.5rem 0 1rem;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0 0 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-body {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.post-body p {
    margin: 0 0 1.2rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 0.8rem;
    line-height: 1.3;
}

.post-body h2 {
    font-size: 1.4rem;
}

.post-body h3 {
    font-size: 1.15rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 0.8rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--bg-light);
    border-radius: 0 8px 8px 0;
    color: var(--text-gray);
    font-style: italic;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.2rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.4rem;
}

@media (max-width: 900px) {
    .post-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .post-title {
        font-size: 1.3rem;
    }

    .post-breadcrumb .current {
        max-width: 200px;
    }
}

/* News Page */
.news-hero {
    text-align: center;
    padding: 4rem 0 2.5rem;
}

.news-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: 2px;
    margin: 0 0 1rem;
}

.news-hero-desc {
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.news-hero-desc p {
    margin: 0;
}

/* Featured Section */
.news-featured {
    padding: 0 0 3rem;
}

.news-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    min-height: 420px;
}

.news-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-card-featured {
    grid-row: 1 / 3;
}

.news-card-featured .news-card-img {
    height: 100%;
    min-height: 420px;
    position: relative;
}

.news-card-featured .news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: var(--white);
}

.news-card-overlay .news-card-title {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.news-card-overlay .news-card-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.news-card-side .news-card-img {
    height: 200px;
    overflow: hidden;
}

.news-card-side .news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-side .news-card-body {
    padding: 1.2rem 1.5rem;
}

.news-card-side .news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.4rem;
    line-height: 1.4;
}

.news-card-side .news-card-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.news-card-side .news-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0.6rem 0 0;
}

.news-card-more {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.news-card-more i {
    margin-left: 0.35rem;
    font-size: 0.7rem;
}

/* Separator */
.news-separator {
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

/* News Grid */
.news-grid-section {
    padding: 0 0 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-card-grid .news-card-img {
    height: 200px;
    overflow: hidden;
}

.news-card-grid .news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-grid .news-card-body {
    padding: 1rem 0.5rem;
}

.news-card-grid .news-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.4rem;
    line-height: 1.4;
}

.news-card-grid .news-card-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* News Pagination */
.news-pagination {
    margin-top: 2.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

.news-pagination .page-numbers {
    display: inline-flex;
    min-width: 46px;
    height: 46px;
    padding: 0 0.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: var(--text-dark);
    text-decoration: none;
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    margin: 0 0.2rem;
}

.news-pagination a.page-numbers:hover {
    background: var(--bg-light);
}

.news-pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    font-weight: 600;
}

.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.news-pagination .page-numbers.prev:hover,
.news-pagination .page-numbers.next:hover {
    background: var(--bg-light);
}

@media (max-width: 900px) {
    .news-featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .news-card-featured {
        grid-row: auto;
    }

    .news-card-featured .news-card-img {
        min-height: 280px;
    }

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

    .news-filter-bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-hero-title {
        font-size: 2.2rem;
    }
}

/* WooCommerce Checkout */
.woocommerce-checkout #main .page-content,
.woocommerce-checkout .woocommerce {
    max-width: 1100px;
    margin: 0 auto;
}

.checkout-cols {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .checkout-cols {
        grid-template-columns: 1fr;
    }
}

.checkout-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.25rem;
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

.checkout-notes-title {
    margin-top: 2rem;
}

.woocommerce-checkout .woocommerce-billing-fields > h3 {
    display: none;
}

.woocommerce-checkout .form-row {
    margin-bottom: 1rem;
}

.woocommerce-checkout .form-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    display: block;
}

.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row .select2-container .select2-selection--single {
    width: 100%;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.woocommerce-checkout .form-row textarea {
    height: auto;
    padding: 0.75rem 0.85rem;
}

.woocommerce-checkout .form-row .input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--primary);
}

.woocommerce-checkout .form-row input[readonly] {
    background: var(--bg-light);
    color: var(--text-gray);
    cursor: not-allowed;
}

.woocommerce-checkout .form-row .required {
    color: var(--primary);
}

.woocommerce-checkout .optional {
    display: none;
}

#order_review {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

#order_review table.shop_table {
    border: none;
}

#order_review table.shop_table th,
#order_review table.shop_table td {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

#order_review .woocommerce-checkout-review-order-table tfoot th {
    color: var(--primary);
    font-weight: 700;
}

/* Review product: image + variation attributes */
.review-product {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.review-product-img img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.review-product-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.review-product-info .variation {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0.15rem 0;
}

.review-product-info .variation dt,
.review-product-info .variation dd {
    display: inline;
    margin: 0;
}

.review-product-info .variation dt {
    color: var(--primary);
    font-weight: 600;
}

.review-product-info .variation dd {
    margin-left: 0.25rem;
    margin-right: 0.5rem;
}

.review-product-qty {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.3rem;
}

#order_review .payment_methods {
    list-style: none;
    margin: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

#order_review .payment_methods li {
    margin-bottom: 0.75rem;
}

#order_review .payment_methods li label {
    font-weight: 600;
    cursor: pointer;
    color: var(--text-dark);
}

#order_review .payment_methods li .payment_box {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

#order_review .place-order {
    padding: 1.25rem;
    text-align: center;
}

#order_review .place-order .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    padding: 0.95rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    max-width: 360px;
}

#order_review .place-order .button:hover {
    background: var(--primary-dark);
}