/*
 * SAVAX LUXURY — Design System
 * Theme: mt (mttheme) — mtdigital.vn
 * Tông màu vàng gold / nâu tối sang trọng, font serif tiêu đề.
 * Nạp sau Bootstrap để override.
 */

:root {
  /* Brand palette */
  --sx-dark: #1b150d;          /* nền tối chủ đạo */
  --sx-dark-2: #241c10;        /* nền tối phụ */
  --sx-dark-3: #2c2316;        /* card nền tối */
  --sx-gold: #c2a35b;          /* vàng gold chủ đạo */
  --sx-gold-2: #d9c08a;        /* gold sáng */
  --sx-gold-3: #a8853f;        /* gold đậm */
  --sx-cream: #f6f1e8;         /* kem section sáng */
  --sx-cream-2: #efe7d6;       /* kem đậm hơn */
  --sx-line: #e3d8c3;          /* viền nhạt */
  --sx-ink: #2a241c;           /* chữ trên nền sáng */
  --sx-ink-soft: #6c6253;      /* chữ phụ */
  --sx-light: #efe7d6;         /* chữ trên nền tối */
  --sx-light-soft: #b9ab90;    /* chữ phụ trên nền tối */
  --sx-white: #ffffff;

  --sx-serif: 'Playfair Display', 'Times New Roman', serif;
  --sx-sans: 'Be Vietnam Pro', 'Afacad Flux', system-ui, sans-serif;

  --sx-container: 1200px;
  --sx-radius: 6px;
  --sx-shadow: 0 14px 40px rgba(27, 21, 13, .12);
  --sx-shadow-gold: 0 10px 30px rgba(168, 133, 63, .25);

  /* ánh xạ biến cũ của theme để không vỡ template còn dùng --mau* */
  --mau1: var(--sx-gold);
  --mau2: var(--sx-gold-3);
  --mau3: var(--sx-dark);
  --mau4: var(--sx-cream);
}

/* ============ Base ============ */
body {
  font-family: var(--sx-sans);
  color: var(--sx-ink);
  background: var(--sx-cream);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* overflow-x:hidden ở html/body phá position:sticky -> dùng clip (chặn tràn
 * ngang nhưng KHÔNG tạo scroll container, giữ sticky cho mục lục hoạt động) */
html, body { overflow-x: clip; }

h1, h2, h3, h4, h5, .sx-serif {
  font-family: var(--sx-serif);
  color: var(--sx-ink);
  font-weight: 600;
  line-height: 1.25;
}

a { color: var(--sx-gold-3); text-decoration: none; transition: color .25s; }
a:hover { color: var(--sx-gold); }

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

.sx-container { max-width: var(--sx-container); margin: 0 auto; padding: 0 20px; }
.sx-section { padding: 80px 0; }
.sx-section--tight { padding: 56px 0; }
.sx-dark-bg { background: var(--sx-dark); color: var(--sx-light); }
.sx-cream-bg { background: var(--sx-cream); }
.sx-white-bg { background: var(--sx-white); }
.sx-dark-bg h1, .sx-dark-bg h2, .sx-dark-bg h3, .sx-dark-bg h4 { color: var(--sx-cream); }

/* Section heading */
.sx-eyebrow {
  display: inline-block;
  font-family: var(--sx-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--sx-gold-3);
  margin-bottom: 14px;
}
.sx-dark-bg .sx-eyebrow { color: var(--sx-gold-2); }
.sx-title {
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0 0 16px;
}
.sx-title--center { text-align: center; }
.sx-subtitle { color: var(--sx-ink-soft); max-width: 720px; margin: 0 auto 8px; }
.sx-dark-bg .sx-subtitle { color: var(--sx-light-soft); }
.sx-head-center { text-align: center; margin-bottom: 48px; }

/* divider gold flourish */
.sx-flourish {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 14px 0 28px; color: var(--sx-gold);
}
.sx-flourish::before, .sx-flourish::after {
  content: ''; height: 1px; width: 60px;
  background: linear-gradient(90deg, transparent, var(--sx-gold));
}
.sx-flourish::after { background: linear-gradient(90deg, var(--sx-gold), transparent); }

/* ============ Buttons ============ */
.sx-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px;
  font-family: var(--sx-sans); font-weight: 600; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--sx-radius);
  border: 1px solid var(--sx-gold);
  transition: all .28s; cursor: pointer;
}
.sx-btn--gold { background: var(--sx-gold); color: #1b150d; }
.sx-btn--gold:hover { background: var(--sx-gold-3); border-color: var(--sx-gold-3); color: #fff; }
.sx-btn--ghost { background: transparent; color: var(--sx-gold); }
.sx-btn--ghost:hover { background: var(--sx-gold); color: #1b150d; }
.sx-btn--light { background: #fff; color: var(--sx-ink); border-color: #fff; }

/* ============ Top bar ============ */
.sx-topbar {
  background: var(--sx-dark);
  color: var(--sx-light-soft);
  font-size: 13px;
  border-bottom: 1px solid rgba(194,163,91,.14);
}
.sx-topbar .sx-container { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.sx-topbar a { color: var(--sx-light-soft); }
.sx-topbar a:hover { color: var(--sx-gold); }
.sx-topbar .sx-topbar-list { display: flex; gap: 22px; align-items: center; }
.sx-topbar i { color: var(--sx-gold); margin-right: 7px; }

/* ============ Header / Nav ============ */
.sx-header { background: var(--sx-dark); position: sticky; top: 0; z-index: 1000; }
.sx-header .sx-container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.sx-logo img { max-height: 56px; width: auto; }
.sx-logo .sx-wordmark {
  font-family: var(--sx-serif); color: var(--sx-gold); font-size: 26px;
  letter-spacing: .12em; line-height: 1; display: block;
}
.sx-logo .sx-wordmark small { display: block; font-size: 11px; letter-spacing: .42em; color: var(--sx-light-soft); margin-top: 4px; }

.sx-nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; align-items: center; }
.sx-nav a {
  color: var(--sx-light); font-weight: 500; font-size: 15px;
  letter-spacing: .02em; padding: 6px 0; position: relative;
}
.sx-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--sx-gold); transition: width .28s;
}
.sx-nav a:hover, .sx-nav .current-menu-item > a { color: var(--sx-gold); }
.sx-nav a:hover::after, .sx-nav .current-menu-item > a::after { width: 100%; }
.sx-nav .menu-item-has-children > a::before { content: ''; }
.sx-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--sx-dark-2); padding: 10px 0; display: none;
  box-shadow: var(--sx-shadow); border-top: 2px solid var(--sx-gold); z-index: 50;
}
.sx-nav li { position: relative; }
.sx-nav li:hover > .sub-menu { display: block; }
.sx-nav .sub-menu li a { display: block; padding: 9px 22px; font-size: 14px; }
.sx-nav .sub-menu a::after { display: none; }

.sx-header-actions { display: flex; align-items: center; gap: 18px; }
.sx-header-actions a { color: var(--sx-light); font-size: 18px; }
.sx-header-actions a:hover { color: var(--sx-gold); }
.sx-cart-link { position: relative; }
.sx-cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--sx-gold); color: #1b150d;
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px;
  text-align: center; border-radius: 50%; padding: 0 4px;
}
.sx-burger { display: none; background: none; border: none; color: var(--sx-light); font-size: 22px; }
.sx-nav-close { display: none; }

/* mobile nav */
@media (max-width: 991px) {
  .sx-burger { display: block; }
  .sx-nav {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: var(--sx-dark-2);
    z-index: 1100; padding: 70px 0 20px; overflow-y: auto; transition: left .3s;
  }
  .sx-nav.is-open { left: 0; }
  .sx-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .sx-nav li { border-bottom: 1px solid rgba(194,163,91,.12); }
  .sx-nav a { padding: 14px 24px; display: block; }
  .sx-nav .sub-menu { position: static; display: block; box-shadow: none; background: rgba(0,0,0,.2); padding: 0; }
  .sx-nav .sub-menu a { padding-left: 40px; }
  .sx-nav-close { display: block; position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--sx-gold); font-size: 24px; }
  .sx-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1050; display: none; }
  .sx-nav-overlay.is-open { display: block; }
}

/* ============ Hero ============ */
.sx-hero { position: relative; min-height: 660px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.sx-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sx-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,15,9,.9) 0%, rgba(20,15,9,.6) 50%, rgba(20,15,9,.25) 100%); }
.sx-hero__inner { position: relative; z-index: 2; max-width: 700px; padding: 70px 0; }
.sx-hero__brand-title {
  color: #fff; font-family: var(--sx-serif); font-weight: 700;
  font-size: clamp(46px, 8vw, 92px); line-height: 1.02; letter-spacing: .02em;
  margin: 0 0 16px; text-transform: uppercase;
}
.sx-hero__tagline {
  color: var(--sx-gold-2); font-family: var(--sx-serif); font-style: italic;
  font-size: clamp(20px, 3vw, 30px); margin-bottom: 18px;
}
.sx-hero p { color: #e9e1d2; font-size: 17px; margin-bottom: 32px; max-width: 520px; }
.sx-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ Product / cards grid ============ */
.sx-grid { display: grid; gap: 26px; }
.sx-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sx-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .sx-grid--3, .sx-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sx-grid--2, .sx-grid--3, .sx-grid--4 { grid-template-columns: 1fr; } }

.sx-card {
  background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.sx-card:hover { transform: translateY(-6px); box-shadow: var(--sx-shadow); }
.sx-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sx-cream-2); }
.sx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sx-card:hover .sx-card__media img { transform: scale(1.06); }
.sx-card__tag {
  position: absolute; top: 12px; left: 12px; background: var(--sx-gold); color: #1b150d;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
}
.sx-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.sx-card__cat { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sx-gold-3); margin-bottom: 8px; }
.sx-card__title { font-size: 19px; margin: 0 0 10px; }
.sx-card__title a { color: var(--sx-ink); }
.sx-card__title a:hover { color: var(--sx-gold-3); }
.sx-card__excerpt { color: var(--sx-ink-soft); font-size: 14px; margin-bottom: 14px; flex: 1; }
.sx-card__meta { font-size: 13px; color: var(--sx-ink-soft); display: flex; gap: 16px; align-items: center; }
.sx-card__meta i { color: var(--sx-gold-3); margin-right: 5px; }
.sx-card__price { color: var(--sx-gold-3); font-weight: 700; font-size: 18px; }
.sx-card__more { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-gold-3); }
.sx-card__more i { transition: transform .25s; }
.sx-card:hover .sx-card__more i { transform: translateX(5px); }

/* ============ Category tiles (collections) ============ */
.sx-cat-tile { position: relative; aspect-ratio: 3/4; border-radius: var(--sx-radius); overflow: hidden; display: block; }
.sx-cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sx-cat-tile:hover img { transform: scale(1.07); }
.sx-cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,15,9,.82) 0%, rgba(20,15,9,0) 55%); }
.sx-cat-tile__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; color: #fff; }
.sx-cat-tile__label h3 { color: #fff; font-size: 21px; margin: 0 0 4px; }
.sx-cat-tile__label span { color: var(--sx-gold-2); font-size: 13px; letter-spacing: .1em; }

/* ============ Stats ============ */
.sx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
@media (max-width: 767px) { .sx-stats { grid-template-columns: repeat(2, 1fr); } }
.sx-stat__num { font-family: var(--sx-serif); font-size: 46px; color: var(--sx-gold); line-height: 1; }
.sx-stat__label { color: var(--sx-light-soft); margin-top: 10px; font-size: 15px; }

/* ============ About split ============ */
.sx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 879px) { .sx-split { grid-template-columns: 1fr; gap: 32px; } }
.sx-split__media img { border-radius: var(--sx-radius); width: 100%; }

/* feature list */
.sx-feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.sx-feature-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--sx-line); }
.sx-feature-list i { color: var(--sx-gold-3); font-size: 18px; margin-top: 3px; }
.sx-feature-list strong { display: block; color: var(--sx-ink); }
.sx-feature-list span { color: var(--sx-ink-soft); font-size: 14px; }

/* ============ Partners ============ */
.sx-partners { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: center; }
.sx-partners img { max-height: 54px; filter: grayscale(1); opacity: .7; transition: .3s; }
.sx-partners img:hover { filter: none; opacity: 1; }

/* ============ CTA / contact form ============ */
.sx-cta { background: var(--sx-dark); color: var(--sx-light); border-radius: var(--sx-radius); padding: 48px; }
.sx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sx-form .full { grid-column: 1 / -1; }
.sx-form input, .sx-form textarea, .sx-form select {
  width: 100%; padding: 13px 16px; border-radius: var(--sx-radius);
  border: 1px solid rgba(194,163,91,.35); background: rgba(255,255,255,.04); color: #fff; font-family: var(--sx-sans);
}
.sx-form input::placeholder, .sx-form textarea::placeholder { color: #a99f88; }
.sx-form input:focus, .sx-form textarea:focus { outline: none; border-color: var(--sx-gold); }
@media (max-width: 575px) { .sx-form { grid-template-columns: 1fr; } }

/* ============ Breadcrumb / page hero ============ */
.sx-pagehero { position: relative; padding: 70px 0; text-align: center; color: #fff; background: var(--sx-dark); overflow: hidden; }
.sx-pagehero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.sx-pagehero__inner { position: relative; z-index: 2; }
.sx-pagehero h1 { color: #fff; font-size: clamp(30px, 4vw, 48px); margin: 0 0 10px; }
.sx-breadcrumb { color: var(--sx-light-soft); font-size: 14px; }
.sx-breadcrumb a { color: var(--sx-gold-2); }
.sx-breadcrumb i { margin: 0 8px; font-size: 11px; }

/* ============ Sidebar (archive) ============ */
/* Mặc định: nội dung rộng bên trái, sidebar phải (bài viết, tin tức) */
.sx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
/* Trang shop/sản phẩm: sidebar lọc bên trái, lưới sản phẩm bên phải */
.sx-layout--shop { grid-template-columns: 280px minmax(0, 1fr); }
@media (max-width: 879px) { .sx-layout, .sx-layout--shop { grid-template-columns: 1fr; } }
.sx-widget { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 22px; margin-bottom: 24px; }
.sx-widget__title { font-size: 18px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--sx-gold); }
.sx-widget ul { list-style: none; padding: 0; margin: 0; }
.sx-widget li a { display: flex; justify-content: space-between; padding: 9px 0; color: var(--sx-ink); border-bottom: 1px dashed var(--sx-line); font-size: 15px; }
.sx-widget li a:hover { color: var(--sx-gold-3); padding-left: 6px; }
.sx-widget li a span { color: var(--sx-ink-soft); font-size: 13px; }

/* ============ Single ============ */
.sx-article { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 36px; }
.sx-article h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.sx-article__meta { color: var(--sx-ink-soft); font-size: 14px; margin-bottom: 24px; display: flex; gap: 20px; flex-wrap: wrap; }
.sx-article__meta i { color: var(--sx-gold-3); margin-right: 6px; }
.sx-content { font-size: 16px; line-height: 1.85; color: #3a342b; }
.sx-content h2, .sx-content h3 { margin: 28px 0 14px; }
.sx-content p { margin: 0 0 18px; }
.sx-content img { border-radius: var(--sx-radius); margin: 10px 0; }
.sx-content ul, .sx-content ol { margin: 0 0 18px 22px; }
.sx-content blockquote { border-left: 3px solid var(--sx-gold); padding: 6px 20px; color: var(--sx-ink-soft); font-style: italic; margin: 18px 0; background: var(--sx-cream); }

/* product gallery */
.sx-gallery__main { border: 1px solid var(--sx-line); border-radius: var(--sx-radius); overflow: hidden; margin-bottom: 14px; }
.sx-gallery__main img { width: 100%; display: block; }
.sx-gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.sx-gallery__thumbs img { width: 76px; height: 76px; object-fit: cover; border: 1px solid var(--sx-line); border-radius: 4px; cursor: pointer; }
.sx-spec { width: 100%; border-collapse: collapse; margin: 16px 0; }
.sx-spec th, .sx-spec td { text-align: left; padding: 11px 14px; border: 1px solid var(--sx-line); font-size: 15px; }
.sx-spec th { background: var(--sx-cream); width: 38%; color: var(--sx-ink); font-weight: 600; }

/* ============ Pagination ============ */
.sx-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.sx-pagination a, .sx-pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--sx-line); border-radius: var(--sx-radius); color: var(--sx-ink); background: #fff;
}
.sx-pagination .current, .sx-pagination a:hover { background: var(--sx-gold); border-color: var(--sx-gold); color: #1b150d; }

/* ============ Footer ============ */
.sx-footer { background: var(--sx-dark); color: var(--sx-light-soft); padding: 64px 0 0; }
.sx-footer a { color: var(--sx-light-soft); }
.sx-footer a:hover { color: var(--sx-gold); }
.sx-footer__grid { display: grid; grid-template-columns: 1.7fr 1.1fr 1.1fr 1.6fr; gap: 36px; align-items: start; }
@media (max-width: 879px) { .sx-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 575px) { .sx-footer__grid { grid-template-columns: 1fr; } }
/* Bản đồ footer: ép chiều cao gọn (kể cả khi dán mã nhúng có height lớn) */
.sx-footer__map iframe { width: 100% !important; height: 240px !important; display: block; border: 0; border-radius: 6px; }
.sx-bao-gia-map iframe { width: 100% !important; height: 420px !important; display: block; border: 0; }
.sx-footer__title { color: var(--sx-gold-2); font-family: var(--sx-serif); font-size: 18px; margin: 0 0 18px; }
.sx-footer__about p { font-size: 14px; line-height: 1.8; }
.sx-footer__wordmark { font-family: var(--sx-serif); color: var(--sx-gold); font-size: 24px; letter-spacing: .12em; margin-bottom: 14px; display: block; }
.sx-footer ul { list-style: none; padding: 0; margin: 0; }
.sx-footer li { padding: 6px 0; font-size: 14px; }
.sx-footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.sx-footer__contact i { color: var(--sx-gold); margin-top: 4px; min-width: 16px; text-align: center; }
.sx-footer__contact li strong { display: block; color: var(--sx-gold-2); font-weight: 600; margin-bottom: 2px; }
.sx-footer__contact li span { display: block; color: var(--sx-light-soft); }
.sx-footer__logo { max-height: 70px; width: auto; margin-bottom: 18px; }
.sx-footer__bottom-logo { max-height: 40px; width: auto; }
.sx-footer__social { display: flex; gap: 12px; margin-top: 16px; }
.sx-footer__social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(194,163,91,.4);
  display: inline-flex; align-items: center; justify-content: center; color: var(--sx-gold);
}
.sx-footer__social a:hover { background: var(--sx-gold); color: #1b150d; }
.sx-footer__bottom { margin-top: 48px; border-top: 1px solid rgba(194,163,91,.18); padding: 22px 0; font-size: 13px; }
.sx-footer__bottom-inner { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.sx-footer__bottom-left { display: flex; align-items: center; gap: 16px; }
.sx-footer__bottom-right { display: flex; align-items: center; gap: 14px; }
.sx-footer__bottom-right > span { color: var(--sx-light-soft); }
.sx-footer__bottom .sx-footer__social { margin: 0; }
@media (max-width: 575px){ .sx-footer__bottom-inner { justify-content: center; text-align: center; } .sx-footer__bottom-left { justify-content: center; } }

/* ============ Menu reset (chống nền lạ từ theme cũ) ============ */
.sx-nav, .sx-nav ul, .sx-nav .menu, .sx-nav li { background: transparent !important; box-shadow: none; }
.sx-nav ul { list-style: none; margin: 0; padding: 0; }
.sx-nav .sub-menu { background: var(--sx-dark-2) !important; }
/* Desktop: header & menu CÙNG 1 màu, không hộp nền quanh menu.
 * Ép đè quy tắc `nav{background-color:#011416;...}` của style.css theme gốc. */
@media (min-width: 992px){
  .sx-header { background: var(--sx-dark) !important; }
  .sx-header nav.sx-nav,
  .sx-header .sx-nav > ul,
  .sx-header ul#menu-main-menu,
  .sx-header .sx-nav > ul > li {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .sx-header nav.sx-nav { display: flex; align-items: center; }
}

/* ============ Giá trị (4 icon) ============ */
.sx-values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 22px; }
@media (max-width: 575px){ .sx-values { grid-template-columns: 1fr; } }
.sx-value { display: flex; gap: 14px; align-items: flex-start; }
.sx-value i { color: var(--sx-gold-3); font-size: 26px; margin-top: 4px; min-width: 30px; text-align: center; }
.sx-value strong { display: block; color: var(--sx-ink); font-size: 16px; }
.sx-value span { color: var(--sx-ink-soft); font-size: 13px; }

/* ============ Collection alternating rows ============ */
.sx-collection-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.sx-collection-row.is-reverse .sx-collection-row__media { order: 2; }
.sx-collection-row__media { border-radius: var(--sx-radius); overflow: hidden; aspect-ratio: 4/3; }
.sx-collection-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sx-collection-row__media:hover img { transform: scale(1.05); }
@media (max-width: 767px){
  .sx-collection-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .sx-collection-row.is-reverse .sx-collection-row__media { order: 0; }
}

/* ============ Brands / đối tác ============ */
.sx-brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 767px){ .sx-brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479px){ .sx-brands { grid-template-columns: repeat(2, 1fr); } }
.sx-brand {
  display: flex; align-items: center; justify-content: center; min-height: 88px;
  border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
  font-family: var(--sx-serif); font-size: 20px; letter-spacing: .04em; color: var(--sx-ink);
  background: #fff; transition: .25s; text-align: center; padding: 10px;
}
.sx-brand:hover { border-color: var(--sx-gold); color: var(--sx-gold-3); }

/* ============ Reviews ============ */
.sx-review { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 28px; }
.sx-review__stars { color: var(--sx-gold); margin-bottom: 12px; letter-spacing: 3px; }
.sx-review__text { color: #3a342b; font-style: italic; margin-bottom: 16px; }
.sx-review__author strong { color: var(--sx-ink); display: block; }
.sx-review__author span { color: var(--sx-ink-soft); font-size: 13px; }

/* ============ Mục lục bài viết (TOC) ============ */
.sx-sidebar { position: sticky; top: 90px; align-self: start; }
@media (max-width: 879px){ .sx-sidebar { position: static; } }
/* TOC luôn nền sáng, dễ đọc; tự cuộn trong nếu quá dài */
#sx-toc { background: transparent; max-height: calc(100vh - 200px); overflow-y: auto; }
.sx-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.sx-toc__list li { padding: 0; margin: 0; border-bottom: 1px dashed var(--sx-line); }
.sx-toc__list li:last-child { border-bottom: 0; }
.sx-toc__list li.lv2 { counter-increment: toc; }
.sx-toc__list a { display: flex; gap: 8px; padding: 10px 8px; color: var(--sx-ink); font-size: 14px; line-height: 1.45; border-radius: 6px; transition: background .2s, color .2s; }
.sx-toc__list li.lv2 > a::before { content: counter(toc) "."; color: var(--sx-gold-3); font-weight: 700; flex-shrink: 0; }
.sx-toc__list li.lv3 > a { padding-left: 26px; font-size: 13px; color: var(--sx-ink-soft); }
.sx-toc__list a:hover { color: var(--sx-gold-3); background: var(--sx-cream); }
.sx-toc__list li.is-active > a { color: var(--sx-gold-3); background: var(--sx-cream); font-weight: 600; }
.sx-toc__list li.is-active > a::before { color: var(--sx-gold-3); }

/* ============ Chia sẻ ============ */
.sx-share { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--sx-line); }
.sx-share span { color: var(--sx-ink-soft); font-size: 14px; font-weight: 600; }
.sx-share a {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sx-cream-2); color: var(--sx-gold-3); transition: .25s;
}
.sx-share a:hover { background: var(--sx-gold); color: #1b150d; }

/* ============ Đăng ký tư vấn (thẻ trắng) ============ */
.sx-register { position: relative; padding: 80px 0; overflow: hidden; }
.sx-register__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #1b150d; }
.sx-register__bg::after { content: ''; position: absolute; inset: 0; background: rgba(20,15,9,.55); }
.sx-register .sx-container { position: relative; z-index: 2; display: flex; justify-content: center; }
.sx-register__card {
  background: #fff; width: 100%; max-width: 520px; border-radius: 12px;
  padding: 40px 36px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25);
  border: 1px solid var(--sx-line);
}
.sx-register__flourish { color: var(--sx-gold); font-size: 22px; margin-bottom: 10px; }
.sx-register__title { font-family: var(--sx-serif); font-size: 28px; color: var(--sx-ink); margin: 0 0 8px; }
.sx-register__sub { color: var(--sx-ink-soft); font-size: 14px; margin: 0 0 24px; }
.sx-register__form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.sx-input { position: relative; }
.sx-input i { position: absolute; left: 16px; top: 16px; color: var(--sx-gold-3); font-size: 15px; }
.sx-input input, .sx-input textarea {
  width: 100%; padding: 13px 16px 13px 42px; border: 1px solid var(--sx-line);
  border-radius: 8px; background: var(--sx-cream); color: var(--sx-ink); font-family: var(--sx-sans); font-size: 15px;
}
.sx-input textarea { resize: vertical; }
.sx-input input::placeholder, .sx-input textarea::placeholder { color: #9a8f7a; }
.sx-input input:focus, .sx-input textarea:focus { outline: none; border-color: var(--sx-gold); background: #fff; }
.sx-register__btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ============ Contact Form 7 (gắn qua shortcode) ============ */
.sx-cf7 .wpcf7-form p { margin: 0 0 16px !important; }
.sx-cf7 .wpcf7-form p:last-of-type { margin-bottom: 0 !important; text-align: center; }
.sx-cf7 .wpcf7 { margin: 0; }
.sx-cf7 label { display: block; color: inherit; font-size: 14px; }
.sx-cf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=file]),
.sx-cf7 textarea,
.sx-cf7 select {
  width: 100% !important; padding: 13px 16px !important; margin-top: 6px;
  border: 1px solid var(--sx-line) !important; border-radius: 8px !important;
  background: var(--sx-cream) !important; color: var(--sx-ink) !important;
  font-family: var(--sx-sans); font-size: 15px; box-sizing: border-box;
}
.sx-cf7 textarea { resize: vertical; height: 120px !important; min-height: 120px; }
.sx-cf7 input::placeholder, .sx-cf7 textarea::placeholder { color: #9a8f7a; }
.sx-cf7 input:focus, .sx-cf7 textarea:focus, .sx-cf7 select:focus { outline: none; border-color: var(--sx-gold); background: #fff; }
.sx-cf7 input[type=submit], .sx-cf7 .wpcf7-submit {
  display: block !important; width: 100% !important; padding: 14px 30px !important; margin: 8px 0 0 !important;
  background: var(--sx-gold) !important; background-color: var(--sx-gold) !important;
  color: #1b150d !important; border: 0 !important; border-radius: 8px !important;
  font-family: var(--sx-sans); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  text-transform: uppercase; cursor: pointer; transition: background .25s; text-align: center;
}
.sx-cf7 input[type=submit]:hover, .sx-cf7 .wpcf7-submit:hover { background: var(--sx-gold-3) !important; background-color: var(--sx-gold-3) !important; color: #fff !important; }
.sx-cf7 .wpcf7-response-output { border-radius: 8px; margin: 8px 0 0; font-size: 14px; }
.sx-cf7 .wpcf7-spinner { margin: 8px auto 0; display: block; }
/* khi đặt trên nền tối (trang Báo giá) */
.sx-cta .sx-cf7 label, .sx-cta .sx-cf7 { color: #fff; }

/* nút Gửi giống mẫu */
.sx-cf7 input[type=submit], .sx-cf7 .wpcf7-submit { letter-spacing: .06em; }

/* loading + helpers reused from theme */
.loading { display: none !important; }
.sx-mt-0 { margin-top: 0; }
.sx-text-gold { color: var(--sx-gold-3); }
