/* ==========================================================================
   WINLINE VIETNAM - MASTER DESIGN SYSTEM & STYLESHEET (STATE-OF-THE-ART UX/UI)
   Brand Identity: Official Winline Royal Blue (#004e7d) & Deep Industrial Navy (#004e7d)
   Accent Red: Signal Red (#d41e3d) for Price, CTA, Cart Badge
   Typography: Be Vietnam Pro & Inter + IBM Plex Mono (Technical Specs)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=IBM+Plex+Mono:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap&subset=vietnamese');

/* ==========================================================================
   LOCAL WEBFONT: PHUDU (Downloaded locally, zero external Google requests)
   ========================================================================== */
@font-face {
  font-family: 'Phudu';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/client-assets/fonts/phudu/phudu-vietnamese.woff2') format('woff2'),
       url('../fonts/phudu/phudu-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Phudu';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/client-assets/fonts/phudu/phudu-latin-ext.woff2') format('woff2'),
       url('../fonts/phudu/phudu-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Phudu';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/client-assets/fonts/phudu/phudu-latin.woff2') format('woff2'),
       url('../fonts/phudu/phudu-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Phudu';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/client-assets/fonts/phudu/Phudu-Variable.ttf') format('truetype'),
       url('../fonts/phudu/Phudu-Variable.ttf') format('truetype');
}

:root {
  --font-title: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Exact Original Customer Design Palette (from Google Drive specifications) */
  --brand-blue: #004e7d;
  --brand-blue-hover: #003e63;
  --brand-blue-light: #e6eef3;
  --brand-blue-subtle: #f7f8fa;

  --navy-950: #004e7d;
  --navy-900: #004e7d;
  --navy-800: #004e7d;
  --navy-700: #1f6690;
  --navy-100: #e6eef3;

  --orange: #d41e3d;
  --orange-dark: #a71830;
  --orange-100: #f4e6e9;
  --green: #1e8a5f;
  --green-bg: #e6f4ee;

  --dark: #004e7d;
  --dark-2: #004e7d;
  --bg-card: #ffffff;
  --bg: #f7f8fa;
  --blue: #004e7d;
  --blue-deep: #004e7d;

  --paper: #f7f8fa;
  --white: #ffffff;
  --ink: #1a2230;
  --ink-soft: #5c6773;
  --line: #dde3ea;
  --line-strong: #cbd5e1;

  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 53, 79, 0.05);
  --shadow: 0 2px 10px rgba(13, 31, 51, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 53, 79, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 53, 79, 0.2);

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip !important; }
body {
  overflow-x: clip !important;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.55;
}

/* Typography: Headings & Section Titles strictly use locally hosted Phudu font */
h1, h2, h3, h4, h5, h6,
.v8-hero-title,
.v8-sec-title,
.v8-sector-title,
.v8-b2b-title,
.v8-about-title,
.sec-title,
.sec-head h2,
.page-title,
.brand-hero-info h1,
.calc-hero h1,
.cdb-header h2,
.cdb-body h3,
.modal-box h3,
.font-title {
  font-family: var(--font-title);
  letter-spacing: -0.015em;
}

.mono { font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease, opacity 0.15s ease; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; touch-action: manipulation; }

/* Rich Content Image Centering & Quill/TinyMCE Alignment Support */
.seo-text-wrap img:not(.ipg-img):not(.mct-img),
.article-body img:not(.ipg-img):not(.mct-img),
.article-rich-text img:not(.ipg-img):not(.mct-img),
.desc-full-text img:not(.ipg-img):not(.mct-img),
.demand-rich-content img:not(.ipg-img):not(.mct-img),
.wl-policy-body img:not(.ipg-img):not(.mct-img),
.post-body img:not(.ipg-img):not(.mct-img),
.article-content img:not(.ipg-img):not(.mct-img),
.product-description img:not(.ipg-img):not(.mct-img),
.desc-content img:not(.ipg-img):not(.mct-img),
.rte-content img:not(.ipg-img):not(.mct-img) {
  display: block;
  margin: 14px auto;
  max-width: 100%;
  height: auto !important;
  border-radius: 6px;
}
.ql-align-center { text-align: center !important; }
.ql-align-center img,
p[style*="text-align: center"] img,
p[style*="text-align:center"] img,
div[style*="text-align: center"] img,
div[style*="text-align:center"] img {
  margin-left: auto !important;
  margin-right: auto !important;
}
.ql-align-right { text-align: right !important; }
.ql-align-right img { margin-left: auto !important; margin-right: 0 !important; }
.ql-align-left { text-align: left !important; }
.ql-align-left img { margin-left: 0 !important; margin-right: auto !important; }
.ql-align-justify { text-align: justify !important; }

/* Containers */
.custom-container, .wrap {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* Reading Progress Bar */

.top-scroll-progress {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
}


/* ==========================================================================
   HEADER & NAVIGATION SYSTEM (PERFECTED & ROCK-SOLID)
   ========================================================================== */
/* ==========================================================================
   PERFECT BULLETPROOF HEADER (DESKTOP & MOBILE - 100% ROBUST)
   ========================================================================== */
/* Utility Bar - Synchronized with Footer Top Bar (#004e7d) - PC: Cao 28px, Chữ 12px */
.utility-bar {
  background: #004e7d;
  color: #c9d6e3;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 769px) {
  .utility-bar {
    height: 28px !important;
    line-height: 27px !important;
    box-sizing: border-box !important;
  }
  .utility-bar .wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px !important;
    height: 27px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
  }
  .utility-bar a {
    color: #ffffff;
    font-size: 12px !important;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 27px;
    transition: opacity 0.15s ease, color 0.15s ease;
  }
  .utility-bar a:hover {
    color: #ffe066;
    text-decoration: underline;
  }
  .utility-bar .u-item strong {
    font-weight: 600;
  }
  .utility-bar .sep {
    opacity: 0.45;
    margin: 0 10px;
    color: #ffffff;
  }
  .utility-bar i {
    color: #ffe066 !important;
    font-size: 13px !important;
  }
}
@media (max-width: 768px) {
  .utility-bar {
    height: 30px !important;
    line-height: 30px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .utility-bar .wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 12px !important;
    height: 30px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }
  .utility-bar .u-item {
    white-space: nowrap !important;
  }
  .utility-bar a {
    color: #ffffff;
    font-size: 11.5px !important;
    font-weight: 600;
    line-height: 30px !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap !important;
    transition: opacity 0.15s ease, color 0.15s ease;
  }
  .utility-bar a:hover {
    color: #ffe066;
    text-decoration: underline;
  }
  .utility-bar .sep {
    display: none !important;
  }
  .utility-bar i {
    color: #ffe066 !important;
    font-size: 12.5px !important;
  }
  .utility-bar .u-address {
    display: none !important;
  }
}

/* ==========================================================================
   SMOOTH STICKY HEADER & CATEGORY NAVIGATION WRAPPER (ZERO CLS / ZERO JUMP)
   - Cố định hoàn toàn chiều cao các thành phần khi cuộn, không đổi padding hay kích thước.
   - Khi cuộn chỉ áp dụng box-shadow nhẹ để tách lớp với nội dung bên dưới, CLS = 0.
   ========================================================================== */
.site-header-sticky-wrapper {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  background: #ffffff;
  transition: box-shadow 0.2s ease;
  transform: none !important;
}

.site-header-sticky-wrapper.is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 53, 79, 0.12) !important;
}

/* Main Header Container inside sticky wrapper */
header.site {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: relative !important;
  top: auto !important;
  box-shadow: none !important;
  width: 100%;
  z-index: 100005 !important;
}

.search-wrap {
  position: relative;
  z-index: 100006 !important;
}

.wn-smart-search-popover {
  z-index: 100010 !important;
}

/* Category Navigation Bar */
nav.catnav {
  background: #004e7d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10000;
}


/* DESKTOP HEADER (>= 769px) - KÍCH THƯỚC CHUẨN: HÀNG TRẮNG 72PX, LOGO 44PX/178PX, Ô TÌM KIẾM 40PX */
@media (min-width: 769px) {
  header.site {
    height: 72px !important;
    box-sizing: border-box !important;
  }
  .header-inner {
    max-width: 1240px;
    min-height: 76px !important;
    height: auto !important;
    margin: 0 auto;
    padding: 10px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
  }
  .header-mobile-top-row {
    display: contents !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }
  .site-logo-wrap {
    order: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    height: 56px !important;
    text-decoration: none !important;
  }
  .site-logo-img {
    height: 56px !important;
    max-height: 56px !important;
    width: auto !important;
    max-width: 235px !important;
    object-fit: contain !important;
    display: block !important;
  }
  .search-wrap {
    order: 2 !important;
    flex: 1 !important;
    max-width: 620px !important;
    position: relative !important;
    margin: 0 auto !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
  }
  .search-wrap form {
    display: flex !important;
    width: 100% !important;
    height: 40px !important;
    position: relative !important;
    align-items: center !important;
  }
  .search-box {
    width: 100% !important;
    height: 40px !important;
    padding: 0 48px 0 16px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background: #f8fafc !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    line-height: 38px !important;
    transition: all 0.2s ease !important;
  }
  .search-box:focus {
    outline: none !important;
    border-color: #004e7d !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(29, 104, 196, 0.12) !important;
  }
  .search-btn {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #0f172a !important;
    border: none !important;
    color: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
  }
  .search-btn:hover { background: #004e7d !important; }
  
  .header-actions {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    flex-shrink: 0 !important;
    height: 44px !important;
  }
  .header-actions .item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    font-size: 11.5px !important;
    color: #64748b !important;
    gap: 2px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
  }
  .header-actions .item:hover { color: #004e7d !important; }
  .header-actions .icon {
    font-size: 18px !important;
    color: #004e7d !important;
    line-height: 1 !important;
  }
  .desktop-only-label {
    display: block !important;
    line-height: 1.2 !important;
  }
}

/* MOBILE HEADER (<= 768px) */
@media (max-width: 768px) {
  .header-inner {
    padding: 8px 12px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    max-width: 100% !important;
  }
  .header-mobile-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 3px !important;
    background: #eef4fb !important;
    color: #004e7d !important;
    border: 1px solid rgba(29, 104, 196, 0.2) !important;
    font-size: 18px !important;
    cursor: pointer !important;
  }
  .site-logo-wrap {
    display: inline-flex !important;
    align-items: center !important;
    height: 44px !important;
  }
  .site-logo-img {
    height: 42px !important;
    max-height: 44px !important;
    width: auto !important;
    max-width: 175px !important;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
  }
  .header-actions .item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .desktop-only-label {
    display: none !important;
  }
  .search-wrap {
    width: 100% !important;
    position: relative !important;
  }
  .search-box {
    width: 100% !important;
    padding: 9px 44px 9px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 3px !important;
    font-size: 13.5px !important;
    box-sizing: border-box !important;
  }
  .search-btn {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #0f172a !important;
    color: #fff !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Category Navigation Bar (Desktop: Cao 49px, Chữ 14px đậm vừa) */
nav.catnav {
  background: #004e7d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 769px) {
  nav.catnav {
    height: 49px !important;
    box-sizing: border-box !important;
  }
  .catnav-inner {
    max-width: 1240px;
    height: 49px !important;
    box-sizing: border-box !important;
    margin: 0 auto;
    padding: 0 20px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 2px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    overflow: visible !important;
    white-space: nowrap !important;
    position: relative;
    z-index: 999999 !important;
  }
  .catnav-inner a.nav-top,
  .catnav-inner button.nav-top {
    height: 49px !important;
    box-sizing: border-box !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    background: transparent !important;
    line-height: normal !important;
  }
  .catnav-inner a.nav-top:hover,
  .catnav-inner button.nav-top:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-bottom-color: rgba(255, 255, 255, 0.5) !important;
  }
  .catnav-inner a.nav-top.active,
  .catnav-inner button.nav-top.active {
    color: #ffffff !important;
    border-bottom-color: var(--orange, #d41e3d) !important;
    background: rgba(0, 0, 0, 0.14) !important;
    font-weight: 600 !important;
  }
  .catnav-inner button.nav-top[aria-expanded="true"] {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-bottom-color: transparent !important;
    font-weight: 500 !important;
  }
  .nav-drop,
  .nav-demand-drop {
    height: 49px !important;
    display: inline-flex !important;
    align-items: stretch !important;
  }
}
@media (min-width: 769px) and (max-width: 1200px) {
  .catnav-inner a.nav-top,
  .catnav-inner button.nav-top {
    padding: 0 10px !important;
    font-size: 13px !important;
    gap: 4px !important;
  }
}
@media (max-width: 768px) {
  .catnav-inner a.nav-top,
  .catnav-inner button.nav-top {
    padding: 10px 12px !important;
    font-size: 12.5px !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
  }
}
.nav-demand-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 999999 !important;
}
.nav-demand-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
  opacity: 0.9;
}
.nav-demand-trigger[aria-expanded="true"] .nav-demand-arrow {
  transform: rotate(180deg);
}

/* Dropdown "Chọn theo nhu cầu" chuẩn mẫu đồng bộ 580px */
.demand-compact-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff !important;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 53, 79, 0.16);
  padding: 7px 8px !important;
  z-index: 9999999 !important;
  display: none !important;
  flex-direction: column !important;
  width: 580px !important;
  min-width: 580px !important;
  max-width: 580px !important;
  max-height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  gap: 6px !important;
  white-space: normal;
  box-sizing: border-box;
}

.demand-2col-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2px 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.demand-menu-view-all {
  height: 38px !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #004e7d !important;
  background: #f0f7ff !important;
  border: 1px solid #bae6fd !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  margin-top: 4px !important;
  transition: all 0.15s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.demand-menu-view-all:hover {
  background: #004e7d !important;
  color: #ffffff !important;
  border-color: #004e7d !important;
}

.demand-compact-menu::-webkit-scrollbar {
  width: 5px;
}
.demand-compact-menu::-webkit-scrollbar-track {
  background: transparent;
}
.demand-compact-menu::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}
.demand-compact-menu::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}
.demand-compact-menu[hidden] {
  display: none !important;
}
.demand-menu-item {
  display: flex !important;
  align-items: center !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 8px !important;
  text-decoration: none !important;
  color: #1e293b !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  gap: 10px !important;
  transition: all 0.15s ease !important;
  border-bottom: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
}
.demand-menu-item:hover,
.demand-menu-item:focus-visible {
  background: #f0f7ff !important;
  color: #004e7d !important;
  outline: none;
}
.demand-item-icon-box {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  border-radius: 6px;
  background: #e0f2fe;
  color: #004e7d;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.demand-menu-item:hover .demand-item-icon-box {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.demand-item-ico {
  font-size: 16px !important;
  color: #004e7d !important;
  line-height: 1;
}
.demand-item-img {
  max-width: 22px !important;
  max-height: 22px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
.demand-item-name {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: inherit !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
  min-width: 0 !important;
  line-height: 1.35;
}
.demand-menu-item-all {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  margin-top: 4px !important;
  padding-top: 8px !important;
}
.demand-menu-item-all:hover {
  background: #f0f7ff !important;
}
.demand-menu-item-all .demand-item-name {
  font-size: 13.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Thanh tích chọn cột hiển thị thông số bảng */
.table-columns-selector-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f6fa;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  padding: 9px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}
.tcs-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #004e7d;
  white-space: nowrap;
}
.tcs-label i {
  font-size: 15px;
}
.tcs-checkboxes {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tcs-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  color: #334155;
  font-weight: 500;
  font-size: 12.5px;
  transition: color 0.15s ease;
}
.tcs-item input[type="checkbox"] {
  cursor: pointer;
  accent-color: #004e7d;
  width: 15px;
  height: 15px;
  margin: 0;
}
.tcs-item:hover {
  color: #004e7d;
}

/* Mega Menu Dropdowns */
.nav-drop { 
  position: relative; 
  display: inline-flex;
  align-items: center;
  z-index: 999999 !important;
}
.nav-drop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 6px;
  background: transparent;
  z-index: 999998;
  display: none;
  pointer-events: none;
}
.nav-drop:hover:not(.force-close)::after {
  display: block;
  pointer-events: auto;
}
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff !important;
  border: 1px solid #dbe4ee;
  border-top: 3px solid var(--brand-blue, #004e7d);
  box-shadow: 0 16px 36px rgba(7, 34, 66, 0.18);
  border-radius: 0;
  padding: 8px 0;
  min-width: 240px;
  display: none !important;
  z-index: 9999999 !important;
  white-space: normal !important;
  box-sizing: border-box;
}
.nav-drop:hover:not(.force-close) > .nav-panel {
  display: block !important;
  animation: fadeInMega 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.nav-drop.force-close > .nav-panel,
.nav-drop.force-close > .cat-flyout-panel,
.nav-drop.force-close > .brand-dropdown-panel,
.nav-drop.force-close > .brand-mega-panel {
  display: none !important;
  pointer-events: none !important;
}
.nav-panel a {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--navy-950, #004e7d) !important;
  font-weight: 500;
  transition: all 0.15s ease;
  background: transparent !important;
  border-bottom: none !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.nav-panel a:hover {
  background: #eef6fd !important;
  color: #004e7d !important;
  transform: translateX(3px);
}
.np-col .np-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-blue);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- HERO SECTION (LIGHT, CLEAN & CRISP) ---------- */
.hero {
  background: linear-gradient(120deg, #004e7d 0%, #004e7d 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 44px 0 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 96, 182, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}
.trust-strip {
  background: #004e7d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
}
.trust-strip-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .trust-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 500px) {
  .trust-strip-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- SECTIONS & GRIDS ---------- */
section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px;
}
.sec-head { margin-bottom: 24px; }
.sec-head h2 {
  font-size: 22px;
  color: var(--navy-950);
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.sec-head p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* Need Cards */
.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.need-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s var(--ease-spring);
  box-shadow: var(--shadow-sm);
}
.need-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.need-card .n-icon {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.need-card h3 {
  font-size: 17px;
  margin: 4px 0 0;
  color: var(--navy-950);
  font-weight: 700;
}
.need-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}
.need-card .n-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.need-card:hover .n-link { color: var(--orange); }

/* Category Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-tile {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.cat-tile:hover {
  border-color: var(--brand-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-tile .ct-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.2s ease;
}
.cat-tile:hover .ct-icon {
  background: var(--brand-blue);
  color: #ffffff;
}
.cat-tile span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-950);
}

/* Product Card */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.prod-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  transition: all 0.25s var(--ease-spring);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.prod-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.prod-card .p-img {
  aspect-ratio: 1/1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.prod-card .p-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  margin: auto;
  transition: transform 0.3s ease;
}
.prod-card:hover .p-img img { transform: scale(1.06); }
.prod-card .p-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
}
.prod-card .p-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prod-card .p-brand {
  font-size: 10.5px;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 4px;
}
.prod-card .p-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.4;
  min-height: 38px;
  margin-bottom: 8px;
}
.prod-card .p-specs {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.prod-card .p-specs li::before {
  content: "• ";
  color: var(--brand-blue);
  font-weight: bold;
}
.prod-card .p-price {
  font-weight: 500;
  color: #dc2626;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  margin-top: auto;
}
.prod-card .p-bulk {
  font-size: 11px;
  color: var(--brand-blue);
  margin-top: 4px;
  font-weight: 600;
}
.prod-card .p-stock {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.prod-card .p-stock .d {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* Product Card Actions */
.prod-card .p-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.prod-card .btn-quick-buy {
  flex: 1;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 96, 182, 0.2);
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
}
.prod-card .btn-quick-buy:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

/* Brand Strip (Homepage & Brand Category Page) */
.brand-strip {
  max-width: 1240px;
  margin: 14px auto 0;
  padding: 0 20px;
}
.brand-strip-inner {
  background: #ffffff;
  border: 1px solid var(--line, #dde3ea);
  border-radius: 2px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand-logo-box {
  width: 90px;
  height: 60px;
  border-radius: 2px;
  background: #ffffff;
  border: 1px solid var(--line, #dde3ea);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.brand-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.brand-strip-text {
  flex: 1;
  min-width: 220px;
}
.brand-strip-text p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink, #1a2230);
  line-height: 1.55;
  font-weight: 500;
}
.brand-strip-text .cms-flag {
  font-size: 10.5px;
  color: #b3392c;
  margin-top: 4px;
  display: block;
}
.brand-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.brand-fact {
  background: var(--navy-100, #e6eef3);
  color: var(--navy-800, #004e7d);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Homepage Brand Logos Grid */
.brand-strip-grid, .brand-strip:has(.brand-tile) {
  display: grid !important;
  grid-template-columns: repeat(8, 1fr) !important;
  gap: 12px !important;
  padding: 0 !important;
}
.brand-tile {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  padding: 14px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy-950);
  font-size: 12.5px;
  text-align: center;
  min-height: 54px;
  transition: all 0.2s ease;
}
.brand-tile:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: var(--shadow);
}

/* Reception Band */
.reception-band {
  background: var(--brand-blue-light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reception-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.reception-text { flex: 1; min-width: 220px; }
.reception-text h3 { margin: 0 0 4px; font-size: 17px; color: var(--navy-950); font-weight: 700; }
.reception-text p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.reception-staff { display: flex; gap: 12px; flex-wrap: wrap; }
.r-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.r-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.r-meta { font-size: 11.5px; line-height: 1.35; }
.r-meta b { display: block; font-size: 12.5px; color: var(--navy-950); }
.r-zalo {
  background: #0068ff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 3px;
  margin-left: 4px;
}

/* Footer */
footer {
  background: var(--navy-950);
  color: #b9c7d4;
  padding: 48px 20px 24px;
  border-top: 3px solid var(--brand-blue);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-inner h4 { color: #ffffff; font-size: 14px; margin: 0 0 14px; font-weight: 700; }
.footer-inner p, .footer-inner a { font-size: 12.5px; color: #a3b5c7; line-height: 2; display: block; }
.footer-inner a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom {
  max-width: 1240px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #7c8fa0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Off-Canvas Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 34, 66, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-spring);
  display: none;
}
.mobile-drawer-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 84vw;
  max-width: 320px;
  background: #ffffff;
  z-index: 99999;
  box-shadow: 6px 0 28px rgba(7, 34, 66, 0.25);
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-spring);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer-backdrop.active .mobile-drawer-panel {
  transform: translateX(0);
}
.mobile-drawer-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy-950);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-drawer-hotline-box {
  margin: 12px 14px;
  padding: 12px;
  background: var(--brand-blue-light);
  border: 1px solid rgba(0, 96, 182, 0.15);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-950);
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  gap: 8px;
}
.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* Mobile Floating Bar */
.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(7, 34, 66, 0.08);
  z-index: 970;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.mobile-floating-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.mobile-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
  gap: 2px;
}
.mobile-action-item .m-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
}
.m-icon.call { background: var(--orange); }
.m-icon.zalo { background: #0068ff; }
.m-icon.calc { background: #f59e0b; }
.m-icon.home { background: var(--brand-blue); }

/* Cart Drawer & Modals */
#cart-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s var(--ease-spring);
}
#cart-drawer.active { display: block; opacity: 1; }

#quickview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s var(--ease-spring);
}
#quickview-modal.active { display: flex; opacity: 1; }

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 34, 66, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  box-shadow: -6px 0 30px rgba(7, 34, 66, 0.22);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-spring);
  z-index: 1;
}
.drawer-panel.translate-x-full { transform: translateX(100%); }

/* Dual-Thumb Price Slider */
.price-slider-wrap {
  position: relative;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}
.price-slider-track {
  position: relative;
  width: 100%;
  height: 6px;
  background-color: var(--line);
  border-radius: 2px;
}
.price-slider-range {
  position: absolute;
  height: 100%;
  background-color: var(--brand-blue);
  border-radius: 2px;
  z-index: 1;
}
.range-inputs { position: relative; }
.range-inputs input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  top: -6px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  z-index: 2;
  margin: 0;
}
.range-inputs input[type="range"]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background-color: var(--brand-blue);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 96, 182, 0.35);
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring);
}

/* Responsive Rules */
@media (min-width: 769px) {
  .mobile-menu-btn { display: none !important; }
  .header-mobile-top-row { display: contents !important; }
  .desktop-only-label { display: block !important; }
}

@media (max-width: 768px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important; font-size: 14px; }
  .mobile-floating-bar { display: block; }
  nav.catnav {
    display: none !important;
  }

  .header-inner {
    padding: 8px 12px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .header-mobile-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 3px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border: 1px solid rgba(0, 96, 182, 0.15);
    font-size: 18px;
    cursor: pointer;
  }
  .site-logo-img { height: 42px !important; max-height: 44px !important; width: auto !important; }
  .desktop-only-label { display: none !important; }

  .hero-inner {
    padding: 0 12px 20px !important;
    gap: 18px !important;
    grid-template-columns: 1fr !important;
  }
  .hero-text h1 {
    font-size: 21px !important;
    line-height: 1.3 !important;
    margin: 0 0 8px !important;
  }
  .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
  .hero-cta .btn {
    padding: 10px 6px !important;
    font-size: 12px !important;
    width: 100% !important;
    white-space: nowrap !important;
  }
  .hero-fast-tags {
    font-size: 11px !important;
    gap: 6px !important;
    flex-direction: column !important;
  }
  .float-chip { display: none !important; }

  .trust-strip-inner {
    padding: 12px !important;
    gap: 8px !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .prod-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .need-grid { grid-template-columns: 1fr !important; }
  .cat-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .brand-strip { grid-template-columns: repeat(4, 1fr) !important; gap: 6px !important; }
  .testi-grid { grid-template-columns: 1fr !important; }
  .footer-inner { grid-template-columns: 1fr !important; gap: 20px !important; }
}



/* Duplicate header and catnav rules unified and maintained in header section at top of stylesheet */
.nav-arrow {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.nav-drop:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Mega Menu Dropdowns */
.nav-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 999999 !important;
}
.nav-drop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 6px;
  background: transparent;
  z-index: 999998;
  display: none;
  pointer-events: none;
}
.nav-drop:hover:not(.force-close)::after {
  display: block;
  pointer-events: auto;
}

/* Mega Panel: SẢN PHẨM */
.nav-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff !important;
  border: 1px solid #dbe4ee;
  border-top: 3px solid var(--brand-blue, #004e7d);
  box-shadow: 0 20px 45px rgba(7, 34, 66, 0.22), 0 4px 14px rgba(7, 34, 66, 0.08);
  border-radius: 0;
  width: 1020px;
  max-width: min(1020px, calc(100vw - 32px));
  padding: 22px 24px;
  z-index: 9999999 !important;
  display: none !important;
  pointer-events: auto;
  white-space: normal !important;
  box-sizing: border-box;
}
.nav-drop:hover:not(.force-close) > .nav-mega-panel {
  display: block !important;
  animation: fadeInMega 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  background: #ffffff !important;
  width: 100%;
  box-sizing: border-box;
  white-space: normal !important;
}
.mega-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  white-space: normal !important;
}
.mega-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy-950, #004e7d);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mega-col-title i { color: var(--brand-blue, #004e7d); font-size: 13px; }
.mega-col a {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 6px 8px;
  font-size: 12.5px;
  color: #1e293b !important;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.15s ease;
  line-height: 1.35;
  margin-bottom: 2px;
  white-space: normal !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background: transparent !important;
}
.mega-col a i { font-size: 10px; color: #94a3b8; margin-top: 3px; flex-shrink: 0; }
.mega-col a:hover {
  background: #eef6fd !important;
  color: #004e7d !important;
  transform: translateX(3px);
}
.mega-col a:hover i { color: #004e7d; }

.mega-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.mb-pill {
  display: inline-block;
  background: #f1f5f9;
  color: #004e7d !important;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid #dbe4ee;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.mb-pill:hover {
  background: #004e7d !important;
  color: #ffffff !important;
  border-color: #004e7d;
}

.mega-promo-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%) !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 2px;
  padding: 12px;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.mp-tag {
  font-size: 10px;
  font-weight: 800;
  color: #d41e3d;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.mp-text {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.4;
  margin: 0 0 8px;
  white-space: normal;
}
.mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #d41e3d 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 3px;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 2px 6px rgba(212, 30, 61, 0.3);
  transition: transform 0.15s ease;
}
.mp-btn:hover {
  transform: translateY(-1px);
}
.mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #004e7d !important;
  text-decoration: none !important;
  transition: gap 0.15s ease;
  white-space: normal;
}
.mega-view-all:hover {
  text-decoration: underline !important;
  gap: 9px;
}

/* Mega Panel: THƯƠNG HIỆU */
.brand-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-blue);
  box-shadow: 0 16px 40px rgba(7, 34, 66, 0.2);
  border-radius: 0;
  width: 680px;
  max-width: 90vw;
  padding: 22px;
  z-index: 999999;
  display: none !important;
}
.nav-drop:hover > .brand-mega-panel {
  display: block !important;
  animation: fadeInMega 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.brand-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bd-col-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-blue);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--line);
}
.bd-item {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  border-radius: 2px;
  margin-bottom: 2px;
  transition: all 0.15s ease;
}
.bd-item strong {
  font-size: 13px;
  color: var(--navy-950);
}
.bd-item span {
  font-size: 11px;
  color: var(--ink-soft);
}
.bd-item:hover {
  background: var(--brand-blue-light);
  transform: translateX(3px);
}
.bd-item:hover strong {
  color: var(--brand-blue);
}

@keyframes fadeInMega {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Brand Hero Banner on thuong-hieu.html */
.brand-hero-card {
  max-width: 1240px;
  margin: 16px auto 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand-logo-badge {
  width: 150px;
  height: 90px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
}
.brand-text-logo {
  font-size: 18px;
  font-weight: 900;
  color: var(--brand-blue);
  letter-spacing: 0.06em;
}
.brand-hero-info h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-950);
  margin: 0 0 6px;
}
.brand-hero-info p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.5;
}
.brand-badges-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bbadge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  border: 1px solid rgba(0, 96, 182, 0.18);
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Calculator Hero Contrast Fix (Only for Calculator page) */
.calc-hero {
  background: linear-gradient(135deg, #004e7d 0%, #004e7d 100%) !important;
  color: #ffffff !important;
  padding: 40px 0 36px;
  margin-bottom: 24px;
}
.calc-hero h1 {
  color: #ffffff !important;
}
.calc-hero p {
  color: #dbe4ee !important;
}

/* Desktop vs Mobile Media Queries */
@media (min-width: 769px) {
  .mobile-menu-btn { display: none !important; }
  .header-mobile-top-row { display: contents !important; }
  .desktop-only-label { display: block !important; }
  .site-logo-wrap { order: 1; }
  .search-wrap { order: 2; flex: 1; max-width: 580px; margin: 0 auto; }
  .header-actions { order: 3; }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column !important;
    padding: 8px 12px 10px !important;
    gap: 8px !important;
  }
  .header-mobile-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 3px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border: 1px solid rgba(0, 96, 182, 0.15);
    font-size: 18px;
  }
  .brand-hero-card {
    flex-direction: column;
    text-align: center;
  }
  .brand-badges-row {
    justify-content: center;
  }
}


/* Explicit Tab Panels Control */
.panel {
  display: none !important;
}
.panel.active {
  display: block !important;
}
.calc-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .calc-grid-layout {
    grid-template-columns: 1fr !important;
  }
}
.fan-scroll {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #ffffff;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.cooling-pad-banner {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
  clear: both;
}


/* ==========================================================================
   EXACT 100% WINLINE.VN FOOTER SYSTEM (LIGHT THEME + BLUE TOP BAR)
   ========================================================================== */
/* ==========================================================================
   FOOTER (FULL BRAND BLUE #004e7d THEME, HIGH CONTRAST UX/UI)
   ========================================================================== */
footer.footer, footer.site-footer {
  background: #004e7d !important;
  color: #e0f2fe !important;
  padding: 0;
  margin-top: 40px;
  font-size: 13px;
  line-height: 1.6;
  border-top: 3px solid #003e63;
  box-shadow: 0 -4px 20px rgba(0, 78, 125, 0.2);
}

/* Top Bar: Newsletter & Social Icons (Brand Blue Darker Accent #003e63 / #004e7d) */
.tt-footer-default {
  background: #003e63 !important;
  background: linear-gradient(90deg, #003859 0%, #004e7d 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 20px;
  color: #ffffff;
}
.tt-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tt-newsletter-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 300px;
}
.tt-collapse-title {
  font-size: 14px;
  font-weight: 800;
  color: #f0f7ff !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  white-space: nowrap;
}
.tt-newsletter-form {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 480px;
  background: #ffffff !important;
  border-radius: 3px;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  transition: all 0.2s ease;
}
.tt-newsletter-form:focus-within {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(56, 189, 248, 0.5) !important;
  border-color: #38bdf8 !important;
}
.tt-newsletter-form input {
  flex: 1;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  color: #004e7d !important;
  outline: none;
  font-family: inherit;
  background: transparent;
  min-width: 0;
}
.tt-newsletter-form input::placeholder {
  color: #64748b !important;
}
.tt-newsletter-form button {
  background: linear-gradient(135deg, #d41e3d 0%, #b91c1c 100%);
  border: none;
  color: #ffffff;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(212, 30, 61, 0.35);
}
.tt-newsletter-form button:hover {
  background: linear-gradient(135deg, #e52b4b 0%, #d41e3d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 30, 61, 0.5);
}
.tt-newsletter-form button:active {
  transform: translateY(0);
}
.tt-newsletter-form button i {
  font-size: 13px;
}

/* Top Social Icons */
.tt-social-icon {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin: 0;
}
.tt-social-icon li a {
  color: #ffffff !important;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  transition: all 0.2s ease;
  text-decoration: none;
}
.tt-social-icon li a:hover {
  background: #004e7d !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .tt-footer-container {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .tt-newsletter-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  .tt-collapse-title {
    white-space: normal;
    text-align: center;
    font-size: 13.5px;
  }
  .tt-newsletter-form {
    max-width: 100%;
    width: 100%;
  }
  .tt-social-icon {
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .tt-newsletter-form button {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .tt-newsletter-form input {
    padding: 8px 10px;
    font-size: 12.5px;
  }
}

/* Main 4-Column Footer Area */
.site-footer {
  background: #004e7d !important;
}
.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}
.footer-cols-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 24px;
}
@media (max-width: 960px) {
  .footer-cols-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 540px) {
  .footer-cols-grid { grid-template-columns: 1fr; gap: 20px; }
}

.footer-widget h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
  display: flex;
  align-items: center;
}
.list-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}
.list-menu li {
  margin-bottom: 9px;
  line-height: 1.5;
}
.list-menu li a {
  color: #e0f2fe !important;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
}
.list-menu li a:hover {
  color: #ffffff !important;
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Contact List in Col 3 */
.ul-footer-contact li {
  color: #e0f2fe !important;
  margin-bottom: 11px;
  line-height: 1.5;
}
.ul-footer-contact li strong {
  color: #ffffff !important;
  font-size: 12.5px;
  display: inline-block;
  margin-bottom: 2px;
}
.ul-footer-contact li span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ul-footer-contact li i {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.ul-footer-contact li a {
  color: #fef08a !important;
  font-weight: 600;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ul-footer-contact li a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Col 4: Trust Badges & Payment Methods */
.footer-trust-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.bocongthuong-link img {
  height: 44px !important;
  width: auto !important;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.bocongthuong-link:hover img {
  opacity: 0.88;
  transform: translateY(-2px);
}
.dmca-badge img {
  height: 24px !important;
  width: auto !important;
  display: block;
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.dmca-badge:hover img {
  opacity: 0.88;
  transform: translateY(-2px);
}

.payment-methods-grid span {
  transition: all 0.15s ease;
}
.payment-methods-grid span:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #ffffff !important;
  transform: translateY(-1px);
}

/* Corporate Info Block */
.fot-col-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding-top: 22px;
  margin-top: 16px;
  font-size: 12.5px;
  color: #cbe2f3 !important;
  line-height: 1.8;
  text-align: center;
}
.fot-col-bottom p {
  margin: 0 0 6px;
}
.fot-col-bottom strong {
  color: #ffffff !important;
}

/* Copyright Strip */
.copyright {
  background: #003859 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
  color: #93c5fd !important;
}
.copyright strong {
  color: #ffffff !important;
}
.copyright span {
  display: inline-block;
}


/* ==========================================================================
   CATEGORY & SOLUTION & BRAND BOTTOM DESCRIPTION ARTICLE
   ========================================================================== */
.category-desc-wrap {
  max-width: 1240px;
  margin: 32px auto 20px;
  padding: 0 20px;
}
.category-desc-box {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 2px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 96, 182, 0.04);
  position: relative;
}
@media (max-width: 640px) {
  .category-desc-box { padding: 20px 16px; }
}
.cdb-header {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cdb-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-950, #004e7d);
  margin: 0;
  line-height: 1.4;
}
.cdb-header i {
  color: var(--brand-blue, #004e7d);
  font-size: 22px;
  flex-shrink: 0;
}
.cdb-body {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink, #334155);
}
.cdb-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-950, #004e7d);
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cdb-body h3 i {
  color: var(--orange, #d41e3d);
  font-size: 14px;
}
.cdb-body p {
  margin: 0 0 12px;
}
.cdb-body ul {
  margin: 0 0 16px 20px;
  padding: 0;
}
.cdb-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.cdb-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 18px 0 20px;
}
.cdb-card-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 16px 18px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cdb-card-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.cdb-card-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue, #004e7d);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cdb-card-item p {
  font-size: 12.5px;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}
.cdb-highlight-box {
  background: #eff6ff;
  border-left: 4px solid var(--brand-blue, #004e7d);
  padding: 14px 18px;
  border-radius: 0;
  margin: 18px 0;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.65;
}
.cdb-highlight-box strong {
  color: var(--navy-950);
}
.cdb-collapse-content {
  display: none;
}
.cdb-collapse-content.open {
  display: block;
}
.cdb-toggle-wrap {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}
.cdb-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cdb-toggle-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
}


/* Mega Menu Brand Pills */
.mega-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.mb-pill {
  background: #f8fafc !important;
  color: #004e7d !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 2px !important;
  border: 1px solid #cbd5e1 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.15s ease !important;
  white-space: nowrap;
}
.mb-pill:hover {
  background: #004e7d !important;
  color: #ffffff !important;
  border-color: #004e7d !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   SMART SEARCH MULTI-CATEGORY AUTOCOMPLETE
   ========================================================================== */
.wn-smart-search-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 3px;
  box-shadow: 0 20px 40px -6px rgba(7, 34, 66, 0.18), 0 6px 16px -2px rgba(7, 34, 66, 0.08);
  z-index: 99999;
  display: none;
  max-height: 480px;
  overflow-y: auto;
  text-align: left;
  animation: wnFadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.wn-tag-item:hover {
  background: #eef6fd !important;
  border-color: #004e7d !important;
  color: #004e7d !important;
  transform: translateY(-1px);
}

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

/* Ensure all main content containers stay below header/navbar stacking context */
.product-main, .listing, .page-content, .hero, .trust-strip, .sect, .breadcrumb, .title-block {
  position: relative;
  z-index: 1;
}

.pinfo, .filters {
  z-index: 5 !important;
}



/* ---------- Modal Báo Giá Toàn Trang (RFQ Modal) ---------- */
.modal-overlay {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 51, 0.65);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal-overlay.open {
  display: flex !important;
}
.modal-box {
  background: #ffffff;
  border-radius: 3px;
  max-width: 440px;
  width: 100%;
  padding: 26px 22px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  animation: modalFadeIn 0.2s ease-out;
}
.modal-box.wide {
  max-width: 540px;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #0d1f33;
}
.modal-box p.sub {
  font-size: 12.5px;
  color: #5f738c;
  margin: 0 0 16px;
  line-height: 1.4;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #5f738c;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}
.modal-close:hover {
  color: #0d1f33;
}
.seg-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.seg-pick button {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 3px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0d1f33;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: all 0.2s;
}
.seg-pick button:hover {
  border-color: #004d99;
}
.seg-pick button.active {
  border-color: #004d99;
  background: #e6f0fa;
  color: #004d99;
}
.seg-fields {
  display: none !important;
}
.seg-fields.active {
  display: block !important;
}
.form-field {
  margin-bottom: 12px;
}
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #0d1f33;
  margin-bottom: 4px;
}
.form-field input, .form-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}
.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: #004d99;
  box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.1);
}
.modal-submit {
  width: 100%;
  background: #ff6b00 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.modal-submit:hover {
  background: #e55a00 !important;
}
.modal-escape {
  font-size: 12px;
  color: #5f738c;
  text-align: center;
  margin-top: 12px;
}
.modal-escape a {
  color: #004d99;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   WINLINE 2026 UI/UX ENHANCEMENTS (MENU, DIEN MAY XANH FILTERS & MOBILE)
   ========================================================================== */

/* 1. Menu Danh mục sản phẩm 2 cấp cao cấp (Mega Flyout Menu) */
.cat-flyout-panel,
.nav-panel.cat-flyout-panel {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 999999 !important;
  display: none !important;
  padding: 0 !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100vw - 32px) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.nav-drop:hover:not(.force-close) > .cat-flyout-panel,
.nav-cat-flyout-drop:hover:not(.force-close) > .cat-flyout-panel,
.nav-drop:hover:not(.force-close) > .nav-panel.cat-flyout-panel {
  display: block !important;
}
.nav-drop.force-close > .cat-flyout-panel,
.nav-cat-flyout-drop.force-close > .cat-flyout-panel,
.nav-drop.force-close > .nav-panel.cat-flyout-panel {
  display: none !important;
  pointer-events: none !important;
}

/* ==========================================================================
   MEGA MENU DANH MỤC SẢN PHẨM 2 CẤP (CHUẨN THIẾT KẾ ĐÃ DUYỆT)
   - Bố cục: Mỗi dòng ảnh bên trái, tên bên phải.
   - Chiều cao dòng: ~64px, vùng ảnh: ~56x56px, kích thước ảnh tự nhiên không thừa khung trắng.
   - Bỏ khung quanh từng ảnh, bỏ bo góc và bóng từng dòng.
   - Chữ ~16px nét thường. Mục đang chọn: chữ xanh, nền xám rất nhạt (không nền xanh sẫm).
   - Cột cấp 1 vừa đủ tên nhóm (320px); Cấp 2 cùng cách trình bày (không biến thành thẻ).
   - Cấp 2 tối đa 6 dòng mỗi cột: 7-10 mục chia thành 2 cột trong khung cố định (930px), không giãn sang phải.
   - Hiệu ứng đứng im tuyệt đối (transform: none), không xê dịch khung, chỉ chuyển màu nhạt & nổi khung nhẹ icon.
   ========================================================================== */

/* Khung hộp Mega Menu Danh mục sản phẩm 2 cấp - Thống nhất chuẩn mẫu */
.cat-flyout-wrap {
  display: flex !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border: 1px solid #dbe5ec !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 36px rgba(0, 53, 79, 0.16) !important;
  overflow: hidden !important;
  width: 580px !important;
  max-width: 580px !important;
  height: auto !important;
  box-sizing: border-box !important;
  transform: none !important;
}

/* Cột Cấp 1 (Left Column) */
.cat-flyout-l1-col {
  width: 297px !important;
  min-width: 297px !important;
  max-width: 297px !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  padding: 6px 6px !important;
  border-right: 1px solid #e2e8f0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  box-sizing: border-box !important;
  height: auto !important;
}

/* Cột Cấp 2 (Right Column) */
.cat-flyout-l2-col {
  width: 283px !important;
  min-width: 283px !important;
  max-width: 283px !important;
  flex: 1 !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 6px 6px !important;
  box-sizing: border-box !important;
  height: auto !important;
}

.cat-flyout-l2-pane {
  display: none !important;
  height: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.cat-flyout-l2-pane.is-active {
  display: block !important;
}

.cat-flyout-l2-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Dòng Cấp 1 & Dòng Cấp 2: CÙNG CHIỀU CAO 48px, CÙNG ICON BOX 44px, CÙNG CHỮ 14px, CĂN BẰNG NHAU TUYỆT ĐỐI */
.cat-flyout-l1-item,
.cat-flyout-l2-item,
.cat-flyout-panel a.cat-flyout-l1-item,
.cat-flyout-panel a.cat-flyout-l2-item,
.nav-panel.cat-flyout-panel a.cat-flyout-l1-item,
.nav-panel.cat-flyout-panel a.cat-flyout-l2-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 5px !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  position: relative !important;
  white-space: nowrap !important;
  transform: none !important;
}

.cat-flyout-l1-item:hover,
.cat-flyout-l1-item.is-active,
.cat-flyout-l2-item:hover,
.cat-flyout-panel a.cat-flyout-l1-item:hover,
.cat-flyout-panel a.cat-flyout-l1-item.is-active,
.cat-flyout-panel a.cat-flyout-l2-item:hover,
.nav-panel.cat-flyout-panel a.cat-flyout-l1-item:hover,
.nav-panel.cat-flyout-panel a.cat-flyout-l1-item.is-active,
.nav-panel.cat-flyout-panel a.cat-flyout-l2-item:hover {
  background: #f0f7ff !important;
  color: #004e7d !important;
}

/* Icon Box to theo yêu cầu: 44x44px, ảnh max 40x40px */
.cat-flyout-icon-box {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.cat-flyout-img {
  max-width: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.cat-flyout-name {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.cat-flyout-l1-item:hover .cat-flyout-name,
.cat-flyout-l1-item.is-active .cat-flyout-name,
.cat-flyout-l2-item:hover .cat-flyout-name {
  color: #004e7d !important;
}

.cat-flyout-arrow {
  margin-left: auto !important;
  font-size: 14px !important;
  color: #94a3b8 !important;
  flex-shrink: 0 !important;
}

.cat-flyout-l1-item:hover .cat-flyout-arrow,
.cat-flyout-l1-item.is-active .cat-flyout-arrow {
  color: #004e7d !important;
}

/* ==========================================================================
   DROPDOWN THƯƠNG HIỆU - 2 CỘT THƯƠNG HIỆU (CHIỀU RỘNG ĐỒNG BỘ 580PX)
   ========================================================================== */
.brand-compact-menu {
  width: 600px !important;
  min-width: 600px !important;
  max-width: 600px !important;
  padding: 10px 10px !important;
  display: none !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1px solid #dbe5ec !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 36px rgba(0, 53, 79, 0.16) !important;
  box-sizing: border-box !important;
}

.brand-2col-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.brand-grid-item {
  display: flex !important;
  align-items: center !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 4px 8px !important;
  gap: 10px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: all 0.15s ease !important;
}

.brand-grid-item:hover {
  background: #f0f7ff !important;
  color: #004e7d !important;
}

.brand-item-icon-box {
  width: 100px !important;
  height: 42px !important;
  min-width: 100px !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f4f6f8 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition: border-color 0.16s ease, background-color 0.16s ease !important;
}

.brand-grid-item:hover .brand-item-icon-box {
  background: #ffffff !important;
  border-color: #004e7d !important;
  box-shadow: none !important;
}

.brand-item-logo {
  max-width: 86% !important;
  max-height: 74% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: auto !important;
  filter: none !important;
}

.brand-item-icon-box[data-brand-slug="vinawind"] .brand-item-logo,
.brand-item-icon-box[data-brand-slug="dien-co-91"] .brand-item-logo,
.brand-item-icon-box[data-brand-slug="deton"] .brand-item-logo,
.brand-item-icon-box[data-brand-slug="dasin"] .brand-item-logo,
.brand-item-icon-box[data-brand-slug="chinghai"] .brand-item-logo,
.brand-item-icon-box[data-brand-slug="ching-hai"] .brand-item-logo {
  max-height: 82% !important;
  max-width: 88% !important;
}

.brand-item-icon-box[data-brand-slug="panasonic"] .brand-item-logo,
.brand-item-icon-box[data-brand-slug="senko"] .brand-item-logo,
.brand-item-icon-box[data-brand-slug="komasu"] .brand-item-logo,
.brand-item-icon-box[data-brand-slug="mitsubishi"] .brand-item-logo,
.brand-item-icon-box[data-brand-slug="mitsubishi-electric"] .brand-item-logo {
  max-width: 90% !important;
  max-height: 68% !important;
}

.brand-item-ico {
  font-size: 16px !important;
  color: #004e7d !important;
}

.brand-item-name {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.brand-grid-item:hover .brand-item-name {
  color: #004e7d !important;
}

.brand-menu-view-all {
  height: 38px !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #004e7d !important;
  background: #f0f7ff !important;
  border: 1px solid #bae6fd !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  margin-top: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.brand-menu-view-all:hover {
  background: #e0f2fe !important;
  color: #003859 !important;
}

/* Ngăn ngừa mọi hiệu ứng dịch chuyển khung toàn bộ menu */
.cat-flyout-panel a,
.cat-flyout-panel a:hover,
.cat-flyout-panel a.is-active,
.cat-flyout-panel .cat-flyout-l1-item,
.cat-flyout-panel .cat-flyout-l1-item:hover,
.cat-flyout-panel .cat-flyout-l2-card,
.cat-flyout-panel .cat-flyout-l2-card:hover,
.cat-flyout-panel .cat-flyout-l1-arrow,
.cat-flyout-panel .cat-flyout-l2-card-thumb,
.cat-flyout-panel .cat-flyout-l2-card-thumb img,
.cat-flyout-panel .cat-flyout-icon-wrap,
.cat-flyout-panel .cat-flyout-l1-img {
  transform: none !important;
}

/* Responsive: Màn hình hẹp cuộn dọc */
@media (max-width: 1024px) {
  .cat-flyout-wrap {
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    flex-direction: column !important;
  }
  .cat-flyout-l1-col {
    width: 100% !important;
    max-width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    height: auto !important;
  }
  .cat-flyout-l2-col {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .cat-flyout-l2-grid {
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
}

/* Menu Thương hiệu Dropdown Đa cột (3 cột x ~7-8 thương hiệu) */
.brand-dropdown-panel,
.nav-panel.brand-dropdown-panel {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 580px !important;
  width: 580px !important;
  max-width: calc(100vw - 32px) !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 36px -6px rgba(0, 31, 63, 0.16), 0 0 1px rgba(0, 0, 0, 0.08) !important;
  padding: 16px 18px 14px !important;
  display: none !important;
  z-index: 9999999 !important;
  box-sizing: border-box !important;
}

.brand-nav-drop:hover:not(.force-close) > .brand-dropdown-panel,
.nav-drop:hover:not(.force-close) > .brand-dropdown-panel {
  display: block !important;
  animation: fadeInMega 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.brand-dropdown-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 10px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.brand-dropdown-title {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.brand-dropdown-viewall {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #004e7d !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.15s ease !important;
}

.brand-dropdown-viewall:hover {
  color: #d41e3d !important;
  text-decoration: underline !important;
}

.brand-dropdown-cols {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.brand-dropdown-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.brand-dropdown-panel a.brand-dropdown-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 10px !important;
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 6px !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.brand-dropdown-panel a.brand-dropdown-item:hover {
  background: #ffffff !important;
  border-color: #93c5fd !important;
  color: #004e7d !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(0, 78, 125, 0.08) !important;
  transform: translateX(1px) !important;
}

.brand-dropdown-item-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.brand-dropdown-item-logo {
  height: 18px !important;
  width: auto !important;
  max-width: 44px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.brand-dropdown-item-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: #004e7d !important;
  opacity: 0.6 !important;
  flex-shrink: 0 !important;
}

.brand-dropdown-item-name {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.brand-dropdown-item-arrow {
  color: #94a3b8 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease, color 0.15s ease !important;
}

.brand-dropdown-panel a.brand-dropdown-item:hover .brand-dropdown-item-arrow {
  color: #004e7d !important;
  transform: translateX(2px) !important;
}

.brand-dropdown-panel a.brand-dropdown-item-all {
  background: #f0f7fa !important;
  border-color: #e0f2fe !important;
}

.brand-dropdown-footer {
  margin-top: 12px !important;
  padding: 8px 12px !important;
  background: #f0f7fa !important;
  border: 1px solid #e0f2fe !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 12px !important;
  color: #0369a1 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Mở đồng bộ tất cả dropdown menu thanh điều hướng khi hover hoặc click */
.nav-drop:hover:not(.force-close) > .demand-compact-menu,
.nav-cat-drop:hover:not(.force-close) > .demand-compact-menu,
.nav-cat-flyout-drop:hover:not(.force-close) > .demand-compact-menu,
.nav-demand-drop:hover:not(.force-close) > .demand-compact-menu,
.brand-nav-drop:hover:not(.force-close) > .demand-compact-menu {
  display: flex !important;
  animation: fadeInMega 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.nav-demand-trigger[aria-expanded="true"] + .demand-compact-menu {
  display: flex !important;
}

.nav-drop:hover .nav-arrow,
.nav-cat-drop:hover .nav-arrow,
.nav-cat-flyout-drop:hover .nav-arrow,
.brand-nav-drop:hover .nav-arrow,
.nav-demand-drop:hover .nav-demand-arrow,
.nav-demand-trigger[aria-expanded="true"] .nav-demand-arrow {
  transform: rotate(180deg);
}

.nav-drop.force-close > .demand-compact-menu,
.nav-cat-drop.force-close > .demand-compact-menu,
.nav-cat-flyout-drop.force-close > .demand-compact-menu,
.nav-demand-drop.force-close > .demand-compact-menu,
.brand-nav-drop.force-close > .demand-compact-menu,
.brand-nav-drop.force-close > .brand-dropdown-panel,
.nav-drop.force-close > .brand-dropdown-panel {
  display: none !important;
  pointer-events: none !important;
}


/* 2. Dải Logo Thương hiệu Cấp 3 (Điện Máy Xanh Style) */
.product-listing-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px 60px;
}
.brand-quick-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 10px 14px;
  margin: 14px 0 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.brand-quick-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-950, #004e7d);
  white-space: nowrap;
}
.brand-quick-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.brand-quick-pill,
.dmx-brand-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-width: 120px;
  height: 44px;
  min-height: 44px;
  padding: 5px 10px;
  box-sizing: border-box;
  background: #f4f6f8;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: none !important;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease;
  white-space: nowrap;
}
.brand-quick-pill:hover,
.dmx-brand-pill:hover {
  border-color: var(--brand-blue, #004e7d) !important;
  color: var(--brand-blue, #004e7d);
  background: #ffffff;
  box-shadow: none !important;
}
.brand-quick-pill.active,
.dmx-brand-pill.active {
  background: #f0f7ff !important;
  color: var(--navy-950, #004e7d) !important;
  border: 2px solid var(--navy-950, #004e7d) !important;
  box-shadow: none !important;
}
.brand-quick-pill.active span,
.dmx-brand-pill.active span {
  color: var(--navy-950, #004e7d) !important;
}
.brand-quick-pill.active .dmx-brand-img,
.dmx-brand-pill.active .dmx-brand-img {
  filter: none !important;
}
.brand-quick-pill.active .dmx-check-ic,
.dmx-brand-pill.active .dmx-check-ic {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #004e7d;
  color: #ffffff !important;
  font-size: 10px;
  width: 15px;
  height: 15px;
  border-radius: 0 5px 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.brand-pill-logo,
.dmx-brand-img {
  max-height: 74%;
  max-width: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: auto;
  filter: none !important;
}

/* 3. Bộ Lọc Hàng Ngang (Horizontal Multi-Filter Bar) */
.horizontal-filters-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.h-filters-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.h-filter-dropdown {
  position: relative;
}
.h-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1.5px solid #dde3ea;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-950, #004e7d);
  cursor: pointer;
  transition: all 0.15s ease;
}
.h-filter-btn:hover {
  background: #ffffff;
  border-color: var(--brand-blue, #004e7d);
}
.h-filter-btn.has-val {
  border-color: var(--brand-blue, #004e7d);
  background: #eef6fd;
  color: var(--brand-blue, #004e7d);
}
.h-filter-btn .filter-badge {
  background: var(--orange, #d41e3d);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
}
.h-filter-btn .arrow {
  font-size: 11px;
  transition: transform 0.2s ease;
}
.h-filter-dropdown.open .h-filter-btn .arrow {
  transform: rotate(180deg);
}

.h-filter-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 320px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 35, 70, 0.15);
  padding: 16px;
  z-index: 100;
}
.h-filter-dropdown.open .h-filter-popover {
  display: block;
}
.popover-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-950, #004e7d);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}
.popover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 14px;
}
.popover-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
}
.popover-check input {
  accent-color: var(--brand-blue, #004e7d);
  width: 15px;
  height: 15px;
}
.popover-check .p-count {
  font-size: 11px;
  color: #94a3b8;
}
.popover-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.popover-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.popover-radio input {
  accent-color: var(--brand-blue, #004e7d);
  width: 16px;
  height: 16px;
}
.popover-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.btn-clear-sub {
  background: none;
  border: none;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.btn-submit-filter {
  background: var(--orange, #d41e3d) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 7px 16px !important;
  border-radius: 3px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: opacity 0.15s !important;
}
.btn-submit-filter:hover {
  opacity: 0.9 !important;
}
.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #dc2626;
  text-decoration: none;
  border: 1px dashed #fca5a5;
  border-radius: 3px;
  background: #fef2f2;
}
.btn-reset-filters:hover {
  background: #fee2e2;
}

/* Active Tags */
.active-filter-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.tag-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.filter-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef6fd;
  color: var(--brand-blue, #004e7d);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 2px;
  border: 1px solid #bfdbfe;
  text-decoration: none;
}
.filter-tag-chip:hover {
  background: #dbeafe;
}

/* 4. Lưới Sản Phẩm Toàn Chiều Rộng */
.listing-full-container {
  width: 100%;
}
.listing-full-container .prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) {
  .listing-full-container .prod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .listing-full-container .prod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.p-compare-price {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}
.p-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}
.no-products-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
}
.no-products-box h3 {
  font-size: 18px;
  color: var(--navy-950, #004e7d);
  margin-bottom: 6px;
}
.no-products-box p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}
.btn-clear-filters-link {
  display: inline-block;
  background: var(--navy-950, #004e7d);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
/* ==========================================================================
   Storefront Pagination (Winline Custom & Bootstrap 5 Compatibility)
   ========================================================================== */
.pagination-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 40px 0 24px !important;
  width: 100% !important;
}

.winline-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.winline-pagination .pagination-info,
.pagination-wrap .small.text-muted {
  font-size: 13.5px;
  color: #64748b;
  text-align: center;
  margin-bottom: 2px;
}

.winline-pagination .pagination-info strong,
.pagination-wrap .fw-semibold {
  color: var(--navy-950, #004e7d);
  font-weight: 700;
}

.winline-pagination .pagination-list,
.pagination-wrap .pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: wrap !important;
}

.winline-pagination .page-item,
.pagination-wrap .page-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
}

.winline-pagination .page-link,
.pagination-wrap .page-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 2px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  gap: 4px !important;
  transition: all 0.18s ease-in-out !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.winline-pagination .page-link:hover,
.pagination-wrap a.page-link:hover {
  background: #f0f7ff !important;
  border-color: var(--navy-800, #004e7d) !important;
  color: var(--navy-800, #004e7d) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 78, 125, 0.12) !important;
}

.winline-pagination .page-item.active .page-link,
.pagination-wrap .page-item.active .page-link {
  background: var(--navy-950, #004e7d) !important;
  border-color: var(--navy-950, #004e7d) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 78, 125, 0.32) !important;
  transform: none !important;
}

.winline-pagination .page-item.disabled .page-link,
.pagination-wrap .page-item.disabled .page-link {
  color: #94a3b8 !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.65 !important;
  box-shadow: none !important;
}

.winline-pagination .page-item.dots .page-link,
.pagination-wrap .page-item.disabled span.page-link:not([aria-hidden]) {
  border: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
  min-width: 24px !important;
  padding: 0 4px !important;
}

/* Fallback: hide duplicate mobile-only row if Bootstrap 5 view is ever rendered */
.pagination-wrap .d-sm-none {
  display: none !important;
}
.pagination-wrap .d-none {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}


/* 5. Mobile Bottom Bar (Sản phẩm, Tìm kiếm, Liên hệ - Mục 10.5) */
.mobile-bottom-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  display: none !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 5px 0 calc(5px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9999 !important;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.08) !important;
}
@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex !important;
  }
  body {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
.mbb-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  color: var(--navy-950, #004e7d) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  flex: 1 !important;
  padding: 2px 0 !important;
  transition: all 0.15s ease !important;
}
.mbb-item:active {
  transform: scale(0.96);
}
.mbb-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--navy-950, #004e7d);
  margin-bottom: 2px;
  transition: all 0.15s ease;
  background: #f1f5f9;
}
.mbb-icon-wrap.contact {
  color: #cb2027;
  background: rgba(203, 32, 39, 0.08);
}

/* 6. Smart Search Modal */
.smart-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 40, 0.6);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(2px);
}
.smart-search-dialog {
  background: #ffffff;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 35px rgba(0,0,0,0.2);
  border-bottom: 2px solid var(--brand-blue, #004e7d);
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.smart-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-lens {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 15px;
}
.smart-search-input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 3px;
  font-size: 14.5px;
  font-family: inherit;
  box-sizing: border-box;
}
.smart-search-input:focus {
  outline: none;
  border-color: var(--brand-blue, #004e7d);
  box-shadow: 0 0 0 3px rgba(0, 78, 125, 0.12);
}
.btn-clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
}
.btn-close-search {
  background: #f1f5f9;
  border: none;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-950, #004e7d);
  cursor: pointer;
}
.smart-search-body {
  padding: 18px;
  overflow-y: auto;
}
.trending-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.trending-tags, .quick-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.trend-pill, .cat-chip {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s;
}
.trend-pill:hover, .cat-chip:hover {
  background: var(--navy-100, #e6eef3);
  color: var(--brand-blue, #004e7d);
  border-color: var(--brand-blue, #004e7d);
}
.cat-chip.hot {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.smart-search-results {
  margin-top: 10px;
}
.results-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}
.results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.smart-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 2px;
  border: 1px solid #f1f5f9;
  text-decoration: none;
  transition: background 0.15s;
}
.smart-search-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.ss-item-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.ss-item-info {
  flex: 1;
  min-width: 0;
}
.ss-item-brand {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.ss-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-950, #004e7d);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}
.ss-item-arrow {
  color: #cbd5e1;
  font-size: 12px;
}
.smart-search-empty {
  padding: 30px 10px;
  text-align: center;
  color: #64748b;
  font-size: 13.5px;
}

/* 7. Mobile Category Sheet & Reusable Tree (Mục 10.3 & 10.4) */
body.mobile-sheet-open {
  overflow: hidden !important;
}

.mobile-cat-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mobile-cat-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 30, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-cat-sheet-dialog {
  position: relative;
  z-index: 2;
  background: #ffffff;
  width: 100%;
  max-height: 90vh;
  border-radius: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.mobile-cat-sheet-header {
  padding: 10px 16px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  position: relative;
  flex-shrink: 0;
}
.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 4px;
  margin: 0 auto 8px;
}
.sheet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-950, #004e7d);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sheet-title i {
  color: #941C1C;
  font-size: 20px;
}
.sheet-btn-close {
  background: #f1f5f9;
  border: none;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  color: #475569;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s ease;
}
.sheet-btn-close:active {
  background: #e2e8f0;
}
.sheet-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.sheet-search-icon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
}
.sheet-search-input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 36px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
  background: #f8fafc;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.sheet-search-input:focus {
  outline: none;
  border-color: #004e7d;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 78, 125, 0.12);
}
.sheet-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.mobile-cat-sheet-body {
  padding: 12px 14px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.mct-no-results {
  padding: 36px 12px;
  text-align: center;
}

/* --- Reusable Mobile Category Tree (Thiết kế thoáng đạt, sắc nét, có đường nét & điểm nhấn) --- */
.mobile-cat-tree {
  width: 100%;
}

/* Thẻ nhóm danh mục (Card) - Có đường nét viền rõ ràng, bo góc hiện đại, đổ bóng nhẹ */
.mct-group {
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 47, 76, 0.04);
  padding: 12px 10px 10px;
  box-sizing: border-box;
}
.mct-group:last-child {
  margin-bottom: 0;
}

/* Header nhóm - Có điểm nhấn thương hiệu (accent bar, icon, badge, xem tất cả) */
.mct-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.mct-group-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mct-group-accent {
  width: 3.5px;
  height: 16px;
  background: #004e7d;
  border-radius: 2px;
  flex-shrink: 0;
}
.mct-group-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.mct-group-icon-fallback {
  font-size: 18px;
  color: #004e7d;
}
.mct-group-title {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #004e7d !important;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mct-group-badge {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}
.mct-group-count {
  display: none !important;
}
.mct-group-all-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #004e7d;
  background: #f0f7fa;
  border: 1px solid #dbeafe;
  padding: 3px 8px;
  border-radius: 20px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.mct-group-all-link:hover,
.mct-group-all-link:active {
  background: #e0f2fe;
  color: #003657;
  text-decoration: none;
}
.mct-group-all-link i {
  font-size: 13px;
  line-height: 1;
}

/* Grid & Carousel Track */
.mct-grid-wrapper {
  position: relative;
  width: 100%;
}
.mct-grid-track {
  display: grid;
  gap: 8px;
  justify-content: flex-start;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 16px) / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.mct-grid-track::-webkit-scrollbar {
  display: none;
}
.mct-grid-track.mode-1_row {
  grid-template-rows: 1fr;
}
.mct-grid-track.mode-2_rows {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* Từng ô sản phẩm (Tile) - Tinh tế, nền trắng thuần, không viền khung hộp rườm rà */
.mct-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 4px 2px 2px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  scroll-snap-align: start;
  box-sizing: border-box;
  transition: transform 0.15s ease;
}
.mct-tile:active {
  background: transparent;
  border: none;
  transform: scale(0.96);
}
.mct-tile-thumb {
  width: 72px;
  height: 72px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  padding: 0;
  margin: 0 auto;
  box-shadow: none;
  box-sizing: border-box;
  transition: transform 0.15s ease;
}
.mct-tile:active .mct-tile-thumb {
  transform: scale(0.95);
}
.mct-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.mct-tile-placeholder {
  font-size: 26px;
  color: #004e7d;
}
.mct-tile-name {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  line-height: 1.25 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 29px;
  height: 30px !important;
  word-break: normal;
  word-wrap: break-word;
  text-align: center;
}

/* Phân trang dấu chấm (Dot Pagination) */
.mct-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center !important;
  margin-top: 8px;
  padding: 2px 0 0;
}
.mct-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mct-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mct-dot.is-active {
  background: #004e7d;
  width: 16px;
  border-radius: 3px;
}
.mct-swipe-hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.cat-sheet-cta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  margin-top: 14px;
}
.cta-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-950, #004e7d);
  margin-bottom: 4px;
}
.cta-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.4;
}
.cta-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff !important;
}
.cta-btn.call {
  background: #1e8a5f;
}
.cta-btn.zalo {
  background: #0068ff;
}

/* --- Mobile Dedicated Banner (Mục 6.1) --- */
.v8-mobile-banner {
  width: 100%;
  margin: 0 0 6px;
  background: #ffffff;
  padding: 0 12px;
  box-sizing: border-box;
}
.v8-mobile-banner-link,
.v8-mobile-banner-wrap {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.v8-mobile-banner-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

/* --- Ba khối "Chọn theo nhu cầu" Mobile (Mục 6.2: Cao 64px, 3 ô chia đều, khoảng cách 6–8px, icon 22–24px trên chữ 12–13px) --- */
.v8-demand-mobile-header {
  display: none !important;
  padding: 12px 14px 4px !important;
  background: #ffffff;
}
.v8-demand-mobile-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #004e7d;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.v8-demand-mobile-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 6px 12px 10px !important;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}
.v8-demand-mobile-item {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #dbeafe;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  padding: 6px 4px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.15s ease;
  box-sizing: border-box;
  overflow: hidden;
}
.v8-demand-mobile-item:active {
  background: #eef6fd;
  border-color: #004e7d;
  transform: scale(0.97);
}
.v8-demand-mobile-item i {
  font-size: 23px !important;
  line-height: 1 !important;
  color: #004e7d;
  margin-bottom: 3px !important;
  flex-shrink: 0;
  display: block;
}
.v8-demand-mobile-item span {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
}
.v8-mobile-cat-tree-wrap {
  padding: 10px 12px 18px;
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}
.mobile-total-catalog-wrap {
  padding: 0 12px;
}

/* Visibility rules: Desktop vs Mobile (Mục 10.2) */
@media (min-width: 769px) {
  .v8-demand-mobile-header,
  .v8-mobile-banner,
  .v8-demand-mobile-strip,
  .v8-mobile-cat-tree-wrap,
  .mobile-total-catalog-wrap {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .v8-demand-mobile-header {
    display: block !important;
  }
  section.v8-hero,
  section.v8-demand-section,
  section.v8-cat-section,
  .v8-hero,
  .v8-demand-section,
  .v8-cat-section {
    display: none !important;
  }
}

/* Nút toggle mở rộng/thu gọn danh mục trên header row */
.v8-cat-toggle-btn-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #004e7d;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.v8-cat-toggle-btn-top:hover {
  color: #cb2027;
}
.v8-cat-toggle-btn-top .v8-toggle-icon {
  font-size: 16px;
  transition: transform 0.2s ease;
}

/* 8. Mobile Nav Text Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 40, 0.6);
  z-index: 999999;
}
.mobile-drawer-panel {
  background: #ffffff;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 5px 0 25px rgba(0,0,0,0.15);
  animation: slideInLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.mobile-drawer-close {
  background: #f1f5f9;
  border: none;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  color: #475569;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease;
}
.mobile-drawer-close:active {
  background: #e2e8f0;
  color: #0f172a;
}
.mobile-drawer-hotline-box {
  background: #f8fafc;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
}
.mobile-drawer-hotline-box .label {
  font-size: 11px;
  color: #64748b;
}
.mobile-drawer-hotline-box .phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--orange, #d41e3d);
  text-decoration: none;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}
.mobile-drawer-hotline-box .call-btn {
  background: var(--orange, #d41e3d);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 3px;
  text-decoration: none;
}
.mobile-drawer-nav {
  padding: 14px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-950, #004e7d);
  text-decoration: none;
  transition: background 0.15s;
}
.mobile-drawer-link:hover, .mobile-drawer-link:active {
  background: var(--navy-100, #e6eef3);
  color: var(--brand-blue, #004e7d);
}
.mobile-drawer-link .icon-lead {
  width: 20px;
  margin-right: 8px;
  color: var(--brand-blue, #004e7d);
}
.mobile-drawer-link.hot-item {
  color: #b45309;
}
.badge-hot {
  background: #fef3c7;
  color: #b45309;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
}
.mobile-drawer-footer-box {
  margin-top: 20px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 2px;
  border: 1px solid #e2e8f0;
}
.company-name {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-950, #004e7d);
  margin-bottom: 6px;
}
.company-addr {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
}

/* 9. Nút Lên TOP nổi bên phải (Hiển thị khi cuộn xuống >= 2/3 màn hình) */
.floating-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-950, #004e7d);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 35, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.floating-back-to-top:hover {
  background: var(--brand-blue, #004e7d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 35, 70, 0.35);
}
@media (max-width: 768px) {
  .floating-back-to-top {
    bottom: calc(126px + env(safe-area-inset-bottom, 0px)) !important;
    right: 18px !important;
  }
}

/* 10. Floating Contact Widget (Nút liên hệ góc PC & Mobile mở rộng bảng tư vấn) */
.floating-contact-widget {
  position: fixed;
  z-index: 9999;
  font-family: inherit;
}
.floating-contact-widget.pos-right {
  bottom: 28px;
  right: 28px;
}
.floating-contact-widget.pos-left {
  bottom: 28px;
  left: 28px;
}

/* Backdrop for mobile / small screens */
.fcw-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 20, 40, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
}
.floating-contact-widget.active .fcw-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Expandable Card / Popup */
.fcw-card {
  position: absolute;
  bottom: 70px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(0, 45, 90, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 78, 125, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}
.floating-contact-widget.pos-left .fcw-card {
  left: 0;
  right: auto;
  transform-origin: bottom left;
}
.floating-contact-widget.pos-right .fcw-card {
  right: 0;
  left: auto;
  transform-origin: bottom right;
}
.floating-contact-widget.active .fcw-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Card Header: Sáng sủa, thanh lịch, tinh tế */
.fcw-card-header {
  background: #ffffff;
  color: #0f172a;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf2f7;
}
.fcw-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fcw-header-logo {
  height: 26px;
  max-width: 80px;
  object-fit: contain;
}
.fcw-brand-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #0f172a;
  line-height: 1.2;
}
.fcw-brand-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}
.fcw-btn-close {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fcw-btn-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Card Body: Danh sách chuyên viên thoáng đãng */
.fcw-card-body {
  padding: 6px 12px;
  max-height: 380px;
  overflow-y: auto;
}
.fcw-card-body::-webkit-scrollbar {
  width: 5px;
}
.fcw-card-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}
.fcw-consultant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  border-bottom: 1px solid #f1f5f9;
  gap: 10px;
  transition: background 0.15s ease;
  border-radius: 2px;
}
.fcw-consultant-item:last-child {
  border-bottom: none;
}
.fcw-consultant-item:hover {
  background: #f8fafc;
}
.fcw-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.fcw-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.fcw-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
}
.fcw-info {
  flex: 1;
  min-width: 0;
}
.fcw-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
}
.fcw-role {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcw-phone {
  font-size: 11px;
  color: #475569;
  font-weight: 500;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fcw-phone i {
  font-size: 9.5px;
  color: #64748b;
  opacity: 0.9;
}

/* Khối Call, Zalo dạng Icon trong khung viền thanh mảnh */
.fcw-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.fcw-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.fcw-action-zalo {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}
.fcw-zalo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.fcw-action-zalo:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: scale(1.12);
}
.fcw-action-zalo:hover .fcw-zalo-img {
  filter: drop-shadow(0 2px 6px rgba(0, 104, 255, 0.35));
}
.fcw-action-call {
  background: #fff7ed;
  color: #ea580c !important;
  border: 1px solid #fed7aa;
}
.fcw-action-call:hover {
  background: #ea580c;
  color: #ffffff !important;
  border-color: #ea580c;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.25);
  transform: translateY(-1px);
}

/* Mục Zalo OA chính thức ở dưới cùng bảng liên hệ */
.fcw-zalo-oa-item {
  background: linear-gradient(90deg, #f0f7ff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe !important;
  border-radius: 8px !important;
  margin: 4px 0 2px;
  padding: 10px 8px !important;
}
.fcw-zalo-oa-item:hover {
  background: linear-gradient(90deg, #e5f1ff 0%, #f0f7ff 100%);
  border-color: #93c5fd !important;
}
.fcw-oa-avatar-link {
  text-decoration: none;
  display: inline-block;
}
.fcw-zalo-oa-avatar {
  border-color: #0068ff !important;
}
.fcw-zalo-oa-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.3px;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.2);
}
.fcw-oa-verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  background: #0068ff;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
}
.fcw-oa-title-link {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}
.fcw-oa-title-link:hover {
  color: #0068ff;
}
.fcw-oa-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0068ff;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.3;
}
.fcw-action-zalo-oa {
  background: #0068ff;
  color: #ffffff !important;
  border: 1px solid #0068ff;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.2);
}
.fcw-action-zalo-oa:hover {
  background: #0052cc;
  color: #ffffff !important;
  border-color: #0052cc;
  box-shadow: 0 4px 10px rgba(0, 104, 255, 0.35);
  transform: translateY(-1px);
}

/* Card Footer: Nhẹ nhàng, thanh thoát */
.fcw-card-footer {
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
  padding: 8px 16px;
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fcw-card-footer i {
  color: #0284c7;
  font-size: 12px;
}

/* Nút liên hệ nổi ở góc: Đứng yên, tĩnh, không nhấp nháy, chuẩn ảnh mẫu khách gửi */
.fcw-launcher-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fcw-launcher-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #004e7d 100%);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 78, 125, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  outline: none;
  z-index: 10;
  padding: 0;
  box-sizing: border-box;
}
.fcw-launcher-btn:hover {
  transform: none !important;
  box-shadow: 0 4px 14px rgba(0, 78, 125, 0.3) !important;
}
.fcw-launcher-btn .fcw-icon-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
}
.fcw-launcher-btn .fcw-launcher-bubble {
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
}
.fcw-launcher-btn .fcw-launcher-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.1px;
  color: #ffffff;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
  text-align: center;
  display: block;
  margin: 0;
  padding: 0;
}
.fcw-launcher-btn .fcw-icon-close {
  display: none;
  font-size: 20px;
  line-height: 1;
  color: #ffffff;
}
.floating-contact-widget.active .fcw-launcher-btn .fcw-icon-open {
  display: none;
}
.floating-contact-widget.active .fcw-launcher-btn .fcw-icon-close {
  display: block;
}

/* Back to Top button repositioning when contact widget is on the right */
.floating-back-to-top {
  bottom: 96px !important;
  right: 34px !important;
}

/* Mobile responsive - Hide floating launcher bubble on mobile per 10.5 */
@media (max-width: 768px) {
  .fcw-launcher-wrap {
    display: none !important;
  }
  .floating-contact-widget {
    position: fixed !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 99999 !important;
  }
  .floating-contact-widget.active {
    pointer-events: auto !important;
  }
  .floating-back-to-top {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 13px !important;
  }
  .fcw-card,
  .floating-contact-widget .fcw-card,
  .floating-contact-widget.pos-left .fcw-card,
  .floating-contact-widget.pos-right .fcw-card {
    position: fixed !important;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto !important;
    transform: translateY(16px) scale(0.96) !important;
    transform-origin: bottom center !important;
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
  .floating-contact-widget.active .fcw-card,
  .floating-contact-widget.pos-left.active .fcw-card,
  .floating-contact-widget.pos-right.active .fcw-card {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ==========================================================================
   REMIX ICON & VECTOR ICON ENHANCEMENTS
   ========================================================================== */
i[class^="ri-"], i[class*=" ri-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.125em;
  line-height: 1;
}

.rating-stars {
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.rating-stars i {
  color: #f59e0b;
  font-size: 13px;
  line-height: 1;
}

.commit-grid-2 .cc-item .ci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.commit-grid-2 .cc-item .ci i {
  font-size: 16px;
  color: var(--navy-800, #004e7d);
}

.doc-preview .dp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-preview .dp-icon i {
  font-size: 42px;
  color: var(--navy-800, #004e7d);
}

.doc-group-title i {
  color: var(--navy-800, #004e7d);
  font-size: 16px;
  margin-right: 4px;
}

.tool-link .ti {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tool-link .ti i {
  font-size: 16px;
  color: var(--navy-800, #004e7d);
}

.p-card-footer .p-rating.rating-stars i {
  font-size: 11px;
}


/* 5. Center align table cells with class .num */
table .num,
th.num,
td.num {
  text-align: center !important;
}
/* ==========================================================================
   BỘ LỌC NGANG: DUAL PRICE RANGE SLIDER & DROPDOWNS TIÊU CHÍ (WINLINE B2B)
   ========================================================================== */
.dmx-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.dmx-dropdown-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  height: 44px;
  min-height: 44px;
  padding: 6px 14px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.dmx-dropdown-btn:hover {
  border-color: #004e7d;
  color: #004e7d;
  background: #f8fafc;
}

.dmx-dropdown-btn.active {
  border-color: #004e7d;
  background: #f0f7ff;
  color: #004e7d;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 78, 125, 0.15);
}

.dmx-dropdown-btn .dmx-caret {
  font-size: 14px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.dmx-dropdown-btn.active .dmx-caret {
  color: #004e7d;
}

.dmx-dropdown-wrap.open .dmx-dropdown-btn {
  border-color: #004e7d;
  background: #f0f7ff;
  color: #004e7d;
}

.dmx-dropdown-wrap.open .dmx-dropdown-btn .dmx-caret {
  transform: rotate(180deg);
  color: #004e7d;
}

/* Popover container */
.dmx-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1050;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 12px 28px -6px rgba(0, 50, 100, 0.18), 0 8px 12px -6px rgba(0, 0, 0, 0.08);
  display: none;
  min-width: 330px;
  max-width: min(480px, 94vw);
  animation: dmxFadeSlideDown 0.18s ease-out;
}

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

.dmx-dropdown-wrap.open > .dmx-popover {
  display: block;
}

.dmx-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafcff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dmx-popover-title {
  font-size: 13px;
  font-weight: 700;
  color: #004e7d;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dmx-popover-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
}

.dmx-popover-close:hover {
  color: #ef4444;
}

.dmx-popover-body {
  padding: 14px;
}

/* Price Popover specific */
.dmx-price-popover {
  width: 360px;
}

.dmx-price-bands-title,
.dmx-slider-head-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.dmx-price-quick-bands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.dmx-price-band-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-height: 44px;
  height: auto;
  padding: 8px 12px;
  box-sizing: border-box;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.dmx-price-band-btn:hover {
  border-color: #004e7d;
  color: #004e7d;
  background: #f0f7ff;
}

.dmx-price-band-btn.active {
  background: #004e7d;
  border-color: #004e7d;
  color: #ffffff;
  font-weight: 700;
}

.dmx-dual-slider-box {
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.dmx-slider-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.dmx-slider-val-box {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dmx-slider-val-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.dmx-slider-display-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #004e7d;
  font-family: 'Be Vietnam Pro', sans-serif;
  letter-spacing: -0.2px;
}

.dmx-slider-sep {
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
}

/* Range Slider Track & Inputs */
.dmx-range-slider-container {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  margin: 6px 4px 2px;
}

.dmx-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
}

.dmx-slider-progress {
  position: absolute;
  left: 0%;
  right: 0%;
  height: 6px;
  background: #004e7d;
  border-radius: 999px;
  z-index: 1;
}

.dmx-range-min,
.dmx-range-max {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  outline: none;
  z-index: 2;
}

.dmx-range-min::-webkit-slider-thumb,
.dmx-range-max::-webkit-slider-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #004e7d;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  -webkit-appearance: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.dmx-range-min::-webkit-slider-thumb:hover,
.dmx-range-max::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  background-color: #f0f7ff;
}

.dmx-range-min::-moz-range-thumb,
.dmx-range-max::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #004e7d;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.dmx-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 4px;
  padding: 0 2px;
}

.dmx-popover-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid #f1f5f9;
  background: #fafcff;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.dmx-btn-clear-price {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dmx-btn-clear-price:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.dmx-btn-submit-price {
  background: #004e7d;
  border: 1px solid #004e7d;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dmx-btn-submit-price:hover {
  background: #003657;
  border-color: #003657;
  transform: translateY(-1px);
}

/* Options Popover (Lỗ chờ, Đường kính cánh, Điều khiển, Kiểu lắp...) */
.dmx-options-popover {
  min-width: 280px;
  max-width: 400px;
}

.dmx-popover-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding: 2px;
}

.dmx-popover-opt-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-height: 44px;
  height: auto;
  padding: 8px 12px;
  box-sizing: border-box;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.dmx-popover-opt-pill:hover {
  border-color: #004e7d;
  color: #004e7d;
  background: #f0f7ff;
}

.dmx-popover-opt-pill.active {
  background: #004e7d;
  border-color: #004e7d;
  color: #ffffff;
  font-weight: 700;
}

.dmx-popover-opt-pill.active i {
  color: #ffffff;
}

/* Modal styling for dynamic criteria sections */
.dmx-modal-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.dmx-crit-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  height: auto;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.15s ease;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.dmx-crit-radio-label input[type="radio"] {
  accent-color: #004e7d;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.dmx-crit-radio-label span {
  line-height: 1.35;
  white-space: normal;
}

.dmx-crit-radio-label:hover {
  background: #f8fafc;
  border-color: #004e7d;
}

.dmx-crit-radio-label:has(input:checked) {
  background: #f0f7ff;
  border-color: #004e7d;
  color: #004e7d;
  font-weight: 600;
}

/* ==========================================================================
   WINLINE 16-ITEM UI/UX & MOBILE OPTIMIZATION PATCH (2026-10-22)
   ========================================================================== */

/* Item #4: Danh mục sản phẩm 5 cột trên Desktop & Co gọn chiều cao thẻ sản phẩm */
.listing-full-container .prod-grid,
.listing-container.mode-grid .prod-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.listing-full-container.mode-table .prod-grid,
.listing-container.mode-table .prod-grid {
  display: none !important;
}
#dmxFilterModal #dmxModalFilterForm {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#dmxFilterModal .dmx-modal-body {
  overflow-y: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: calc(88vh - 130px) !important;
  -webkit-overflow-scrolling: touch !important;
}
@media (max-width: 1180px) {
  .listing-full-container .prod-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
@media (max-width: 920px) {
  .listing-full-container .prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
@media (max-width: 640px) {
  .listing-full-container .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

.listing-full-container .prod-card .p-img {
  aspect-ratio: 1 / 0.84 !important;
  max-height: 172px !important;
  padding: 8px !important;
}
.listing-full-container .prod-card .p-body {
  padding: 10px 10px 12px !important;
  gap: 3px !important;
}
.listing-full-container .prod-card .p-cat {
  font-size: 10px !important;
  margin-bottom: 1px !important;
}
.listing-full-container .prod-card .p-name {
  font-size: 13px !important;
  line-height: 1.35 !important;
  min-height: 35px !important;
  max-height: 36px !important;
  margin: 0 0 2px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.listing-full-container .prod-card .p-specs {
  font-size: 11px !important;
  padding: 3px 6px !important;
  margin: 2px 0 !important;
}
.listing-full-container .prod-card .p-price {
  font-size: 14.5px !important;
}
.listing-full-container .prod-card .p-foot {
  margin-top: 6px !important;
  padding-top: 6px !important;
  gap: 6px !important;
}
.listing-full-container .prod-card .p-btn {
  padding: 6px 8px !important;
  font-size: 11.5px !important;
}

/* Item #9: Tăng chiều cao khung ô lọc lên 1.5 lần (~45px - 46px) */
.dmx-btn-filter,
.dmx-criteria-btn,
.dmx-dropdown-btn,
.dmx-chip {
  min-height: 45px !important;
  height: 45px !important;
  padding: 0 15px !important;
  font-size: 13.5px !important;
  border-radius: 6px !important;
}
.dmx-brand-pill {
  width: 120px !important;
  min-width: 120px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* Item #14: Chống tự động zoom làm vỡ khung trang khi bấm ô tìm kiếm / input trên Mobile */
@media (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
  }
  .search-box,
  .header-search-input,
  header.site input[type="text"],
  header.site input[type="search"],
  input[type="text"],
  input[type="search"],
  input[type="number"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
  .search-wrap .search-box {
    height: 42px !important;
    padding: 0 44px 0 14px !important;
    border-radius: 6px !important;
  }
}

/* Winline Interactive Tooltip with Image */
.winline-has-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-bottom: 1.5px dashed #0284c7;
    cursor: help;
    padding: 0 2px;
}
.winline-has-tooltip .winline-help-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: #0284c7;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    line-height: 1;
    user-select: none;
    transition: transform 0.2s, background-color 0.2s;
}
.winline-has-tooltip:hover .winline-help-badge {
    transform: scale(1.15);
    background-color: #0369a1;
}
.winline-has-tooltip .winline-tooltip-popover {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 290px;
    max-width: 90vw;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
    padding: 12px;
    z-index: 99999;
    text-align: left;
    white-space: normal;
}
.winline-has-tooltip .winline-tooltip-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}
.winline-has-tooltip .winline-tooltip-popover::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -7px;
    border-width: 7px;
    border-style: solid;
    border-color: #cbd5e1 transparent transparent transparent;
}
.winline-has-tooltip:hover .winline-tooltip-popover {
    display: block !important;
}

/* ==========================================================================
   WINLINE UNIFIED Z-INDEX HIERARCHY & MOBILE VIEWPORT PLACEMENT SYSTEM
   --------------------------------------------------------------------------
   Layer 1 (1 - 100)       : In-page content, cards, badges, sticky table cols
   Layer 2 (1050)          : In-page filter dropdown popovers (.dmx-popover)
   Layer 3 (9000)          : Back-to-top button (#backToTopBtn)
   Layer 4 (9500)          : Mobile bottom navigation bar (.mobile-bottom-bar)
   Layer 5 (9600)          : Floating Contact Widget launcher (desktop idle)
   Layer 6 (9800 - 9890)   : Sticky Header, Search suggest & Desktop Mega Menus
   Layer 7 (1000100)       : Drawers & Sheets (#mobileNavDrawer, #mobileCatSheet,
                             #smartSearchModal, #cart-drawer, #quickview-modal)
   Layer 8 (1000200)       : Floating Contact Widget when active (.fcw-card)
   Layer 9 (1000300)       : Full Filter Modal (#dmxFilterModal)
   Layer 10 (1000500)      : Form & Action Modals (#quoteModal, #zaloModal,
                             #shareModal, #customerInfoModal, #rfqModal, etc.)
   Layer 11 (1000600)      : Mobile Interactive Tooltip Popover
   Layer 12 (1000800)      : Success Notification Modal (#winlineSuccessModal)
   Layer 13 (1001000)      : All Toast Notifications (#winlineToast, #skuToast,
                             #toast-container) — always on top & above bottom bar
   ========================================================================== */

/* Layer 2: In-page filter popovers (above cards/tables, below sticky header) */
.dmx-dropdown-wrap.open {
  z-index: 1050 !important;
}
.dmx-popover {
  z-index: 1050 !important;
}

/* Layer 3: Back-to-top button */
.back-to-top-btn,
#backToTopBtn {
  z-index: 9000 !important;
}

/* Layer 4: Mobile Bottom Bar */
.mobile-bottom-bar {
  z-index: 9500 !important;
}

/* Layer 5: Floating Contact Widget (idle) */
.floating-contact-widget {
  z-index: 9600 !important;
}

/* Layer 6: Sticky Header, Smart Search Popover & Desktop Mega Menus */
.site-header-sticky-wrapper {
  z-index: 9800 !important;
}
nav.catnav {
  z-index: 9805 !important;
}
header.site {
  z-index: 9810 !important;
}
.search-wrap {
  z-index: 9820 !important;
}
.nav-drop,
.nav-demand-drop {
  z-index: 9830 !important;
}
.wn-smart-search-popover {
  z-index: 9850 !important;
}
.nav-panel,
.cat-flyout-panel,
.demand-compact-menu,
.brand-dropdown-panel,
.nav-mega-panel,
.brand-mega-panel {
  z-index: 9860 !important;
}

/* Layer 7: Drawers, Category Sheet, Smart Search Modal, Cart Drawer, QuickView */
#mobileNavDrawer,
.mobile-drawer-backdrop,
#mobileCatSheet,
.mobile-cat-sheet-overlay,
#smartSearchModal,
.smart-search-overlay,
#cart-drawer,
#quickview-modal {
  z-index: 1000100 !important;
}
.mobile-drawer-panel {
  z-index: 1000101 !important;
}

/* Layer 8: Floating Contact Widget (when active/open) */
.floating-contact-widget.active {
  z-index: 1000200 !important;
}
.floating-contact-widget .fcw-backdrop {
  z-index: 1000200 !important;
}
.floating-contact-widget .fcw-card {
  z-index: 1000201 !important;
}

/* Layer 9: Full Filter Modal (#dmxFilterModal) */
#dmxFilterModal,
.dmx-modal-backdrop {
  z-index: 1000300 !important;
}

/* Layer 10: Form & Action Modals */
.modal-overlay,
#quoteModal,
.calc-modal-backdrop,
#zaloModal,
#shareModal,
.modal-backdrop,
#customerInfoModal,
#rfqModal,
#holidayNoticeModal {
  z-index: 1000500 !important;
}

/* Layer 12: Success Notification Modal */
#winlineSuccessModal {
  z-index: 1000800 !important;
}

/* Layer 13: All Toast Notifications */
.winline-toast,
#winlineToast,
#skuToast,
#toast-container {
  z-index: 1001000 !important;
}
#skuToast {
  pointer-events: none !important;
}

/* ==========================================================================
   MOBILE VIEWPORT PLACEMENT & ANTI-OVERLAP RULES (@media max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Toast Notifications: Positioned cleanly above .mobile-bottom-bar (66px) */
  .winline-toast,
  #winlineToast,
  #skuToast {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    right: auto !important;
    max-width: calc(100vw - 24px) !important;
    width: max-content !important;
    box-sizing: border-box !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    justify-content: center !important;
  }

  #toast-container {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    right: 12px !important;
    align-items: center !important;
  }
  #toast-container > div {
    max-width: 100% !important;
    width: auto !important;
  }

  /* 2. Back-to-top button: Above .mobile-bottom-bar on the right */
  .back-to-top-btn,
  #backToTopBtn {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
  }

  /* 3. Active Floating Contact Card: Above .mobile-bottom-bar, never clipped */
  .floating-contact-widget .fcw-card,
  .floating-contact-widget.pos-left .fcw-card,
  .floating-contact-widget.pos-right .fcw-card {
    position: fixed !important;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto !important;
    transform: translateY(16px) scale(0.96) !important;
    transform-origin: bottom center !important;
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
  .floating-contact-widget.active .fcw-card,
  .floating-contact-widget.pos-left.active .fcw-card,
  .floating-contact-widget.pos-right.active .fcw-card {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* 4. Filter Modal (#dmxFilterModal): Safe viewport fit and internal scroll */
  #dmxFilterModal,
  .dmx-modal-backdrop {
    padding: 12px !important;
  }
  #dmxFilterModal .dmx-modal-card,
  #dmxFilterModal .dmx-modal-dialog {
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)) !important;
    width: 100% !important;
    margin: auto !important;
  }
  #dmxFilterModal .dmx-modal-body {
    max-height: calc(100dvh - 150px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 5. Form & Action Modals: Safe height & internal scrolling on small screens */
  .modal-overlay,
  .calc-modal-backdrop,
  .modal-backdrop {
    padding: 12px !important;
  }
  .modal-overlay .modal-box,
  .calc-modal-backdrop .calc-modal-box,
  .modal-backdrop .modal-box {
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 6. Interactive Tooltip Popover: Fixed center-bottom above bottom bar so it never clips off left/right screen edges */
  .winline-has-tooltip .winline-tooltip-popover {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: min(320px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    z-index: 1000600 !important;
  }
  .winline-has-tooltip .winline-tooltip-popover::before,
  .winline-has-tooltip .winline-tooltip-popover::after {
    display: none !important;
  }
}
