a {
	text-decoration: none !important;
	color: inherit !important;
}
/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  background-color: #f8f9fa;
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Color Variables */
:root {
  --primary-color: #e31837; /* Đỏ Ngọc Phát Auto */
  --primary-dark: #b80f27;
  --dark-color: #1a1a1a;
  --gray-light: #f4f4f6;
  --border-color: #e5e5e5;
}

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

/* ==================== 1. TOP BAR ==================== */
.top-bar {
  background-color: #1a1a1a;
  color: #ccc;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.top-bar-left-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar-left-item i {
  color: var(--primary-color);
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  transition: background-color 0.2s, transform 0.2s;
}
.social-links a:hover { background-color: #fff; color: var(--primary-color); transform: translateY(-2px); }
.top-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid #333;
  padding-left: 15px;
}
.top-nav-links a {
  color: #ccc;
  transition: color 0.2s;
}
.top-nav-links a:hover {
  color: #fff;
}

/* ==================== 2. MAIN HEADER ==================== */
.main-header {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 1px;
}
.search-box {
  flex: 1;
  max-width: 500px;
  display: flex;
}
.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid var(--primary-color);
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.search-box button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 16px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hotline-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: bold;
}
.hotline-btn i {
  font-size: 24px;
}
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-light);
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
}

/* ==================== 3. NAVIGATION ==================== */
.nav-bar {
  background-color: var(--dark-color);
  color: #fff;
}
.nav-bar .container {
  display: flex;
  align-items: center;
}
.category-dropdown {
  background-color: var(--primary-color);
  padding: 12px 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 260px;
}
.main-nav {
  display: flex;
  list-style: none;
}
.main-nav li a {
  display: block;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  transition: background 0.2s;
}
.main-nav li a:hover {
  background-color: rgba(255,255,255,0.1);
}

/* ==================== 4. HERO SLIDER BANNER ==================== */
.hero-slider-section {
  margin-bottom: 30px;
}
.swiper {
  width: 100%;
  height: 500px;
}
.swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}
.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}
.slide-content h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
.slide-content p {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
.slide-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 28px;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  transition: background 0.2s;
}
.slide-btn:hover {
  background-color: var(--primary-dark);
}
.swiper-button-next, .swiper-button-prev {
  color: #fff !important;
  background: rgba(0,0,0,0.3);
  width: 45px !important;
  height: 45px !important;
  border-radius: 50%;
}
.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 20px !important;
}
.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
}

/* COMMITMENTS */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.feature-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.feature-item i {
	font-size: 48px;
	margin-bottom: 20px;
	color: #e31837;
}

/* CAR FILTER WIDGET */
.filter-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  border-top: 3px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.filter-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.filter-form {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  gap: 15px;
}
@media (max-width: 768px) {
  .filter-form {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
.filter-form select, .filter-form button {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
}
.filter-form button {
  padding: 8px 10px;
  font-size: 13px;
  background-color: var(--primary-color);
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

/* SECTION TITLES */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  padding: 5px;
  width: 100%;
  background: #e31837;
}
.section-header h2 {
	font-size: 22px;
	font-weight: 500;
	color: white;
	border-left: 4px solid var(--primary-color);
	padding-left: 10px;
	text-transform: uppercase;
}
.section-desc {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

/* PRODUCT GRID & CARD */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Lưới sản phẩm trong mục TƯ VẤN (khung hẹp hơn, nằm cạnh banner) - 4 cột */
.products-grid-4col {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .products-grid-4col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .products-grid-4col { grid-template-columns: repeat(2, 1fr); }
}
.product-card {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-thumb {
  position: relative;
  height: 180px;
  background-color: #eee;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
}
.product-info {
  padding: 15px;
}
.product-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 15px;
}
.product-price-original {
  color: #999;
  font-weight: 400;
  font-size: 13px;
  text-decoration: line-through;
  margin-left: 6px;
}

/* BLOCK: FEATURE HIGHLIGHTS */
.feature-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  border: 1px dashed var(--primary-color);
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.highlight-item i {
  font-size: 24px;
  color: var(--primary-color);
}
.highlight-item h5 {
  font-size: 14px;
  margin-bottom: 2px;
}
.highlight-item p {
  font-size: 12px;
  color: #666;
}

/* BLOCK: XƯỞNG SẢN XUẤT NGỌC PHÁT AUTO */
.factory-section {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 6px;
  margin-bottom: 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  background-color: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* BLOCK: TIN TỨC MỚI NHẤT */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.news-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.news-thumb {
  height: 160px;
  background: #eee;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-content {
  padding: 15px;
}
.news-category {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.news-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-excerpt {
  font-size: 13px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.read-more {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: bold;
}

/* BLOCK: FORM LIÊN HỆ TƯ VẤN */
.contact-section {
  background: #fff;
  padding: 30px 20px;
  border-radius: 6px;
  margin-bottom: 50px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  border-top: 4px solid var(--primary-color);
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
}
.contact-info {
  background-color: #e31837;
  padding: 25px;
  border-radius: 6px;
}
.contact-info h3 {
  font-size: 18px;
  color: white;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.contact-info-item i {
  font-size: 20px;
  color: white;
  margin-top: 3px;
}
.contact-info-item h5 {
  font-size: 14px;
  margin-bottom: 2px;
  color: white;
}
.contact-info-item p {
  font-size: 13px;
  color: white;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
}
.btn-submit {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover {
  background-color: var(--primary-dark);
}

.icon-contact {
	color: #e31837;
}

/* FOOTER */
footer {
  background-color: var(--dark-color);
  color: #bbb;
  padding-top: 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}
.footer-col p, .footer-col li {
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: #fff;
}
.map-container {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #444;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.copyright {
  background-color: #111;
  text-align: center;
  padding: 15px;
  font-size: 13px;
  border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar-left-item:not(:first-child) { display: none; }
  .top-nav-links { display: none; }
  /*.main-header .container { flex-direction: column; }*/
  .search-box { width: 100%; }
  .category-dropdown { width: 100%; }
  .main-nav { display: none; }
  .swiper { height: 260px; }
  .slide-content h1 { font-size: 22px; }
  .slide-content p { font-size: 14px; }
  .contact-container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ==================== HEADER STYLES (site-header, dùng cho _HeaderAuto01) ==================== */
.flex-row {
    display: flex;
}
.align-center {
    align-items: center;
}
.justify-between {
    justify-content: space-between;
}
.spacer {
    flex-grow: 1;
}
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.topbar-desktop {
    background-color: #f1f1f1;
    border-bottom: 1px solid #e5e5e5;
    font-size: 12px;
    padding: 6px 0;
    color: #555;
}
.topbar-desktop .container {
    align-items: center;
    gap: 20px;
}
.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar-item i {
    color: #d32f2f;
}
.header-desktop {
    padding: 12px 0;
}
.header-desktop .container {
    gap: 30px;
}
.main-nav .nav-menu {
    display: flex;
    gap: 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
}
.main-nav .nav-menu a {
    transition: color 0.2s;
}
.main-nav .nav-menu a:hover {
    color: #d32f2f;
}
.header-search {
    flex-grow: 1;
    max-width: 400px;
}
.search-form {
    display: flex;
    border: 2px solid #d32f2f;
    border-radius: 4px;
    overflow: hidden;
}
.search-form input[type="search"] {
    border: none;
    padding: 8px 12px;
    width: 100%;
    outline: none;
    font-size: 13px;
}
.search-form button {
    background-color: #d32f2f;
    border: none;
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.search-form button:hover {
    background-color: #e31837;
}
.header-mobile {
    display: none;
    padding: 10px 0;
}
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}
.mobile-nav {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 10px 15px;
}
.mobile-nav-menu li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
@media (max-width: 991px) {
    .topbar-desktop, .header-desktop {
        display: none;
    }
    .header-mobile {
        display: block;
    }
}

/* ==================== "TƯ VẤN" TPE BANNER + PRODUCT CARD 2 ==================== */
.tpe-banner {
    position: relative;
    background: url("https://placehold.co/700x900") center/cover;
    min-height: 440px;
    border-radius: 20px;
    overflow: hidden;
}
.tpe-banner .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}
.tpe-banner .content {
    position: relative;
    color: #fff;
    padding: 40px;
    z-index: 2;
}
.tpe-banner h2 {
    font-size: 42px;
    font-weight: 700;
}
.tpe-banner hr {
    width: 80px;
    border: 2px solid #fff;
    opacity: 1;
}
.tpe-banner ul {
    padding-left: 18px;
    line-height: 2;
    margin: 30px 0;
}
.product-card2 {
    border: 1px solid #eee;
    border-radius: 6px;
    transition: .3s;
    background: #fff;
    overflow: hidden;
}
.product-card2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.product-card2 img {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 250 / 250;
    object-fit: cover;
    display: block;
}
.product-card2 h6 {
    font-weight: 700;
    min-height: 45px;
}
.price {
    color: #d60000;
    font-size: 20px;
    font-weight: 700;
}

/* ==================== CAR BRAND/MODEL FILTER (JS ẩn/hiện sản phẩm) ==================== */
.product-card.js-hidden-by-filter {
    display: none !important;
}

/* ==================== LOGO ==================== */
.auto01-logo-img {
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}
.header-mobile .auto01-logo-img {
    height: 42px;
    max-width: 160px;
}
@media (max-width: 991px) {
    .header-desktop .auto01-logo-img {
        height: 48px;
    }
}

/* ==================== CONSULT MODAL (dialog "Nhận báo giá/Tư vấn ngay") ==================== */
.consult-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}
.consult-content {
    width: 420px;
    max-width: 90%;
    margin: 6% auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    color: #333;
}
.consult-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.consult-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}
.close-btn-pp {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #888;
    background: none;
    border: none;
}
.close-btn-pp:hover {
    color: var(--primary-color);
}
.consult-sub {
    font-size: 13px;
    color: #777;
    margin: 10px 0 20px;
}
.consult-modal .form-group {
    position: relative;
    margin-bottom: 14px;
}
.consult-modal .form-group input,
.consult-modal .form-group textarea {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    outline: none;
}
.consult-modal .form-group textarea {
    min-height: 90px;
    resize: vertical;
}
.consult-modal .form-group input:focus,
.consult-modal .form-group textarea:focus {
    border-color: var(--primary-color);
}
.consult-modal .icon {
    position: absolute;
    left: 10px;
    top: 12px;
    font-size: 14px;
    color: #999;
}
.consult-modal .form-group.textarea .icon {
    top: 14px;
}
.consult-modal .btn-submit {
    width: 100%;
}

.icon-call img, #facebook_chat img, #zalo_chat img { width: 45px !important; height: auto !important; margin-left: 5px; }
.icon-call { top: 65%; right: 10px; }

/* ==================== NÚT "LÊN ĐẦU TRANG" ==================== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, background .2s;
    z-index: 9999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
}

.auto01-logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}

.auto01-detail {
    padding: 10px !important;
}
