/**
 * MHome Global Figma Skin
 * Hệ thống giao diện hiện đại đồng bộ từ Figma cho toàn bộ website
 */

@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,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --mhome-navy: #1B30B0;
  --mhome-cobalt: #3D5FE0;
  --mhome-blue-light: #4B7AFF;
  --mhome-blue-pale: #EEF2FF;
  --mhome-blue-mid: #2646D0;
  --mhome-slate-900: #0f172a;
  --mhome-slate-950: #020617;
  --mhome-gradient: linear-gradient(135deg, #1B30B0 0%, #3D5FE0 50%, #4B7AFF 100%);
  --mhome-gradient-hover: linear-gradient(135deg, #152594 0%, #2e4bc0 50%, #3a67e8 100%);
  --mhome-gradient-subtle: linear-gradient(135deg, rgba(27, 48, 176, 0.06) 0%, rgba(75, 122, 255, 0.08) 100%);
  --font-display: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tắt triệt để Preloader xoay vòng bị treo của Grogin */
.site-loading,
.site-loading .preloading,
.site-loading .circular {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -99999 !important;
}

/* Ẩn triệt để drawer cũ của Grogin khi ở giao diện MHome để tránh bị kẹt mở đè lên màn hình */
#menu-drawer,
.site-drawer,
.site-menu-drawer,
.site-categories-drawer,
.site-search-drawer,
.site-drawer-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -99999 !important;
  position: fixed !important;
  top: -99999px !important;
  left: -99999px !important;
  width: 0 !important;
  height: 0 !important;
}

/* ==========================================================================
   1. GLOBAL TYPOGRAPHY & BASE RESET
   ========================================================================== */
body, 
p, 
span, 
a, 
input, 
select, 
textarea, 
button, 
.site-menu, 
.widget, 
.woocommerce {
  font-family: var(--font-sans) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .heading-serif, .entry-title, .product-title {
  font-family: var(--font-display) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Brand Utilities */
.brand-gradient {
  background: var(--mhome-gradient) !important;
}

.brand-gradient-text {
  background: linear-gradient(135deg, #1B30B0 0%, #4B7AFF 100%);
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ==========================================================================
   2. GLOBAL BUTTONS (BO GÓC 12PX-14PX, PHỦ GRADIENT, HOVER NHÚN)
   ========================================================================== */
button:not(.close-popup):not(.unset):not(.drawer-toggle):not(.mhome-mobile-toggle):not(#mhome-menu-close):not(.mhome-header-search button),
input[type="submit"],
.button:not(.unset),
.btn:not(.unset),
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.btn-primary,
.quick-button.brand-btn {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  border-radius: 14px !important;
  border: none !important;
  padding: 12px 24px !important;
  background: var(--mhome-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -4px rgba(61, 95, 224, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.btn-primary:hover {
  background: var(--mhome-gradient-hover) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 25px -4px rgba(61, 95, 224, 0.45) !important;
}

/* Outline Buttons */
.btn-outline-primary,
.button.outline {
  background: transparent !important;
  color: var(--mhome-navy) !important;
  border: 1.5px solid var(--mhome-cobalt) !important;
  box-shadow: none !important;
}

.btn-outline-primary:hover,
.button.outline:hover {
  background: var(--mhome-blue-pale) !important;
  color: var(--mhome-navy) !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   3. GLOBAL INPUTS & FORMS (BO GÓC TRÒN HIỆN ĐẠI)
   ========================================================================== */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select,
.form-control {
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  padding: 10px 16px !important;
  font-family: var(--font-sans) !important;
  transition: all 0.2s ease !important;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: var(--mhome-cobalt) !important;
  box-shadow: 0 0 0 3px rgba(61, 95, 224, 0.15) !important;
  outline: none !important;
}

/* ==========================================================================
   4. FIGMA HEADER (LIGHT GLASSMORPHISM, CLEAN & ELEGANT THEME FIGMA)
   ========================================================================== */
.mhome-figma-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.mhome-figma-header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

.mhome-header-inner {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 3vw, 48px) !important;
  height: 74px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(12px, 2vw, 28px) !important;
}

/* Logo */
.mhome-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.mhome-header-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.mhome-brand-titles {
  display: flex;
  flex-direction: column;
}

.mhome-brand-title {
  font-family: var(--font-sans) !important;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  white-space: nowrap !important;
}

.mhome-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap !important;
}

/* Main Navigation */
.mhome-header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .mhome-header-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
}

.mhome-header-nav ul {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(6px, 1.1vw, 20px) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .mhome-header-inner {
    padding: 0 16px;
    gap: 10px;
  }
  .mhome-header-nav ul {
    gap: 8px;
  }
  .mhome-header-nav ul li a {
    font-size: 13px !important;
    padding: 6px 8px !important;
  }
  .mhome-brand-title {
    font-size: 16px;
  }
  .mhome-brand-sub {
    font-size: 10px;
  }
}

@media (min-width: 1280px) {
  .mhome-header-nav ul {
    gap: 20px;
  }
}

.mhome-header-nav ul li {
  position: relative;
  list-style: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.mhome-header-nav ul li a {
  font-size: 14.5px;
  font-weight: 500;
  color: #334155 !important;
  text-decoration: none !important;
  padding: 7px 12px;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap !important;
}

.mhome-header-nav ul li a:hover,
.mhome-header-nav ul li.current-menu-item > a,
.mhome-header-nav ul li.current-menu-ancestor > a {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.06) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
}

/* Menu cha có mục con */
.mhome-header-nav ul li.menu-item-has-children > a {
  padding-right: 24px !important;
  position: relative !important;
}

.mhome-header-nav ul li.menu-item-has-children > a::after {
  content: '' !important;
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  width: 6px !important;
  height: 6px !important;
  border-right: 1.8px solid #64748b !important;
  border-bottom: 1.8px solid #64748b !important;
  transform: translateY(-68%) rotate(45deg) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
  pointer-events: none !important;
}

.mhome-header-nav ul li.menu-item-has-children:hover > a {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.06) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
}

.mhome-header-nav ul li.menu-item-has-children:hover > a::after {
  transform: translateY(-28%) rotate(-135deg) !important;
  border-color: #2563eb !important;
}

/* ==========================================================================
   SUBMENU (FIGMA CLEAN WHITE CARD)
   ========================================================================== */
.mhome-header-nav ul li ul.sub-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  min-width: 320px !important;
  max-width: 420px !important;
  width: max-content !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  padding: 8px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  z-index: 99999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(12px) !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease !important;
  pointer-events: none !important;
}

/* Cầu hover nối liền chống mất hover */
.mhome-header-nav ul li ul.sub-menu::before {
  content: '' !important;
  position: absolute !important;
  top: -14px !important;
  left: 0 !important;
  right: 0 !important;
  height: 14px !important;
  background: transparent !important;
}

.mhome-header-nav ul li:hover > ul.sub-menu,
.mhome-header-nav ul li:focus-within > ul.sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.mhome-header-nav ul li ul.sub-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: block !important;
  flex: none !important;
}

.mhome-header-nav ul li ul.sub-menu li a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: left !important;
}

.mhome-header-nav ul li ul.sub-menu li a:hover,
.mhome-header-nav ul li ul.sub-menu li.current-menu-item > a {
  background: rgba(37, 99, 235, 0.06) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
  color: #2563eb !important;
  transform: translateX(4px) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08) !important;
}

/* Khóa kích thước hình ảnh & icon trong submenu */
.mhome-header-nav ul li ul.sub-menu li a img,
.mhome-header-nav ul li ul.sub-menu li a svg,
.mhome-header-nav ul li ul.sub-menu li a i,
.mhome-header-nav ul li ul.sub-menu li a .menu-item-icon,
.mhome-header-nav ul li ul.sub-menu li a .klb-menu-icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 4px !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
}

.mhome-header-nav ul li ul.sub-menu li a:hover img,
.mhome-header-nav ul li ul.sub-menu li a:hover svg,
.mhome-header-nav ul li ul.sub-menu li a:hover i {
  transform: scale(1.08) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

.mhome-header-nav ul li ul.sub-menu li a span,
.mhome-header-nav ul li ul.sub-menu li a .menu-item-title,
.mhome-header-nav ul li ul.sub-menu li a .item-title {
  color: #0f172a !important;
  flex: 1 1 auto !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  transition: color 0.2s ease !important;
}

.mhome-header-nav ul li ul.sub-menu li a:hover span,
.mhome-header-nav ul li ul.sub-menu li a:hover .menu-item-title,
.mhome-header-nav ul li ul.sub-menu li a:hover .item-title {
  color: #2563eb !important;
}

/* Submenu cấp 3 */
.mhome-header-nav ul li ul.sub-menu li.menu-item-has-children > a::after {
  right: 12px !important;
  transform: translateY(-50%) rotate(-45deg) !important;
}

.mhome-header-nav ul li ul.sub-menu li.menu-item-has-children:hover > a::after {
  transform: translateY(-50%) rotate(135deg) !important;
  border-color: #2563eb !important;
}

.mhome-header-nav ul li ul.sub-menu li ul.sub-menu {
  top: -6px !important;
  left: calc(100% + 8px) !important;
}

.mhome-header-nav ul li ul.sub-menu li ul.sub-menu::before {
  top: 0 !important;
  left: -12px !important;
  width: 12px !important;
  height: 100% !important;
}

/* Search Bar in Header */
.mhome-header-search {
  position: relative;
  width: 170px;
  display: none;
  flex-shrink: 0;
}

@media (min-width: 1366px) {
  .mhome-header-search {
    display: block;
    width: 200px;
  }
}

.mhome-header-search input {
  width: 100%;
  height: 40px;
  background: #f1f5f9 !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 0 36px 0 14px !important;
  font-size: 13px !important;
  color: #0f172a !important;
  transition: all 0.2s ease;
}

.mhome-header-search input:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.mhome-header-search input::placeholder {
  color: #94a3b8 !important;
}

.mhome-header-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50% !important;
  background: var(--mhome-gradient) !important;
  color: #fff !important;
  border: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* Header Right Actions */
.mhome-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mhome-hotline-btn {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #0f172a !important;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap !important;
  transition: all 0.2s ease;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 6px 14px;
  border-radius: 9999px;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .mhome-hotline-btn {
    display: flex;
  }
}

.mhome-hotline-btn:hover {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  transform: translateY(-1px);
}

.mhome-hotline-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* CTA Báo Giá Ngay */
.mhome-nav-cta,
a.button.mhome-nav-cta {
  height: 40px !important;
  padding: 0 20px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  background: var(--mhome-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(61, 95, 224, 0.4) !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.mhome-nav-cta:hover,
a.button.mhome-nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(61, 95, 224, 0.5) !important;
}

/* Cart Icon */
.mhome-nav-cart {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mhome-nav-cart:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.25);
}

.mhome-nav-cart .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Mobile Toggle (LOẠI BỎ HOÀN TOÀN CỤC XANH TRÊN MÁY TÍNH) */
.mhome-mobile-toggle,
button.mhome-mobile-toggle,
#mhome-menu-open {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
}

@media (max-width: 1023px) {
  .mhome-mobile-toggle,
  button.mhome-mobile-toggle,
  #mhome-menu-open {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer !important;
    color: #0f172a !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
  }
}

.mhome-mobile-toggle:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
}

/* ==========================================================================
   4. MOBILE DRAWER - CLEAN WHITE CARD (FIGMA MHOME MOBILE MENU)
   ========================================================================== */
.mhome-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.mhome-mobile-drawer.active {
  display: block;
}

.mhome-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mhome-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 20px 18px;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.mhome-drawer-panel .mhome-brand-title {
  color: #0f172a !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 17px !important;
  letter-spacing: -0.02em;
}

.mhome-drawer-panel .mhome-brand-sub {
  color: #2563eb !important;
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#mhome-menu-close {
  background: #f1f5f9 !important;
  border: none !important;
  color: #475569 !important;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 !important;
}

#mhome-menu-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Khống chế TOÀN BỘ hình ảnh / icon danh mục trong menu mobile */
.mhome-drawer-panel img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.mhome-drawer-panel i,
.mhome-drawer-panel [class^="klb-"],
.mhome-drawer-panel [class*=" klb-"] {
  font-size: 18px !important;
  width: 20px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #2563eb !important;
}

/* Menu Mobile Items - Căn trái liền mạch (Icon bên cạnh chữ) */
.mhome-drawer-panel nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.mhome-drawer-panel ul,
.mhome-drawer-panel .mhome-nav-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mhome-drawer-panel ul li,
.mhome-drawer-panel .mhome-nav-links li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mhome-drawer-panel ul li a,
.mhome-drawer-panel .mhome-nav-links li a,
.mhome-drawer-panel a:not(.mhome-drawer-hotline):not(.mhome-drawer-cta):not(#mhome-menu-close) {
  color: #0f172a !important;
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  border-bottom: none !important;
  background: transparent;
  transition: all 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  line-height: 1.4 !important;
}

.mhome-drawer-panel ul li a:hover,
.mhome-drawer-panel ul li a:active,
.mhome-drawer-panel .mhome-nav-links li a:hover,
.mhome-drawer-panel .mhome-nav-links li.current-menu-item > a,
.mhome-drawer-panel .mhome-nav-links li.current_page_item > a {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1B30B0 !important;
  font-weight: 700 !important;
}

/* Submenu xổ xuống trong Mobile Drawer */
.mhome-drawer-panel ul.sub-menu {
  list-style: none !important;
  padding: 4px 0 6px 10px !important;
  margin: 2px 0 6px 12px !important;
  border-left: 2px solid #e2e8f0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  width: calc(100% - 12px) !important;
  box-sizing: border-box !important;
}

.mhome-drawer-panel ul.sub-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

.mhome-drawer-panel ul.sub-menu li a {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

.mhome-drawer-panel ul.sub-menu li a img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
}

.mhome-drawer-panel ul.sub-menu li a:hover {
  background: #eff6ff !important;
  color: #1B30B0 !important;
  font-weight: 600 !important;
}

/* Hotline & CTA Bottom Drawer */
.mhome-drawer-hotline {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.mhome-drawer-hotline:hover {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #1B30B0 !important;
}

.mhome-drawer-hotline svg {
  color: #2563eb !important;
}

.mhome-drawer-cta {
  background: var(--mhome-gradient) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  text-align: center !important;
  text-decoration: none !important;
  display: block !important;
  box-shadow: 0 4px 14px rgba(27, 48, 176, 0.25) !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

.mhome-drawer-cta:hover {
  box-shadow: 0 6px 20px rgba(27, 48, 176, 0.35) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   5. FIGMA FOOTER (DARK SLATE 950, SILVER TYPOGRAPHY, 4 COLUMNS)
   ========================================================================== */
/* Ẩn triệt để footer gốc của theme Grogin khi dùng skin Figma */
.site-footer,
footer.site-footer,
.footer-widgets,
.footer-row.footer-widgets,
.footer-row.footer-newsletter {
  display: none !important;
}

.mhome-figma-footer {
  background: #020617 !important;
  color: #94a3b8 !important;
  padding: 64px 0 32px 0 !important;
  position: relative;
  font-family: var(--font-sans) !important;
}

.mhome-figma-footer a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.mhome-figma-footer a:hover {
  color: #60a5fa !important;
}

.mhome-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.mhome-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .mhome-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .mhome-footer-grid {
    grid-template-columns: 1.8fr 1.1fr 1.1fr 1.3fr !important;
    gap: 40px;
  }
}

.mhome-footer-col h4 {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  font-family: var(--font-sans) !important;
  letter-spacing: -0.01em;
}

.mhome-footer-col ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mhome-footer-col ul li {
  font-size: 14px;
  line-height: 1.6;
}

.mhome-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.mhome-footer-social a {
  font-size: 12px;
  font-weight: 600;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(30, 58, 138, 0.15);
}

.mhome-footer-social a:hover {
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  background: rgba(59, 130, 246, 0.3) !important;
}

.mhome-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   6. WOOCOMMERCE PRODUCT CARDS & BADGES (BENTO ROUNDED CARDS)
   ========================================================================== */
.woocommerce ul.products li.product,
.product-grid-item {
  border-radius: 20px !important;
  border: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce ul.products li.product:hover,
.product-grid-item:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 30px -8px rgba(15, 23, 42, 0.1) !important;
  border-color: #cbd5e1 !important;
}

.woocommerce span.onsale,
.badge.gradient-red {
  background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  padding: 4px 10px !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
}

.woocommerce .price,
.product-price {
  color: var(--mhome-navy) !important;
  font-weight: 700 !important;
}
