/*
Theme Name: AutoMart
Theme URI: https://dev.com.vn
Author: dev.com.vn
Author URI: https://dev.com.vn
Description: Theme chợ phụ tùng & nội thất ô tô - AutoMart. Hỗ trợ ACF Premium, Elementor, import Excel hàng loạt.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: automart
Tags: marketplace, automotive, acf, elementor
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #E53935;
  --primary-dark: #B71C1C;
  --secondary: #1565C0;
  --accent: #FF6F00;
  --dark: #1A1A2E;
  --gray: #F5F5F5;
  --text: #333;
  --text-light: #777;
  --border: #E0E0E0;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: 'Inter', 'Be Vietnam Pro', sans-serif;
  color: var(--text);
  background: #f8f9fa;
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.3; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #e65100; color: white; }
.btn-secondary { background: var(--secondary); color: white; }
.btn-ghost { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 26px; font-size: 15px; }

/* === TOPBAR === */
.am-topbar {
  background: var(--dark); color: #bbb;
  font-size: 12px; padding: 6px 0;
}
.am-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.am-topbar a { color: #bbb; margin-left: 14px; transition: color 0.2s; }
.am-topbar a:hover { color: white; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 4px; }

/* === HEADER === */
.am-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 1000;
}
.header-main {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 0;
}
.am-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; flex-shrink: 0;
}
.logo-text strong { font-size: 22px; font-weight: 800; color: var(--primary); display: block; line-height: 1.1; }
.logo-text span { font-size: 11px; color: var(--text-light); }

.am-search-bar {
  flex: 1; display: flex;
  border: 2px solid var(--primary); border-radius: var(--radius-sm); overflow: hidden;
}
.am-search-bar select {
  border: none; outline: none; padding: 0 12px;
  font-size: 13px; background: var(--gray);
  border-right: 1px solid var(--border); cursor: pointer; font-family: inherit;
  min-width: 120px;
}
.am-search-bar input {
  flex: 1; border: none; outline: none;
  padding: 10px 14px; font-size: 14px; font-family: inherit;
}
.am-search-bar button {
  background: var(--primary); color: white;
  border: none; padding: 0 20px; cursor: pointer; font-size: 16px;
  transition: background 0.2s;
}
.am-search-bar button:hover { background: var(--primary-dark); }

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* === NAVIGATION === */
.am-nav { background: var(--dark); }
.nav-inner { display: flex; align-items: center; }
.nav-mega-btn {
  background: var(--primary); color: white; border: none;
  padding: 12px 18px; font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  white-space: nowrap;
}
.nav-menu { display: flex; }
.nav-menu li a {
  display: block; color: #ddd; text-decoration: none;
  padding: 12px 14px; font-size: 13px; font-weight: 500;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-menu li a:hover { color: white; background: rgba(255,255,255,0.07); }
.nav-menu li a.active { color: var(--accent); }

/* === SECTION STYLES === */
.am-section { padding: 28px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.section-title {
  font-size: 19px; font-weight: 800; color: var(--dark);
  position: relative; padding-left: 14px;
}
.section-title::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 4px; height: 22px;
  background: var(--primary); border-radius: 2px;
}
.view-all {
  color: var(--primary); font-size: 13px; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.view-all:hover { text-decoration: underline; color: var(--primary-dark); }

/* === HERO === */
.am-hero { padding: 18px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  grid-template-rows: 300px;
  gap: 12px;
}
.hero-main {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  display: flex; align-items: center; padding: 40px;
}
.hero-content { position: relative; z-index: 2; }
.hero-tag {
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  display: inline-block; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px;
}
.hero-content h1 {
  font-size: 32px; font-weight: 800; color: white;
  line-height: 1.2; margin-bottom: 12px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p { color: #aaa; font-size: 14px; margin-bottom: 22px; max-width: 400px; }
.hero-stats { display: flex; gap: 24px; margin-bottom: 22px; }
.hero-stat strong { display: block; font-size: 20px; font-weight: 800; color: white; }
.hero-stat span { font-size: 11px; color: #aaa; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-card {
  flex: 1; border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; align-items: flex-end; padding: 16px; color: white; cursor: pointer;
  transition: transform 0.2s;
}
.hero-card:hover { transform: scale(1.01); }
.hero-card-1 { background: linear-gradient(135deg, #1565C0, #0D47A1); }
.hero-card-2 { background: linear-gradient(135deg, #2E7D32, #1B5E20); }
.hero-card-content span { font-size: 11px; opacity: 0.8; }
.hero-card-content strong { display: block; font-size: 16px; font-weight: 700; }

/* === CATEGORIES === */
.cat-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
}
.cat-item {
  background: white; border-radius: 10px; padding: 16px 8px; text-align: center;
  text-decoration: none; color: var(--text);
  transition: all 0.2s; border: 1px solid var(--border);
}
.cat-item:hover {
  border-color: var(--primary); transform: translateY(-3px);
  box-shadow: var(--shadow); color: var(--primary);
}
.cat-icon { font-size: 26px; margin-bottom: 7px; display: block; }
.cat-item span { font-size: 11px; font-weight: 600; line-height: 1.3; display: block; }
.cat-count { font-size: 10px; color: var(--text-light); margin-top: 3px; }

/* === BRAND STRIP === */
.brand-strip {
  background: white; border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  overflow-x: auto; box-shadow: var(--shadow); margin: 4px 0;
}
.brand-strip::-webkit-scrollbar { height: 0; }
.brand-strip-label {
  font-size: 12px; font-weight: 700; color: var(--text-light);
  white-space: nowrap; padding-right: 12px; border-right: 2px solid var(--border);
}
.brand-logo {
  flex-shrink: 0; width: 88px; height: 42px;
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-light);
  cursor: pointer; transition: all 0.2s; background: var(--gray); padding: 6px;
}
.brand-logo:hover { border-color: var(--primary); color: var(--primary); background: #fff5f5; }

/* === PRODUCT CARD === */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: all 0.2s; cursor: pointer; position: relative;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: #ccc; }
.product-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--primary); color: white;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.product-badge.new { background: #2E7D32; }
.product-badge.hot { background: var(--accent); }
.product-badge.sale { background: var(--primary); }
.product-img {
  width: 100%; height: 170px; background: var(--gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-avatar-text {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.product-info { padding: 12px; }
.product-brand { font-size: 11px; color: var(--text-light); margin-bottom: 3px; }
.product-name { font-size: 13px; font-weight: 600; margin-bottom: 5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-compat { font-size: 11px; color: var(--secondary); margin-bottom: 7px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.product-tag {
  font-size: 10px; background: var(--gray); color: var(--text-light);
  padding: 2px 7px; border-radius: 10px;
}
.product-price { font-size: 16px; font-weight: 800; color: var(--primary); }
.product-price-old { font-size: 12px; color: var(--text-light); text-decoration: line-through; margin-left: 5px; }
.product-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-light);
}
.product-footer .rating i { color: #FFC107; font-size: 10px; }
.btn-cart {
  background: var(--primary); color: white; border: none;
  border-radius: 6px; width: 30px; height: 30px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: background 0.2s;
}
.btn-cart:hover { background: var(--primary-dark); }

/* === MAIN LAYOUT WITH SIDEBAR === */
.am-main-layout {
  display: grid; grid-template-columns: 250px 1fr;
  gap: 20px; padding: 24px 0;
}
.am-sidebar { display: flex; flex-direction: column; gap: 14px; position: relative; }
.am-sidebar.sticky-sidebar { position: sticky; top: 80px; height: fit-content; max-height: calc(100vh - 100px); overflow-y: auto; }
.sidebar-box {
  background: white; border-radius: var(--radius);
  padding: 16px; border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sidebar-title {
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--primary); color: var(--dark);
  display: flex; align-items: center; gap: 7px;
}
.sidebar-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--gray);
  font-size: 13px; cursor: pointer;
}
.sidebar-list li:last-child { border: none; }
.sidebar-list li:hover { color: var(--primary); }
.sidebar-list li .count {
  background: var(--gray); border-radius: 10px;
  padding: 1px 7px; font-size: 11px; color: var(--text-light);
}
.filter-group { margin-bottom: 14px; }
.filter-label {
  font-size: 11px; font-weight: 700; color: var(--text-light);
  margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; display: block;
}
.filter-select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; font-family: inherit;
  background: var(--gray); outline: none; cursor: pointer;
}
.filter-select:focus { border-color: var(--primary); }
.range-inputs { display: flex; gap: 8px; align-items: center; }
.range-inputs input {
  flex: 1; padding: 7px 8px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 12px; font-family: inherit; outline: none;
}
.range-inputs input:focus { border-color: var(--primary); }
.range-sep { color: var(--text-light); font-size: 12px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-tag {
  font-size: 11px; padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
  background: var(--gray); color: var(--text);
}
.filter-tag:hover, .filter-tag.active { background: var(--primary); color: white; border-color: var(--primary); }

/* === GARAGE / LISTING CARDS === */
.garage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.garage-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: all 0.2s; cursor: pointer;
}
.garage-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.garage-header {
  background: linear-gradient(135deg, var(--dark), #0F3460);
  padding: 18px; color: white;
  display: flex; gap: 14px; align-items: flex-start;
}
.garage-avatar {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.garage-avatar img { width: 100%; height: 100%; object-fit: cover; }
.garage-avatar-text {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--primary); color: white;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.garage-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.garage-meta { font-size: 12px; opacity: 0.7; }
.garage-verified {
  background: #2E7D32; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
}
.garage-body { padding: 14px; }
.garage-info { font-size: 13px; display: flex; flex-direction: column; gap: 7px; }
.garage-info-row { display: flex; align-items: flex-start; gap: 8px; }
.garage-info-row i { color: var(--primary); margin-top: 2px; flex-shrink: 0; font-size: 12px; }
.garage-services { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.service-tag {
  background: #E3F2FD; color: var(--secondary);
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
}
.garage-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--gray);
  border-top: 1px solid var(--border);
}
.rating-stars i { color: #FFC107; font-size: 12px; }
.rating-text { font-size: 12px; color: var(--text-light); margin-left: 4px; }

/* === MANUFACTURER === */
.mfr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mfr-card {
  background: white; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px; text-align: center; transition: all 0.2s; cursor: pointer;
}
.mfr-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); transform: translateY(-3px); }
.mfr-logo-area {
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--gray); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden;
}
.mfr-logo-area img { width: 100%; height: 100%; object-fit: contain; }
.mfr-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.mfr-origin { font-size: 12px; color: var(--text-light); margin-bottom: 7px; }
.mfr-count { font-size: 12px; color: var(--secondary); font-weight: 600; }
.mfr-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 8px; }
.mfr-tag { background: var(--gray); font-size: 10px; padding: 2px 7px; border-radius: 10px; color: var(--text-light); }

/* === POST / CTA === */
.post-cta {
  background: linear-gradient(135deg, #1A1A2E, #0F3460);
  border-radius: var(--radius); padding: 32px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin: 8px 0;
}
.post-cta h2 { font-size: 22px; font-weight: 800; color: white; margin-bottom: 8px; }
.post-cta p { color: #aaa; font-size: 13px; max-width: 460px; }
.post-cta-btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* === NEWS === */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.news-main-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; cursor: pointer;
}
.news-main-card:hover { box-shadow: var(--shadow); }
.news-img {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #0F3460, #533483);
  display: flex; align-items: center; justify-content: center; font-size: 60px; overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 16px; }
.news-cat {
  display: inline-block; background: #FFF3E0; color: var(--accent);
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  margin-bottom: 10px; text-transform: uppercase;
}
.news-title { font-size: 16px; font-weight: 700; margin-bottom: 7px; line-height: 1.4; }
.news-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.news-meta { font-size: 12px; color: var(--text-light); margin-top: 10px; display: flex; gap: 16px; }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-small {
  background: white; border-radius: 10px;
  border: 1px solid var(--border); padding: 12px;
  display: flex; gap: 12px; cursor: pointer; transition: all 0.2s;
}
.news-small:hover { box-shadow: var(--shadow); }
.news-small-img {
  width: 70px; height: 60px; border-radius: 8px;
  background: var(--gray); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden;
}
.news-small-img img { width: 100%; height: 100%; object-fit: cover; }
.news-small-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; line-height: 1.4; }
.news-small-meta { font-size: 11px; color: var(--text-light); }

/* === SINGLE POST === */
.single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 24px 0; }
.single-content {}
.single-sidebar { display: flex; flex-direction: column; gap: 14px; }
.sticky-contact { position: sticky; top: 80px; }

.product-gallery { margin-bottom: 24px; }
.gallery-main {
  width: 100%; height: 360px; border-radius: var(--radius);
  background: var(--gray); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 10px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 60px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; background: var(--gray);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-section {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 16px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product-section-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--gray); display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--dark); font-size: 14px;
}
.product-section-header i { color: var(--primary); }
.product-section-body { padding: 18px; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) td { background: #fafafa; }
.spec-table td {
  padding: 8px 12px; border: 1px solid var(--border);
  font-size: 13px; line-height: 1.5;
}
.spec-table td:first-child { font-weight: 600; color: var(--dark); width: 35%; background: var(--gray); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border: none; }
.faq-question {
  padding: 12px 0; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.faq-answer { padding: 0 0 12px; font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* === CONTACT SIDEBAR === */
.contact-box {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.contact-box-header {
  background: linear-gradient(135deg, var(--dark), #0F3460);
  padding: 16px 18px; color: white;
}
.contact-box-header h3 { font-size: 15px; margin-bottom: 4px; }
.contact-box-header p { font-size: 12px; opacity: 0.8; }
.contact-box-body { padding: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.contact-item:last-child { border: none; }
.contact-item i { color: var(--primary); width: 16px; text-align: center; }
.contact-socials { display: flex; gap: 8px; margin-top: 10px; }
.contact-social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: white; transition: opacity 0.2s;
}
.contact-social-btn:hover { opacity: 0.85; }
.contact-social-btn.fb { background: #1877F2; }
.contact-social-btn.zalo { background: #0068FF; }
.contact-social-btn.yt { background: #FF0000; }
.contact-social-btn.tiktok { background: #010101; }

.price-table { margin-top: 12px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 8px; margin-bottom: 5px; font-size: 13px;
}
.price-row:nth-child(odd) { background: var(--gray); }
.price-row .price-label { font-weight: 600; }
.price-row .price-val { color: var(--primary); font-weight: 700; }

/* === BREADCRUMB === */
.am-breadcrumb {
  padding: 10px 0; font-size: 12px; color: var(--text-light);
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.am-breadcrumb a { color: var(--text-light); transition: color 0.2s; }
.am-breadcrumb a:hover { color: var(--primary); }
.am-breadcrumb .sep { color: #ccc; }
.am-breadcrumb .current { color: var(--text); font-weight: 600; }

/* === SEARCH HEADER (Archive/Cat pages) === */
.archive-search-bar {
  background: white; border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.archive-search-inner {
  display: flex; gap: 10px; align-items: center;
}
.archive-search-inner input {
  flex: 1; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; outline: none;
}
.archive-search-inner input:focus { border-color: var(--primary); }

/* === PAGINATION === */
.am-pagination { display: flex; justify-content: center; gap: 6px; padding: 24px 0; }
.am-pagination a, .am-pagination span {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: white; cursor: pointer; transition: all 0.2s;
}
.am-pagination a:hover, .am-pagination .current {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* === RELATED POSTS === */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* === CONTACT FORM === */
.am-contact-form { padding: 24px; background: white; border-radius: var(--radius); border: 1px solid var(--border); }
.am-contact-form h3 { margin-bottom: 16px; font-size: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 90px; }

/* === CHAT WIDGET === */
.am-chat-widget {
  position: fixed; bottom: 80px; right: 20px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.chat-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: transform 0.2s;
  text-decoration: none;
}
.chat-btn:hover { transform: scale(1.08); color: white; }
.chat-btn.phone { background: #4CAF50; }
.chat-btn.zalo { background: #0068FF; }
.chat-btn.msg { background: var(--primary); }

/* === MOBILE BOTTOM NAV === */
.am-mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: white; border-top: 1px solid var(--border);
  z-index: 1001; box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
}
.mobile-nav-inner {
  display: flex; align-items: center; justify-content: space-around; padding: 6px 0;
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 600; color: var(--text-light); cursor: pointer;
  padding: 4px 10px; text-decoration: none; transition: color 0.2s;
}
.mobile-nav-item i { font-size: 18px; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--primary); }
.mobile-nav-item.add-btn {
  background: var(--primary); color: white; border-radius: 12px;
  padding: 8px 16px; margin: 0 4px;
}
.mobile-nav-item.add-btn:hover { background: var(--primary-dark); color: white; }

/* === MOBILE FILTER TOGGLE === */
.mobile-filter-toggle {
  display: none; position: fixed; bottom: 80px; left: 16px;
  z-index: 998; background: var(--dark); color: white;
  padding: 10px 16px; border-radius: 24px; font-size: 13px; font-weight: 600;
  gap: 7px; align-items: center; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.filter-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1002;
}
.filter-drawer {
  position: fixed; left: 0; top: 0; bottom: 0; width: 280px;
  background: white; z-index: 1003; padding: 20px;
  overflow-y: auto; transform: translateX(-100%);
  transition: transform 0.3s ease; box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}
.filter-drawer.open { transform: translateX(0); }
.filter-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.filter-drawer-header h3 { font-size: 16px; font-weight: 700; }
.filter-drawer-close {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--gray); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* === FOOTER === */
footer.am-footer {
  background: var(--dark); color: #aaa;
  margin-top: 40px; padding: 40px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; text-decoration: none; transition: all 0.2s; font-size: 14px;
}
.social-btn:hover { background: var(--primary); color: white; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 13px; color: #aaa; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 12px;
}

/* === ADMIN / IMPORT NOTICES === */
.am-notice {
  padding: 10px 16px; border-radius: var(--radius-sm); margin-bottom: 12px;
  font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.am-notice.success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.am-notice.error { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.am-notice.info { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }

/* === ARCHIVE HEADER === */
.archive-header {
  background: linear-gradient(135deg, var(--dark), #0F3460);
  border-radius: var(--radius); padding: 28px 32px; margin-bottom: 20px; color: white;
}
.archive-header h1 { font-size: 22px; margin-bottom: 6px; }
.archive-header p { font-size: 13px; opacity: 0.8; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .mfr-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-side { flex-direction: row; }
  .am-main-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .am-topbar { display: none; }
  .header-main { padding: 10px 0; gap: 12px; }
  .header-actions .btn-outline { display: none; }
  .am-nav { display: none; }
  .am-mobile-nav { display: block; }
  body { padding-bottom: 60px; }

  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .garage-grid { grid-template-columns: 1fr; }
  .mfr-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .post-cta { flex-direction: column; text-align: center; padding: 24px 20px; }
  .post-cta-btns { justify-content: center; }

  .am-main-layout { grid-template-columns: 1fr; }
  .am-sidebar { display: none; }
  .mobile-filter-toggle { display: flex; }

  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { order: -1; }
  .sticky-contact { position: static; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { padding: 28px 20px; min-height: 250px; }
  .hero-content h1 { font-size: 22px; }
  .hero-side { display: none; }

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

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat-item { padding: 10px 5px; }
  .cat-icon { font-size: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mfr-grid { grid-template-columns: repeat(2, 1fr); }
  .am-search-bar select { display: none; }
  .section-title { font-size: 16px; }
  h1 { font-size: 22px; }
  .archive-header { padding: 18px 16px; }
}

/* ================================================================
   HERO FULLPAGE - v1.1
   ================================================================ */

.am-hero-fullpage {
    position: relative;
    background: linear-gradient(135deg, #0D0D1A 0%, #1A1A2E 40%, #0F3460 100%);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Background shapes */
.hero-fp-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-fp-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(229,57,53,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(255,111,0,0.08) 0%, transparent 50%);
}
.hero-shape {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.hero-shape-1 { width: 500px; height: 500px; top: -200px; right: -100px; }
.hero-shape-2 { width: 300px; height: 300px; bottom: -100px; left: 5%; background: rgba(229,57,53,0.05); }
.hero-shape-3 { width: 150px; height: 150px; top: 20%; left: 45%; background: rgba(255,111,0,0.06); }

/* Inner layout */
.hero-fp-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 70px;
    flex: 1;
}

/* LEFT content */
.hero-fp-content { color: white; }

.hero-fp-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    margin: 14px 0 16px;
    color: white;
}
.hero-highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}
.hero-fp-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 28px;
}

/* Stats */
.hero-fp-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 16px 24px;
    width: fit-content;
    backdrop-filter: blur(8px);
}
.hero-fp-stat { text-align: center; padding: 0 20px; }
.hero-fp-stat strong { display: block; font-size: 26px; font-weight: 800; color: white; line-height: 1; }
.hero-fp-stat span { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; display: block; }
.hero-fp-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

/* Hero search */
.hero-fp-search { margin-bottom: 24px; max-width: 560px; }
.hero-search-inner {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.hero-search-select {
    border: none; outline: none;
    padding: 0 14px;
    font-size: 13px; font-family: inherit; font-weight: 600;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    cursor: pointer; color: #333;
    min-width: 120px;
}
.hero-search-input {
    flex: 1; border: none; outline: none;
    padding: 14px 16px; font-size: 14px; font-family: inherit;
    color: #333;
}
.hero-search-btn {
    background: var(--primary); color: white;
    border: none; padding: 0 22px;
    font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; white-space: nowrap;
    transition: background 0.2s;
    display: flex; align-items: center; gap: 7px;
}
.hero-search-btn:hover { background: var(--primary-dark); }
.hero-search-tags {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.hero-search-tags a {
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 3px 10px; border-radius: 20px;
    font-size: 12px; transition: all 0.2s;
}
.hero-search-tags a:hover { background: rgba(255,255,255,0.15); color: white; }

/* CTA buttons */
.hero-fp-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* RIGHT: feature cards */
.hero-fp-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-fp-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
    backdrop-filter: blur(8px);
    transition: all 0.25s;
    cursor: pointer;
}
.hero-fp-card:hover { transform: translateX(4px); color: white; border-color: rgba(255,255,255,0.25); }
.hero-fc-red    { background: rgba(229,57,53,0.18); }
.hero-fc-blue   { background: rgba(21,101,192,0.2); }
.hero-fc-green  { background: rgba(46,125,50,0.2); }
.hero-fc-orange { background: rgba(255,111,0,0.18); }
.hero-fp-card:hover.hero-fc-red    { background: rgba(229,57,53,0.28); }
.hero-fp-card:hover.hero-fc-blue   { background: rgba(21,101,192,0.3); }
.hero-fp-card:hover.hero-fc-green  { background: rgba(46,125,50,0.3); }
.hero-fp-card:hover.hero-fc-orange { background: rgba(255,111,0,0.28); }

.hero-fc-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.hero-fc-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.hero-fc-sub   { font-size: 12px; opacity: 0.65; }
.hero-fc-arrow { margin-left: auto; opacity: 0.5; font-size: 12px; flex-shrink: 0; }

/* Bottom wave */
.hero-wave {
    position: absolute; bottom: 0; left: 0; right: 0;
    line-height: 0; pointer-events: none;
}
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* Manufacturer grid 4 cột -> đủ 8 ô */
.mfr-grid { grid-template-columns: repeat(4, 1fr); }

/* ================================================================
   RESPONSIVE HERO FULLPAGE
   ================================================================ */
@media (max-width: 1024px) {
    .hero-fp-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 80px; }
    .hero-fp-cards { flex-direction: row; flex-wrap: wrap; }
    .hero-fp-card  { flex: 1 1 calc(50% - 6px); }
    .hero-fp-title { font-size: 36px; }
    .mfr-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .am-hero-fullpage { min-height: auto; }
    .hero-fp-inner { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 70px; }
    .hero-fp-title { font-size: 28px; }
    .hero-fp-desc  { font-size: 14px; }
    .hero-fp-stats { width: 100%; }
    .hero-fp-stat  { padding: 0 12px; }
    .hero-fp-stat strong { font-size: 20px; }
    .hero-fp-cards { flex-direction: column; }
    .hero-fp-card  { flex: unset; }
    .hero-search-select { display: none; }
    .mfr-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-wave svg { height: 40px; }
}

@media (max-width: 480px) {
    .hero-fp-btns { flex-direction: column; }
    .hero-fp-btns .btn { width: 100%; justify-content: center; }
    .hero-fp-stats { flex-wrap: wrap; gap: 12px; }
    .hero-fp-divider { display: none; }
    .hero-fp-stat { padding: 0 10px; }
}
