/**
 * 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 & ACCORDION
   ========================================================================== */
.mobile-drawer-backdrop,
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.is-open .mobile-drawer-backdrop,
.mobile-nav-backdrop.is-active {
  opacity: 1;
}

.mobile-drawer-panel,
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background-color: #ffffff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s 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-drawer.is-open .mobile-drawer-panel,
.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

/* Mobile Nav Menu Items */
.mobile-drawer-body .menu-item {
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-drawer-body .menu-item:last-child {
  border-bottom: none;
}

.mobile-drawer-body .menu-item > a {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s ease;
  flex: 1;
}

.mobile-drawer-body .menu-item > a:hover {
  color: #083366;
}

.mobile-drawer-body .menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-body .menu-item-has-children > a {
  flex: 1;
}

.mobile-drawer-body .menu-item-has-children > .mobile-submenu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.mobile-drawer-body .menu-item-has-children > .mobile-submenu-toggle:hover {
  color: #083366;
  background-color: #f8fafc;
}

.mobile-drawer-body .menu-item-has-children > .sub-menu {
  display: none;
  width: 100%;
  padding-left: 0.75rem;
  margin: 0;
  list-style: none;
  background-color: #f8fafc;
  border-left: 3px solid #083366;
  border-radius: 0 0 0.375rem 0.375rem;
}

.mobile-drawer-body .menu-item-has-children.is-expanded > .sub-menu {
  display: block;
}

.mobile-drawer-body .menu-item-has-children.is-expanded > .mobile-submenu-toggle svg {
  transform: rotate(180deg);
}

.mobile-drawer-body .sub-menu .menu-item {
  border-bottom: 1px solid #e2e8f0;
}

.mobile-drawer-body .sub-menu .menu-item:last-child {
  border-bottom: none;
}

.mobile-drawer-body .sub-menu .menu-item > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  padding: 0.625rem 0.75rem;
}

.mobile-drawer-body .sub-menu .menu-item > a:hover {
  color: #083366;
}

/* ==========================================================================
   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,
.hero-swiper-prev,
.hero-swiper-next {
  cursor: pointer;
  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 {
  position: relative;
  cursor: pointer;
  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;
}

/* WCAG 2.2 SC 2.5.8: Mở rộng vùng chạm tối thiểu 28x28px cho pagination bullet */
.swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 28px;
  min-height: 28px;
}

.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%;
}

.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 */
.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, #004b99 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;
}
.category-menu-btn {
  font-weight: 400;
}
.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, #004b99 0%, #0056b3 50%, #0066cc 100%);
}

.cat-section-header-gradient {
    background: linear-gradient(90deg, #004b99 0%, #005bb8 50%, #006ddb 100%);
}

.nav-gradient {
    background: linear-gradient(90deg, #004b99 0%, #005bb8 50%, #006ddb 100%);
    border-bottom: 3px solid #ffb703;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
}

.category-menu-trigger-gradient {
    background: linear-gradient(180deg, #003d80 0%, #0052a3 100%);
}

.btn-search-gradient {
    background: linear-gradient(135deg, #0056b3 0%, #0077ff 100%);
    transition: all 0.25s ease;
}
.btn-search-gradient:hover {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

.section-rescue-gradient {
    background: linear-gradient(135deg, #003d80 0%, #0056b3 55%, #006fd6 100%);
}

.flashsale-header-gradient {
    background: linear-gradient(145deg, #003d80 0%, #0056b3 60%, #006ddb 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, #dc2626 0%, #f97316 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.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}

.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: 400;
  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: 400;
  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;
}

@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-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;
}


/* Typography Balance - Tránh rớt chữ đơn lẻ cuối tiêu đề (Anti-Widow/Orphan) */
h1, h2, h3, .heading-balanced {
    text-wrap: balance;
}


/* ==========================================================================
   TYPOGRAPHY LINE-HEIGHT FIX (CHỐNG ĐÈ CHỮ TIÊU ĐỀ TIẾNG VIỆT CÓ DẤU)
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  line-height: 1.35 !important;
  text-wrap: balance;
}

h1, .h1 {
  line-height: 1.3 !important;
}

h2, .h2 {
  line-height: 1.35 !important;
}

h3, .h3 {
  line-height: 1.4 !important;
}

/* Tiêu đề lớn trong Hero Section */
.section-hero h1 {
  line-height: 1.25 !important;
}

.section-hero h2 {
  line-height: 1.25 !important;
}

.section-hero h1 span,
.section-hero h2 span {
  display: inline-block;
  margin-top: 0.35rem;
}

/* Tiêu đề sản phẩm trong danh sách và thẻ card */
.product-title,
.woocommerce-loop-product__title,
.product_title {
  line-height: 1.45 !important;
}

/* ==========================================================================
   Hero Slide Dark Overlay - Maximum contrast & 100% text readability
   ========================================================================== */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.82) 48%, rgba(2, 6, 23, 0.45) 100%) !important;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.85) 100%) !important;
    }
}

.section-hero h1,
.section-hero h2 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.section-hero p {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   Product Category Card 3D Dual-Image & Content-Box Interaction
   ========================================================================== */
.product-cat-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease;
}

.product-cat-card:hover {
    border-color: rgba(2, 140, 238, 0.45);
    box-shadow: 0 16px 32px -10px rgba(8, 51, 102, 0.15);
}

/* 1. div.product-cat-image-box */
.product-cat-image-box {
    perspective: 600px;
    transform-style: preserve-3d;
}

/* div.product-cat-image-bg: Nền xám nhạt ngửa ra 3D làm sàn */
.product-cat-image-bg {
    transform-origin: center bottom;
    transform: perspective(600px) rotateX(0deg) scale(1) translateY(0);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
                background 0.4s ease,
                background-color 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.product-cat-card:hover .product-cat-image-bg {
    transform: perspective(600px) rotateX(55deg) scale(0.9) translateY(10px);
    opacity: 1;
    background-color: #cbd5e1 !important;
    background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 100%) !important;
    border-color: #94a3b8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

/* img.product-cat-image-2: Ảnh vuông bên trong nền xám */
img.product-cat-image-2,
.product-cat-image-2 {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.product-cat-card:hover img.product-cat-image-2,
.product-cat-card:hover .product-cat-image-2 {
    transform: scale(0.88);
    opacity: 0.75;
}

/* img.product-cat-image: Ảnh chính ban đầu ẩn ở giữa div.product-cat-image-box */
img.product-cat-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateY(0) scale(0.85);
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                filter 0.4s ease;
}

/* Khi hover: img.product-cat-image hiện dần ra và nổi lên phía trên */
.product-cat-card:hover img.product-cat-image {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) translateY(-0.5rem) scale(1.12);
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.28));
}

/* 2. div.product-cat-content-box: Chứa tiêu đề danh mục */
.product-cat-content-box {
    transition: transform 0.3s ease;
}

.product-cat-card:hover .product-cat-title {
    color: #028ce0;
}



/* Footer Navigation Menus */
.footer-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu-links > li {
  list-style: none;
}
.footer-menu-links > li > a {
  color: var(--color-slate-400);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}
.footer-menu-links > li > a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* ==========================================================================
   WOOCOMMERCE BEAUTIFUL SHOP PAGINATION & SIDEBAR FILTERS
   ========================================================================== */
.shop-pagination-wrapper .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.shop-pagination-wrapper .page-numbers li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-pagination-wrapper .page-numbers > li > a,
.shop-pagination-wrapper .page-numbers > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove all inner borders and backgrounds inside pagination links */
.shop-pagination-wrapper .page-numbers a span,
.blog-pagination-wrapper .page-numbers a span {
  display: inline !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.shop-pagination-wrapper .page-numbers a:hover {
  color: #ffffff;
  background-color: #083366;
  border-color: #083366;
  box-shadow: 0 4px 6px -1px rgba(8, 51, 102, 0.25);
  transform: translateY(-1px);
}

.shop-pagination-wrapper .page-numbers .current {
  color: #ffffff !important;
  background: #083366 !important;
  border-color: #083366 !important;
  box-shadow: 0 4px 10px rgba(8, 51, 102, 0.3) !important;
  pointer-events: none;
  font-weight: 900;
}

.shop-pagination-wrapper .page-numbers .dots {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #94a3b8;
  pointer-events: none;
}

.shop-pagination-wrapper .page-numbers .prev,
.shop-pagination-wrapper .page-numbers .next {
  padding: 0 1rem;
  gap: 0.375rem;
  font-weight: 700;
}

.shop-pagination-wrapper .page-numbers .prev:hover,
.shop-pagination-wrapper .page-numbers .next:hover {
  background-color: #028cee;
  border-color: #028cee;
}

/* Sidebar filter items styling */
.filter-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #334155;
}

.filter-item-link:hover {
  background-color: #f1f5f9;
  color: #083366;
  transform: translateX(2px);
}

.filter-item-link.active {
  background-color: #083366 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(8, 51, 102, 0.25);
}

.filter-item-link.active .filter-count {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Shop toolbar select custom styling */
.shop-toolbar select.orderby {
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE STYLES (THEO MẪU THIẾT KẾ)
   ========================================================================== */
.product-gallery-thumb {
  border-color: #e2e8f0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-gallery-thumb:hover {
  border-color: #ef4444;
  transform: translateY(-1px);
}

.product-gallery-thumb.is-active {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
}

.gallery-nav-btn {
  opacity: 0.85;
  transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
  opacity: 1;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-50%) scale(1.08);
}

.product-tab-btn {
  transition: all 0.2s ease;
}

.product-tab-btn.is-active {
  color: #0f172a !important;
  border-bottom: 2px solid #0f172a !important;
  font-weight: 800;
}

.btn-add-to-cart {
  background-color: #ffffff;
  border: 2px solid #0f172a;
  color: #0f172a;
  transition: all 0.2s ease;
}

.btn-add-to-cart:hover {
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.btn-buy-now {
  background-color: #0f172a;
  color: #ffffff;
  transition: all 0.2s ease;
}

.btn-buy-now:hover {
  background-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.related-product-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-product-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   BLOG ARCHIVE STYLES (THEO MẪU THIẾT KẾ ARCHIVE.PHP)
   ========================================================================== */
.blog-horizontal-card {
  transition: all 0.25s ease;
}

.blog-horizontal-card:hover .card-thumb-wrapper img {
  transform: scale(1.05);
}

.blog-pagination-wrapper ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-pagination-wrapper .page-numbers > li > a,
.blog-pagination-wrapper .page-numbers > li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.blog-pagination-wrapper .page-numbers li a:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

.blog-pagination-wrapper .page-numbers li .current {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.35) !important;
  font-weight: 800;
  pointer-events: none;
}

.blog-pagination-wrapper .page-numbers li .dots {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #94a3b8;
  pointer-events: none;
}

/* ==========================================================================
   BRANDS MARQUEE (Right to Left Smooth Infinite Scroll)
   ========================================================================== */
@keyframes brandMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.brands-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.brands-marquee-track {
  display: flex;
  width: max-content;
  animation: brandMarqueeScroll 28s linear infinite;
  will-change: transform;
}

.brands-marquee-wrapper:hover .brands-marquee-track {
  animation-play-state: paused;
}

/* ==========================================================================
   COMMENTS SECTION STYLING (Accessible, Responsive, Premium UI)
   ========================================================================== */
.comments-area {
  margin-top: 1.5rem;
}

/* Comment Form */
.comment-respond {
  transition: all 0.2s ease;
}

.comment-reply-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
}

.comment-reply-title #cancel-comment-reply-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  background-color: #fee2e2;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.comment-reply-title #cancel-comment-reply-link:hover {
  background-color: #fecaca;
  color: #b91c1c;
}

.logged-in-as {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.logged-in-as a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.logged-in-as a:hover {
  color: #1d4ed8;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background-color: #ffffff;
  color: #1e293b;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  border-color: #e31837;
  box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.12);
  outline: none;
}

.form-submit {
  margin-top: 1.25rem;
}

.form-submit #submit,
.btn-submit-comment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #e31837;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(227, 24, 55, 0.25);
  transition: all 0.2s ease;
}

.form-submit #submit:hover,
.btn-submit-comment:hover {
  background-color: #c4122d;
  box-shadow: 0 4px 10px rgba(227, 24, 55, 0.35);
  transform: translateY(-1px);
}

/* Comment List & Nested Threads */
.comment-list .children {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #e2e8f0;
  list-style: none;
}

@media (min-width: 640px) {
  .comment-list .children {
    padding-left: 2rem;
  }
}

.comment-item {
  position: relative;
}

.comment-body {
  transition: all 0.2s ease;
}

.comment-body:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bypostauthor > .comment-body {
  border-color: #bfdbfe;
  background-color: #f8fafc;
}

.btn.btn-outline-white {
    background-color: rgba(255, 255, 255, 0.18);
    border: 2px solid #ffffff;
    color: #ffffff;
    backdrop-filter: blur(8px);
    font-weight: 700;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.btn.btn-outline-white:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #083366;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}


/* RESCUE SECTION HOTLINE TWIN PILL BUTTONS */
.btn-rescue-hotline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.btn-rescue-hotline-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    color: #ffffff !important;
}

/* SIDEBAR 24/7 RESCUE HELP BOX (High Contrast Dark Navy) */
.sidebar-help-box {
    background: linear-gradient(145deg, #003d80 0%, #0056b3 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 16px rgba(8, 51, 102, 0.2) !important;
}
.sidebar-help-box .sidebar-help-title {
    color: #fbbf24 !important; /* amber-400 */
    font-weight: 800;
}
.sidebar-help-box p {
    color: #f1f5f9 !important; /* slate-100, very clear and readable */
}

/* ==========================================================================
   HOTLINE & CALL CONVERSION OPTIMIZATION (HIGH VISIBILITY & PROMPT ACTIONS)
   ========================================================================== */

/* Keyframe Animations: Phone Ringing & Radar Ripple Pulse */
@keyframes phone-ring {
  0% { transform: rotate(0) scale(1); }
  5% { transform: rotate(-22deg) scale(1.18); }
  10% { transform: rotate(22deg) scale(1.18); }
  15% { transform: rotate(-22deg) scale(1.18); }
  20% { transform: rotate(22deg) scale(1.18); }
  25% { transform: rotate(0) scale(1); }
  100% { transform: rotate(0) scale(1); }
}

@keyframes hotline-radar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7), 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(225, 29, 72, 0), 0 0 0 22px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0), 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes call-pill-glow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4), 0 0 0 2px rgba(254, 202, 202, 0.8);
  }
  50% {
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.7), 0 0 0 4px rgba(252, 165, 165, 1);
  }
}

@keyframes call-btn-shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 1. Header Desktop Hotline VIP Badge */
.header-hotline-vip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, #fff1f2 0%, #fffbeb 100%);
  border: 1.5px solid #f87171;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.12);
  transition: all 0.25s ease-in-out;
  text-decoration: none;
}
.header-hotline-vip:hover {
  background: linear-gradient(135deg, #ffe4e6 0%, #fef3c7 100%);
  border-color: #ef4444;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.28);
  transform: translateY(-1px);
}
.header-hotline-vip .hotline-icon-box {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: hotline-radar-pulse 2s infinite;
}
.header-hotline-vip .hotline-icon-box svg {
  animation: phone-ring 2.5s infinite ease-in-out;
}

/* 2. Mobile Header Quick Call Button (Nút gọi khẩn cấp trên Header Mobile) */
.mobile-header-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
  animation: hotline-radar-pulse 2s infinite;
  text-decoration: none;
  line-height: 1;
}
.mobile-header-call-btn svg {
  animation: phone-ring 2s infinite ease-in-out;
}

/* 3. Floating CTA Phone Button & Expanded Pill */
.floating-cta-phone {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%) !important;
  animation: hotline-radar-pulse 2s infinite;
  width: 3.5rem !important;
  height: 3.5rem !important;
}
.floating-cta-phone svg {
  animation: phone-ring 2.5s infinite ease-in-out;
}
.floating-hotline-pill {
  position: absolute;
  right: calc(100% + 0.75rem);
  white-space: nowrap;
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.45);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  animation: call-pill-glow 2.5s infinite ease-in-out;
}

/* 4. Sticky Bottom Mobile Action Bar (Thanh gọi cố định dưới đáy mobile) */
.mobile-sticky-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 49;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid #fecdd3;
  padding: 0.4375rem 0.75rem;
  padding-bottom: max(0.4375rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .mobile-sticky-call-bar {
    display: none !important;
  }
}
.mobile-call-main-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  color: #ffffff !important;
  font-weight: 900;
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
  text-decoration: none;
  animation: hotline-radar-pulse 2s infinite;
}
.mobile-call-main-btn svg {
  animation: phone-ring 2s infinite ease-in-out;
}
.mobile-zalo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0056cc 0%, #0068ff 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.6875rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.35);
}

/* 5. Single Product Order Hotline Box */
.product-call-box {
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
  border: 2px dashed #f87171;
  border-radius: 1rem;
  padding: 1.125rem 1.25rem;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.08);
  margin-bottom: 1.5rem;
}
.product-call-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  border-radius: 0.625rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
.product-call-btn-primary:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}
.product-call-btn-primary svg {
  animation: phone-ring 2.5s infinite ease-in-out;
}
.product-call-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  border-radius: 0.625rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
.product-call-btn-secondary:hover {
  background: linear-gradient(135deg, #b45309 0%, #c2410c 100%);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
  transform: translateY(-1px);
}
.product-call-btn-secondary svg {
  animation: phone-ring 2.5s infinite ease-in-out;
}

/* 6. Nâng Cấp Nút Hotline Trong Khu Vực Cứu Hộ */
.btn-rescue-hotline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff !important;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  animation: hotline-radar-pulse 2s infinite;
}
.btn-rescue-hotline-pill:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #ea580c 100%);
  border-color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6);
  color: #ffffff !important;
}
.btn-rescue-hotline-pill svg {
  animation: phone-shake-rotate 1.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite !important;
}

/* ==========================================================================
   HIỆU ỨNG ICON ĐIỆN THOẠI LẮC LƯ XOAY GÓC (ROTATE WIGGLE - KHÔNG MỜ DẦN)
   ========================================================================== */
@keyframes phone-shake-rotate {
  0% { transform: rotate(0deg) scale(1); }
  6% { transform: rotate(-25deg) scale(1.2); }
  12% { transform: rotate(25deg) scale(1.2); }
  18% { transform: rotate(-25deg) scale(1.2); }
  24% { transform: rotate(25deg) scale(1.2); }
  30% { transform: rotate(-18deg) scale(1.12); }
  36% { transform: rotate(18deg) scale(1.12); }
  42% { transform: rotate(-8deg) scale(1.06); }
  48% { transform: rotate(8deg) scale(1.06); }
  54% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}

.icon-phone-shake,
.phone-shake-icon,
.animate-phone-shake,
a[href^="tel:"] svg,
.floating-cta-phone svg,
.header-hotline-vip svg,
.mobile-header-call-btn svg,
.mobile-call-main-btn svg,
.btn-rescue-hotline-pill svg,
.product-call-box svg,
.product-card a[href^="tel:"] svg,
.sidebar-help-box a[href^="tel:"] svg {
  display: inline-block !important;
  transform-origin: center center !important;
  animation: phone-shake-rotate 1.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite !important;
  opacity: 1 !important; /* Luôn sáng rõ nét 100%, không bao giờ mờ dần */
}


/* Footer Gradient tươi sáng chuẩn Brand & Accessibility */
.footer-gradient {
  background: 
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.32) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(245, 158, 11, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(2, 110, 219, 0.25) 0%, transparent 60%),
    linear-gradient(45deg, #021a38 0%, #003366 22%, #004b99 50%, #003875 75%, #011326 100%) !important;
  border-top: 4px solid #ffb703 !important;
  box-shadow: 0 -10px 35px rgba(0, 75, 153, 0.5) !important;
  position: relative;
}
.site-footer a {
  color: #cbd5e1;
  transition: color 0.2s ease-in-out;
}
.site-footer a:hover {
  color: #ffb703 !important;
}
.site-footer .footer-social-links a {
  color: #ffffff !important;
}


/* BRAND FILTER TABS (NỔI BẬT NÚT TẤT CẢ & CHỐNG CHÌM) */
.brand-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transform: translateY(0);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}
.brand-tab-active {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #fca5a5 !important;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45) !important;
}
.brand-tab-active:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6) !important;
  transform: translateY(-2px) scale(1.02);
}


/* ==========================================================================
   HOTLINE CALL BUTTONS & RICH FOOTER GRADIENT (AUDITED & ENHANCED)
   ========================================================================== */

/* 1. Nút Hero Call 1 (Đỏ Ruby Rực Rỡ) */
.btn-hero-call-1 {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #f87171 !important;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45) !important;
}
.btn-hero-call-1:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.6) !important;
  transform: translateY(-2px) scale(1.02);
}

/* 2. Nút Hero Call 2 (Cam Hổ Phách Rực Rỡ - Tuyệt Đối Không Bị Chìm) */
.btn-hero-call-2 {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #fcd34d !important;
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.45) !important;
}
.btn-hero-call-2:hover {
  background: linear-gradient(135deg, #d97706 0%, #c2410c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.6) !important;
  transform: translateY(-2px) scale(1.02);
}

/* 3. Nút Gọi Báo Giá Trong Card Sản Phẩm */
.btn-call-quotation {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #ef4444 !important;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35) !important;
  text-decoration: none !important;
}
.btn-call-quotation:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5) !important;
  transform: translateY(-1px);
}

/* 4. Khối Icon Hotline Trang Liên Hệ */
.contact-icon-phone-box {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4) !important;
}
.contact-icon-phone-box svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* 5. Nền Footer Gradient Phong Phú, Có Chiều Sâu Đa Tầng */
.footer-gradient {
  background: 
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.32) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(245, 158, 11, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(2, 110, 219, 0.25) 0%, transparent 60%),
    linear-gradient(45deg, #021a38 0%, #003366 22%, #004b99 50%, #003875 75%, #011326 100%) !important;
  border-top: 4px solid #ffb703 !important;
  box-shadow: 0 -10px 35px rgba(0, 75, 153, 0.5) !important;
  position: relative;
}
.footer-gradient::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, #fef08a 50%, transparent 100%);
  pointer-events-none;
}


/* ==========================================================================
   FOOTER GRADIENT 45 ĐỘ PHONG PHÚ & CHỮ SIÊU SÁNG (WCAG 2.2 AAA CONTRAST)
   ========================================================================== */
.footer-gradient {
  background: 
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.32) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(245, 158, 11, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(2, 110, 219, 0.25) 0%, transparent 60%),
    linear-gradient(45deg, #021a38 0%, #003366 22%, #004b99 50%, #003875 75%, #011326 100%) !important;
  border-top: 4px solid #ffb703 !important;
  box-shadow: 0 -10px 35px rgba(0, 75, 153, 0.5) !important;
  position: relative;
}

/* Tiêu đề các cột Footer: Trắng tuyết tinh khiết, đậm nét */
.site-footer .footer-heading,
.site-footer h2,
.site-footer h3 {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Toàn bộ chữ mô tả, danh mục, liên kết: Trắng sáng 100% không bị chìm */
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer address,
.site-footer .footer-link {
  color: #f8fafc !important;
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
}

/* Liên kết danh mục footer sáng rõ và hover vàng ánh kim rực rỡ */
.site-footer a.footer-link,
.site-footer .footer-link a,
.site-footer nav a {
  color: #f8fafc !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.25s ease-in-out !important;
}

.site-footer a.footer-link:hover,
.site-footer .footer-link a:hover,
.site-footer nav a:hover {
  color: #ffb703 !important;
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.8) !important;
}

/* Ô nhập email Newsletter: Nền trắng tinh khiết, chữ đen đậm, placeholder xám đậm */
.site-footer input[type="email"]#footer-email-input,
.site-footer input[type="email"] {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #ffb703 !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
}
.site-footer input[type="email"]::placeholder {
  color: #475569 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

/* ==========================================================================
   CÁC NÚT VÀ ICON CHỐNG CHÌM TOÀN TRANG
   ========================================================================== */
/* Nút Gọi Báo Giá trên Card Sản Phẩm */
.btn-call-quotation {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.4) !important;
}
.btn-call-quotation:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(220, 38, 38, 0.5) !important;
}
.btn-call-quotation svg {
  color: #fef08a !important;
  fill: #fef08a !important;
}

/* Nút Hero Slider 1 (Đỏ ruby) & 2 (Cam hổ phách) */
.btn-hero-call-1 {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.btn-hero-call-1:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.6) !important;
}

.btn-hero-call-2 {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.btn-hero-call-2:hover {
  background: linear-gradient(135deg, #c2410c 0%, #d97706 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(234, 88, 12, 0.6) !important;
}

/* Tab Tất Cả Thương Hiệu nổi bật */
.brand-tab-active {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Khối Icon Hotline Trang Liên Hệ */
.contact-icon-phone-box {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%) !important;
  color: #ffffff !important;
}
.contact-icon-phone-box svg {
  color: #ffffff !important;
  fill: currentColor !important;
}

/* Section Quy Trình Cứu Hộ: Badge Icon 1 & 2 sắc nét */
.btn-rescue-hotline-pill .rescue-icon-badge-1 {
  background-color: #ffffff !important;
}
.btn-rescue-hotline-pill .rescue-icon-badge-1 svg {
  color: #dc2626 !important;
  fill: #dc2626 !important;
}

.btn-rescue-hotline-pill .rescue-icon-badge-2 {
  background-color: #ffffff !important;
}
.btn-rescue-hotline-pill .rescue-icon-badge-2 svg {
  color: #ea580c !important;
  fill: #ea580c !important;
}


/* ==========================================================================
   BRAND FILTER TABS & CATEGORY ITEMS HOVER FIX (CHỐNG CHÌM CHỮ 100%)
   ========================================================================== */
/* Các nút thương hiệu ở trạng thái bình thường */
.brand-tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 0.75rem !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1 !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transform: translateY(0) !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

/* KHI HOVER VÀO NÚT THƯƠNG HIỆU: NỀN XANH ĐẬM + CHỮ TRẮNG TUYẾT SẮC NÉT */
.brand-tab-btn:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
  background-color: #0056b3 !important;
  color: #ffffff !important;
  border-color: #004085 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 86, 179, 0.38) !important;
}
.brand-tab-btn:hover * {
  color: #ffffff !important;
}

/* NÚT TẤT CẢ THƯƠNG HIỆU (LUÔN NỔI BẬT NHẤT HÀNG ĐẦU) */
.brand-tab-active {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #fb7185 !important;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45) !important;
}
.brand-tab-active:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #c2410c 100%) !important;
  color: #ffffff !important;
  border-color: #fda4af !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

/* CÁC GỢI Ý TÌM KIẾM DƯỚI HEADER SEARCH INPUT */
.header-suggestion-pill {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
.header-suggestion-pill:hover {
  background-color: #0056b3 !important;
  color: #ffffff !important;
  border-color: #0056b3 !important;
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.3) !important;
  transform: translateY(-1px) !important;
}

/* THẺ DANH MỤC SẢN PHẨM TRÊN CARD (.product-cat-card) */
.product-cat-card:hover .product-cat-title {
  color: #0056b3 !important;
  text-shadow: 0 1px 2px rgba(0, 86, 179, 0.15) !important;
}

/* SUBMENU VÀ DANH MỤC TRONG DROPDOWN MENU */
.main-navigation .sub-menu .menu-item > a:hover {
  background-color: #0056b3 !important;
  color: #ffffff !important;
}


/* Responsive label cho 2 nút gọi mobile header (chống tràn trên màn hình siêu hẹp < 360px) */
.mobile-call-label {
  display: none;
}
@media (min-width: 360px) {
  .mobile-call-label {
    display: inline;
  }
}
/* ==========================================================================
   8. HOME CATEGORY BRANDS GRID & FOOTER LOGO (V1.8.2)
   ========================================================================== */
.home-category-brands-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 640px) {
  .home-category-brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .home-category-brands-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* Footer Custom Logo tinh chỉnh kích thước & viền nền trắng chuẩn thẩm mỹ */
.footer-logo img.custom-logo {
  width: 56px !important;
  height: 56px !important;
  border-radius: 9999px !important;
  object-fit: contain !important;
  background-color: #ffffff !important;
  padding: 3px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
  display: inline-block !important;
}
/* ==========================================================================
   9. FOOTER RESPONSIVE GRID & GOOGLE MAPS EMBED (V1.8.5)
   ========================================================================== */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 3.2fr 2fr 2.1fr 2.1fr 3.2fr;
    gap: 1.75rem;
  }
}

@media (min-width: 1280px) {
  .footer-main-grid {
    grid-template-columns: 3.2fr 2fr 2.1fr 2.1fr 3.4fr;
    gap: 2.25rem;
  }
}

.footer-map-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.footer-map-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.footer-map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  border-radius: var(--radius-xl, 0.75rem);
  overflow: hidden;
}

.contact-map-frame {
  position: relative;
  width: 100%;
  height: 380px;
  max-height: 400px;
  border-radius: var(--radius-2xl, 1rem);
  overflow: hidden;
}

@media (max-width: 639px) {
  .contact-map-frame {
    height: 320px;
  }
}

.footer-map-frame iframe,
.contact-map-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.footer-menu-links a {
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-menu-links a:hover {
  color: #fde047 !important;
  transform: translateX(4px);
}

/* ==========================================================================
   SINGLE PRODUCT DETAIL 2-COLUMN LAYOUT (GALLERY LEFT & SUMMARY RIGHT)
   ========================================================================== */
.single-product-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .single-product-main-grid {
    display: grid !important;
    grid-template-columns: 7fr 5fr !important;
    gap: 2.5rem !important;
  }

  .single-product-main-grid > .product-gallery-column {
    grid-column: span 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .single-product-main-grid > .product-summary-column {
    grid-column: span 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 1280px) {
  .single-product-main-grid {
    grid-template-columns: 7fr 5fr !important;
    gap: 3rem !important;
  }
}
