/* =============================================================
   MERCEDES VNS — FINAL OVERRIDES CSS
   Layout & Styling Safety Net — Enqueued LAST, overrides all.
   DO NOT REMOVE or REORDER this file's enqueue in functions.php
   ============================================================= */

/* ------------------------------------------------------------------
   1. GLOBAL RESET — Prevent horizontal overflow, enforce dark bg
   ------------------------------------------------------------------ */
html, body {
  overflow-x: hidden !important;
  background: var(--deep-navy) !important;
  color: var(--text);
  font-family: var(--font-sans);
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ------------------------------------------------------------------
   2. MAIN CONTENT AREAS — Max-width safety & box model
   ------------------------------------------------------------------ */
main,
.site-main,
.page-content,
.entry-content,
.post-content,
.woocommerce-Tabs-panel,
.mercedes-entry-content,
.policy-content,
.page-wrap,
.post-page,
.single-post-page {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden;
}

/* ------------------------------------------------------------------
   3. TEXT — Color, font-size, line-height for readability
   ------------------------------------------------------------------ */
.page-content,
.entry-content,
.post-content,
.woocommerce-Tabs-panel,
.mercedes-entry-content {
  color: var(--text);
  font-size: clamp(16px, 3.8vw, 18px);
  line-height: 1.75;
}

/* Paragraphs and list items */
.page-content p,
.entry-content p,
.post-content p,
.woocommerce-Tabs-panel p,
.page-content li,
.entry-content li,
.post-content li,
.woocommerce-Tabs-panel li {
  color: var(--text);
  font-size: clamp(16px, 3.8vw, 18px);
  line-height: 1.75;
}

/* ------------------------------------------------------------------
   4. HEADINGS — Responsive font sizes, no overflow
   ------------------------------------------------------------------ */

/* H1 — Page title, post title */
.page-content h1,
.entry-content h1,
.post-content h1,
.woocommerce-Tabs-panel h1,
.page-title,
.post-title,
.entry-title {
  font-size: clamp(34px, 8vw, 72px) !important;
  line-height: 1.08 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  color: var(--text-heading) !important;
}

/* H2 */
.page-content h2,
.entry-content h2,
.post-content h2,
.woocommerce-Tabs-panel h2 {
  font-size: clamp(26px, 6vw, 44px) !important;
  line-height: 1.15 !important;
  color: var(--text-heading) !important;
}

/* H3 */
.page-content h3,
.entry-content h3,
.post-content h3,
.woocommerce-Tabs-panel h3 {
  font-size: clamp(20px, 4.5vw, 32px) !important;
  line-height: 1.2 !important;
  color: var(--text-heading) !important;
}

/* H4, H5, H6 */
.page-content h4,
.entry-content h4,
.post-content h4,
.page-content h5,
.entry-content h5,
.post-content h5,
.page-content h6,
.entry-content h6,
.post-content h6 {
  color: var(--text-heading) !important;
}

/* ------------------------------------------------------------------
   5. IMAGES, IFRAMES, VIDEOS — Responsive media
   ------------------------------------------------------------------ */
.page-content img,
.entry-content img,
.post-content img,
.woocommerce-Tabs-panel img,
.woocommerce img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.entry-content iframe,
.post-content iframe,
.woocommerce-Tabs-panel iframe,
.page-content iframe,
.entry-content video,
.post-content video,
.woocommerce-Tabs-panel video,
.page-content video {
  max-width: 100% !important;
  height: auto;
}

/* ------------------------------------------------------------------
   6. TABLES — Horizontal scroll on overflow
   ------------------------------------------------------------------ */
.entry-content table,
.post-content table,
.woocommerce-Tabs-panel table,
.page-content table {
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}

/* ------------------------------------------------------------------
   7. POLICIES PAGE — /policies/
   ------------------------------------------------------------------ */
.policy-page {
  background: var(--deep-navy) !important;
  color: var(--text) !important;
  padding: 80px 0 !important;
}

.policy-container {
  max-width: 980px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

.policy-content {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.policy-content h1 {
  font-size: clamp(32px, 6vw, 56px) !important;
  line-height: 1.15 !important;
  color: var(--text-heading) !important;
  margin-top: 0 !important;
  margin-bottom: 30px !important;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.03em;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.policy-content h2 {
  font-size: clamp(20px, 4vw, 28px) !important;
  line-height: 1.25 !important;
  color: var(--text-heading) !important;
  margin-top: 40px !important;
  margin-bottom: 20px !important;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.policy-content h3 {
  font-size: clamp(18px, 3.5vw, 22px) !important;
  line-height: 1.3 !important;
  color: var(--text-heading) !important;
}

.policy-content p,
.policy-content li {
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: var(--text) !important;
}

.policy-content ul {
  padding-left: 20px !important;
  margin-bottom: 24px !important;
}

.policy-content li {
  margin-bottom: 10px !important;
}

/* Policy notice box */
.policy-notice {
  background: rgba(255, 255, 255, 0.04) !important;
  border-left: 3px solid rgba(255, 255, 255, 0.15) !important;
  padding: 18px 20px !important;
  margin: 24px 0 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--text-secondary) !important;
  box-sizing: border-box !important;
}

/* ------------------------------------------------------------------
   8. GENERAL PAGES — /financing/, /preferential/, /contact.html
      Container padding & text rules
   ------------------------------------------------------------------ */
.finance-page,
.preferential-page,
.contact-page,
.models-page {
  background: var(--deep-navy) !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.container,
.container--narrow,
.site-container {
  box-sizing: border-box !important;
  padding-left: 20px;
  padding-right: 20px;
}

/* ------------------------------------------------------------------
   9. TOC / TABLE OF CONTENTS
   ------------------------------------------------------------------ */
#ez-toc-container,
.lwptoc,
.toc,
.table-of-contents {
  background: var(--slate) !important;
  border: 1px solid var(--graphite) !important;
  color: var(--text) !important;
  padding: 24px !important;
  margin: 30px 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
}

#ez-toc-container *,
.lwptoc *,
.toc *,
.table-of-contents * {
  color: var(--text) !important;
  background: transparent !important;
  font-size: 15px !important;
}

#ez-toc-container a:hover,
.lwptoc a:hover,
.toc a:hover,
.table-of-contents a:hover {
  color: var(--text-heading) !important;
  text-decoration: underline !important;
}

#ez-toc-container .ez-toc-title,
.lwptoc_header,
.toc-title {
  color: var(--text-heading) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 16px !important;
  margin-bottom: 15px !important;
}

/* ------------------------------------------------------------------
   10. MOBILE — Global gutters prevent text clipping on edges
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  .site-main,
  main,
  .page-wrap,
  .post-page,
  .single-post-page,
  .policy-page,
  .finance-page,
  .preferential-page,
  .contact-page,
  .models-page {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  /* Policy container inner padding on mobile */
  .policy-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .policy-content h1 {
    font-size: clamp(28px, 8vw, 38px) !important;
  }

  .policy-content h2 {
    font-size: clamp(18px, 5vw, 24px) !important;
  }
}
/* ------------------------------------------------------------------
   11. WOOCOMMERCE PRODUCT PAGE — Force dark theme text
   ------------------------------------------------------------------ */

/* Description content must always be readable */
.mercedes-wc-description-content,
.mercedes-wc-description-content p,
.mercedes-wc-description-content li,
.mercedes-wc-description-content span {
  color: var(--text) !important;
}

.mercedes-wc-description-content h1,
.mercedes-wc-description-content h2,
.mercedes-wc-description-content h3,
.mercedes-wc-description-content h4,
.mercedes-wc-description-content h5,
.mercedes-wc-description-content h6 {
  color: var(--text-heading) !important;
}

.mercedes-wc-description-content img {
  max-width: 100% !important;
  height: auto !important;
}

/* Related card grid always fills container */
.mercedes-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

/* Single product page background */
body.single-product,
body.single-product main,
.mercedes-wc-product-shell,
.mercedes-wc-product-info-sections {
  background: var(--deep-navy) !important;
}

/* TOC on product pages */
body.single-product #ez-toc-container,
body.single-product .lwptoc,
body.single-product .toc {
  background: var(--slate) !important;
  border: 1px solid var(--graphite) !important;
  color: var(--text-secondary) !important;
}

body.single-product #ez-toc-container *,
body.single-product .lwptoc *,
body.single-product .toc * {
  color: var(--text-secondary) !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  .mercedes-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .mercedes-related-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =============================================================
   MOBILE MENU FIXES
   ============================================================= */
#mobileMenuToggle {
  pointer-events: auto !important;
  z-index: 100030 !important;
  position: relative;
}

#mobileNav {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: all 0.4s ease;
  display: flex !important;
  z-index: 100020 !important;
}

#mobileNav.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto !important;
  transform: translateY(0);
}

body.menu-open {
  overflow: hidden !important;
}

/* Ensure nothing covers the menu toggle */
.hero, .overlay, .site-header::before {
  z-index: 1 !important;
}
.lang-dropdown, .language-dropdown {
  z-index: 100020 !important;
}
.site-header {
  z-index: 100010 !important;
}

/* Fix sticky header when WordPress Admin Bar is present */
body.admin-bar .site-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

/* =============================================================
   MERCEDES-BENZ RESPONSIVE SYSTEM
   ============================================================= */
:root {
  --mb-bg: var(--deep-navy);
  --mb-surface: var(--charcoal);
  --mb-border: var(--graphite);
  --mb-text: var(--off-white);
  --mb-muted: var(--silver);
  --mb-white: var(--off-white);
  --mb-gold: var(--star-gold);
  --mb-container: 1200px;
  --mb-container-wide: 1440px;
}

html, body {
  overflow-x: hidden;
  background: var(--deep-navy);
}

.mb-container,
.site-container,
.page-container,
.post-container,
.product-container {
  max-width: var(--mb-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ------------------------------------------------------------------
   SINGLE PRODUCT DETAILED STYLING (/san-pham/*)
   ------------------------------------------------------------------ */
.single-product .product-detail-section,
.single-product .woocommerce-Tabs-panel,
.single-product .entry-content {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text) !important;
  opacity: 1 !important;
}

/* Product Detail Heading */
.single-product .woocommerce-Tabs-panel h2:first-of-type,
.single-product .product-detail-section h2:first-of-type {
  color: var(--text-heading) !important;
  letter-spacing: .04em;
}

.single-product .entry-content p,
.single-product .entry-content li {
  color: var(--text) !important;
  opacity: 1 !important;
  font-size: 17px;
  line-height: 1.85;
}

.single-product .entry-content h2,
.single-product .entry-content h3 {
  color: var(--text-heading) !important;
  opacity: 1 !important;
  letter-spacing: .04em;
}

/* Product TOC Box */
.single-product .entry-content .toc,
.single-product .entry-content .ez-toc-container,
.single-product .entry-content #ez-toc-container {
  background: var(--slate) !important;
  color: var(--text-secondary) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 0;
}

.single-product .entry-content .toc a,
.single-product .entry-content .ez-toc-container a,
.single-product .entry-content #ez-toc-container a {
  color: var(--star-gold) !important;
}

/* Product Tables */
.single-product .entry-content table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.single-product .entry-content table th,
.single-product .entry-content table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: var(--text);
}

/* Product Content Images */
.single-product .entry-content img {
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 4px;
}

/* Forms inside content */
.single-product .entry-content input,
.single-product .entry-content select,
.single-product .entry-content textarea,
.single-product .entry-content button {
  background-color: var(--mb-surface);
  color: var(--mb-text);
  border: 1px solid var(--mb-border);
}

/* Floating contact safe area on Desktop */
.floating-contact, .zalo-chat-widget, .phone-ring {
  z-index: 9999;
}

/* ------------------------------------------------------------------
   MOBILE RESPONSIVE
   ------------------------------------------------------------------ */
@media(max-width:768px){
  .mb-container,
  .site-container,
  .page-container,
  .post-container,
  .product-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1, .page-title, .product_title {
    font-size: clamp(28px,8vw,32px) !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: clamp(24px,6vw,28px) !important;
    line-height: 1.2 !important;
  }

  p, li {
    font-size: 15px;
    line-height: 1.75;
  }

  /* Mobile Product Detailed Styling */
  .single-product .product-detail-section,
  .single-product .woocommerce-Tabs-panel,
  .single-product .entry-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .single-product .entry-content p,
  .single-product .entry-content li {
    font-size: 16px;
    line-height: 1.8;
  }

  .single-product .entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .single-product .entry-content input,
  .single-product .entry-content select,
  .single-product .entry-content button {
    width: 100%;
  }

  /* Floating contact safe area on Mobile */
  .floating-contact, .zalo-chat-widget, .phone-ring {
    transform: scale(0.85);
    transform-origin: bottom right;
    bottom: 10px !important;
  }
}

/* =============================================================
   HERO TITLE OVERRIDES
   ============================================================= */
.hero__content h1,
.hero-title,
.home-hero-title,
.mercedes-hero-title,
.home-hero .hero-title,
.mercedes-home-hero .hero-title,
.front-page-hero h1 {
  font-family: var(--font-heading) !important;
  letter-spacing: 0.04em !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
}

@media (max-width: 768px) {
  .hero__content h1,
  .hero-title,
  .home-hero-title,
  .mercedes-hero-title,
  .home-hero .hero-title,
  .mercedes-home-hero .hero-title,
  .front-page-hero h1 {
    letter-spacing: 0.025em !important;
    line-height: 1.04 !important;
  }
}



/* =============================================================
   CONTACT PAGE & FINANCING RESPONSIVE
   ============================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media(min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 350px 1fr;
    gap: 40px;
  }
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-form-card {
  background: var(--slate) !important;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1) !important;
  padding: 30px;
  border-radius: 8px !important;
}

.contact-form-card h3, 
.contact-form-card label {
  color: var(--text-heading) !important;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  background: var(--charcoal) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.contact-form-card button {
  min-height: 46px;
}

.showroom-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Financing Page */
.finance-hero {
  max-width: 1200px;
  margin: 0 auto;
}

.finance-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media(min-width: 768px) {
  .finance-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.finance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media(min-width: 1024px) {
  .finance-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-box, .info-box {
  background: var(--slate);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 24px;
  border-radius: 8px;
}

.calc-box input[type="range"],
.calc-box select {
  width: 100% !important;
  box-sizing: border-box;
}

.calc-input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media(min-width: 768px) {
  .calc-input-row {
    flex-direction: row;
    align-items: center;
  }
  .calc-input-row input[type="range"] {
    flex: 1;
  }
  .calc-val-display {
    min-width: 60px;
    text-align: right;
  }
}

/* Global specific overrides per instruction */
.site-main,
main,
.page-content,
.contact-page,
.financing-page,
.test-drive-page {
  box-sizing: border-box;
  max-width: 100%;
}

@media(max-width: 768px) {
  .site-main,
  main,
  .page-content,
  .contact-page,
  .financing-page,
  .test-drive-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1,
  .page-title {
    font-size: clamp(28px, 8vw, 32px) !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: clamp(24px, 6vw, 28px) !important;
  }

  p,
  li {
    font-size: 15px;
    line-height: 1.75;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
    box-sizing: border-box;
  }
}


/* =============================================================
   SINGLE POST RESPONSIVE LAYOUT
   ============================================================= */
.single-post-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(280px, 3fr);
  gap: 48px;
  padding: 72px 32px;
}

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

.single-post-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-self: start;
}

.sidebar-card {
  background: var(--slate);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 30px;
}

.sidebar-card h3 {
  color: var(--text-heading);
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.sidebar-hotline a {
  font-size: 24px;
  font-weight: 600;
  color: var(--mb-gold);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}
.sidebar-links li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sidebar-links a {
  color: var(--text);
  font-size: 15px;
  transition: 0.3s;
}
.sidebar-links a:hover {
  color: var(--mb-gold);
}

.btn-sidebar {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--mb-gold);
  color: var(--deep-navy);
  font-weight: 600;
  padding: 12px;
  text-transform: uppercase;
  font-size: 14px;
}

/* Post Typography */
.single-post .post-title,
.single-post h1 {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.3;
  color: var(--text-heading) !important;
  opacity: 1 !important;
}

.single-post .entry-content p,
.single-post .entry-content li {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text);
  opacity: 1;
  margin-bottom: 24px;
}

.single-post .entry-content h2 {
  font-size: clamp(26px, 4vw, 30px);
  line-height: 1.35;
  color: var(--text-heading);
  margin-top: 48px;
  margin-bottom: 20px;
}

.single-post .entry-content h3,
.single-post .entry-content h4 {
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.35;
  color: var(--text-heading);
  margin-top: 36px;
  margin-bottom: 18px;
}

.single-post .entry-content a {
  color: var(--star-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post .entry-content a:hover {
  color: var(--platinum);
  text-decoration: underline;
}

/* Images */
.single-post .entry-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 28px auto 8px auto;
}

.single-post .post-featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Gallery */
.single-post .gallery,
.single-post .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}

/* Forms (Contact Form 7 or old forms) */
.single-post .wpcf7, 
.single-post form.wpcf7-form,
.single-post .entry-content form {
  background: var(--slate);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.14);
}

.single-post .wpcf7 input, 
.single-post .wpcf7 textarea, 
.single-post .wpcf7 select,
.single-post .entry-content form input,
.single-post .entry-content form textarea {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  padding: 12px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.single-post .wpcf7 input[type="submit"],
.single-post .entry-content form input[type="submit"],
.single-post .entry-content form button {
  background: var(--mb-gold);
  color: var(--deep-navy);
  font-weight: 600;
  cursor: pointer;
}

@media(max-width: 768px) {
  .single-post-layout {
    display: block;
    padding: 48px 16px;
  }

  .single-post-main {
    max-width: 100%;
  }

  .single-post-sidebar {
    position: static;
    margin-top: 48px;
  }

  .single-post .entry-content img {
    margin: 24px auto;
  }

  .single-post .entry-content p,
  .single-post .entry-content li {
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 18px;
  }

  .single-post .gallery,
  .single-post .wp-block-gallery {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin: 24px 0;
  }

  .single-post .gallery figure,
  .single-post .wp-block-gallery figure {
    flex: 0 0 86%;
    scroll-snap-align: start;
    margin: 0;
  }

  .single-post .gallery img,
  .single-post .wp-block-gallery img {
    aspect-ratio: 4/3;
    object-fit: cover;
    margin: 0;
  }

  .news-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =============================================================
   WOOCOMMERCE ARCHIVE & PRODUCTS GRID
   ============================================================= */
.mercedes-wc-archive-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
}
.woocommerce-products-header {
  text-align: center;
  margin-bottom: 40px;
}
.woocommerce-products-header__title {
  color: var(--text-heading) !important;
  font-size: clamp(28px, 5vw, 42px) !important;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 16px;
}
.term-description {
  color: var(--mb-muted) !important;
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
}

.single-post .products,
.single-post ul.products,
.tax-product_cat ul.products,
.woocommerce ul.products,
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

/* Ensure 4 columns if there's enough space on wide screens, but 3 is default per instruction */
@media(min-width: 1200px) {
  .woocommerce.columns-4 ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.single-post ul.products li.product,
.tax-product_cat ul.products li.product,
.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background: var(--slate) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  padding: 22px !important;
  box-sizing: border-box !important;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 200px !important;
  object-fit: contain !important;
  margin-bottom: 20px !important;
  background: transparent !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 18px !important;
  color: var(--text-heading) !important;
  margin-bottom: 10px !important;
  text-transform: uppercase !important;
}

.woocommerce ul.products li.product .price {
  color: var(--star-gold) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  margin-bottom: 20px !important;
}

.woocommerce ul.products li.product .mercedes-wc-loop-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.woocommerce ul.products li.product .loop-btn {
  flex: 1;
  padding: 10px;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--star-gold);
  color: var(--star-gold);
  text-decoration: none;
  transition: 0.3s;
}

.woocommerce ul.products li.product .loop-btn--quote {
  background: var(--star-gold);
  color: var(--deep-navy);
}

.woocommerce ul.products li.product .button,
.single-post ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: none !important;
}

@media(max-width: 900px){
  .single-post .products,
  .single-post ul.products,
  .tax-product_cat ul.products,
  .woocommerce ul.products,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media(max-width: 640px){
  .single-post .products,
  .single-post ul.products,
  .tax-product_cat ul.products,
  .woocommerce ul.products,
  .products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =============================================================
   TABLE OF CONTENTS (TOC) — PREMIUM DARK MERCEDES STYLE
   ============================================================= */

/* --- Box tổng thể TOC --- */
#ez-toc-container,
.ez-toc-container,
.toc,
.toc-container,
.table-of-contents,
.rank-math-toc,
.wp-block-rank-math-toc-block {
  background: linear-gradient(145deg, var(--slate) 0%, var(--charcoal) 100%) !important;
  border: 1px solid rgba(196,169,98,.35) !important;
  border-radius: 20px !important;
  padding: 26px 28px !important;
  margin: 36px 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.35), inset 0 0 0 1px rgba(196,169,98,.08) !important;
  clear: both !important;
  color: var(--text) !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  position: relative !important;
}

/* Đường viền vàng trên cùng (accent line) */
#ez-toc-container::before,
.ez-toc-container::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 28px !important;
  right: 28px !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--star-gold), rgba(196,169,98,0)) !important;
  border-radius: 2px !important;
}

/* --- Tiêu đề Mục Lục --- */
#ez-toc-container .ez-toc-title-container,
.ez-toc-container .ez-toc-title-container {
  background: transparent !important;
  border: none !important;
  margin-bottom: 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#ez-toc-container span.ez-toc-title,
.ez-toc-container span.ez-toc-title,
.rank-math-toc h2,
.rank-math-toc h3 {
  color: var(--text-heading) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
}

/* Link [Ẩn]/[Hiện] */
.ez-toc-title-toggle a,
#ez-toc-container .ez-toc-toggle a {
  color: var(--star-gold) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

/* Toggle icon (chevron) */
.ez-toc-icon-toggle,
.ez-toc-icon-toggle svg,
.ez-toc-icon-toggle img {
  filter: invert(1) brightness(.9) sepia(1) hue-rotate(5deg) saturate(2) !important;
  opacity: 1 !important;
}

.ez-toc-title-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* --- List Mục Lục --- */
#ez-toc-container nav ul,
.ez-toc-container nav ul,
#ez-toc-container .ez-toc-list,
.ez-toc-container .ez-toc-list,
.rank-math-toc nav ul {
  margin: 0 !important;
  padding: 0 0 0 4px !important;
  list-style: none !important;
}

#ez-toc-container nav ul ul,
.ez-toc-container nav ul ul {
  padding-left: 18px !important;
  margin-top: 4px !important;
}

#ez-toc-container nav ul li,
.ez-toc-container nav ul li,
#ez-toc-container .ez-toc-list li,
.ez-toc-container .ez-toc-list li,
.rank-math-toc nav ul li {
  color: #e8e8e8 !important;
  opacity: 1 !important;
  background: transparent !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  padding: 3px 0 !important;
  font-size: 15.5px !important;
  list-style: none !important;
  border-left: 2px solid rgba(196,169,98,.18) !important;
  padding-left: 12px !important;
}

/* Mục con */
#ez-toc-container nav ul ul li,
.ez-toc-container nav ul ul li {
  font-size: 14.5px !important;
  border-left: 2px solid rgba(196,169,98,.1) !important;
  padding-left: 10px !important;
  color: var(--text-secondary) !important;
}

/* --- Links --- */
#ez-toc-container a,
#ez-toc-container .ez-toc-link,
.ez-toc-container a,
.ez-toc-container .ez-toc-link,
.toc a,
.toc-container a,
.table-of-contents a,
.rank-math-toc a,
.wp-block-rank-math-toc-block a {
  color: var(--text) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  background: transparent !important;
  opacity: 1 !important;
  transition: color .2s ease, padding-left .2s ease !important;
  display: inline-block !important;
}

#ez-toc-container a:hover,
#ez-toc-container .ez-toc-link:hover,
.ez-toc-container a:hover,
.ez-toc-container .ez-toc-link:hover,
.toc a:hover,
.table-of-contents a:hover,
.rank-math-toc a:hover {
  color: var(--star-gold) !important;
  padding-left: 4px !important;
}

/* Wildcard reset — chống plugin TOC ghi đè màu inline */
#ez-toc-container *,
.ez-toc-container *,
.toc *,
.table-of-contents *,
.rank-math-toc *,
.wp-block-rank-math-toc-block * {
  opacity: 1 !important;
  text-shadow: none !important;
  background-color: transparent !important;
}

/* --- Mobile TOC --- */
@media (max-width: 768px) {
  #ez-toc-container,
  .ez-toc-container,
  .toc,
  .toc-container,
  .table-of-contents,
  .rank-math-toc {
    padding: 18px !important;
    border-radius: 16px !important;
    margin: 24px 0 !important;
    font-size: 15px !important;
  }

  #ez-toc-container nav ul li,
  .ez-toc-container nav ul li {
    font-size: 15px !important;
    padding: 4px 0 4px 12px !important;
  }

  #ez-toc-container nav ul ul li,
  .ez-toc-container nav ul ul li {
    font-size: 14px !important;
  }

  #ez-toc-container span.ez-toc-title,
  .ez-toc-container span.ez-toc-title {
    font-size: 14px !important;
  }
}

/* =============================================================
   FLOATING CONTACT & MOBILE OVERLAP FIX
   ============================================================= */
@media (max-width: 768px) {
  /* Scale down floating buttons and keep them out of the way */
  .floating-contact,
  #button-contact-vr,
  .hotline-phone-ring-wrap,
  .zalo-chat-widget,
  .zalo-container,
  .zalo-button {
    transform: scale(0.8) !important;
    transform-origin: bottom right !important;
    z-index: 99 !important;
  }
  
  /* Create breathing room at the bottom of pages on mobile */
  body, .site-footer, main {
    padding-bottom: 90px !important;
  }
}


/* =============================================================
   FINAL FIXES FOR IMAGES, OPACITY AND ALIGNMENT
   ============================================================= */

/* -------------------------------------------------------
   READABILITY — BÀI VIẾT TIN TỨC (single-post)
   Target: /tin-tuc/*, /khong-phan-loai/*, single posts
   ------------------------------------------------------- */

/* Container tổng: không được phép mờ */
.single-post .entry-content,
.single-post .post-content,
.post-content,
.article-content {
  color: var(--text) !important;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Tất cả thẻ nội dung trong bài viết */
.single-post .entry-content p,
.single-post .entry-content li,
.single-post .entry-content span,
.single-post .entry-content div,
.single-post .entry-content td,
.single-post .post-content p,
.single-post .post-content li,
.post-content p,
.post-content li,
.article-content p,
.article-content li {
  color: var(--text) !important;
  opacity: 1 !important;
  font-size: 17.5px !important;
  line-height: 1.82 !important;
  font-weight: 400 !important;
}

/* strong/em/b — rõ, không mờ */
.single-post .entry-content strong,
.single-post .entry-content b,
.single-post .post-content strong {
  color: var(--text-heading) !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}

.single-post .entry-content em,
.single-post .entry-content i {
  color: var(--text) !important;
  opacity: 1 !important;
}

/* Headings — trắng sáng, không mờ */
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6,
.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.post-content h1,
.post-content h2,
.post-content h3 {
  color: var(--text-heading) !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* Links — vàng Mercedes, không xanh */
.single-post .entry-content a,
.single-post .post-content a,
.post-content a,
.article-content a {
  color: var(--star-gold) !important;
  opacity: 1 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.single-post .entry-content a:hover,
.single-post .post-content a:hover {
  color: var(--platinum) !important;
}

/* blockquote */
.single-post .entry-content blockquote,
.single-post .post-content blockquote {
  border-left: 3px solid var(--star-gold) !important;
  padding: 16px 20px !important;
  margin: 28px 0 !important;
  background: rgba(196,169,98,.06) !important;
  color: var(--text) !important;
  opacity: 1 !important;
  font-style: italic !important;
}

/* Mobile */
@media (max-width: 768px) {
  .single-post .entry-content p,
  .single-post .entry-content li,
  .single-post .entry-content span,
  .single-post .post-content p,
  .single-post .post-content li,
  .post-content p,
  .post-content li {
    font-size: 16.5px !important;
    line-height: 1.78 !important;
  }
}

/* -------------------------------------------------------
   Product content brightness (không đổi nhiều, chỉ căn bằng)
   ------------------------------------------------------- */
.single-product .entry-content,
.single-product .product-detail-section,
.single-product .woocommerce-Tabs-panel,
.mercedes-wc-description-content {
  color: var(--text) !important;
  opacity: 1 !important;
}

.single-product .entry-content p,
.single-product .entry-content li,
.mercedes-wc-description-content p,
.mercedes-wc-description-content li {
  color: var(--text) !important;
  opacity: 1 !important;
  line-height: 1.75 !important;
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-product .entry-content h1,
.single-product .entry-content h2,
.single-product .entry-content h3,
.mercedes-wc-description-content h1,
.mercedes-wc-description-content h2,
.mercedes-wc-description-content h3 {
  color: var(--text-heading) !important;
  opacity: 1 !important;
}

/* 3. Layout alignment for Product Details */
.mercedes-wc-description-content {
  max-width: 980px !important;
  margin: 0 auto !important;
}
.mercedes-wc-description-content > * {
  max-width: 100%;
}

/* 4. Fix Trash Icons being blown up */
.entry-content img[src*="emoji"],
.entry-content img.emoji,
.entry-content img.wp-smiley,
.entry-content img[class*="icon"],
.entry-content img[src*="icon"],
.entry-content img[src*="spinner"],
.entry-content img[src*="arrow"],
.mercedes-wc-description-content img[src*="emoji"],
.mercedes-wc-description-content img.emoji,
.mercedes-wc-description-content img.wp-smiley,
.mercedes-wc-description-content img[class*="icon"],
.mercedes-wc-description-content img[src*="icon"],
.mercedes-wc-description-content img[src*="spinner"],
.mercedes-wc-description-content img[src*="arrow"] {
  width: auto !important;
  max-width: 32px !important;
  height: auto !important;
  display: inline-block !important;
  margin: 0 .25em !important;
  vertical-align: middle !important;
}

/* 5. Content Images Format */
.entry-content img:not(.emoji):not(.wp-smiley):not([class*="icon"]),
.mercedes-wc-description-content img:not(.emoji):not(.wp-smiley):not([class*="icon"]) {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 28px auto !important;
}

/* 6. Tables */
.entry-content table,
.mercedes-wc-description-content table {
  width: 100% !important;
  border-collapse: collapse;
}

.entry-content th, .entry-content td,
.mercedes-wc-description-content th, .mercedes-wc-description-content td {
  padding: 12px 14px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: var(--text) !important;
}

@media(max-width: 768px) {
  .entry-content table,
  .mercedes-wc-description-content table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }
}


/* =============================================================
   MERCEDES VNS - CONTENT FIXES (POSTS & PRODUCTS)
   ============================================================= */

/* 1. FONT/TEXT BÀI VIẾT & SẢN PHẨM */
.single-post .entry-content,
.single-post .post-content,
.single-product .woocommerce-Tabs-panel,
.single-product .entry-content,
.single-product .product-detail-section,
.single-product .product-content {
  color: var(--text) !important;
  opacity: 1 !important;
}

.single-post .entry-content p,
.single-post .entry-content li,
.single-product .woocommerce-Tabs-panel p,
.single-product .entry-content p,
.single-product .woocommerce-Tabs-panel li,
.single-product .entry-content li {
  color: var(--text) !important;
  opacity: 1 !important;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.single-product .woocommerce-Tabs-panel p,
.single-product .entry-content p,
.single-product .woocommerce-Tabs-panel li,
.single-product .entry-content li {
  margin-bottom: 22px;
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-product .woocommerce-Tabs-panel h1,
.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3,
.single-product .entry-content h1,
.single-product .entry-content h2,
.single-product .entry-content h3 {
  color: var(--text-heading) !important;
  opacity: 1 !important;
  line-height: 1.3;
}

.single-post .entry-content a,
.single-post .post-content a,
.single-product .entry-content a,
.single-product .woocommerce-Tabs-panel a {
  color: var(--star-gold);
}

@media(max-width:768px){
  .single-post .entry-content p,
  .single-post .entry-content li,
  .single-product .woocommerce-Tabs-panel p,
  .single-product .entry-content p,
  .single-product .woocommerce-Tabs-panel li,
  .single-product .entry-content li {
    font-size: 15.5px;
    line-height: 1.75;
  }
  .single-post .entry-content p,
  .single-post .entry-content li {
    margin-bottom: 18px;
  }
}

/* 2. MỤC LỤC TOC */
#ez-toc-container,
.ez-toc-container,
.toc,
.table-of-contents,
.rank-math-toc,
.wp-block-rank-math-toc-block {
  background: var(--slate) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: var(--text) !important;
  opacity: 1 !important;
}

#ez-toc-container *,
.ez-toc-container *,
.toc *,
.table-of-contents *,
.rank-math-toc *,
.wp-block-rank-math-toc-block * {
  color: var(--text) !important;
  opacity: 1 !important;
}

#ez-toc-container a,
.ez-toc-container a,
.toc a,
.table-of-contents a,
.rank-math-toc a,
.wp-block-rank-math-toc-block a {
  color: var(--star-gold) !important;
}

/* 3. ẢNH TRONG BÀI VÀ SẢN PHẨM */
.single-post .entry-content img,
.single-product .entry-content img,
.single-product .woocommerce-Tabs-panel img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  /* Giảm margin dưới ảnh — caption sẽ bù phần còn lại */
  margin-top: 28px !important;
  margin-bottom: 8px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ảnh trong <figure> — margin-bottom = 0, để figcaption nằm sát */
.single-product .entry-content figure img,
.single-product .woocommerce-Tabs-panel figure img,
.single-post .entry-content figure img {
  margin-bottom: 0 !important;
}

/* -------------------------------------------------------
   CAPTION / CHÚ THÍCH ẢNH — Báo điện tử style
   ------------------------------------------------------- */

/* figcaption chuẩn HTML5 */
.single-product .entry-content figcaption,
.single-product .woocommerce-Tabs-panel figcaption,
.single-post .entry-content figcaption,
.mercedes-wc-description-content figcaption {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  font-style: italic !important;
  line-height: 1.45 !important;
  margin-top: 8px !important;
  margin-bottom: 26px !important;
  text-align: center !important;
  opacity: 1 !important;
}

/* WordPress .wp-caption wrapper */
.single-product .entry-content .wp-caption,
.single-product .woocommerce-Tabs-panel .wp-caption,
.single-post .entry-content .wp-caption {
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 26px !important;
}

.single-product .entry-content .wp-caption img,
.single-post .entry-content .wp-caption img {
  margin-bottom: 8px !important;
}

.single-product .entry-content .wp-caption-text,
.single-product .woocommerce-Tabs-panel .wp-caption-text,
.single-post .entry-content .wp-caption-text {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  font-style: italic !important;
  line-height: 1.45 !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  text-align: center !important;
  opacity: 1 !important;
}

/* -------------------------------------------------------
   TRƯỜNG HỢP ĐẶC BIỆT: <p><img></p><p>chú thích</p>
   CSS selector: p:has(img) + p — dành cho WordPress
   đặt caption là đoạn văn bình thường ngay dưới ảnh
   ------------------------------------------------------- */

/* Reset: ảnh nằm trong <p> — giảm margin-bottom của p đó */
.single-product .entry-content p:has(> img),
.single-post .entry-content p:has(> img) {
  margin-bottom: 8px !important;
  line-height: 1 !important;
}

/* Đoạn p ngay sau p chứa ảnh — style như caption */
.single-product .entry-content p:has(> img) + p,
.single-post .entry-content p:has(> img) + p {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  font-style: italic !important;
  line-height: 1.45 !important;
  margin-top: 0 !important;
  margin-bottom: 26px !important;
  text-align: center !important;
  opacity: 1 !important;
}

/* Chặn: nếu đoạn p tiếp theo có nhiều chữ (>80 chars) thì không phải caption
   — dùng :not(:empty) để tránh đụng các đoạn văn bình thường dài */
/* Lưu ý: CSS không đo được độ dài chuỗi, nên chỉ dùng selector ở trên
   với assumption rằng caption thường ngắn. */

/* -------------------------------------------------------
   MOBILE — ảnh & caption
   ------------------------------------------------------- */
@media (max-width: 768px) {
  .single-product .entry-content figcaption,
  .single-product .woocommerce-Tabs-panel figcaption,
  .single-post .entry-content figcaption,
  .single-product .entry-content .wp-caption-text,
  .single-post .entry-content .wp-caption-text {
    font-size: 13.5px !important;
    margin-bottom: 22px !important;
  }

  .single-product .entry-content p:has(> img) + p,
  .single-post .entry-content p:has(> img) + p {
    font-size: 13.5px !important;
    margin-bottom: 22px !important;
  }

  .single-product .entry-content img,
  .single-product .woocommerce-Tabs-panel img,
  .single-post .entry-content img {
    margin-top: 20px !important;
  }
}

/* 4. ICON RÁC */
.entry-content img.emoji,
.entry-content img.wp-smiley,
.entry-content img[class*="icon"],
.entry-content img[src*="icon"],
.entry-content img[src*="spinner"],
.entry-content img[src*="arrow"] {
  width: auto !important;
  max-width: 32px !important;
  height: auto !important;
  display: inline-block !important;
  margin: 0 .25em !important;
  vertical-align: middle !important;
}


/* 5. BẢNG THÔNG SỐ & GIÁ LĂN BÁNH — SINGLE PRODUCT */

/* Wrapper bọc bảng — cho phép scroll ngang mobile, không phá layout */
.single-product .entry-content table,
.single-product .woocommerce-Tabs-panel table,
.mercedes-wc-description-content table,
.mercedes-wc-specs-table-wrapper table {
  width: 100% !important;
  max-width: 100% !important;
  color: var(--text-heading);
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.6;
}

/* Wrapper tự động cho table bên trong product — dùng pseudo-element bọc */
.mercedes-wc-description-content,
.mercedes-wc-specs-table-wrapper {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.single-product .entry-content th,
.single-product .woocommerce-Tabs-panel th,
.mercedes-wc-description-content th,
.mercedes-wc-specs-table-wrapper th {
  background: var(--charcoal) !important;
  color: var(--text-heading) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  padding: 14px 16px !important;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.single-product .entry-content td,
.single-product .woocommerce-Tabs-panel td,
.mercedes-wc-description-content td,
.mercedes-wc-specs-table-wrapper td {
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  padding: 14px 16px !important;
  vertical-align: middle;
}

/* Stripe rows nhẹ */
.single-product .entry-content tr:nth-child(even) td,
.mercedes-wc-description-content tr:nth-child(even) td,
.mercedes-wc-specs-table-wrapper tr:nth-child(even) td {
  background: rgba(255,255,255,.03) !important;
}

/* Hover row highlight */
.single-product .entry-content tr:hover td,
.mercedes-wc-description-content tr:hover td {
  background: rgba(196,169,98,.06) !important;
}

/* Cột giá: không bị cắt */
.single-product .entry-content td:last-child,
.mercedes-wc-description-content td:last-child {
  white-space: nowrap;
}

/* Mobile: scroll ngang bảng */
@media (max-width: 768px) {
  .single-product .entry-content table,
  .single-product .woocommerce-Tabs-panel table,
  .mercedes-wc-description-content table,
  .mercedes-wc-specs-table-wrapper table {
    min-width: 720px !important;
    font-size: 14.5px;
  }

  /* Scroll wrapper cho bảng trong .entry-content nếu không có wrapper PHP */
  .single-product .entry-content .tablepress-wrap,
  .single-product .entry-content figure.wp-block-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    display: block !important;
    /* Gradient gợi ý còn nội dung bên phải */
    background:
      linear-gradient(to right, transparent 80%, rgba(196,169,98,.08) 100%);
  }

  .single-product .entry-content th,
  .single-product .entry-content td,
  .mercedes-wc-description-content th,
  .mercedes-wc-description-content td {
    padding: 11px 13px !important;
  }
}

/* ============================================================
   6. FORM TƯ VẤN SẢN PHẨM — SINGLE PRODUCT
   ============================================================ */

/* Card wrapper cho form */
.single-product .entry-content form,
.single-product .woocommerce-Tabs-panel form,
.mercedes-wc-description-content form,
.mercedes-wc-product-info-sections form {
  background: var(--charcoal) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 18px !important;
  padding: 32px !important;
  max-width: 860px !important;
  margin: 32px 0 !important;
  box-sizing: border-box !important;
}

/* Labels */
.single-product .entry-content form label,
.single-product .woocommerce-Tabs-panel form label,
.mercedes-wc-description-content form label,
.mercedes-wc-product-info-sections form label {
  display: block !important;
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
  opacity: 1 !important;
}

/* Inputs, selects, textareas */
.single-product input[type="text"],
.single-product input[type="tel"],
.single-product input[type="email"],
.single-product input[type="number"],
.single-product input[type="url"],
.single-product input[type="date"],
.single-product select,
.single-product textarea {
  width: 100% !important;
  min-height: 48px !important;
  background: var(--slate) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
  color: var(--text-heading) !important;
  font-size: 15.5px !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  outline: none !important;
  opacity: 1 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: border-color .2s ease !important;
}

.single-product input[type="text"]:focus,
.single-product input[type="tel"]:focus,
.single-product input[type="email"]:focus,
.single-product select:focus,
.single-product textarea:focus {
  border-color: var(--star-gold) !important;
  background: var(--slate) !important;
}

/* Placeholder */
.single-product input::placeholder,
.single-product textarea::placeholder {
  color: rgba(255,255,255,.35) !important;
  opacity: 1 !important;
}

/* Textarea */
.single-product textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

/* Select dropdown arrow */
.single-product select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23d6bd7f' d='M5 7l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 20px !important;
  padding-right: 42px !important;
}

/* Field spacing */
.single-product .entry-content form .form-group,
.single-product .entry-content form p,
.mercedes-wc-description-content form .form-group,
.mercedes-wc-description-content form p {
  margin-bottom: 14px !important;
}

/* Submit / Button */
.single-product button[type="submit"],
.single-product input[type="submit"],
.single-product .entry-content form button,
.mercedes-wc-description-content form button,
.mercedes-wc-product-info-sections form button[type="submit"] {
  background: var(--star-gold) !important;
  color: var(--deep-navy) !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .8px !important;
  text-transform: uppercase !important;
  padding: 14px 28px !important;
  min-height: 48px !important;
  cursor: pointer !important;
  transition: background .25s ease, transform .15s ease !important;
  opacity: 1 !important;
}

.single-product button[type="submit"]:hover,
.single-product input[type="submit"]:hover,
.single-product .entry-content form button:hover {
  background: var(--star-gold) !important;
  transform: translateY(-1px) !important;
}

/* --- MOBILE form overrides --- */
@media (max-width: 768px) {
  .single-product .entry-content form,
  .single-product .woocommerce-Tabs-panel form,
  .mercedes-wc-description-content form,
  .mercedes-wc-product-info-sections form {
    padding: 18px !important;
    border-radius: 16px !important;
    max-width: 100% !important;
    margin: 24px 0 !important;
  }

  /* iPhone font-size >= 16px để không bị auto-zoom */
  .single-product input[type="text"],
  .single-product input[type="tel"],
  .single-product input[type="email"],
  .single-product select,
  .single-product textarea {
    font-size: 16px !important;
  }

  /* Button full width trên mobile */
  .single-product button[type="submit"],
  .single-product input[type="submit"],
  .single-product .entry-content form button,
  .mercedes-wc-description-content form button {
    width: 100% !important;
    height: 52px !important;
    padding: 14px 20px !important;
    /* Không bị che bởi floating Zalo/phone */
    margin-bottom: 80px !important;
  }

  /* Spacing giữa các field */
  .single-product .entry-content form .form-group,
  .single-product .entry-content form p,
  .mercedes-wc-description-content form .form-group,
  .mercedes-wc-description-content form p {
    margin-bottom: 12px !important;
  }
}

/* =============================================================
   END OF FINAL OVERRIDES
   ============================================================= */

/* =============================================================
   POPUP QUOTE FIX (TẮT AUTO POPUP, STYLE LẠI)
   ============================================================= */

/* 1. Tắt tự động hiển thị của mọi popup */
.spu-box,
.spu-bg,
.pum,
.pum-overlay,
.wppopups-whole,
.spu-container {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Khi có class show-quote-popup trên body, mới hiển thị popup */
body.show-quote-popup .spu-box,
body.show-quote-popup .pum,
body.show-quote-popup .wppopups-whole {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  
  /* Căn giữa */
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 99999 !important;
  
  /* Style */
  width: calc(100% - 24px) !important;
  max-width: 520px !important;
  background: var(--slate) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.8) !important;
  border: 1px solid rgba(196,169,98,.35) !important;
  padding: 32px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

@media (min-width: 769px) {
  body.show-quote-popup .spu-box,
  body.show-quote-popup .pum {
    max-width: 680px !important;
    padding: 40px !important;
  }
}

/* Nền mờ */
body.show-quote-popup .spu-bg,
body.show-quote-popup .pum-overlay {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,.72) !important;
  backdrop-filter: blur(6px) !important;
  z-index: 99980 !important;
  cursor: pointer !important;
}

body.admin-bar.show-quote-popup .spu-bg,
body.admin-bar.show-quote-popup .pum-overlay {
  top: 0 !important;
  height: 100vh !important;
}

@media screen and (max-width: 782px) {
  body.show-quote-popup .spu-bg,
  body.show-quote-popup .pum-overlay {
    top: 0 !important;
    height: 100vh !important;
  }

  body.admin-bar.show-quote-popup .spu-bg,
  body.admin-bar.show-quote-popup .pum-overlay {
    top: 0 !important;
    height: 100vh !important;
  }
}

/* Form bên trong */
body.show-quote-popup .spu-box form,
body.show-quote-popup .pum form {
  margin: 0 !important;
}

body.show-quote-popup .spu-box input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.show-quote-popup .spu-box select,
body.show-quote-popup .spu-box textarea,
body.show-quote-popup .pum input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.show-quote-popup .pum select,
body.show-quote-popup .pum textarea {
  height: 50px !important;
  min-height: 50px !important;
  width: 100% !important;
  padding: 0 16px !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  background: var(--slate) !important;
  color: var(--text) !important;
  font-size: 16px !important;
  border-radius: 8px !important;
  margin-bottom: 16px !important;
  box-sizing: border-box !important;
}

body.show-quote-popup .spu-box input::placeholder,
body.show-quote-popup .spu-box textarea::placeholder,
body.show-quote-popup .pum input::placeholder,
body.show-quote-popup .pum textarea::placeholder {
  color: rgba(255,255,255,.6) !important;
}

/* Nút Submit */
body.show-quote-popup .spu-box input[type="submit"],
body.show-quote-popup .spu-box button[type="submit"],
body.show-quote-popup .pum input[type="submit"],
body.show-quote-popup .pum button[type="submit"] {
  height: 52px !important;
  width: 100% !important;
  background: var(--off-white) !important;
  color: var(--deep-navy) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  transition: all 0.3s ease !important;
}

body.show-quote-popup .spu-box input[type="submit"]:hover,
body.show-quote-popup .spu-box button[type="submit"]:hover,
body.show-quote-popup .pum input[type="submit"]:hover,
body.show-quote-popup .pum button[type="submit"]:hover {
  background: var(--platinum) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,255,255,.2) !important;
}

/* Close button */
body.show-quote-popup .spu-close,
body.show-quote-popup .pum-close,
body.show-quote-popup .popmake-close,
body.show-quote-popup .wppopups-close,
body.show-quote-popup .popup-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  background: rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  color: var(--text-heading) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 100001 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.35) !important;
  text-decoration: none !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.45) !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.show-quote-popup .spu-close:hover,
body.show-quote-popup .pum-close:hover,
body.show-quote-popup .popmake-close:hover,
body.show-quote-popup .wppopups-close:hover,
body.show-quote-popup .popup-close:hover,
body.show-quote-popup .spu-close:active,
body.show-quote-popup .pum-close:active,
body.show-quote-popup .popmake-close:active,
body.show-quote-popup .wppopups-close:active,
body.show-quote-popup .popup-close:active {
  background: rgba(255,255,255,.28) !important;
  border-color: rgba(255,255,255,.34) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.42) !important;
  transform: scale(1.05);
}

body.show-quote-popup .spu-close *,
body.show-quote-popup .pum-close *,
body.show-quote-popup .popmake-close *,
body.show-quote-popup .wppopups-close *,
body.show-quote-popup .popup-close * {
  color: var(--text-heading) !important;
  opacity: 1 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  body.show-quote-popup .spu-close,
  body.show-quote-popup .pum-close,
  body.show-quote-popup .popmake-close,
  body.show-quote-popup .wppopups-close,
  body.show-quote-popup .popup-close {
    top: 10px !important;
    right: 10px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 24px !important;
  }
}

/* Màu chữ */
body.show-quote-popup .spu-box *,
body.show-quote-popup .pum * {
  color: var(--text) !important;
}
body.show-quote-popup .spu-box h2,
body.show-quote-popup .spu-box h3,
body.show-quote-popup .spu-box strong,
body.show-quote-popup .pum h2,
body.show-quote-popup .pum h3 {
  color: var(--text-heading) !important;
}

/* Hình ảnh banner trong popup */
body.show-quote-popup .spu-box img,
body.show-quote-popup .pum img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
  margin-bottom: 20px !important;
}

/* Light mode support */
html[data-theme="light"] body.show-quote-popup .spu-box,
html[data-theme="light"] body.show-quote-popup .pum {
  background: var(--off-white) !important;
  border-color: rgba(0,0,0,.15) !important;
}
html[data-theme="light"] body.show-quote-popup .spu-box *,
html[data-theme="light"] body.show-quote-popup .pum * {
  color: #333 !important;
}
html[data-theme="light"] body.show-quote-popup .spu-box h2,
html[data-theme="light"] body.show-quote-popup .spu-box h3,
html[data-theme="light"] body.show-quote-popup .spu-box strong {
  color: var(--deep-navy) !important;
}
html[data-theme="light"] body.show-quote-popup .spu-box input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] body.show-quote-popup .spu-box select,
html[data-theme="light"] body.show-quote-popup .spu-box textarea {
  background: #f4f2ed !important;
  border-color: rgba(0,0,0,.2) !important;
  color: #111 !important;
}
html[data-theme="light"] body.show-quote-popup .spu-close,
html[data-theme="light"] body.show-quote-popup .pum-close,
html[data-theme="light"] body.show-quote-popup .popmake-close,
html[data-theme="light"] body.show-quote-popup .wppopups-close,
html[data-theme="light"] body.show-quote-popup .popup-close {
  background: rgba(0,0,0,.72) !important;
  border-color: rgba(0,0,0,.16) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.24) !important;
}
html[data-theme="light"] body.show-quote-popup .spu-close:hover,
html[data-theme="light"] body.show-quote-popup .pum-close:hover,
html[data-theme="light"] body.show-quote-popup .popmake-close:hover,
html[data-theme="light"] body.show-quote-popup .wppopups-close:hover,
html[data-theme="light"] body.show-quote-popup .popup-close:hover {
  background: rgba(0,0,0,.84) !important;
}
html[data-theme="light"] body.show-quote-popup .spu-box input[type="submit"] {
  color: #fff !important;
}

/* Tăng logo Mercedes ở header */
.site-header .brand .logo-img,
.site-header .brand .custom-logo,
.site-header .brand img,
.site-header .logo img,
.site-header .header-logo img,
.header .logo img,
.header-logo img,
.brand-logo img,
.custom-logo {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  object-fit: contain !important;
}

.site-header .brand,
.site-header .logo,
.site-header .header-logo,
.header-logo,
.brand-logo {
  width: auto !important;
  min-width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

@media (max-width: 768px) {
  .site-header .brand .logo-img,
  .site-header .brand .custom-logo,
  .site-header .brand img,
  .site-header .logo img,
  .site-header .header-logo img,
  .header .logo img,
  .header-logo img,
  .brand-logo img,
  .custom-logo {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    object-fit: contain !important;
  }

  .site-header .brand,
  .site-header .logo,
  .site-header .header-logo,
  .header-logo,
  .brand-logo {
    min-width: 44px !important;
    height: 44px !important;
    overflow: visible !important;
  }
}


/* Giảm kích thước H1 single post */
.single-post h1,
.single-post .entry-title,
.single-post .post-title,
.single-post .article-title,
.single-post .news-hero-title {
  font-size: 36px !important;
  line-height: 1.15 !important;
  font-weight: 400 !important;
  color: var(--text-heading) !important;
  margin-bottom: 24px !important;
  text-align: center !important;
  letter-spacing: -0.5px !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 769px) {
  .single-post h1,
  .single-post .entry-title,
  .single-post .post-title,
  .single-post .article-title,
  .single-post .news-hero-title {
    font-size: 56px !important;
    line-height: 1.1 !important;
    max-width: 900px !important;
  }
}

/* Bảng thông số sản phẩm giãn rộng */
.single-product .entry-content,
.single-product .product-detail,
.single-product .woocommerce-product-details__short-description,
.single-product #tab-description {
  max-width: 100% !important;
  width: 100% !important;
}

.single-product .table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin-bottom: 2rem !important;
  display: block !important;
}

.single-product table,
.single-product .spec-table,
.single-product .product-specs table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 auto !important;
}

.single-product table th,
.single-product table td {
  padding: 16px !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  font-size: 15px !important;
  color: var(--text-heading) !important;
}

.single-product table th {
  background: rgba(255,255,255,0.05) !important;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  .single-product table,
  .single-product .spec-table,
  .single-product .product-specs table {
    min-width: 700px !important;
  }
}

/* Hero Title - CẬP NHẬT GIÁ XE */
.hero__content h1,
.hero__content h1[data-t="hero_mb_title"] {
  font-family: var(--font-heading) !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
}

@media (min-width: 769px) {
  .hero__content h1,
  .hero__content h1[data-t="hero_mb_title"] {
    font-size: 46px !important;
    line-height: 1.12 !important;
  }
}

/* Điều chỉnh kích thước tiêu đề CÁC DÒNG XE MERCEDES-BENZ NỔI BẬT */
h2.models-heading,
.section-heading h2.models-heading {
  font-size: 30px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

@media (min-width: 769px) {
  h2.models-heading,
  .section-heading h2.models-heading {
    font-size: 42px !important;
    line-height: 1.2 !important;
  }
}

/* Điều chỉnh nhãn phụ AMG và Maybach trên trang chủ */
.amg-showcase .amg-badge {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  letter-spacing: 0.15em !important;
}

.maybach-showcase .maybach-logo-text {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3em !important;
  color: var(--star-gold) !important; /* Slightly brighter for better contrast if needed, or keep var(--star-gold). Let's keep original or slightly brighter */
}

@media (min-width: 769px) {
  .amg-showcase .amg-badge {
    font-size: 12px !important;
  }
  .maybach-showcase .maybach-logo-text {
    font-size: 14px !important;
  }
}

/* --- RESPONSIVE FIX CHO SINGLE POST & MOBILE --- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  .entry-content,
  .post-content,
  .single-post article,
  article .content,
  .site-content {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
    padding-bottom: 140px; /* Padding for floating buttons */
  }

  .entry-content img,
  .post-content img,
  article img,
  .entry-content video,
  .post-content video,
  article video,
  .entry-content iframe,
  .post-content iframe,
  article iframe {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 8px; /* Added rounded corners for theme fit */
  }

  .entry-content p,
  .post-content p,
  article p {
    font-size: 16px !important;
    line-height: 1.75 !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .entry-content h1,
  .post-content h1,
  article h1 {
    font-size: 26px !important;
    line-height: 1.25 !important;
    margin: 22px 0 14px;
    letter-spacing: normal !important;
  }

  .entry-content h2,
  .post-content h2,
  article h2 {
    font-size: 23px !important;
    line-height: 1.3 !important;
    margin: 28px 0 14px;
    letter-spacing: normal !important;
  }

  .entry-content h3,
  .post-content h3,
  article h3 {
    font-size: 20px !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
  }

  /* Table responsive CSS */
  .entry-content table,
  .post-content table,
  article table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.02); /* Theme background */
    border: 1px solid rgba(255,255,255,0.1); /* Theme border */
  }

  .entry-content th,
  .entry-content td,
  .post-content th,
  .post-content td,
  article th,
  article td {
    padding: 12px 14px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    vertical-align: middle;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.1) !important;
  }
  
  .entry-content th,
  .post-content th,
  article th {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-heading);
    font-weight: 600;
  }

  /* TOC Plugin (ez-toc) mobile fix */
  #ez-toc-container,
  .ez-toc-v2_0_69 {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  #ez-toc-container ul.ez-toc-list,
  .ez-toc-v2_0_69 ul.ez-toc-list {
    max-height: 55vh;
    overflow-y: auto;
  }
  
  #ez-toc-container a,
  .ez-toc-v2_0_69 a {
    text-decoration: none !important;
  }

  /* Floating Buttons Fix (Zalo, Phone, Chat) */
  .floating-zalo,
  .zalo-button,
  .phone-button,
  .call-button,
  .hotline-phone-ring-wrap {
    width: 52px !important;
    height: 52px !important;
    left: 12px !important;
    right: auto !important;
    z-index: 99 !important; /* ensure it doesn't overlap header/menu */
  }
  
  #fb-root iframe, 
  .zalo-chat-widget,
  .chat-widget {
    z-index: 99 !important;
  }
}

/* =============================================================
   READABLE TEXT COLORS — LIGHT/DARK THEME ONLY
   Color-only layer. Do not change layout, spacing, font or markup.
   ============================================================= */
:root {
  --text-primary: #1A1A1A;
  --text-heading: #000000;
  --text-secondary: #555555;
  --text-muted: #8A8A8A;
  --link-color: var(--star-gold);
  --link-hover: var(--star-gold);
  --text-accent: var(--star-gold);
}

/* Homepage test-drive form labels remain readable on the dark contact section. */
#contact .contact-form .form-group > label {
  color: rgba(255, 255, 255, .86) !important;
}

html[data-theme="dark"],
html.theme-dark,
body.dark-mode,
body[data-theme="dark"] {
  --text-primary: rgba(255, 255, 255, 0.78);
  --text-heading: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.86);
  --text-muted: rgba(255, 255, 255, 0.62);
  --link-color: var(--gold-standard);
  --link-hover: var(--gold-light);
  --text-accent: var(--gold-light);

  --gold-standard: var(--star-gold);
  --gold-light: var(--star-gold);
  --gold-dark: var(--star-gold);
  --gold-focus-glow: rgba(196, 169, 98, 0.15);

  --form-border: rgba(255, 255, 255, 0.15);
  --form-bg: rgba(255, 255, 255, 0.03);
  --form-bg-focus: rgba(255, 255, 255, 0.06);
  --form-placeholder: rgba(255, 255, 255, 0.45);
}

html[data-theme="light"],
html.theme-light,
body.light-mode,
body[data-theme="light"] {
  --text-primary: #1A1A1A;
  --text-heading: #000000;
  --text-secondary: #555555;
  --text-muted: #8A8A8A;
  --link-color: var(--star-gold);
  --link-hover: var(--star-gold);
  --text-accent: var(--star-gold);
}

html[data-theme="light"] .single-post-page,
html[data-theme="light"] .single-post-page .post-hero,
html[data-theme="light"] .single-post-page .sidebar-card,
html[data-theme="light"] .single-post-page .news-card,
html[data-theme="light"] .hero,
html[data-theme="light"] .amg-showcase,
html[data-theme="light"] .maybach-showcase,
html[data-theme="light"] .mb-chatbot-window,
html[data-theme="light"] .mercedes-ad-banner {
  --text-primary: rgba(255, 255, 255, 0.78);
  --text-heading: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.86);
  --text-muted: rgba(255, 255, 255, 0.62);
  --link-color: var(--star-gold);
  --link-hover: var(--star-gold);
  --text-accent: var(--star-gold);
}

body,
main,
.site-main,
.page-content,
.entry-content,
.post-content,
.article-content,
.single-post-page,
.single-post,
.single-product,
.woocommerce-Tabs-panel,
.mercedes-entry-content,
.mercedes-wc-description-content,
.mercedes-wc-product-info-sections,
.policy-content,
.card,
.section,
.news-card,
.offer-card,
.model-card,
.sidebar-card {
  color: var(--text-primary) !important;
}

body :where(p, li, td, th, blockquote, label, caption),
main :where(span, em),
.page-content :where(span, em),
.entry-content :where(span, em),
.post-content :where(span, em),
.article-content :where(span, em),
.single-post-page :where(span, em),
.single-product :where(span, em),
.woocommerce-Tabs-panel :where(span, em),
.mercedes-wc-description-content :where(span, em),
.policy-content :where(span, em),
.card :where(span, em),
.section :where(span, em),
.news-card :where(span, em),
.offer-card :where(span, em),
.model-card :where(span, em),
.sidebar-card :where(span, em) {
  color: var(--text-primary) !important;
}

body :where(h1, h2, h3, h4, h5, h6),
.page-title,
.post-title,
.entry-title,
.article-title,
.section-title,
.news-hero-title,
.mercedes-wc-section-title,
.product_title {
  color: var(--text-heading) !important;
  font-family: var(--font-heading) !important;
}

body :where(small, figcaption),
.wp-caption-text,
.caption,
.meta,
.post-meta,
.post-date,
.subtitle,
.section-subtitle,
.news-card__date,
.woocommerce-breadcrumb,
.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted,
.muted,
.disabled,
[aria-disabled="true"],
.is-disabled,
.is-muted {
  color: var(--text-muted) !important;
}

body :where(strong, b),
.text-accent,
.accent,
.bullet,
.icon-text {
  color: var(--text-accent) !important;
}

body :where(label, .form-group > label, .contact-form label, label.form-label, .wpcf7-list-item-label) {
  color: rgba(255, 255, 255, 0.86) !important;
}

main a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]):not(.brand),
.entry-content a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]),
.post-content a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]),
.article-content a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]),
.policy-content a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]),
.mercedes-wc-description-content a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]) {
  color: var(--link-color) !important;
}

main a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]):not(.brand):hover,
.entry-content a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]):hover,
.post-content a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]):hover,
.article-content a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]):hover,
.policy-content a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]):hover,
.mercedes-wc-description-content a:not(.btn):not(.button):not([class*="button"]):not([class*="btn"]):hover {
  color: var(--link-hover) !important;
}

#ez-toc-container,
.ez-toc-container,
.lwptoc,
.toc,
.toc-container,
.table-of-contents,
.rank-math-toc,
.wp-block-rank-math-toc-block {
  color: var(--text-primary) !important;
}

#ez-toc-container *,
.ez-toc-container *,
.lwptoc *,
.toc *,
.toc-container *,
.table-of-contents *,
.rank-math-toc *,
.wp-block-rank-math-toc-block * {
  color: var(--text-primary) !important;
}

#ez-toc-container :where(.ez-toc-title, h2, h3),
.ez-toc-container :where(.ez-toc-title, h2, h3),
.lwptoc_header,
.toc-title,
.rank-math-toc :where(h2, h3),
.wp-block-rank-math-toc-block :where(h2, h3) {
  color: var(--text-heading) !important;
}

#ez-toc-container a,
#ez-toc-container .ez-toc-link,
.ez-toc-container a,
.ez-toc-container .ez-toc-link,
.lwptoc a,
.toc a,
.toc-container a,
.table-of-contents a,
.rank-math-toc a,
.wp-block-rank-math-toc-block a {
  color: var(--link-color) !important;
}

#ez-toc-container a:hover,
#ez-toc-container .ez-toc-link:hover,
.ez-toc-container a:hover,
.ez-toc-container .ez-toc-link:hover,
.lwptoc a:hover,
.toc a:hover,
.toc-container a:hover,
.table-of-contents a:hover,
.rank-math-toc a:hover,
.wp-block-rank-math-toc-block a:hover {
  color: var(--link-hover) !important;
}

/* --- OVERRIDE CONTENT WIDTH CHO MOBILE THEO YÊU CẦU --- */
@media (max-width: 768px) {
  .single-post .site-main,
  .single-post .content-area,
  .single-post article,
  .single-post .entry-content,
  .single-post .post-content,
  .single-post .article-content,
  .wp-block-group,
  .wp-block-columns {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .single-post .entry-content > *,
  .single-post .post-content > *,
  .single-post article > * {
    max-width: 100% !important;
  }

  .single-post .entry-content p,
  .single-post .post-content p,
  .single-post article p,
  .single-post .entry-content li,
  .single-post .post-content li,
  .single-post article li {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    line-height: 1.75;
  }

  .single-post .entry-content img,
  .single-post .post-content img,
  .single-post article img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
}

/* --- FINANCING PAGE RESPONSIVE CALCULATOR + SEO CONTENT --- */
.finance-page {
  --finance-bg: #050505;
  --finance-surface: #101010;
  --finance-surface-2: #161616;
  --finance-border: rgba(220, 201, 163, .22);
  --finance-border-soft: rgba(255, 255, 255, .10);
  --finance-text: #f5f5f5;
  --finance-muted: #cfcfcf;
  --finance-soft: #9a9a9a;
  --finance-gold: var(--star-gold);
  --finance-gold-soft: var(--star-gold);
  background:
    radial-gradient(circle at top left, rgba(220, 201, 163, .10), transparent 34rem),
    var(--finance-bg) !important;
  color: var(--finance-text) !important;
}

html[data-theme="light"] .finance-page {
  --finance-bg: #f5f3ef;
  --finance-surface: #ffffff;
  --finance-surface-2: #f0ede6;
  --finance-border: rgba(140, 106, 47, .28);
  --finance-border-soft: rgba(0, 0, 0, .10);
  --finance-text: #1a1a1a;
  --finance-muted: #555555;
  --finance-soft: #767676;
  --finance-gold: var(--star-gold);
  --finance-gold-soft: var(--star-gold);
}

.finance-page .container {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: 20px;
}

.finance-hero {
  padding: clamp(42px, 7vw, 84px) 0 28px;
}

.finance-hero__grid,
.finance-grid,
.finance-content-grid {
  display: grid;
  gap: 24px;
}

.finance-hero__grid {
  align-items: end;
}

@media (min-width: 980px) {
  .finance-hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  }

  .finance-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    align-items: start;
  }

  .finance-content-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  }
}

.finance-eyebrow {
  margin: 0 0 10px !important;
  color: var(--finance-gold) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

.finance-hero h1,
.finance-card h2,
.finance-copy h2,
.finance-faq h2 {
  color: var(--finance-text) !important;
}

.finance-hero h1 {
  max-width: 820px;
  margin: 0 !important;
  font-size: clamp(34px, 5vw, 58px) !important;
  line-height: 1.06 !important;
}

.finance-hero-copy,
.finance-card__header p,
.finance-copy p,
.finance-note,
.finance-checklist li,
.finance-bank-box p,
.finance-faq details p {
  color: var(--finance-muted) !important;
}

.finance-hero-copy {
  max-width: 760px;
  margin: 18px 0 0 !important;
  font-size: clamp(15px, 2vw, 18px) !important;
  line-height: 1.7 !important;
}

.finance-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.finance-cta {
  width: auto !important;
  min-height: 48px;
}

.finance-quick-answer,
.finance-card,
.finance-copy {
  background: linear-gradient(135deg, var(--finance-surface), var(--finance-surface-2)) !important;
  border: 1px solid var(--finance-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

html[data-theme="light"] .finance-quick-answer,
html[data-theme="light"] .finance-card,
html[data-theme="light"] .finance-copy {
  box-shadow: 0 16px 36px rgba(35, 30, 20, .10);
}

.finance-quick-answer {
  padding: 22px;
}

.finance-quick-answer strong {
  color: var(--finance-gold-soft) !important;
  display: block;
  margin-bottom: 8px;
}

.finance-quick-answer p {
  margin: 0 !important;
  color: var(--finance-muted) !important;
  line-height: 1.65 !important;
}

.finance-section {
  padding: 22px 0;
}

.finance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 !important;
}

.finance-metrics .metric-card {
  min-height: 112px;
  padding: 20px;
  background: var(--finance-surface) !important;
  border: 1px solid var(--finance-border-soft) !important;
  border-radius: 8px !important;
}

.finance-metrics .value {
  display: block;
  color: var(--finance-gold-soft) !important;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1;
}

.finance-metrics .label {
  display: block;
  margin-top: 10px;
  color: var(--finance-muted) !important;
  font-size: 13px;
  line-height: 1.4;
}

.finance-card {
  padding: clamp(18px, 3vw, 28px);
}

.finance-card__header {
  margin-bottom: 20px;
}

.finance-card__header h2,
.finance-copy h2,
.finance-faq h2 {
  margin: 0 0 10px !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  line-height: 1.18 !important;
}

.finance-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .finance-form-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
  }
}

.finance-field,
.finance-range {
  display: grid;
  gap: 9px;
}

.finance-field span,
.finance-range__label {
  color: var(--finance-muted) !important;
  font-size: 13px;
  font-weight: 700;
}

.finance-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--finance-text) !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--finance-border-soft) !important;
  border-radius: 8px !important;
}

html[data-theme="light"] .finance-field select {
  background: #fff !important;
}

.finance-range-list {
  display: grid;
  gap: 18px;
  margin: 22px 0;
}

.finance-range {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.finance-range input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--finance-gold);
}

.finance-range strong {
  color: var(--finance-gold-soft) !important;
}

.finance-result-grid,
.finance-detail-grid {
  display: grid;
  gap: 12px;
}

.finance-result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.finance-result,
.finance-detail-row {
  padding: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--finance-border-soft);
  border-radius: 8px;
}

html[data-theme="light"] .finance-result,
html[data-theme="light"] .finance-detail-row {
  background: rgba(255,255,255,.72);
}

.finance-result span,
.finance-detail-row span {
  display: block;
  color: var(--finance-soft) !important;
  font-size: 12px;
  line-height: 1.35;
}

.finance-result strong,
.finance-detail-row strong {
  display: block;
  margin-top: 7px;
  color: var(--finance-text) !important;
  font-size: 15px;
  line-height: 1.25;
}

.finance-result--primary {
  background: linear-gradient(135deg, rgba(220,201,163,.22), rgba(255,255,255,.06)) !important;
  border-color: var(--finance-border) !important;
}

.finance-result--primary strong {
  color: var(--finance-gold-soft) !important;
  font-size: 18px;
}

.finance-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--finance-border-soft);
  border-radius: 8px;
}

.finance-schedule {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.finance-schedule caption {
  padding: 12px 14px;
  text-align: left;
  color: var(--finance-muted) !important;
  font-size: 13px;
  border-bottom: 1px solid var(--finance-border-soft);
}

.finance-schedule th,
.finance-schedule td {
  padding: 12px 14px;
  color: var(--finance-text) !important;
  border-bottom: 1px solid var(--finance-border-soft);
  text-align: left;
  white-space: nowrap;
}

.finance-schedule th {
  color: var(--finance-gold-soft) !important;
  font-size: 12px;
  text-transform: uppercase;
}

.finance-schedule #finance-schedule-rows > tr > td:nth-child(4) {
  color: var(--star-gold) !important;
}

.finance-note {
  margin: 14px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.finance-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--finance-border-soft);
  border-radius: 8px;
}

.finance-tab {
  min-height: 42px;
  color: var(--finance-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 6px !important;
  cursor: pointer;
  font-weight: 700;
}

.finance-tab.is-active {
  color: #0B0B0B !important;
  background: var(--finance-gold) !important;
}

.finance-checklist,
.finance-steps {
  margin: 0;
  padding-left: 18px;
}

.finance-checklist li,
.finance-steps li {
  margin-bottom: 12px;
  line-height: 1.65;
}

.finance-process .finance-panel[data-finance-panel="personal"] .finance-checklist > li > strong {
  color: var(--star-gold);
}

.finance-consultation-process h3 {
  color: var(--star-gold) !important;
}

.finance-consultation-process .finance-steps li {
  color: rgba(255, 255, 255, .78);
}

.finance-consultation-process .finance-steps li::marker {
  color: var(--star-gold);
}

.finance-bank-box {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--finance-border-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.finance-bank-box h3,
.finance-copy h3 {
  margin: 0 0 10px !important;
  color: var(--finance-gold-soft) !important;
  font-size: 17px !important;
}

.finance-copy {
  padding: clamp(18px, 3vw, 28px);
}

.finance-copy--compact {
  align-self: stretch;
}

.finance-faq .finance-card {
  max-width: 920px;
}

.finance-faq details {
  border-top: 1px solid var(--finance-border-soft);
  padding: 15px 0;
}

.finance-faq summary {
  color: var(--finance-text) !important;
  cursor: pointer;
  font-weight: 700;
}

.finance-faq details p {
  margin: 10px 0 0 !important;
  line-height: 1.7 !important;
}

@media (max-width: 900px) {
  .finance-metrics,
  .finance-result-grid,
  .finance-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .finance-page .container {
    padding-inline: 16px;
  }

  .finance-hero {
    padding-top: 34px;
  }

  .finance-hero__actions,
  .finance-cta {
    width: 100% !important;
  }

  .finance-metrics,
  .finance-result-grid,
  .finance-detail-grid {
    grid-template-columns: 1fr;
  }

  .finance-metrics .metric-card {
    min-height: auto;
  }

  .finance-card,
  .finance-copy,
  .finance-quick-answer {
    padding: 16px;
  }

  .finance-result strong,
  .finance-detail-row strong {
    font-size: 14px;
  }
}

/* --- SINGLE PRODUCT ADVISORY FORM --- */
.single-product .mercedes-product-advisory-form,
.single-product .mercedes-wc-description-content form:has(input[type="tel"]),
.single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) {
  width: min(100%, 820px) !important;
  margin: 28px 0 !important;
  padding: clamp(18px, 3vw, 28px) !important;
  background: linear-gradient(135deg, #090909, #171410) !important;
  border: 1px solid rgba(220,201,163,.28) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.32) !important;
  color: #f5f5f5 !important;
}

html[data-theme="light"] .single-product .mercedes-product-advisory-form,
html[data-theme="light"] .single-product .mercedes-wc-description-content form:has(input[type="tel"]),
html[data-theme="light"] .single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) {
  background: #ffffff !important;
  border-color: rgba(140,106,47,.28) !important;
  box-shadow: 0 18px 38px rgba(35,30,20,.12) !important;
  color: #1a1a1a !important;
}

.single-product .mercedes-product-advisory-form :where(h2, h3, h4),
.single-product .mercedes-wc-description-content form:has(input[type="tel"]) :where(h2, h3, h4),
.single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) :where(h2, h3, h4) {
  margin: 0 0 16px !important;
  color: #fff !important;
  font-size: clamp(20px, 3vw, 28px) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .single-product .mercedes-product-advisory-form :where(h2, h3, h4),
html[data-theme="light"] .single-product .mercedes-wc-description-content form:has(input[type="tel"]) :where(h2, h3, h4),
html[data-theme="light"] .single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) :where(h2, h3, h4) {
  color: #000 !important;
}

.single-product .mercedes-product-advisory-form :where(p, .form-row, .form-group),
.single-product .mercedes-wc-description-content form:has(input[type="tel"]) :where(p, .form-row, .form-group),
.single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) :where(p, .form-row, .form-group) {
  margin: 0 0 14px !important;
}

.single-product .mercedes-product-advisory-form label,
.single-product .mercedes-wc-description-content form:has(input[type="tel"]) label,
.single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) label {
  color: var(--star-gold) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .single-product .mercedes-product-advisory-form label,
html[data-theme="light"] .single-product .mercedes-wc-description-content form:has(input[type="tel"]) label,
html[data-theme="light"] .single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) label {
  color: var(--star-gold) !important;
}

.single-product .mercedes-product-advisory-form :where(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea),
.single-product .mercedes-wc-description-content form:has(input[type="tel"]) :where(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea),
.single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) :where(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100% !important;
  min-height: 50px !important;
  padding: 13px 15px !important;
  background: rgba(255,255,255,.075) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

html[data-theme="light"] .single-product .mercedes-product-advisory-form :where(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea),
html[data-theme="light"] .single-product .mercedes-wc-description-content form:has(input[type="tel"]) :where(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea),
html[data-theme="light"] .single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) :where(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background: #f7f4ee !important;
  border-color: rgba(0,0,0,.16) !important;
  color: #111 !important;
}

.single-product .mercedes-product-advisory-form :where(input:focus, select:focus, textarea:focus),
.single-product .mercedes-wc-description-content form:has(input[type="tel"]) :where(input:focus, select:focus, textarea:focus),
.single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) :where(input:focus, select:focus, textarea:focus) {
  border-color: var(--star-gold) !important;
  box-shadow: 0 0 0 3px rgba(220,201,163,.18) !important;
}

.single-product .mercedes-product-advisory-form :where(button[type="submit"], input[type="submit"]),
.single-product .mercedes-wc-description-content form:has(input[type="tel"]) :where(button[type="submit"], input[type="submit"]),
.single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) :where(button[type="submit"], input[type="submit"]) {
  width: auto !important;
  min-width: 220px !important;
  min-height: 52px !important;
  padding: 14px 24px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--star-gold) !important;
  color: #050505 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.single-product .mercedes-product-advisory-form :where(button[type="submit"], input[type="submit"]):hover,
.single-product .mercedes-wc-description-content form:has(input[type="tel"]) :where(button[type="submit"], input[type="submit"]):hover,
.single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) :where(button[type="submit"], input[type="submit"]):hover {
  background: var(--star-gold) !important;
}

@media (max-width: 768px) {
  .single-product .mercedes-product-advisory-form,
  .single-product .mercedes-wc-description-content form:has(input[type="tel"]),
  .single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) {
    margin: 22px 0 34px !important;
    padding: 16px !important;
  }

  .single-product .mercedes-product-advisory-form :where(button[type="submit"], input[type="submit"]),
  .single-product .mercedes-wc-description-content form:has(input[type="tel"]) :where(button[type="submit"], input[type="submit"]),
  .single-product .mercedes-wc-product-info-sections form:has(input[type="tel"]) :where(button[type="submit"], input[type="submit"]) {
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 96px !important;
  }
}

/* --- NEWS CATEGORY + SINGLE ARTICLE RESPONSIVE/DARK/LIGHT --- */
.news-page-main,
.single-post-page {
  --news-bg: #050505;
  --news-surface: #111111;
  --news-surface-2: #171717;
  --news-border: rgba(255,255,255,.12);
  --news-text: #f5f5f5;
  --news-heading: #ffffff;
  --news-muted: #cfcfcf;
  --news-soft: #9a9a9a;
  --news-accent: var(--star-gold);
  background: var(--news-bg) !important;
  color: var(--news-text) !important;
}

html[data-theme="light"] .news-page-main,
html[data-theme="light"] .single-post-page {
  --news-bg: #f6f4ef;
  --news-surface: #ffffff;
  --news-surface-2: #f0ede6;
  --news-border: rgba(0,0,0,.12);
  --news-text: #1a1a1a;
  --news-heading: #000000;
  --news-muted: #555555;
  --news-soft: #767676;
  --news-accent: var(--star-gold);
}

.news-page-main :where(.container, .mb-container),
.single-post-page :where(.container, .mb-container) {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}

.news-page-main :where(.page-hero, .page-hero--news),
.single-post-page .post-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(220,201,163,.12), transparent 38rem),
    var(--news-bg) !important;
  border-bottom: 1px solid var(--news-border) !important;
}

.news-page-main :where(h1, h2, h3),
.single-post-page :where(h1, h2, h3, h4),
.single-post-page .post-tags strong {
  color: var(--news-heading) !important;
}

.news-page-main :where(p, li, span),
.single-post-page :where(p, li, span, td, th, blockquote) {
  color: var(--news-text) !important;
}

.news-page-main :where(.eyebrow, .news-card__date),
.single-post-page :where(.post-meta, .post-date, .news-card__date) {
  color: var(--news-muted) !important;
}

.news-page-main :where(.news-listing-section, .section-padding),
.post-related-section {
  background: var(--news-bg) !important;
}

.news-grid--archive,
.news-grid--cms,
.post-related-section .news-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.news-page-main .news-card,
.post-related-section .news-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 18px !important;
  background: var(--news-surface) !important;
  border: 1px solid var(--news-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

html[data-theme="light"] .news-page-main .news-card,
html[data-theme="light"] .post-related-section .news-card {
  box-shadow: 0 14px 30px rgba(35,30,20,.10);
}

.news-page-main .news-card__image,
.post-related-section .news-card__image {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 0 16px !important;
  overflow: hidden !important;
  display: block !important;
  border: 1px solid var(--news-border) !important;
  border-radius: 8px !important;
  background: var(--news-surface-2) !important;
}

.news-page-main .news-card__image img,
.post-related-section .news-card__image img,
.single-post-page .post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.news-page-main .news-card h3,
.post-related-section .news-card h3 {
  margin: 0 0 12px !important;
  font-size: 18px !important;
  line-height: 1.38 !important;
}

.news-page-main .news-card h3 a,
.post-related-section .news-card h3 a,
.single-post-page .post-tags a {
  color: var(--news-heading) !important;
  text-decoration: none !important;
}

.news-page-main .news-card h3 a:hover,
.post-related-section .news-card h3 a:hover,
.single-post-page .post-tags a:hover {
  color: var(--news-accent) !important;
}

.news-page-main .news-card p,
.post-related-section .news-card p {
  color: var(--news-muted) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.news-page-main .text-link,
.post-related-section .text-link,
.post-related-section .news-card > a:last-child {
  color: var(--news-accent) !important;
  text-decoration: none !important;
}

.news-pagination :where(a, span) {
  border: 1px solid var(--news-border) !important;
  color: var(--news-heading) !important;
  background: var(--news-surface) !important;
  border-radius: 8px !important;
}

.news-pagination span.current {
  background: var(--news-heading) !important;
  color: var(--news-bg) !important;
}

.single-post-layout {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px) 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  box-sizing: border-box;
}

.single-post-main,
.single-post-sidebar {
  min-width: 0;
}

.single-post-page .post-title {
  max-width: 940px;
  margin: 0 auto !important;
  color: var(--news-heading) !important;
  font-size: clamp(28px, 5vw, 50px) !important;
  line-height: 1.15 !important;
}

.single-post-page .post-featured-image {
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: 8px;
  background: var(--news-surface-2);
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
}

.single-post-page .entry-content {
  color: var(--news-text) !important;
  font-size: 17px;
  line-height: 1.78;
}

.single-post-page .entry-content :where(p, li) {
  color: var(--news-text) !important;
}

.single-post-page .entry-content :where(a) {
  color: var(--news-accent) !important;
}

.single-post-page .entry-content :where(img) {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

.single-post-sidebar .sidebar-card {
  padding: 20px;
  margin-bottom: 18px;
  background: var(--news-surface) !important;
  border: 1px solid var(--news-border) !important;
  border-radius: 8px !important;
  color: var(--news-text) !important;
}

.single-post-sidebar .sidebar-card p,
.single-post-sidebar .sidebar-links a {
  color: var(--news-muted) !important;
}

.single-post-sidebar .sidebar-hotline a,
.single-post-sidebar .btn-sidebar {
  color: var(--news-accent) !important;
}

.single-post-sidebar .btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--news-accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 980px) {
  .news-grid--archive,
  .news-grid--cms,
  .post-related-section .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

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

@media (max-width: 640px) {
  .news-page-main :where(.container, .mb-container),
  .single-post-page :where(.container, .mb-container),
  .single-post-layout {
    padding-inline: 16px;
  }

  .news-page-main :where(.page-hero, .page-hero--news),
  .single-post-page .post-hero {
    padding: 38px 0 24px !important;
  }

  .news-grid--archive,
  .news-grid--cms,
  .post-related-section .news-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .news-page-main .news-card,
  .post-related-section .news-card {
    padding: 14px !important;
  }

  .single-post-page .entry-content {
    font-size: 16px;
    line-height: 1.72;
  }
}

/* === TOC GIAO DIỆN SÁNG (MẶC ĐỊNH) === */
html[data-theme='light'] #ez-toc-container,
html[data-theme='light'] .rank-math-toc {
  background-color: #F8F8F8 !important;
  border: 1px solid #EAEAEA !important;
}
html[data-theme='light'] #ez-toc-container .ez-toc-title,
html[data-theme='light'] .rank-math-toc h2 {
  color: #000000 !important;
  font-weight: bold !important;
}
html[data-theme='light'] #ez-toc-container ul li a,
html[data-theme='light'] .rank-math-toc ul li a {
  color: #1A1A1A !important;
}
html[data-theme='light'] #ez-toc-container ul ul li a,
html[data-theme='light'] .rank-math-toc ul ul li a {
  color: #666666 !important;
}
html[data-theme='light'] #ez-toc-container a:hover,
html[data-theme='light'] .rank-math-toc a:hover {
  color: #C9A96E !important;
}
html[data-theme='light'] #ez-toc-container ul li::before,
html[data-theme='light'] .rank-math-toc ul li::before {
  color: #C9A96E !important;
}

/* === TOC GIAO DIỆN TỐI === */
html[data-theme='dark'] #ez-toc-container,
html[data-theme='dark'] .rank-math-toc {
  background-color: #161616 !important;
  border: 1px solid #333333 !important;
}
html[data-theme='dark'] #ez-toc-container .ez-toc-title,
html[data-theme='dark'] .rank-math-toc h2 {
  color: #FFFFFF !important;
  font-weight: bold !important;
}
html[data-theme='dark'] #ez-toc-container ul li a,
html[data-theme='dark'] .rank-math-toc ul li a {
  color: #F5F5F5 !important;
}
html[data-theme='dark'] #ez-toc-container ul ul li a,
html[data-theme='dark'] .rank-math-toc ul ul li a {
  color: #B0B0B0 !important;
}
html[data-theme='dark'] #ez-toc-container a:hover,
html[data-theme='dark'] .rank-math-toc a:hover {
  color: #C9A96E !important;
}
html[data-theme='dark'] #ez-toc-container ul li::before,
html[data-theme='dark'] .rank-math-toc ul li::before {
  color: #C9A96E !important;
}

/* =============================================================
   TASK 1 — FIX ICON RÁC / FACEBOOK EMBED CONTENT
   Ẩn các icon/emoji từ Facebook được copy vào bài viết WordPress.
   Nguồn: static.xx.fbcdn.net/images/emoji.php (img alt emoji)
   Nguồn: Facebook CSS classes (xexx8yu, xyri2b, xz74otr, ...)
   ============================================================= */

/* Ẩn toàn bộ <img> emoji từ Facebook CDN trong entry-content */
.entry-content img[src*="fbcdn.net"],
.entry-content img[src*="emoji.php"],
.entry-content img[class*="xz74"],
.single-post-page img[src*="fbcdn.net"],
.single-post-page img[src*="emoji.php"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ẩn <span> wrapper của Facebook emoji (class html-span + Facebook atomic classes) */
.entry-content span.html-span[class*="xexx8yu"],
.entry-content span[class*="xexx8yu"],
.entry-content span[class*="xyri2b"],
.single-post-page span.html-span[class*="xexx8yu"],
.single-post-page span[class*="xexx8yu"] {
  display: none !important;
}

/* Collapse các <div> Facebook chứa chỉ icon rác (class nguyên tử Facebook) */
.entry-content > div[class*="x14z9mp"],
.entry-content div[class="x14z9mp xat24cr x1lziwak x1vvkbs xtlvy1s x126k92a"],
.entry-content div[class="xdj266r x14z9mp xat24cr x1lziwak x1vvkbs x126k92a"] {
  /* Giữ nội dung text, chỉ reset Facebook styling */
  color: var(--news-text, #f5f5f5) !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Đảm bảo text trong Facebook div vẫn hiển thị đúng */
.entry-content div[class*="x14z9mp"] span[style*="color: #282828"],
.entry-content div[class*="xdj266r"] span[style*="color: #282828"] {
  color: var(--news-text, #f5f5f5) !important;
}

/* TOC plugin cũ (Table of Contents Plus) - class toc_container */
#toc_container {
  background: linear-gradient(135deg, #0B0B0B, #1a1710) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  margin: 28px 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  clear: both !important;
}
#toc_container .toc_title {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
}
#toc_container ul.toc_list,
#toc_container ul.toc_list li {
  list-style: none !important;
  background: transparent !important;
  color: #f5f5f5 !important;
}
#toc_container ul.toc_list li {
  padding: 3px 0 3px 10px !important;
  border-left: 2px solid rgba(220,201,163,.2) !important;
  margin: 2px 0 !important;
}
#toc_container ul.toc_list li a {
  color: #f5f5f5 !important;
  text-decoration: none !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  display: inline-block !important;
}
#toc_container ul.toc_list li a:hover {
  color: var(--star-gold) !important;
}
#toc_container ul.toc_list ul {
  padding-left: 14px !important;
  margin-top: 3px !important;
}
#toc_container ul.toc_list ul li {
  font-size: 13.5px !important;
  color: #ccc !important;
  border-left: 2px solid rgba(220,201,163,.1) !important;
}
#toc_container .toc_number {
  color: rgba(220,201,163,.7) !important;
  font-size: 12px !important;
  margin-right: 4px !important;
}

/* Light mode TOC plugin cũ */
html[data-theme='light'] #toc_container {
  background: #f8f8f8 !important;
  border: 1px solid #e0e0e0 !important;
}
html[data-theme='light'] #toc_container .toc_title {
  color: #111 !important;
}
html[data-theme='light'] #toc_container ul.toc_list li a {
  color: #1a1a1a !important;
}
html[data-theme='light'] #toc_container ul.toc_list ul li a {
  color: #555 !important;
}

@media (max-width: 768px) {
  #toc_container {
    padding: 14px 16px !important;
    border-radius: 12px !important;
    margin: 18px 0 !important;
  }
  #toc_container ul.toc_list li a {
    font-size: 13.5px !important;
  }
}

/* =============================================================
   TASK 2 — CONTACT PAGE: FONT & LAYOUT REFINEMENT
   ============================================================= */

/* CSS Variables cho Contact dark/light */
.contact-page {
  --cp-text: #F5F5F5;
  --cp-heading: #FFFFFF;
  --cp-muted: #CFCFCF;
  --cp-input-bg: #141414;
  --cp-input-border: rgba(255,255,255,.16);
  --cp-card-bg: #111111;
  --cp-card-border: rgba(255,255,255,.1);
  background: #000 !important;
  padding-top: 100px !important;
  padding-bottom: 80px !important;
}
html[data-theme='light'] .contact-page {
  --cp-text: #1A1A1A;
  --cp-heading: #000;
  --cp-muted: #555;
  --cp-input-bg: #fff;
  --cp-input-border: rgba(0,0,0,.14);
  --cp-card-bg: #f8f8f6;
  --cp-card-border: rgba(0,0,0,.1);
  background: #f4f3ef !important;
}

/* Container */
.contact-page .contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .contact-page .contact-container {
    padding: 0 16px;
  }
}

/* Hero */
.contact-page .contact-hero {
  margin-bottom: 48px;
  text-align: center;
}
.contact-page .contact-hero h1 {
  font-size: clamp(28px, 5vw, 48px) !important;
  font-weight: 300 !important;
  letter-spacing: -0.01em !important;
  text-transform: uppercase !important;
  color: var(--cp-heading) !important;
  margin: 0 0 12px !important;
  line-height: 1.12 !important;
}
.contact-page .contact-hero-copy {
  font-size: clamp(15px, 2vw, 17px) !important;
  color: var(--cp-muted) !important;
  line-height: 1.7 !important;
  max-width: 560px;
  margin: 0 auto;
}

/* Grid layout 2 cột Desktop */
.contact-page .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-page .contact-grid.contact-grid--has-form {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    gap: 40px;
  }
}
@media (min-width: 1100px) {
  .contact-page .contact-grid.contact-grid--has-form {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
    gap: 56px;
  }
}

/* Cards */
.contact-page .contact-card {
  background: var(--cp-card-bg) !important;
  border: 1px solid var(--cp-card-border) !important;
  border-radius: 16px !important;
  padding: 28px !important;
  margin-bottom: 24px !important;
  box-sizing: border-box !important;
}
.contact-page .contact-card:last-child {
  margin-bottom: 0 !important;
}
.contact-page .contact-card h2 {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--cp-heading) !important;
  margin: 0 0 20px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--cp-card-border) !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}
.contact-page .contact-card h3 {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--cp-heading) !important;
  margin: 0 0 6px !important;
}
.contact-page .contact-card label {
  display: block !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  color: var(--cp-muted) !important;
  margin-bottom: 4px !important;
}
.contact-page .contact-card a {
  color: var(--cp-text) !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}
.contact-page .contact-card a:hover {
  opacity: .8 !important;
}
.contact-page .contact-card > div > span {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--cp-text) !important;
}
.contact-page .contact-card p {
  color: var(--cp-muted) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  margin: 0 0 14px !important;
}

/* Form Card */
.contact-page .contact-form-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    var(--cp-card-bg) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 12px !important;
  padding: 32px !important;
  box-sizing: border-box !important;
  box-shadow: 0 20px 55px rgba(0,0,0,.42) !important;
  position: sticky;
  top: 100px;
  overflow: hidden;
}
.contact-page .contact-form-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--star-gold), rgba(220,201,163,.3)) !important;
  border-radius: 12px 12px 0 0 !important;
}
.contact-page .contact-form-card h2,
.contact-page .contact-form-card .form-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--cp-heading) !important;
  letter-spacing: .04em !important;
  line-height: 1.3 !important;
  margin: 0 0 24px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
.contact-page .form-title-date {
  font-weight: 400 !important;
  color: var(--star-gold) !important;
  font-size: 18px !important;
}
html[data-theme='light'] .contact-page .form-title-date {
  color: #8a7a4e !important;
}

.contact-page .form-quote-badge {
  display: inline-block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  color: #0b0b0b !important;
  background: var(--star-gold) !important;
  padding: 3px 12px !important;
  border-radius: 4px !important;
  margin-bottom: 14px !important;
  text-transform: uppercase !important;
}
.contact-page .contact-field {
  margin-bottom: 16px !important;
}
.contact-page .contact-field--message {
  margin-bottom: 24px !important;
}
.contact-page .contact-field-label {
  display: block !important;
  margin: 0 0 8px !important;
  color: rgba(255,255,255,.76) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html[data-theme='light'] .contact-page .contact-form-card {
  background: #fff !important;
  border-color: rgba(0,0,0,.1) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.08) !important;
}
html[data-theme='light'] .contact-page .contact-form-card h2,
html[data-theme='light'] .contact-page .contact-form-card .form-title {
  border-bottom-color: rgba(0,0,0,.08) !important;
}
html[data-theme='light'] .contact-page .contact-field-label {
  color: rgba(0,0,0,.68) !important;
}
@media (max-width: 900px) {
  .contact-page .contact-form-card {
    position: static;
    padding: 20px !important;
  }
}

/* Form Inputs */
.contact-page .contact-form input,
.contact-page .contact-form select,
.contact-page .contact-form textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--cp-input-bg) !important;
  color: var(--cp-text) !important;
  border: 1px solid var(--cp-input-border) !important;
  border-radius: 8px !important;
  min-height: 54px !important;
  padding: 0 15px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
  outline: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease !important;
}
.contact-page .contact-form input,
.contact-page .contact-form textarea {
  appearance: none !important;
  -webkit-appearance: none !important;
}
.contact-page .contact-form input::placeholder,
.contact-page .contact-form textarea::placeholder {
  color: var(--cp-muted) !important;
  opacity: .7 !important;
}
.contact-page .contact-form input:focus,
.contact-page .contact-form select:focus,
.contact-page .contact-form textarea:focus {
  border-color: rgba(220,201,163,.7) !important;
  box-shadow: 0 0 0 3px rgba(220,201,163,.12) !important;
}
.contact-page .contact-form textarea {
  min-height: 126px !important;
  padding-top: 14px !important;
  resize: vertical !important;
}
.contact-page .contact-form select.contact-native-select {
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  background-image: none !important;
  padding-right: 15px !important;
  cursor: pointer !important;
}
.contact-page .contact-form select option {
  background: #141414 !important;
  color: #f5f5f5 !important;
}
html[data-theme='light'] .contact-page .contact-form select option {
  background: #fff !important;
  color: #1a1a1a !important;
}

.contact-page .contact-form optgroup {
  font-weight: 600 !important;
  color: var(--star-gold) !important;
  background: #0b0b0b !important;
  font-size: 13px !important;
  letter-spacing: .04em !important;
  padding: 4px 0 !important;
}
html[data-theme='light'] .contact-page .contact-form optgroup {
  background: #fff !important;
  color: #8a7a4e !important;
}

/* Submit Button */
.contact-page .contact-submit {
  width: 100% !important;
  height: 54px !important;
  padding: 0 20px !important;
  background: linear-gradient(135deg, var(--star-gold), var(--star-gold)) !important;
  border: none !important;
  color: #0b0b0b !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-family: inherit !important;
  box-shadow: 0 4px 20px rgba(220,201,163,.25) !important;
  transition: all .25s ease !important;
}
.contact-page .contact-submit:hover {
  background: linear-gradient(135deg, var(--star-gold), var(--star-gold)) !important;
  box-shadow: 0 6px 28px rgba(220,201,163,.4) !important;
  transform: translateY(-2px) !important;
}
.contact-page .contact-submit:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(220,201,163,.2) !important;
}

/* Google Map wrapper in Contact */
.contact-page .mercedes-map-wrapper {
  width: 100% !important;
  padding-bottom: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  border: 1px solid var(--cp-card-border) !important;
  background: #101010 !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}
.contact-page .mercedes-map-wrapper iframe {
  display: block !important;
  width: 100% !important;
  height: 240px !important;
  border: 0 !important;
  position: static !important;
}

/* Mobile font-size safety */
@media (max-width: 768px) {
  .contact-page .contact-card {
    padding: 20px !important;
  }
  .contact-page .contact-form input,
  .contact-page .contact-form select,
  .contact-page .contact-form textarea {
    font-size: 16px !important; /* Prevents iOS zoom */
  }
  .contact-page .contact-form-card {
    padding: 20px !important;
  }
}

/* =============================================================
   TASK 3 — TOC CẢI TIẾN + GOOGLE MAP WRAPPER (bài Bình Dương)
   ============================================================= */

/* --- TOC Plugin cũ (toc_container) cải tiến mobile collapse --- */
@media (max-width: 768px) {
  #toc_container > ul.toc_list {
    max-height: 55vh !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(220,201,163,.3) transparent !important;
  }
}

/* --- Google Map Wrapper cho entry-content trong single posts --- */
.entry-content .mercedes-map-wrapper,
.single-post-page .mercedes-map-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: #101010 !important;
  margin: 20px 0 !important;
  box-sizing: border-box !important;
  padding-bottom: 0 !important;
  height: auto !important;
}
.entry-content .mercedes-map-wrapper iframe,
.single-post-page .mercedes-map-wrapper iframe {
  display: block !important;
  width: 100% !important;
  min-height: 360px !important;
  border: 0 !important;
  position: static !important;
}
html[data-theme='light'] .entry-content .mercedes-map-wrapper,
html[data-theme='light'] .single-post-page .mercedes-map-wrapper {
  border-color: rgba(0,0,0,.12) !important;
  background: #f0f0f0 !important;
}
@media (max-width: 768px) {
  .entry-content .mercedes-map-wrapper,
  .single-post-page .mercedes-map-wrapper {
    border-radius: 16px !important;
    margin: 18px 0 !important;
  }
  .entry-content .mercedes-map-wrapper iframe,
  .single-post-page .mercedes-map-wrapper iframe {
    min-height: 280px !important;
  }
}

/* TOC tổng quát: không underline link, không tràn ngang */
#toc_container,
#ez-toc-container,
.ez-toc-container,
.toc_container,
.rank-math-toc,
.wp-block-rank-math-toc-block {
  overflow: hidden !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}
#toc_container a,
#ez-toc-container a,
.ez-toc-container a,
.rank-math-toc a {
  text-decoration: none !important;
  text-underline-offset: unset !important;
  box-shadow: none !important;
}

/* =============================================================
   UI FIX 2026-07-02 — CHATBOT, PRODUCT TOC, PRODUCT CONTENT WIDTH
   ============================================================= */

/* Chatbot toggle: no broken image fallback, Mercedes black/white style */
.mb-chatbot-root {
  right: 22px !important;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 999999 !important;
}

.chatbot-toggle,
.chat-button,
.ai-chat-button,
.floating-chat,
.mercedes-chat-button,
.mb-chatbot-toggle {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  border-radius: 999px !important;
  background: #050505 !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  box-shadow: 0 14px 35px rgba(0,0,0,.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  overflow: hidden !important;
}

.chatbot-toggle img,
.chat-button img,
.ai-chat-button img,
.floating-chat img,
.mercedes-chat-button img,
.mb-chatbot-toggle img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  display: block !important;
}

.chatbot-toggle img:not([src]),
.chatbot-toggle img[src=""],
.chat-button img:not([src]),
.chat-button img[src=""],
.ai-chat-button img:not([src]),
.ai-chat-button img[src=""],
.floating-chat img:not([src]),
.floating-chat img[src=""],
.mercedes-chat-button img:not([src]),
.mercedes-chat-button img[src=""],
.mb-chatbot-toggle img:not([src]),
.mb-chatbot-toggle img[src=""] {
  display: none !important;
}

.mb-chatbot-toggle-icon {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
}

.mb-chatbot-icon {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.mb-chatbot-avatar,
.mb-msg-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  background: #050505 !important;
}

/* Product/model detail content width and media safety */
.single-product .mercedes-wc-description-content,
.single-product .woocommerce-Tabs-panel,
.single-product .entry-content,
.single-product .post-content,
.product-detail-content,
.model-detail-content,
.vehicle-detail-content {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.single-product .mercedes-wc-description-content > *,
.single-product .woocommerce-Tabs-panel > *,
.single-product .entry-content > *,
.single-product .post-content > *,
.product-detail-content > *,
.model-detail-content > *,
.vehicle-detail-content > * {
  max-width: 100% !important;
}

.single-product .mercedes-wc-description-content :where(p, li),
.single-product .woocommerce-Tabs-panel :where(p, li),
.single-product .entry-content :where(p, li),
.single-product .post-content :where(p, li),
.product-detail-content :where(p, li),
.model-detail-content :where(p, li),
.vehicle-detail-content :where(p, li) {
  width: 100% !important;
  max-width: 100% !important;
}

.single-product .mercedes-wc-description-content :where(img, picture, video, iframe),
.single-product .woocommerce-Tabs-panel :where(img, picture, video, iframe),
.single-product .entry-content :where(img, picture, video, iframe),
.single-product .post-content :where(img, picture, video, iframe),
.product-detail-content :where(img, picture, video, iframe),
.model-detail-content :where(img, picture, video, iframe),
.vehicle-detail-content :where(img, picture, video, iframe) {
  max-width: 100% !important;
}

.single-product .mercedes-wc-description-content img,
.single-product .woocommerce-Tabs-panel img,
.single-product .entry-content img,
.product-detail-content img,
.model-detail-content img,
.vehicle-detail-content img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

.single-product .mercedes-wc-description-content :where(table, figure),
.single-product .woocommerce-Tabs-panel :where(table, figure),
.single-product .entry-content :where(table, figure),
.product-detail-content :where(table, figure),
.model-detail-content :where(table, figure),
.vehicle-detail-content :where(table, figure) {
  width: 100% !important;
  max-width: 100% !important;
}

.single-product .mercedes-wc-description-content :where(h2, h3, h4),
.single-product .woocommerce-Tabs-panel :where(h2, h3, h4),
.product-detail-content :where(h2, h3, h4),
.model-detail-content :where(h2, h3, h4),
.vehicle-detail-content :where(h2, h3, h4) {
  scroll-margin-top: 110px;
}

/* TOC: product/model detail readable in dark/light, including legacy blue TOC */
#toc_container,
#toc_container.toc_light_blue,
#ez-toc-container,
.ez-toc-container,
.toc,
.toc_container,
.table-of-contents,
.rank-math-toc,
.wp-block-rank-math-toc-block,
.product-detail .toc,
.model-detail .toc,
.single-product .toc,
.single-product #toc_container,
.single-product #ez-toc-container,
.single-product .ez-toc-container,
.single-product .table-of-contents,
.single-product .rank-math-toc,
.single-product .wp-block-rank-math-toc-block {
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 24px !important;
  padding: 16px !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  box-shadow: none !important;
}

body:not(.light-mode) #toc_container,
body:not(.light-mode) #toc_container.toc_light_blue,
body:not(.light-mode) #ez-toc-container,
body:not(.light-mode) .ez-toc-container,
body:not(.light-mode) .toc,
body:not(.light-mode) .toc_container,
body:not(.light-mode) .table-of-contents,
body:not(.light-mode) .rank-math-toc,
body:not(.light-mode) .wp-block-rank-math-toc-block,
html[data-theme="dark"] #toc_container,
html[data-theme="dark"] #toc_container.toc_light_blue,
html[data-theme="dark"] #ez-toc-container,
html[data-theme="dark"] .ez-toc-container,
html[data-theme="dark"] .toc,
html[data-theme="dark"] .toc_container,
html[data-theme="dark"] .table-of-contents,
html[data-theme="dark"] .rank-math-toc,
html[data-theme="dark"] .wp-block-rank-math-toc-block {
  background: linear-gradient(135deg, #0B0B0B, #151515) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #f5f5f5 !important;
}

body.light-mode #toc_container,
body.light-mode #toc_container.toc_light_blue,
body.light-mode #ez-toc-container,
body.light-mode .ez-toc-container,
body.light-mode .toc,
body.light-mode .toc_container,
body.light-mode .table-of-contents,
body.light-mode .rank-math-toc,
body.light-mode .wp-block-rank-math-toc-block,
html[data-theme="light"] #toc_container,
html[data-theme="light"] #toc_container.toc_light_blue,
html[data-theme="light"] #ez-toc-container,
html[data-theme="light"] .ez-toc-container,
html[data-theme="light"] .toc,
html[data-theme="light"] .toc_container,
html[data-theme="light"] .table-of-contents,
html[data-theme="light"] .rank-math-toc,
html[data-theme="light"] .wp-block-rank-math-toc-block {
  background: #f7f7f7 !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  color: #222 !important;
}

#toc_container *,
#ez-toc-container *,
.ez-toc-container *,
.toc *,
.toc_container *,
.table-of-contents *,
.rank-math-toc *,
.wp-block-rank-math-toc-block * {
  color: inherit !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

#toc_container .toc_title,
#ez-toc-container :where(.ez-toc-title, .ez-toc-title-container),
.ez-toc-container :where(.ez-toc-title, .ez-toc-title-container),
.toc-title,
.table-of-contents :where(h2, h3),
.rank-math-toc :where(h2, h3),
.wp-block-rank-math-toc-block :where(h2, h3) {
  color: inherit !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  margin: 0 0 12px !important;
}

#toc_container :where(ul, ol),
#ez-toc-container :where(ul, ol),
.ez-toc-container :where(ul, ol),
.toc :where(ul, ol),
.toc_container :where(ul, ol),
.table-of-contents :where(ul, ol),
.rank-math-toc :where(ul, ol),
.wp-block-rank-math-toc-block :where(ul, ol) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

#toc_container :where(li),
#ez-toc-container :where(li),
.ez-toc-container :where(li),
.toc :where(li),
.toc_container :where(li),
.table-of-contents :where(li),
.rank-math-toc :where(li),
.wp-block-rank-math-toc-block :where(li) {
  list-style: none !important;
  margin: 0 !important;
  padding: 5px 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#toc_container :where(ul ul, ol ol),
#ez-toc-container :where(ul ul, ol ol),
.ez-toc-container :where(ul ul, ol ol),
.toc :where(ul ul, ol ol),
.toc_container :where(ul ul, ol ol),
.table-of-contents :where(ul ul, ol ol),
.rank-math-toc :where(ul ul, ol ol),
.wp-block-rank-math-toc-block :where(ul ul, ol ol) {
  padding-left: 14px !important;
  margin-top: 3px !important;
}

#toc_container a,
#ez-toc-container a,
#ez-toc-container .ez-toc-link,
.ez-toc-container a,
.ez-toc-container .ez-toc-link,
.toc a,
.toc_container a,
.table-of-contents a,
.rank-math-toc a,
.wp-block-rank-math-toc-block a {
  color: inherit !important;
  text-decoration: none !important;
  opacity: .92 !important;
  line-height: 1.55 !important;
  border: 0 !important;
}

#toc_container a:hover,
#ez-toc-container a:hover,
#ez-toc-container .ez-toc-link:hover,
.ez-toc-container a:hover,
.ez-toc-container .ez-toc-link:hover,
.toc a:hover,
.toc_container a:hover,
.table-of-contents a:hover,
.rank-math-toc a:hover,
.wp-block-rank-math-toc-block a:hover {
  color: inherit !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

#toc_container .toc_number,
#ez-toc-container :where(.toc_number, .ez-toc-counter),
.ez-toc-container :where(.toc_number, .ez-toc-counter),
.toc :where(.toc_number, .ez-toc-counter),
.rank-math-toc :where(.toc_number, .ez-toc-counter),
.wp-block-rank-math-toc-block :where(.toc_number, .ez-toc-counter) {
  color: #bdbdbd !important;
  opacity: 1 !important;
}

html[data-theme="light"] #toc_container .toc_number,
html[data-theme="light"] #ez-toc-container :where(.toc_number, .ez-toc-counter),
html[data-theme="light"] .ez-toc-container :where(.toc_number, .ez-toc-counter),
html[data-theme="light"] .toc :where(.toc_number, .ez-toc-counter),
html[data-theme="light"] .rank-math-toc :where(.toc_number, .ez-toc-counter),
html[data-theme="light"] .wp-block-rank-math-toc-block :where(.toc_number, .ez-toc-counter),
body.light-mode #toc_container .toc_number,
body.light-mode #ez-toc-container :where(.toc_number, .ez-toc-counter),
body.light-mode .ez-toc-container :where(.toc_number, .ez-toc-counter),
body.light-mode .toc :where(.toc_number, .ez-toc-counter),
body.light-mode .rank-math-toc :where(.toc_number, .ez-toc-counter),
body.light-mode .wp-block-rank-math-toc-block :where(.toc_number, .ez-toc-counter) {
  color: #666 !important;
}

@media (max-width: 768px) {
  .mb-chatbot-root {
    right: 14px !important;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .chatbot-toggle,
  .chat-button,
  .ai-chat-button,
  .floating-chat,
  .mercedes-chat-button,
  .mb-chatbot-toggle {
    width: 66px !important;
    height: 66px !important;
    min-width: 66px !important;
    min-height: 66px !important;
  }

  .single-product article,
  .single-product .entry-content,
  .single-product .post-content,
  .product-detail,
  .model-detail,
  .product-detail-content,
  .model-detail-content,
  .vehicle-detail-content,
  .woocommerce div.product,
  .woocommerce div.product.mercedes-wc-product-detail,
  .woocommerce-Tabs-panel,
  .mercedes-wc-product-info-sections,
  .mercedes-wc-product-description-section .container,
  .mercedes-wc-product-description-section .container--narrow {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  .single-product .mercedes-wc-description-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  .single-product p,
  .single-product li,
  .product-detail-content p,
  .product-detail-content li,
  .model-detail-content p,
  .model-detail-content li,
  .vehicle-detail-content p,
  .vehicle-detail-content li {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  #toc_container,
  #toc_container.toc_light_blue,
  #ez-toc-container,
  .ez-toc-container,
  .toc,
  .toc_container,
  .table-of-contents,
  .rank-math-toc,
  .wp-block-rank-math-toc-block {
    padding: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-height: 55vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #toc_container > ul.toc_list,
  #ez-toc-container :where(ul, ol),
  .ez-toc-container :where(ul, ol),
  .toc :where(ul, ol),
  .toc_container :where(ul, ol),
  .table-of-contents :where(ul, ol),
  .rank-math-toc :where(ul, ol),
  .wp-block-rank-math-toc-block :where(ul, ol) {
    max-height: 55vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.single-product main,
  body.single-product .mercedes-wc-product-shell,
  body.single-product .mercedes-wc-product-info-sections,
  .model-detail-page {
    padding-bottom: 126px !important;
  }
}

/* ==========================================================================
   SINGLE POST STANDARD OVERRIDES
   ========================================================================== */

/* 1. CHUẨN MOBILE BÀI VIẾT */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  .single-post .site-main,
  .single-post .content-area,
  .single-post article,
  .single-post .entry-content,
  .single-post .post-content,
  .single-post .article-content,
  .single-post .wp-block-group,
  .single-post .wp-block-columns {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  .single-post .entry-content > *,
  .single-post .post-content > *,
  .single-post article > * {
    max-width: 100% !important;
  }

  .single-post p,
  .single-post li,
  .single-post blockquote {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    overflow-wrap: break-word !important;
  }

  .single-post h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
    margin: 24px 0 16px !important;
  }

  .single-post h2 {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin: 28px 0 14px !important;
  }

  .single-post h3 {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin: 22px 0 12px !important;
  }

  .single-post img,
  .single-post video,
  .single-post iframe {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .single-post iframe {
    width: 100% !important;
    min-height: 280px;
  }

  .single-post table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap;
  }

  .single-post th,
  .single-post td {
    padding: 12px 14px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
}

/* 2. CHUẨN PC / DESKTOP BÀI VIẾT */
@media (min-width: 769px) {
  .single-post .site-main,
  .single-post .content-area,
  .single-post article,
  .single-post .entry-content,
  .single-post .post-content,
  .single-post .article-content {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  .single-post p,
  .single-post li {
    font-size: 18px;
    line-height: 1.8;
  }

  .single-post h1 {
    font-size: 46px;
    line-height: 1.15;
  }

  .single-post h2 {
    font-size: 34px;
    line-height: 1.25;
  }

  .single-post h3 {
    font-size: 26px;
    line-height: 1.3;
  }

  .single-post img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* 3. DARK/LIGHT MODE CHO BÀI VIẾT */
:root {
  --article-bg: #ffffff;
  --article-text: #1A1A1A;
  --article-heading: #000000;
  --article-secondary: #555555;
  --article-muted: #888888;
  --article-link: var(--star-gold);
  --article-link-hover: #000000;
  --article-border: rgba(0,0,0,.12);
}

body.dark-mode,
[data-theme="dark"] {
  --article-bg: #050505;
  --article-text: #F5F5F5;
  --article-heading: #FFFFFF;
  --article-secondary: #CFCFCF;
  --article-muted: #9A9A9A;
  --article-link: var(--star-gold);
  --article-link-hover: #FFFFFF;
  --article-border: rgba(255,255,255,.14);
}

.single-post {
  background: var(--article-bg);
  color: var(--article-text);
}

.single-post .entry-content,
.single-post .post-content,
.single-post article {
  color: var(--article-text);
}

.single-post h1,
.single-post h2,
.single-post h3,
.single-post h4,
.single-post h5,
.single-post h6 {
  color: var(--article-heading);
}

.single-post p,
.single-post li,
.single-post blockquote,
.single-post td,
.single-post th {
  color: var(--article-text);
}

.single-post small,
.single-post figcaption,
.single-post .meta,
.single-post .post-meta,
.single-post .caption {
  color: var(--article-secondary);
}

.single-post a {
  color: var(--article-link);
}

.single-post a:hover {
  color: var(--article-link-hover);
}

.single-post strong,
.single-post b {
  color: var(--article-heading);
}

/* 4. CHUẨN TOC / MỤC LỤC TOÀN BỘ BÀI VIẾT */
.single-post .ez-toc-container,
.single-post #ez-toc-container,
.single-post .toc,
.single-post .table-of-contents,
.single-post .rank-math-toc,
.single-post .wp-block-rank-math-toc-block {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 18px 0 24px !important;
  padding: 16px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #0B0B0B, #151515) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #f5f5f5 !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.28) !important;
}

.single-post .ez-toc-container *,
.single-post #ez-toc-container *,
.single-post .toc *,
.single-post .table-of-contents *,
.single-post .rank-math-toc *,
.single-post .wp-block-rank-math-toc-block * {
  color: inherit !important;
}

.single-post .ez-toc-container a,
.single-post #ez-toc-container a,
.single-post .toc a,
.single-post .table-of-contents a,
.single-post .rank-math-toc a,
.single-post .wp-block-rank-math-toc-block a {
  color: #f5f5f5 !important;
  text-decoration: none !important;
  opacity: .92 !important;
  line-height: 1.55 !important;
}

.single-post .ez-toc-container a:hover,
.single-post #ez-toc-container a:hover,
.single-post .toc a:hover,
.single-post .table-of-contents a:hover,
.single-post .rank-math-toc a:hover,
.single-post .wp-block-rank-math-toc-block a:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

body.light-mode.single-post .ez-toc-container,
body.light-mode.single-post #ez-toc-container,
body.light-mode.single-post .toc,
body.light-mode.single-post .table-of-contents,
body.light-mode.single-post .rank-math-toc,
body.light-mode.single-post .wp-block-rank-math-toc-block,
[data-theme="light"] .single-post .ez-toc-container,
[data-theme="light"] .single-post #ez-toc-container,
[data-theme="light"] .single-post .toc,
[data-theme="light"] .single-post .table-of-contents,
[data-theme="light"] .single-post .rank-math-toc,
[data-theme="light"] .single-post .wp-block-rank-math-toc-block {
  background: #f7f7f7 !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  color: #222222 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.08) !important;
}

body.light-mode.single-post .ez-toc-container a,
body.light-mode.single-post #ez-toc-container a,
body.light-mode.single-post .toc a,
body.light-mode.single-post .table-of-contents a,
body.light-mode.single-post .rank-math-toc a,
body.light-mode.single-post .wp-block-rank-math-toc-block a,
[data-theme="light"] .single-post .ez-toc-container a,
[data-theme="light"] .single-post #ez-toc-container a,
[data-theme="light"] .single-post .toc a,
[data-theme="light"] .single-post .table-of-contents a,
[data-theme="light"] .single-post .rank-math-toc a,
[data-theme="light"] .single-post .wp-block-rank-math-toc-block a {
  color: #222222 !important;
}

@media (max-width: 768px) {
  .single-post .ez-toc-container,
  .single-post #ez-toc-container,
  .single-post .toc,
  .single-post .table-of-contents,
  .single-post .rank-math-toc,
  .single-post .wp-block-rank-math-toc-block {
    padding: 14px !important;
    max-height: 55vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .single-post .ez-toc-container a,
  .single-post #ez-toc-container a,
  .single-post .toc a,
  .single-post .table-of-contents a,
  .single-post .rank-math-toc a,
  .single-post .wp-block-rank-math-toc-block a {
    font-size: 15px !important;
    line-height: 1.55 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

/* 5. GOOGLE MAP / IFRAME / IMAGE */
.single-post .mercedes-map-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--article-border);
  background: #101010;
  margin: 20px 0;
}

.single-post .mercedes-map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

@media (max-width: 768px) {
  .single-post .mercedes-map-wrapper {
    border-radius: 16px;
    margin: 18px 0;
  }

  .single-post .mercedes-map-wrapper iframe {
    min-height: 280px;
  }
}

/* 6. FLOATING BUTTONS KHÔNG CHE BÀI VIẾT */
@media (max-width: 768px) {
  .single-post .entry-content,
  .single-post .post-content,
  .single-post article {
    padding-bottom: 140px !important;
  }
}

/* --- FIX POPUP QUOTE — PREMIUM REDESIGN --- */
body.show-quote-popup .spu-box,
body.show-quote-popup .pum,
body.show-quote-popup .wppopups-whole {
  position: relative;
  overflow: hidden;
  background: #101010 !important;
  border: 1px solid rgba(220,201,163,.28) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.55) !important;
  padding: 28px !important;
  width: min(560px, calc(100vw - 32px)) !important;
  max-width: none !important;
  max-height: calc(100vh - 80px) !important;
}

body.show-quote-popup .spu-box::before,
body.show-quote-popup .pum::before,
body.show-quote-popup .wppopups-whole::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--star-gold), rgba(220,201,163,.25)) !important;
  z-index: 1 !important;
}

body.show-quote-popup .spu-bg,
body.show-quote-popup .pum-overlay {
  background: rgba(0,0,0,.72) !important;
  backdrop-filter: blur(8px) !important;
  cursor: pointer !important;
}

body.show-quote-popup .spu-box h2,
body.show-quote-popup .spu-box h3,
body.show-quote-popup .pum h2,
body.show-quote-popup .pum h3,
body.show-quote-popup .popup-title,
body.show-quote-popup .form-title {
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  margin: 0 48px 18px 0 !important;
  line-height: 1.3 !important;
}

body.show-quote-popup .spu-close,
body.show-quote-popup .pum-close,
body.show-quote-popup .popmake-close,
body.show-quote-popup .wppopups-close,
body.show-quote-popup .popup-close {
  top: 14px !important;
  right: 14px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  background: rgba(255,255,255,.1) !important;
  border-radius: 999px !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  z-index: 100001 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transition: all .2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.show-quote-popup .spu-close:hover,
body.show-quote-popup .pum-close:hover,
body.show-quote-popup .popmake-close:hover,
body.show-quote-popup .wppopups-close:hover,
body.show-quote-popup .popup-close:hover {
  background: rgba(220,201,163,.2) !important;
  border-color: var(--star-gold) !important;
  transform: scale(1.08) !important;
}

body.show-quote-popup .spu-box input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.show-quote-popup .spu-box select,
body.show-quote-popup .spu-box textarea,
body.show-quote-popup .pum input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.show-quote-popup .pum select,
body.show-quote-popup .pum textarea {
  min-height: 52px !important;
  height: auto !important;
  border-radius: 10px !important;
  background: #171717 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #fff !important;
  padding: 0 14px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  outline: none !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
  box-sizing: border-box !important;
}

body.show-quote-popup .spu-box textarea,
body.show-quote-popup .pum textarea {
  min-height: 100px !important;
  padding-top: 14px !important;
  resize: vertical !important;
}

body.show-quote-popup .spu-box input:focus,
body.show-quote-popup .spu-box select:focus,
body.show-quote-popup .spu-box textarea:focus,
body.show-quote-popup .pum input:focus,
body.show-quote-popup .pum select:focus,
body.show-quote-popup .pum textarea:focus {
  border-color: rgba(220,201,163,.6) !important;
  box-shadow: 0 0 0 3px rgba(220,201,163,.1) !important;
}

body.show-quote-popup .spu-box input[type="submit"],
body.show-quote-popup .spu-box button[type="submit"],
body.show-quote-popup .pum input[type="submit"],
body.show-quote-popup .pum button[type="submit"] {
  height: 54px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--star-gold), var(--star-gold)) !important;
  border: none !important;
  color: #0b0b0b !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 20px rgba(220,201,163,.25) !important;
  cursor: pointer !important;
  transition: all .25s ease !important;
  width: 100% !important;
  font-family: inherit !important;
}

body.show-quote-popup .spu-box input[type="submit"]:hover,
body.show-quote-popup .spu-box button[type="submit"]:hover,
body.show-quote-popup .pum input[type="submit"]:hover,
body.show-quote-popup .pum button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--star-gold), var(--star-gold)) !important;
  box-shadow: 0 6px 28px rgba(220,201,163,.4) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
  body.show-quote-popup .spu-box,
  body.show-quote-popup .pum,
  body.show-quote-popup .wppopups-whole {
    width: calc(100vw - 28px) !important;
    max-height: calc(100vh - 90px) !important;
    padding: 20px !important;
    border-radius: 16px !important;
  }
  
  body.show-quote-popup .spu-box h2,
  body.show-quote-popup .spu-box h3,
  body.show-quote-popup .pum h2,
  body.show-quote-popup .pum h3,
  body.show-quote-popup .popup-title,
  body.show-quote-popup .form-title {
    font-size: 18px !important;
    margin-right: 44px !important;
  }
}

body.show-quote-popup .spu-box .loading,
body.show-quote-popup .spu-box .spinner,
body.show-quote-popup .spu-box .gear,
body.show-quote-popup .spu-box .wpcf7-spinner,
body.show-quote-popup .pum .loading,
body.show-quote-popup .pum .spinner,
body.show-quote-popup .pum .gear,
body.show-quote-popup .pum .wpcf7-spinner,
body.show-quote-popup .ajax-loader {
  display: none !important;
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-page {
  background: #050505;
  color: #f5f5f5;
  min-height: 100vh;
}
.faq-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 20px 96px;
}
.faq-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.faq-eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--star-gold);
  margin: 0 0 14px;
}
.faq-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 18px;
}
.faq-hero > p {
  color: #cfcfcf;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.faq-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.faq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.faq-btn--primary {
  background: linear-gradient(135deg, var(--star-gold), var(--star-gold));
  color: #000;
}
.faq-btn--primary:hover {
  opacity: .88;
  transform: translateY(-1px);
}
.faq-btn--ghost {
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}
.faq-btn--ghost:hover {
  border-color: var(--star-gold);
  color: var(--star-gold);
}

.faq-list {
  display: grid;
  gap: 14px;
}
.faq-item {
  background: #101010;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  min-height: 62px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.faq-question:hover {
  background: rgba(255,255,255,.03);
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 20px 20px;
  color: #cfcfcf;
  line-height: 1.75;
  font-size: 15.5px;
}
.faq-answer p {
  margin: 0;
}
.faq-answer a {
  color: var(--star-gold);
  text-decoration: underline;
}

/* Light mode */
html[data-theme="light"] .faq-page {
  background: #fff;
  color: #1a1a1a;
}
html[data-theme="light"] .faq-hero h1 {
  color: #000;
}
html[data-theme="light"] .faq-hero > p {
  color: #555;
}
html[data-theme="light"] .faq-item {
  background: #f7f7f7;
  border-color: rgba(0,0,0,.12);
}
html[data-theme="light"] .faq-question {
  color: #111;
}
html[data-theme="light"] .faq-question:hover {
  background: rgba(0,0,0,.02);
}
html[data-theme="light"] .faq-icon {
  border-color: rgba(0,0,0,.18);
}
html[data-theme="light"] .faq-answer {
  color: #555;
}
html[data-theme="light"] .faq-btn--ghost {
  border-color: rgba(0,0,0,.2);
  color: #111;
}
html[data-theme="light"] .faq-btn--ghost:hover {
  border-color: var(--star-gold);
  color: var(--star-gold);
}

html[data-theme="light"] .faq-answer a {
  color: #a8893c;
}

@media (max-width: 768px) {
  .faq-container {
    padding: 44px 16px 130px;
  }
  .faq-hero {
    text-align: left;
    margin-bottom: 24px;
  }
  .faq-ctas {
    justify-content: flex-start;
  }

  .faq-question {
    min-height: 58px;
    padding: 16px;
    font-size: 16px;
  }
  .faq-answer {
    padding: 0 16px 18px;
    font-size: 15.5px;
  }
}

/* =============================================================
   FOOTER BRAND & SOCIAL
   ============================================================= */
.site-footer .footer-brand-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.site-footer .footer-brand img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  .site-footer .footer-brand img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  .site-footer .footer-brand-social {
    gap: 10px;
    margin-bottom: 16px;
  }
}

/* =============================================================
   TEST DRIVE PAGE COLOR OVERRIDES
   ============================================================= */
.test-drive-page .car-price,
.test-drive-page .model-price,
.test-drive-page .vehicle-price,
.test-drive-page .test-drive-card-price,
.test-drive-page .price,
.test-drive-page .model-card__price,
.page-test-drive .car-price,
.page-test-drive .model-price,
.page-test-drive .vehicle-price,
.page-test-drive .test-drive-card-price,
.page-test-drive .price,
.page-test-drive .model-card__price,
body.test-drive-list-page .model-card__price,
body.test-drive-list-page .price {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  opacity: 1 !important;
}

.test-drive-page .car-fuel,
.test-drive-page .model-fuel,
.test-drive-page .vehicle-fuel,
.test-drive-page .fuel-tag,
.test-drive-page .badge,
.test-drive-page .tag,
.test-drive-page .fuel-pill,
.test-drive-page .model-card__tag,
.page-test-drive .car-fuel,
.page-test-drive .model-fuel,
.page-test-drive .vehicle-fuel,
.page-test-drive .fuel-tag,
.page-test-drive .badge,
.page-test-drive .tag,
.page-test-drive .fuel-pill,
.page-test-drive .model-card__tag,
body.test-drive-list-page .fuel-pill,
body.test-drive-list-page .model-card__tag,
body.test-drive-list-page .fuel-tag {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  opacity: 1 !important;
}

/* =============================================================
   SINGLE PRODUCT GALLERY FIXES
   ============================================================= */
.single-product .image-placeholder:empty,
.single-product .lazy-placeholder:empty,
.single-product .skeleton-image:empty,
.single-product .product-image-placeholder:empty,
.single-product .product-media-placeholder:empty,
.single-product .spec-image-placeholder:empty,
.single-product .feature-image-placeholder:empty {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product img,
.single-product .entry-content img,
.single-product .product-content img,
.single-product .woocommerce-product-gallery img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.single-product .is-loading,
.single-product .loading,
.single-product .skeleton {
  animation: none !important;
}

.woocommerce div.product.mercedes-wc-product-detail.no-product-images {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

/* =============================================================
   PRODUCT HERO LAYOUT
   ============================================================= */
.single-product .mercedes-product-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.single-product .mercedes-product-breadcrumb {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.single-product .mercedes-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 48px;
  align-items: start;
}

.single-product .mercedes-product-main-image {
  background: #fff;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}

.single-product .mercedes-product-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.single-product .mercedes-product-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.single-product .mercedes-product-thumbs button {
  flex: 0 0 84px;
  width: 84px;
  height: 64px;
  border: 1px solid rgba(255,255,255,.18);
  background: #111;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.single-product .mercedes-product-thumbs button.is-active {
  border-color: var(--star-gold);
}

.single-product .mercedes-product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-product .mercedes-product-summary h1 {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.05;
}

.single-product .product-price,
.single-product .price {
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  margin: 22px 0;
}

.single-product .mercedes-product-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.single-product .mercedes-product-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 28px auto;
}

@media (max-width: 768px) {
  .single-product .mercedes-product-hero {
    padding: 22px 16px 36px;
  }

  .single-product .mercedes-product-layout {
    display: block;
  }

  .single-product .mercedes-product-gallery {
    margin-bottom: 34px;
  }

  .single-product .mercedes-product-main-image {
    max-width: 100%;
  }

  .single-product .mercedes-product-thumbs button {
    flex-basis: 72px;
    width: 72px;
    height: 56px;
  }

  .single-product .mercedes-product-summary h1 {
    font-size: clamp(34px, 10vw, 52px);
  }
}

/* =============================================================
   FOOTER & SOCIAL ICON FIXES
   ============================================================= */
.site-footer img,
.footer img {
  max-width: 100%;
  height: auto;
}

.site-footer .footer-logo img,
.site-footer .brand-logo img,
.site-footer .mercedes-footer-logo img,
.site-footer .footer-brand img,
.footer-logo img {
  width: 82px !important;
  height: 82px !important;
  max-width: 82px !important;
  max-height: 82px !important;
  object-fit: contain !important;
}

.site-footer .social-links img,
.site-footer .footer-social img,
.site-footer .social-icon img,
.site-footer a[href*="facebook"] img,
.site-footer img[src*="facebook"],
.footer-social img,
.social-links img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

.site-footer .social-links,
.site-footer .footer-social,
.site-footer .footer-brand-social,
.footer-social {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

@media (max-width: 768px) {
  .site-footer .footer-logo img,
  .site-footer .brand-logo img,
  .site-footer .mercedes-footer-logo img,
  .site-footer .footer-brand img,
  .footer-logo img {
    width: 68px !important;
    height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
  }

  .site-footer .social-links img,
  .site-footer .footer-social img,
  .site-footer .social-icon img,
  .site-footer a[href*="facebook"] img,
  .site-footer img[src*="facebook"],
  .footer-social img,
  .social-links img {
    width: var(--footer-social-icon-mobile, 34px) !important;
    height: var(--footer-social-icon-mobile, 34px) !important;
    max-width: var(--footer-social-icon-mobile, 34px) !important;
    max-height: var(--footer-social-icon-mobile, 34px) !important;
    min-width: var(--footer-social-icon-mobile, 34px) !important;
    min-height: var(--footer-social-icon-mobile, 34px) !important;
  }
}

/* =============================================================
   TEST DRIVE DYNAMIC COLORS
   ============================================================= */
.test-drive-page .model-card__price,
.models-page .model-card__price,
.model-card__price {
  color: var(--test-drive-price-color) !important;
}

.test-drive-page .fuel-pill,
.models-page .fuel-pill,
.fuel-pill,
.model-card__tag {
  color: var(--test-drive-fuel-tag-color) !important;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.single-product,
.single-product * {
  box-sizing: border-box;
}

.single-product .mercedes-product-hero,
.single-product .mercedes-product-content {
  width: 100%;
  max-width: 1180px;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .single-product .mercedes-product-hero,
  .single-product .mercedes-product-content,
  .single-product .entry-content,
  .single-product .product-content {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  .single-product .mercedes-product-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .single-product .mercedes-product-gallery,
  .single-product .mercedes-product-summary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .single-product .mercedes-product-main-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .single-product .mercedes-product-main-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
  }

  .single-product .mercedes-product-thumbs {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
  }

  .single-product .mercedes-product-thumbs button {
    flex: 0 0 68px !important;
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    height: 54px !important;
  }

  .single-product .mercedes-product-summary h1,
  .single-product .product_title,
  .single-product h1.product_title {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto !important;
    font-size: clamp(30px, 9vw, 44px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0.035em !important;
    text-align: left !important;
  }

  .single-product .product-kicker,
  .single-product .mercedes-product-summary,
  .single-product .product-price,
  .single-product .product-short-description,
  .single-product .woocommerce-product-details__short-description {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
  }

  .single-product .product-short-description ul,
  .single-product .woocommerce-product-details__short-description ul {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    margin-left: 0 !important;
    overflow-wrap: break-word !important;
  }

  .single-product .product-short-description li,
  .single-product .woocommerce-product-details__short-description li {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 18px !important;
    line-height: 1.62 !important;
    overflow-wrap: break-word !important;
  }

  .single-product .product-actions,
  .single-product .mercedes-product-actions,
  .single-product .product-cta,
  .single-product .summary .button,
  .single-product .button {
    width: 100% !important;
    max-width: 100% !important;
  }

  .single-product .product-actions a,
  .single-product .mercedes-product-actions a,
  .single-product .product-cta a,
  .single-product .summary .button,
  .single-product a.button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
    overflow-wrap: break-word !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .single-product .posted_in,
  .single-product .tagged_as,
  .single-product .product_meta {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}

/* ==================================================
   Responsive Base
================================================== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
}

/* ==================================================
   Header Responsive
================================================== */
.site-header {
  width: 100%;
  /* overflow-x: hidden removed: it turned the header into a clip box that cut off the
     absolutely-positioned language dropdown, and (together with backdrop-filter) the fixed
     mobile menu. Horizontal scroll is now prevented on <body> via overflow-x: clip, which does
     not create a scroll container and does not clip descendants vertically. */
  overflow: visible;
}

/* Prevent horizontal scroll without creating a scroll container (safe for sticky header + fixed menu). */
body {
  overflow-x: clip;
}

.site-header .brand,
.site-header .header-actions {
  min-width: 0;
}

/* ==================================================
   Desktop / Màn lớn constraints
================================================== */
.container,
.site-container,
.mercedes-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================================================
   Breakpoints
================================================== */

/* 360px - Android nhỏ */
@media (max-width: 374px) {
  .site-header .brand img,
  .site-header .custom-logo {
    max-width: 40px;
  }
  .home-hero h1,
  .hero__content h1 {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.05;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .home-hero .hero-actions,
  .hero__actions {
    width: 100%;
    flex-direction: column;
  }
  .home-hero .hero-actions a,
  .hero__actions a {
    width: 100%;
    max-width: 100%;
  }
  .zalo-button-floating,
  .phone-button-floating,
  .mercedes-button-floating {
    width: 52px;
    height: 52px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

/* 390px - iPhone 12/13/14/15 */
@media (min-width: 375px) and (max-width: 414px) {
  .site-header .brand img,
  .site-header .custom-logo {
    max-width: 44px;
  }
  .home-hero h1,
  .hero__content h1 {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: 0.025em;
  }
  .home-hero .hero-actions,
  .hero__actions {
    width: 100%;
  }
  .home-hero .hero-actions a,
  .hero__actions a {
    width: 100%;
    max-width: 100%;
  }
  .zalo-button-floating,
  .phone-button-floating,
  .mercedes-button-floating {
    width: 54px;
    height: 54px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

/* 430px - iPhone Pro Max */
@media (min-width: 415px) and (max-width: 767px) {
  .site-header .brand img,
  .site-header .custom-logo {
    max-width: 44px;
  }
  .home-hero h1,
  .hero__content h1 {
    font-size: clamp(36px, 10vw, 50px);
    letter-spacing: 0.025em;
  }
  .home-hero .hero-actions,
  .hero__actions {
    width: 100%;
  }
  .home-hero .hero-actions a,
  .hero__actions a {
    width: 100%;
    max-width: 100%;
  }
  .zalo-button-floating,
  .phone-button-floating,
  .mercedes-button-floating {
    width: 58px;
    height: 58px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

/* 768px - iPad dọc */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header .brand img,
  .site-header .custom-logo {
    max-width: 50px;
  }
  .home-hero h1,
  .hero__content h1 {
    font-size: clamp(48px, 6vw, 60px);
    line-height: 1.05;
  }
}

/* 1024px - iPad ngang / laptop nhỏ */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header .brand img,
  .site-header .custom-logo {
    max-width: 52px;
  }
}

/* 1366px - laptop phổ biến */
@media (min-width: 1280px) and (max-width: 1439px) {
  .site-header .brand img,
  .site-header .custom-logo {
    max-width: 54px;
  }
}

/* 1440px - desktop phổ biến */
@media (min-width: 1440px) and (max-width: 1919px) {
  .site-header .brand img,
  .site-header .custom-logo {
    max-width: 56px;
  }
  .container,
  .site-container,
  .mercedes-container {
    max-width: 1280px;
  }
}

/* 1920px - màn lớn */
@media (min-width: 1920px) {
  .site-header .brand img,
  .site-header .custom-logo {
    max-width: 56px;
  }
  .container,
  .site-container,
  .mercedes-container {
    max-width: 1440px;
  }
}

/* ==================================================
   Product Detail (Base additions to what was added earlier)
================================================== */
.single-product .mercedes-product-layout,
.single-product .mercedes-product-gallery,
.single-product .mercedes-product-summary,
.single-product .mercedes-product-content {
  min-width: 0;
}

@media (max-width: 767px) {
  .single-product .mercedes-product-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .single-product .mercedes-product-summary h1,
  .single-product h1.product_title {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-size: clamp(30px, 9vw, 44px) !important;
    line-height: 1.08 !important;
  }

  .single-product .mercedes-product-thumbs {
    overflow-x: auto !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .single-product .mercedes-product-actions a,
  .single-product a.button {
    width: 100% !important;
    max-width: 100% !important;
  }

  .single-product .entry-content,
  .single-product .mercedes-product-content,
  .single-product .product-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .single-product .entry-content p,
  .single-product .mercedes-product-content p,
  .single-product .product-content p {
    font-size: 17px !important;
    line-height: 1.72 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  .single-product .entry-content img,
  .single-product .mercedes-product-content img,
  .single-product .product-content img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* ==================================================
   FAQ Responsive
================================================== */
.faq-container,
.page-faq .elementor-container {
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .faq-container,
  .page-faq .elementor-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .faq-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  .faq-accordion {
    width: 100%;
  }
}

/* ==================================================
   Footer Responsive
================================================== */
@media (max-width: 767px) {
  .site-footer .social-icons img,
  .footer-social img {
    width: 34px !important;
    height: 34px !important;
  }
  .site-footer .footer-logo img {
    max-width: 68px !important;
  }
  .site-footer {
    padding-bottom: 120px; /* Safe padding for floating buttons */
  }
}

@media (min-width: 768px) {
  .site-footer .social-icons img,
  .footer-social img {
    width: 36px !important;
    height: 36px !important;
  }
  .site-footer .footer-logo img {
    max-width: 82px !important;
  }
}

/* ==================================================
   Home Vehicle Groups Layout Fix
================================================== */
#models {
  overflow-x: hidden !important;
}

#models .container {
  max-width: 1280px !important;
  width: 100% !important;
}

#models .home-model-tabs,
#models .home-car-tabs,
#models .models-filter {
  position: static !important;
  top: auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 44px !important;
  padding: 0 16px 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

#models .home-model-tabs .filter-btn,
#models .home-car-tabs .filter-btn,
#models .models-filter .filter-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

#models #models-grid.home-model-grid,
#models .home-model-grid {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  overflow-x: hidden !important;
}

#models .home-model-group {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 72px !important;
  clear: both !important;
}

#models .home-model-group.filtered-out {
  display: none !important;
}

#models .home-model-group__header {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 0 36px !important;
  padding-bottom: 16px !important;
  clear: both !important;
}

#models .home-model-group__header h3 {
  margin: 0 !important;
}

#models .home-model-subgroup {
  display: block !important;
  width: 100% !important;
  margin: 0 0 42px !important;
}

#models .home-model-subgroup h4 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 18px !important;
}

#models .home-model-items {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
}

#models .home-car-card,
#models .home-model-card,
#models .model-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#models .home-car-card .model-card__body,
#models .home-model-card .model-card__body {
  min-width: 0 !important;
}

#models .home-car-card .model-card__actions,
#models .home-model-card .model-card__actions,
#models .model-card__actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
}

#models .home-car-card .model-card__actions a,
#models .home-model-card .model-card__actions a,
#models .model-card__actions a {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  text-align: center !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  font-size: 10.5px !important;
}

#models .home-car-card .model-card__tag,
#models .home-car-card .car-code,
#models .home-car-card .product-code,
#models .home-car-card .model-code,
#models .home-model-card .model-card__tag {
  color: rgba(255, 255, 255, 0.62) !important;
}

#models .home-car-card .model-card__body h3,
#models .home-car-card .model-card__body h3 a,
#models .home-car-card .car-title,
#models .home-car-card .product-title,
#models .home-model-card .model-card__body h3,
#models .home-model-card .model-card__body h3 a {
  color: #e8d7a2 !important;
}

#models .home-car-card .model-card__price,
#models .home-model-card .model-card__price {
  color: rgba(255, 255, 255, 0.82) !important;
}

@media (max-width: 1279px) {
  #models .home-model-items {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1023px) {
  #models .home-model-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  #models #models-grid.home-model-grid,
  #models .home-model-grid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #models .home-model-items {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #models .home-model-group {
    margin-bottom: 48px !important;
  }
}

@media (max-width: 390px) {
  #models .home-car-card .model-card__actions,
  #models .home-model-card .model-card__actions,
  #models .model-card__actions {
    flex-direction: column !important;
  }

  #models .home-car-card .model-card__actions a,
  #models .home-model-card .model-card__actions a,
  #models .model-card__actions a {
    width: 100% !important;
  }
}

/* ==================================================
   Home Vehicle Mobile Card Final Fix
================================================== */
#models {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  scroll-margin-top: 128px !important;
}

body.admin-bar #models {
  scroll-margin-top: 154px !important;
}

#models #models-grid.home-model-grid,
#models .home-model-grid {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

#models .home-model-group,
#models .home-model-subgroup {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#models .home-model-items {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  box-sizing: border-box !important;
}

#models .home-car-card,
#models .home-model-card,
#models .model-card {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#models .home-car-card img,
#models .home-model-card img,
#models .model-card img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

#models .home-model-tabs,
#models .home-car-tabs,
#models .models-filter {
  position: static !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  max-width: 100% !important;
  -webkit-overflow-scrolling: touch !important;
}

#models .home-model-tabs button,
#models .home-car-tabs button,
#models .models-filter button,
#models .home-model-tabs .filter-btn,
#models .home-car-tabs .filter-btn,
#models .models-filter .filter-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

#models .home-car-card .model-card__tag,
#models .home-car-card .car-code,
#models .home-car-card .product-code,
#models .home-car-card .model-code,
#models .home-model-card .model-card__tag,
#models .home-model-card .car-code,
#models .home-model-card .product-code,
#models .home-model-card .model-code,
#models .model-card .model-card__tag,
#models .model-card .car-code,
#models .model-card .product-code,
#models .model-card .model-code {
  color: rgba(255, 255, 255, 0.62) !important;
}

@media (max-width: 1279px) {
  #models .home-model-items {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1023px) {
  #models .home-model-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  #models .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  #models #models-grid.home-model-grid,
  #models .home-model-grid {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #models .home-model-tabs,
  #models .home-car-tabs,
  #models .models-filter {
    justify-content: flex-start !important;
    gap: 10px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-bottom: 32px !important;
  }

  #models .home-model-items {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #models .home-car-card,
  #models .home-model-card,
  #models .model-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #models .home-car-card .model-card__actions,
  #models .home-model-card .model-card__actions,
  #models .model-card__actions,
  #models .home-car-card .card-actions,
  #models .home-model-card .card-actions,
  #models .model-card .card-actions,
  #models .home-car-card .product-actions,
  #models .home-model-card .product-actions,
  #models .model-card .product-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #models .home-car-card .model-card__actions a,
  #models .home-model-card .model-card__actions a,
  #models .model-card__actions a,
  #models .home-car-card .card-actions a,
  #models .home-model-card .card-actions a,
  #models .model-card .card-actions a,
  #models .home-car-card .product-actions a,
  #models .home-model-card .product-actions a,
  #models .model-card .product-actions a,
  #models .home-car-card a.button,
  #models .home-model-card a.button,
  #models .model-card a.button,
  #models .home-car-card .btn--card-primary,
  #models .home-model-card .btn--card-primary,
  #models .model-card .btn--card-primary,
  #models .home-car-card .btn--card-secondary,
  #models .home-model-card .btn--card-secondary,
  #models .model-card .btn--card-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}



/* =============================================================
   FIX: Header clickability — ensure no overlay blocks clicks
   ============================================================= */
.site-header .nav a,
.site-header .header-actions a,
.site-header .header-actions button,
.site-header .lang-btn,
.site-header .menu-toggle {
  position: relative;
  z-index: 1;
  cursor: pointer;
}

/* =============================================================
   FIX: Home card without image — compact text-only
   ============================================================= */
.home-car-card.card--no-image {
  min-height: 0;
}
.home-car-card.card--no-image .model-card__image {
  display: none !important;
}
.home-car-card.card--no-image .model-card__body {
  padding: 20px 16px;
}

#models .home-car-card img,
#models .home-model-card img,
#models .model-card img,
#models .product-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  transform: scale(1.04) !important;
  transform-origin: center center !important;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#models .home-car-card .model-card__image,
#models .home-model-card .model-card__image,
#models .model-card .model-card__image,
#models .product-card .model-card__image {
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

#models .model-card:hover .model-card__image img,
#models .home-model-card:hover .model-card__image img {
  transform: scale(1.08) !important;
}



.site-header *,
.header *,
.main-header *,
.mercedes-header * {
  pointer-events: auto !important;
}

.mobile-menu:not(.is-open),
.site-mobile-menu:not(.is-open),
.header-mobile-menu:not(.is-open),
.nav-drawer:not(.is-open),
.lang-dropdown:not(.show) {
  pointer-events: none !important;
  visibility: hidden !important;
}

.chatbot,
.chat-widget,
.floating-contact,
.zalo-floating,
.phone-floating,
.mercedes-floating {
  z-index: 999 !important;
}

/* =============================================================
   FIX: Single product/post mobile content width
   ============================================================= */
@media (max-width: 767px) {
  body.single-product .site-main,
  body.single-product main,
  body.single-product .content-area,
  body.single-product .entry-content,
  body.single-product .woocommerce,
  body.single-product .product,
  body.single-product .mercedes-wc-product-shell,
  body.single-product .mercedes-wc-product-detail,
  body.single-product .mercedes-product-hero,
  body.single-product .mercedes-product-content,
  body.single-product .mercedes-wc-product-info-sections,
  body.single-product .mercedes-wc-product-info-sections .container,
  body.single-product .mercedes-wc-product-info-sections .container--narrow,
  body.single-product .mercedes-wc-description-content,
  body.single main,
  body.single .site-main,
  body.single .content-area,
  body.single .entry-content,
  body.single .single-post-page,
  body.single .single-post-layout,
  body.single .single-post-main,
  body.single .mb-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  body.single-product .mercedes-product-layout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
    overflow-x: hidden !important;
  }

  body.single-product .mercedes-wc-product-shell,
  body.single-product .mercedes-product-content,
  body.single-product .mercedes-wc-product-info-sections,
  body.single-product .mercedes-wc-description-content,
  body.single .single-post-page,
  body.single .single-post-layout,
  body.single .single-post-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.single-product .entry-content > *,
  body.single-product .mercedes-wc-description-content > *,
  body.single .entry-content > * {
    max-width: 100% !important;
  }

  body.single-product .entry-content p,
  body.single-product .mercedes-wc-description-content p,
  body.single .entry-content p {
    font-size: 18px !important;
    line-height: 1.75 !important;
    max-width: 100% !important;
  }

  body.single-product .entry-content img,
  body.single-product .mercedes-wc-description-content img,
  body.single .entry-content img,
  body.single .post-featured-image img,
  body.single-product .woocommerce-product-gallery img,
  body.single-product .mercedes-product-main-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.single-product .entry-content figure,
  body.single-product .mercedes-wc-description-content figure,
  body.single .entry-content figure,
  body.single .post-featured-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.single-product,
  body.single {
    overflow-x: hidden !important;
  }
}

/* =============================================================
   RESPONSIVE PLAN TASK 1: Base
   ============================================================= */
html {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

*,
*::before,
*::after {
  box-sizing: inherit !important;
}

body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100% !important;
  height: auto;
}

.container,
.site-container,
.content-container,
.site-main,
main,
section {
  max-width: 100% !important;
}

/* =============================================================
   RESPONSIVE PLAN TASK 2: Container adaptive
   ============================================================= */
.site-container,
.container,
.wrap,
.content-wrap {
  width: min(100% - 32px, 1440px) !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 430px) {
  .site-container,
  .container,
  .wrap,
  .content-wrap {
    width: min(100% - 24px, 100%) !important;
  }
}

@media (min-width: 1440px) {
  .site-container,
  .container,
  .wrap,
  .content-wrap {
    width: min(100% - 80px, 1440px) !important;
  }
}

/* =============================================================
   RESPONSIVE PLAN TASK 3: Fluid typography
   ============================================================= */
h1,
.hero-title,
.home-hero-title,
.mercedes-hero-title,
.product-title,
.product_title,
.entry-title {
  font-size: clamp(32px, 7vw, 88px);
  line-height: 0.95;
  overflow-wrap: break-word;
}

h2,
.section-title,
.models-heading,
.mercedes-wc-section-title {
  font-size: clamp(26px, 5vw, 56px);
  line-height: 1.08;
  overflow-wrap: break-word;
}

h3,
.card-title,
.model-card__body h3,
.product-title,
.car-title {
  font-size: clamp(18px, 3.2vw, 28px);
  line-height: 1.2;
  overflow-wrap: break-word;
}

p,
li,
.entry-content,
.mercedes-wc-description-content,
.woocommerce-product-details__short-description {
  font-size: clamp(15px, 2.6vw, 20px);
  line-height: 1.65;
}

button,
.btn,
a.button,
.button,
.mercedes-wc-btn,
.btn--card-primary,
.btn--card-secondary {
  font-size: clamp(12px, 2.2vw, 15px);
  white-space: normal;
}

/* =============================================================
   RESPONSIVE PLAN TASK 4: Header responsive
   ============================================================= */


.header-inner,
.site-header__inner,
.site-header__container,
.mercedes-header__inner {
  width: min(100% - 24px, 1440px) !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(8px, 2vw, 24px) !important;
  min-width: 0 !important;
}

.logo img,
.site-logo img,
.brand img,
.site-branding img,
.site-header .custom-logo,
.site-header__logo img {
  width: clamp(42px, 7vw, 72px) !important;
  height: auto !important;
  max-width: clamp(42px, 7vw, 72px) !important;
}



@media (max-width: 767px) {
  .desktop-nav,
  .primary-nav,
  .main-navigation:not(.mobile-menu):not(.site-mobile-menu) {
    display: none !important;
  }

  .mobile-menu-toggle,
  .hamburger,
  .menu-toggle,
  .site-header__toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    min-height: 44px !important;
    pointer-events: auto !important;
  }
}

/* =============================================================
   RESPONSIVE PLAN TASK 5: Hero responsive
   ============================================================= */
.home-hero,
.front-page-hero {
  min-height: clamp(560px, 90vh, 980px) !important;
  padding: clamp(48px, 8vw, 120px) clamp(16px, 4vw, 64px) !important;
  overflow: hidden !important;
}

.hero-content,
.home-hero__content,
.hero__content {
  width: min(100%, 900px) !important;
  max-width: 900px !important;
  min-width: 0 !important;
}

.hero-actions,
.hero__actions,
.cta-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  max-width: 100% !important;
}

.hero-actions a,
.hero__actions a,
.cta-group a,
.hero-actions button,
.hero__actions button,
.cta-group button {
  flex: 1 1 180px !important;
  min-height: 44px !important;
  min-width: 0 !important;
  text-align: center !important;
}

/* =============================================================
   RESPONSIVE PLAN TASK 6: Product grid responsive
   ============================================================= */
.home-model-grid,
.models-grid,
.car-grid,
.product-grid,
#models #models-grid.home-model-grid,
#models .home-model-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(16px, 3vw, 32px) !important;
}

@media (max-width: 389px) {
  .home-model-grid,
  .models-grid,
  .car-grid,
  .product-grid,
  #models #models-grid.home-model-grid,
  #models .home-model-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 390px) {
  .home-model-grid,
  .models-grid,
  .car-grid,
  .product-grid,
  #models #models-grid.home-model-grid,
  #models .home-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .home-model-grid,
  .models-grid,
  .car-grid,
  .product-grid,
  #models #models-grid.home-model-grid,
  #models .home-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1280px) {
  .home-model-grid,
  .models-grid,
  .car-grid,
  .product-grid,
  #models #models-grid.home-model-grid,
  #models .home-model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1920px) {
  .home-model-grid,
  .models-grid,
  .car-grid,
  .product-grid,
  #models #models-grid.home-model-grid,
  #models .home-model-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* =============================================================
   RESPONSIVE PLAN TASK 7: Product card responsive
   ============================================================= */
.home-model-card,
.model-card,
.car-card,
.product-card {
  min-width: 0 !important;
  overflow: hidden !important;
}

.home-model-card img,
.model-card img,
.car-card img,
.product-card img {
  width: 100% !important;
  height: clamp(150px, 28vw, 260px) !important;
  object-fit: contain !important;
  transform: scale(1.1) !important;
  transform-origin: center center !important;
}

.card-actions,
.product-actions,
.model-actions,
.model-card__actions,
.mercedes-related-actions {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.card-actions a,
.product-actions a,
.model-actions a,
.model-card__actions a,
.mercedes-related-actions a {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 389px) {
  .card-actions,
  .product-actions,
  .model-actions,
  .model-card__actions,
  .mercedes-related-actions {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }
}

/* =============================================================
   RESPONSIVE PLAN TASK 8: Single product/post responsive
   ============================================================= */
@media (max-width: 767px) {
  body.single-product .site-main,
  body.single-product main,
  body.single-product .content-area,
  body.single-product .entry-content,
  body.single-product .mercedes-wc-product-detail,
  body.single-product .mercedes-product-hero,
  body.single-product .mercedes-product-content,
  body.single-product .mercedes-wc-product-info-sections .container,
  body.single-product .mercedes-wc-product-info-sections .container--narrow,
  body.single .site-main,
  body.single main,
  body.single .content-area,
  body.single .entry-content,
  body.single .single-post-layout,
  body.single .single-post-main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body.single-product .mercedes-wc-description-content,
  body.single .entry-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.single-product .entry-content img,
  body.single-product .mercedes-wc-description-content img,
  body.single .entry-content img,
  body.single .post-featured-image img,
  body.single-product figure,
  body.single figure {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* =============================================================
   RESPONSIVE PLAN TASK 9: Table/form responsive
   ============================================================= */
table {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

input,
textarea,
select,
button {
  max-width: 100% !important;
}

form {
  width: 100% !important;
  max-width: 100% !important;
}

/* =============================================================
   RESPONSIVE PLAN TASK 10: Floating buttons responsive
   ============================================================= */
.floating-contact,
.zalo-floating,
.phone-floating,
.mercedes-floating,
.zalo-chat-widget,
.phone-ring {
  max-width: calc(100vw - 24px) !important;
}

@media (max-width: 430px) {
  .floating-contact,
  .zalo-floating,
  .phone-floating,
  .zalo-chat-widget,
  .phone-ring {
    transform: scale(0.9) !important;
    transform-origin: bottom left !important;
  }
}

/* =========================================================
   V8 Update: Homepage Card Adjustments
   ========================================================= */

/* Ensure description and 'Giá từ' are hidden if they ever exist */
.home-model-card .model-card__desc {
  display: none !important;
}

/* 1. Image Adjustments: 16:9, Cover, No crop on head/tail */
.home-model-card .model-card__image {
  aspect-ratio: 16 / 9 !important;
  display: block !important;
  overflow: hidden !important;
}

.home-model-card .model-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 30% !important; /* Move focal point slightly up to keep the car head/roof */
  transform: scale(1) !important; /* Remove the default zoom that causes cropping */
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.home-model-card:hover .model-card__image img {
  transform: scale(1.03) !important; /* Gentle zoom on hover */
}

/* 2. Fix Spacing to look balanced */
.home-model-card .model-card__body {
  padding: 24px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex: 1 !important;
}

.home-model-card .model-card__body h3 {
  margin-bottom: 12px !important;
}

.home-model-card .model-card__price {
  margin-bottom: 24px !important;
}

.home-model-card .model-card__actions {
  margin-top: auto !important;
}

/* Fix header menu clickability */
.site-header,
.header,
.main-header,
.mercedes-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}



.site-header *,
.header *,
.main-header *,
.mercedes-header * {
  pointer-events: auto !important;
}

.menu-toggle,
.hamburger,
.mobile-menu-toggle,
[data-menu-toggle],
.lang-toggle,
.language-toggle {
  position: relative !important;
  z-index: 100001 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.mobile-menu,
.site-mobile-menu,
.header-mobile-menu,
.nav-drawer,
[data-mobile-menu] {
  z-index: 100000 !important;
  pointer-events: auto !important;
}

.chatbot,
.chat-widget,
.floating-contact,
.zalo-floating,
.phone-floating,
.mercedes-floating-button {
  z-index: 1000 !important;
}

body.mobile-menu-open .mobile-menu,
body.mobile-menu-open .site-mobile-menu,
body.mobile-menu-open .header-mobile-menu,
body.mobile-menu-open .nav-drawer,
body.mobile-menu-open .main-navigation,
.mobile-menu.is-open,
.site-mobile-menu.is-open,
.header-mobile-menu.is-open,
.nav-drawer.is-open,
.main-navigation.is-open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Contact desktop + R2 logo stabilization */
.site-header .brand {
  flex: 0 0 auto !important;
  min-width: 64px !important;
}

body[data-brand-theme="mercedes"] .site-header .brand .logo-mercedes {
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
}

.site-footer .footer-brand img {
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (min-width: 769px) {
  .site-header__container {
    min-width: 0 !important;
    gap: 16px !important;
  }

  .site-header .nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    justify-content: center !important;
    gap: clamp(12px, 1.35vw, 20px) !important;
  }

  .site-header .nav a {
    font-size: clamp(10.5px, .86vw, 12px) !important;
    letter-spacing: .07em !important;
  }

  .site-header .header-right {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    gap: 12px !important;
  }

  .site-header .header-actions {
    gap: 14px !important;
  }

  .site-header .btn--header {
    min-width: 124px !important;
    padding: 0 12px !important;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .site-header .brand .logo-img,
  .site-header .brand .logo-mercedes {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }

  .site-header .hotline-link span {
    display: none !important;
  }

  .site-header .btn--header {
    min-width: 112px !important;
    font-size: 11px !important;
  }
}

@media (min-width: 1024px) {
  .contact-page {
    padding-top: 112px !important;
    padding-bottom: 112px !important;
  }

  .contact-page .contact-container {
    width: min(100% - 56px, 1240px) !important;
    max-width: 1240px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .contact-page .contact-hero {
    margin-bottom: 40px !important;
  }

  .contact-page .contact-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: clamp(32px, 4vw, 52px) !important;
    align-items: start !important;
  }

  .contact-page .contact-grid.contact-grid--has-form {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px) !important;
  }

  .contact-page .contact-left,
  .contact-page .contact-right {
    min-width: 0 !important;
  }

  .contact-page .contact-card,
  .contact-page .contact-form-card {
    border-radius: 10px !important;
  }

  .contact-page .contact-card {
    padding: 26px !important;
    margin-bottom: 22px !important;
  }

  .contact-page .contact-form-card {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-width: 440px !important;
    margin-left: auto !important;
    padding: 28px !important;
    overflow: visible !important;
  }

  .contact-page .contact-form-card h2,
  .contact-page .contact-form-card .form-title {
    font-size: 19px !important;
    margin-bottom: 20px !important;
    padding-bottom: 14px !important;
  }

  .contact-page .contact-field {
    margin-bottom: 14px !important;
  }

  .contact-page .contact-form input,
  .contact-page .contact-form select,
  .contact-page .contact-form textarea {
    min-height: 50px !important;
  }

  .contact-page .contact-form textarea {
    min-height: 112px !important;
  }

  .contact-page .contact-submit {
    height: 52px !important;
  }

  .contact-page .mercedes-map-wrapper iframe {
    height: 220px !important;
  }
}

@media (min-width: 1280px) {
  .contact-page .contact-grid.contact-grid--has-form {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 460px) !important;
  }

  .contact-page .contact-form-card {
    max-width: 460px !important;
  }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .contact-page {
    padding-bottom: 132px !important;
  }

  .contact-page .contact-form-card {
    padding: 24px !important;
  }

  .contact-page .contact-form input,
  .contact-page .contact-form select,
  .contact-page .contact-form textarea {
    min-height: 48px !important;
  }

  .contact-page .contact-form textarea {
    min-height: 96px !important;
  }
}

/* Hero mobile video/banner layout fix */
@media (max-width: 768px) {
  .hero-wrapper .hero,
  body[data-brand-theme="mercedes"] .hero-wrapper .hero-mercedes {
    height: 75vh !important;
    min-height: 500px !important;
    max-height: 700px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;
  }

  .hero-wrapper .hero__video {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .hero-wrapper .hero__overlay {
    height: 100% !important;
  }

  .hero-wrapper .hero__container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px 50px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  .hero-wrapper .hero__content {
    width: 100% !important;
    max-width: calc(100% - 32px) !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .hero-wrapper .hero__content .eyebrow {
    max-width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  .hero-wrapper .hero__content h1,
  .hero-wrapper .hero__content h1[data-t="hero_mb_title"] {
    max-width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto !important;
    font-family: var(--font-heading) !important;
    font-size: clamp(24px, 7vw, 36px) !important;
    line-height: 1.05 !important;
    letter-spacing: 0.01em !important;
  }

  .hero-wrapper .hero__actions {
    width: 100% !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
  }

  .hero-wrapper .hero__actions .btn,
  .hero-wrapper .hero__actions a {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
  }
}

@media (max-width: 390px) {
  .hero-wrapper .hero__content h1,
  .hero-wrapper .hero__content h1[data-t="hero_mb_title"] {
    font-size: clamp(24px, 7vw, 36px) !important;
  }
}

/* Mobile menu icon: keep closed state as a 3-line hamburger. */
@media (max-width: 991px) {
  .site-header .menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .site-header .menu-toggle::before,
  .site-header .menu-toggle::after {
    content: none !important;
  }

  .site-header .menu-toggle span {
    display: block !important;
    flex: 0 0 auto !important;
    width: 24px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background-color: var(--text, #fff) !important;
    opacity: 1 !important;
    transform: none !important;
    transform-origin: center !important;
    transition: transform .24s ease, opacity .18s ease !important;
  }

  body.mobile-menu-open .site-header .menu-toggle span:nth-child(1),
  .site-header .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }

  body.mobile-menu-open .site-header .menu-toggle span:nth-child(2),
  .site-header .menu-toggle.is-active span:nth-child(2) {
    opacity: 0 !important;
  }

  body.mobile-menu-open .site-header .menu-toggle span:nth-child(3),
  .site-header .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }

  body:not(.mobile-menu-open) .site-header .menu-toggle:not(.is-active) span {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Product card detail CTA: keep the white button readable without touching quote CTA. */
html body .home-products-v8 .home-products-v8__card .home-products-v8__actions a.hp-detail,
html body .home-products-v8 .home-products-v8__card a.hp-detail {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

.home-products-v8 .home-products-v8__card .home-products-v8__actions a.hp-detail:hover,
.home-products-v8 .home-products-v8__card a.hp-detail:hover,
.home-products-v8 .home-products-v8__card .home-products-v8__actions a.hp-detail:focus-visible,
.home-products-v8 .home-products-v8__card a.hp-detail:focus-visible {
  color: #000 !important;
}

/* BrowserStack mobile layout fix: hero contrast/position and product text readability. */
.hero-wrapper .hero {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.hero-wrapper .hero__video {
  z-index: 0 !important;
}

.hero-wrapper .hero__overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.82) 100%
  ) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.hero-wrapper .hero__container {
  position: relative !important;
  z-index: 2 !important;
}

.hero-wrapper .hero__content,
.hero-wrapper .hero__content .eyebrow,
.hero-wrapper .hero__content h1,
.hero-wrapper .hero__content h1[data-t="hero_mb_title"] {
  color: #fff !important;
}

.hero-wrapper .hero__content h1,
.hero-wrapper .hero__content h1[data-t="hero_mb_title"] {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 767px) {
  .hero-wrapper .hero__container {
    display: grid !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 88px 16px 104px !important;
    min-height: 100% !important;
  }

  .hero-wrapper .hero__content {
    align-self: center !important;
    transform: translateY(22px) !important;
  }

  .hero-wrapper .hero__actions {
    margin-top: 20px !important;
  }
}

.home-products-v8 .home-products-v8__card .home-products-v8__body h4 {
  color: var(--star-gold) !important;
}

.home-products-v8 .home-products-v8__card[data-brand="amg"] .home-products-v8__body h4 {
  color: #e3000f !important;
}

.home-products-v8 .home-products-v8__card[data-brand="maybach"] .home-products-v8__body h4 {
  color: var(--star-gold) !important;
}

.home-products-v8 .home-products-v8__card .home-products-v8__price {
  color: #fff !important;
}

#models,
#models > .container,
.home-products-v8 {
  position: relative !important;
  z-index: 2 !important;
  isolation: isolate !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

#models::before,
#models::after,
#models > .container::before,
#models > .container::after,
.home-products-v8::before,
.home-products-v8::after {
  content: none !important;
  display: none !important;
}

.home-products-v8__head,
.home-products-v8__showing,
.home-products-v8__grid,
.home-products-v8__card {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.home-products-v8 .home-products-v8__head .home-products-v8__eyebrow,
.home-products-v8 .home-products-v8__head .home-products-v8__title,
.home-products-v8 .home-products-v8__head .home-products-v8__subtitle {
  font-family: var(--font-heading) !important;
}

.home-products-v8 .home-products-v8__head .home-products-v8__eyebrow {
  color: rgba(255, 255, 255, .8) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .8) !important;
}

.home-products-v8 .home-products-v8__head .home-products-v8__title {
  color: #fff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #fff !important;
}

.home-products-v8 .home-products-v8__head .home-products-v8__subtitle {
  color: rgba(255, 255, 255, .75) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .75) !important;
}

.home-products-v8 .home-products-v8__showing {
  color: rgba(255, 255, 255, .75) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .75) !important;
}

.home-products-v8 .home-products-v8__card .home-products-v8__actions a.hp-detail,
.home-products-v8 .home-products-v8__card a.hp-detail {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

/* Lower homepage sections: keep text readable on dark backgrounds without touching product cards. */
#amg.amg-showcase,
#maybach.maybach-showcase,
#offers,
#news {
  color: #fff !important;
}

#amg .amg-split__content h2,
#maybach .maybach-split__content h2,
#offers .section-heading h2,
#news .section-heading h2 {
  color: #fff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #fff !important;
}

#maybach .maybach-logo-text,
#offers .section-heading .eyebrow,
#news .section-heading .eyebrow,
#offers .offer-card__badge,
#news .news-card__date {
  color: var(--star-gold) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: var(--star-gold) !important;
}

#amg .amg-badge {
  color: #fff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #fff !important;
}

#amg .amg-split__content .lead,
#amg .amg-feat-item span,
#maybach .maybach-split__content .lead,
#maybach .maybach-feat-item span,
#offers .offer-card__content p,
#news .news-card p {
  color: rgba(255, 255, 255, .72) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .72) !important;
}

#amg .amg-feat-item strong,
#maybach .maybach-feat-item strong,
#offers .offer-card__content h3,
#news .news-card h3,
#news .news-card h3 a {
  color: #fff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #fff !important;
}

#offers .offer-card,
#news .news-card {
  color: #fff !important;
  opacity: 1 !important;
}

#offers .text-link,
#news .text-link,
#news .news-card > a:last-child {
  color: var(--star-gold) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: var(--star-gold) !important;
}

/* Homepage contact section text visibility fix (front-page.php #contact only) */
body.home #contact {
  position: relative;
  isolation: isolate;
}

body.home #contact .container {
  position: relative;
  z-index: 2;
}

body.home #contact .section-heading .eyebrow {
  color: rgba(255, 255, 255, 0.75) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.75) !important;
}

body.home #contact .section-heading h2 {
  color: #fff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #fff !important;
}

body.home #contact .section-heading .section-copy {
  color: rgba(255, 255, 255, 0.78) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
}

/* Multilingual Font family overrides */
body[data-lang="vi"],
html[lang^="vi"] body {
  --font-sans: var(--font-sans-base) !important;
  --font-heading: var(--font-heading-base) !important;
  --hero-title-font-family: var(--font-heading-base) !important;
  font-family: var(--font-sans) !important;
}

body[data-lang="en"],
html[lang^="en"] body {
  --font-sans: var(--font-sans-base) !important;
  --font-heading: var(--font-heading-base) !important;
  --hero-title-font-family: var(--font-heading-base) !important;
  font-family: var(--font-sans) !important;
}

body[data-lang="zh"],
html[lang^="zh"] body,
html[lang^="zh-CN"] body,
html[lang^="zh-Hans"] body {
  --font-sans: var(--font-cjk) !important;
  --font-heading: var(--font-cjk) !important;
  --hero-title-font-family: var(--font-cjk) !important;
  font-family: var(--font-sans) !important;
}

/* =============================================================
   TASK 03 – STANDARDIZED FORM STYLING (CSS ONLY)
   ============================================================= */
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border: 1px solid var(--form-border) !important;
  color: var(--text-secondary) !important;
  background-color: var(--form-bg) !important;
  border-radius: 4px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--gold-standard) !important;
  box-shadow: 0 0 0 3px var(--gold-focus-glow) !important;
  background-color: var(--form-bg-focus) !important;
}

/* Form controls placeholder */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--form-placeholder) !important;
  opacity: 1 !important;
}

:-ms-input-placeholder {
  color: var(--form-placeholder) !important;
}

::-ms-input-placeholder {
  color: var(--form-placeholder) !important;
}

/* =============================================================
   TASK 04 – STANDARDIZED FOOTER & DEALER READABILITY (WCAG AA)
   ============================================================= */
.site-footer {
  background-color: #000000 !important;
  border-top: 1px solid var(--form-border) !important;
}

.footer-col:not(.brand-col) strong {
  color: var(--gold-standard) !important;
}

.footer-col:not(.brand-col) a {
  color: var(--text-secondary) !important;
}

.footer-col:not(.brand-col) a:hover {
  color: var(--footer-link-hover, var(--star-gold)) !important;
}

.footer-bottom {
  color: var(--text-primary) !important;
  border-top: 1px solid var(--form-border) !important;
}

.brand-col p a,
.footer-bottom__left a,
.footer-bottom__right a {
  color: var(--text-secondary) !important;
}

.brand-col p a:hover,
.footer-bottom__left a:hover,
.footer-bottom__right a:hover {
  color: var(--footer-link-hover, var(--star-gold)) !important;
}

/* Dealer / Showroom Cards Readability */
.contact-page .contact-card {
  background-color: #0B0B0B !important;
  border: 1px solid var(--form-border) !important;
}

.contact-page .contact-card h2,
.contact-page .contact-card h3 {
  color: #FFFFFF !important;
}

.contact-page .contact-card p {
  color: var(--text-primary) !important;
}

.contact-page .contact-card a {
  color: var(--gold-standard) !important;
}

.contact-page .contact-card a:hover {
  color: var(--gold-light) !important;
  opacity: 1 !important;
}

.contact-page .contact-card > div > span {
  color: var(--text-secondary) !important;
}

/* =============================================================
   TASK 08 – MOBILE RESPONSIVENESS AUDIT & OVERFLOW PREVENTION
   ============================================================= */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

@media (max-width: 768px) {
  input, select, textarea, button, iframe, img, .card, .container, .footer-col, .form-group, .form-row {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
  }

  .contact-form {
    padding: 20px !important;
    margin-top: 24px !important;
  }

  .btn, .button, button, input[type="submit"] {
    min-height: 44px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
  }

  @media (max-width: 360px) {
    h1 {
      font-size: 1.8rem !important;
    }
    h2 {
      font-size: 1.5rem !important;
    }
    .hero-title, .section-heading h2 {
      font-size: 1.6rem !important;
    }
  }
}

/* =============================================================
   TASK 09 – KEYBOARD NAVIGATION FOCUS INDICATOR (ACCESSIBILITY)
   ============================================================= */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.button:focus-visible,
input[type="submit"]:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--gold-standard) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

/* =============================================================
   HOMEPAGE CONTACT — single form system
   This deliberately owns the front-page form on desktop and mobile.
   ============================================================= */
body.home #contact {
  --home-contact-panel: #111111;
  --home-contact-field: #1a1a1a;
  --home-contact-border: rgba(255, 255, 255, 0.14);
  --home-contact-border-hover: rgba(220, 201, 163, 0.72);
  --home-contact-copy: rgba(255, 255, 255, 0.72);
  --text-heading: #ffffff;
  --text-primary: rgba(255, 255, 255, 0.78);
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-accent: var(--star-gold);
}

body.home #contact .section-heading {
  margin-bottom: 0;
}

body.home #contact .section-heading .section-copy {
  margin: 12px auto 0 !important;
  font-size: 14px !important;
}

body.home #contact .contact-form {
  margin-top: 32px;
  padding: 36px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%), var(--home-contact-panel);
  border: 1px solid var(--home-contact-border);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

body.home #contact .contact-form .form-row {
  gap: 16px;
  margin-bottom: 16px;
}

body.home #contact .contact-form .form-group {
  gap: 7px;
  margin-bottom: 16px;
}

body.home #contact .contact-form .form-row .form-group {
  margin-bottom: 0;
}

body.home #contact .contact-form .form-group > label {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

body.home #contact .contact-form .form-group input,
body.home #contact .contact-form .form-group select,
body.home #contact .contact-form .form-group textarea {
  width: 100% !important;
  min-height: 54px;
  box-sizing: border-box !important;
  padding: 0 16px !important;
  margin: 0;
  background-color: var(--home-contact-field) !important;
  border: 1px solid var(--home-contact-border) !important;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.94) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: none !important;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.home #contact .contact-form .form-group textarea {
  min-height: 128px;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  line-height: 1.55;
  resize: vertical;
}

body.home #contact .contact-form .form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DCC9A3' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 18px !important;
}

body.home #contact .contact-form .form-group select:invalid {
  color: rgba(255, 255, 255, 0.60) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.60) !important;
}

body.home #contact .contact-form .form-group select option,
body.home #contact .contact-form .form-group optgroup {
  background-color: #171717;
  color: #ffffff;
}

body.home #contact .contact-form .form-group input::placeholder,
body.home #contact .contact-form .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.58) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.58) !important;
  opacity: 1;
}

body.home #contact .contact-form .form-group input:hover,
body.home #contact .contact-form .form-group select:hover,
body.home #contact .contact-form .form-group textarea:hover {
  border-color: rgba(255, 255, 255, 0.26) !important;
}

body.home #contact .contact-form .form-group input:focus,
body.home #contact .contact-form .form-group select:focus,
body.home #contact .contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--home-contact-border-hover) !important;
  background-color: #1e1e1e !important;
  box-shadow: 0 0 0 3px rgba(220, 201, 163, 0.12) !important;
}

body.home #contact .contact-form .form-group input:focus-visible,
body.home #contact .contact-form .form-group select:focus-visible,
body.home #contact .contact-form .form-group textarea:focus-visible {
  outline: 1px solid rgba(220, 201, 163, 0.60);
  outline-offset: 2px;
}

body.home #contact .form-actions {
  margin-top: 24px;
  text-align: center;
}

body.home #contact .form-actions button[type="submit"] {
  min-width: 260px;
  min-height: 52px !important;
  padding: 0 28px !important;
  border: 1px solid var(--star-gold) !important;
  border-radius: 4px;
  background-color: var(--star-gold) !important;
  color: #171717 !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.12em;
}

body.home #contact .form-actions button[type="submit"]:hover {
  background-color: transparent !important;
  color: var(--star-gold) !important;
}

body.home #contact .contact-privacy-note {
  max-width: 46ch;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

body.home #contact .contact-privacy-note a {
  color: var(--star-gold) !important;
}

body.home #contact .showroom-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
}

body.home #contact .showroom-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--home-contact-border);
  border-radius: 6px;
}

body.home #contact .showroom-card:hover {
  border-color: rgba(220, 201, 163, 0.42);
}

body.home #contact .showroom-card strong {
  color: var(--star-gold) !important;
}

body.home #contact .showroom-card p {
  color: var(--home-contact-copy) !important;
  -webkit-text-fill-color: var(--home-contact-copy) !important;
}

/* =============================================================
   SITE FOOTER – Text Visibility
   Color-only layer; scoped tokens resolve the earlier TASK 04 rules.
   ============================================================= */
.site-footer {
  --gold-standard: var(--star-gold);
  --text-accent: var(--star-gold);
  --text-heading: var(--star-gold);
  --text-secondary: rgba(255, 255, 255, .72);
  --text-primary: rgba(255, 255, 255, .68);
  --footer-link-hover: var(--star-gold);
  color: rgba(255, 255, 255, .68);
  -webkit-text-fill-color: rgba(255, 255, 255, .68);
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.site-footer .footer-col {
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.site-footer .footer-col strong,
.site-footer .footer-col h3 {
  color: var(--star-gold);
  -webkit-text-fill-color: var(--star-gold);
  opacity: 1;
}

.site-footer .footer-col a {
  color: rgba(255, 255, 255, .72);
  -webkit-text-fill-color: rgba(255, 255, 255, .72);
  opacity: 1;
}

.site-footer .footer-col a:hover {
  color: var(--star-gold);
  -webkit-text-fill-color: var(--star-gold);
}

.site-footer .footer-col p,
.site-footer .brand-col p {
  --text-primary: rgba(255, 255, 255, .68);
  color: rgba(255, 255, 255, .68);
  -webkit-text-fill-color: rgba(255, 255, 255, .68);
  opacity: 1;
}

.site-footer .footer-bottom {
  --text-primary: rgba(255, 255, 255, .58);
  --text-secondary: rgba(255, 255, 255, .58);
  color: rgba(255, 255, 255, .58);
  -webkit-text-fill-color: rgba(255, 255, 255, .58);
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.site-footer .footer-bottom a {
  color: rgba(255, 255, 255, .58);
  -webkit-text-fill-color: rgba(255, 255, 255, .58);
  opacity: 1;
}

.site-footer .footer-bottom a:hover {
  color: var(--star-gold);
  -webkit-text-fill-color: var(--star-gold);
}

/* =============================================================
   PROMOTIONAL POPUP – Cascade-safe text and card treatment
   Scoped tokens resolve the global body :where(h*, p) rules above.
   ============================================================= */
.mercedes-ad-banner,
html[data-theme="light"] .mercedes-ad-banner {
  background: #111;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .6);
  gap: 24px;
  filter: none;
  mix-blend-mode: normal;
}

.mercedes-ad-banner__title {
  --text-heading: var(--star-gold);
  color: var(--star-gold);
  -webkit-text-fill-color: var(--star-gold);
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.mercedes-ad-banner__desc {
  --text-primary: rgba(255, 255, 255, .78);
  color: rgba(255, 255, 255, .78);
  -webkit-text-fill-color: rgba(255, 255, 255, .78);
  line-height: 1.7;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.mercedes-ad-banner__close,
html[data-theme="light"] .mercedes-ad-banner__close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  opacity: 1;
}

@media (max-width: 768px) {
  .mercedes-ad-banner,
  html[data-theme="light"] .mercedes-ad-banner {
    gap: 20px;
  }
}

/* Vietnamese contact-form font subsets self-hosted from Google Fonts. */
@font-face {
  font-family: "Noto Sans VI";
  src: url("../fonts/NotoSans-VI-Variable-vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Noto Sans VI";
  src: url("../fonts/NotoSans-VI-Variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html[lang="vi"] #contact {
  font-family: "Noto Sans VI", sans-serif;
}

/* Homepage contact — compact, touch-friendly one-column layout. */
@media (max-width: 768px) {
  body.home #contact {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  body.home #contact .section-heading {
    margin-bottom: 0;
  }

  body.home #contact .section-heading .section-copy {
    margin-top: 14px !important;
  }

  body.home #contact .contact-form {
    margin-top: 26px !important;
    padding: 18px !important;
    border-radius: 5px;
  }

  body.home #contact .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  body.home #contact .contact-form .form-group,
  body.home #contact .contact-form .form-row .form-group,
  body.home #contact .contact-form > .form-group {
    gap: 6px;
    margin-bottom: 12px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  body.home #contact .contact-form .form-group > label {
    font-size: 11px;
    line-height: 1.3;
  }

  body.home #contact .contact-form .form-group input,
  body.home #contact .contact-form .form-group select,
  body.home #contact .contact-form .form-group textarea {
    min-height: 52px;
    font-size: 16px !important;
  }

  body.home #contact .contact-form .form-group textarea {
    min-height: 112px;
  }

  body.home #contact .form-actions {
    margin-top: 20px;
  }

  body.home #contact .form-actions button[type="submit"] {
    width: 100%;
    min-width: 0;
    min-height: 54px !important;
    font-size: 12px !important;
  }

  body.home #contact .contact-privacy-note {
    margin-top: 11px;
  }

  body.home #contact .showroom-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  body.home #contact .showroom-card {
    padding: 18px;
  }
}
