/* Premium Auto Dealer - Main Styles (Optimized) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #ffffff;
    --secondary: #ffffff;
    --tertiary: #fff5f0;
    --accent: #bf0404;
    --accent-dark: #E64A19;
    --accent-light: #FF7043;
    --text: #212529;
    --text-secondary: #555;
    --text-muted: #777;
    --border: #e9ecef;
    --success: #28a745;
    --danger: #dc3545;
    --shadow:
    rgba(0, 0, 0, 0.08);
    --shadow-hover:
    rgba(255, 87, 34, 0.2);
}

body {
    font-family: 'Alexandria', 'Inter', sans-serif;
    background: #fbfbfb;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Container ===== */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 55px 0px 55px;
}

/* ===== Header & Navigation ===== */
.header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Main Header */
.main-header {
    padding: 1.2rem 2rem;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

/* Top Bar */
.top-bar {
    background: #011759;
    padding: 0.7rem 2rem;
    border-bottom: 1px solid var(--border);
}

.top-bar-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-bar-contact,
.top-bar-contact-mail,
.trust-badge-program,
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-contact:hover {
    color: var(--accent-dark);
}

/*.top-bar-contact svg,
.trust-badge svg {
    width: 16px;
    height: 16px;
}

.trust-badge svg {
    color: var(--accent);
}*/



.logo {
    width: 150px;
    display: block;
    /* padding: 0px 0px 0px 5px; */
}

/* Search */
.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.9rem 3rem 0.9rem 1.2rem;
    border: 2px solid #011759;
    border-radius: 50px;
    font-family: 'Alexandria', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: var(--primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #bf0404;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-button:hover {
    background: var(--accent-dark);
    transform: translateY(-50%) scale(1.05);
}

.search-button svg {
    width: 18px;
    height: 18px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 0.95rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

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

.nav-menu a:hover {
    color: var(--accent-dark);
}

/* Header Actions & Buttons */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-cta,
.nav-buttons button,
.nav-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: 'Alexandria', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    cursor: pointer;
}

/*.header-cta {
    background: var(--accent);
    border: none;
    color: white;
}

.header-cta svg {
    width: 18px;
    height: 18px;
}

.header-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);*/
}

.nav-buttons button,
.nav-buttons a {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent-dark);
}

.nav-buttons button:hover,
.nav-buttons a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* ===== Hero Section ===== 
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--tertiary) 100%);
    border-radius: 16px;
    margin-bottom: 4rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.hero-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}*/

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
}

.section-header h2,
.text-header {
    font-size: 2.5rem;
    font-weight: 700;
    color: #001759;
}

.text-header {
    text-align: center;
    /* padding-bottom: 10px; */
}

.text2-header {
    font-size: 1.25rem;
    text-align: center;
    font-weight: 500;
    padding-bottom: 45px;
}

/* Buton vezi tot stocul */
.view-all-link {
    color: #004a66;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link:hover {
    color: var(--accent-dark);
    transform: translateX(5px);
}

/* ===== Featured Section ===== */
.featured-section {
    margin: 1.5rem 0 4rem;
}

/* ===== Features Banner ===== */
.features-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: var(--primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--accent);
}

/*.feature-box svg {
    width: 50px;
    height: 50px;
    color: var(--accent);
    margin-bottom: 1rem;
}*/

.feature-box h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Page Header ===== */
.page-header {
    text-align: center;
    /*padding: 3rem 2rem 2rem;*/
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.results-info {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--tertiary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

#results-count {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

/* ===== Homepage Layout ===== */
.homepage-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

/* ===== Sidebar Filtre ===== */
.filters-sidebar {
    background: var(--primary);
    padding: 2rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 110px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.filters-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #004a66;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 1.8rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    font-family: 'Alexandria', sans-serif;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.filter-reset {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-reset:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ===== Afisare masini ===== */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: stretch; 
}

.car-meta-line {
    margin-bottom: 15px;
    font-size: 13px;
    color: #6c7a89;
    font-weight: 400;
}

/* ===== Car Card ===== */
.car-card {
    background: var(--primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* box-shadow: 0 2px 8px var(--shadow); */
}



.car-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

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

.car-info {
    padding: 1.2rem;
    background: #F8F9FA;
	display: flex;
    flex-direction: column;
	flex: 1;
}
	

.car-title {
    font-size: 18px;
    margin-bottom: 0.8rem;
    color: #000000;
    font-weight: 600;
	text-transform: uppercase;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}

.car-spec {
    font-size: 12px;
    color: var(--text-muted);
}

.car-spec strong {
    color: #000;
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 600;
    font-size: 13px;
}

.car-price {
    font-size: 1.5rem;
	margin-top: auto;
    /* font-weight: 700; */
    color: #000000;
    /* text-align: right; */
    background: #efefef78;
    padding-left: 15px;
    padding-bottom: 5px;
}

.price-main {
    font-size: 24px;
    font-weight: 700;
}

.price-without-vat {
    font-size: 12px;
    color: #2a2a2a;
}

.price-note {
    font-size: 13px;
    color: #999;
    margin-top: 3px;
}

/* ===== Pagina detalii masini ===== */
.back-button {
    background: transparent;
    border: 1px solid var(--border);
    color: #000000;
    font-size: 1rem;
    cursor: pointer;
    /* margin-bottom: 2rem; */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
    font-family: 'Alexandria', sans-serif;
    padding: 5px;
    border-radius: 6px;
    font-weight: 400;
}

.back-button:hover {
    background: var(--primary);
    border-color: var(--accent);
    color: var(--accent-dark);
}

.car-details-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    margin-top: 20px;
}

.car-details-grid > * {
    min-width: 0;
}

/* Gallery */
.gallery-section {
    position: relative;
}


.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 28px;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 2;
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.thumbnails-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
	flex-wrap: nowrap;       
    scroll-behavior: smooth;
}


.thumbnails-slider::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-slider::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.thumbnail {
    min-width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    border-color: var(--accent);
}

.details-section {
    min-width: 0;
}

/* Sectiune detalii */
.details-section h1 {
    font-size: 28px;
    /* margin-bottom: 1rem; */
    color: #000000;
    font-weight: 600;
	text-transform: uppercase;
}

.details-price {
    font-size: 25px;
    color: #bf0404;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Specificatii masini */
.specs-grid,
.description-section,
.features-section {/* padding: 2rem; */border-radius: 12px;margin-bottom: 2rem;}

.specs-grid h3,
.description-section h3,
.features-section h3 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: #000;
    font-weight: 500;
}

.spec-value {
    color: #585858;
    font-weight: 300;
}

.description-section p {
    line-height: 1.8;
    color: var(--text-secondary);
	white-space: pre-line;
}

/* Features */
.features-category {
    margin-bottom: 2rem;
}



/* ===== Panou Administrator ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #004a66;
}

.admin-title {
    font-size: 2.5rem;
    color: #bf0404;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--primary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    /* background: radial-gradient(circle, rgba(212, 165, 116, 0.1), transparent); */
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #bf0404;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    background: var(--primary);
    padding: 0.5rem;
    border-radius: 12px 12px 0 0;
}

.tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Alexandria', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.tab:hover {
    background: var(--primary);
    color: var(--text);
}

.tab.active {
    color: white;
    background: #bf0404;
}

.tab-content {
    display: none;
    background: var(--primary);
    padding: 2rem;
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--border);
    border-top: none;
}

.tab-content.active {
    display: block;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    font-family: 'Alexandria', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

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

/* Image Upload */
.image-upload-zone {
    border: 2px dashed var(--border);
    padding: 3rem;
    text-align: center;
    border-radius: 12px;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.image-upload-zone:hover {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.05);
}

.images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-image {
    position: relative;
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
}

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

.preview-image.main-image {
    border-color: var(--accent);
}

.preview-image .badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.remove-image:hover {
    transform: scale(1.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f7f7f7;
    border-radius: 6px;
}

.feature-item:hover {
    background: var(--tertiary);
}

.feature-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.feature-item label {
    cursor: pointer;
    font-size: 0.9rem;
}

/* ===== Buttons ===== */
.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Alexandria', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: #004a66;
    color: white;
}

.btn-primary:hover {
    background: #bf0404;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--tertiary);
    border-color: var(--accent);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* ===== Lista masini in admin ===== */
.cars-list {
    display: grid;
    gap: 1rem;
}

.car-list-item {
    background: var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.car-list-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.car-list-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.car-list-actions {
    display: flex;
    gap: 1rem;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    font-weight: bold;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
}

/* ===== Loading Animation ===== */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ===== Footer ===== */
.footer {
    background: #011759;
    /* border-top: 1px solid var(--border); */
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    color: #fbfbfb;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: #fff;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff0000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: #fff;
    font-size: 0.9rem;
	grid-column: 1 / -1;
    width: 100%;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s;
    background: var(--primary);
}

.social-links a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Butoane finantare si buyback */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.cta-buttons a {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-finantare {
    background: #004a66;
    color: #fff;
}

.btn-finantare:hover {
    background: #bf0404;
}

.btn-buyback {
    background: #004a66;
    color: #fff;
}

.btn-buyback:hover {
    background: #000;
}

/* Description & Features full width */
.description-section,
.features-section {
    width: 100%;
    max-width: 100%;
}

/* ================= MOBILE MENU ================= */

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* Overlay fundal */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 9998;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: 0.35s ease;
    z-index: 9999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Header meniu */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Top info */
.mobile-top-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.mobile-top-info a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
}

/* Badge Finantare / Buyback */
.mobile-badges {
    display: flex;
    gap: 10px;
}

.mobile-badges span {
    background: #f2f2f2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* Program */
.program {
    font-size: 13px;
    color: #555;
}

/* Search */
.mobile-search {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.mobile-search input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.mobile-search button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* Nav links */
.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #eee;
}

/* Body lock scroll */
.no-scroll {
    overflow: hidden;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
    padding: 35px 25px;
    border-radius: 15px;
    background: #f7f7f7;
}

.benefit-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.benefit-card i {
    font-size: 40px;
    margin-bottom: 20px;
    color: #000;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.testimonial-section {
    padding: 25px 25px 25px 25px;
    background: #f7f7f7;
    text-align: center;
    border-radius: 15px;
}

.testimonial-section h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    gap: 20px;
}

.testimonial-card {
    flex: 0 0 calc((100% - 40px) / 3);
    /* max-width: calc((100% - 40px) / 3); */
    /* box-sizing: border-box; */
    /* background: #e7e7e76b; */
    padding: 40px 30px;
    /* border-radius: 20px; */
    /* transition: 0.3s ease; */
}

.testimonial-card:hover {
    transform: translateY(-6px);
}

.stars {
    color: #f5b301;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}


.review-text,
.testimonial-card p,
textarea {
    overflow-wrap: anywhere;
}

.testimonial-card h4 {
    font-size: 16px;
    font-weight: 600;
}

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

.review-actions {
    display: flex;
    gap: 0.5rem;
}


.benefits-title {
    grid-column: 1 / -1;   
    text-align: center;
}

.benefits-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
}

.review-text {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* cate randuri vrei */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.review-text.expanded {
  -webkit-line-clamp: unset;
}

.read-more-btn {
  color: #011759;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
}

.cta-section {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.full-btn {
    width: 100%;
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
}

.phone-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border: 2px solid #ff6a00;
    border-radius: 8px;
    color: #ff6a00;
    font-weight: 600;
    text-decoration: none;
}

.info-card {
    background: #f3f3f3;
    padding: 20px;
    border-radius: 8px;
}

.details-btn {
    display: inline-block;
    margin-top: 10px;
    background: #222;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
}

/* ===== WARRANTY BOX ===== */

.warranty-box {
    background: #011759;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
	text-align: center;
    /* margin-top: 20px; */
}

.warranty-header {
    font-size: 18px;
    font-weight: 600;
}

.warranty-badge {
    background: #ffc107;
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-left: 5px;
}

.warranty-sub {
    margin-top: 10px;
    font-size: 14px;
}

.warranty-badge-small {
    background: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 14px;
	white-space: nowrap;
}

.warranty-box hr {
    margin: 15px 0;
    border-color: rgba(255,255,255,0.3);
}

.badge {
    background: #ffc107;
    color: #000;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.delivery-info {
    background: #eef4ff;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.full-specs {
    margin-top: 40px;
}

/* ===== VEHICLE SPECS HORIZONTAL ===== */

.vehicle-specs {
    /* margin-top: 50px; */
    margin-bottom: 2rem;
}

.specs-title {
    font-size: 1.5rem;
	margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.specs-horizontal {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    background: #f2f2f2;
    padding: 30px;
    border-radius: 8px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.spec-label {
    font-weight: 600;
    color: #222;
}

.spec-value {
    color: #5a6a7a;
}


/* ===== CTA CAR DETAILS UPGRADE ===== */

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: 15px;
}

/* WhatsApp */
.whatsapp-btn {
    background: #25D366;
    color: #fff;
    gap: 3px;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
}

/* Telefon */
.phone-btn-main {
    background: #fff;
    border: 2px solid #004a66;
    color: #004a66;
}

.phone-btn-main:hover {
    background: #011759;
    color: #fff;
}

/* BuyBack */
.buyback-btn {
    background: #011759;
    color: #fff;
}

.buyback-btn:hover {
    background: #bf0404;
}

/* Finantare */
.finantare-btn {
    background: #011759;
    color: #fff;
}

.finantare-btn:hover {
    background: #bf0404;
}

/* SOCIAL */
.cta-social {
    display: flex;
    gap: 12px;
    margin-top: 0px;
}

.social-btn {
    flex: 1;
    text-align: center;
    padding: 3px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.tiktok-btn {
    background: #000;
    color: #fff;
}

.tiktok-btn:hover {
    background: #111;
}

.facebook-btn {
    background: #1877f2;
    color: #fff;
}

.facebook-btn:hover {
    background: #0d5ecf;
}

/* MAPS */
.cta-maps {
    margin-top: 5px;
}

.maps-btn {
    display: block;
    text-align: center;
    padding: 4px;
    border-radius: 10px;
    background: #f2f2f2;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.maps-btn:hover {
    background: #ddd;
}


/* ===== FLOWING FEATURES (NO EMPTY SPACE) ===== */

.features-modern-grid {
    column-count: 2;
    column-gap: 50px;
    margin-top: 30px;
}

.feature-column {
    break-inside: avoid;
    margin-bottom: 40px;
    display: inline-block;
    width: 100%;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.feature-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list-modern li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
    color: #444;
}

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

.check-icon {
    color: #1e8e3e;
    font-weight: bold;
    font-size: 16px;
}


/* ============================= */
/* FIX GLOBAL TEXT OVERFLOW */
/* ============================= */

p, span, div, td, th, label, a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

textarea {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

input[type="text"],
input[type="email"],
input[type="number"] {
    max-width: 100%;
}

.card {
    min-width: 0;
}


/* RESPONSIVE */

@media (max-width: 1200px) {

    .homepage-layout {
        grid-template-columns: 260px 1fr;
    }

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

    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-search {
        max-width: 350px;
    }

    .top-bar-right {
        gap: 1rem;
    }

    .trust-badge {
        font-size: 0.75rem;
    }

}

@media (max-width: 1024px) {

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

    .car-details-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 992px) {

    .testimonial-slider {
        gap: 0;
    }

    .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

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

    .features-modern-grid {
        column-count: 1;
    }

}

@media (max-width: 768px) {

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    margin: 0 auto;
}

.hamburger {
    position: absolute;
    right: 0;
	display: block;
}

    .homepage-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 10px 15px;
    }

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

    .car-details-grid,
    .form-grid,
    .footer-container,
    .features-list {
        grid-template-columns: 1fr;
    }

    body {
        overflow-x: hidden;
    }

    /* ===== Navigation ===== */

    .nav-menu,
    .header-search {
        display: none;
    }

    /* ===== Header ===== */

    .top-bar {
        padding: 0.5rem 1rem;
    }

    .top-bar-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .top-bar-left,
    .top-bar-right {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .top-bar-contact,
    .trust-badge {
        font-size: 0.75rem;
    }

    .top-bar-contact-mail,
    .trust-badge-program {
        display: none;
    }

    .main-header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-cta,
    .nav-buttons a,
    .nav-buttons button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* ===== Typography ===== */

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .section-header h2,
    .page-header h1,
    .admin-title {
        font-size: 2rem;
    }

    .details-section h1,
    .details-price {
        font-size: 2rem;
    }

    .car-title {
        font-size: 16px;
    }

    .text-header {
        font-size: 20px;
    }

    .text2-header {
        font-size: 14px;
    }
	
	.car-spec strong {
        font-size: 11px;
    }
	
	.car-spec {
        font-size: 10px;
    }
	
	.price-main {
        font-size: 16px;
    }
	
	.price-without-vat {
        font-size: 11px;
    }
	

    /* ===== Gallery ===== */

    .main-image-container {
        height: 350px;
    }

    .thumbnail {
        min-width: 120px;
        height: 70px;
        flex: 0 0 auto;
    }

    .car-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }
	

    /* ===== FILTRE ===== */

    .filters-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        width: 100%;
        position: relative;
        top: 0;
    }

    .filters-title {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .filter-brand { grid-column: 1; grid-row: 2; }
    .filter-body { grid-column: 2; grid-row: 2; }

    .filter-year { grid-column: 1; grid-row: 3; }
    .filter-price { grid-column: 2; grid-row: 3; }

    .filter-transmission { grid-column: 1; grid-row: 4; }
    .filter-fuel { grid-column: 2; grid-row: 4; }

    .filter-km { grid-column: 1 / -1; grid-row: 5; }
    .filter-reset { grid-column: 1 / -1; grid-row: 6; }

    .filter-group input,
    .filter-group select {
        width: 100%;
    }

    /* ===== Admin ===== */

    .tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab {
        flex: 1 1 auto;
        text-align: center;
    }

    .car-list-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .car-list-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .car-list-actions button {
        flex: 1;
    }
	

    /* Butoane recenzii */
    div[style*="display:flex"][style*="gap"] {
        display: flex !important;
        gap: 8px !important;
        width: 100%;
    }

    div[style*="display:flex"][style*="gap"] 
	.btn {
        flex: 1;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .anpc-banners {
        flex-direction: column;
        align-items: flex-start;
    }

    .anpc-banners img {
        width: 140px;
    }
}


/* =============================
   FIX SUB 400px (SAFE)
============================= */

@media (max-width: 400px) {

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    margin: 0 auto;
	width: 120px;
}

.hamburger {
    position: absolute;
    right: 0;
	display: block;
}

    .homepage-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 7px 12px;
    }

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

    .car-details-grid,
    .form-grid,
    .footer-container,
    .features-list {
        grid-template-columns: 1fr;
    }

    body {
        overflow-x: hidden;
    }

    /* ===== Navigation ===== */

    .nav-menu,
    .header-search {
        display: none;
    }

    /* ===== Header ===== */

    .top-bar {
        padding: 0.5rem 1rem;
    }

    .top-bar-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .top-bar-left,
    .top-bar-right {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .top-bar-contact,
    .trust-badge {
        font-size: 0.75rem;
    }

    .top-bar-contact-mail,
    .trust-badge-program {
        display: none;
    }

    .main-header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-cta,
    .nav-buttons a,
    .nav-buttons button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* ===== Typography ===== */

    .hero-section h1 {
        font-size: 2.0rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .section-header h2,
    .page-header h1,
    .admin-title {
        font-size: 1.7rem;
    }

    .details-section h1,
    .details-price {
        font-size: 1.7rem;
    }

    .car-title {
        font-size: 12px;
    }

    .text-header {
        font-size: 16px;
    }

    .text2-header {
        font-size: 13px;
    }
	
	.car-spec strong {
        font-size: 9px;
    }
	
	.car-spec {
        font-size: 8px;
    }
	
	.price-main {
        font-size: 13px;
    }
	
	.price-without-vat {
        font-size: 9px;
    }
	

    /* ===== Gallery ===== */

    .main-image-container {
        height: 330px;
    }

    .thumbnail {
        min-width: 90px;
        height: 60px;
        flex: 0 0 auto;
    }

    .car-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }
	

    /* ===== FILTRE ===== */

    .filters-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        width: 100%;
        position: relative;
        top: 0;
    }

    .filters-title {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .filter-brand { grid-column: 1; grid-row: 2; }
    .filter-body { grid-column: 2; grid-row: 2; }

    .filter-year { grid-column: 1; grid-row: 3; }
    .filter-price { grid-column: 2; grid-row: 3; }

    .filter-transmission { grid-column: 1; grid-row: 4; }
    .filter-fuel { grid-column: 2; grid-row: 4; }

    .filter-km { grid-column: 1 / -1; grid-row: 5; }
    .filter-reset { grid-column: 1 / -1; grid-row: 6; }

    .filter-group input,
    .filter-group select {
        width: 100%;
    }

    /* ===== Admin ===== */

    .tabs {
        flex-wrap: wrap;
        gap: 0.2rem;
    }

    .tab {
        flex: 1 1 auto;
        text-align: center;
    }

    .car-list-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.50rem;
    }

    .car-list-actions {
        width: 100%;
        display: flex;
        gap: 0.3rem;
    }

    .car-list-actions button {
        flex: 1;
    }
	

    /* Butoane recenzii */
    div[style*="display:flex"][style*="gap"] {
        display: flex !important;
        gap: 5px !important;
        width: 100%;
    }

    div[style*="display:flex"][style*="gap"] 
	.btn {
        flex: 1;
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }

}

.anpc-banners {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
}

.anpc-banners img {
    width: 160px;
    height: auto;
    transition: 0.2s ease;
}

.anpc-banners img:hover {
    opacity: 0.85;
}

/* ===== LEGAL PAGES ===== */

.legal-page {
    max-width: 100%;
    margin: 60px auto;
}

.legal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.legal-content h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 20px;
    color: #011759;
}

.legal-content p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.city-header{
margin-bottom:40px;
}

.city-cars{
margin:40px 0;
}

.city-cars h2{
margin-bottom:20px;
font-size:28px;
}

.city-footer-text{
margin-top:50px;
line-height:1.7;
}

.cities-section{
text-align:center;
margin:60px 0;
}

.cities-links{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:15px;
margin-top:20px;
}

.cities-links a{
text-decoration:none;
padding:10px 18px;
border:1px solid #ddd;
border-radius:6px;
font-weight:500;
color:#333;
transition:all 0.3s;
}

.cities-links a:hover{
background:#f5f5f5;
}

.brands-section{
text-align:center;
margin:60px 0;
}

.brands-links{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:15px;
margin-top:20px;
}

.brands-links a{
text-decoration:none;
padding:10px 18px;
border:1px solid #ddd;
border-radius:6px;
font-weight:500;
color:#333;
transition:all 0.3s;
}

.brands-links a:hover{
background:#f5f5f5;
}

.brand-page{
margin-top:40px;
}

.brand-header{
margin-bottom:40px;

}

.brand-header h1{
margin-bottom:15px;
}

.brand-header p{
/*max-width:700px;*/
margin:0 auto;
line-height:1.6;
}

.brand-cars{
margin-top:30px;
}


.related-cars{
/*margin-top:70px;*/
}

.related-cars h3{
margin-bottom:30px;
font-size:24px;
}

#related-cars-grid{
margin-top:25px;
}

#image-list {
    display: contents;
}

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-box select {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.sort-box-below {
    margin: 0.5rem 0 1.2rem 0;
}

.sort-box-below select {
    min-width: 180px;
}

/* BUTON FILTRE */
.toggle-filters-btn {
    display: none;
    width: 60%;
    padding: 12px;
    margin-bottom: 1rem;
    background: #011759;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .toggle-filters-btn {
        display: block;
    }

    .filters-sidebar {
        display: none;
        margin-bottom: 1rem;
    }

    .filters-sidebar.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

/* animatie simpla */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}