/**
 * COMPONENT CSS
 * Nơi lưu trữ:
 * 1. Quan hệ selector cha-con (.parent .child, .parent > .child)
 * 2. Ghép nhiều class (.className1.className2, .btn.btn-primary)
 * 3. Hover cha tác động con (.parent:hover .child)
 * 4. Background Gradient phức tạp, Glassmorphism, Box-shadow đa tầng
 * 5. Menu Dropdown đa cấp & Mobile Navigation Drawer
 * 6. WooCommerce Custom Overrides (Cart, Checkout, Single Product, Badges)
 */

/* ==========================================================================
   1. BACKGROUND GRADIENTS & SPECIAL EFFECTS
   ========================================================================== */
.bg-gradient-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bg-gradient-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.glass-header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* ==========================================================================
   2. NÚT BẤM VÀ MULTI-CLASS SELECTORS (.className1.className2)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  padding: 0.625rem 1.25rem;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  cursor: pointer;
  border: none; outline: none;
}

.btn.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn.btn-secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
}

.btn.btn-outline {
  background-color: transparent;
  border-color: var(--color-slate-300);
  color: var(--color-slate-700);
}

.btn.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-slate-50);
}

.btn.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   3. CARD SẢN PHẨM & HIỆU ỨNG HOVER CON (.parent:hover .child)
   ========================================================================== */
.product-card {
  border: 1px solid var(--color-slate-200);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

/* Hover cha tác động phóng to ảnh thumbnail con */
.product-card .thumbnail-wrapper img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .thumbnail-wrapper img {
  transform: scale(1.06);
}

/* Hover cha tác động hiện thanh nút hành động con */
.product-card .product-hover-actions {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.product-card:hover .product-hover-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   4. LOGO WEBSITE & TÙY BIẾN NHẬN DIỆN TRANG WEB (CUSTOM LOGO)
   ========================================================================== */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.custom-logo {
  max-height: 3rem; /* 48px */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-col-about .custom-logo {
  max-height: 2.75rem; /* 44px */
}

/* ==========================================================================
   5. NAVIGATION MENU PHONG CÁCH BRICKS BUILDER & SUBMENU ĐA CẤP
   ========================================================================== */
.site-navigation .nav-menu {
  position: relative;
}

.site-navigation .menu-item {
  position: relative;
}

.site-navigation .menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  color: var(--color-slate-700);
  transition: color 0.2s ease;
}

.site-navigation .menu-item > a:hover,
.site-navigation .menu-item.current-menu-item > a {
  color: var(--color-primary);
}

/* Submenu Dropdown hiển thị khi hover cha */
.site-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-slate-100);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}

.site-navigation .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-navigation .sub-menu .menu-item > a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  color: var(--color-slate-600);
}

.site-navigation .sub-menu .menu-item > a:hover {
  background-color: var(--color-slate-50);
  color: var(--color-primary);
}

/* Submenu cấp 2 (Nested) */
.site-navigation .sub-menu .menu-item-has-children > .sub-menu {
  top: 0;
  left: 100%;
}

/* ==========================================================================
   5. MOBILE DRAWER NAVIGATION
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background-color: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-drawer .sub-menu {
  display: none;
  padding-left: 1rem;
  border-left: 2px solid var(--color-slate-100);
  margin-top: 0.25rem;
}

.mobile-nav-drawer .menu-item.is-expanded > .sub-menu {
  display: block;
}

/* ==========================================================================
   6. WOOCOMMERCE CHUYÊN BIỆT (OVERRIDES)
   ========================================================================== */

/* Star Ratings */
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1.2em;
  line-height: 1.2;
  font-size: 0.875rem;
  width: 5.4em;
  font-family: star;
  color: var(--color-accent);
}

/* Form Fields Chung (Inputs, Labels, Select, Textarea) */
.woocommerce form .form-row {
  margin-bottom: 1.25rem;
  display: block;
}

.woocommerce form .form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-700);
  margin-bottom: 0.375rem;
}

.woocommerce form .form-row label .required {
  color: var(--color-danger);
  font-weight: 700;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-xl);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--color-slate-900);
  outline: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Select2 Container Overrides cho WooCommerce Dropdown */
.select2-container--default .select2-selection--single {
  height: 42px !important;
  background-color: var(--color-slate-50) !important;
  border: 1px solid var(--color-slate-300) !important;
  border-radius: var(--radius-xl) !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 0.5rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  right: 0.5rem !important;
}

/* Bảng Giỏ hàng Responsive trên Mobile */
@media (max-width: 767px) {
  .woocommerce-cart-form table.shop_table {
    display: block;
    width: 100%;
    border: none;
  }
  .woocommerce-cart-form table.shop_table thead {
    display: none;
  }
  .woocommerce-cart-form table.shop_table tbody,
  .woocommerce-cart-form table.shop_table tr {
    display: block;
    width: 100%;
  }
  .woocommerce-cart-form table.shop_table tr.cart_item {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-slate-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  .woocommerce-cart-form table.shop_table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border: none;
    border-bottom: 1px dashed var(--color-slate-100);
  }
  .woocommerce-cart-form table.shop_table td:last-child {
    border-bottom: none;
  }
  .woocommerce-cart-form table.shop_table td::before {
    content: attr(data-title);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-slate-500);
  }
  .woocommerce-cart-form table.shop_table td.product-thumbnail {
    justify-content: center;
    padding-bottom: 0.75rem;
  }
  .woocommerce-cart-form table.shop_table td.product-thumbnail::before {
    display: none;
  }
  .woocommerce-cart-form table.shop_table td.product-remove {
    justify-content: flex-end;
  }
  .woocommerce-cart-form table.shop_table td.product-remove::before {
    display: none;
  }
}

/* Nút Tiến Hành Thanh Toán & Thao Tác Giỏ Hàng */
.wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Khung Mã Giảm Giá Checkout Toggle */
.woocommerce-form-coupon-toggle .woocommerce-info {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-700);
}

.woocommerce-form-coupon-toggle .showcoupon {
  color: var(--color-primary);
  font-weight: 600;
}

form.checkout_coupon {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Form Thanh toán WooCommerce 2 Cột */
@media (min-width: 1024px) {
  form.woocommerce-checkout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
    align-items: start;
  }
}

/* Bảng Đơn Hàng Tại Checkout (#order_review) */
#order_review table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

#order_review table.shop_table th,
#order_review table.shop_table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-slate-100);
  font-size: 0.875rem;
}

#order_review table.shop_table tr.order-total th,
#order_review table.shop_table tr.order-total td {
  border-top: 2px solid var(--color-slate-200);
  border-bottom: none;
  padding-top: 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-slate-900);
}

#order_review table.shop_table tr.order-total td strong {
  color: var(--color-primary);
}

/* Phương Thức Thanh Toán (Payment Gateways) */
ul.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

ul.wc_payment_methods li.wc_payment_method {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 1rem;
  background-color: var(--color-slate-50);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

ul.wc_payment_methods li.wc_payment_method:hover,
ul.wc_payment_methods li.wc_payment_method input[type="radio"]:checked ~ label {
  border-color: var(--color-primary);
}

ul.wc_payment_methods li.wc_payment_method label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-slate-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

ul.wc_payment_methods div.payment_box {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-slate-600);
  border-left: 3px solid var(--color-primary);
}

/* Nút Đặt Hàng (#place_order) */
#order_review #place_order {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

#order_review #place_order:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* Badges Thông Báo (Notices & Alerts) */
.woocommerce-message, 
.woocommerce-error, 
.woocommerce-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
}

.woocommerce-message {
  background-color: #ecfdf5;
  color: #065f46;
  border-left: 4px solid var(--color-success);
}

.woocommerce-message a.button {
  background: #ffffff;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
}

.woocommerce-message a.button:hover {
  background: #065f46;
  color: #ffffff;
}

.woocommerce-error {
  background-color: #fef2f2;
  color: #991b1b;
  border-left: 4px solid var(--color-danger);
}

.woocommerce-info {
  background-color: #eff6ff;
  color: #1e40af;
  border-left: 4px solid var(--color-primary);
}

/* My Account Bảng Đơn Hàng */
table.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
}

table.woocommerce-orders-table th {
  background-color: var(--color-slate-50);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-slate-500);
  padding: 0.75rem 1rem;
}

table.woocommerce-orders-table td {
  padding: 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-slate-100);
}

table.woocommerce-orders-table a.woocommerce-button {
  background-color: var(--color-slate-100);
  color: var(--color-slate-800);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
}

table.woocommerce-orders-table a.woocommerce-button:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   7. SWIPER SLIDER CUSTOM STYLING
   ========================================================================== */
.swiper {
  width: 100%;
  height: auto;
}

.hero-swiper {
  width: 100%;
  height: auto;
  position: relative;
}

.hero-swiper .swiper-slide {
  height: auto;
  min-height: 320px;
}

@media (min-width: 640px) {
  .hero-swiper .swiper-slide {
    min-height: 380px;
  }
}

/* Swiper Navigation Buttons tinh chỉnh hiện đại */
.swiper-button-next,
.swiper-button-prev {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-slate-800);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-slate-100);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Swiper Pagination Bullets */
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--color-slate-400);
  opacity: 0.5;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.swiper-pagination-bullet-active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 1;
}

/* Hero Slider Specifics */
.hero-swiper .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.6;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #ffffff;
  opacity: 1;
}

/* ==========================================================================
   8. GSAP ANIMATION HELPERS (CHỐNG FOUC)
   ========================================================================== */
.gsap-reveal {
  opacity: 0;
  will-change: transform, opacity;
}

/* ==========================================================================
   9. ICON & MULTILINE TEXT ALIGNMENT HELPERS
   ========================================================================== */
.icon-first-line,
.icon-box-horizontal {
  display: flex;
  align-items: flex-start;
}

.icon-first-line > svg,
.icon-first-line > .icon,
.icon-box-horizontal > svg,
.icon-box-horizontal > .icon,
.icon-box-horizontal > .icon-box {
  flex-shrink: 0;
  margin-top: 0.125rem; /* Căn ngang chuẩn xác với cap-height của dòng chữ đầu tiên */
}

/* ==========================================================================
   10. ACCESSIBILITY ENHANCEMENTS (A11Y 100 PTS)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 9999;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  position: fixed;
  z-index: 99999;
}

/* Tôn trọng người dùng bật chế độ giảm hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   11. COMMERCE FLOW STEPPER (CART & CHECKOUT)
   ========================================================================== */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-slate-400);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.checkout-step.is-active {
  color: var(--color-primary);
  font-weight: 700;
}
.checkout-step.is-completed {
  color: var(--color-slate-700);
}
.checkout-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  background-color: var(--color-slate-100);
  color: var(--color-slate-500);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.checkout-step.is-active .checkout-step-badge {
  background-color: var(--color-primary);
  color: #ffffff;
}
.checkout-step.is-completed .checkout-step-badge {
  background-color: var(--color-success);
  color: #ffffff;
}
.checkout-step-divider {
  width: 2.5rem;
  height: 2px;
  background-color: var(--color-slate-200);
  flex-shrink: 0;
}
.checkout-step-divider.is-completed {
  background-color: var(--color-success);
}

/* ==========================================================================
   12. TRACKING & POLICY TOC COMPONENT STYLING
   ========================================================================== */
.policy-toc {
  position: sticky;
  top: 6rem;
}
.policy-toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-slate-600);
  border-left: 2px solid transparent;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.policy-toc-link:hover,
.policy-toc-link.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background-color: var(--color-slate-50);
}
.tracking-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   13. GTRANSLATE INTEGRATION & STYLING
   ========================================================================== */
.acquythanhdat-gtranslate-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-family: inherit;
}

.acquythanhdat-gtranslate-header {
  font-size: 0.8125rem;
}

.acquythanhdat-gtranslate-topbar {
  font-size: 0.75rem;
}

.acquythanhdat-gtranslate-drawer {
  width: 100%;
}

/* Custom styling for GTranslate select element */
.acquythanhdat-gtranslate-wrapper select,
.acquythanhdat-gtranslate-wrapper .notranslate select,
.acquythanhdat-gtranslate-wrapper .goog-te-combo {
  background-color: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 0.375rem 1.75rem 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-slate-700);
  cursor: pointer;
  outline: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  line-height: 1.4;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.acquythanhdat-gtranslate-wrapper select:hover,
.acquythanhdat-gtranslate-wrapper select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.acquythanhdat-gtranslate-topbar select {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

.acquythanhdat-gtranslate-topbar select option {
  color: var(--color-slate-800);
  background-color: #ffffff;
}

.acquythanhdat-gtranslate-drawer select {
  width: 100%;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 0.875rem;
}

/* Custom override for GTranslate nice dropdown with flags */
.acquythanhdat-gtranslate-wrapper .gt_switcher {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-slate-200);
  background-color: #ffffff;
}

.acquythanhdat-gtranslate-wrapper .gt_switcher .gt_selected {
  background: transparent !important;
  color: var(--color-slate-700) !important;
  font-weight: 500;
  font-size: 0.8125rem;
  border-radius: var(--radius-lg);
}

.acquythanhdat-gtranslate-drawer .gt_switcher {
  width: 100% !important;
}

/* Fallback preview indicator when plugin is not yet active */
.acquythanhdat-gtranslate-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  color: var(--color-slate-600);
  background-color: #ffffff;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.acquythanhdat-gtranslate-placeholder:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.acquythanhdat-gtranslate-topbar .acquythanhdat-gtranslate-placeholder {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.acquythanhdat-gtranslate-topbar .acquythanhdat-gtranslate-placeholder svg {
  color: #ffffff;
}

.acquythanhdat-gtranslate-topbar .acquythanhdat-gtranslate-placeholder span {
  color: #ffffff;
}

.acquythanhdat-gtranslate-drawer .acquythanhdat-gtranslate-placeholder {
  width: 100%;
  justify-content: center;
  padding: 0.625rem 1rem;
}


/* ==========================================================================
   11. THƯƠNG HIỆU THANH DAT BATTERIES - SPECIALIZED AUTOMOTIVE & RESCUE COMPONENTS
   ========================================================================== */

/* Topbar & Header Search */
.header-search-form {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.header-search-input {
  width: 100%;
  padding: 0.625rem 2.75rem 0.625rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-slate-300);
  background-color: #ffffff;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15);
}

.header-search-btn {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.header-search-btn:hover {
  background-color: var(--color-primary-hover);
}

/* Khối Hotline Cứu Hộ 24/7 */
.emergency-hotline-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: #f0f5fc;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.emergency-hotline-badge:hover {
  background-color: #ffe4e6;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.12);
}

.hotline-pulse-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.hotline-pulse-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid var(--color-primary);
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  opacity: 0.6;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Nút Danh Mục Sản Phẩm (Category Megamenu Trigger) */
.category-dropdown-trigger {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
}

.category-dropdown-trigger:hover {
  background-color: var(--color-primary-hover);
}

/* Bảng Thông Số Kỹ Thuật Ắc Quy (Battery Specs Table) */
.battery-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.battery-specs-table th,
.battery-specs-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-slate-200);
}

.battery-specs-table th {
  background-color: var(--color-slate-50);
  color: var(--color-slate-700);
  font-weight: 600;
  width: 38%;
  text-align: left;
}

.battery-specs-table td {
  color: var(--color-slate-900);
  font-weight: 500;
}

.battery-specs-table tr:hover td {
  background-color: #f0f5fc;
}

/* Giá Kép: Giá Mua Mới vs Giá Thu Cũ Đổi Mới */
.dual-price-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-regular-sale {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-exchange-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
  background-color: #f0fdf4;
  border: 1px dashed #86efac;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
}

/* Quy Trình Cứu Hộ 4 Bước (Rescue Step Cards) */
.rescue-step-card {
  position: relative;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.rescue-step-card:hover {
  transform: translateY(-4px);
  border-color: #fca5a5;
  box-shadow: 0 12px 24px -4px rgba(220, 20, 60, 0.12);
}

.rescue-step-number {
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Nút Gọi & Zalo Nổi Khẩn Cấp (Floating Rescue Actions) */
.floating-rescue-group {
  position: fixed;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-btn-phone {
  background: linear-gradient(135deg, #083366 0%, #b91c1c 100%);
  color: #ffffff;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.4);
  position: relative;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-btn-phone:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(220, 20, 60, 0.55);
}

.floating-btn-phone::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid var(--color-primary);
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  opacity: 0.6;
}

.floating-btn-zalo {
  background: #0068ff;
  color: #ffffff;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  box-shadow: 0 8px 20px rgba(0, 104, 255, 0.35);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-btn-zalo:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 104, 255, 0.5);
}

/* ==========================================================================
   BUTTON SIZES & PROSE RICH TEXT
   ========================================================================== */
.btn-md {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
}

.button-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.button-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
}

.button-secondary {
  background-color: var(--color-slate-100);
  color: var(--color-slate-800);
  border: 1px solid var(--color-slate-200);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.button-secondary:hover {
  background-color: var(--color-slate-200);
  color: var(--color-slate-900);
}

.button-hero {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Prose Typography for Article Content */
.prose {
  color: var(--color-slate-700);
  max-width: 100%;
}
.prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
  line-height: 1.75;
}
.prose h2 {
  color: var(--color-slate-900);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.prose h3 {
  color: var(--color-slate-900);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.prose ul, .prose ol {
  margin-top: 0;
  margin-bottom: 1.25em;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose img {
  border-radius: var(--radius-lg);
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
}
.prose a:hover {
  color: var(--color-primary-hover);
}

.top-announcement-bar { position: relative; z-index: 40; }

/* ==========================================================================
   VERTICAL CATEGORY MENU (THANH DAT BATTERIES)
   ========================================================================== */
.category-megamenu-trigger {
  position: relative;
}
.vertical-category-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-top: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  z-index: 50;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* Hiển thị vertical menu khi hover chuột HOẶC khi bấm nút (.is-open) HOẶC focus-within */
.category-megamenu-trigger:hover .vertical-category-menu,
.category-megamenu-trigger.is-open .vertical-category-menu,
.category-megamenu-trigger:focus-within .vertical-category-menu {
  display: block;
}

/* Hiệu ứng xoay mũi tên khi mở menu */
.category-megamenu-trigger:hover .category-arrow-icon,
.category-megamenu-trigger.is-open .category-arrow-icon {
  transform: rotate(180deg);
}

/* Group hover child text color modifiers */
.group:hover .group-hover\:text-\[\#028cee\] { color: #028cee; }
.group:hover .group-hover\:text-\[\#dc2626\] { color: #dc2626; }


/* ==========================================================================
   GRADIENT BACKGROUNDS & BRAND STYLING (Thanh Dat Batteries Since 1992)
   ========================================================================== */
body {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 250px, #ffffff 500px, #f8fafc 100%);
}

.topbar-gradient {
    background: linear-gradient(90deg, #021124 0%, #041a38 50%, #083366 100%);
}

.nav-gradient {
    background: linear-gradient(90deg, #041a38 0%, #083366 50%, #0a4482 100%);
    border-bottom: 2px solid #f59e0b;
}

.category-menu-trigger-gradient {
    background: linear-gradient(180deg, #021124 0%, #041a38 100%);
}

.btn-search-gradient {
    background: linear-gradient(135deg, #083366 0%, #028cee 100%);
    transition: all 0.25s ease;
}
.btn-search-gradient:hover {
    background: linear-gradient(135deg, #041a38 0%, #083366 100%);
}

.section-rescue-gradient {
    background: linear-gradient(135deg, #021124 0%, #083366 60%, #041a38 100%);
}

.flashsale-header-gradient {
    background: linear-gradient(145deg, #083366 0%, #041a38 60%, #028cee 100%);
}

.btn-rescue-gradient {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
}
.btn-rescue-gradient:hover {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
}

/* FLOATING CTA DOCK (Góc dưới bên phải) */
.floating-cta-dock {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.floating-cta-btn {
    border: none;
    outline: none;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.floating-cta-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.floating-cta-phone {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.floating-cta-zalo {
    background: linear-gradient(135deg, #0056cc 0%, #0068ff 100%);
}

.floating-cta-messenger {
    background: linear-gradient(135deg, #00B2FE 0%, #006AFF 50%, #9013FE 100%);
}

.floating-cta-top {
    background: linear-gradient(135deg, #041a38 0%, #083366 100%);
}

/* Group hover opacity and text decoration */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:underline { text-decoration-line: underline; }


/* Triệt tiêu hoàn toàn border 2 màu mặc định của trình duyệt trên mọi button */
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-search-gradient,
.btn-rescue-gradient,
.floating-cta-btn {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none;
}

.floating-cta-btn {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
}
.floating-cta-btn:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important;
}


/* ==========================================================================
   HEADER TOP NAV MENU (Bricks Builder Style)
   ========================================================================== */
.header-top-nav .header-top-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-top-nav .header-top-menu li {
  display: inline-flex;
  align-items: center;
}

.header-top-nav .header-top-menu li a {
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-top-nav .header-top-menu li a:hover,
.header-top-nav .header-top-menu li.current-menu-item a {
  color: #ffffff;
}

@media (min-width: 640px) {
  .header-top-nav .header-top-menu {
    gap: 1rem;
  }
}


/* ==========================================================================
   HEADER SEARCH BAR & PERFECT CENTERED SEARCH BUTTON
   ========================================================================== */
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.header-search-form input[type="search"] {
  height: 2.75rem !important; /* 44px */
  line-height: 2.75rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

.header-search-form .search-submit-btn {
  position: absolute;
  right: 0.375rem; /* 6px */
  top: 50%;
  transform: translateY(-50%);
  width: 2rem; /* 32px */
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  cursor: pointer;
  box-sizing: border-box;
}

/* ==========================================================================
   MAIN DESKTOP NAVIGATION (MENU CHÍNH - BRICKS BUILDER STYLE)
   ========================================================================== */
.main-navigation {
  overflow: visible !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main-navigation::-webkit-scrollbar {
  display: none;
}

.main-navigation .nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-between;
}

.main-navigation .nav-menu > .menu-item {
  position: relative;
  flex-shrink: 0;
}

.main-navigation .nav-menu > .menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.875rem 0.45rem;
  color: #ffffff;
  font-size: 0.8125rem; /* 13px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .main-navigation .nav-menu > .menu-item > a {
    padding: 0.875rem 0.65rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 1440px) {
  .main-navigation .nav-menu > .menu-item > a {
    padding: 0.875rem 0.85rem;
    font-size: 0.875rem;
  }
}

.main-navigation .nav-menu > .menu-item:hover > a,
.main-navigation .nav-menu > .menu-item.current-menu-item > a {
  background-color: #052042;
  color: #ffffff;
}

/* Dropdown Submenu */
.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  background-color: #ffffff;
  color: #1e293b;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 0.25rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 50;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.75rem;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu .menu-item > a {
  display: block;
  padding: 0.625rem 1rem;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: normal;
}

.main-navigation .sub-menu .menu-item:last-child > a {
  border-bottom: none;
}

.main-navigation .sub-menu .menu-item > a:hover {
  background-color: #f8fafc;
  color: #083366;
}

.main-navigation .sub-menu .menu-item-has-children > .sub-menu {
  top: 0;
  left: 100%;
  border-radius: 0.5rem;
}

/* ==========================================================================
   STICKY HEADER & SLIDE DOWN ANIMATION PAST 200PX
   ========================================================================== */
.sticky-header-placeholder {
  display: none;
}

.site-header.is-sticky .sticky-header-placeholder {
  display: block;
}

.site-header.is-sticky .sticky-header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  animation: headerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-header.is-sticky .mid-header {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

@keyframes headerSlideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   MINI CART BADGE POSITIONING (Căn chuẩn số lượng ở góc trên bên phải xe đẩy)
   ========================================================================== */
.cart-trigger {
  position: relative;
}

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count-badge {
  position: absolute !important;
  top: -6px !important;
  right: -8px !important;
  min-width: 1.125rem; /* 18px */
  height: 1.125rem;    /* 18px */
  padding: 0 3px;
  border-radius: 9999px;
  background-color: #083366 !important;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 900;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}


/* Triệt tiêu scrollbar trên toàn bộ thanh điều hướng Desktop */
.sub-navbar,
.sub-navbar .container,
.main-navigation,
.main-navigation .nav-menu {
  overflow: visible !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.sub-navbar::-webkit-scrollbar,
.sub-navbar .container::-webkit-scrollbar,
.main-navigation::-webkit-scrollbar,
.main-navigation .nav-menu::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
