/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #C8102E;
  --primary-dark: #9a0c24;
  --accent: #FFB800;
  --dark: #0E1A2B;
  --dark2: #1a2332;
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #f5f6fa;
  --border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text, #1a1a1a);
}

.entry-content {
    padding-bottom: 0;
    padding-top: 0;
}

.absolute-footer {
    display: none;
}

/* ==========================================================================
   TOP BAR SECTION (#top-bar) - B.E.M STYLES (.xc-topbar-contact & .xc-topbar-time)
   ========================================================================== */

#top-bar.header-top {
  background-color: #0E1A2B !important;
  color: #cbd5e1;
  font-size: 11.5px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#top-bar .nav > li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

#top-bar .nav > li > a,
#top-bar .nav-top-link {
  color: #cbd5e1;
  font-size: 11.5px;
  transition: color 0.2s ease;
}

#top-bar .nav > li > a:hover,
#top-bar .nav-top-link:hover {
  color: #FFB800;
}

/* Xóa bỏ hoàn toàn gạch viền / phân cách (border & pseudo :after) bên phải và giữa các mục */
#top-bar .nav-divided > li,
#top-bar .nav-divided > li + li,
#top-bar .top-bar-nav > li,
#top-bar .top-bar-nav > li + li,
#top-bar .html_topbar_right,
.xc-topbar-time {
  border: none !important;
}

#top-bar .nav-divided > li + li > a:after,
#top-bar .nav > li + li > a:after {
  display: none !important;
  content: none !important;
  border: none !important;
}

/* 1. Contact Block (HTML 1) */
.xc-topbar-contact {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.xc-topbar-contact__address,
.xc-topbar-contact__phone,
.xc-topbar-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.xc-topbar-contact__link:hover {
  color: #FFB800;
}

.xc-topbar-contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.xc-topbar-contact__icon svg {
  display: block;
  width: 13px;
  height: 13px;
}

/* Icon ghim địa chỉ: Hồng đỏ / Magenta-Red */
.xc-topbar-contact__icon--address {
  color: #e83670;
}

/* Icon điện thoại: Xanh xám nhạt / Soft Blue-Slate */
.xc-topbar-contact__icon--phone {
  color: #84b7d4;
}

.xc-topbar-contact__text {
  font-size: 11.5px;
  color: inherit;
  letter-spacing: 0.1px;
}

/* 2. Time Block (HTML 2) */
.xc-topbar-time {
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.xc-topbar-time__text {
  letter-spacing: 0.1px;
}

/* ==========================================================================
   MASTER HEADER (#masthead.header-main) - STYLED TO MATCH ORIGINAL DESIGN
   ========================================================================== */

#masthead.header-main {
  background-color: var(--primary, #C8102E) !important;
  color: #ffffff !important;
}

#masthead .header-inner {
  height: 78px !important;
  min-height: 78px !important;
  max-width: 1240px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Ẩn dải phân cách mặc định dưới masthead của Flatsome */
#masthead .top-divider {
  display: none !important;
}

/* 1. LOGO */
#masthead #logo {
  width: 210px;
  min-width: 210px;
  padding: 0;
}

/* Bản text logo (hiển thị khi không có logo ảnh) */
#masthead #logo a {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 900 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: #ffffff !important;
  letter-spacing: -0.5px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: inline-block !important;
}

#masthead #logo .logo-tagline {
  display: block !important;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 8px !important;
  line-height: 1.2 !important;
  letter-spacing: 3px !important;
  color: var(--accent, #FFB800) !important;
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  text-transform: uppercase !important;
}

/* Bản ảnh logo (khi user thay/tải lên logo ảnh) */
#masthead #logo a.has-image {
  font-size: 0 !important;
  line-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
}

#masthead #logo a.has-image img,
#masthead #logo img.header_logo,
#masthead #logo img.header-logo,
#masthead #logo img.header-logo-sticky,
#masthead #logo img.header-logo-dark {
  max-width: 100% !important;
  height: auto !important;
  max-height: 54px !important;
  object-fit: contain !important;
  margin: 0 auto;
}

.stuck #masthead #logo a.has-image img,
.stuck #masthead #logo img.header_logo,
.stuck #masthead #logo img.header-logo-sticky {
  max-height: 44px !important;
}

/* 2. THANH TÌM KIẾM (SEARCH CAPSULE) */
#masthead .flex-left.flex-grow {
  margin: 0 26px !important;
}

#masthead .header-search-form {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#masthead .header-search-form-wrapper,
#masthead .searchform-wrapper {
  width: 100% !important;
}

#masthead .searchform {
  height: 42px !important;
  border-radius: 24px !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  border: none !important;
}

#masthead .searchform .flex-row {
  display: flex !important;
  flex-direction: row-reverse !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  height: 42px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#masthead .searchform .flex-col {
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

#masthead .searchform .flex-col:not(.flex-grow) {
  flex: 0 0 auto !important;
  width: auto !important;
}

#masthead .searchform .flex-col.flex-grow {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#masthead .searchform .ux-search-submit {
  background: transparent !important;
  border: none !important;
  color: var(--muted, #6b7280) !important;
  padding: 0 8px 0 16px !important;
  height: 42px !important;
  line-height: 42px !important;
  min-width: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease !important;
}

#masthead .searchform .ux-search-submit:hover {
  color: var(--primary, #C8102E) !important;
}

#masthead .searchform .ux-search-submit i,
#masthead .searchform .ux-search-submit i.icon-search {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  background-color: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center / contain !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center / contain !important;
  font-size: 0 !important;
  color: inherit !important;
}

#masthead .searchform .ux-search-submit i:before {
  display: none !important;
  content: "" !important;
}

#masthead .searchform .search-field {
  height: 42px !important;
  line-height: 42px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text, #1a1a1a) !important;
  font-size: 13px !important;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  padding: 0 16px 0 0 !important;
  margin: 0 !important;
}

#masthead .searchform .search-field::placeholder {
  color: var(--muted, #6b7280) !important;
  font-size: 13px !important;
  opacity: 1 !important;
}

#masthead .searchform .search-field:focus {
  background: transparent !important;
  outline: none !important;
}

/* 3. CỤM NÚT THAO TÁC (HEAD ACTIONS) */
#masthead .nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

#masthead .nav-right > li {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

#masthead .nav-right > li:after,
#masthead .nav-right > li + li:after {
  display: none !important;
  content: none !important;
}

#masthead .nav-right > li > a {
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 11px !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  border: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
}

#masthead .nav-right > li > a:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* 3.1 Nút Tài khoản */
#masthead .account-item .account-link::before {
  content: "" !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  background-color: #ffffff !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") no-repeat center / contain !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") no-repeat center / contain !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

#masthead .account-item .header-account-title {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-transform: none !important;
  display: inline-block !important;
}

/* 3.2 Nút Wishlist (Icon Trái Tim) */
#masthead .header-wishlist-icon .header-wishlist-title {
  display: none !important;
}

#masthead .header-wishlist-icon .wishlist-link {
  width: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  justify-content: center !important;
}

#masthead .header-wishlist-icon .wishlist-icon {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#masthead .header-wishlist-icon .wishlist-icon:before,
#masthead .header-wishlist-icon .icon-heart:before {
  content: "\e906" !important;
}

/* 3.3 Nút Giỏ Hàng & Badge */
#masthead .cart-item .header-cart-link {
  padding: 0 10px !important;
  gap: 6px !important;
}

#masthead .cart-item .cart-icon {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: auto !important;
  width: auto !important;
}

#masthead .cart-item .cart-icon::before {
  content: "" !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  background-color: #ffffff !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain !important;
  flex-shrink: 0 !important;
}

#masthead .cart-item .cart-icon strong {
  position: static !important;
  min-width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  border-radius: 9px !important;
  background-color: var(--accent, #FFB800) !important;
  color: var(--dark, #0E1A2B) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  font-size: 10px !important;
  padding: 0 5px !important;
  margin: 0 !important;
  top: auto !important;
  right: auto !important;
  border: none !important;
  box-shadow: none !important;
}

/* 4. Tắt hoàn toàn dropdown menu khi hover cho Tài khoản, Giỏ hàng */
#masthead .account-item .nav-dropdown,
#masthead .cart-item .nav-dropdown,
#masthead .nav-dropdown,
#masthead .has-dropdown:hover > .nav-dropdown,
#masthead .current-dropdown > .nav-dropdown,
#masthead li:hover > .nav-dropdown {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 4.1 Tắt hoàn toàn mũi tên tam giác / bottom icon / viền chỉ dropdown khi hover ở Header */
#header .account-item:after,
#header .account-item:before,
#header .account-item > a:after,
#header .account-item > a:before,
#header .account-item.current-dropdown:after,
#header .account-item.current-dropdown:before,
#header .header-wishlist-icon:after,
#header .header-wishlist-icon:before,
#header .header-wishlist-icon > a:after,
#header .header-wishlist-icon > a:before,
#header .header-wishlist-icon.current-dropdown:after,
#header .header-wishlist-icon.current-dropdown:before,
#header .cart-item:after,
#header .cart-item:before,
#header .cart-item > a:after,
#header .cart-item > a:before,
#header .cart-item.current-dropdown:after,
#header .cart-item.current-dropdown:before,
#header .nav > li.account-item:after,
#header .nav > li.account-item:before,
#header .nav > li.header-wishlist-icon:after,
#header .nav > li.header-wishlist-icon:before,
#header .nav > li.cart-item:after,
#header .nav > li.cart-item:before,
#header .nav-right > li:after,
#header .nav-right > li:before,
#header .nav-right > li > a:after,
#header .nav-right > li > a:before,
#header .nav-dropdown-has-arrow li.has-dropdown:after,
#header .nav-dropdown-has-arrow li.has-dropdown:before,
#header.nav-dropdown-has-arrow li.has-dropdown:after,
#header.nav-dropdown-has-arrow li.has-dropdown:before,
#masthead .account-item:after,
#masthead .account-item:before,
#masthead .header-wishlist-icon:after,
#masthead .header-wishlist-icon:before,
#masthead .cart-item:after,
#masthead .cart-item:before,
#masthead .cart-item.current-dropdown:after,
#masthead .cart-item.current-dropdown:before,
#masthead .has-dropdown:after,
#masthead .has-dropdown:before,
#masthead .has-dropdown > a:after,
#masthead .nav-right > li:after,
#masthead .nav-right > li:before,
#masthead .nav-right > li > a:after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  border: none !important;
}

/* 5. Mobile Elements trong Master Header */
#masthead .mobile-nav .nav-icon > a,
#masthead .mobile-nav .cart-item > a {
  height: 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  border-radius: 11px !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: none !important;
}

#masthead .mobile-nav .cart-icon {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

#masthead .mobile-nav .cart-icon strong {
  background-color: var(--accent, #FFB800) !important;
  color: var(--dark, #0E1A2B) !important;
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
}

@media (max-width: 1000px) {
  #masthead #logo {
    width: 170px;
    min-width: 170px;
  }
  #masthead #logo a.has-image img,
  #masthead #logo img.header_logo {
    max-height: 42px !important;
  }
}

/* ==========================================================================
   FOOTER SECTION (.xc-footer) - STYLED TO MATCH ORIGINAL DESIGN
   ========================================================================== */

/* 1. Tổng quan Footer */
#footer,
.footer,
.xc-footer,
.footer-wrapper {
  margin-top: 25px !important;
  background-color: #0E1A2B !important;
  color: #cbd5e1 !important;
  padding-top: 34px !important;
  padding-bottom: 34px !important;
}

.xc-footer > .section-content,
.footer .container {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Footer Grid: 1.5fr 1fr 1fr 1fr, gap 30px chuẩn bản gốc */
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
  gap: 30px !important;
}

@media (min-width: 850px) {
  .xc-footer .row {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
    gap: 30px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  .xc-footer .row > .col {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }
}

/* 2. Logo & Slogan */
.xc-footer .footer-logo,
.footer .logo {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.xc-footer .footer-logo a,
.footer .logo a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.xc-footer .footer-logo small,
.footer .logo small {
  display: block;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #FFB800;
  margin-top: 5px;
  text-transform: uppercase;
}

/* 3. Cột 1: Đoạn mô tả & Hotline */
.xc-footer .col:first-child p:first-of-type,
.xc-footer .col:first-child p._s1,
.xc-footer p,
.footer p,
.footer li {
  font-size: 10px !important;
  line-height: 1.7 !important;
  color: #cbd5e1 !important;
  font-weight: 400 !important;
  font-style: normal !important;
  margin-bottom: 10px;
}

.xc-footer .call,
.footer .call,
.xc-footer .col:first-child .call,
.xc-footer .col:first-child p:nth-of-type(2) {
  color: #FFB800 !important;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  margin-top: 0;
  margin-bottom: 0;
}

/* 4. Tiêu đề các menu (Cột 2, 3, 4) */
.xc-footer .ux-menu-title,
.footer h4 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  color: #ffffff !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0 !important;
  margin-bottom: 12px !important;
}

/* 5. Menu Links (Cột 2, 3, 4) */
.xc-footer .footer-menu,
.footer ul {
  gap: 0;
  padding: 0 !important;
  list-style: none !important;
  margin: 0 !important;
}

.xc-footer .footer-menu .ux-menu-link {
  padding: 0;
  margin: 0;
}

.xc-footer .footer-menu .ux-menu-link__link {
  padding: 3px 0;
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.xc-footer .footer-menu .ux-menu-link__link:hover {
  color: #FFB800;
}

.xc-footer .footer-menu .ux-menu-link__text {
  font-size: 10px;
  line-height: 1.7;
  color: inherit;
}

/* 6. Đoạn văn bản bổ sung (nếu có dùng thẻ p ở các cột sau) */
.xc-footer .col:not(:first-child) p {
  font-size: 10px !important;
  line-height: 1.7 !important;
  color: #cbd5e1 !important;
  margin-bottom: 6px;
}

/* ==========================================================================
   MEGA MENU - PIXEL PERFECT TO ORIGINAL MOCKUP
   ========================================================================== */

:root {
  --primary: #C8102E;
  --primary-dark: #9a0c24;
  --accent: #FFB800;
  --dark: #0E1A2B;
  --dark2: #1a2332;
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #f5f6fa;
  --border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --white: #fff;
}

/* 1. Reset all Flatsome grid artifacts inside Mega Menu */
.xc-megamenu-dropdown,
.xc-megamenu-dropdown * {
  box-sizing: border-box !important;
  -webkit-font-smoothing: antialiased;
}

.xc-megamenu-dropdown .section,
.xc-megamenu-dropdown .section-content,
.xc-megamenu-dropdown .row,
.xc-megamenu-dropdown .col,
.xc-megamenu-dropdown .col-inner {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
}

/* ==========================================================================
   WIDE NAV / BOTTOM HEADER (#wide-nav) - STYLED TO MATCH ORIGINAL DESIGN
   ========================================================================== */

#wide-nav.header-bottom {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--border, #e5e7eb) !important;
  position: relative;
  z-index: 999;
  min-height: 47px;
}

#wide-nav .flex-row.container {
  height: 47px !important;
  min-height: 47px !important;
  max-width: 1240px !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 30px !important;
}

#wide-nav .flex-col {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

#wide-nav .flex-col.flex-right {
  display: none !important;
}

.header-mega-menu-item {
  position: relative !important;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.xc-megamenu-wrapper {
  position: relative !important;
  display: inline-flex;
  align-items: center;
}

/* 2. Nút "Danh mục sản phẩm" (Tương ứng .nav .allcat bản gốc) */
.xc-megamenu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--dark, #0E1A2B);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 0 14px;
  height: 34px;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.xc-megamenu-btn:hover,
.xc-megamenu-btn.is-active {
  background-color: #1a2332;
  color: #ffffff;
}

.xc-megamenu-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.xc-megamenu-btn__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.xc-megamenu-btn__text {
  line-height: 1;
  white-space: nowrap;
}

/* 3. Menu Links (#wide-nav .header-bottom-nav) */
#wide-nav .header-bottom-nav {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#wide-nav .header-bottom-nav > li {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

#wide-nav .header-bottom-nav > li:after,
#wide-nav .header-bottom-nav > li + li:after {
  display: none !important;
  content: none !important;
}

#wide-nav .header-bottom-nav > li > a {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--dark, #0E1A2B) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 47px !important;
  padding: 0 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  border: none !important;
}

#wide-nav .header-bottom-nav > li > a:before,
#wide-nav .header-bottom-nav > li > a:after {
  display: none !important;
  content: none !important;
}

#wide-nav .header-bottom-nav > li:hover > a,
#wide-nav .header-bottom-nav > li > a:hover,
#wide-nav .header-bottom-nav > li.active > a,
#wide-nav .header-bottom-nav > li.current-menu-item > a,
#wide-nav .header-bottom-nav > li.current_page_item > a {
  color: var(--primary, #C8102E) !important;
}

@media (max-width: 1000px) {
  #wide-nav .flex-row.container {
    gap: 16px !important;
  }
  #wide-nav .header-bottom-nav {
    gap: 16px !important;
  }
}

/* 3. Floating Card Container */
.xc-megamenu-dropdown {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  right: auto !important;
  width: 1180px !important;
  max-width: calc(100vw - 30px) !important;
  z-index: 99999 !important;
  background: transparent !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  pointer-events: none;
}

.xc-megamenu-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.xc-megamenu-card {
  width: 100% !important;
}

/* 4. Outer .mega Card with 4 Columns */
.xc-megamenu-dropdown .mega {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-top: none !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.2) !important;
  overflow: hidden !important;
}

/* Column 1: Left Dark Sidebar (240px) */
.xc-megamenu-dropdown .mega-left {
  flex: 0 0 240px !important;
  width: 240px !important;
  max-width: 240px !important;
  min-width: 240px !important;
  background-color: var(--dark, #0E1A2B) !important;
  color: #ffffff !important;
  padding: 24px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
}

.xc-megamenu-dropdown .mega-left .col-inner {
  background-color: var(--dark, #0E1A2B) !important;
  height: 100% !important;
  width: 100% !important;
}

.mega-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mini-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: var(--accent, #FFB800) !important;
  color: var(--dark, #0E1A2B) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Montserrat, sans-serif !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.mega-user__info small {
  display: block !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  font-family: Roboto, sans-serif !important;
  margin: 0 !important;
}

.mega-user__info b {
  display: block !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  font-family: Roboto, sans-serif !important;
  margin: 0 !important;
}

.mega-left h4 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  font-size: 9.5px !important;
  letter-spacing: 1.5px !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
}

.mega-left h4:not(:first-of-type) {
  margin-top: 18px !important;
}

.mega-nav-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.mega-nav-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  transition: color 0.16s ease !important;
  line-height: 1.4 !important;
  font-family: Roboto, sans-serif !important;
}

.mega-nav-item:hover {
  color: #ffffff !important;
}

.mega-nav-item.hot {
  color: var(--accent, #FFB800) !important;
  font-weight: 600 !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

.badge {
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 9px !important;
  background: var(--accent, #FFB800) !important;
  color: var(--dark, #0E1A2B) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  font-size: 10px !important;
  padding: 0 5px !important;
  line-height: 1 !important;
}

.mega-user-count {
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  margin-left: auto !important;
  font-family: Roboto, sans-serif !important;
}

/* Column 2: 12 DANH MỤC SẢN PHẨM (260px) */
.xc-megamenu-dropdown .mega-col-cat {
  flex: 0 0 260px !important;
  width: 260px !important;
  max-width: 260px !important;
  min-width: 260px !important;
  padding: 24px 20px 24px 24px !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  border-right: 1px solid #f8fafc !important;
}

/* Column 3: THIẾT BỊ & PHỤ KIỆN (260px) */
.xc-megamenu-dropdown .mega-col-acc {
  flex: 0 0 260px !important;
  width: 260px !important;
  max-width: 260px !important;
  min-width: 260px !important;
  padding: 24px 20px !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  border-right: 1px solid #f8fafc !important;
}

/* Column 4: KHÁM PHÁ THÊM (420px) */
.xc-megamenu-dropdown .mega-col-promo {
  flex: 1 1 0 !important;
  min-width: 380px !important;
  max-width: 420px !important;
  padding: 24px 24px 24px 20px !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
}

.xc-megamenu-dropdown .mega-col .col-inner {
  height: 100% !important;
  width: 100% !important;
}

/* Column Headings */
.xc-megamenu-dropdown .mega-col h3,
.xc-megamenu-dropdown .mega-col h3._s1 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 900 !important;
  font-size: 12.5px !important;
  color: var(--dark, #0E1A2B) !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  line-height: 1.3 !important;
}

/* Mega Links in Column 2 & 3 */
.mega-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6.5px 0 !important;
  margin: 0 !important;
  color: #374151 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  font-family: Roboto, sans-serif !important;
  transition: color 0.16s ease !important;
  line-height: 1.4 !important;
}

.mega-link:hover {
  color: var(--primary, #C8102E) !important;
}

.mega-link .mi {
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
  background: var(--bg, #f5f6fa) !important;
  color: var(--primary, #C8102E) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.16s ease !important;
}

.mega-link:hover .mi {
  background: #fee2e2 !important;
}

.mega-link .mi svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
}

.mega-link .mega-title {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: inherit !important;
  font-family: Roboto, sans-serif !important;
}

.mega-link .mega-count {
  margin-left: auto !important;
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  font-family: Roboto, sans-serif !important;
  padding-left: 10px !important;
}

/* Column 4: Cards */
.promo {
  background: linear-gradient(135deg, #fef2f2, #ffffff) !important;
  border: 1px solid #fecaca !important;
  border-radius: 11px !important;
  padding: 13px 15px !important;
  margin-bottom: 10px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.promo:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.promo b {
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  display: block !important;
  color: var(--dark, #0E1A2B) !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.promo p,
.promo p._s2 {
  font-family: Roboto, sans-serif !important;
  font-size: 11px !important;
  color: #6b7280 !important;
  line-height: 1.5 !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
}

.promo a.more {
  font-family: Montserrat, sans-serif !important;
  font-size: 11.5px !important;
  color: var(--primary, #C8102E) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: transform 0.16s ease !important;
  margin: 0 !important;
  padding: 0 !important;
}

.promo:hover a.more {
  transform: translateX(3px) !important;
}

.contact-card {
  background: #f5f6fa !important;
  border-radius: 11px !important;
  padding: 13px 15px !important;
  margin-top: 4px !important;
}

.contact-card .contact-card__title {
  font-family: Montserrat, sans-serif !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  color: #6b7280 !important;
  text-transform: uppercase !important;
  margin: 0 0 3px 0 !important;
  padding: 0 !important;
}

.contact-card b {
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  color: var(--primary, #C8102E) !important;
  display: block !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.contact-card p {
  font-family: Roboto, sans-serif !important;
  font-size: 10.5px !important;
  color: #6b7280 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .xc-megamenu-dropdown {
    width: 100vw !important;
    left: -15px !important;
  }
  .xc-megamenu-dropdown .mega {
    flex-direction: column !important;
  }
  .xc-megamenu-dropdown .mega-left,
  .xc-megamenu-dropdown .mega-col-cat,
  .xc-megamenu-dropdown .mega-col-acc,
  .xc-megamenu-dropdown .mega-col-promo {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   HERO SECTION (.xc-home-hero) - CLONED FROM ORIGINAL SPEC
   ========================================================================== */

/* 1. Căn lề thẳng hàng 100% từ Header xuống (Khung 1240px, padding 24px) */
.xc-home-hero {
  padding-top: 22px !important;
  padding-bottom: 16px !important;
}

.xc-home-hero > .section-content {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.xc-home-hero > .section-content > .row {
  max-width: 100% !important;
  width: calc(100% + 18px) !important;
  margin-left: -9px !important;
  margin-right: -9px !important;
  align-items: stretch;
}

.xc-home-hero > .section-content > .row > .col {
  padding-left: 9px !important;
  padding-right: 9px !important;
  padding-bottom: 0 !important;
}

/* 2. Hero Solution Box (Cột trái: Hero Main) */
.xc-home-hero > .section-content > .row > .col:first-child > .col-inner {
  min-height: 318px;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--dark, #0E1A2B), #1a2e4a);
  padding: 48px 46px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* Mixer Watermark Art (.hero-art #hero-mixer) - 100% chuẩn bản gốc */
.xc-home-hero > .section-content > .row > .col:first-child > .col-inner::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -20px;
  width: 330px;
  height: 330px;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='90' fill='%23FFB800' fill-opacity='0.1'/%3E%3Crect x='40' y='60' width='120' height='90' rx='6' fill='%231a2e4a'/%3E%3Crect x='40' y='60' width='120' height='12' rx='6' fill='%23C8102E'/%3E%3Cg transform='translate(50, 82)'%3E%3Cline x1='0' y1='0' x2='0' y2='40' stroke='%236b7280'/%3E%3Crect x='-4' y='15' width='8' height='4' fill='%23FFB800'/%3E%3Cline x1='15' y1='0' x2='15' y2='40' stroke='%236b7280'/%3E%3Crect x='11' y='25' width='8' height='4' fill='%23FFB800'/%3E%3Cline x1='30' y1='0' x2='30' y2='40' stroke='%236b7280'/%3E%3Crect x='26' y='10' width='8' height='4' fill='%23FFB800'/%3E%3Cline x1='45' y1='0' x2='45' y2='40' stroke='%236b7280'/%3E%3Crect x='41' y='28' width='8' height='4' fill='%23FFB800'/%3E%3Cline x1='60' y1='0' x2='60' y2='40' stroke='%236b7280'/%3E%3Crect x='56' y='20' width='8' height='4' fill='%23FFB800'/%3E%3Cline x1='75' y1='0' x2='75' y2='40' stroke='%236b7280'/%3E%3Crect x='71' y='18' width='8' height='4' fill='%23C8102E'/%3E%3Cline x1='90' y1='0' x2='90' y2='40' stroke='%236b7280'/%3E%3Crect x='86' y='22' width='8' height='4' fill='%23C8102E'/%3E%3C/g%3E%3Cg transform='translate(50, 132)'%3E%3Ccircle cx='5' cy='5' r='5' fill='%230E1A2B' stroke='%23FFB800'/%3E%3Ccircle cx='25' cy='5' r='5' fill='%230E1A2B' stroke='%23FFB800'/%3E%3Ccircle cx='45' cy='5' r='5' fill='%230E1A2B' stroke='%23FFB800'/%3E%3Ccircle cx='65' cy='5' r='5' fill='%230E1A2B' stroke='%23C8102E'/%3E%3Ccircle cx='85' cy='5' r='5' fill='%230E1A2B' stroke='%23C8102E'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

.xc-home-hero .box-solution {
  position: relative;
  z-index: 2;
}

/* 3. Hero Solution Content Elements */
.xc-home-hero .box-solution .sub-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 20px;
  background: rgba(255, 184, 0, 0.14);
  color: var(--accent, #FFB800);
  font-family: Montserrat, sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 !important;
  width: fit-content;
}

.xc-home-hero .box-solution .sub-title::before {
  content: "✦";
  font-size: 10px;
}

.xc-home-hero .box-solution h3 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 900 !important;
  font-size: 40px !important;
  line-height: 1.06 !important;
  color: #ffffff !important;
  margin: 15px 0 12px 0 !important;
  max-width: 650px !important;
  letter-spacing: -0.5px;
}

.xc-home-hero .box-solution h3 span {
  display: block;
  color: var(--accent, #FFB800) !important;
}

.xc-home-hero .box-solution p:not(.sub-title) {
  font-family: Roboto, sans-serif !important;
  color: #cbd5e1 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  max-width: 650px !important;
  margin: 0 0 23px 0 !important;
}

/* Nút CTA Xem giải pháp */
.xc-home-hero .btn-solution {
  background-color: var(--accent, #FFB800) !important;
  color: var(--dark, #0E1A2B) !important;
  border: 0 !important;
  border-radius: 9px !important;
  padding: 12px 18px !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  text-transform: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: unset !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

.xc-home-hero .btn-solution:hover {
  background-color: #f0ad00 !important;
  color: var(--dark, #0E1A2B) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 184, 0, 0.3) !important;
}

.xc-home-hero .btn-solution span::after {
  content: " →";
  font-size: 14px;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.xc-home-hero .btn-solution:hover span::after {
  transform: translateX(3px);
}

/* 4. Cột phải: 4 Quick Cards căn chuẩn khoảng cách 12px */
.xc-home-hero .col .row {
  margin-left: -6px !important;
  margin-right: -6px !important;
  width: calc(100% + 12px) !important;
}

.xc-home-hero .col .row > .col {
  padding: 0 6px 12px 6px !important;
}

@media (min-width: 550px) {
  .xc-home-hero .col .row > .col:nth-last-child(-n+2) {
    padding-bottom: 0 !important;
  }
}

.xc-home-hero .col .row > .col > .col-inner {
  height: 100%;
}

.xc-home-hero .box-sale,
.xc-home-hero .box-combo,
.xc-home-hero .box-event,
.xc-home-hero .box-project {
  background: #ffffff !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 15px !important;
  padding: 22px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  min-height: 148px;
  height: 100%;
  margin-bottom: 0 !important;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.xc-home-hero .box-sale:hover,
.xc-home-hero .box-combo:hover,
.xc-home-hero .box-event:hover,
.xc-home-hero .box-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1 !important;
}

/* 42x42 Icon Box Container */
.xc-home-hero .box-sale::before,
.xc-home-hero .box-combo::before,
.xc-home-hero .box-event::before,
.xc-home-hero .box-project::before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  flex-shrink: 0;
}

/* Icon 1: Giảm giá (Flame icon màu #C8102E nền #fef2f2 chuẩn Image 2) */
.xc-home-hero .box-sale::before {
  background-color: #fef2f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/svg%3E");
}

/* Icon 2: Gói KTV (Gift box màu #d69e00 nền #fffbeb chuẩn Image 2) */
.xc-home-hero .box-combo::before {
  background-color: #fffbeb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d69e00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'/%3E%3Crect x='2' y='7' width='20' height='5'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E");
}

/* Icon 3: Sự kiện (Loa phát thanh 2 sóng âm màu #2563eb nền #eff6ff chuẩn Image 2) */
.xc-home-hero .box-event::before {
  background-color: #eff6ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3C/svg%3E");
}

/* Icon 4: Dự án (Khiên tích kiểm màu #059669 nền #ecfdf5 chuẩn Image 2) */
.xc-home-hero .box-project::before {
  background-color: #ecfdf5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

/* Typography Quick Cards */
.xc-home-hero .box-sale .icon-box-text,
.xc-home-hero .box-combo .icon-box-text,
.xc-home-hero .box-event .icon-box-text,
.xc-home-hero .box-project .icon-box-text {
  padding: 0 !important;
  width: 100%;
}

.xc-home-hero .box-sale h3,
.xc-home-hero .box-combo h3,
.xc-home-hero .box-event h3,
.xc-home-hero .box-project h3 {
  font-family: Montserrat, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #1a1a1a !important;
  margin: 0 0 3px 0 !important;
  line-height: 1.3 !important;
}

.xc-home-hero .box-sale p,
.xc-home-hero .box-combo p,
.xc-home-hero .box-event p,
.xc-home-hero .box-project p {
  font-family: Roboto, sans-serif !important;
  font-size: 10px !important;
  color: var(--muted, #6b7280) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* 5. Responsive Styles */
@media (max-width: 1000px) {
  .xc-home-hero > .section-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 849px) {
  .xc-home-hero {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  .xc-home-hero > .section-content > .row > .col:first-child > .col-inner {
    padding: 36px 28px;
    margin-bottom: 12px;
  }
  .xc-home-hero .box-solution h3 {
    font-size: 32px !important;
  }
  .xc-home-hero > .section-content > .row > .col:first-child > .col-inner::after {
    display: none;
  }
}

@media (max-width: 549px) {
  .xc-home-hero > .section-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .xc-home-hero > .section-content > .row > .col:first-child > .col-inner {
    padding: 28px 20px;
    min-height: auto;
  }
  .xc-home-hero .box-solution h3 {
    font-size: 26px !important;
    line-height: 1.15 !important;
  }
  .xc-home-hero .box-solution p:not(.sub-title) {
    font-size: 13px !important;
    margin-bottom: 18px !important;
  }
  .xc-home-hero > .section-content > .row > .col:last-child .row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin: 12px 0 0 !important;
    width: 100% !important;
  }
  .xc-home-hero .col .row > .col {
    flex-basis: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .xc-home-hero .box-sale,
  .xc-home-hero .box-combo,
  .xc-home-hero .box-event,
  .xc-home-hero .box-project {
    min-height: auto !important;
    height: auto !important;
    padding: 10px 4px !important;
    border-radius: 10px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .xc-home-hero .box-sale::before,
  .xc-home-hero .box-combo::before,
  .xc-home-hero .box-event::before,
  .xc-home-hero .box-project::before {
    width: 36px !important;
    height: 36px !important;
    margin: 0 auto 6px !important;
    background-size: 18px 18px !important;
  }
  .xc-home-hero .box-sale h3,
  .xc-home-hero .box-combo h3,
  .xc-home-hero .box-event h3,
  .xc-home-hero .box-project h3 {
    font-size: 10.5px !important;
    text-align: center !important;
    margin: 0 !important;
  }
  .xc-home-hero .box-sale p,
  .xc-home-hero .box-combo p,
  .xc-home-hero .box-event p,
  .xc-home-hero .box-project p {
    display: none !important;
  }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
  .xc-topbar-contact {
    justify-content: center;
    gap: 8px 14px;
    font-size: 10.5px;
    text-align: center;
    padding: 3px 0;
  }
  .xc-topbar-contact__text {
    font-size: 10.5px;
  }
  .xc-footer .col {
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   GLOBAL COMPONENT: SECTION TITLE (.xc-section-title)
   - Dùng độc lập cho mọi section trên toàn website
   - Tiêu đề in hoa Montserrat 17px Black (900) + Vạch đỏ đứng 4x18px (#C8102E)
   - Xóa bỏ triệt để gạch chân xám, khoảng hở thừa và đường line <b> của Flatsome
   - Nút "Xem tất cả" đỏ đậm, mũi tên dài chuẩn bản gốc (→) trượt nhẹ khi hover
   ========================================================================== */

.xc-section-title,
.xc-section-title.container,
.xc-section-title.section-title-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 14px !important;
}

.xc-section-title .section-title,
.xc-section-title .section-title-normal {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.xc-section-title .section-title b,
.xc-section-title .section-title-normal b {
  display: none !important;
}

/* Xóa bỏ border-bottom xám, margin-bottom và padding-bottom mặc định của Flatsome trên span */
.xc-section-title .section-title-normal span,
.xc-section-title .section-title-normal .section-title-main {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  margin-right: 0 !important;
  padding-bottom: 0 !important;
}

/* Kiểu chữ tiêu đề chính */
.xc-section-title .section-title-main,
.xc-section-title .section-title-normal > span:first-of-type {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #0E1A2B !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

/* Vạch dọc màu đỏ bên trái tiêu đề */
.xc-section-title .section-title-main::before,
.xc-section-title .section-title-normal > span:first-of-type::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: #C8102E;
  flex-shrink: 0;
}

/* Nút Xem tất cả: Ẩn icon-angle-right của Flatsome (>), thay bằng mũi tên gốc (→) */
.xc-section-title .section-title a i,
.xc-section-title .section-title a .icon-angle-right {
  display: none !important;
}

.xc-section-title .section-title a {
  font-size: 11px !important;
  color: #C8102E !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: auto !important;
  text-transform: none !important;
  transition: color 0.2s ease !important;
}

.xc-section-title .section-title a::after {
  content: " \2192" !important;
  display: inline-block !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  margin-left: 4px !important;
  transition: transform 0.2s ease !important;
}

.xc-section-title .section-title a:hover {
  color: #9a0c24 !important;
}

.xc-section-title .section-title a:hover::after {
  transform: translateX(3px) !important;
}

/* ==========================================================================
   FEATURED CATEGORIES SECTION (.xc-home-featured-cats)
   - Khóa khung max-width: 1240px, padding: 24px (thẳng tắp 100% Header & Hero)
   - Background section: #f5f6fa
   - 6 Icon Cards: Badge 50x50 icon vàng viền mỏng, hover nhấc nhẹ
   ========================================================================== */

/* 1. Khung Section & Background #f5f6fa */
.xc-home-featured-cats {
  background-color: #f5f6fa !important;
  padding-top: 18px !important;
  padding-bottom: 22px !important;
}

.xc-home-featured-cats > .section-content {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2. Căn lề Hàng Tiêu Đề thẳng tắp với khung nội dung */
.xc-home-featured-cats > .section-content > .row:first-child {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.xc-home-featured-cats > .section-content > .row:first-child > .col {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.xc-home-featured-cats > .section-content > .row:first-child .col-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 3. Căn lề Hàng Thẻ Danh Mục (khoảng cách giữa các thẻ chuẩn 12px) */
.xc-home-featured-cats > .section-content > .row:last-child {
  max-width: calc(100% + 12px) !important;
  width: calc(100% + 12px) !important;
  margin-left: -6px !important;
  margin-right: -6px !important;
  margin-bottom: 0 !important;
}

.xc-home-featured-cats > .section-content > .row:last-child > .col {
  padding-left: 6px !important;
  padding-right: 6px !important;
  padding-bottom: 0 !important;
}

.xc-home-featured-cats .col-inner {
  height: 100%;
}

/* 4. Thẻ Danh Mục (.featured-box) */
.xc-home-featured-cats .featured-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  padding: 17px 10px;
  text-align: center !important;
  cursor: pointer;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
  height: 100%;
  box-sizing: border-box;
}

.xc-home-featured-cats .featured-box:hover {
  border-color: #C8102E;
  transform: translateY(-2px);
}

.xc-home-featured-cats .featured-box a {
  text-decoration: none !important;
  color: inherit !important;
}

/* 5. 50x50 Icon Container Badge (Gradient background + centered SVG icon) */
.xc-home-featured-cats .featured-box::before {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin: 0 auto 9px;
  flex-shrink: 0;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 22px 22px, 100% 100%;
  background-color: #0E1A2B;
}

/* Category Specific Icons (matching original SVGs with #FFB800 stroke) */
.xc-home-featured-cats .featured-box.box-capacity::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB800' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E"), linear-gradient(135deg, #0E1A2B, #1a2e4a);
}

.xc-home-featured-cats .featured-box.box-mixer::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB800' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E"), linear-gradient(135deg, #0E1A2B, #1a2e4a);
}

.xc-home-featured-cats .featured-box.box-micro::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB800' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cline x1='12' y1='19' x2='12' y2='23'/%3E%3Cline x1='8' y1='23' x2='16' y2='23'/%3E%3C/svg%3E"), linear-gradient(135deg, #0E1A2B, #1a2e4a);
}

.xc-home-featured-cats .featured-box.box-ktv-speaker::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB800' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Ccircle cx='12' cy='14' r='4'/%3E%3Ccircle cx='12' cy='7' r='1.5' fill='%23FFB800'/%3E%3C/svg%3E"), linear-gradient(135deg, #0E1A2B, #1a2e4a);
}

.xc-home-featured-cats .featured-box.box-event-speaker::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB800' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3C/svg%3E"), linear-gradient(135deg, #0E1A2B, #1a2e4a);
}

.xc-home-featured-cats .featured-box.box-light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB800' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E"), linear-gradient(135deg, #0E1A2B, #1a2e4a);
}

/* 6. Typography */
.xc-home-featured-cats .icon-box-text {
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
}

.xc-home-featured-cats .icon-box-text h3 {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* 7. Responsive: 3 columns on tablet & mobile, padding chuẩn đồng bộ */
@media (max-width: 1000px) {
  .xc-home-featured-cats > .section-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 849px) {
  .xc-home-featured-cats {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  .xc-home-featured-cats > .section-content > .row:last-child > .col {
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
    padding-bottom: 12px !important;
  }
}

@media (max-width: 549px) {
  .xc-home-featured-cats > .section-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .xc-home-featured-cats > .section-content > .row:last-child {
    width: calc(100% + 8px) !important;
    max-width: calc(100% + 8px) !important;
    margin-left: -4px !important;
    margin-right: -4px !important;
  }
  .xc-home-featured-cats > .section-content > .row:last-child > .col {
    padding-left: 4px !important;
    padding-right: 4px !important;
    padding-bottom: 8px !important;
  }
  .xc-home-featured-cats .featured-box {
    padding: 12px 6px;
  }
  .xc-home-featured-cats .featured-box::before {
    width: 44px;
    height: 44px;
    background-size: 20px 20px, 100% 100%;
    margin-bottom: 7px;
  }
  .xc-home-featured-cats .icon-box-text h3 {
    font-size: 10.5px !important;
  }
}

/* ==========================================================================
   FLASH SALE SECTION (.xc-home-flashsale)
   - Khóa khung max-width: 1240px, padding: 24px (thẳng tắp 100% Header, Hero & Categories)
   - Khắc phục triệt để lỗi section mặc định của Flatsome bị rộng (1410px)
   ========================================================================== */

/* 1. Khóa khung chuẩn 1240px & padding 24px từ Header xuống */
.xc-home-flashsale {
  padding-top: 10px !important;
  padding-bottom: 18px !important;
}

.xc-home-flashsale > .section-content {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Khoảng cách thẻ sản phẩm chuẩn gap: 14px (mỗi bên padding 7px) */
.xc-home-flashsale .row-slider {
  margin-left: -7px !important;
  margin-right: -7px !important;
  width: calc(100% + 14px) !important;
}

.xc-home-flashsale .row-slider .product-small.col {
  padding-left: 7px !important;
  padding-right: 7px !important;
  padding-bottom: 14px !important;
}

/* 2. Flash Sale Banner (Căn giữa hoàn hảo, triệt tiêu padding-bottom của .col) */
.flash,
.xc-home-flashsale .row-flashsale {
  background: linear-gradient(135deg, #C8102E, #7a0a20) !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  padding: 13px 20px !important;
  margin-top: 8px !important;
  margin-bottom: 20px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

/* Triệt tiêu padding-bottom: 30px mặc định của Flatsome .col để căn giữa hoàn hảo trên dưới */
.xc-home-flashsale .row-flashsale > .col {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.xc-home-flashsale .row-flashsale > .col > .col-inner {
  display: flex !important;
  align-items: center !important;
}

.xc-home-flashsale .row-flashsale > .col:last-child > .col-inner {
  justify-content: flex-end !important;
}

.xc-home-flashsale .row-flashsale > .col:last-child p {
  margin: 0 !important;
}

/* 3. Cột trái: Icon Box (.box-flashsale) */
.xc-home-flashsale .box-flashsale {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
}

.xc-home-flashsale .box-flashsale:hover {
  transform: none !important;
  border-color: transparent !important;
}

/* Icon ngọn lửa (#ic-fire) 22x22px chuẩn bản gốc */
.xc-home-flashsale .box-flashsale::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFB800' stroke='%23FFB800' stroke-width='0.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Typography Icon Box */
.xc-home-flashsale .box-flashsale .icon-box-text {
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

.xc-home-flashsale .box-flashsale .icon-box-text h3 {
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: normal !important;
}

.xc-home-flashsale .box-flashsale .icon-box-text p {
  font-size: 10px !important;
  color: #ffffff !important;
  opacity: 0.85 !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
}

/* 4. Cột phải: Countdown Timer (.time / [xc-countdown-time]) */
.xc-home-flashsale .row-flashsale > .col:last-child > .col-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.xc-home-flashsale .row-flashsale .time,
.xc-home-flashsale .row-flashsale .xc-countdown-time,
.xc-home-flashsale .row-flashsale [class*="countdown"],
.xc-home-flashsale .row-flashsale > .col:last-child > .col-inner > *:not(.icon-box) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #0E1A2B !important;
  color: #ffffff !important;
  border-radius: 7px !important;
  padding: 7px 11px !important;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* 5. Responsive: Mobile & Tablet */
@media (max-width: 1000px) {
  .xc-home-flashsale > .section-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 549px) {
  .xc-home-flashsale > .section-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .xc-home-flashsale .row-flashsale {
    padding: 12px 14px !important;
  }
  .xc-home-flashsale .box-flashsale {
    gap: 8px !important;
  }
  .xc-home-flashsale .box-flashsale::before {
    width: 18px;
    height: 18px;
  }
  .xc-home-flashsale .box-flashsale .icon-box-text h3 {
    font-size: 11.5px !important;
  }
  .xc-home-flashsale .box-flashsale .icon-box-text p {
    font-size: 9.5px !important;
  }
  .xc-home-flashsale .row-flashsale .time,
  .xc-home-flashsale .row-flashsale .xc-countdown-time,
  .xc-home-flashsale .row-flashsale [class*="countdown"],
  .xc-home-flashsale .row-flashsale > .col:last-child > .col-inner > *:not(.icon-box) {
    font-size: 11.5px !important;
    padding: 6px 9px !important;
  }
}

/* ==========================================================================
   GLOBAL COMPONENT: PRODUCT CARDS (.product-small)
   - Áp dụng chuẩn visual bản gốc cho cả UX Builder & WooCommerce Loop
   - Khung card bo góc 13px, viền xám 1px #e5e7eb, hover trượt nhẹ 3px + đổ bóng
   - Khung ảnh 158px nền gradient #fafbfc -> #e5e7eb, ảnh/icon căn giữa chuẩn 58%
   - Badge giảm giá đỏ bo góc 5px (hoặc BEST vàng) chuẩn Montserrat 9px 800
   - Nút yêu thích tròn trắng 28x28px luôn hiển thị ở góc trên bên phải
   - Thương hiệu "AN QUÂN" + Tiêu đề 12px 600 + Giá bán nổi bật Montserrat 15px 900
   ========================================================================== */

/* 1. Khung thẻ sản phẩm (Card Box) */
.product-small.col > .col-inner {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  position: relative !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  box-sizing: border-box !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-small.col:hover > .col-inner,
.product-small.col.has-hover:hover > .col-inner {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.product-small.col > .col-inner > .product-small.box {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 2. Khung ảnh sản phẩm (Gradient Background & Centered Image/SVG) */
.product-small .box-image {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  background: linear-gradient(135deg, #fafbfc, #e5e7eb) !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
}

.product-small .box-image .image-none,
.product-small .box-image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
}

.product-small.col:hover .box-image img,
.product-small.col:hover .box-image svg {
  transform: scale(1.05) !important;
}

/* 3. Badge giảm giá & nhãn đặc biệt */
.product-small .badge-container {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 5 !important;
}

.product-small .badge-container .badge,
.product-small .badge-container .badge-inner,
.product-small .badge-container .badge-frame {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

.product-small .badge-container .onsale,
.product-small .badge-container .badge-inner span {
  display: inline-block !important;
  background: #C8102E !important;
  color: #ffffff !important;
  border-radius: 5px !important;
  padding: 4px 7px !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

/* Badge HOT / BEST: nền vàng chữ đậm */
.product-small .badge-container .hot .onsale,
.product-small .badge-container .best .onsale,
.product-small .badge-container .badge-inner.hot span,
.product-small .badge-container .badge-inner.best span {
  background: #FFB800 !important;
  color: #0E1A2B !important;
}

/* 4. Nút Wishlist (Trái tim góc phải trên cùng) */
.product-small .image-tools.top.right,
.prod .wish {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  z-index: 6 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.product-small .image-tools.show-on-hover,
.product-small:not(:hover) .image-tools.show-on-hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.product-small .wishlist-icon {
  margin: 0 !important;
  padding: 0 !important;
}

.product-small .wishlist-icon .wishlist-button,
.product-small .wishlist-button,
.prod .wish {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  line-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #6b7280 !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12) !important;
  transition: color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
  cursor: pointer !important;
  z-index: 2 !important;
}

.product-small .wishlist-icon .wishlist-button:hover,
.product-small .wishlist-button:hover,
.prod .wish:hover {
  color: #C8102E !important;
  border: none !important;
  background: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
}

.product-small .wishlist-button i,
.product-small .wishlist-button svg,
.prod .wish svg {
  font-size: 13px !important;
  width: 13px !important;
  height: 13px !important;
  line-height: 1 !important;
  color: inherit !important;
  stroke: currentColor !important;
  fill: none !important;
}

.product-small .wishlist-button .icon-heart:before,
.prod .wish .icon-heart:before {
  content: "\e906" !important;
}

/* Ẩn text thừa từ plugin Wishlist nếu có */
.product-small .add_to_wishlist span,
.product-small .yith-wcwl-wishlistaddedbrowse span,
.product-small .yith-wcwl-wishlistexistsbrowse span,
.product-small .wishlist-popup {
  display: none !important;
}

/* 5. Khung thông tin văn bản (.box-text / .prod-info) */
.product-small .box-text,
.product-small .box-text-products,
.prod .prod-info {
  padding: 12px !important;
  text-align: left !important;
  height: auto !important;
  min-height: 0 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

/* Tên thương hiệu: lấy động từ taxonomy product_brand */
.product-small .prod-brand,
.product-small .product-brand {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 9px !important;
  letter-spacing: 1px !important;
  color: #6b7280 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 5px !important;
  line-height: 1.2 !important;
  display: block !important;
}

.product-small .prod-brand a,
.product-small .product-brand a {
  color: #6b7280 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.product-small .prod-brand a:hover,
.product-small .product-brand a:hover {
  color: #C8102E !important;
}

/* Tên sản phẩm */
.product-small .title-wrapper {
  margin: 0 0 6px !important;
  padding: 0 !important;
  height: auto !important;
}

.product-small .product-title,
.product-small .woocommerce-loop-product__title {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.product-small .product-title a,
.product-small .woocommerce-loop-product__title a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.product-small .product-title a:hover,
.product-small .woocommerce-loop-product__title a:hover {
  color: #C8102E !important;
}

/* Khung giá sản phẩm */
.product-small .price-wrapper {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 4px !important;
  height: auto !important;
}

.product-small .price {
  display: flex !important;
  align-items: baseline !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Giá bán thực tế (ins hoặc khi không giảm giá): Montserrat 15px 900 Đỏ */
.product-small .price ins,
.product-small .price > .amount:not(del .amount) {
  order: 1 !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  color: #C8102E !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.product-small .price ins .amount {
  font-family: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
}

/* Giá cũ gạch ngang (del): 10px Xám */
.product-small .price del {
  order: 2 !important;
  font-size: 10px !important;
  color: #6b7280 !important;
  text-decoration: line-through !important;
  opacity: 1 !important;
  line-height: 1 !important;
  font-weight: 400 !important;
}

.product-small .price del .amount {
  font-size: 10px !important;
  color: #6b7280 !important;
  font-weight: 400 !important;
}

/* 6. Hàng Meta đánh giá sao & Đã bán (.xc-custom-meta) chuẩn bản gốc */
.product-small .xc-custom-meta,
.product-small .meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #6b7280 !important;
  font-size: 9px !important;
  margin-top: 7px !important;
  margin-bottom: 0 !important;
  padding-top: 2px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  line-height: 1.3 !important;
}

.product-small .xc-custom-meta .stars,
.product-small .meta .stars {
  color: #d69e00 !important;
  font-weight: 700 !important;
  font-size: 9.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.product-small .xc-custom-meta .sold,
.product-small .meta .sold,
.product-small .meta span:last-child {
  color: #6b7280 !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  margin-left: auto !important;
}

/* Icon thay thế sản phẩm */
.xc-product-custom-icon {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Đánh giá sao mặc định của WooCommerce (nếu có) */
.product-small .star-rating {
  font-size: 10px !important;
  color: #d69e00 !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}

/* 6. Mũi tên điều hướng Slider sản phẩm (Flickity) */
.row-slider.flickity-enabled .flickity-viewport {
  padding-top: 6px !important;
  padding-bottom: 12px !important;
  margin-top: -6px !important;
  margin-bottom: -12px !important;
}


/* 7. Responsive: Tablet & Mobile */
@media (max-width: 549px) {
  .product-small .box-text,
  .product-small .box-text-products {
    padding: 10px !important;
  }
  .product-small .product-title,
  .product-small .woocommerce-loop-product__title {
    font-size: 11.5px !important;
    height: 32px !important;
  }
  .product-small .price ins,
  .product-small .price > .amount:not(del .amount) {
    font-size: 13.5px !important;
  }
}

/* ==========================================================================
   GLOBAL SECTION BACKGROUND: #f5f6fa (TRỪ FOOTER VẪN GIỮ MÀU TỐI #0E1A2B NHƯ CŨ)
   ========================================================================== */
body,
#main,
.page-wrapper,
.content-area,
.section:not(.xc-footer):not(#footer):not(.footer-wrapper):not([class*="footer"]) {
  background-color: #f5f6fa !important;
}

/* Đảm bảo Footer tuyệt đối giữ nguyên màu tối ban đầu #0E1A2B */
.xc-footer,
.footer-wrapper,
#footer,
.footer-wrapper .section,
#footer .section,
.xc-footer.section,
.xc-footer .section-bg {
  background-color: #0E1A2B !important;
  color: #cbd5e1 !important;
}

/* ==========================================================================
   SECTION THƯƠNG HIỆU PHÂN PHỐI (.xc-home-brand)
   - Khóa khung max-width: 1240px, padding: 24px (thẳng tắp 100% Header & Hero)
   - Background section: #f5f6fa
   ========================================================================== */

/* 1. Khung Section & Background #f5f6fa */
.xc-home-brand {
  background-color: #f5f6fa !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.xc-home-brand .section-bg {
  background-color: #f5f6fa !important;
}

/* Khóa khung 1240px + padding 24px chuẩn Header & Hero (vùng nội dung 1192px) */
.xc-home-brand > .section-content {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2. Căn lề Hàng Tiêu Đề thẳng tắp mép trái với khung nội dung */
.xc-home-brand > .section-content > .row:first-child {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.xc-home-brand > .section-content > .row:first-child > .col {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.xc-home-brand > .section-content > .row:first-child .col-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 3. Phân bổ cột thương hiệu (5 thương hiệu trên 1 hàng ngang ở Desktop, khoảng cách 10px) */
.xc-home-brand > .section-content > .row:last-child {
  max-width: calc(100% + 10px) !important;
  width: calc(100% + 10px) !important;
  margin-left: -5px !important;
  margin-right: -5px !important;
  margin-bottom: 0 !important;
}

@media screen and (min-width: 850px) {
  .xc-home-brand > .section-content > .row:last-child > .col {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    padding: 0 5px !important;
  }
}

/* Tablet & Mobile: khoảng cách 10px đồng bộ */
@media screen and (max-width: 849px) {
  .xc-home-brand > .section-content > .row:last-child > .col {
    padding: 0 5px 10px !important;
  }
}

/* 4. Khung thương hiệu (.box-brand / .brand-tile) */
.xc-home-brand .box-brand {
  height: 58px !important;
  min-height: 58px !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  background-color: #ffffff !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 10px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  cursor: pointer;
}

.xc-home-brand .box-brand:hover {
  border-color: var(--primary, #C8102E) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Khung chữ bên trong icon-box */
.xc-home-brand .box-brand .icon-box-text {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Chữ tên thương hiệu chuẩn Montserrat 13px 900 */
.xc-home-brand .box-brand h3,
.xc-home-brand .box-brand .icon-box-text h3 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: var(--muted, #6b7280) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  transition: color 0.2s ease !important;
}

.xc-home-brand .box-brand:hover h3 {
  color: var(--primary, #C8102E) !important;
}

/* Hỗ trợ trường hợp dùng ảnh logo thay vì chữ */
.xc-home-brand .box-brand .icon-box-img {
  margin: 0 !important;
  max-height: 36px !important;
}

.xc-home-brand .box-brand img {
  max-height: 36px !important;
  max-width: 85% !important;
  object-fit: contain !important;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease !important;
}

.xc-home-brand .box-brand:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* 5. Responsive Padding cho Section Content */
@media (max-width: 1000px) {
  .xc-home-brand > .section-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 549px) {
  .xc-home-brand > .section-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ==========================================================================
   TABLET & DESKTOP SYNC (BREAKPOINT <= 1000px)
   ========================================================================== */
@media (max-width: 1000px) and (min-width: 550px) {
  /* 4 Quick Cards trên 1 hàng ngang khi ở màn hình Tablet */
  .xc-home-hero .col .row > .col {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}

@media (max-width: 1000px) {
  /* 6 Danh mục chia 3 cột / hàng */
  .xc-home-featured-cats > .section-content > .row:last-child > .col {
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
    padding-bottom: 12px !important;
  }
  .cat-row {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .hero-side {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ==========================================================================
   ORIGINAL MOCKUP COMPATIBILITY LAYER
   - Hỗ trợ trực tiếp nếu người dùng dùng raw HTML hoặc paste code mockup
   ========================================================================== */
.container {
  max-width: 1240px;
  margin: auto;
  padding: 0 24px;
}

.cat-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.cat-card {
  background: #ffffff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 13px;
  padding: 17px 10px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--primary, #C8102E);
  transform: translateY(-2px);
}

.cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dark, #0E1A2B), #1a2e4a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #FFB800);
  margin: 0 auto 9px;
}

.cat-card b {
  font-size: 11px;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.prod {
  background: #ffffff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
}

.prod:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.prod-img {
  height: 158px;
  background: linear-gradient(135deg, #fafbfc, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-img svg {
  width: 58%;
  height: 58%;
}

.prod-info {
  padding: 12px;
}

.prod-info .brand,
.prod .brand {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted, #6b7280);
  font-weight: 700;
  text-transform: uppercase;
}

.prod-info .prod-name,
.prod .prod-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  height: 35px;
  margin: 5px 0 8px;
}

.prod-info .price,
.prod .price {
  font: 900 15px Montserrat;
  color: var(--primary, #C8102E);
}

.prod-info .old,
.prod .old {
  font-size: 10px;
  color: var(--muted, #6b7280);
  text-decoration: line-through;
  margin-left: 5px;
}

.prod-info .meta,
.prod .meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted, #6b7280);
  font-size: 9px;
  margin-top: 7px;
}

.prod-info .stars,
.prod .stars {
  color: #d69e00;
  font-weight: 700;
}

.prod-badge {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  background: var(--primary, #C8102E);
  color: #ffffff;
  border-radius: 5px;
  padding: 4px 7px;
  font: 800 9px Montserrat;
  text-transform: uppercase;
}

.prod-badge.hot {
  background: var(--accent, #FFB800);
  color: var(--dark, #0E1A2B);
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.brand-tile {
  height: 58px;
  border: 1px solid var(--border, #e5e7eb);
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 13px Montserrat;
  color: #6b7280;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.brand-tile:hover {
  border-color: var(--primary, #C8102E);
  color: var(--primary, #C8102E);
}

.view-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  gap: 8px;
  background: rgba(14, 26, 43, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 184, 0, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 30px;
}

.view-switcher a {
  color: #ffffff;
  text-decoration: none;
  font: 700 11px Montserrat, sans-serif;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.view-switcher a.active,
.view-switcher a:hover {
  background: var(--accent, #FFB800);
  color: var(--dark, #0E1A2B);
}

/* ==========================================================================
   SINGLE PRODUCT PAGE (AN QUÂN AUDIO - REFERENCE MATCH)
   ========================================================================== */
.ic {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.ic-16 {
  width: 16px;
  height: 16px;
}

.crumb {
  font-size: 11px;
  color: var(--muted, #6b7280);
  padding: 12px 14px;
  box-sizing: border-box;
}

.crumb a {
  color: var(--muted, #6b7280);
  text-decoration: none;
  transition: color 0.2s ease;
}

.crumb a:hover {
  color: var(--primary, #C8102E);
}

.crumb b {
  color: var(--dark, #0E1A2B);
}

.btn {
  border: 0px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  padding: 12px 18px;
  font: 800 12px Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-transform: none !important;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary, #C8102E), var(--primary-dark, #9a0c24));
  color: #ffffff !important;
  border: none;
}

.btn-primary:hover {
  opacity: 0.92;
  color: #ffffff !important;
}

.btn-outline {
  background: #ffffff !important;
  color: var(--primary, #C8102E) !important;
  border: 1.5px solid var(--primary, #C8102E) !important;
}

.btn-outline:hover {
  background: #fff5f5 !important;
}

.brand {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted, #6b7280);
  font-weight: 700;
}

.old {
  font-size: 11px;
  color: var(--muted, #6b7280);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

.stars {
  color: rgb(214, 158, 0);
  font-weight: 600;
}

.single-product #main {
  background: var(--bg, #f5f6fa) !important;
}

.pd {
  padding-bottom: 35px;
  background: var(--bg, #f5f6fa);
}

.pd .container {
  max-width: 1240px !important;
  margin: auto !important;
  padding: 0px 24px !important;
}


.pd-main {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 34px;
}

.gallery {
  background: #ffffff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 15px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-main {
  flex: 1 1 auto;
  width: 100%;
  min-height: 385px;
  border-radius: 12px;
  background: #eef1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-main svg {
  width: 50%;
  height: 50%;
  max-width: 200px;
  max-height: 120px;
}

.thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
}

.thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
  padding: 4px;
}

.thumb:hover {
  border-color: #cbd5e1;
}

.thumb.active {
  border: 2px solid var(--primary, #C8102E);
}

.thumb svg {
  width: 55%;
  height: 55%;
  max-width: 44px;
  max-height: 26px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-info {
  background: #ffffff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 15px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.pd-info h1 {
  font: 900 25px / 1.28 Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark, #0E1A2B);
  margin: 7px 0px 12px;
}

.pd-meta {
  display: flex;
  gap: 13px;
  font-size: 11px;
  color: var(--muted, #6b7280);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.price-box {
  margin: 16px 0px;
  background: linear-gradient(135deg, rgb(254, 242, 242), rgb(255, 255, 255));
  border: 1px dashed rgb(254, 202, 202);
  border-radius: 11px;
  padding: 16px;
}

.price-big {
  font: 900 30px Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--primary, #C8102E);
}

.save {
  font-size: 11px;
  color: var(--success, #10b981);
  font-weight: 700;
  margin-top: 4px;
}

.stock {
  font-size: 11px;
  color: var(--success, #10b981);
  font-weight: 700;
  margin-top: 8px;
}

.policies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 0;
}

.policy {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg, #f5f6fa);
  border-radius: 9px;
  padding: 10px;
}

.policy-ic {
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: var(--primary, #C8102E);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.policy b {
  font-size: 11px;
  display: block;
  color: var(--dark, #0E1A2B);
  line-height: 1.2;
}

.policy small {
  display: block;
  font-size: 9px;
  color: var(--muted, #6b7280);
  line-height: 1.2;
  margin-top: 2px;
}

.xc-cart-form {
  margin: 0 !important;
  margin-top: auto !important;
  padding-top: 24px !important;
}

.buybar {
  display: grid;
  grid-template-columns: 105px 1fr 1.25fr;
  gap: 9px;
  margin-top: 0;
  align-items: stretch;
}

.buybar .qty {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 14px !important;
  font: 800 13px Montserrat, sans-serif !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

.buybar .qty-btn {
  cursor: pointer;
  font-size: 16px;
  color: #4b5563;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 100%;
  transition: color 0.2s;
}

.buybar .qty-btn:hover {
  color: var(--primary, #C8102E);
}

.buybar .qty-num {
  font-weight: 800;
  font-size: 13px;
  color: var(--dark, #0E1A2B);
  min-width: 20px;
  text-align: center;
}

.buybar button.btn,
.buybar a.btn {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  line-height: 44px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  font: 800 12.5px Montserrat, sans-serif !important;
  text-transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.buybar .btn-outline {
  background: #ffffff !important;
  color: var(--primary, #C8102E) !important;
  border: 1.5px solid var(--primary, #C8102E) !important;
}

.buybar .btn-outline:hover {
  background: #fff5f5 !important;
}

.buybar .btn-primary {
  background: linear-gradient(135deg, var(--primary, #C8102E), var(--primary-dark, #9a0c24)) !important;
  color: #ffffff !important;
  border: none !important;
}

.buybar .btn-primary:hover {
  opacity: 0.93 !important;
}

.tabs {
  margin-top: 20px;
  background: #ffffff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
}

.tab-head {
  height: 53px;
  display: flex;
  border-bottom: 1px solid var(--border, #e5e7eb);
  padding: 0px 20px;
  gap: 32px;
  align-items: center;
  background: #ffffff;
}

.tab-head a {
  font-size: 12px;
  color: var(--muted, #6b7280);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  line-height: 53px;
  display: inline-block;
  transition: color 0.2s;
}

.tab-head a:hover {
  color: var(--primary, #C8102E);
}

.tab-head a.active {
  color: var(--primary, #C8102E);
}

.tab-head a.active::after {
  content: "";
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  height: 3px;
  background: var(--primary, #C8102E);
}

.tab-body {
  padding: 22px;
}

.xc-desc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 35px;
}

.tab-body h3 {
  font: 900 14px Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark, #0E1A2B);
  margin-top: 0;
  margin-bottom: 12px;
}

.tab-body p {
  font-size: 12px;
  color: rgb(55, 65, 81);
  line-height: 1.8;
  margin-bottom: 12px;
}

.specs {
  background: var(--bg, #f5f6fa);
  border-radius: 10px;
  padding: 8px 14px;
}

.spec {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 9px 0px;
  border-bottom: 1px dashed var(--border, #e5e7eb);
}

.spec:last-child {
  border: 0px;
}

.spec span:first-child {
  color: var(--muted, #6b7280);
}

.spec b {
  max-width: 60%;
  text-align: right;
  color: var(--dark, #0E1A2B);
}

.xc-warranty-content {
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
}

.xc-warranty-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.xc-warranty-content li {
  margin-bottom: 8px;
}

/* Ẩn tiêu đề / breadcrumb mặc định của Flatsome trên Single Product */
.single-product .page-title.product-page-title,
.single-product .shop-page-title {
  display: none !important;
}

/* Responsive */
@media (max-width: 1000px) {
  .pd-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .xc-desc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .buybar {
    grid-template-columns: 100px 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .gallery-main {
    height: 280px;
  }
  .buybar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .qty {
    height: 44px;
  }
  .policies {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .tab-head {
    gap: 18px;
    padding: 0 14px;
    overflow-x: auto;
  }
  .tab-head a {
    white-space: nowrap;
  }
}

/* ==========================================================================
   REVIEWS TAB (ĐỒNG BỘ THEME AN QUÂN AUDIO)
   ========================================================================== */
.xc-reviews-wrap #reviews {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 32px !important;
  margin: 0 !important;
  width: 100% !important;
}

.xc-reviews-wrap #comments {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
}

.xc-reviews-wrap .woocommerce-Reviews-title {
  font: 800 15px Montserrat, sans-serif !important;
  color: var(--dark, #0E1A2B) !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  line-height: 1.4 !important;
}

.xc-reviews-wrap .woocommerce-Reviews-title span {
  color: var(--primary, #C8102E) !important;
}

.xc-reviews-wrap .commentlist {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.xc-reviews-wrap .commentlist li.comment {
  background: var(--bg, #f5f6fa) !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 10px !important;
  padding: 16px !important;
  margin-bottom: 14px !important;
  list-style: none !important;
}

.xc-reviews-wrap .commentlist li.comment .comment_container {
  display: flex !important;
  gap: 14px !important;
}

.xc-reviews-wrap .commentlist .avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  flex-shrink: 0 !important;
}

.xc-reviews-wrap .comment-text {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.xc-reviews-wrap .star-rating,
.xc-reviews-wrap .star-rating span::before {
  color: #FFB800 !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
}

.xc-reviews-wrap .comment-text .meta {
  font-size: 12px !important;
  color: var(--muted, #6b7280) !important;
  margin-top: 4px !important;
  margin-bottom: 6px !important;
}

.xc-reviews-wrap .comment-text .meta strong {
  color: var(--dark, #0E1A2B) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

.xc-reviews-wrap .comment-text .description {
  font-size: 13px !important;
  color: #374151 !important;
  line-height: 1.6 !important;
}

.xc-reviews-wrap .woocommerce-noreviews {
  background: var(--bg, #f5f6fa) !important;
  border: 1px dashed var(--border, #e5e7eb) !important;
  border-radius: 10px !important;
  padding: 20px !important;
  font-size: 13px !important;
  color: var(--muted, #6b7280) !important;
  text-align: center !important;
}

/* Review Form bên phải */
.xc-reviews-wrap #review_form_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
}

.xc-reviews-wrap .review-form-inner {
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 12px !important;
  background: var(--bg, #f5f6fa) !important;
  padding: 22px !important;
}

.xc-reviews-wrap .comment-reply-title {
  font: 800 15px Montserrat, sans-serif !important;
  color: var(--dark, #0E1A2B) !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.xc-reviews-wrap .comment-form-rating {
  margin-bottom: 14px !important;
}

.xc-reviews-wrap .comment-form-rating label {
  font-weight: 600 !important;
  font-size: 12px !important;
  color: #4b5563 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.xc-reviews-wrap p.stars {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 6px 0 16px !important;
}

.xc-reviews-wrap p.stars span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.xc-reviews-wrap p.stars span a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #cbd5e1 !important;
  font-size: 0 !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  overflow: hidden !important;
}

.xc-reviews-wrap p.stars span a::before {
  content: "★" !important;
  font-size: 18px !important;
  color: inherit !important;
  line-height: 1 !important;
}

.xc-reviews-wrap p.stars span a:hover,
.xc-reviews-wrap p.stars span a.active {
  background: #fffbeb !important;
  border-color: #FFB800 !important;
  color: #FFB800 !important;
}


.xc-reviews-wrap .comment-form-comment label,
.xc-reviews-wrap .comment-form-author label,
.xc-reviews-wrap .comment-form-email label {
  font-weight: 600 !important;
  font-size: 12px !important;
  color: #4b5563 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.xc-reviews-wrap textarea {
  width: 100% !important;
  min-height: 105px !important;
  background: #ffffff !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  resize: vertical !important;
  box-shadow: none !important;
}

.xc-reviews-wrap textarea:focus,
.xc-reviews-wrap input[type="text"]:focus,
.xc-reviews-wrap input[type="email"]:focus {
  border-color: var(--primary, #C8102E) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1) !important;
}

.xc-reviews-wrap input[type="text"],
.xc-reviews-wrap input[type="email"] {
  width: 100% !important;
  height: 38px !important;
  background: #ffffff !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

.xc-reviews-wrap .form-submit {
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

.xc-reviews-wrap #submit {
  background: linear-gradient(135deg, var(--primary, #C8102E), var(--primary-dark, #9a0c24)) !important;
  color: #ffffff !important;
  font: 800 13px Montserrat, sans-serif !important;
  border-radius: 8px !important;
  padding: 11px 26px !important;
  border: none !important;
  cursor: pointer !important;
  text-transform: none !important;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.xc-reviews-wrap #submit:hover {
  opacity: 0.92 !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 800px) {
  .xc-reviews-wrap #reviews {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* ==========================================================================
   CATEGORY & SHOP ARCHIVE (CHUẨN BẢN GỐC AN QUÂN AUDIO)
   ========================================================================== */

/* Breadcrumb .crumb */
.crumb {
  font-size: 11px !important;
  color: var(--muted, #6b7280) !important;
  padding: 10px 14px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

@media (min-width: 850px) {
  .crumb {
    padding: 15px 24px !important;
  }
}

.crumb b {
  color: var(--dark, #0E1A2B) !important;
}

.crumb a {
  color: inherit !important;
  text-decoration: none !important;
}

/* Bố cục trang category Flatsome khớp .cat-layout */
.category-page-row {
  display: grid !important;
  grid-template-columns: 235px 1fr !important;
  gap: 18px !important;
  padding-bottom: 30px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 24px 30px !important;
}

.category-page-row > .col.large-3 {
  width: 100% !important;
  max-width: 235px !important;
  padding: 0 !important;
}

.category-page-row > .col.large-9 {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Ẩn thanh header/breadcrumb mặc định của Flatsome nếu trùng lặp */
.category-page-title,
.shop-page-title.category-page-title,
.category-page-row .woocommerce-pagination,
.category-page-row .woocommerce-result-count {
  display: none !important;
}

/* Sidebar .filter */
#shop-sidebar {
  background: rgb(255, 255, 255) !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 14px !important;
  padding: 17px !important;
  height: max-content !important;
  box-shadow: none !important;
}

#shop-sidebar h3 {
  font: 900 13px Montserrat, sans-serif !important;
  margin: 0px 0px 12px !important;
  text-transform: uppercase !important;
  color: var(--dark, #0E1A2B) !important;
  border: none !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

#shop-sidebar .widget {
  padding: 13px 0px !important;
  border-top: 1px solid var(--border, #e5e7eb) !important;
  border-bottom: none !important;
  margin: 0 !important;
}

.filter-block {
  margin: 0 !important;
  padding: 0 !important;
}

.filter-block b {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--dark, #0E1A2B) !important;
  display: block !important;
  margin-bottom: 6px !important;
}

.filter-options-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.filter-option {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 10px !important;
  color: rgb(55, 65, 81) !important;
  padding: 6px 0px !important;
  cursor: pointer !important;
  user-select: none !important;
  margin: 0 !important;
}

.filter-opt-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.filter-opt-left input[type="checkbox"] {
  width: 11px !important;
  height: 11px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 2px !important;
  accent-color: var(--primary, #C8102E) !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.filter-option span:last-child {
  color: var(--muted, #6b7280) !important;
  font-size: 10px !important;
  font-weight: normal !important;
}

/* Cat main head */
.cat-main-head {
  background: rgb(255, 255, 255) !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 14px !important;
  padding: 17px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 13px !important;
}

.cat-main-head h1 {
  font: 900 19px Montserrat, sans-serif !important;
  margin: 0px !important;
  color: var(--dark, #0E1A2B) !important;
  line-height: 1.2 !important;
}

.cat-main-head small {
  display: block !important;
  color: var(--muted, #6b7280) !important;
  font-size: 10px !important;
  margin-top: 5px !important;
}

/* Custom Sort Dropdown (Bo tròn, Căn phải, Không ngắn, Chuẩn design) */
.cat-main-head .sort,
.xc-sort-dropdown {
  position: relative !important;
  display: inline-block !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  font-family: inherit !important;
}

.xc-sort-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--dark, #0E1A2B) !important;
  font-size: 11px !important;
  font-family: inherit !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.xc-sort-toggle:hover,
.xc-sort-dropdown.is-open .xc-sort-toggle {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

.xc-sort-toggle .sort-label {
  display: inline-block !important;
  color: var(--muted, #6b7280) !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.xc-sort-toggle .sort-current {
  display: inline-block !important;
  color: var(--dark, #0E1A2B) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.xc-sort-toggle .sort-arrow {
  color: #6b7280 !important;
  transition: transform 0.2s ease !important;
  margin-left: 2px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.xc-sort-dropdown.is-open .xc-sort-toggle .sort-arrow {
  transform: rotate(180deg) !important;
}

/* Dropdown Menu - Căn phải, Bo tròn, Đủ dài bằng hoặc hơn button */
.xc-sort-menu {
  position: absolute !important;
  top: calc(100% + 5px) !important;
  right: 0 !important; /* CĂN PHẢI */
  min-width: 100% !important; /* ĐỦ DÀI BẰNG BUTTON HOẶC DÀI HƠN */
  width: max-content !important;
  background: #ffffff !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 8px !important; /* BO TRÒN ĐỒNG BỘ */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  padding: 5px 0 !important;
  z-index: 100 !important;
  display: none !important;
  overflow: hidden !important;
}

.xc-sort-dropdown.is-open .xc-sort-menu {
  display: block !important;
  animation: xcSortFadeDown 0.15s ease-out !important;
}

@keyframes xcSortFadeDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.xc-sort-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 8px 14px !important;
  font-size: 11px !important;
  color: #374151 !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  white-space: nowrap !important;
  text-align: left !important;
}

.xc-sort-item:hover {
  background: #f8fafc !important;
  color: var(--primary, #C8102E) !important;
}

.xc-sort-item.active {
  color: var(--primary, #C8102E) !important;
  font-weight: 700 !important;
  background: #fff5f5 !important;
}

.xc-sort-item .xc-check-icon {
  color: var(--primary, #C8102E) !important;
  flex-shrink: 0 !important;
}

/* Cat products grid */
.category-page-row .products.row,
.category-page-row .products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 13px !important;
  margin: 0 !important;
}

.category-page-row .products > .col {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Product Card .prod */
.category-page-row .product-small.box {
  background: rgb(255, 255, 255) !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  position: relative !important;
  transition: 0.2s !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
}

.category-page-row .product-small.box:hover {
  transform: translateY(-3px) !important;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 10px 25px !important;
}

/* Product Image .prod-img */
.category-page-row .product-small .box-image {
  height: 142px !important;
  min-height: 142px !important;
  max-height: 142px !important;
  background: linear-gradient(135deg, rgb(250, 251, 252), rgb(229, 231, 235)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.category-page-row .product-small .box-image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.category-page-row .product-small .box-image img {
  max-height: 58% !important;
  max-width: 58% !important;
  object-fit: contain !important;
  margin: auto !important;
}

.prod-img {
  height: 142px !important;
  min-height: 142px !important;
  max-height: 142px !important;
  background: linear-gradient(135deg, rgb(250, 251, 252), rgb(229, 231, 235)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.prod-img svg {
  width: 58% !important;
  height: 58% !important;
}

.xc-card-svg-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.xc-card-svg-placeholder svg {
  width: 58% !important;
  height: 58% !important;
}

/* Wishlist .wish */
.category-page-row .image-tools.top.right {
  opacity: 1 !important;
  visibility: visible !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 2 !important;
}

.category-page-row .wishlist-button {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--muted, #6b7280) !important;
  box-shadow: none !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

.category-page-row .wishlist-button:hover {
  color: #C8102E !important;
  border-color: #C8102E !important;
  background: transparent !important;
  transform: scale(1.08) !important;
}

.category-page-row .wishlist-button i {
  font-size: 13px !important;
  line-height: 1 !important;
}

.category-page-row .wishlist-button .icon-heart:before {
  content: "\e906" !important;
}

/* Badge .prod-badge */
.category-page-row .badge-container,
.category-page-row .badge-circle,
.category-page-row .prod-badge {
  position: absolute !important;
  z-index: 2 !important;
  left: 10px !important;
  top: 10px !important;
  background: var(--primary, #C8102E) !important;
  color: rgb(255, 255, 255) !important;
  border-radius: 5px !important;
  padding: 4px 7px !important;
  font: 800 9px Montserrat, sans-serif !important;
  height: auto !important;
  width: auto !important;
  line-height: normal !important;
}

.category-page-row .badge-container .xc-badge-best,
.category-page-row .prod-badge.hot,
.category-page-row .badge-circle.hot {
  background: var(--accent, #FFB800) !important;
  color: var(--dark, #0E1A2B) !important;
}

/* Info .prod-info */
.category-page-row .product-small .box-text {
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  text-align: left !important;
}

/* Brand text: font-size 9px, letter-spacing 1px, color var(--muted) #6b7280 */
.category-page-row .prod-brand,
.category-page-row .brand {
  font-size: 9px !important;
  letter-spacing: 1px !important;
  color: #6b7280 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin: 0 0 5px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.category-page-row .prod-brand a,
.category-page-row .brand a {
  font-size: 9px !important;
  letter-spacing: 1px !important;
  color: #6b7280 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

/* Product title: font-size 12px, font-weight 600, height 35px, margin 0 0 8px */
.category-page-row .title-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.category-page-row .prod-name,
.category-page-row .product-title,
.category-page-row .box-text h5,
.category-page-row .box-text a.woocommerce-LoopProduct-link {
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  height: 35px !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  color: #1a1a1a !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

/* Price */
.category-page-row .price-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.category-page-row .price,
.category-page-row .price-wrapper .price {
  font: 900 15px Montserrat, sans-serif !important;
  color: var(--primary, #C8102E) !important;
  display: flex !important;
  align-items: baseline !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.category-page-row .price ins .amount,
.category-page-row .price > .amount {
  font: 900 15px Montserrat, sans-serif !important;
  color: var(--primary, #C8102E) !important;
  text-decoration: none !important;
}

.category-page-row .old,
.category-page-row .price del .amount {
  font-size: 10px !important;
  color: var(--muted, #6b7280) !important;
  text-decoration: line-through !important;
  margin-left: 5px !important;
  font-weight: normal !important;
}

/* Meta: Stars & Sold */
.category-page-row .meta,
.category-page-row .xc-custom-meta {
  display: flex !important;
  justify-content: space-between !important;
  color: var(--muted, #6b7280) !important;
  font-size: 9px !important;
  margin-top: 7px !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.category-page-row .stars,
.category-page-row .xc-custom-meta .stars {
  color: rgb(214, 158, 0) !important;
  font-weight: 600 !important;
}

.category-page-row .star-rating {
  display: none !important;
}

/* Load more button .load */
.category-page-row .xc-load-more-wrap {
  grid-column: 1 / -1;
  text-align: center;
}

.load,
.xc-btn-load-more {
  display: block !important;
  width: max-content !important;
  margin: 20px auto 0px !important;
  border: 1.5px solid var(--primary, #C8102E) !important;
  border-radius: 9px !important;
  padding: 12px 18px !important;
  font: 800 12px Montserrat, sans-serif !important;
  background: rgb(255, 255, 255) !important;
  color: var(--primary, #C8102E) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: 0.2s !important;
  height: auto !important;
  line-height: normal !important;
}

.load:hover,
.xc-btn-load-more:hover {
  background: #fff5f5 !important;
  color: var(--primary, #C8102E) !important;
}

@media (max-width: 1000px) {
  .category-page-row {
    grid-template-columns: 1fr !important;
  }
  .category-page-row .products.row,
  .category-page-row .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==========================================================================
   TIN TỨC & BÀI VIẾT (BLOG / NEWS / ARCHIVE & SINGLE POST)
   ========================================================================== */
.xc-blog-hero-section {
  background: linear-gradient(135deg, #0E1A2B 0%, #1a2e4a 100%) !important;
  color: #ffffff !important;
  padding: 48px 0 !important;
  text-align: center !important;
}

.xc-blog-hero-section .eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 184, 0, 0.16);
  color: #FFB800;
  font: 800 11px Montserrat, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.xc-blog-hero-section h1 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 900 !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
  margin: 10px 0 !important;
  color: #ffffff !important;
}

.xc-blog-content-section {
  background: #f5f6fa !important;
  padding: 30px 0 50px !important;
}

.xc-blog-content-section > .section-content {
  max-width: 1240px !important;
  margin: auto !important;
  padding: 0 24px !important;
}

/* ==========================================================================
   BLOG POST LOOP CARDS - ĐỒNG BỘ 100% PHONG CÁCH PRODUCT CARD LOOP
   - Khung card bo góc 13px, viền xám 1px #e5e7eb, hover trượt 3px + đổ bóng
   - Khung ảnh nền gradient #fafbfc -> #e5e7eb, zoom nhẹ khi hover
   - Badge ngày/chuyên mục góc trên bên trái màu đỏ #C8102E chuẩn Montserrat 9px 800
   - Chuyên mục 9px in hoa đậm, tiêu đề 12-13px clamp 2 dòng, excerpt 11.5px clamp 2 dòng
   - Đường viền mờ 1px dashed ngăn cách thanh Chi tiết bên dưới
   ========================================================================== */

/* 1. Khung Card bao ngoài */
.post-item.col > .col-inner,
.archive.category .post-item.col > .col-inner,
.blog-archive .post-item.col > .col-inner,
.xc-blog-content-section .post-item.col > .col-inner {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  position: relative !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  box-sizing: border-box !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
}

.post-item.col:hover > .col-inner,
.archive.category .post-item.col:hover > .col-inner,
.blog-archive .post-item.col:hover > .col-inner,
.xc-blog-content-section .post-item.col:hover > .col-inner {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  border-color: #d1d5db !important;
}

.post-item .box-blog-post {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

/* 2. Khung Ảnh Card */
.post-item .box-image {
  height: 158px !important;
  min-height: 158px !important;
  max-height: 158px !important;
  background: linear-gradient(135deg, #fafbfc, #e5e7eb) !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
}

.post-item .box-image .image-cover {
  padding-top: 0 !important;
  height: 100% !important;
  width: 100% !important;
  position: relative !important;
}

.post-item .box-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
}

.post-item .box-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: 158px !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  transition: transform 0.3s ease !important;
  display: block !important;
}

.post-item.col:hover .box-image img {
  transform: scale(1.06) !important;
}

/* 3. Badge Ngày/Chuyên mục ở góc trên bên trái giống badge -6% / HOT */
.post-item .badge.post-date {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 5 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.post-item .badge.post-date .badge-inner {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: #C8102E !important;
  color: #ffffff !important;
  border-radius: 5px !important;
  padding: 4px 7px !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 5px rgba(200, 16, 46, 0.25) !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
}

.post-item .badge.post-date .post-date-day,
.post-item .badge.post-date .post-date-month {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  display: inline-block !important;
}

.post-item .badge.post-date br {
  display: none !important;
}

/* 4. Khung Thông tin Text (.box-text) */
.post-item .box-text {
  padding: 12px !important;
  text-align: left !important;
  height: auto !important;
  min-height: 0 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.post-item .box-text .box-text-inner {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Chuyên mục: giống Brand (AN QUÂN) */
.post-item .cat-label {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 9px !important;
  letter-spacing: 1px !important;
  color: #6b7280 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin: 0 0 5px 0 !important;
  line-height: 1.2 !important;
  display: block !important;
  opacity: 1 !important;
}

/* Tiêu đề bài viết: giống Product Title */
.post-item .post-title,
.post-item h5.post-title {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  height: 34px !important;
  max-height: 34px !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.post-item .post-title a,
.post-item h5.post-title a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.post-item .post-title a:hover,
.post-item h5.post-title a:hover {
  color: #C8102E !important;
}

/* Ẩn divider gạch thô */
.post-item .is-divider {
  display: none !important;
}

/* Mô tả ngắn / Excerpt */
.post-item .from_the_blog_excerpt,
.post-item p.from_the_blog_excerpt {
  font-size: 11px !important;
  color: #6b7280 !important;
  line-height: 1.45 !important;
  height: 32px !important;
  max-height: 32px !important;
  margin: 0 0 8px 0 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Nút Chi tiết / Bottom Meta */
.post-item .button,
.post-item a.more-link,
.post-item a.button {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border: none !important;
  border-top: 1px dashed #e5e7eb !important;
  border-radius: 0 !important;
  background: transparent !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #C8102E !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.post-item a.button:hover,
.post-item a.more-link:hover {
  color: #9a0c24 !important;
  background: transparent !important;
  transform: translateX(2px) !important;
}

/* 5. Tối ưu hiển thị trên Mobile */
@media (max-width: 767px) {
  .post-item .box-image {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
  }
  .post-item .box-text {
    padding: 10px !important;
  }
  .post-item .cat-label {
    font-size: 8.5px !important;
    margin-bottom: 3px !important;
  }
  .post-item .post-title,
  .post-item h5.post-title {
    font-size: 11.5px !important;
    height: 32px !important;
    max-height: 32px !important;
    margin-bottom: 4px !important;
  }
  .post-item .from_the_blog_excerpt,
  .post-item p.from_the_blog_excerpt {
    font-size: 10px !important;
    height: 28px !important;
    max-height: 28px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }
  .post-item a.button,
  .post-item a.more-link {
    font-size: 9.5px !important;
    padding-top: 6px !important;
  }
  .post-item .badge.post-date {
    top: 6px !important;
    left: 6px !important;
  }
  .post-item .badge.post-date .badge-inner {
    padding: 3px 6px !important;
    font-size: 8px !important;
  }
}

/* Sidebar liên hệ & bài viết */
.xc-sidebar-contact-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 20px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
}

/* Single Post Styling */
.single-post #content {
  background: #f5f6fa !important;
  padding-bottom: 50px !important;
}

.single-post article {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  padding: 34px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
  max-width: 1000px !important;
  margin: 30px auto !important;
}

.single-post .entry-title {
  font-family: Montserrat, sans-serif !important;
  font-weight: 900 !important;
  font-size: 26px !important;
  color: #0E1A2B !important;
  line-height: 1.35 !important;
  margin-bottom: 14px !important;
}

.single-post .entry-meta {
  font-size: 11px !important;
  color: #6b7280 !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #e5e7eb !important;
  margin-bottom: 24px !important;
}

.single-post .entry-content {
  font-size: 14px !important;
  line-height: 1.85 !important;
  color: #374151 !important;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  color: #0E1A2B !important;
  margin-top: 24px !important;
  margin-bottom: 12px !important;
}

.single-post .entry-content h2 {
  font-size: 18px !important;
  border-left: 4px solid #C8102E !important;
  padding-left: 10px !important;
}

/* ==========================================================================
   TRANG LIÊN HỆ (CONTACT PAGE)
   ========================================================================== */
.xc-contact-hero-section {
  background: linear-gradient(135deg, #0E1A2B 0%, #1a2e4a 100%) !important;
  color: #ffffff !important;
  padding: 48px 0 !important;
  text-align: center !important;
}

.xc-contact-hero-section .eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 184, 0, 0.16);
  color: #FFB800;
  font: 800 11px Montserrat, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.xc-contact-hero-section h1 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 900 !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
  margin: 10px 0 !important;
  color: #ffffff !important;
}

.xc-contact-main-section {
  background: #f5f6fa !important;
  padding: 35px 0 50px !important;
}

.xc-contact-main-section > .section-content {
  max-width: 1240px !important;
  margin: auto !important;
  padding: 0 24px !important;
}

.xc-contact-info-col {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  padding: 28px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
}

.xc-contact-col-title {
  font-family: Montserrat, sans-serif !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  color: #0E1A2B !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.xc-contact-desc {
  font-size: 12.5px !important;
  color: #6b7280 !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

.xc-contact-item-box {
  margin-bottom: 14px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px dashed #e5e7eb !important;
}

.xc-contact-item-box:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.xc-contact-item-title {
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  color: #0E1A2B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 4px !important;
}

.xc-contact-item-desc {
  font-size: 12px !important;
  color: #374151 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Card Form Liên Hệ */
.xc-contact-form-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  padding: 28px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
}

.xc-contact-form-title {
  font-family: Montserrat, sans-serif !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  color: #0E1A2B !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.xc-contact-form-desc {
  font-size: 12.5px !important;
  color: #6b7280 !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

.xc-contact-form-card input,
.xc-contact-form-card select,
.xc-contact-form-card textarea {
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  width: 100% !important;
  margin-top: 4px !important;
}

.xc-contact-form-card .btn-primary {
  background: linear-gradient(135deg, #C8102E, #9a0c24) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 24px !important;
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3) !important;
}

@media (max-width: 849px) {
  .xc-form-2col {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION & STICKY CTA BARS
   ========================================================================== */
@media (max-width: 849px) {
  body {
    padding-bottom: 60px !important;
  }
  
  .xc-mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 56px !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: center !important;
    z-index: 9999 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .xc-mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    position: relative !important;
    padding: 6px 0 !important;
    line-height: 1.1 !important;
  }

  .xc-mobile-nav-item.active,
  .xc-mobile-nav-item:hover {
    color: #C8102E !important;
  }

  .xc-mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #C8102E;
    border-radius: 0 0 2px 2px;
  }

  .xc-mobile-nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 16px);
    background: #C8102E;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
  }

  /* Sticky CTA Bar trên Single Product */
  .xc-mobile-pd-cta {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 8px 12px !important;
    display: grid !important;
    grid-template-columns: 42px 1fr 1.2fr !important;
    gap: 8px !important;
    z-index: 10000 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08) !important;
  }

  .xc-mobile-cta-chat {
    width: 42px !important;
    height: 42px !important;
    background: #f5f6fa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    color: #0E1A2B !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
  }

  .xc-mobile-cta-add {
    background: #ffffff !important;
    color: #C8102E !important;
    border: 1.5px solid #C8102E !important;
    border-radius: 10px !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 800 !important;
    font-size: 11.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
  }

  .xc-mobile-cta-buy {
    background: linear-gradient(135deg, #C8102E, #9a0c24);
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    box-shadow: 0 3px 10px rgba(200,16,46,0.3) !important;
  }

  /* Sticky CTA Bar trên Cart */
  .xc-mobile-cart-cta {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 10000 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08) !important;
  }

  .xc-mobile-cart-cta-total small {
    font-size: 10px !important;
    color: #6b7280 !important;
    display: block !important;
  }

  .xc-mobile-cart-cta-total strong {
    font-family: Montserrat, sans-serif !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    color: #C8102E !important;
  }

  .xc-mobile-cart-cta-btn {
    margin-left: auto !important;
    background: linear-gradient(135deg, #C8102E, #9a0c24) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11px 20px !important;
    border-radius: 9px !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 3px 10px rgba(200,16,46,0.3) !important;
    cursor: pointer !important;
  }

  /* Sticky CTA Bar trên Checkout */
  .xc-mobile-checkout-cta {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    z-index: 10000 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08) !important;
  }

  .xc-mobile-co-cta-total small {
    font-size: 10px !important;
    color: #6b7280 !important;
    display: block !important;
  }

  .xc-mobile-co-cta-total strong {
    font-family: Montserrat, sans-serif !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    color: #C8102E !important;
  }

  .xc-mobile-co-cta-btn {
    background: linear-gradient(135deg, #C8102E, #9a0c24) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11px 20px !important;
    border-radius: 9px !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 3px 10px rgba(200,16,46,0.3) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
}

/* ==========================================================================
   AN QUÂN AUDIO - ENHANCED STYLING: SINGLE POST, COMMENTS, CONTACT, WISHLIST, VOUCHERS, ARCHIVES
   ========================================================================== */

/* 1. SINGLE POST CONTAINER & TYPOGRAPHY */
.xc-single-post-row {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 30px 20px 60px !important;
}

.single-post article {
  max-width: 1100px !important;
  margin: 0 auto 30px !important;
  background: #ffffff !important;
  padding: 42px 48px !important;
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

@media (max-width: 849px) {
  .single-post article {
    padding: 24px 18px !important;
    border-radius: 12px !important;
  }
}

.single-post .entry-header {
  border-bottom: none !important;
  padding-bottom: 10px !important;
  margin-bottom: 20px !important;
}

/* BỎ HOÀN TOÀN CÁC ĐƯỜNG DIVIDER Ở SINGLE POST */
.single-post .entry-divider,
.single-post .is-divider,
.single-post .is-divider.small,
.single-post .is-divider.medium,
.single-post .blog-share .is-divider {
  display: none !important;
}

.single-post .entry-category a {
  display: inline-block;
  background: rgba(200, 16, 46, 0.08);
  color: #C8102E;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-decoration: none;
}

.single-post .entry-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 30px !important;
  line-height: 1.35 !important;
  color: #0E1A2B !important;
  margin-bottom: 14px !important;
}

@media (max-width: 849px) {
  .single-post .entry-title {
    font-size: 22px !important;
  }
}

.single-post .entry-meta {
  font-size: 12.5px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 15px;
}

.single-post .entry-content {
  font-size: 15.5px;
  line-height: 1.8;
  color: #334155;
}

/* BỎ BORDER-LEFT VÀ THANH ĐỎ TRƯỚC H2 / H3 Ở SINGLE POST */
.single-post .entry-content h2,
.single-post .entry-content h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  color: #0E1A2B !important;
  margin-top: 32px !important;
  margin-bottom: 14px !important;
  position: static !important;
  padding-left: 0 !important;
  border-left: none !important;
}

.single-post .entry-content h2::before,
.single-post .entry-content h3::before {
  content: none !important;
  display: none !important;
}

.single-post .entry-content p {
  margin-bottom: 18px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.single-post .entry-content li {
  margin-bottom: 8px;
}

.single-post .entry-content img {
  border-radius: 12px;
  margin: 20px 0;
}

/* 2. SINGLE POST - COMMENTS AREA STYLING */
.single-post #comments.comments-area {
  max-width: 1100px !important;
  margin: 0 auto 40px !important;
  background: #ffffff !important;
  padding: 38px 46px !important;
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

@media (max-width: 849px) {
  .single-post #comments.comments-area {
    padding: 24px 18px !important;
    border-radius: 12px !important;
  }
}

.single-post #reply-title.comment-reply-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  color: #0E1A2B !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  position: relative !important;
  padding-left: 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding-bottom: 14px !important;
}

.single-post #reply-title.comment-reply-title::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 3px !important;
  bottom: 17px !important;
  width: 4px !important;
  background: #C8102E !important;
  border-radius: 2px !important;
}

.single-post .comment-notes,
.single-post .logged-in-as {
  font-size: 13px !important;
  color: #64748b !important;
  margin-bottom: 18px !important;
}

.single-post .logged-in-as a {
  color: #C8102E !important;
  font-weight: 600 !important;
}

.single-post .comment-form-comment label,
.single-post .comment-form-author label,
.single-post .comment-form-email label,
.single-post .comment-form-url label {
  display: block !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #374151 !important;
  margin-bottom: 6px !important;
}

.single-post .comment-form-comment textarea {
  width: 100% !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  font-size: 13.5px !important;
  min-height: 120px !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.single-post .comment-form-author input,
.single-post .comment-form-email input,
.single-post .comment-form-url input {
  width: 100% !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-size: 13.5px !important;
  height: 44px !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.single-post .comment-form textarea:focus,
.single-post .comment-form input:focus {
  border-color: #C8102E !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1) !important;
}

.single-post .form-submit {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}

.single-post #commentform #submit.submit,
.single-post .form-submit input[type="submit"] {
  background: linear-gradient(135deg, #C8102E, #9a0c24) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 32px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25) !important;
  transition: all 0.25s ease !important;
  display: inline-block !important;
}

.single-post #commentform #submit.submit:hover,
.single-post .form-submit input[type="submit"]:hover {
  background: linear-gradient(135deg, #a00c24, #7d091c) !important;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* 3. CONTACT PAGE FIXES & BUTTON */
.xc-contact-hero-section {
  width: 100% !important;
  max-width: 100% !important;
}

.xc-contact-hero-section > .section-content {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.xc-contact-main-section > .section-content,
.xc-contact-row {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.xc-contact-map-section > .section-content,
.xc-contact-map-section .row {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.xc-contact-form-card .wpcf7-submit,
.wpcf7-form .wpcf7-submit,
.xc-contact-form-card input[type="submit"] {
  background: linear-gradient(135deg, #C8102E, #9a0c24) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 28px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3) !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin-top: 10px !important;
}

.xc-contact-form-card .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:hover,
.xc-contact-form-card input[type="submit"]:hover {
  background: linear-gradient(135deg, #a00c24, #7d091c) !important;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.45) !important;
  transform: translateY(-2px) !important;
}

.xc-contact-form-card .wpcf7-form-control-wrap {
  display: block;
  margin-top: 4px;
}

.xc-contact-form-card input.wpcf7-text,
.xc-contact-form-card textarea.wpcf7-textarea {
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
}

.xc-contact-form-card input.wpcf7-text:focus,
.xc-contact-form-card textarea.wpcf7-textarea:focus {
  border-color: #C8102E !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1) !important;
}

/* 4. WISHLIST PAGE STYLING */
.xc-wishlist-hero-section {
  width: 100% !important;
  max-width: 100% !important;
  background: linear-gradient(135deg, #0E1A2B 0%, #1a2e4a 100%) !important;
  padding: 45px 0 !important;
  color: #ffffff !important;
  text-align: center !important;
}

.xc-wishlist-hero-section > .section-content {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.xc-wishlist-hero-section .eyebrow {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 184, 0, 0.16);
  color: #FFB800;
  font: 800 11px Montserrat, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.xc-wishlist-hero-section h1 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 900 !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
  margin: 6px 0 !important;
  color: #ffffff !important;
}

.xc-wishlist-main-section {
  background: #f5f6fa !important;
  padding: 35px 0 60px !important;
}

.xc-wishlist-main-section > .section-content,
.xc-wishlist-row {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.wishlist-title-container,
.wishlist-title-container h2 {
  display: none !important;
}

table.wishlist_table {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  overflow: hidden !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

table.wishlist_table thead th {
  background: #f8fafc !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: #475569 !important;
  letter-spacing: 0.6px !important;
  padding: 16px 20px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  border-top: none !important;
}

table.wishlist_table tbody td {
  padding: 18px 20px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-top: none !important;
}

table.wishlist_table tbody tr:last-child td {
  border-bottom: none !important;
}

table.wishlist_table .product-thumbnail {
  width: 100px !important;
  text-align: center !important;
}

table.wishlist_table .product-thumbnail img {
  width: 76px !important;
  height: 76px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  background: #fafbfc !important;
  border: 1px solid #f1f5f9 !important;
  padding: 6px !important;
  display: block !important;
  margin: 0 auto !important;
}

table.wishlist_table .product-name a {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #0E1A2B !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  display: inline-block !important;
}

table.wishlist_table .product-name a:hover {
  color: #C8102E !important;
}

table.wishlist_table .product-price .woocommerce-Price-amount,
table.wishlist_table .product-price ins .woocommerce-Price-amount {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  color: #C8102E !important;
}

table.wishlist_table .product-price del .woocommerce-Price-amount {
  font-size: 12.5px !important;
  color: #94a3b8 !important;
  font-weight: normal !important;
}

table.wishlist_table .product-stock-status .wishlist-in-stock {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
}

table.wishlist_table .product-stock-status .wishlist-out-of-stock {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

table.wishlist_table .product-add-to-cart a.button,
table.wishlist_table .product-add-to-cart .add_to_cart {
  background: linear-gradient(135deg, #C8102E, #9a0c24) !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(200, 16, 46, 0.25) !important;
  display: inline-block !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

table.wishlist_table .product-add-to-cart a.button:hover,
table.wishlist_table .product-add-to-cart .add_to_cart:hover {
  background: linear-gradient(135deg, #a00c24, #7d091c) !important;
  box-shadow: 0 5px 14px rgba(200, 16, 46, 0.4) !important;
  transform: translateY(-2px) !important;
}

table.wishlist_table .product-remove a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  color: #94a3b8 !important;
  font-size: 18px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

table.wishlist_table .product-remove a:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.wishlist-empty {
  text-align: center !important;
  background: #ffffff !important;
  padding: 50px 24px !important;
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  font-size: 15px !important;
  color: #64748b !important;
}

/* 5. KHO VOUCHER PANEL STYLING */
.xc-kho-voucher-panel {
  margin-bottom: 30px;
}

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

@media (max-width: 849px) {
  .xc-voucher-list-grid {
    grid-template-columns: 1fr;
  }
}

.xc-voucher-card-item {
  display: flex;
  background: #ffffff;
  border: 1.5px dashed #fecaca;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  position: relative;
}

.xc-voucher-card-item:hover {
  border-color: #C8102E;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.1);
  transform: translateY(-2px);
}

.xc-voucher-card-left {
  background: linear-gradient(135deg, #C8102E, #8b0a1d);
  color: #ffffff;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 120px;
  position: relative;
}

.xc-voucher-tag-badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.xc-voucher-amount {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.xc-voucher-cond {
  font-size: 10px;
  color: #fecaca;
  margin-top: 4px;
}

.xc-voucher-card-right {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.xc-voucher-code-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.xc-voucher-code-text {
  font-family: 'Montserrat', monospace;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.2px;
  color: #0E1A2B;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.xc-btn-copy-voucher {
  background: #0E1A2B;
  color: #ffffff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.xc-btn-copy-voucher:hover {
  background: #C8102E;
}

.xc-voucher-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.xc-voucher-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #f1f5f9;
  padding-top: 8px;
}

.xc-voucher-expiry {
  font-size: 10.5px;
  color: #94a3b8;
}

.xc-btn-use-voucher {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: #C8102E;
  text-decoration: none;
  transition: all 0.2s ease;
}

.xc-btn-use-voucher:hover {
  color: #8b0a1d;
  text-decoration: underline;
}

/* 6. ARCHIVE CATEGORY HEADER & POST LIST */
.xc-archive-header {
  background: linear-gradient(135deg, #0E1A2B 0%, #1a2e4a 100%) !important;
  padding: 45px 0 !important;
  color: #ffffff !important;
  margin-bottom: 30px !important;
}

.xc-archive-header .row {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.xc-archive-breadcrumb {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.xc-archive-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
}

.xc-archive-breadcrumb a:hover {
  color: #ffffff;
}

.xc-archive-breadcrumb .sep {
  margin: 0 6px;
  color: #64748b;
}

.xc-archive-breadcrumb .active {
  color: #FFB800;
  font-weight: 600;
}

.xc-archive-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 32px !important;
  letter-spacing: 0.5px !important;
  color: #ffffff !important;
  margin: 8px 0 !important;
}

.xc-archive-desc {
  font-size: 13.5px !important;
  color: #cbd5e1 !important;
  max-width: 650px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
}

.xc-archive-post-row {
  max-width: 1240px !important;
  margin: 0 auto 50px !important;
  padding: 0 20px !important;
}

.xc-archive-post-list {
  max-width: 1240px;
  margin: 0 auto;
}


/* ==========================================================================
   FIX FORM ĐĂNG KÝ / ĐĂNG NHẬP: CHỐNG VỠ KHUNG MẬT KHẨU & ẨN TRÙNG LẶP CHÍNH SÁCH
   ========================================================================== */
.xc-input-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.xc-input-wrapper .xc-input-icon {
  position: absolute !important;
  left: 14px !important;
  top: 0 !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.xc-input-wrapper .xc-form-input,
.xc-input-wrapper input[type="password"],
.xc-input-wrapper input[type="text"],
.xc-input-wrapper input[type="email"],
.xc-input-wrapper input[type="tel"] {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 44px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 0 40px 0 42px !important;
  font-size: 13px !important;
  color: #0E1A2B !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  float: none !important;
}

.xc-input-wrapper .xc-btn-toggle-pwd {
  position: absolute !important;
  right: 10px !important;
  top: 0 !important;
  height: 44px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  z-index: 2 !important;
}

/* Ẩn triệt để thanh password-meter mặc định của WC (An Quân Audio đã có thanh kiểm tra riêng bên dưới) */
.woocommerce-password-strength,
.woocommerce-password-hint,
.xc-input-wrapper .woocommerce-password-strength,
.xc-input-wrapper .woocommerce-password-hint {
  display: none !important;
}

/* Ẩn đoạn text chính sách mặc định bị in trùng lặp từ hook WooCommerce */
.woocommerce-form-register .woocommerce-privacy-policy-text,
p.woocommerce-privacy-policy-text {
  display: none !important;
}

/* ==========================================================================
   MOBILE FILTER BAR & FLOATING FILTER (SCREEN 05 MOBILE MATCH)
   ========================================================================== */
.m-filter-bar {
  display: none;
}
.m-floating-filter {
  display: none;
}

@media (max-width: 849px) {
  .m-filter-bar {
    display: flex !important;
    gap: 8px !important;
    background: #ffffff !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--border, #e5e7eb) !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .m-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .m-filter-chip {
    flex-shrink: 0 !important;
    background: #f5f6fa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }
  .m-filter-chip.active {
    background: #0E1A2B !important;
    color: #ffffff !important;
    border-color: #0E1A2B !important;
  }
  
  /* Ẩn sidebar desktop trên mobile để tránh đẩy sản phẩm xuống sâu */
  .category-page-row > .col.large-3,
  #shop-sidebar:not(.xc-drawer-active) {
    display: none !important;
  }
  
  #shop-sidebar.xc-drawer-active {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    padding: 24px 20px !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
  }
  
  .m-floating-filter {
    position: fixed !important;
    bottom: 74px !important;
    right: 18px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: var(--primary, #C8102E) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4) !important;
    z-index: 999 !important;
    text-decoration: none !important;
  }
  
  /* Single Product Mobile: Ẩn inline buybar vì đã có sticky CTA dưới đáy */
  .pd .buybar {
    display: none !important;
  }

  /* Breadcrumb không dính lề trên mobile */
  .crumb,
  .woocommerce-breadcrumb,
  .breadcrumbs {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   SCREEN 08 · MOBILE DRAWER (MENU CHÍNH OFF-CANVAS)
   Chuẩn 100% 00-mobile.html Screen 08
   ========================================================================== */
.off-canvas-left .mfp-content {
  width: 85% !important;
  max-width: 340px !important;
  height: 100% !important;
  padding: 0 !important;
  background: #ffffff !important;
  box-shadow: 8px 0 24px rgba(0,0,0,0.15) !important;
}

.off-canvas-left .mobile-sidebar {
  padding: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.off-canvas-left .mfp-close {
  display: none !important;
}

.m-drawer {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}
.m-drawer::-webkit-scrollbar {
  width: 0;
  display: none;
}

.m-drawer-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 20 !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.m-drawer-close:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.m-drawer-header {
  background: linear-gradient(135deg, #0E1A2B 0%, #070F1E 100%);
  padding: 24px 20px 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.m-drawer-header::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.m-drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}
.m-drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8102E, #d97706);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  flex-shrink: 0;
}
.m-drawer-greeting {
  font-size: 11px;
  opacity: 0.85;
  color: #ffffff;
  line-height: 1.4;
}
.m-drawer-username {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  color: #ffffff;
}
.m-drawer-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.off-canvas-left.mfp-wrap {
  z-index: 9999999 !important;
}
.mfp-bg {
  z-index: 999999 !important;
}

.m-drawer-avatar svg {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
}

.m-drawer-close svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

.m-drawer-action {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  padding: 9px 8px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-align: center;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  transition: all 0.15s ease;
}
.m-drawer-action svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}
.m-drawer-action:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.m-drawer-footer-line svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

.m-drawer-section {
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}
.m-drawer-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6b7280;
  padding: 0 20px 8px;
  font-family: 'Montserrat', sans-serif;
}
.m-drawer-link {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px 20px !important;
  color: #1f2937 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background 0.15s;
  position: relative;
  border: none !important;
}
.m-drawer-link:hover {
  background: #f8fafc !important;
}
.m-drawer-link:hover .m-drawer-link-ic {
  background: #C8102E !important;
  color: #ffffff !important;
}
.m-drawer-link-ic {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  color: #C8102E;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.m-drawer-link-ic svg {
  width: 18px;
  height: 18px;
}
.m-drawer-link span {
  flex: 1;
}
.m-drawer-link-badge {
  background: #C8102E;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  flex: 0 0 auto !important;
}
.m-drawer-link-arrow {
  color: #9ca3af;
  margin-left: 6px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.m-drawer-footer {
  padding: 18px 20px 32px;
  background: #070F1E;
  color: #cbd5e1;
  font-size: 11px;
  margin-top: auto;
  flex-shrink: 0;
}
.m-drawer-footer h4 {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.m-drawer-footer-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11px;
}
.m-drawer-footer-line strong {
  color: #FFB800;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
