/* ============================================================
   LAYOUT MODERN - OVERRIDE HIỆN ĐẠI CHO NỘI THẤT NGỌC THÚY
   Giữ nguyên class/id cũ, chỉ thêm/bổ sung style mới
   ============================================================ */

/* --- VARIABLES MỞ RỘNG --- */
:root {
  --modern-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
  --modern-shadow-md: 0 6px 24px rgba(236, 169, 30, 0.06);
  --modern-shadow-lg: 0 10px 40px rgba(199, 134, 11, 0.12);
  --modern-radius-sm: 8px;
  --modern-radius-md: 14px;
  --modern-radius-lg: 24px;
  --modern-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --primary-light: rgba(236, 169, 30, 0.12);
  --bg-card-modern: #ffffff;
  --text-muted-modern: #6b7280;
}

/* ============================================================
   1. BODY & HTML CẢI TIẾN
   ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  margin-bottom: 0 !important; /* override margin-bottom: 60px nếu không cần */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   2. TOP BAR HIỆN ĐẠI
   ============================================================ */
.top-bar {
  background: linear-gradient(135deg, #FFF8E7 0%, #FAF4DE 100%) !important;
  padding: 10px 0 !important;
  font-size: 13px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(236, 169, 30, 0.15) !important;
}

.top-bar .text-muted {
  color: #4e3b2b !important;
  opacity: 0.85;
}

.top-bar i {
  font-size: 14px;
}

/* ============================================================
   3. MAIN HEADER - STICKY ĐẸP HƠN
   ============================================================ */
.main-header {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(236, 169, 30, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  transition: var(--modern-transition);
  padding: 8px 0 !important;
}

/* Header thu nhỏ khi scroll */
.main-header.header-scrolled {
  padding: 4px 0 !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08) !important;
}

.main-logo {
  transition: var(--modern-transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.main-header:hover .main-logo {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

@media (min-width: 992px) {
  .main-header {
    padding: 4px 0 !important;
  }
  .main-header.header-scrolled {
    padding: 2px 0 !important;
  }
}

/* ============================================================
   4. SEARCH BOX CẢI TIẾN
   ============================================================ */
.search-box-v2 {
  background: #ffffff !important;
  border: 2px solid rgba(236, 169, 30, 0.25) !important;
  box-shadow: var(--modern-shadow-sm);
  height: 44px !important;
}

.search-box-v2:focus-within {
  border-color: var(--primary-color) !important;
  box-shadow:
    0 0 0 4px rgba(236, 169, 30, 0.12),
    0 4px 12px rgba(236, 169, 30, 0.08) !important;
}

.search-input-v2 {
  font-size: 14px !important;
  color: #374151 !important;
}

.search-input-v2::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.search-btn-v2 {
  color: var(--primary-color) !important;
  font-size: 18px !important;
  transition: transform 0.2s;
}

.search-btn-v2:hover {
  transform: scale(1.15);
}

/* ============================================================
   5. ICON ACTION HIỆN ĐẠI
   ============================================================ */
.icon-action-v2 {
  position: relative;
  font-weight: 500 !important;
  color: #374151 !important;
  padding: 6px 10px;
  border-radius: var(--modern-radius-sm);
  transition: var(--modern-transition);
}

.icon-action-v2:hover {
  background: var(--primary-light);
  color: var(--text-heading) !important;
  transform: translateY(-1px);
}

.icon-action-v2 i {
  font-size: 22px !important;
  transition: var(--modern-transition);
}

.icon-action-v2:hover i {
  color: var(--primary-dark) !important;
  transform: scale(1.1);
}

.cart-badge-v2 {
  background: #ef4444 !important;
  font-size: 11px !important;
  padding: 3px 7px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================================
   6. NAV CUSTOM - MENU CHÍNH ĐẸP HƠN
   ============================================================ */
.nav-custom {
  border-bottom: 1px solid rgba(236, 169, 30, 0.15) !important;
  background: linear-gradient(180deg, #ffffff 0%, #FFFDF7 100%) !important;
}

.nav-custom .nav-link {
  padding: 14px 18px !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
  border-radius: 8px;
  margin: 4px 2px;
  transition: var(--modern-transition);
  position: relative;
}

.nav-custom .nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-custom .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-custom .nav-link:hover {
  background: var(--primary-light) !important;
  color: var(--text-heading) !important;
}

/* Dropdown menu */
.nav-custom .dropdown-menu {
  border-radius: 16px !important;
  box-shadow:
    0 16px 40px rgba(236, 169, 30, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(236, 169, 30, 0.15) !important;
  padding: 8px !important;
  overflow: visible;
}

.nav-custom .dropdown-menu .dropdown-item {
  border-radius: 10px !important;
  margin: 2px 4px;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: var(--modern-transition);
}

.nav-custom .dropdown-menu .dropdown-item:hover {
  background: var(--primary-light) !important;
  color: var(--text-heading) !important;
  padding-left: 22px !important;
  transform: translateX(2px);
}

/* ============================================================
   DROPDOWN SUBMENU - HỖ TRỢ CẤP 3, CẤP 4, ...
   ============================================================ */
.dropdown-submenu {
  position: relative;
}

/* Menu con ban đầu ẩn */
.dropdown-submenu > .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -3px;
  margin-left: 6px !important;
  border-radius: 14px !important;
  display: none !important;
  z-index: 1050;
  min-width: 200px;
  /* Đảm bảo luôn nằm trên */
}

/* Hiển thị khi hover HOẶC khi có class .show (từ click) */
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu > .dropdown-menu.show {
  display: block !important;
}

/* Submenu có thể lồng nhau vô hạn */
.dropdown-submenu .dropdown-submenu > .dropdown-menu {
  margin-top: -3px;
}

/* Đảo hướng nếu menu con tràn màn hình bên phải */
@media (min-width: 992px) {
  .dropdown-submenu.dropdown-submenu-left > .dropdown-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 6px;
  }
}

/* Cố định độ rộng tối thiểu cho menu con đẹp hơn */
.dropdown-submenu > .dropdown-menu .dropdown-item {
  white-space: nowrap;
  min-width: 180px;
}

/* ============================================================
    6-B. FIX: NAV CUSTOM LIST - 1 HÀNG DUY NHẤT + DROPDOWN CHUẨN
    ============================================================ */
.nav-custom-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  justify-content: center !important;
  gap: 0 !important;
}

.nav-custom-item {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  position: relative !important;
}

.nav-custom-item > .nav-link {
  white-space: nowrap !important;
  padding: 12px 14px !important;
  font-size: 12.5px !important;
  letter-spacing: 0.2px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Dropdown icon (mũi tên) */
.nav-custom-item .dropdown-icon {
  font-size: 10px !important;
  transition: transform 0.2s ease !important;
}

.nav-custom-item.has-children:hover > a .dropdown-icon {
  transform: rotate(180deg) !important;
}

/* Icon mũi tên phải cho menu cấp 2 có chứa cấp 3 */
.nav-custom-item .dropdown-icon-sub {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 10px !important;
  transition: transform 0.2s ease !important;
  color: #9ca3af;
}

.nav-custom-item.has-children:hover > a .dropdown-icon-sub {
  transform: translateX(3px);
  color: var(--primary-color);
}

/* === SUB-MENU: container dropdown chuẩn === */
.sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 999 !important;
  min-width: 220px !important;
  list-style: none !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(236, 169, 30, 0.12) !important;
  border-radius: 12px !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04) !important;
  overflow: visible !important;
}

/* Hiển thị sub-menu khi hover vào li cha */
li.has-children:hover > ul.sub-menu {
  display: block !important;
}

/* Sub-menu cấp con (lồng nhau - fly-out sang phải) */
.sub-menu .sub-menu {
  top: 0 !important;
  left: 100% !important;
  margin-left: 6px !important;
  margin-top: -10px !important;
  z-index: 1000 !important;
  overflow: visible !important;
  max-height: none !important;
  display: none !important;
}

/* Hiển thị sub-menu cấp 3+ khi hover vào li cha cấp 2+ */
.has-children:hover > .sub-menu .has-children:hover > .sub-menu,
.sub-menu .has-children:hover > .sub-menu {
  display: block !important;
}

/* Style cho link bên trong sub-menu */
.sub-menu .nav-custom-item {
  display: block !important;
  white-space: nowrap !important;
}

.sub-menu .nav-custom-item > .nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 18px !important;
  width: 100% !important;
  border-radius: 0 !important;
  font-size: 12.5px !important;
  margin: 0 !important;
}

.sub-menu .nav-custom-item > .nav-link::after {
  display: none !important;
}

.sub-menu .nav-custom-item > .nav-link:hover {
  background: rgba(236, 169, 30, 0.08) !important;
  color: #463f3a !important;
  padding-left: 24px !important;
}

/* Dropdown Xem thêm - đổ về bên phải */
.nav-custom-more {
  position: relative !important;
}

.nav-custom-more > .sub-menu {
  right: 0 !important;
  left: auto !important;
  min-width: 240px !important;
}

/* Giới hạn chiều cao dropdown chỉ cho "Xem thêm" (không có con cấp 3) */
.nav-custom-more > .sub-menu {
  max-height: 480px !important;
  overflow-y: auto !important;
}

/* Cố định container của nav-custom dùng flex để căn giữa */
.nav-custom .container {
  display: flex !important;
  justify-content: center !important;
  overflow: visible !important;
}

/* ============================================================
    7. BUTTONS HIỆN ĐẠI
    ============================================================ */
.btn-primary,
.btn-danger,
.btn-quick-buy,
.btn-dark {
  border-radius: 12px !important;
  padding: 10px 24px !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  position: relative;
  overflow: hidden;
  transition: var(--modern-transition) !important;
}

.btn-primary::before,
.btn-danger::before,
.btn-quick-buy::before,
.btn-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-primary:hover::before,
.btn-danger:hover::before,
.btn-quick-buy:hover::before,
.btn-dark:hover::before {
  left: 100%;
}

.btn-primary:hover,
.btn-quick-buy:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 28px rgba(88, 47, 14, 0.2) !important;
}

/* Button Outline */
.btn-outline-primary {
  border-radius: 12px !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--text-heading) !important;
  transition: var(--modern-transition) !important;
}

.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 169, 30, 0.25) !important;
}

/* ============================================================
   8. CARDS - GỌN GÀNG, SANG HƠN
   ============================================================ */
.card {
  border: 1px solid rgba(236, 169, 30, 0.12) !important;
  border-radius: var(--modern-radius-lg) !important;
  box-shadow: var(--modern-shadow-sm);
  transition: var(--modern-transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--modern-shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(236, 169, 30, 0.25) !important;
}

.card-header {
  background: linear-gradient(135deg, #fefcf7, #fdf8f0) !important;
  border-bottom: 1px solid rgba(236, 169, 30, 0.1) !important;
  padding: 16px 20px !important;
}

.card-body {
  padding: 20px !important;
}

/* ============================================================
   9. FORM & INPUT ĐẸP HƠN
   ============================================================ */
.form-control,
.form-select {
  border-radius: var(--modern-radius-sm) !important;
  border: 1.5px solid #e5e7eb !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  transition: var(--modern-transition) !important;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(236, 169, 30, 0.1) !important;
}

.form-label {
  font-weight: 600 !important;
  color: var(--text-heading) !important;
  font-size: 13px !important;
  margin-bottom: 6px !important;
}

/* ============================================================
   10. TABLE HIỆN ĐẠI
   ============================================================ */
.table {
  border-radius: var(--modern-radius-md);
  overflow: hidden;
  box-shadow: var(--modern-shadow-sm);
}

.table thead th {
  background: linear-gradient(135deg, #fefcf7, #fdf6e8) !important;
  color: var(--text-heading) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(236, 169, 30, 0.15) !important;
  padding: 14px 16px !important;
}

.table tbody tr {
  transition: var(--modern-transition);
}

.table tbody tr:hover {
  background: rgba(236, 169, 30, 0.04) !important;
}

.table tbody td {
  padding: 12px 16px !important;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
}

/* Table Striped */
.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(236, 169, 30, 0.03) !important;
}

/* ============================================================
   11. ALERT HIỆN ĐẠI
   ============================================================ */
.alert {
  border-radius: var(--modern-radius-md) !important;
  border: none !important;
  box-shadow: var(--modern-shadow-md) !important;
  padding: 16px 20px !important;
}

.alert-success {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  color: #065f46 !important;
}

.alert-danger {
  background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
  color: #991b1b !important;
}

/* ============================================================
   12. MODAL ĐẸP HƠN
   ============================================================ */
.modal-content {
  border: none !important;
  border-radius: var(--modern-radius-lg) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12) !important;
}

.modal-header {
  background: linear-gradient(135deg, #fefcf7, #fdf6e8) !important;
  border-bottom: 1px solid rgba(236, 169, 30, 0.1) !important;
  border-radius: var(--modern-radius-lg) var(--modern-radius-lg) 0 0 !important;
  padding: 18px 24px !important;
}

.modal-body {
  padding: 24px !important;
}

.modal-footer {
  border-top: 1px solid rgba(236, 169, 30, 0.1) !important;
  padding: 16px 24px !important;
}

/* ============================================================
   13. BREADCRUMB CẢI TIẾN
   ============================================================ */
.breadcrumb {
  background: linear-gradient(135deg, #fefcf7 0%, #fdf8f0 100%) !important;
  border: 1px solid rgba(236, 169, 30, 0.1) !important;
  border-radius: 14px !important;
  padding: 10px 18px !important;
  box-shadow: var(--modern-shadow-sm) !important;
}

.breadcrumb .breadcrumb-item a {
  font-weight: 500 !important;
  color: #8b6b4d !important;
}

.breadcrumb .breadcrumb-item.active {
  background: rgba(236, 169, 30, 0.1) !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
}

/* ============================================================
   14. FOOTER NÂNG CẤP - HIỆN ĐẠI HƠN
   ============================================================ */
.footer-premium {
  background: linear-gradient(180deg, #332712 0%, #1f1a0e 100%) !important;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.footer-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(236, 169, 30, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(236, 169, 30, 0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.footer-premium h5 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer-premium h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .footer-premium h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.footer-premium a.custom-hover {
  transition: var(--modern-transition);
  position: relative;
  display: inline-block;
}

.footer-premium a.custom-hover:hover {
  transform: translateX(6px) !important;
  color: var(--primary-color) !important;
}

.footer-logo {
  transition: var(--modern-transition);
  filter: brightness(1.1);
}

.footer-premium .social-link {
  transition: var(--modern-transition);
}

.footer-premium .social-link:hover {
  transform: translateY(-3px);
  opacity: 1 !important;
}

/* ============================================================
   15. MOBILE MENU CẢI TIẾN
   ============================================================ */
.offcanvas {
  border-right: none !important;
}

.offcanvas-header {
  background: linear-gradient(135deg, #fefcf7, #fdf6e8);
  padding: 16px 20px !important;
}

.offcanvas-body {
  background: #fefcf7;
}

.mobile-category-item {
  transition: var(--modern-transition);
}

.mobile-category-item:hover {
  background: rgba(236, 169, 30, 0.04);
}

.mobile-category-link {
  transition: var(--modern-transition);
}

.mobile-category-link:hover {
  background: rgba(236, 169, 30, 0.04);
  padding-left: 24px !important;
}

.list-group-item-action {
  transition: var(--modern-transition);
  border-left: 3px solid transparent !important;
}

.list-group-item-action:hover {
  background: var(--primary-light) !important;
  border-left-color: var(--primary-color) !important;
  padding-left: 20px !important;
}

.btn-mobile-menu {
  transition: var(--modern-transition);
}

.btn-mobile-menu:hover {
  transform: scale(1.1);
  color: var(--primary-dark) !important;
}

/* ============================================================
   16. RESPONSIVE CẢI TIẾN
   ============================================================ */
@media (max-width: 991.98px) {
  .main-header {
    padding: 8px 0 !important;
  }

  .main-logo {
    height: 40px !important;
  }

  .mobile-search-wrapper {
    padding: 8px 0 4px !important;
  }
}

@media (max-width: 767.98px) {
  .main-header .row {
    align-items: center;
  }

  .main-logo {
    height: 36px !important;
  }

  .icon-action-v2 i {
    font-size: 20px !important;
  }

  .footer-premium {
    padding: 30px 0 15px !important;
  }

  .footer-premium h5 {
    margin-bottom: 12px !important;
  }

  .btn-primary,
  .btn-danger,
  .btn-quick-buy,
  .btn-dark {
    padding: 8px 18px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 575.98px) {
  .main-logo {
    height: 32px !important;
  }

  .breadcrumb {
    padding: 8px 12px !important;
  }

  .table thead th,
  .table tbody td {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
}

/* ============================================================
   17. UTILITY CLASSES MỚI
   ============================================================ */
.modern-shadow-sm {
  box-shadow: var(--modern-shadow-sm);
}

.modern-shadow-md {
  box-shadow: var(--modern-shadow-md);
}

.modern-shadow-lg {
  box-shadow: var(--modern-shadow-lg);
}

.modern-radius-sm {
  border-radius: var(--modern-radius-sm);
}

.modern-radius-md {
  border-radius: var(--modern-radius-md);
}

.modern-radius-lg {
  border-radius: var(--modern-radius-lg);
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

/* Chỉ PC mới lazy-load ẩn rồi show bằng JS - mobile dùng fallback animation từ mobile-fix.css */
@media (min-width: 992px) {
  img[loading="lazy"] {
    opacity: 0;
  }

  img[loading="lazy"].loaded,
  img[loading="lazy"][complete] {
    opacity: 1;
  }
}

/* Subtle divider */
.modern-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(236, 169, 30, 0.2),
    transparent
  );
  margin: 24px 0;
  border: none;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--text-heading), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Backdrop blur for modals */
.modal-backdrop.show {
  opacity: 0.6;
  backdrop-filter: blur(4px);
}

/* ============================================================
   18. ANIMATIONS NHẸ
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-scale {
  animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-children > *:nth-child(1) {
  animation-delay: 0.05s;
}
.stagger-children > *:nth-child(2) {
  animation-delay: 0.1s;
}
.stagger-children > *:nth-child(3) {
  animation-delay: 0.15s;
}
.stagger-children > *:nth-child(4) {
  animation-delay: 0.2s;
}
.stagger-children > *:nth-child(5) {
  animation-delay: 0.25s;
}
.stagger-children > *:nth-child(6) {
  animation-delay: 0.3s;
}
.stagger-children > *:nth-child(7) {
  animation-delay: 0.35s;
}
.stagger-children > *:nth-child(8) {
  animation-delay: 0.4s;
}

/* ============================================================
   19. BADGE & LABEL ĐẸP
   ============================================================ */
.badge {
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  letter-spacing: 0.3px;
}

.badge.bg-warning {
  color: #1f2937 !important;
}

/* ============================================================
   20. DROPDOWN USER MENU ĐẸP
   ============================================================ */
.main-header .dropdown-menu {
  border-radius: 14px !important;
  border: 1px solid rgba(236, 169, 30, 0.1) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
  padding: 8px !important;
  overflow: hidden;
}

.main-header .dropdown-menu .dropdown-item {
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  transition: var(--modern-transition);
}

.main-header .dropdown-menu .dropdown-item:hover {
  background: var(--primary-light) !important;
  color: var(--text-heading) !important;
  padding-left: 22px !important;
}

.main-header .dropdown-menu .dropdown-divider {
  opacity: 0.15;
  margin: 4px 12px !important;
}

/* ============================================================
   21. MAIN CONTENT SPACING
   ============================================================ */
main[role="main"] {
  min-height: 70vh !important;
}

@media (max-width: 768px) {
  main[role="main"] {
    padding-top: 0 !important;
  }
}

/* ============================================================
   22. PAGINATION ĐẸP
   ============================================================ */
.pagination {
  gap: 4px;
}

.pagination .page-item .page-link {
  border-radius: 10px !important;
  border: 1px solid rgba(236, 169, 30, 0.15) !important;
  color: var(--text-main) !important;
  font-weight: 500;
  padding: 8px 14px !important;
  transition: var(--modern-transition);
}

.pagination .page-item .page-link:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-heading) !important;
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background: var(--text-heading) !important;
  border-color: var(--text-heading) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(88, 47, 14, 0.2);
}

/* ============================================================
   23. NÚT GIỎ HÀNG DYNAMIC (được điều khiển bởi server)
   ============================================================ */
/* a.icon-action-v2[href="/Cart"] {
  display: none !important;
} */

/* ============================================================
   24. LIST GROUP ĐẸP
   ============================================================ */
.list-group-item {
  border: 1px solid rgba(236, 169, 30, 0.08) !important;
  transition: var(--modern-transition);
}

.list-group-item:hover {
  background: rgba(236, 169, 30, 0.03);
}

.list-group-item-action {
  cursor: pointer;
}

/* ============================================================
   25. HERO BANNER PREMIUM
   ============================================================ */
.hero-banner-premium {
  height: 480px;
  background-color: #121212;
  border: 1px solid rgba(236, 169, 30, 0.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(31, 26, 19, 0.85) 0%,
    rgba(31, 26, 19, 0.4) 60%,
    rgba(31, 26, 19, 0.1) 100%
  );
  z-index: 2;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 10s ease;
}

.hero-banner-premium:hover .hero-bg-img {
  transform: scale(1.05);
}

.hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

@media (max-width: 768px) {
  .hero-banner-premium {
    height: 380px;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(31, 26, 19, 0.9) 0%,
      rgba(31, 26, 19, 0.6) 100%
    );
  }
  .hero-content-wrapper {
    padding: 24px !important;
  }
  .hero-text-box h2 {
    font-size: 1.8rem !important;
  }
  .hero-text-box p {
    font-size: 0.95rem !important;
  }
}

/* Custom Hero Buttons */
.hero-btn {
  padding: 12px 30px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 50px !important; /* Forces pill shape */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: #1f1a13 !important;
  border: none !important;
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #a36d07 100%) !important;
  color: #1f1a13 !important;
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 8px 24px rgba(236, 169, 30, 0.4) !important;
}

.hero-btn-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1) !important;
}
