/**
 * BMW Luxury Showroom & WooCommerce Templates Stylesheet
 * Brand: BMW Lê Văn Lương (68 Lê Văn Lương, Phường Thanh Xuân, TP. Hà Nội)
 * Sales Consultant: Trương Quốc Trung - 0928.26.8228
 * Spec reference: bmwleduan.com.vn & Retail.Next Luxury Standard
 */

:root {
  --bmw-blue: #1c69d4;
  --bmw-blue-hover: #0653b6;
  --bmw-blue-light: #eff6ff;
  --bmw-blue-glow: rgba(28, 105, 212, 0.25);
  --bmw-red: #d40000;
  --bmw-red-dark: #b91c1c;
  --bmw-dark: #1c1c1c;
  --bmw-dark-heading: #262626;
  --bmw-gray-bg: #f8f9fa;
  --bmw-gray-border: #e2e8f0;
  --bmw-text-muted: #64748b;
  --bmw-radius-sm: 4px;
  --bmw-radius: 8px;
  --bmw-radius-lg: 12px;
  --bmw-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --bmw-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
  --bmw-font-main: 'BMW Type Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bmw-container-max-width: 1280px;
}

.bmw-container {
  width: 100%;
  max-width: var(--bmw-container-max-width, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .bmw-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   PRODUCT CARD COMPONENT (Shared)
   ========================================================================== */
.bmw-product-card-col {
  display: flex;
}

.bmw-product-card {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-radius: var(--bmw-radius);
  overflow: hidden;
  box-shadow: var(--bmw-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.bmw-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bmw-shadow-hover);
  border-color: #cbd5e1;
}

/* Media Wrap */
.bmw-card-media {
  position: relative;
  background: #ffffff;
  padding: 24px 20px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-bottom: 1px solid #f1f5f9;
}

.bmw-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  z-index: 2;
}

.bmw-badge-pill {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.bmw-badge-year {
  background: #0f172a;
  color: #38bdf8;
}

.bmw-badge-origin {
  background: #475569;
  color: #ffffff;
}

.bmw-card-img-wrap {
  display: block;
  width: 100%;
  text-align: center;
}

.bmw-card-img {
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.bmw-product-card:hover .bmw-card-img {
  transform: scale(1.05);
}

.bmw-card-placeholder {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-weight: 900;
  font-size: 32px;
}

/* Card Body */
.bmw-card-body {
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bmw-card-title {
  font-family: var(--bmw-font-main);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.bmw-card-title a {
  color: var(--bmw-dark-heading);
  text-decoration: none;
  transition: color 0.2s;
}

.bmw-card-title a:hover {
  color: var(--bmw-blue);
}

/* Specs Tags */
.bmw-card-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.bmw-spec-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bmw-spec-tag svg {
  color: var(--bmw-blue);
}

/* Price Box */
.bmw-card-price-box {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.bmw-card-price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.bmw-card-price-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--bmw-text-muted);
  font-weight: 600;
  letter-spacing: 0.4px;
}

.bmw-card-stock-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.bmw-card-price-value {
  font-family: var(--bmw-font-main);
  font-size: 20px;
  font-weight: 800;
  color: var(--bmw-red);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.bmw-card-installment-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--bmw-text-muted);
  margin-top: 4px;
}

.bmw-card-installment-row svg {
  color: #10b981;
}

/* Actions */
.bmw-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.bmw-card-btn {
  padding: 9px 10px;
  border-radius: 5px;
  font-family: var(--bmw-font-main);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.bmw-card-btn-quote {
  background: var(--bmw-blue);
  border: 1px solid var(--bmw-blue);
  color: #ffffff;
}

.bmw-card-btn-quote:hover {
  background: var(--bmw-blue-hover);
  border-color: var(--bmw-blue-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--bmw-blue-glow);
}

.bmw-card-btn-detail {
  background: #ffffff;
  border: 1px solid var(--bmw-blue);
  color: var(--bmw-blue);
}

.bmw-card-btn-detail:hover {
  background: var(--bmw-blue-light);
  color: var(--bmw-blue-hover);
}

/* ==========================================================================
   ARCHIVE & CATEGORY SHOWROOM LAYOUT
   ========================================================================== */
.bmw-archive-wrapper {
  background: var(--bmw-gray-bg);
  padding-bottom: 50px;
}

.bmw-breadcrumb-section {
  background: transparent;
  border-bottom: 1px solid #eeeeee;
  padding: 14px 0;
  font-size: 14px;
}

.bmw-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  color: #666666;
}

.bmw-breadcrumbs a {
  color: #666666;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.bmw-breadcrumbs a:hover {
  color: var(--bmw-blue);
}

.bmw-bc-sep {
  margin: 0 8px;
  color: #cccccc;
  font-weight: 400;
}

.bmw-bc-current {
  color: #262626;
  font-weight: 600;
}

/* Series QuickNav Bar */
.bmw-series-quicknav-section {
  background: #ffffff;
  border-bottom: 1px solid var(--bmw-gray-border);
  padding: 12px 0;
  position: sticky;
  top: 70px;
  z-index: 20;
}

.bmw-series-quicknav-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.bmw-series-quicknav-scroll::-webkit-scrollbar {
  height: 4px;
}

.bmw-series-quicknav-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.bmw-series-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
  flex-shrink: 0;
}

.bmw-series-nav-pill:hover,
.bmw-series-nav-pill.active {
  background: var(--bmw-blue);
  border-color: var(--bmw-blue);
  color: #ffffff;
}

.bmw-snp-img {
  width: 28px;
  height: 18px;
  object-fit: contain;
}

/* 2-Column Archive Layout */
.bmw-archive-body {
  margin-top: 25px;
}

.bmw-archive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

/* Sidebar */
.bmw-archive-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bmw-sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-radius: var(--bmw-radius);
  padding: 20px;
  box-shadow: var(--bmw-shadow);
}

.bmw-widget-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--bmw-dark-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bmw-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bmw-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bmw-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 4px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.bmw-cat-item a:hover,
.bmw-cat-item.active a {
  background: var(--bmw-blue-light);
  color: var(--bmw-blue);
  font-weight: 700;
}

.bmw-cat-count {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
}

.bmw-cat-item.active .bmw-cat-count {
  background: var(--bmw-blue);
  color: #ffffff;
}

/* Consultant Widget */
.bmw-widget-consultant {
  background: #ffffff;
  text-align: center;
  border-top: 4px solid var(--bmw-blue);
}

.bmw-sc-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.bmw-sc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #1c69d4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4fc;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.bmw-sc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.bmw-sc-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.bmw-sc-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--bmw-dark-heading);
  margin: 0 0 4px 0;
}

.bmw-sc-title {
  font-size: 12px;
  color: var(--bmw-text-muted);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.bmw-sc-address {
  font-size: 12px;
  color: #475569;
  margin: 0 0 16px 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}

.bmw-sc-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bmw-sc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.bmw-sc-call {
  background: #d40000;
  color: #ffffff;
}

.bmw-sc-call:hover {
  background: #b91c1c;
  color: #ffffff;
}

.bmw-sc-zalo {
  background: #0068ff;
  color: #ffffff;
}

.bmw-sc-zalo:hover {
  background: #0056d6;
  color: #ffffff;
}

/* Benefits Widget */
.bmw-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #334155;
}

.bmw-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.bmw-benefit-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.bmw-btn-calc-quote {
  width: 100%;
  background: var(--bmw-blue);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.bmw-btn-calc-quote:hover {
  background: var(--bmw-blue-hover);
}

/* Main Content Area */
.bmw-archive-header {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-radius: var(--bmw-radius);
  padding: 22px 26px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--bmw-shadow);
}

.bmw-archive-h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--bmw-dark-heading);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.bmw-archive-lead {
  font-size: 13px;
  color: var(--bmw-text-muted);
  margin: 0;
  line-height: 1.5;
}

.bmw-archive-count-badge {
  background: var(--bmw-blue-light);
  color: var(--bmw-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}

/* Product Grid */
.bmw-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bmw-pagination-wrap {
  margin-top: 35px;
  text-align: center;
}

.bmw-pagination-wrap .nav-links {
  display: inline-flex;
  gap: 6px;
}

.bmw-pagination-wrap a,
.bmw-pagination-wrap span {
  padding: 8px 14px;
  border: 1px solid var(--bmw-gray-border);
  border-radius: 4px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.bmw-pagination-wrap span.current {
  background: var(--bmw-blue);
  border-color: var(--bmw-blue);
  color: #ffffff;
}

/* Bottom Overview & Lead Card */
.bmw-series-bottom-overview {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-radius: var(--bmw-radius);
  padding: 28px;
  margin-top: 40px;
  box-shadow: var(--bmw-shadow);
}

.bmw-bottom-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--bmw-dark-heading);
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

.bmw-bottom-desc {
  font-size: 14px;
  color: #334155;
  line-height: 1.65;
}

.bmw-bottom-desc ul {
  padding-left: 20px;
  margin: 12px 0;
}

.bmw-bottom-desc li {
  margin-bottom: 8px;
}

.bmw-bottom-lead-card {
  background: linear-gradient(135deg, #001a38 0%, #0c2d58 100%);
  color: #ffffff;
  border-radius: var(--bmw-radius);
  padding: 24px 28px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bmw-blc-left h3 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.bmw-blc-left p {
  font-size: 13px;
  color: #93c5fd;
  margin: 0;
}

.bmw-btn-bottom-lead {
  background: var(--bmw-red);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(212, 0, 0, 0.4);
}

.bmw-btn-bottom-lead:hover {
  background: var(--bmw-red-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   SINGLE PRODUCT SHOWROOM EXPERIENCE
   ========================================================================== */
.bmw-single-product-wrapper {
  background: var(--bmw-gray-bg);
}

.bmw-hero-product-section {
  padding: 30px 20px 40px 20px;
}

.bmw-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  width: 100%;
}

/* Left Column: Gallery */
.bmw-hero-gallery-col {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-radius: var(--bmw-radius);
  padding: 24px;
  box-shadow: var(--bmw-shadow);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.bmw-main-image-frame,
.bmw-gallery-main {
  position: relative;
  background: #f8fafc;
  background: radial-gradient(circle at center, #ffffff 30%, #f1f5f9 100%);
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
  box-sizing: border-box;
}

.bmw-gallery-badges,
.bmw-product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
  flex-wrap: wrap;
}

.bmw-main-image-wrap {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  margin: 0 auto !important;
  text-align: center;
}

.bmw-gallery-main img,
.bmw-main-image-wrap img,
.bmw-large-showcase-img,
#bmw-active-main-img,
#bmw-main-product-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bmw-thumb-strip,
.bmw-gallery-thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important; /* Tuyệt đối ngăn chặn thanh cuộn dọc */
  padding: 4px 2px 8px 2px !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 transparent !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.bmw-thumb-strip::-webkit-scrollbar,
.bmw-gallery-thumbs::-webkit-scrollbar {
  height: 5px !important;
  width: 0 !important; /* Không hiển thị scrollbar dọc */
}

.bmw-thumb-strip::-webkit-scrollbar-thumb,
.bmw-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 999px !important;
}

.bmw-thumb-strip::-webkit-scrollbar-thumb:hover,
.bmw-gallery-thumbs::-webkit-scrollbar-thumb:hover {
  background: var(--bmw-blue, #1c69d4) !important;
}

.bmw-thumb-btn,
.bmw-gallery-thumb-item {
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 0 !important;
  flex: 0 0 80px !important;
  width: 80px !important;
  height: 54px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.bmw-thumb-btn:hover,
.bmw-thumb-btn.active,
.bmw-gallery-thumb-item:hover,
.bmw-gallery-thumb-item.active {
  border-color: var(--bmw-blue) !important;
  box-shadow: 0 0 8px var(--bmw-blue-glow) !important;
  transform: translateY(-1px);
}

.bmw-thumb-btn img,
.bmw-gallery-thumb-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 4px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 4 Quick Key Highlights Bar */
.bmw-quick-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
  width: 100%;
  box-sizing: border-box;
}

.bmw-qs-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  transition: all 0.2s ease;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.bmw-qs-box:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.bmw-qs-icon {
  color: var(--bmw-blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bmw-qs-icon svg {
  width: 20px;
  height: 20px;
}

.bmw-qs-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.bmw-qs-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--bmw-text-muted);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.bmw-qs-val {
  font-size: 12px;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Key Highlights Card Block */
.bmw-key-highlights-container {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.bmw-kh-heading {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.bmw-kh-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bmw-kh-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bmw-kh-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.bmw-kh-badge {
  display: inline-block;
  background: var(--bmw-blue-light);
  color: var(--bmw-blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.bmw-kh-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bmw-kh-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  margin: 0;
}

.bmw-kh-item svg {
  color: var(--bmw-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Right Column: Information & Pricing */
.bmw-hero-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bmw-hero-header-box {
  border-bottom: 1px solid var(--bmw-gray-border);
  padding-bottom: 14px;
}

.bmw-hero-meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.bmw-series-pill {
  background: var(--bmw-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.bmw-code-pill,
.bmw-body-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.bmw-hero-title {
  font-family: var(--bmw-font-main);
  font-size: 30px;
  font-weight: 800;
  color: var(--bmw-dark-heading);
  line-height: 1.25;
  margin: 0;
}

/* Listed Price Card */
.bmw-hero-price-card {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-left: 5px solid var(--bmw-blue);
  border-radius: var(--bmw-radius);
  padding: 18px 22px;
  box-shadow: var(--bmw-shadow);
}

.bmw-hpc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bmw-hpc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bmw-text-muted);
  letter-spacing: 0.5px;
}

.bmw-hpc-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 4px;
}

.bmw-stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.bmw-hpc-main-price {
  font-family: var(--bmw-font-main);
  font-size: 30px;
  font-weight: 800;
  color: var(--bmw-red);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.bmw-hpc-rollout-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.bmw-rollout-item {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #64748b;
}

.bmw-rollout-item strong {
  color: #0f172a;
  font-size: 13px;
  margin-top: 2px;
}

/* Variants Table */
.bmw-variants-selector-box {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-radius: var(--bmw-radius);
  padding: 16px;
  box-shadow: var(--bmw-shadow);
}

.bmw-vs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bmw-vs-header h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--bmw-dark-heading);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.4px;
}

.bmw-vs-tip {
  font-size: 11px;
  color: var(--bmw-blue);
  font-style: italic;
}

.bmw-variants-table-responsive {
  overflow-x: auto;
}

.bmw-variants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bmw-variants-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.bmw-variants-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.2s;
}

.bmw-variant-row:hover,
.bmw-variant-row.active-variant {
  background: var(--bmw-blue-light);
}

.bmw-vr-name strong {
  display: block;
  color: #0f172a;
}

.bmw-vr-name span {
  font-size: 12px;
  color: #64748b;
}

.bmw-vr-price {
  font-weight: 800;
  color: var(--bmw-red);
  font-family: var(--bmw-font-main);
}

.bmw-vr-select-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.bmw-variant-row.active-variant .bmw-vr-select-btn {
  background: var(--bmw-blue);
  border-color: var(--bmw-blue);
  color: #ffffff;
}

/* Promotion Card (Red dashed border like bmwleduan.com.vn) */
.bmw-promotions-card {
  background: #fffdf9;
  border: 1px dashed var(--bmw-red);
  border-radius: var(--bmw-radius);
  padding: 18px 20px;
}

.bmw-promo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.bmw-promo-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--bmw-red);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.4px;
}

.bmw-promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: #334155;
}

.bmw-promo-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
  padding-left: 0 !important;
}

.bmw-promo-list li::before {
  content: none !important;
  display: none !important;
}

.bmw-promo-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.bmw-promo-highlight {
  background: #fef2f2;
  padding: 6px 10px;
  border-radius: 4px;
  border-left: 3px solid var(--bmw-red);
}

/* CTAs */
.bmw-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.bmw-cta-btn-primary,
.bmw-cta-btn-secondary {
  width: 100%;
  min-height: 48px;
  height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  font-family: var(--bmw-font-main);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap !important;
  line-height: 1;
  border: none;
  outline: none;
  margin: 0;
  flex: none;
  transition: all 0.2s ease-in-out;
}

.bmw-cta-btn-primary svg,
.bmw-cta-btn-secondary svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.bmw-cta-btn-primary {
  background: linear-gradient(135deg, var(--bmw-red) 0%, var(--bmw-red-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(212, 0, 0, 0.22);
}

.bmw-cta-btn-primary:hover {
  background: linear-gradient(135deg, #e51919 0%, var(--bmw-red) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 0, 0, 0.32);
  color: #ffffff;
}

.bmw-cta-btn-secondary {
  background: var(--bmw-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 105, 212, 0.22);
}

.bmw-cta-btn-secondary:hover {
  background: var(--bmw-blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(28, 105, 212, 0.32);
}

.bmw-cta-btn-primary:active,
.bmw-cta-btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Consultant Direct Card */
.bmw-consultant-direct-card {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-radius: var(--bmw-radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--bmw-shadow);
}

.bmw-cdc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #1c69d4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4fc;
  color: #1c69d4;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.bmw-cdc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.bmw-cdc-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--bmw-dark-heading);
}

.bmw-cdc-role {
  font-size: 12px;
  color: var(--bmw-text-muted);
  margin-bottom: 6px;
}

.bmw-cdc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bmw-cdc-btn-phone {
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bmw-cdc-btn-phone:hover {
  background: var(--bmw-blue);
  color: #ffffff;
}

.bmw-cdc-btn-zalo {
  background: #0068ff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
}

.bmw-cdc-btn-zalo:hover {
  background: #0056d6;
  color: #ffffff;
}

/* ==========================================================================
   STICKY TABS & IN-DEPTH SECTIONS
   ========================================================================== */
.bmw-sticky-tabs-bar {
  background: #ffffff;
  border-top: 1px solid var(--bmw-gray-border);
  border-bottom: 1px solid var(--bmw-gray-border);
  position: sticky;
  top: 70px;
  z-index: 15;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.bmw-tabs-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  overflow-x: auto;
}

.bmw-tab-link {
  display: block;
  padding: 16px 8px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.bmw-tab-link:hover,
.bmw-tab-link.active {
  color: var(--bmw-blue);
  border-bottom-color: var(--bmw-blue);
}

/* Detail Section */
.bmw-detail-section {
  padding: 50px 0;
}

.bmw-section-bg-light {
  background: #f1f5f9;
}

.bmw-section-header {
  margin-bottom: 30px;
}

.bmw-sh-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--bmw-dark-heading);
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.bmw-sh-line {
  width: 50px;
  height: 3px;
  background: var(--bmw-blue);
  margin-bottom: 10px;
}

.bmw-sh-sub {
  font-size: 13px;
  color: var(--bmw-text-muted);
  margin: 0;
}

.bmw-article-content {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-radius: var(--bmw-radius);
  padding: 30px;
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
}

.bmw-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
}

/* Specs Table Card */
.bmw-specs-table-card {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-radius: var(--bmw-radius);
  padding: 24px;
  box-shadow: var(--bmw-shadow);
}

.bmw-specs-full-table {
  width: 100%;
  border-collapse: collapse;
}

.bmw-specs-full-table tr:nth-child(even) {
  background: #f8fafc;
}

.bmw-specs-full-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.bmw-st-label {
  color: var(--bmw-text-muted);
  width: 35%;
  font-weight: 600;
}

.bmw-st-val {
  color: #0f172a;
}

/* Calculator Grid */
.bmw-calc-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.bmw-calc-panel {
  background: #ffffff;
  border: 1px solid var(--bmw-gray-border);
  border-radius: var(--bmw-radius);
  padding: 26px;
  box-shadow: var(--bmw-shadow);
}

.bmw-cp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bmw-blue-light);
}

.bmw-cp-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--bmw-dark-heading);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.5px;
}

.bmw-form-group {
  margin-bottom: 16px;
}

.bmw-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.bmw-form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  background: #f8fafc;
}

.bmw-calc-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.bmw-cbl-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

.bmw-cbl-row strong {
  color: #0f172a;
}

.bmw-total-rollout-box {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 16px;
}

.bmw-trb-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #991b1b;
  margin-bottom: 4px;
}

.bmw-trb-value {
  display: block;
  font-family: var(--bmw-font-main);
  font-size: 22px;
  font-weight: 800;
  color: var(--bmw-red);
}

.bmw-calc-note {
  font-size: 12px;
  color: var(--bmw-text-muted);
  line-height: 1.5;
  margin-top: 14px;
}

/* Slider Controls */
.bmw-slider-group {
  margin-bottom: 18px;
}

.bmw-sg-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.bmw-sg-val {
  color: var(--bmw-blue);
}

.bmw-range-slider {
  width: 100%;
  accent-color: var(--bmw-blue);
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .bmw-archive-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .bmw-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  .bmw-hero-gallery-col,
  .bmw-hero-info-col {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .bmw-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bmw-calc-container-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .bmw-hero-product-section {
    padding: 16px 12px 24px 12px !important;
  }
  .bmw-hero-gallery-col {
    padding: 14px 12px !important;
  }
  .bmw-main-image-frame,
  .bmw-gallery-main {
    min-height: unset !important;
    border-radius: 8px !important;
  }
  .bmw-gallery-badges,
  .bmw-product-badges {
    top: 10px !important;
    left: 10px !important;
    gap: 5px !important;
  }
  .bmw-badge-pill {
    font-size: 10px !important;
    padding: 3px 7px !important;
  }
  .bmw-quick-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
  }
  .bmw-qs-box {
    padding: 8px 10px !important;
  }
  .bmw-qs-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .bmw-qs-val {
    font-size: 11.5px !important;
  }
  .bmw-thumb-btn,
  .bmw-gallery-thumb-item {
    flex: 0 0 62px !important;
    width: 62px !important;
    height: 46px !important;
  }
}

@media (max-width: 640px) {
  .bmw-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bmw-quick-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .bmw-kh-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bmw-hero-ctas {
    flex-direction: column;
    gap: 10px;
  }
  .bmw-cta-btn-primary,
  .bmw-cta-btn-secondary {
    width: 100%;
    min-height: 48px;
    height: 48px;
    font-size: 13px;
    padding: 0 14px;
    gap: 8px;
  }
  .bmw-hpc-rollout-summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .bmw-bottom-lead-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .bmw-hero-gallery-col {
    padding: 10px 8px !important;
  }
  .bmw-thumb-btn,
  .bmw-gallery-thumb-item {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 40px !important;
  }
  .bmw-qs-box {
    padding: 6px 8px !important;
    gap: 6px !important;
  }
  .bmw-qs-val {
    font-size: 11px !important;
  }
  .bmw-cta-btn-primary,
  .bmw-cta-btn-secondary {
    font-size: 11.5px;
    padding: 0 8px;
    gap: 6px;
    letter-spacing: 0;
    min-height: 44px;
    height: 44px;
  }
}

/* Sắp xếp danh sách xe (inc/catalog-sort.php) */
.bmw-archive-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bmw-sort-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.bmw-sort-label { font-size: 13px; font-weight: 600; color: var(--bmw-text-muted); white-space: nowrap; }
.bmw-sort-select { height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--bmw-gray-border); border-radius: 6px; background-color: #fff; font-size: 13px; font-weight: 600; color: var(--bmw-dark-heading); cursor: pointer; }
.bmw-sort-select:focus { outline: none; border-color: var(--bmw-blue); box-shadow: 0 0 0 3px rgba(28,105,212,.15); }
@media (max-width: 600px) {
  .bmw-archive-tools { width: 100%; justify-content: space-between; }
  .bmw-sort-select { max-width: 190px; }
}

/* Mobile/tablet: danh sách xe lên trước, sidebar xuống dưới */
@media (max-width: 1024px) {
  .bmw-archive-main { order: 1; min-width: 0; }
  .bmw-archive-sidebar { order: 2; }
}

/* Mobile/tablet: cụm tiêu đề + số mẫu xe + sắp xếp xuống dưới danh sách xe (DOM giữ nguyên cho SEO) */
@media (max-width: 1024px) {
  .bmw-archive-main { display: flex; flex-direction: column; }
  .bmw-archive-main > .bmw-product-grid { order: 1; }
  .bmw-archive-main > .bmw-pagination-wrap,
  .bmw-archive-main > .bmw-no-products { order: 2; }
  .bmw-archive-main > .bmw-archive-header { order: 3; margin: 24px 0 0; }
  .bmw-archive-main > .bmw-series-bottom-overview { order: 4; }
}
