/* ============================================================================
   DCZ BEARINGS & DCZ POWER - STYLESHEET CHÍNH (styles.css)
   Phong cách: Đen than, Cam thương hiệu, Trắng và Xám ấm
   ============================================================================ */

/* Hộp khai báo biến màu, font chữ và thông số dùng chung toàn trang */
:root {
  --font-sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Biến font chữ chuẩn Noto Sans dùng chung toàn website */
  --orange-logo: #FE560B;        /* Màu cam chủ đạo theo logo DCZ */
  --accent-orange: #FE560B;      /* Biến dự phòng màu cam nhấn */
  --orange-dark: #d94300;        /* Màu cam đậm dùng cho trạng thái hover */
  --black: #000000;              /* Màu đen chuẩn logo */
  --charcoal: #141619;           /* Màu đen than cho header và footer */
  --charcoal-soft: #1f2329;      /* Màu đen than sáng hơn cho thẻ/khối tối */
  --white: #ffffff;              /* Màu trắng chuẩn */
  --text-light: #e5e7eb;         /* Màu chữ sáng trên nền tối */
  --gray-dark: #1e2128;          /* Màu xám đậm */
  --warm-gray-bg: #f6f5f3;       /* Màu nền xám ấm dịu mắt */
  --warm-gray-soft: #ebe8e4;     /* Màu xám ấm nhạt cho thẻ phụ / badge */
  --warm-border: #dedad4;        /* Màu viền xám ấm mảnh */
  --text-main: #181a1f;          /* Màu chữ chính độ tương phản cao */
  --text-muted: #525866;         /* Màu chữ phụ đủ tương phản dễ đọc */
  --radius: 10px;                /* Độ bo góc chuẩn cho thẻ và khung */
  --shadow-sm: 0 5px 10px #1416190d; /* Bóng đổ nhẹ cho bố cục thoáng */
  --shadow-md: 0 10px 30px #1416191a; /* Bóng đổ vừa khi rê chuột/menu nổi */
}

/* Setup chung cho khung hình */
*,
*::before,
*::after {
  box-sizing: border-box;        /* Tính kích thước gồm cả padding và border, tránh vỡ layout */
  margin: 0;                     /* Xóa khoảng cách lề ngoài mặc định của trình duyệt */
  padding: 0;                    /* Xóa khoảng đệm trong mặc định của trình duyệt */
}

/* Cuộn trang mượt mà khi nhảy neo và bù chiều cao header cố định */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;     /* Chừa khoảng trống phía trên để header cố định không che mục tiêu neo */
}

/* Nền và màu chữ trang web */
body {
  background-color: var(--warm-gray-bg); /* Nền xám ấm nhẹ nhàng toàn trang */
  color: var(--text-main);       /* Màu chữ đen than dễ đọc */
  font-family: var(--font-sans); /* Đồng bộ font Noto Sans trên toàn bộ website */
  line-height: 1.55;             /* Giãn dòng thoáng dễ đọc */
  overflow-x: clip;              /* Chống tràn ngang mà vẫn giữ position: sticky hoạt động chuẩn */
}

/* Đảm bảo toàn bộ nút bấm, ô nhập liệu, thẻ code và chữ trong SVG dùng chung font Noto Sans */
button,
input,
select,
textarea,
optgroup,
code,
kbd,
samp,
pre,
svg text {
  font-family: var(--font-sans);
}

/* Khung chứa nội dung chính trải rộng sát hai lề đồng bộ với thanh header */
.container {
  width: 100%;                   /* Trải rộng toàn bộ chiều ngang màn hình */
  max-width: 100%;               /* Không gom vào giữa màn hình lớn */
  padding-inline: 24px;          /* Chừa lề 24px sát mép trái/phải giống thanh header */
  margin-inline: 0;
}

/* Ẩn văn bản chỉ dành cho trình đọc màn hình (Accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Liên kết nhảy nhanh tới nội dung chính khi dùng bàn phím */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 2000;
  background-color: var(--orange-logo);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

/* Khung vòng sáng focus rõ ràng khi điều hướng bằng bàn phím (Tab) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange-logo);
  outline-offset: 2px;
}

/* ============================================================================
   [0] KHỐI ĐẦU TRANG CỐ ĐỊNH GỒM CẢ BANNER CHẠY VÀ THANH HEADER (#dcz-header-root)
   ============================================================================ */
#dcz-header-root {
  position: sticky;              /* Cố định cả banner chạy và thanh header khi cuộn trang */
  top: 0;                        /* Bám sát mép trên cùng màn hình */
  z-index: 1000;                 /* Nổi trên nội dung trang, vẫn giữ luồng tự nhiên không che nội dung */
  width: 100%;
  display: block;
}

/* ============================================================================
   [1] TẦNG 1: DẢI BANNER CHẠY THÔNG BÁO ĐẦU TRANG (.banner-chay)
   ============================================================================ */
.banner-chay {
  background-color: var(--orange-logo); /* Nền cam thương hiệu DCZ */
  background-image:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 14px),
    linear-gradient(90deg, #d44907 0%, var(--orange-logo) 35%, #ff7024 65%, #d44907 100%); /* Chuyển sắc cam + sọc chéo công nghiệp nhẹ */
  display: flex;                 /* Căn giữa nội dung chạy theo chiều dọc */
  clear: both;                   /* Tránh bị ảnh hưởng bởi float */
  float: none;                   /* Đảm bảo đứng riêng 1 tầng theo chiều dọc */
  width: 100%;                   /* Kéo dài hết chiều ngang màn hình */
  height: 22px;                  /* Chiều cao mỏng gọn cho dải thông báo */
  position: relative;            /* Vị trí tự nhiên ở tầng trên cùng */
  overflow: hidden;              /* Ẩn phần chữ tràn ra ngoài khung */
  align-items: center;           /* Căn chữ giữa theo chiều dọc */
  font-size: 12px;               /* Cỡ chữ nhỏ gọn, cân đối trong thanh chạy */
  line-height: 1;                /* Căn giữa theo chiều dọc chính xác */
  border-bottom: 1px solid #333333; /* Đường viền mảnh ngăn cách với tầng header bên dưới */
  z-index: 1001;                 /* Nổi trên các thành phần thông thường */
  color: var(--white);           /* Chữ màu trắng nổi bật trên nền cam */
}

/* Đường ray chứa 2 cụm chữ chạy liên tục */
.banner-chay-track {
  display: flex;                 /* Xếp 2 cụm nội dung nối tiếp nhau trên 1 hàng ngang */
  width: max-content;            /* Độ rộng tự động giãn vừa khít toàn bộ nội dung chữ */
  animation: chay-chu-ngang 25s linear infinite; /* Chạy đều liên tục vô hạn từ phải sang trái */
}

/* Tạm dừng chạy chữ khi người dùng rê chuột vào để dễ đọc */
.banner-chay:hover .banner-chay-track {
  animation-play-state: paused;
}

/* Mỗi cụm nội dung chữ bên trong đường ray */
.banner-chay-noi-dung {
  display: flex;                 /* Xếp các mục chữ nằm ngang */
  align-items: center;           /* Căn giữa theo chiều dọc */
  gap: 40px;                     /* Khoảng cách giữa các đoạn chữ */
  white-space: nowrap;           /* Ép chữ luôn nằm trên 1 dòng */
  padding-right: 40px;           /* Khoảng trống nối giữa cụm 1 và cụm 2 */
}

.noi-dung-chay {
  font-weight: 400;              /* Chữ thường không in đậm trên nền cam */
}

/* Chuyển động chạy chữ từ 0% sang -50% (chạy hết đúng 1 cụm để lặp lại mượt mà) */
@keyframes chay-chu-ngang {
  0% {
    transform: translateX(0%);   /* Vị trí bắt đầu */
  }
  100% {
    transform: translateX(-50%); /* Dịch sang trái đúng 50% (1 cụm nội dung) */
  }
}

@media (max-width: 700px) {
  .banner-chay {
    height: 26px;                /* Thu gọn chiều cao trên điện thoại */
    font-size: 12px;             /* Cỡ chữ nhỏ gọn vừa màn hình điện thoại */
  }
}

/* ============================================================================
   [2] TẦNG 2: HEADER CHÍNH NỀN ĐEN THAN, MENU 4 CẤP, TÌM KIẾM, GIỎ HÀNG & ĐĂNG NHẬP
   ============================================================================ */
.site-header {
  background-color: var(--charcoal); /* Nền đen than thương hiệu DCZ */
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 8% 50%, rgba(235, 92, 20, 0.14) 0%, transparent 28%),
    linear-gradient(95deg, #121418 0%, #1c1f25 50%, #14161a 100%); /* Nền than chuyển sắc + chấm kỹ thuật đồng bộ chân trang */
  background-size: 18px 18px, 100% 100%, 100% 100%;
  position: relative;            /* Nằm ngay dưới banner chạy trong khối #dcz-header-root cố định */
  z-index: 1000;                 /* Nổi trên nội dung trang và banner */
  width: 100%;                   /* Rộng hết chiều ngang */
  max-width: 100%;
  border-bottom: 2px solid var(--orange-logo); /* Đường viền cam đặc trưng ở cạnh dưới */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22); /* Đổ bóng tách lớp header với nội dung */
}

/* Khung chứa nội dung bên trong thanh header: trải rộng ra gần sát 2 mép trình duyệt */
.header-inner {
  width: 100%;                   /* Chiếm toàn bộ chiều ngang màn hình */
  max-width: 100%;               /* Không giới hạn 1440px để logo sát trái và Đăng nhập sát phải */
  margin: 0;
  padding: 10px 24px;            /* Chừa lề gọn 24px sát hai mép trình duyệt */
  display: flex;                 /* Xếp các khối logo, menu, tìm kiếm, giỏ hàng, đăng nhập nằm ngang */
  flex-wrap: nowrap;             /* Giữ trên 1 hàng ở desktop */
  align-items: center;           /* Căn giữa theo chiều dọc */
  justify-content: space-between; /* Đẩy cụm logo sang trái và cụm đăng nhập sang phải */
  gap: 14px;                     /* Khoảng cách tối thiểu giữa các khối */
  position: relative;            /* Làm mốc căn chỉnh cho bảng menu ngang */
}

/* Cụm bên trái gồm nút mở menu mobile và logo */
.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Nút mở menu trên thiết bị di động (ẩn trên máy tính) */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background-color: var(--charcoal-soft);
  border: 1px solid #353b45;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
}

/* Logo trong header */
.header-logo {
  position: relative;            /* Làm gốc định vị cho mũ Noel gắn trên đỉnh chữ Z */
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;             /* Không cắt phần chóp mũ Noel nhô nhẹ ra ngoài khung logo */
}

.header-inner img:not(.header-avatar-mini),
.header-logo img {
  height: 44px;                  /* Chiều cao ảnh logo cân đối thanh header */
  width: auto;                   /* Tự động giữ đúng tỷ lệ gốc */
  display: block;
}

/* Menu điều hướng chính trên desktop: luôn giữ đủ các mục không bị ép tràn khi co cửa sổ */
.main-nav {
  display: flex;                 /* Xếp các mục menu nằm ngang trên 1 hàng */
  align-items: center;
  flex: 1 0 auto;                /* Không co nhỏ hơn nội dung menu để giữ nguyên nút Liên hệ */
  justify-content: space-evenly; /* Dãn đều các nút menu */
  gap: 2px;
  padding-inline: 6px;
}

.nav-item {
  position: relative;            /* Làm mốc cho menu con Thương hiệu */
}

/* Liên kết / nút trên thanh điều hướng */
.nav-link {
  color: var(--white);           /* Chữ trắng rõ nét trên nền đen than */
  background: transparent;
  border: none;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  text-decoration: none;
  font-size: 15.5px;             /* Chữ các nút menu to rõ dễ đọc hơn */
  font-weight: 600;
  white-space: nowrap;           /* Ép chữ trên 1 dòng */
  padding: 8px 10px;             /* Khoảng chạm thoải mái */
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-item.is-open > .nav-link,
.nav-link.is-current {
  color: var(--orange-logo);     /* Đổi sang cam DCZ khi rê chuột hoặc đang mở/chọn */
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-caret {
  font-size: 11px;               /* Mũi tên chỉ thị có nhánh con */
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.nav-item.is-open > .nav-link .nav-caret {
  transform: rotate(180deg);
}

/* --- MENU CON THƯƠNG HIỆU (Thương hiệu DCZ & Các thương hiệu hợp tác) --- */
.brand-dropdown {
  position: absolute;
  top: calc(100% + 10px);        /* Đồng bộ khoảng cách thả xuống với menu Sản phẩm */
  left: 0;
  min-width: 520px;
  max-width: min(92vw, 560px);
  background-color: var(--white);
  color: var(--text-main);
  border: 1px solid var(--warm-border);
  border-top: 3px solid var(--orange-logo);
  border-radius: 0 0 10px 10px;  /* Đồng bộ bo góc dưới như .mega-4level-panel */
  box-shadow: var(--shadow-md);
  padding: 12px;
  z-index: 1100;
  /* Đồng bộ hiệu ứng ẩn/hiện trượt mượt 0.2s như menu thả ngang .mega-4level-panel */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Vùng đệm vô hình giúp di chuột từ nút Thương hiệu xuống bảng thả xuống không bị ngắt */
.brand-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item.is-open .brand-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hàng 2 thương hiệu chủ lực của DCZ */
.brand-dropdown-core {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* Nhóm các thương hiệu DCZ hợp tác nằm bên dưới */
.brand-dropdown-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--warm-border);
}

.brand-dropdown-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.brand-dropdown-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brand-dropdown-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--warm-border);
  background-color: var(--warm-gray-bg);
  color: var(--charcoal);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.brand-dropdown-chip:hover,
.brand-dropdown-chip:focus-visible {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.brand-dropdown-chip.is-belt {
  background-color: #fff4ee;
  border-color: #ffd8c2;
  color: var(--orange-logo);
}

.brand-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  transition: background-color 0.15s ease;
}

.brand-dropdown-item:hover,
.brand-dropdown-item:focus-visible {
  background-color: #fff4ee;
}

.brand-dropdown-item strong {
  font-size: 14px;
  color: var(--charcoal);
}

.brand-dropdown-item small {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- MENU MỞ NGANG PHÂN CẤP CHO MỤC SẢN PHẨM & THƯƠNG HIỆU --- */
.nav-item-products {
  position: relative;            /* Căn mép trái bảng menu thả xuống thẳng với lề trái của từng nút */
}

.mega-4level-panel {
  position: absolute;
  top: calc(100% + 10px);        /* Nằm ngay dưới mép dưới thanh header */
  left: 0;                       /* Bắt đầu từ đúng lề trái của nút menu đang mở */
  right: auto;
  width: max-content;            /* Khung menu tự ôm khít theo số cấp đang trỏ */
  min-width: 220px;
  max-width: calc(100vw - 40px);
  background-color: var(--white);
  color: var(--text-main);
  border: 1px solid var(--warm-border);
  border-top: 3px solid var(--orange-logo);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-md);
  z-index: 1100;
  padding: 10px 12px 12px;
  /* Trạng thái ẩn mặc định và hiệu ứng hiện từ từ 0.2s khi mở menu */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Vùng đệm vô hình nối nút menu và bảng thả xuống để di chuột không bị ngắt quãng */
.mega-4level-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

/* Khi mở menu Sản phẩm: hiện từ từ rõ nét và trượt lên nhẹ nhàng */
.nav-item-products.is-open .mega-4level-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Thanh đường dẫn đang chọn ở đầu bảng 4 cấp */
.mega-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--warm-gray-soft);
  font-size: 12.5px;
}

.mega-path-text {
  color: var(--text-muted);
}

.mega-path-text strong {
  color: var(--orange-logo);
}

/* Hàng cột mở ngang dần theo cấp đang trỏ chuột */
.mega-4cols {
  display: flex;                 /* Chỉ chiếm chỗ cho các cột đang hiển thị */
  align-items: flex-start;       /* Mỗi cột cao vừa đúng nội dung của mình, không dư khoảng trống */
  gap: 10px;
}

.mega-col {
  width: 210px;                  /* Độ rộng gọn gàng cho mỗi cấp */
  flex-shrink: 0;
  background-color: var(--warm-gray-bg);
  border-radius: 8px;
  padding: 6px;
  max-height: 300px;
  overflow-y: auto;
}

/* Ẩn cột cấp sau khi chưa trỏ chuột vào cấp trước */
.mega-col[hidden] {
  display: none;
}

/* Hiệu ứng hiện từ từ 0.2s khi cột cấp tiếp theo mở ra */
.mega-col:not([hidden]) {
  animation: megaColReveal 0.2s ease forwards;
}

@keyframes megaColReveal {
  from {
    opacity: 0;                  /* Bắt đầu mờ hoàn toàn */
    transform: translateX(-8px); /* Trượt nhẹ từ trái sang phải */
  }
  to {
    opacity: 1;                  /* Hiện rõ hoàn toàn */
    transform: translateX(0);
  }
}

.mega-col-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 4px 8px 8px;
}

.mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-node-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-main);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mega-node-btn:hover,
.mega-node-btn:focus-visible {
  background-color: var(--white);
  color: var(--orange-logo);
}

/* Nổi bật đường dẫn các cấp đang được chọn */
.mega-node-btn.is-active-path {
  background-color: var(--orange-logo);
  color: var(--white);
  font-weight: 700;
}

.mega-node-arrow {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.mega-sample-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background-color: var(--warm-gray-soft);
  color: var(--text-muted);
  flex-shrink: 0;
}

.mega-node-btn.is-active-path .mega-sample-badge {
  background-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.mega-empty-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 10px 8px;
  line-height: 1.5;
}

/* --- CỤM BÊN PHẢI HEADER: TÌM KIẾM + GIỎ HÀNG + ĐĂNG NHẬP / ĐĂNG KÝ --- */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;                /* Cho phép co nhẹ khi chia đôi màn hình để không đè vào menu */
  justify-content: flex-end;
  min-width: 0;
}

/* Khung bao ngoài thanh tìm kiếm và menu gợi ý sản phẩm thả xuống trên header */
.header-search-wrap {
  position: relative;
  flex: 1 1 160px;
  width: clamp(140px, 19vw, 400px); /* Co giãn hợp lý nhường chỗ cho đầy đủ menu */
  max-width: 100%;
  min-width: 130px;
}

/* Khung thanh tìm kiếm trên header */
.header-search {
  display: flex;                 /* Căn giữa icon, input và nút tìm kiếm */
  align-items: center;
  width: 100%;
  height: 44px;                  /* Chiều cao cân đối với logo và các nút */
  background-color: #f3f4f6;
  border: 1.5px solid #353b45;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

/* Menu thả xuống gợi ý sản phẩm bo 4 góc cân đối, đồng bộ kiểu menu thả toàn trang web DCZ */
.header-search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 2500;
  overflow: hidden;                /* Giữ 4 góc bo tròn cân đối, thanh cuộn nằm gọn bên trong */
  animation: dczSuggestDrop 0.2s ease;
}

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

.header-search-suggest[hidden] {
  display: none;
}

.header-suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background-color: var(--warm-gray-bg);
  border-bottom: 1px solid var(--warm-border);
}

/* Danh sách gợi ý cuộn dọc bên trong khung đã bo góc */
.header-suggest-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
}

/* Link Xem tất cả mã gợi ý đặt ngay bên phải tiêu đề Gợi ý sản phẩm */
.header-suggest-all-link {
  color: var(--orange-logo);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.header-suggest-all-link:hover {
  text-decoration: underline;
}

.header-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--black);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-suggest-item:hover,
.header-suggest-item.is-active {
  background-color: #fff4ee;
}

.header-suggest-item:hover .header-suggest-title,
.header-suggest-item.is-active .header-suggest-title {
  color: var(--orange-logo);
}

.header-suggest-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
}

.header-suggest-body {
  min-width: 0;
  flex: 1;
}

.header-suggest-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.header-suggest-title mark {
  background-color: #ffe2d2;
  color: var(--orange-logo);
  border-radius: 2px;
  padding: 0 2px;
}

.header-suggest-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-suggest-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-logo);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-suggest-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--charcoal);
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-suggest-footer {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  border-top: 1px solid var(--warm-border);
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange-logo);
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: background-color 0.2s ease;
}

.header-suggest-footer:hover {
  background-color: #fff4ee;
}

.header-search:focus-within {
  border-color: #353b45;         /* Giữ nguyên viền tối, không hiện khung cam khi click vào thanh tìm kiếm */
}

/* Biểu tượng kính lúp bên trái ô tìm kiếm */
.search-icon-left {
  width: 18px;
  height: 18px;
  margin-left: 10px;
  margin-right: 4px;
  color: #525866;
  flex-shrink: 0;
}

/* Ô nhập từ khóa tìm kiếm */
.search-input {
  flex: 1;
  min-width: 0;
  padding: 0 8px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--black);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13.5px;
}

.search-input::placeholder {
  color: #6b7280;
}

/* Bỏ khung viền cam mặc định khi click chuột hoặc focus vào ô nhập tìm kiếm */
.header-search input:focus,
.header-search input:focus-visible,
.search-input:focus,
.search-input:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Nút bấm Tìm kiếm nền cam DCZ gọn gàng, không khung viền thừa */
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(100% - 8px);      /* Cân đối lọt lòng bên trong hộp tìm kiếm */
  margin: 4px 4px 4px 6px;       /* Khoảng cách đều với viền hộp */
  padding: 0 16px;
  background-color: var(--orange-logo); /* Màu cam thương hiệu DCZ */
  color: var(--white);
  border: none;                  /* Bỏ khung viền quanh nút Tìm kiếm */
  border-radius: 6px;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  user-select: none;
}

.search-btn:hover {
  background-color: var(--orange-dark);
}

/* Nút Giỏ hàng đặt ngay bên trái khung Đăng nhập / Đăng ký */
.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  background-color: var(--charcoal-soft);
  border: 1px solid #353b45;
  color: var(--white);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.header-cart-btn:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

/* Huy hiệu số lượng giỏ hàng trên Header đặt nổi góc trên phải giống nút thông báo */
.header-cart-btn .cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: var(--orange-logo);
  border: 1px solid #16181c;
  color: var(--white);
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Nút chuông thông báo trên Header chính đặt giữa Giỏ hàng và Chọn ngôn ngữ, đồng bộ kích thước .header-cart-btn */
.header-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--charcoal-soft);
  border: 1px solid #353b45;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.header-bell-btn:hover,
.admin-bell-wrap.is-open .header-bell-btn {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.header-bell-btn svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 768px) {
  .header-bell-btn {
    width: 36px;
    height: 36px;
  }

  .header-bell-btn svg {
    width: 17px;
    height: 17px;
  }
}

.cart-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: var(--orange-logo);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Khung Đăng nhập / Đăng ký không viền, tách riêng từng nút với hiệu ứng hover giống menu */
.header-auth {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;                /* Không bị ép nhỏ khi co màn hình */
}

/* Từng liên kết Đăng nhập và Đăng ký riêng biệt */
.auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: none;                  /* Bỏ viền khung bao quanh */
  border-radius: 6px;
  background-color: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;           /* Không rớt dòng chữ */
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Hiệu ứng khi rê chuột vào từng nút Đăng nhập / Đăng ký giống .nav-link */
.auth-link:hover {
  color: var(--orange-logo);
  background-color: rgba(255, 255, 255, 0.06);
}

.auth-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Dấu gạch chéo mảnh ngăn cách giữa Đăng nhập và Đăng ký */
.auth-sep {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  user-select: none;
}

/* --- NGĂN KÉO MENU TRÊN ĐIỆN THOẠI (CHUYỂN TỪNG BƯỚC CÓ NÚT QUAY LẠI) --- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
}

.mobile-drawer-panel {
  position: relative;
  width: min(360px, 88vw);
  height: 100%;
  background-color: var(--white);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  z-index: 1;
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.25);
}

.mobile-drawer-head {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--orange-logo);
}

.mobile-drawer-title {
  font-size: 15px;
  font-weight: 700;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #3d434f;
  background: transparent;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}

.mobile-drawer-back {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--warm-gray-bg);
  border: none;
  border-bottom: 1px solid var(--warm-border);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-logo);
  cursor: pointer;
  text-align: left;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.mobile-step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-step-item {
  width: 100%;
  min-height: 46px;             /* Vùng chạm thoải mái trên điện thoại */
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-step-item:hover,
.mobile-step-item:active {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

/* ============================================================================
   [3] HỆ THỐNG NÚT BẤM & NHÃN CHUNG
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-sans); /* Đồng bộ font Noto Sans */
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Nút chính cam DCZ: chuyển sắc nổi khối, ánh sáng cạnh trên và đổ bóng cam dịu */
.btn-primary {
  background-color: var(--orange-logo);
  background-image: linear-gradient(135deg, #ff7024 0%, var(--orange-logo) 55%, #d44907 100%);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 4px 12px rgba(235, 92, 20, 0.28);
}

.btn-primary:hover {
  /* Giữ nền chuyển sắc đồng nhất toàn nút khi rê chuột, tránh lỗi chia đôi mảng tối do background-size 220% */
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px rgba(235, 92, 20, 0.36);
  transform: translateY(-1px);
}

/* Nút tối màu than DCZ: chuyển sắc kim loại tối sang trọng */
.btn-dark {
  background-color: var(--charcoal);
  background-image: linear-gradient(135deg, #2b303a 0%, var(--charcoal) 55%, #111317 100%);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 12px rgba(24, 26, 30, 0.22);
}

.btn-dark:hover {
  background-color: var(--black);
  background-image: linear-gradient(135deg, #1f232a 0%, #111317 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* Nút viền sáng chuyển sắc xám ấm dịu */
.btn-outline {
  background-color: var(--white);
  background-image: linear-gradient(180deg, #ffffff 0%, #f6f3ef 100%);
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-outline:hover {
  background-color: var(--charcoal);
  background-image: linear-gradient(135deg, #2b303a 0%, var(--charcoal) 55%, #111317 100%);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--charcoal);
}

.btn-full {
  width: 100%;
}

/* Nhãn đánh dấu dữ liệu mẫu / trạng thái chờ xác nhận (bỏ khung viền & nền bo tròn) */
.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;                            /* Bỏ khoảng đệm khung */
  border-radius: 0;                      /* Bỏ bo tròn */
  background-color: transparent;        /* Bỏ nền cam nhạt */
  border: none;                          /* Không hiển thị viền khung */
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange-dark);             /* Dùng biến màu cam đậm trong :root */
}

.notice-box {
  background-color: #fff8f4;
  border: 1px solid #ffd4be;
  border-left: 4px solid var(--orange-logo);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-main);
}

.section-block {
  padding: 28px 0 12px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* Đồng bộ tiêu đề mục lớn theo phong cách vạch chéo cam DCZ */
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
}

.section-head h2::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
}

.section-head p {
  color: var(--slate);
  font-size: 14.5px;
  margin-top: 4px;
}

/* ============================================================================
   [4] BANNER LỚN ĐẦU TRANG & BANNER NHỎ (CẤU HÌNH TỪ site-config.js)
   ============================================================================ */
.hero-banner-section {
  padding: 24px 0 12px;
}

.hero-banner-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(125deg, var(--charcoal) 0%, #242933 65%, #3a2318 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

/* Banner đầu trang giữ tỷ lệ chuẩn 3:1 để hiển thị trọn ảnh trên mọi kích thước màn hình */
.hero-banner-media {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Khối nội dung banner đầu trang: chiều cao tối thiểu 450px cân đối trên desktop */
.hero-banner-fallback {
  min-height: 450px;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.hero-banner-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(254, 86, 11, 0.18);
  color: #ff9a6c;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-banner-fallback h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-banner-fallback p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 620px;
  margin-bottom: 20px;
}

.hero-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-banner-visual {
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.hero-banner-visual img {
  max-width: 210px;
  height: auto;
}

.hero-banner-visual small {
  color: #cbd5e1;
  font-size: 12.5px;
}

/* Banner nhỏ theo danh mục */
.small-banners-section {
  padding: 16px 0 32px;
}

.small-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Thẻ banner nhỏ 3 cột: hiệu ứng nổi và phóng nhẹ ảnh đồng bộ với phần Tin tức & kiến thức (không viền cam) */
.small-banner-card {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.small-banner-media {
  width: 100%;
  aspect-ratio: 16 / 7;           /* Giữ đúng tỉ lệ ảnh banner nhỏ */
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.small-banner-card:hover .small-banner-media,
.small-banner-card:hover img {
  transform: scale(1.03);
}

.small-banner-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.small-banner-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--orange-logo);
  text-transform: uppercase;
}

.small-banner-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
}

.small-banner-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  flex: 1;
}

.small-banner-link {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange-logo);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================================
   [5] KHỐI THƯƠNG HIỆU & DANH MỤC SẢN PHẨM (BỐ CỤC THOÁNG, KHÔNG VẠCH DÀY)
   ============================================================================ */
.brands-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Lưới 5 thương hiệu mỗi hàng (3 hàng = 15 thương hiệu) trên trang chủ */
.brands-showcase-grid.is-home-4col {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.brands-showcase-grid.is-home-4col .brand-showcase-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  gap: 10px;
}

/* Khung logo thương hiệu hình vuông tỉ lệ 1:1 */
.brand-square-logo {
  width: 100%;
  max-width: 118px;
  aspect-ratio: 1 / 1;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.brand-square-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-square-logo.is-text-logo strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--charcoal);
}

.brand-square-logo.is-text-logo span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.brand-showcase-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--charcoal);
}

.brand-showcase-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 10px;
  line-height: 1.45;
}

/* ============================================================================
   [5B] KHỐI CHỌN THƯƠNG HIỆU TƯƠNG TÁC TRÊN TRANG CHỦ (.brand-finder-section)
   ============================================================================ */
.brand-finder-section {
  background: linear-gradient(125deg, #f7f8fa 0%, #f7f8fa 68%, rgba(242, 92, 5, 0.08) 68%, rgba(242, 92, 5, 0.05) 75%, #eef0f4 75%);
  padding: 36px 0;
}

.brand-finder-header {
  margin-bottom: 18px;
}

.brand-finder-accent {
  display: inline-flex;
  gap: 5px;
  margin-bottom: 8px;
}

.brand-finder-accent span {
  width: 12px;
  height: 5px;
  transform: skewX(-24deg);
  background-color: var(--charcoal);
}

.brand-finder-accent span:last-child {
  background-color: var(--orange-logo);
}

.brand-finder-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.25;
}

.brand-finder-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.brand-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.brand-cat-pill {
  padding: 6px 16px;
  border-radius: 7px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--charcoal);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.brand-cat-pill:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.brand-cat-pill.is-active {
  background-color: var(--orange-logo);
  border-color: var(--orange-logo);
  color: var(--white);
}

/* Khung thanh chọn thương hiệu kèm 2 nút mũi tên trượt trái/phải */
.brand-strip-shell {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nút mũi tên 2 đầu thanh thương hiệu */
.brand-strip-nav {
  width: 34px;
  height: 56px;
  border-radius: 9px;
  border: 1px solid var(--warm-border);
  background-color: #f6f7f9;
  color: var(--charcoal);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.brand-strip-nav:hover:not(:disabled) {
  background-color: var(--white);
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.brand-strip-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.brand-strip-nav[hidden] {
  display: none;
}

/* Dải chọn logo các thương hiệu trượt ngang (tự động cuộn mượt bằng JS 25s/vòng) */
.brand-strip-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.brand-strip-bar::-webkit-scrollbar {
  display: none;
}

/* Mỗi ô thương hiệu trong dải chọn hãng: nền trắng đồng bộ với nền logo, giảm padding để logo phóng to vừa khung */
.brand-strip-item {
  flex: 0 0 110px;
  height: 56px;
  padding: 3px 5px;              /* Giảm khoảng đệm để logo bên trong hiển thị to và sát khung hơn */
  border-radius: 9px;
  border: 1.5px solid #eceef2;
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.brand-strip-item:hover {
  background-color: var(--white);
  border-color: var(--warm-border);
}

.brand-strip-item.is-active {
  background-color: var(--white);
  border-color: var(--orange-logo);
  box-shadow: 0 2px 8px rgba(242, 92, 5, 0.14);
}

/* Phóng to ảnh logo mặc định vừa khít chiều rộng & chiều cao khung mà không làm méo tỷ lệ */
.brand-strip-item img {
  width: 100%;                   /* Giãn tối đa theo chiều ngang khả dụng của ô */
  height: 100%;                  /* Giãn tối đa theo chiều cao khả dụng của ô */
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;           /* Giữ nguyên tỷ lệ gốc của logo, không cắt chữ */
  display: block;
}

/* Riêng logo SKF: ảnh tràn viền xanh + vạch trắng + dải đỏ phủ kín 100% ô chọn hãng */
.brand-strip-item[data-brand-slug="skf"] {
  padding: 0;
  overflow: hidden;
}

.brand-strip-item[data-brand-slug="skf"] img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* Riêng logo FBJ: ảnh chữ đỏ cắt sát viền nên đặt padding vừa phải để chữ FBJ® nằm gọn trong ô */
.brand-strip-item[data-brand-slug="fbj"] {
  padding: 6px 14px;
}

/* Giữ nguyên tỷ lệ ảnh logo FBJ vừa vặn chiều cao ô chọn hãng */
.brand-strip-item[data-brand-slug="fbj"] img {
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

/* Riêng logo F&D: ảnh nền trắng chữ xanh nên giữ nền trắng mặc định và tăng kích thước hiển thị cho rõ nét */
.brand-strip-item[data-brand-slug="f-and-d"] {
  padding: 4px 10px;
  overflow: hidden;
}

/* Giữ nguyên tỷ lệ ảnh logo F&D nằm trọn chiều cao ô để không bị cắt chữ */
.brand-strip-item[data-brand-slug="f-and-d"] img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

/* Riêng logo IKO: giảm padding để khối chữ nhật đỏ phóng to sát khung ô chọn hãng */
.brand-strip-item[data-brand-slug="iko"] {
  padding: 3px 4px;              /* Giữ viền trắng mỏng đều quanh logo IKO */
  overflow: hidden;
}

/* Phóng to ảnh logo IKO vừa khít khung ô chọn hãng mà không bị cắt chữ */
.brand-strip-item[data-brand-slug="iko"] img {
  width: 100%;                   /* Phủ hết chiều ngang khả dụng */
  height: 100%;                  /* Phủ hết chiều cao khả dụng */
  max-width: none;
  max-height: none;
  object-fit: contain;           /* Giữ nguyên tỷ lệ khối chữ nhật đỏ IKO */
}

/* Riêng logo INA: hình thoi cao nên giảm padding và tăng chiều cao hiển thị cho rõ nét */
.brand-strip-item[data-brand-slug="ina"] {
  padding: 4px 10px;
}

/* Giữ nguyên tỷ lệ logo INA vừa khít chiều cao ô chọn hãng */
.brand-strip-item[data-brand-slug="ina"] img {
  max-height: 46px;
}

/* Riêng logo JNS: giảm padding để khối chữ nhật đỏ phóng to sát khung ô chọn hãng */
.brand-strip-item[data-brand-slug="jns"] {
  padding: 3px 4px;              /* Giữ viền trắng mỏng đều quanh logo JNS */
  overflow: hidden;
}

/* Phóng to ảnh logo JNS vừa khít khung ô chọn hãng mà không bị cắt chữ */
.brand-strip-item[data-brand-slug="jns"] img {
  width: 100%;                   /* Phủ hết chiều ngang khả dụng */
  height: 100%;                  /* Phủ hết chiều cao khả dụng */
  max-width: none;
  max-height: none;
  object-fit: contain;           /* Giữ nguyên tỷ lệ khối chữ nhật đỏ JNS */
}

/* Riêng logo DYZV: ảnh vuông kín khung nên tăng chiều cao tối đa để chữ và vòng bi rõ nét */
.brand-strip-item[data-brand-slug="dyzv"] {
  padding: 4px 10px;
}

/* Giữ nguyên tỷ lệ logo DYZV vừa khít chiều cao ô chọn hãng */
.brand-strip-item[data-brand-slug="dyzv"] img {
  max-height: 46px;
}

/* Riêng logo FAG: ảnh vuông có chữ ngang ở giữa nên căn theo chiều rộng ô cho chữ FAG to rõ */
.brand-strip-item[data-brand-slug="fag"] {
  padding: 4px 10px;
  overflow: hidden;
}

/* Giữ nguyên tỷ lệ ảnh logo FAG và phóng vừa chiều rộng ô chọn hãng */
.brand-strip-item[data-brand-slug="fag"] img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Riêng logo ASAHI: ảnh vuông có chữ ngang ở giữa nên căn theo chiều rộng ô cho chữ ASAHI to rõ */
.brand-strip-item[data-brand-slug="asahi"] {
  padding: 4px 10px;
  overflow: hidden;
}

/* Giữ nguyên tỷ lệ ảnh logo ASAHI và phóng vừa chiều rộng ô chọn hãng */
.brand-strip-item[data-brand-slug="asahi"] img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Riêng logo NTN: nền xanh phủ kín toàn bộ ô chọn hãng không để viền trắng */
.brand-strip-item[data-brand-slug="ntn"] {
  padding: 0;
  overflow: hidden;
}

/* Ảnh logo NTN phủ kín khung (object-fit: cover cắt phần nền xanh thừa trên dưới, giữ trọn chữ NTN) */
.brand-strip-item[data-brand-slug="ntn"] img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* Riêng logo BANDO: nới ô theo tỷ lệ ảnh để logo lớn hơn mà không cắt chữ B và chữ O */
.brand-strip-item[data-brand-slug="bando"] {
  flex: 0 0 154px; /* Tỉ lệ gần 570:208 của ảnh, giúp dải đỏ và đen kín chiều ngang */
  padding: 0;
  overflow: hidden;
}

/* Phóng logo BANDO sát khung theo đúng tỷ lệ, giữ trọn dải đỏ, chữ và dải đen */
.brand-strip-item[data-brand-slug="bando"] img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Riêng logo LK: ảnh khung chữ nhật sát viền nên giữ nguyên tỷ lệ vừa khít chiều cao ô để không bị cắt viền đỏ */
.brand-strip-item[data-brand-slug="lk"] {
  padding: 4px 10px;
}

/* Giữ nguyên tỷ lệ ảnh logo LK nằm gọn trong chiều cao ô chọn hãng */
.brand-strip-item[data-brand-slug="lk"] img {
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
}

/* Khung thông báo khi thương hiệu chưa được cập nhật sản phẩm */
.brand-empty-state {
  background-color: var(--white);
  border: 1px dashed var(--warm-border);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  margin-top: 8px;
}

/* Tiêu đề thông báo chưa cập nhật sản phẩm */
.brand-empty-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
}

/* Mô tả phụ thông báo chưa cập nhật sản phẩm */
.brand-empty-desc {
  margin: 0;
  font-size: 14px;
  color: var(--slate);
}

.brand-strip-wordmark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--charcoal);
}

/* Logo SKF thuần chữ trắng kiểu slab-serif trên khung xanh dương và dải đỏ */
.brand-skf-badge {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.brand-skf-top {
  flex: 1;
  background-color: #005ba9;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans); /* Đồng bộ font Noto Sans cho toàn bộ thẻ badge */
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1;
}

.brand-skf-bottom {
  height: 7px;
  background-color: #e31837;
  flex-shrink: 0;
}

/* Lưới 8 sản phẩm mỗi hàng x 3 hàng (24 sản phẩm) trên màn hình desktop & laptop */
@media (min-width: 961px) {
  .product-grid.brand-products-8grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Nút xem tất cả sản phẩm của thương hiệu đang chọn */
.brand-view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.brand-view-all-btn {
  padding: 10px 24px;
  border-radius: 9px;
  font-size: 14px;
}
.brand-detail-card {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.brand-detail-left {
  padding-right: 18px;
  border-right: 1px solid var(--warm-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.brand-detail-logo-wrap {
  width: 100%;
  max-width: 220px;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.brand-detail-logo-wrap img {
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-detail-wordmark {
  font-size: 28px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: 0.5px;
}

.brand-detail-left h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
}

.brand-detail-left p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.brand-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}

.brand-detail-tag {
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--charcoal);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.brand-detail-tag:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.brand-detail-cta {
  margin-top: 6px;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 14px;
}

.brand-detail-right {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.brand-subcat-card {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.brand-subcat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-logo);
}

.brand-subcat-visual {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-subcat-visual svg {
  max-width: 100%;
  max-height: 100%;
}

.brand-subcat-card strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--charcoal);
}

.brand-subcat-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-logo);
}

.brand-showcase-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Khung logo thương hiệu DCZ: đồng bộ nền trắng và viền mỏng giống thẻ các thương hiệu đối tác */
.brand-showcase-logo {
  width: 140px;
  height: 76px;
  object-fit: contain;
  background-color: var(--white);
  border: 1px solid var(--warm-gray-soft);
  border-radius: 8px;
  padding: 8px 12px;
  flex-shrink: 0;
}

/* Thanh điều hướng breadcrumb trang con */
.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 6px;            /* Giữ khoảng cách sát gọn ngay dưới thanh header */
  font-size: 13.5px;
  color: var(--text-muted);
}

.page-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: var(--orange-logo);
}

/* Khối tiêu đề đầu các trang con: đồng bộ kiểu vạch chéo cam DCZ */
.page-header-box {
  padding: 14px 0 22px;
}

.page-header-box h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.page-header-box h1::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
}

.page-header-box p {
  color: var(--slate);
  font-size: 14.5px;
}

/* Bố cục trang danh mục sản phẩm */
/* Thu gọn khoảng đệm dưới của .catalog-layout trên máy tính để số trang sát dải cam */
.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-bottom: 12px;
}

/* Cột lọc bên trái (thoáng, dùng khoảng trắng và bóng nhẹ) */
.catalog-sidebar {
  background-color: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.cat-filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Danh sách lọc nhanh theo hãng sản xuất trong sidebar: có thanh cuộn gọn nếu nhiều hãng */
.brand-filter-list {
  margin-top: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

.cat-filter-btn {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-sans);  /* Đồng bộ font Noto Sans mặc định */
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; /* Đồng bộ tốc độ hiệu ứng 0.2s toàn web */
}

.cat-filter-btn:hover {
  background-color: var(--warm-gray-bg);
  color: var(--orange-logo);
}

.cat-filter-btn.is-active {
  background-color: #fff4ee;
  color: var(--orange-logo);
  font-weight: 700;
}

/* Cụm bên phải của mỗi dòng lọc: hiển thị số lượng sản phẩm và mũi tên mở rộng */
.cat-filter-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Nhãn số lượng sản phẩm nhỏ gọn trong cây bộ lọc */
.cat-count-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--warm-gray-bg);
  padding: 1px 6px;
  border-radius: 999px;
}

.cat-filter-btn.is-active .cat-count-badge {
  background-color: rgba(254, 86, 11, 0.14);
  color: var(--orange-logo);
}

/* Mũi tên mở rộng mục con đồng bộ hiệu ứng xoay 0.2s như .nav-caret trên Header */
.cat-caret {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.cat-filter-btn.is-expanded .cat-caret {
  transform: rotate(180deg);
  color: var(--orange-logo);
}

/* Danh sách nhánh con trong bộ lọc có vạch dẫn dọc mảnh và hiệu ứng mở mượt 0.2s */
.cat-sub-list {
  list-style: none;
  padding-left: 12px;
  margin-left: 10px;
  margin-top: 3px;
  border-left: 1.5px solid var(--warm-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: catSubReveal 0.2s ease forwards;
}

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

/* Khung tra cứu phía trên danh sách sản phẩm trải hết chiều ngang cột phải */
.catalog-top-controls {
  display: block;
  margin-bottom: 18px;
}

.catalog-top-controls .dimension-search-card,
.catalog-top-controls .catalog-toolbar {
  margin-bottom: 0;
}

.catalog-top-controls .dimension-search-form {
  grid-template-columns: minmax(160px, 1.3fr) auto repeat(3, minmax(85px, 1fr)) auto auto;
}

.catalog-top-controls .dimension-search-form .btn {
  padding: 10px 16px;
  white-space: nowrap;
}

.catalog-toolbar {
  background-color: var(--white);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.catalog-sort-wrap {
  min-width: 168px;
}

.catalog-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}

@media (max-width: 1220px) {
  .catalog-top-controls {
    grid-template-columns: 1fr;
  }
}

.catalog-input,
.catalog-select,
.form-control {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background-color: var(--warm-gray-bg);
  color: var(--text-main);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

textarea.form-control {
  height: auto;
  padding: 10px 12px;
}

.catalog-input:focus,
.catalog-select:focus,
.form-control:focus {
  background-color: var(--white);
  border-color: var(--orange-logo);
  outline: none;
}

.catalog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Lưới thẻ sản phẩm: 8 sản phẩm trên 1 hàng trên màn hình lớn */
.product-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr)); /* 8 sản phẩm mỗi hàng trên desktop */
  gap: 10px;                     /* Khoảng cách gọn giữa các thẻ */
}

/* Lưới sản phẩm liên quan ở trang chi tiết: 8 sản phẩm mỗi hàng trên màn hình lớn */
@media (min-width: 1261px) {
  #detail-related-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Khung thẻ sản phẩm: khóa overflow để nút không bao giờ tràn sang thẻ kế bên */
.product-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 10px;                 /* Đệm trong gọn giúp thẻ nhỏ nhắn hơn */
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;           /* Khung ảnh sản phẩm hình vuông 1:1 */
  border-radius: 7px;
  background-color: var(--warm-gray-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Khi hiển thị logo hãng làm ảnh đại diện sản phẩm: giữ nguyên tỉ lệ, căn giữa trên nền trắng không bị cắt viền */
.product-card-img-wrap img.is-brand-logo {
  object-fit: contain;
  padding: 16px;
  background-color: var(--white);
}

.product-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  text-align: center;
  color: var(--text-muted);
}

.product-img-placeholder strong {
  font-size: 14px;               /* Cỡ chữ mã hàng gọn trong khung ảnh nhỏ */
  color: var(--charcoal);
}

.product-img-placeholder small {
  font-size: 10.5px;
}

.product-card-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

.product-sku-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-logo);
}

.product-brand-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--warm-gray-bg);
  padding: 2px 6px;
  border-radius: 999px;
}

/* Trạng thái Còn hàng chữ xanh gọn gàng, không khung nền bọc ngoài */
.product-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;                /* Chữ xanh lá cây đậm dễ đọc */
  background: transparent;
  border: none;
  padding: 0;
  white-space: nowrap;
}

.product-stock-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #16a34a;     /* Chấm tròn xanh lá nổi bật */
}

.product-title-link {
  font-size: 13.5px;             /* Tên sản phẩm gọn vừa khung 6 cột */
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.3;
}

.product-title-link:hover {
  color: var(--orange-logo);
}

/* Hàng chứa tên hãng (bên trái, nhấn mạnh) và trạng thái Còn hàng (bên phải) cân đối */
.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Nhấn mạnh tên hãng DCZ Bearings / DCZ Power */
.product-brand-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-logo);     /* Nhấn mạnh bằng màu cam thương hiệu DCZ */
  letter-spacing: 0.2px;
}

.product-path-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Bảng 3 dòng kích thước d, D, B gọn gàng có đường kẻ ngăn cách trong thẻ sản phẩm */
.product-card-specs {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
  border-top: 1px solid var(--warm-border);
}

/* Xếp dọc nhãn và giá trị kích thước để không bị gãy dòng khi thông số dài */
.product-spec-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 5px 0;
  border-bottom: 1px solid var(--warm-border);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-main);
}

.product-spec-row span {
  color: var(--text-muted);
  white-space: nowrap;
}

/* Giá trị kích thước trên thẻ sản phẩm: nhấn mạnh nhẹ nhàng, không quá đậm */
.product-spec-row strong {
  color: var(--charcoal);
  font-weight: 600;
  white-space: nowrap;
}

/* Chữ "Đang cập nhật" cho các mã chưa có số đo */
.spec-updating {
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
  font-size: 11px;
}

.product-price-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: auto;
  padding-top: 4px;
}

/* Hai nút Chi tiết & Thêm vào giỏ chia tỷ lệ hợp lý để chữ Thêm vào giỏ luôn nằm trên 1 dòng */
.product-card-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 6px;
  margin-top: 2px;
}

.product-card-actions .btn {
  padding: 6px 4px;              /* Giảm chiều cao và lề ngang nút bấm trong thẻ nhỏ */
  font-size: 11px;
  white-space: nowrap;
  border-radius: 6px;
}

/* Trạng thái không tìm thấy sản phẩm */
.empty-state-box {
  background-color: var(--white);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.empty-state-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.empty-state-box p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* Phân trang */
/* Thanh phân trang căn giữa, tự xuống dòng và giữ khoảng cách thoáng giữa các nút */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--text-main);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-weight: 600;
  cursor: pointer;
}

.page-btn.is-active {
  background-color: var(--orange-logo);
  border-color: var(--orange-logo);
  color: var(--white);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ============================================================================
   [6] TRANG CHI TIẾT SẢN PHẨM
   ============================================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(0, 1fr); /* Cột ảnh ~500px khớp chiều ngang hàng nút thao tác bên dưới */
  gap: 28px;
  align-items: start;
  background-color: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* Phóng to nhãn Mã hàng và Thương hiệu trên trang chi tiết sản phẩm cho dễ đọc */
.detail-media-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-purchase-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hàng nút thao tác (số lượng, Thêm vào giỏ, Yêu cầu báo giá, Đặt hàng ngay) luôn nằm cùng 1 hàng, thẳng mép khung ảnh */
.detail-action-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 4px;
  width: 100%;
}

/* Các nút thao tác tự giãn đều trên cùng 1 hàng để mép phải nút Đặt hàng ngay thẳng hàng với mép phải khung ảnh */
.detail-action-row .btn {
  flex: 1 1 0;
  padding: 10px 8px;
  font-size: 13.5px;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

/* Trên màn hình điện thoại quá hẹp mới cho phép xuống dòng để không tràn ngang */
@media (max-width: 480px) {
  .detail-action-row {
    flex-wrap: wrap;
  }
}

.detail-media-col .product-sku-tag,
.detail-info-col .product-sku-tag {
  font-size: 15px;
}

.detail-media-col .product-brand-tag,
.detail-info-col .product-brand-tag {
  font-size: 13.5px;
  padding: 4px 12px;
}

/* Khung ảnh chính trong trang chi tiết sản phẩm: rộng bằng toàn bộ cột (thẳng lề phải nút Đặt hàng ngay) */
.detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--warm-gray-bg);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Bố cục 2 cột trong tab Thông số kỹ thuật: bảng thông số bên trái, bản vẽ mặt cắt bên phải ngang hàng Tên sản phẩm */
.detail-specs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .detail-specs-layout {
    grid-template-columns: 1fr;
  }
}

/* Khung hiển thị bản vẽ mặt cắt kỹ thuật dây curoa trong trang chi tiết sản phẩm */
.detail-cross-section-card {
  background-color: var(--warm-gray-bg); /* Nền xám ấm dịu mắt từ :root */
  border: 1px solid var(--warm-border);  /* Viền xám ấm đồng bộ */
  border-radius: var(--radius);          /* Bo góc chuẩn toàn trang */
  padding: 14px 16px;
  margin-bottom: 0;
  font-family: var(--font-sans);         /* Giữ mặc định font Noto Sans */
}

.detail-cross-section-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.detail-cross-section-card svg {
  width: 100%;
  max-width: 440px;              /* Rộng rãi để hiển thị rõ nét bản vẽ răng cung tròn & kích thước Catalogue */
  height: auto;
  display: block;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail-thumb-btn {
  width: 68px;
  height: 54px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--warm-gray-bg);
  cursor: pointer;
  padding: 0;
}

.detail-thumb-btn.is-active {
  border-color: var(--orange-logo);
}

.detail-info-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.25;
}

.detail-price-box {
  background-color: var(--warm-gray-bg);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-price-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange-logo);
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--white);
}

/* Thu hẹp nút cộng/trừ cho khung chọn số lượng gọn gàng */
.qty-selector button {
  width: 28px;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.qty-selector button:focus-visible {
  outline: none;                 /* Bỏ viền cam/đỏ khi bấm nút */
}

/* Thu hẹp ô nhập số lượng và bỏ viền cam/đỏ khi chọn */
.qty-selector input {
  width: 40px;
  height: 38px;
  border: none;
  outline: none;
  text-align: center;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 14.5px;
  font-weight: 700;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-selector input:focus,
.qty-selector input:focus-visible {
  outline: none;                 /* Bỏ 2 vạch viền cam/đỏ bên trong khung */
}

/* Ẩn nút mũi tên mặc định của input number để khung gọn và số căn giữa */
.qty-selector input::-webkit-inner-spin-button,
.qty-selector input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.specs-table th,
.specs-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--warm-gray-soft);
}

.specs-table th {
  width: 40%;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================================================
   [7] GIỎ HÀNG, FORM BÁO GIÁ, TÀI KHOẢN & CÁC TRANG NỘI DUNG
   ============================================================================ */
.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.surface-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--warm-gray-soft);
}

.cart-item-row:last-child {
  border-bottom: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
}

.form-error-msg {
  font-size: 12.5px;
  color: #dc2626;
  min-height: 16px;
}

.status-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
}

.status-banner.is-warn {
  background-color: #fff8f4;
  border: 1px solid #ffd4be;
  color: #9a3412;
}

.status-banner.is-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* Trang Đăng nhập / Đăng ký / Quên mật khẩu */
.auth-page-wrap {
  padding: 40px 0 60px;
  display: flex;
  justify-content: center;
}

.auth-card-box {
  width: 100%;
  max-width: 460px;
  background-color: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--orange-logo);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background-color: var(--warm-gray-bg);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  border: none;
  background: transparent;
  padding: 9px 8px;
  border-radius: 7px;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-tab-btn.is-active {
  background-color: var(--charcoal);
  color: var(--white);
}

/* Bản đồ Google Maps */
.maps-embed-box {
  width: 100%;
  height: 300px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--warm-gray-bg);
}

.maps-embed-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================================
   [8] DẢI CAM KẾT DỊCH VỤ & CHÂN TRANG (.footer-trust-bar & .site-footer)
   ============================================================================ */

/* Dải 6 tiêu chí cam kết nền cam thương hiệu DCZ: chuyển sắc + sọc chéo cơ khí mờ đồng bộ thanh chạy đầu trang */
.footer-trust-bar {
  background-color: var(--orange-logo); /* Nền cam chủ đạo theo nhận diện DCZ */
  background-image:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 14px),
    linear-gradient(90deg, #d44907 0%, var(--orange-logo) 35%, #ff7024 65%, #d44907 100%);
  color: var(--white);
  height: 30px;
  padding: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Đường chạy liên tục nối tiếp không khoảng trống, tạm dừng khi rê chuột */
.footer-trust-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: footerTrustMarquee 45s linear infinite;
}

.footer-trust-bar:hover .footer-trust-track {
  animation-play-state: paused;
}

/* Chia khoảng cách đều và gọn (20px) giữa các tiêu chí nối tiếp nhau */
.footer-trust-group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}

/* Mỗi tiêu chí: icon tròn trắng và chữ căn tuyệt đối chính giữa theo chiều dọc */
.footer-trust-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  height: 20px;
  gap: 7px;
  white-space: nowrap;
}

/* Vòng tròn trắng nhỏ gọn chứa biểu tượng SVG màu đen than */
.footer-trust-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;            /* Bo tròn tuyệt đối */
  background-color: var(--white);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.footer-trust-icon svg {
  width: 11px;
  height: 11px;
  display: block;
}

.footer-trust-label {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1;
  transform: translateY(0.5px);
}

@keyframes footerTrustMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Chân trang DCZ: nền than chuyển sắc kết hợp chấm kỹ thuật mảnh và ánh cam dịu đồng bộ thương hiệu */
.site-footer {
  background-color: var(--charcoal);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 10% 15%, rgba(235, 92, 20, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 90% 88%, rgba(235, 92, 20, 0.09) 0%, transparent 42%),
    linear-gradient(160deg, #16181d 0%, #1d2026 55%, #121418 100%);
  background-size: 22px 22px, 100% 100%, 100% 100%, 100% 100%;
  color: var(--text-light);
  border-top: 3px solid var(--orange-logo);
  padding: 44px 0 24px;
  margin-top: 0;                 /* Nối liền mạch ngay dưới dải cam kết */
}

/* Bố cục tổng thể chân trang: 2 hàng x 2 cột, cân đối khoảng trống giữa 3 khối và Bản đồ */
.footer-master-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(400px, 1fr);
  gap: 0 28px;
  align-items: stretch;          /* Banner và Bản đồ giãn đều theo từng hàng tương ứng */
  margin-bottom: 24px;
}

/* Đường line ngang nối liền mạch từ bên trái sang giữa Banner và Bản đồ */
.footer-divider-line {
  grid-column: 1 / -1;
  height: 1px;
  background-color: #262b33;
  margin: 18px 0;
}

/* Nửa trên: chỉ hiển thị Banner DCZ thuần túy không kèm văn bản thừa */
.footer-about-banner {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2b313b;
  background-color: var(--charcoal-soft);
  height: 100%;
  min-height: 200px;
}

.footer-about-banner svg,
.footer-about-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Nửa dưới: Hộp bản đồ Google Maps địa chỉ DCZ */
.footer-right-map {
  background-color: var(--charcoal-soft);
  border: 1px solid #2b313b;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
}

.footer-right-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.footer-right-map-head a {
  color: var(--orange-logo);
  text-decoration: none;
  font-size: 12px;
}

.footer-right-map-head a:hover {
  text-decoration: underline;
}

.footer-right-map-frame {
  flex: 1;                       /* Bản đồ lấp đầy phần còn lại của nửa dưới */
  width: 100%;
  min-height: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #353b45;
}

.footer-right-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Bố cục chân trang chia 2 khối: bên trái (Logo + Công ty + Chi nhánh), bên phải (các cột liên kết cân đối) */
.footer-layout {
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); /* Cân khoảng cách giữa chi nhánh và cột giữa */
  gap: 28px;
  align-items: start;
  margin-bottom: 20px;           /* Thu gọn khoảng cách giữa hàng 1 và hàng 2 */
}

/* Khối bên trái chân trang: logo ở góc trên trái và thông tin xếp dọc bên dưới */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo-link {
  display: block;
  width: 100%;                   /* Khung logo giãn vừa khít toàn bộ chiều rộng cột trái */
}

.footer-logo-img {
  width: 100%;                   /* Logo phóng to vừa bằng lề nội dung thông tin bên dưới */
  height: auto;                  /* Giữ đúng tỉ lệ gốc, không bị méo */
  display: block;
}

/* Thông tin công ty xếp theo hàng dọc, đồng bộ cỡ chữ và font với toàn chân trang */
.footer-company-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13.5px;
  color: #b9c0cc;
  line-height: 1.5;
}

.footer-company-stack strong {
  color: var(--white);
}

/* Hàng 2 của chân trang: căn thẳng hàng ngang Hệ thống chi nhánh với Thanh toán / Gian hàng / Theo dõi DCZ */
/* Đường phân cách giữa Hàng 1 và Hàng 2 đã dùng .footer-divider-line xuyên suốt */
.footer-layout-bottom {
  padding-top: 0;
  border-top: none;
  align-items: stretch;          /* Cột giữa giãn bằng chiều cao cột Hệ thống chi nhánh */
  margin-bottom: 0;
}

/* Danh sách 5 chi nhánh DCZ theo hàng dọc */
.footer-branches-box {
  width: 100%;
}

.footer-branches-heading {
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 25px;               /* Đồng bộ cỡ chữ và độ đậm với .footer-title */
  font-weight: 700;
  color: var(--orange-logo);     /* Nhấn màu cam DCZ cho tiêu đề chi nhánh */
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.footer-branches-list {
  list-style: none;
  display: flex;
  flex-direction: column;        /* Xếp 5 chi nhánh theo hàng dọc */
  gap: 8px;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13.5px;             /* Đồng bộ cỡ chữ với .footer-list */
  color: #aeb6c3;
  line-height: 1.45;
}

/* Mỗi chi nhánh gồm tên thành phố ở dòng trên và địa chỉ ở dòng dưới */
.footer-branches-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-branch-city {
  color: var(--white);
  font-size: 13.5px;
}

.footer-branch-addr {
  color: #aeb6c3;
}

/* Lưới 3 cột bên phải chân trang di chuyển sát sang phần logo, tự xuống dòng khi dài */
.footer-5col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 230px)); /* Độ rộng vừa vặn để 3 cột sát nhau */
  gap: 20px;                     /* Khoảng cách giữa các cột gọn hơn */
  justify-content: start;        /* Đặt sát sang phần logo bên trái */
}

.footer-5col-grid > div,
.footer-company-stack,
.footer-branches-list {
  min-width: 0;
  overflow-wrap: break-word;    /* Tự động xuống dòng khi chuỗi dài, không tràn khung */
  word-break: break-word;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;           /* Thu gọn khoảng cách dưới tiêu đề */
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;                      /* Các dòng thông tin đứng sát gọn vào nhau */
  font-size: 13.5px;
}

.footer-list a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-list a:hover {
  color: var(--orange-logo);
}

/* Căn chỉnh icon nền tảng bên cạnh tên trong mục Gian Hàng Online & Mạng xã hội */
.footer-icon-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Danh sách nút bấm nền tảng Shopee, Lazada, TikTok căn bằng lề chữ GIAN HÀNG ONLINE */
.footer-market-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-market-btn {
  width: 146px;                  /* Rộng vừa bằng lề phải tiêu đề GIAN HÀNG ONLINE */
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid #353b45;
  background-color: #232830;
  color: #e5e7eb;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

/* Hàng ngang 3 icon Gian Hàng Online (không khung, không chữ, vừa khít lề chữ ONLINE) */
.footer-market-list.is-icon-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 146px;
  gap: 8px;
}

.footer-market-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.footer-market-icon-btn:hover {
  transform: translateY(-2px) scale(1.06);
}

.footer-market-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* Hàng ngang 5 icon Mạng xã hội gọn đều trên 1 hàng duy nhất */
.footer-market-list.is-icon-row.is-social-row {
  width: auto;
  max-width: 100%;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}

.footer-market-list.is-icon-row.is-social-row .footer-market-icon-btn {
  width: 34px;
  height: 34px;
}

/* Cắt bỏ 4 góc/viền trắng của ảnh Shopee & Lazada để tròn đều đồng bộ với TikTok */
.footer-market-icon-btn[data-item-id="shopee"] img,
.footer-market-icon-btn[data-item-id="lazada"] img {
  object-fit: cover;
  transform: scale(1.16);
}

/* Nút Mạng xã hội hiển thị gọn trên 1 dòng, vừa khít nhãn Zalo Cá nhân */
.footer-market-list.is-social .footer-market-btn {
  width: 138px;
  white-space: nowrap;
}

/* Lưới 2 cột x 2 hàng dãn cách đều trên/dưới và cân đối giữa Hệ thống chi nhánh với Bản đồ */
.footer-bottom-links-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-evenly;
  align-content: space-evenly;
  height: 100%;
  gap: 28px 32px;
  align-items: start;
}

/* Khối đối tác vận chuyển LOGISTICS đặt dưới Gian Hàng Online, kéo xuống sát vạch kẻ chân trang */
.footer-logistics-block {
  margin-top: 0;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Cụm linh vật DEX & ZIP đứng dưới khối LOGISTICS với chuyển động chào thân thiện */
.footer-logistics-mascot {
  position: relative;
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

/* Khung chứa cặp linh vật DEX và ZIP đứng cạnh nhau */
.footer-mascot-pair {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 235px;
  max-width: 100%;
}

.footer-mascot-char {
  width: 48%;
  height: auto;
  display: block;
  pointer-events: none;
  transform-origin: bottom center; /* Tâm nhún đặt ở chân đế để chuyển động tự nhiên */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.38));
}

/* Sói xám DEX nhún nghiêng chào thân thiện */
.footer-mascot-char.is-dex {
  animation: dczMascotGreetLeft 2.4s ease-in-out infinite;
}

/* Cáo cam ZIP nhún nghiêng lệch nhịp tạo cảm giác sinh động */
.footer-mascot-char.is-zip {
  animation: dczMascotGreetRight 2.4s ease-in-out infinite 0.35s;
}

@keyframes dczHandWave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(20deg); }
  30% { transform: rotate(-10deg); }
  45% { transform: rotate(18deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(0deg); }
}

@keyframes dczMascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes dczMascotGreetLeft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-2.2deg); }
  50% { transform: translateY(0) rotate(1.5deg); }
  75% { transform: translateY(-3px) rotate(-1.5deg); }
}

@keyframes dczMascotGreetRight {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(2.2deg); }
  50% { transform: translateY(0) rotate(-1.5deg); }
  75% { transform: translateY(-3px) rotate(1.5deg); }
}

.footer-logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 cột x 3 hàng cân đối dưới cột Mạng xã hội */
  gap: 7px;
  max-width: 210px;
}

.footer-logistics-card {
  width: 100%;
  background-color: var(--white);
  border: none;
  border-radius: 4px;
  height: 28px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-logistics-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(242, 92, 5, 0.35);
}

.footer-logistics-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Khối HỖ TRỢ THANH TOÁN (4x4 logo gọn gàng, không khung bọc ngoài) */
.footer-payment-block {
  margin-top: 0;
}

.footer-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 cột x 4 hàng gọn đẹp */
  gap: 8px 12px;
  max-width: 220px;
  align-items: center;
}

.footer-payment-card {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-payment-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.footer-market-btn:hover {
  border-color: var(--orange-logo);
  background-color: #2b313c;
  color: var(--white);
}

/* Bảng popup danh sách 10 shop mẫu theo từng nền tảng */
.footer-market-modal-card {
  width: min(600px, 100%);
}

.footer-market-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-market-modal-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-market-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-market-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
}

.footer-market-store-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Số thứ tự gian hàng / kênh gọn gàng, thanh mảnh */
.footer-store-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(242, 92, 5, 0.12);
  color: var(--orange-logo);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-store-name {
  font-size: 14px;
  color: var(--charcoal);
}

.footer-store-visit-btn {
  padding: 5px 12px;
  font-size: 12.5px;
}

.footer-store-status-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 999px;
  padding: 4px 10px;
}

.footer-muted-text {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}

.footer-qr-box {
  margin-top: 12px;
  background-color: var(--charcoal-soft);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: #cbd5e1;
}

.footer-bottom-bar {
  padding-top: 20px;
  border-top: 1px solid #2b303a;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #9ca3af;
}

/* ============================================================================
   [9] CỤM 4 ICON LIÊN HỆ NỔI GÓC DƯỚI BÊN PHẢI (.floating-contact)
   ============================================================================ */
.floating-contact {
  position: fixed;               /* Cố định ở góc dưới bên phải khi cuộn trang */
  right: 18px;                   /* Cách mép phải 18px */
  bottom: 18px;                  /* Cách mép dưới 18px */
  z-index: 1400;                 /* Nổi lên trên nội dung trang */
  display: flex;                 /* Xếp trực tiếp 4 icon theo cột dọc */
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;                     /* Khoảng cách giữa 4 icon */
}

/* Nút icon nổi trực tiếp không nền tròn, chỉ hiển thị logo từng kênh kèm chuyển động nhịp nhàng */
.floating-icon-btn {
  position: relative;            /* Làm mốc cho nhãn tên kênh hiện khi rê chuột */
  width: 42px;
  height: 42px;
  background-color: transparent; /* Bỏ nền tròn trắng */
  border: none;                  /* Bỏ viền bao quanh */
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: dczContactFloat 3.2s ease-in-out infinite;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Lệch pha thời gian chuyển động giữa 5 icon liên hệ (Zalo, WeChat, WhatsApp, Messenger, Gmail) */
.floating-icon-btn:nth-child(2) { animation-delay: 0.28s; }
.floating-icon-btn:nth-child(3) { animation-delay: 0.56s; }
.floating-icon-btn:nth-child(4) { animation-delay: 0.84s; }
.floating-icon-btn:nth-child(5) { animation-delay: 1.12s; }

@keyframes dczContactFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.18));
  }
  35% {
    transform: translateY(-4px) rotate(-4deg);
    filter: drop-shadow(0 6px 10px rgba(254, 106, 23, 0.24));
  }
  70% {
    transform: translateY(-2px) rotate(4deg);
    filter: drop-shadow(0 5px 8px rgba(15, 23, 42, 0.22));
  }
}

.floating-icon-btn:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.12); /* Phóng nhẹ logo khi rê chuột */
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
}

/* Ảnh icon lấy từ thư mục assets/image-icon/ */
.floating-channel-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;           /* Giữ đúng tỉ lệ ảnh icon, không bị méo */
  display: block;
}

/* Nhãn tên kênh hiện nhẹ bên trái khi rê chuột vào icon */
.floating-icon-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  background-color: var(--charcoal);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.floating-icon-btn:hover .floating-icon-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Thu gọn kích thước 4 icon trên màn hình điện thoại */
@media (max-width: 600px) {
  .floating-contact {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .floating-icon-btn {
    width: 36px;
    height: 36px;
  }

  .floating-channel-icon {
    width: 34px;
    height: 34px;
  }

  .floating-icon-tooltip {
    display: none;               /* Ẩn tooltip trên màn hình cảm ứng */
  }
}

/* ============================================================================
   [10] RESPONSIVE CHO TABLET VÀ ĐIỆN THOẠI
   ============================================================================ */
/* Thu gọn nhẹ chữ menu & thanh tìm kiếm ở màn hình laptop / chia đôi cửa sổ (<= 1420px) */
@media (max-width: 1420px) {
  .header-inner {
    gap: 10px;
    padding-inline: 14px;
  }

  .main-nav {
    min-width: 0;
  }

  .nav-link {
    font-size: 13.5px;
    padding: 6px 6px;
  }

  /* Thanh tìm kiếm co giãn linh hoạt theo khoảng trống, tránh đẩy cụm tài khoản tràn mép phải */
  .header-search {
    flex: 1 1 130px;
    width: auto;
    min-width: 110px;
    max-width: 220px;
  }

  .header-search input {
    min-width: 0;
    width: 100%;
  }

  /* Giới hạn chiều rộng tên tài khoản trên header để không làm tràn ngang khi đã đăng nhập */
  .header-user-name {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 1180px) {
  .header-inner {
    gap: 8px;
    padding: 10px 12px;
  }

  .header-logo img {
    height: 36px;
  }

  .main-nav {
    gap: 2px;
    padding-inline: 2px;
  }

  .nav-link {
    font-size: 13px;
    padding: 6px 6px;
    gap: 3px;
  }

  .header-search {
    flex: 1 1 100px;
    width: auto;
    min-width: 96px;
    max-width: 180px;
  }

  .footer-master-grid {
    grid-template-columns: 1fr;  /* Đưa banner Về DCZ & bản đồ xuống dưới trên màn hình vừa/nhỏ */
  }

  .footer-layout {
    grid-template-columns: 1fr;  /* Xuống 1 cột chính trên màn hình tablet/laptop nhỏ */
  }

  .brand-detail-card {
    grid-template-columns: 1fr;
  }

  .brand-detail-left {
    padding-right: 0;
    padding-bottom: 16px;
    border-right: none;
    border-bottom: 1px solid var(--warm-border);
  }

  .footer-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 cột trên tablet */
  }

  .footer-5col-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .mobile-nav-toggle {
    display: inline-flex;         /* Hiện nút mở menu 4 cấp dạng các bước khi cửa sổ hẹp <= 1024px */
  }

  .main-nav {
    display: none;                /* Ẩn thanh menu ngang để tránh mất nút Liên hệ khi co cửa sổ nhỏ */
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .header-right-actions {
    flex: 1 1 auto;
  }
}

@media (max-width: 960px) {
  /* Thanh tìm kiếm xuống hàng gọn gàng trên màn hình hẹp dưới 720px */
  .hero-banner-fallback,
  .catalog-layout,
  .detail-grid,
  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .small-banners-grid,
  .brands-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Giảm dần số cột sản phẩm khi màn hình nhỏ hơn desktop */
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Tablet: 2 thương hiệu mỗi hàng */
  .brands-showcase-grid.is-home-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Chống đè Header và co chữ thẻ sản phẩm khi chia 1 nửa màn hình / thu zoom (961px - 1679px) */
@media (max-width: 1679px) and (min-width: 961px) {
  .product-grid,
  #detail-related-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1380px) and (min-width: 961px) {
  .header-inner {
    padding: 8px 14px;
    gap: 8px;
  }

  .header-logo img {
    height: 34px;
  }

  .main-nav {
    padding-inline: 4px;
    gap: 2px;
  }

  .nav-link {
    font-size: 13.5px;
    padding: 6px 7px;
    white-space: nowrap;
  }

  .header-search {
    width: clamp(155px, 19vw, 280px);
    height: 38px;
  }

  .search-btn {
    padding: 0 10px;
    font-size: 12.5px;
  }

  .product-grid,
  #detail-related-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1160px) and (min-width: 961px) {
  .header-auth .auth-sep,
  .header-auth a[href*="mode=register"] {
    display: none;
  }

  .product-grid,
  #detail-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Màn hình laptop nhỏ / tablet ngang: 4 sản phẩm mỗi hàng */
@media (max-width: 1260px) and (min-width: 901px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-right-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  .header-logo img {
    height: 38px;
  }

  .auth-link {
    padding: 6px 8px;            /* Thu gọn nút Đăng nhập / Đăng ký trên màn hình điện thoại */
    font-size: 13.5px;
  }

  .small-banners-grid,
  .brands-showcase-grid,
  .footer-5col-grid,
  .footer-bottom-links-grid,
  .brand-detail-right {
    grid-template-columns: 1fr;
  }

  .profile-hero-grid,
  .profile-pillars-grid,
  .profile-solutions-grid,
  .profile-bottom-grid {
    grid-template-columns: 1fr;
  }

  .footer-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 cột gọn đẹp trên điện thoại */
  }

  .footer-about-banner {
    grid-template-columns: 1fr;  /* Xếp dọc 3 phần banner Về DCZ trên điện thoại */
  }

  /* Trên điện thoại hiển thị 2 sản phẩm mỗi hàng để gọn gàng */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* Giữ tỷ lệ ảnh banner đầu trang 3:1 trên màn hình điện thoại */
  .hero-banner-media {
    height: auto;
    aspect-ratio: 3 / 1;
  }

  .hero-banner-fallback {
    padding: 26px 20px;
  }

  /* Chừa khoảng trống đáy trang để bong bóng liên hệ nổi không che nội dung chân trang */
  .site-footer {
    padding-bottom: 84px;
  }
}

/* ============================================================================
   [11] TÔN TRỌNG TÙY CHỌN GIẢM CHUYỂN ĐỘNG CỦA NGƯỜI DÙNG (prefers-reduced-motion)
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .banner-chay-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }

  .banner-chay-noi-dung[aria-hidden="true"] {
    display: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================================
   [12] BỔ SUNG: HERO CAROUSEL, TRA CỨU KÍCH THƯỚC d×D×B & TRANG HƯỚNG DẪN ĐO
   ============================================================================ */

/* Khung bao ngoài băng chuyền Hero Banner trang chủ */
.hero-carousel {
  position: relative;            /* Làm gốc định vị cho nút điều hướng và thanh chấm */
  overflow: hidden;              /* Ẩn phần slide nằm ngoài khung nhìn */
  border-radius: var(--radius);  /* Bo góc đồng bộ với hệ thống thẻ */
}

/* Đường ray chứa các slide xếp ngang, tự co chiều cao theo slide đang xem để thanh điều khiển luôn sát mép dưới ảnh */
.hero-carousel-track {
  display: flex;                 /* Xếp các slide theo hàng ngang */
  align-items: flex-start;       /* Căn đỉnh slide để slide thấp không bị kéo hở khoảng trắng bên dưới */
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), height 0.35s ease; /* Trượt ngang và co chiều cao mượt giữa các slide */
}

/* Từng slide chiếm đúng 100% chiều rộng khung */
.hero-carousel-slide {
  flex: 0 0 100%;                /* Không co giãn, luôn chiếm đúng 1 khung */
  min-width: 100%;
}

/* Thanh điều khiển dưới đáy Hero Carousel (Trước / Chấm / Tạm dừng / Sau) */
.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background-color: var(--charcoal); /* Nền đen than đồng bộ thương hiệu */
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(235, 92, 20, 0.15) 0%, transparent 42%),
    linear-gradient(90deg, #14161a 0%, #20242c 50%, #14161a 100%);
  background-size: 16px 16px, 100% 100%, 100% 100%;
  border-top: 1px solid rgba(235, 92, 20, 0.35);
  color: var(--white);
}

.hero-carousel-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nút điều khiển Trước / Sau / Tạm dừng trên Carousel */
.hero-ctrl-btn {
  background-color: var(--charcoal-soft);
  color: var(--white);
  border: 1px solid #353b45;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.hero-ctrl-btn:hover {
  background-color: var(--orange-logo);
  border-color: var(--orange-logo);
}

/* Nhóm chấm chỉ báo vị trí slide */
.hero-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background-color: #4b5260;
  cursor: pointer;
  padding: 0;
  transition: width 0.2s, background-color 0.2s;
}

.hero-dot-btn.is-active {
  width: 26px;
  background-color: var(--orange-logo); /* Chấm đang chọn nổi bật màu cam DCZ */
}

/* Khung tra cứu kích thước vòng bi d × D × B (mm) trong trang Danh mục */
.dimension-search-card {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-left: 4px solid var(--orange-logo); /* Đường nhấn cam DCZ bên trái */
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.dimension-search-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.dimension-search-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
}

/* Lưới gồm: ô Mã vòng bi, nhãn phân tách "hoặc", 3 ô d/D/B và 2 nút bấm */
.dimension-search-form {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) auto repeat(3, minmax(95px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
}

/* Form tìm kiếm theo đúng nhóm sản phẩm (Dây curoa, Nhông xích hoặc Tất cả) */
.general-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto; /* Ô nhập giãn hết chiều ngang, 2 nút vừa khít bên phải */
  gap: 10px;
  align-items: end;
}

.general-search-form .btn {
  padding: 10px 16px;
  white-space: nowrap;
}

/* Nhãn "hoặc" phân tách gọn gàng 2 chế độ tìm theo mã và tìm theo số đo (không đóng khung tròn) */
.dimension-or-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 4px;
  background-color: transparent;        /* Bỏ nền khung tròn */
  border: none;                          /* Bỏ viền khung tròn */
  color: var(--text-muted);              /* Dùng biến màu chữ phụ trong :root */
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.dimension-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Hộp thông báo gợi ý mã gần đúng khi không khớp 100% */
.dimension-nearest-note {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background-color: var(--warm-gray-soft);
  border: 1px solid var(--warm-border);
  font-size: 13.5px;
  color: var(--text-main);
}

/* Thẻ hiển thị chênh lệch kích thước trên từng sản phẩm gợi ý */
.dimension-diff-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background-color: #fff3ec;
  border: 1px solid #ffd2bc;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 600;
}

/* Bố cục trang Hướng dẫn đo thông số kỹ thuật (Vòng bi, Dây curoa, Nhông xích) */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.guide-diagram-card {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.guide-diagram-card svg {
  max-width: 100%;
  height: auto;
}

.guide-steps-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}

/* Responsive cho khung tra cứu kích thước & trang hướng dẫn đo */
@media (max-width: 820px) {
  .catalog-top-controls .dimension-search-form,
  .dimension-search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dimension-field-code,
  .dimension-or-divider {
    grid-column: 1 / -1;
    height: auto;
    padding: 4px 12px;
    justify-self: start;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .catalog-top-controls .dimension-search-form,
  .dimension-search-form,
  .general-search-form {
    grid-template-columns: 1fr;
  }

  .hero-carousel-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================================================
   [13] CÁC KHỐI TRANG CHỦ: HƯỚNG DẪN HỮU ÍCH, CATALOGUE DCZ, TIN TỨC & KIẾN THỨC
   ============================================================================ */

/* Khối 3 thẻ sản phẩm chủ lực (bỏ Bánh xe) + thanh khẩu hiệu DCZ */
.home-quick-cats-section {
  padding: 20px 0 4px;
}

/* Lưới thẻ nổi bật lấy số hàng/cột từ Admin; hàng tự bổ sung khi cần giữ đủ thẻ */
.home-promo-4grid {
  display: grid;
  grid-template-columns: repeat(var(--promo-columns, 4), minmax(0, 1fr));
  grid-template-rows: repeat(var(--promo-rows, 1), auto);
  gap: 16px;
}

/* Kiểu carousel cho phép chuyển ảnh theo từng thẻ bằng cuộn ngang hoặc tự chạy */
.home-promo-4grid.is-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

.home-promo-4grid.is-carousel .home-promo-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

/* Kiểu ảnh đơn dùng toàn bộ bề ngang cho ảnh đầu tiên trong danh sách */
.home-promo-4grid.is-single {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
}

.home-promo-placement-section {
  padding: 10px 0 4px;
}

.home-promo-placement-section[hidden],
#home-promo-body-section[hidden] {
  display: none !important;
}

.home-promo-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Thẻ poster hình ảnh tràn khung đồng bộ chiều cao với các thẻ quảng bá bên cạnh */
.home-promo-card-poster {
  padding: 0;
}

.home-promo-poster-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home-promo-poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.home-promo-card:hover .home-promo-poster-link img {
  transform: scale(1.03);
}

/* Vệt chéo đen - cam nhận diện DCZ ở góc trên bên phải mỗi thẻ */
.home-promo-stripe {
  position: absolute;
  top: -18px;
  right: 26px;
  width: 26px;
  height: 115px;
  background: linear-gradient(90deg, var(--charcoal) 62%, var(--orange-logo) 62%);
  transform: rotate(28deg);
  opacity: 0.9;
  pointer-events: none;
}

.home-promo-body {
  position: relative;
  z-index: 1;
}

.home-promo-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.home-promo-body p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 14px;
}

.home-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background-color: var(--orange-logo);
  color: var(--white);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.home-promo-btn:hover {
  background-color: var(--orange-dark);
}

.home-promo-visual {
  position: relative;
  z-index: 1;
  width: 124px;
  flex-shrink: 0;
}

.home-promo-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Thanh khẩu hiệu DCZ nền đen than nằm ngay dưới lưới thẻ nổi bật */
.home-slogan-strip {
  margin-top: 14px;
  background: linear-gradient(90deg, var(--black) 0%, var(--charcoal) 65%, #22262e 100%);
  border-radius: 10px;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
  border-left: 4px solid var(--orange-logo);
}

.home-slogan-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.home-slogan-center {
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  border-left: 1px solid #353b45;
  line-height: 1.25;
}

.home-slogan-center strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.home-slogan-center span {
  font-size: 16px;
  font-weight: 600;
  color: var(--orange-logo);
}

.home-slogan-right {
  margin-left: auto;
  text-align: right;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #aeb6c3;
  line-height: 1.4;
}

/* Lưới bốn thẻ chuyển thành hai cột trên tablet */
@media (max-width: 960px) {
  .home-promo-4grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-slogan-strip {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .home-slogan-right {
    margin-left: 0;
    text-align: left;
  }
}

/* Xếp một cột trên điện thoại nhỏ để giữ thẻ dễ đọc và cân đối */
@media (max-width: 560px) {
  .home-promo-4grid {
    grid-template-columns: 1fr;
  }
}

/* Tiêu đề mục có dấu gạch chéo màu cam DCZ ở đầu dòng */
.home-slash-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.home-slash-heading span {
  color: var(--orange-logo);
  font-weight: 800;
}

/* Thanh Tra cứu vòng bi theo kích thước d × D × B (mm) trên Trang chủ */
.home-dim-bar {
  display: flex;
  align-items: stretch;
  background-color: #fff2ea;     /* Nền cam rất nhạt dễ chịu */
  border: 1px solid #ffd8c2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.home-dim-banner {
  background: linear-gradient(120deg, var(--orange-logo) 0%, #ff7426 100%);
  color: var(--white);
  padding: 16px 28px 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}

.home-dim-bearing-svg {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.home-dim-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.home-dim-title strong {
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
}

.home-dim-title span {
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
}

.home-dim-form {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 20px;
}

.home-dim-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.home-dim-input-wrap {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  height: 38px;
  padding: 0 10px;
}

.home-dim-input-wrap input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13.5px;
  background: transparent;
}

.home-dim-input-wrap span {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 6px;
}

.home-dim-submit {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  border: none;
  background-color: var(--orange-logo);
  color: var(--white);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.home-dim-submit:hover {
  background-color: var(--orange-dark);
}

/* Thanh ngang Hướng dẫn tra cứu & đo kiểm */
.home-guide-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.home-guide-strip-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
  color: var(--charcoal);
}

.home-guide-slash {
  color: var(--orange-logo);
  font-style: normal;
}

.home-guide-pills {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-guide-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-guide-pill:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
  transform: translateY(-2px);
}

.home-guide-pill-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Lưới 2 thẻ Catalogue DCZ */
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-cat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

/* Vệt chéo cam DCZ trang trí ở nền thẻ Catalogue */
.home-cat-stripe {
  position: absolute;
  top: -20px;
  right: 36px;
  width: 30px;
  height: 180px;
  background-color: var(--orange-logo);
  opacity: 0.16;
  transform: rotate(24deg);
  pointer-events: none;
}

.home-cat-brand {
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.home-cat-brand span {
  color: var(--orange-logo);     /* Nhấn chữ DCZ màu cam thương hiệu */
}

.home-cat-info p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.home-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-cat-btn:hover {
  background-color: var(--orange-logo);
  border-color: var(--orange-logo);
  color: var(--white);
}

.home-cat-visual {
  width: 130px;
  flex-shrink: 0;
}

.home-cat-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Lưới poster Tin tức & kiến thức lấy số hàng/cột từ cấu hình Admin */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(var(--news-columns, 5), minmax(0, 1fr));
  grid-template-rows: repeat(var(--news-rows, 1), auto);
  gap: 14px;
}

/* Kiểu cuộn ngang và một poster dùng chung lựa chọn bố cục trong Admin */
.home-news-grid.is-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

.home-news-grid.is-carousel .home-news-card {
  flex: 0 0 clamp(230px, calc(100% / var(--news-columns, 5)), 320px);
  scroll-snap-align: start;
}

.home-news-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  max-width: 860px;
  margin-inline: auto;
}

.home-news-card {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Khung ảnh poster phủ kín chiều ngang card theo tỷ lệ 16:9 */
.home-news-thumb {
  display: block;                /* Đảm bảo thẻ <a> hiển thị dạng khối để chứa ảnh poster chuẩn */
  background-color: var(--warm-gray-soft); /* Nền xám ấm dự phòng khi ảnh đang tải */
  overflow: hidden;              /* Cắt phần ảnh phóng nhẹ khi hover */
}

.home-news-thumb svg {
  width: 100%;
  height: 120px;
  display: block;
}

/* Định dạng ảnh poster DCZ bên trong 5 thẻ tin tức & kiến thức */
.home-news-thumb img {
  width: 100%;                   /* Phủ kín 100% chiều ngang thẻ bài viết */
  aspect-ratio: 16 / 9;          /* Giữ đúng tỷ lệ 16:9 của poster DCZ, không bị méo hình */
  height: auto;                  /* Tự động tính chiều cao theo tỷ lệ */
  object-fit: cover;             /* Căn phủ kín khung hình */
  display: block;                /* Loại bỏ khoảng trống thừa dưới thẻ img */
  transition: transform 0.25s ease; /* Hiệu ứng phóng nhẹ mượt mà khi rê chuột */
}

/* Phóng nhẹ ảnh poster khi người dùng rê chuột vào thẻ bài viết */
.home-news-card:hover .home-news-thumb img {
  transform: scale(1.03);
}

.home-news-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;                      /* Khoảng cách gọn giữa tiêu đề, mô tả ngắn và nút Xem chi tiết */
  flex: 1;
}

.home-news-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
}

/* Đoạn mô tả tóm tắt ngắn gọn dưới tiêu đề bài viết */
.home-news-desc {
  font-size: 13px;               /* Cỡ chữ nhỏ gọn, dễ đọc cho phần tóm tắt */
  color: var(--text-muted);      /* Sử dụng biến màu chữ phụ trong :root */
  line-height: 1.45;             /* Giãn dòng thoáng cho 2-3 dòng mô tả */
}

.home-news-link {
  margin-top: auto;
  color: var(--orange-logo);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
}

.home-news-link:hover {
  text-decoration: underline;
}

/* Responsive cho 3 khối trang chủ trên màn hình tablet & điện thoại */
@media (max-width: 960px) {
  .home-dim-bar {
    flex-direction: column;
  }

  .home-dim-banner {
    clip-path: none;
  }

  .home-dim-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-guide-pills,
  .home-cat-grid,
  .home-news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-dim-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   [14] TRANG LIÊN HỆ DCZ (BẢN ĐỒ GOOGLE MAPS & THẺ THÔNG TIN CÔNG TY)
   ============================================================================ */
/* Đồng bộ khoảng cách và cỡ chữ tiêu đề trang Liên hệ với các trang con khác */
.contact-page-head {
  padding: 14px 0 22px;
}

.contact-page-head .home-slash-heading {
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.25;
  margin-bottom: 6px;
}

.contact-page-head p {
  font-size: 14.5px;
  color: var(--slate);
}

/* Lưới 2 cột cân đối: Bản đồ bên trái, Thông tin công ty bên phải */
.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

/* Lưới 2 cột: Form liên hệ bên trái; cụm thông tin công ty và bản đồ bên phải */
.contact-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); /* Form rộng hơn, thông tin gọn hơn */
  gap: 20px;
  align-items: start; /* Căn đỉnh để 2 khối không bị kéo dài bằng nhau */
}

/* Xếp thẻ thông tin công ty phía trên bản đồ, giữ khoảng cách đồng đều trong cột phải */
.contact-side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Khung chứa bản đồ Google Maps bo góc nền trắng */
.contact-map-card,
.contact-info-card {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}

.contact-map-card #contact-map-root,
.contact-map-frame {
  height: 100%;
  min-height: 360px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--warm-border);
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* Nút Chỉ đường trên Google Maps nổi ở góc dưới phải bản đồ */
.contact-map-dir-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 9px 14px;
  font-size: 13.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

/* Phần đầu thẻ Thông tin công ty: Logo DCZ | Thông tin công ty */
.contact-info-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--warm-border);
}

.contact-info-logo {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

.contact-info-divider {
  width: 1px;
  height: 28px;
  background-color: var(--warm-border);
  flex-shrink: 0;
}

.contact-info-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  margin: 0;
}

/* Danh sách 6 dòng thông tin kèm icon cam bên trái */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}

.contact-info-list li {
  display: grid;
  grid-template-columns: 20px 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  line-height: 1.45;
}

.contact-info-icon {
  width: 18px;
  height: 18px;
  color: var(--orange-logo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
}

.contact-info-label {
  font-weight: 700;
  color: var(--charcoal);
}

.contact-info-val {
  color: var(--text-main);
  word-break: break-word;
}

.contact-info-val a {
  color: var(--text-main);
  text-decoration: none;
}

.contact-info-val a:hover {
  color: var(--orange-logo);
}

.contact-info-val a.contact-zalo-link {
  color: var(--orange-logo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hàng 2 nút hành động lớn ở đáy thẻ phải: Gọi tư vấn & Gửi email */
.contact-cta-row {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}

.contact-cta-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.contact-cta-email {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
  background-color: var(--white);
}

.contact-cta-email:hover {
  background-color: #fff5f0;
  color: var(--orange-logo);
}

/* Biểu mẫu liên hệ phía dưới */
.contact-form-section {
  padding: 24px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@media (max-width: 960px) {
  .contact-hero-grid,
  .contact-form-grid,
  .contact-top-grid {
    grid-template-columns: 1fr; /* Mobile: xếp 1 cột dọc thay vì 2 cột ngang */
  }

  .contact-map-card #contact-map-root,
  .contact-map-frame,
  .contact-map-frame iframe {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .contact-cta-row {
    grid-template-columns: 1fr;
  }

  .contact-info-list li {
    grid-template-columns: 20px 80px minmax(0, 1fr);
    gap: 8px;
  }
}

/* ============================================================================
   [14] KHUNG 4 TAB CHI TIẾT SẢN PHẨM (MÔ TẢ, THÔNG SỐ, TÀI LIỆU, HƯỚNG DẪN ĐO)
   ============================================================================ */
.detail-tabs-card {
  margin-top: 24px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px;
  border-bottom: 1px solid var(--warm-border);
  background-color: var(--white);
}

.detail-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 16px;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.detail-tab-btn:hover {
  color: var(--charcoal);
}

/* Tab đang chọn: chữ màu cam và gạch chân cam thương hiệu DCZ */
.detail-tab-btn.is-active {
  color: var(--orange-logo);
  border-bottom-color: var(--orange-logo);
}

.detail-tab-panel {
  padding: 20px;
}

/* Thanh lưu ý nền xám nhạt có biểu tượng chữ i */
.detail-info-banner {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

.detail-info-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================================
   [15] BẢNG POPUP ĐẶT HÀNG NGAY (MS. DƯƠNG & MS. QUỲNH ANH)
   ============================================================================ */
.order-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background-color: rgba(20, 22, 25, 0.65); /* Nền tối làm nổi bảng đặt hàng */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.order-modal-backdrop[hidden] {
  display: none;
}

.order-modal-card {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--white);
  border-radius: 14px;
  border-top: 4px solid var(--orange-logo);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.order-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--warm-border);
}

.order-modal-head h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--charcoal);
}

.order-modal-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Nút X đóng hộp thoại đồng bộ toàn website (hover nền cam nhạt, chuyển động 0.2s ease) */
.order-modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.order-modal-close:hover {
  background-color: #fff4ee;
  border-color: #fed7aa;
  color: var(--orange-logo);
}

.order-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Khối thông tin từng nhân viên hỗ trợ đặt hàng */
.order-contact-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
}

/* Hàng trên của bảng nhân viên: tên + SĐT bên trái, trạng thái Online ở góc trên phải */
.order-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Hiển thị tên nhân viên và số điện thoại trên cùng một hàng */
.order-contact-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Ký hiệu icon nhân viên và tên */
.order-staff-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-staff-icon {
  width: 17px;
  height: 17px;
  color: var(--orange-logo);
  flex-shrink: 0;
}

.order-contact-sep {
  color: var(--text-muted);
  font-weight: 700;
}

/* Nhãn thông báo Online gọn gàng (bỏ khung viền, chỉ giữ đèn xanh và chữ) */
.order-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: #15803d;
  font-size: 12.5px;
  font-weight: 700;
}

.order-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

/* Nhãn trạng thái Offline gọn gàng (bỏ khung viền, chỉ giữ đèn đỏ và chữ) */
.order-online-badge.is-offline {
  background: transparent;
  border: none;
  color: #dc2626;
}

.order-online-badge.is-offline .order-online-dot {
  background-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

.order-contact-info strong {
  font-size: 15px;
  color: var(--charcoal);
}

.order-contact-phone {
  font-size: 16px;
  font-weight: 800;
  color: var(--orange-logo);
  text-decoration: none;
}

.order-contact-phone:hover {
  text-decoration: underline;
}

.order-contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Nút kênh chat kèm icon từ thư mục assets/image-icon/ */
.order-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--charcoal);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.order-social-pill:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
  transform: translateY(-1px);
}

/* Nút Đặt hàng ngay màu xanh lá nổi bật */
.btn-green {
  background-color: #16a34a;
  color: var(--white);
  border-color: #16a34a;
}

.btn-green:hover {
  background-color: #15803d;
  border-color: #15803d;
  color: var(--white);
}

/* Nút Gọi điện bên trong bảng thông tin đặt hàng */
.order-call-pill {
  background-color: #16a34a;
  border-color: #16a34a;
  color: var(--white);
}

.order-call-pill:hover {
  background-color: #15803d;
  border-color: #15803d;
  color: var(--white);
}

.order-call-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ============================================================================
   [16] TIÊU ĐỀ & BỘ LỌC SẢN PHẨM LIÊN QUAN TRANG CHI TIẾT
   ============================================================================ */

/* Khung tiêu đề DCZ / Sản phẩm liên quan kèm họa tiết chéo cam nhạt bên phải */
.related-header-card {
  background: linear-gradient(
    122deg,
    var(--white) 0%,
    var(--white) 60%,
    rgba(242, 92, 5, 0.06) 60%,
    rgba(242, 92, 5, 0.06) 78%,
    rgba(242, 92, 5, 0.03) 78%,
    rgba(242, 92, 5, 0.03) 100%
  );
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 16px 20px 14px;
  margin-bottom: 14px;
}

/* Hàng logo DCZ / Sản phẩm liên quan */
.related-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.related-brand-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

.related-brand-slash {
  font-size: 26px;
  font-weight: 300;
  color: var(--orange-logo);
  line-height: 1;
}

.related-brand-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
}

/* Hàng nút lọc bên trái và link Xem tất cả bên phải */
.related-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 10px;
  border-top: 1px solid var(--warm-border);
}

.related-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Nút lọc sản phẩm liên quan giữ giao diện gọn ban đầu, không nhận hiệu ứng CTA */
.related-filter-pill {
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  background-color: #f0f2f4;
  color: var(--charcoal);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Đồng bộ font Noto Sans */
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.related-filter-pill:hover {
  background-color: #e4e7eb;
}

.related-filter-pill.is-active {
  background-color: var(--orange-logo);
  color: var(--white);
}

/* Liên kết Xem tất cả ở góc phải thanh lọc */
.related-view-all {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange-logo);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.related-view-all:hover {
  color: #d14900;
}

.order-social-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.order-wechat-status {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--orange-logo);
  min-height: 18px;
}

/* Định dạng văn bản chính sách chi tiết theo từng Điều khoản */
.policy-rich-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-main);
}

.policy-subtitle {
  color: var(--slate);
  margin: 0;
}

.policy-meta-list {
  margin: 0;
  padding: 12px 16px 12px 32px;
  background-color: var(--warm-gray-bg);
  border-left: 3px solid var(--orange-logo);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.policy-rich-content h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--charcoal);
  margin: 10px 0 2px;
  padding-top: 10px;
  border-top: 1px solid var(--warm-border);
}

.policy-rich-content ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-rich-content ul:not(.policy-meta-list) {
  margin: 6px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ============================================================================
   [17] TRANG HỒ SƠ NĂNG LỰC / PROFILE CÔNG TY DCZ (thuong-hieu.html)
   ============================================================================ */
.company-profile-section {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Lưới 2 cột: Tổng quan doanh nghiệp bên trái và Thông tin pháp lý bên phải */
.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.profile-overview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 4px solid var(--orange-logo); /* Nhấn cam nhận diện DCZ */
}

.profile-overview-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
}

.profile-lead {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.65;
}

.profile-subtext {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.profile-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Thẻ thông tin pháp lý & liên hệ doanh nghiệp */
.profile-legal-card {
  background-color: var(--warm-gray-soft);
}

.profile-legal-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--warm-border);
}

.profile-legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-legal-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
}

.profile-legal-list span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.profile-legal-list strong {
  color: var(--charcoal);
  font-weight: 700;
}

/* Lưới 3 cột: Tầm nhìn - Sứ mệnh - Giá trị cốt lõi */
.profile-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.profile-pillar-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-pillar-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #fff3ec;
  color: var(--orange-logo);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.profile-pillar-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--charcoal);
}

.profile-pillar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Khối 6 nhóm sản phẩm & giải pháp kỹ thuật DCZ */
.profile-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-section-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.profile-section-head p {
  font-size: 14px;
  color: var(--text-muted);
}

.profile-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-solution-item {
  padding: 14px 16px;
  border-radius: 10px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
}

.profile-solution-item h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.profile-solution-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Lưới 2 cột cuối: Ngành công nghiệp phục vụ & Cam kết năng lực */
.profile-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-subhead {
  font-size: 17px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--warm-border);
}

.profile-industries-list,
.profile-commit-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.55;
}

/* Tablet: gộp về 2 cột cho khối sản phẩm và 1 cột cho khối đầu trang */
@media (max-width: 960px) {
  .profile-hero-grid,
  .profile-pillars-grid,
  .profile-bottom-grid {
    grid-template-columns: 1fr;
  }

  .profile-solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Chế độ in / xuất PDF Profile Công ty DCZ gọn gàng */
@media print {
  #dcz-header-root,
  #dcz-footer-root,
  #dcz-floating-root,
  .page-breadcrumb,
  .profile-actions {
    display: none !important;
  }

  .surface-card {
    box-shadow: none !important;
    border: 1px solid var(--warm-border) !important;
    break-inside: avoid;
  }
}

/* ============================================================================
   [18] THANH BƯỚC GIỎ HÀNG, BẢNG SẢN PHẨM & XEM TRƯỚC PHIẾU PDF
   ============================================================================ */
/* Đầu trang giỏ hàng chia cột giống lưới bên dưới: tiêu đề trái, tiến độ thẳng hàng với thẻ liên hệ */
.cart-header-flex {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px 24px;
}

/* Thanh tiến trình 3 bước (Rà soát sản phẩm -> Thông tin liên hệ -> Xem trước PDF) */
.cart-stepper {
  grid-column: 2;
  width: 100%; /* Chiều rộng bằng cột Thông tin liên hệ bên dưới */
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cart-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.cart-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-border);
  background-color: var(--white);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-step-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
  text-align: center;
}

/* Bước đang chọn hoặc đã hoàn thành nổi bật màu cam DCZ */
.cart-step.is-active .cart-step-num,
.cart-step.is-done .cart-step-num {
  background-color: var(--orange-logo);
  border-color: var(--orange-logo);
  color: var(--white);
}

.cart-step.is-active .cart-step-label {
  color: var(--orange-logo);
  font-weight: 700;
}

.cart-step-line {
  flex: 0.65 1 0;
  width: auto;
  height: 2px;
  background-color: var(--warm-border);
  margin: 17px 0 0;
}

.cart-step-line.is-filled {
  background-color: var(--orange-logo);
}

/* Phần đầu thẻ Sản phẩm đã chọn bên trái */
.cart-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-card-title-wrap svg {
  color: var(--orange-logo);
  flex-shrink: 0;
}

.cart-card-title-wrap h2 {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--charcoal);
}

.cart-count-pill {
  padding: 2px 10px;
  border-radius: 999px;
  background-color: #fff3ec;
  color: var(--orange-logo);
  font-size: 12.5px;
  font-weight: 700;
}

.cart-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Nút + Thêm sản phẩm viền bo tròn chữ cam đồng bộ bảng giỏ hàng */
.cart-add-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--orange-logo);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cart-add-product-btn:hover {
  background-color: #fff3ec;
  border-color: var(--orange-logo);
}

/* Khung tìm kiếm & thêm nhanh sản phẩm ngay trong giỏ hàng */
.cart-quick-add-box[hidden] {
  display: none;
}

.cart-quick-add-box {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 10px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
}

.cart-quick-add-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-quick-results {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.cart-quick-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
}

.cart-clear-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  color: var(--orange-logo);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.cart-clear-all-btn:hover {
  background-color: #fff3ec;
}

/* Bảng danh sách sản phẩm đã chọn */
.cart-table-wrap {
  overflow-x: auto;
}

.cart-items-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-items-table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 8px;
  border-top: 1px solid var(--warm-border);
  border-bottom: 1px solid var(--warm-border);
  background-color: var(--warm-gray-bg);
  white-space: nowrap;           /* Giữ tiêu đề cột trên 1 hàng, tránh rớt dòng "Thao / tác" */
}

.cart-items-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--warm-gray-soft);
  vertical-align: middle;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-product-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  padding: 3px;
  flex-shrink: 0;
}

.cart-product-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
  text-decoration: none;
}

.cart-product-title:hover {
  color: var(--orange-logo);
}

.cart-product-sku {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--warm-gray-bg);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

/* Bộ nút tăng/giảm số lượng - [input] + */
.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--white);
}

.cart-qty-btn {
  width: 28px;
  height: 32px;
  border: 0;
  background-color: var(--warm-gray-bg);
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cart-qty-btn:hover {
  background-color: #fff3ec;
  color: var(--orange-logo);
}

/* Bỏ viền cam/đỏ mặc định khi bấm hoặc điều hướng tới nút +/- trong giỏ hàng */
.cart-qty-btn:focus,
.cart-qty-btn:focus-visible {
  outline: none;
}

/* Ô nhập số lượng ở giữa: ẩn mũi tên tăng/giảm mặc định vì đã có nút − / + */
.cart-qty-input {
  width: 42px;
  height: 32px;
  border: 0;
  outline: none;                 /* Không hiển thị viền focus mặc định bên trong stepper */
  border-inline: 1px solid var(--warm-border);
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Bỏ hoàn toàn vạch cam/đỏ khi click vào ô điền số lượng trong giỏ hàng */
.cart-qty-input:focus,
.cart-qty-input:focus-visible {
  outline: none;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-trash-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-trash-btn:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
  background-color: #fff3ec;
}

/* Khung Tóm tắt danh sách giỏ hàng đồng bộ thiết kế thẻ DCZ */
.cart-summary-box-wrap {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  box-shadow: var(--shadow-sm);
}

/* Tiêu đề TÓM TẮT DANH SÁCH kèm vạch đứng cam bên trái */
.cart-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

/* Ẩn vạch đứng cũ để dùng dấu gạch xéo cam "/" đồng bộ tiêu đề DCZ */
.cart-summary-accent {
  display: none;
}

.cart-summary-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--charcoal);
}

.cart-summary-head h3::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
  font-size: 15px;
}

/* Hàng 3 cột thống kê: số dòng, tổng số lượng và huy hiệu GIÁ chéo đen-cam */
.cart-summary-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
}

.cart-summary-stat {
  display: flex;
  align-items: center;
  justify-content: center;       /* Căn giữa nội dung trong từng ô thống kê */
  gap: 8px;
  padding: 4px 10px;
  font-size: 13.5px;
  color: var(--text-main);
}

.cart-summary-stat svg {
  color: var(--charcoal);
  flex-shrink: 0;
}

.cart-stat-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--orange-logo);
}

.cart-summary-stat + .cart-summary-stat {
  border-left: 1px solid var(--warm-border);
}

.cart-summary-stat.is-price-cell {
  justify-content: center;       /* Căn giữa huy hiệu GIÁ trong ô thứ 3 */
}

/* Huy hiệu GIÁ tách 2 mảng đen than - cam chéo đặc trưng DCZ */
.cart-price-split-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--orange-logo);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.cart-price-split-label {
  padding: 8px 18px 8px 14px;
  background-color: var(--charcoal);
  color: var(--white);
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  margin-right: -8px;
}

.cart-price-split-val {
  padding: 8px 14px 8px 16px;
  white-space: nowrap;
}

/* Phần liệt kê chi tiết Nhóm & Thương hiệu bên dưới vạch ngăn ngang */
.cart-summary-breakdown {
  padding-top: 12px;
  border-top: 1px solid var(--warm-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-breakdown-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cart-breakdown-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  color: var(--text-main);
  font-size: 13px;
}

.cart-detail-pill svg {
  color: var(--charcoal);
  flex-shrink: 0;
}

.cart-detail-pill strong {
  color: var(--charcoal);
}

/* Thẻ Thông tin liên hệ bám theo khi cuộn danh sách sản phẩm dài trên desktop */
@media (min-width: 960px) {
  .cart-contact-card {
    position: sticky;
    top: 88px;
  }
}

/* Nút Quay lại chọn sản phẩm dùng viền ấm đồng bộ với các nút phụ trong bảng */
.cart-form-actions .btn-outline {
  border-color: var(--warm-border);
  color: var(--charcoal);
}

.cart-form-actions .btn-outline:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
  background-color: #fff3ec;
}

@media (max-width: 680px) {
  .cart-summary-bar {
    grid-template-columns: 1fr;
  }

  .cart-summary-stat,
  .cart-summary-stat:first-child,
  .cart-summary-stat:last-child {
    text-align: left;
  }

  .cart-summary-stat + .cart-summary-stat {
    border-left: 0;
    border-top: 1px solid var(--warm-border);
  }
}

.cart-summary-stat strong {
  color: var(--charcoal);
}

.cart-summary-stat.is-highlight strong {
  color: var(--orange-logo);
}

/* Bộ chọn 2 nhóm khách hàng: Cá nhân và Công ty / Doanh nghiệp */
.cart-group-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.cart-customer-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 10px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
}

.cart-customer-tab {
  padding: 8px 10px;
  border-radius: 7px;
  border: 0;
  background-color: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cart-customer-tab.is-active {
  background-color: var(--white);
  color: var(--orange-logo);
  box-shadow: var(--shadow-sm);
}

.cart-field-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Tiêu đề Thông tin liên hệ kèm icon */
.cart-contact-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.cart-contact-head svg {
  color: var(--orange-logo);
  flex-shrink: 0;
}

/* Hộp thông báo chế độ xem trước viền cam nhạt */
.cart-preview-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  background-color: #fff3ec;
  border: 1px solid #ffd2bc;
  border-left: 3px solid var(--orange-logo);
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.5;
}

.cart-preview-alert-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--orange-logo);
  color: var(--orange-logo);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.req-star {
  color: var(--orange-logo);
}

.opt-note {
  font-weight: 400;
  color: var(--text-muted);
}

/* Nhóm nút hành động form giỏ hàng xếp dọc */
.cart-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.cart-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Hộp thoại xem trước phiếu báo giá PDF */
.quote-pdf-modal[hidden] {
  display: none;
}

.quote-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quote-pdf-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(20, 23, 28, 0.65);
}

.quote-pdf-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: 90vh;
  background-color: var(--warm-gray-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quote-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background-color: var(--white);
  border-bottom: 1px solid var(--warm-border);
}

.quote-pdf-toolbar-actions {
  display: flex;
  gap: 8px;
}

.quote-pdf-sheet {
  padding: 28px 32px;
  margin: 16px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  overflow-y: auto;
  color: var(--charcoal);
  font-size: 13.5px;
}

/* Phần đầu phiếu PDF: Logo bên trái, thông tin công ty nằm bên phải cùng hàng */
.quote-pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--orange-logo);
  margin-bottom: 16px;
}

.quote-pdf-brand-block {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.quote-pdf-logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

.quote-pdf-company-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.quote-pdf-company-name {
  font-weight: 800;
  font-size: 15.5px;
  color: var(--charcoal);
  margin-bottom: 4px;
}

/* Khối tiêu đề PHIẾU YÊU CẦU BÁO GIÁ nằm cùng 1 hàng ngay trên bảng: tiêu đề trái, ngày & trạng thái phải */
.quote-pdf-title-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0 8px;
}

.quote-pdf-doc-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--orange-logo);
  letter-spacing: 0.3px;
}

.quote-pdf-doc-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 0;
}

/* Thông tin công ty & khách hàng trong phiếu PDF xếp hàng dọc lề trái */
.quote-pdf-company-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  font-size: 12.5px;
  color: var(--charcoal);
  line-height: 1.45;
}

.quote-pdf-customer-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
}

.quote-pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 12.5px;              /* Cỡ chữ gọn để bảng 7 cột vừa khít trang A4 không rớt dòng */
  border: 1px solid var(--warm-border);
  box-sizing: border-box;
}

/* Căn giữa nội dung và tiêu đề từng ô trong bảng báo giá PDF, giữ đủ đường kẻ 4 cạnh */
.quote-pdf-table th,
.quote-pdf-table td {
  border: 1px solid var(--warm-border);
  padding: 7px 6px;              /* Thu gọn padding ngang để ưu tiên không gian cho tên sản phẩm & hãng */
  text-align: center;
  vertical-align: middle;
}

.quote-pdf-table th {
  background-color: var(--warm-gray-soft);
  font-weight: 700;
  white-space: nowrap;           /* Tiêu đề các cột luôn nằm trên 1 hàng */
}

/* Giữ các cột STT, Mã hàng, Hãng, ĐVT, Số lượng, Đơn giá luôn trên 1 dòng duy nhất */
.quote-pdf-table td:nth-child(1),
.quote-pdf-table td:nth-child(2),
.quote-pdf-table td:nth-child(4),
.quote-pdf-table td:nth-child(5),
.quote-pdf-table td:nth-child(6),
.quote-pdf-table td:nth-child(7) {
  white-space: nowrap;
}

/* Cột Tên sản phẩm giữ trên 1 hàng khi vừa khổ A4, chỉ xuống dòng nếu tên quá dài */
.quote-pdf-table td:nth-child(3) {
  min-width: 170px;
}

@media (max-width: 520px) {
  .cart-step {
    min-width: 72px;
  }

  .cart-stepper {
    gap: 4px;
  }

  .cart-step-label {
    font-size: 12px;
  }

  .quote-pdf-sheet {
    padding: 16px;
    margin: 10px;
  }
}

/* Trên màn hình dưới 960px, lưới báo giá và thanh tiêu đề cùng chuyển về một cột toàn chiều rộng */
@media (max-width: 960px) {
  .cart-header-flex {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-stepper {
    grid-column: 1;
  }
}

/* Quy tắc in / Lưu PDF phiếu báo giá: chỉ in nội dung phiếu liền mạch, 1 đầu trang duy nhất */
@media print {
  @page {
    margin: 12mm;
  }

  body.is-quote-pdf-open #main-content,
  body.is-quote-pdf-open .quote-pdf-backdrop,
  body.is-quote-pdf-open .quote-pdf-toolbar {
    display: none !important;
  }

  body.is-quote-pdf-open .quote-pdf-modal {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    inset: auto !important;
  }

  body.is-quote-pdf-open .quote-pdf-dialog {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  body.is-quote-pdf-open .quote-pdf-sheet {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    max-height: none !important;
  }

  body.is-quote-pdf-open .quote-pdf-table {
    page-break-inside: auto;
    font-size: 11.5px;           /* Cỡ chữ chuẩn in A4 giúp cột Hãng và Mã hàng luôn giữ 1 hàng */
  }

  /* Giảm nhẹ padding ô khi xuất PDF để toàn bộ 7 cột nằm gọn trong khổ giấy A4 */
  body.is-quote-pdf-open .quote-pdf-table th,
  body.is-quote-pdf-open .quote-pdf-table td {
    padding: 6px 5px;
  }

  body.is-quote-pdf-open .quote-pdf-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.is-quote-pdf-open .quote-pdf-table thead {
    display: table-header-group;
  }
}

/* ============================================================================
   [19] CATALOGUE CÁC HÃNG HỢP TÁC VỚI DCZ (catalogue.html)
   ============================================================================ */
.partner-catalogue-section {
  margin-bottom: 24px;
}

.partner-catalogue-head {
  margin-bottom: 16px;
}

/* Tiêu đề mục Catalogue các hãng hợp tác dùng dấu gạch xéo cam "/" đồng bộ với .page-header-box h1 */
.partner-catalogue-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.partner-catalogue-head h2::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
}

.partner-catalogue-head p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Lưới thẻ các hãng đối tác hợp tác với DCZ */
.partner-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.partner-catalogue-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--warm-border);
}

.partner-catalogue-logo-wrap {
  height: 76px;
  border-radius: 8px;
  background-color: var(--white);
  border: 1px solid var(--warm-gray-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
}

.partner-catalogue-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Thẻ logo phủ kín khung không chừa viền trắng (áp dụng cho logo nền đặc như SKF) */
.partner-catalogue-logo-wrap.is-full-bleed {
  padding: 0;
  border: 0;
}

.partner-catalogue-logo-wrap.is-full-bleed img {
  object-fit: cover;
}

.partner-catalogue-info h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.partner-catalogue-info p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.partner-catalogue-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.partner-catalogue-actions .btn {
  padding: 7px 8px;
  font-size: 12.5px;
  text-align: center;
}

/* Tiêu đề khối Gửi tin nhắn liên hệ dùng dấu gạch xéo "/" màu cam đồng bộ toàn site */
.contact-form-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.contact-form-heading::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
}

.contact-form-grid[hidden] {
  display: none;
}

/* Hộp thoại giới thiệu chi tiết thương hiệu hợp tác DCZ */
.partner-modal-dialog {
  width: min(640px, 100%);
}

.partner-modal-body {
  padding: 20px 22px;
  background-color: var(--white);
  overflow-y: auto;
}

.partner-modal-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--warm-border);
  margin-bottom: 14px;
}

.partner-modal-hero h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.partner-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.partner-modal-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

/* ============================================================================
   [20] MỤC CÂU HỎI THƯỜNG GẶP (FAQ) TRONG TRANG TÀI LIỆU (tai-lieu.html)
   ============================================================================ */
.faq-section {
  margin-top: 32px;
}

.faq-section-head {
  margin-bottom: 16px;
}

/* Tiêu đề Câu hỏi thường gặp dùng dấu gạch xéo "/" màu cam đồng bộ toàn site */
.faq-section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.faq-section-head h2::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
}

.faq-section-head p {
  font-size: 14px;
  color: var(--text-muted);
}

.faq-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.faq-sidebar {
  padding: 10px;
}

.faq-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  background-color: transparent;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.faq-nav-btn:hover {
  background-color: var(--warm-gray-bg);
  color: var(--charcoal);
}

.faq-nav-btn.is-active {
  background-color: #fff3ec;
  border-color: #ffd2bc;
  border-left-color: var(--orange-logo);
  color: var(--orange-logo);
  font-weight: 700;
}

.faq-q-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--warm-border);
}

.faq-qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-qa-item {
  padding: 14px 16px;
  border-radius: 10px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
}

.faq-qa-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.faq-qa-item p {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

/* Danh sách từng bước hướng dẫn chi tiết trong mỗi câu hỏi FAQ */
.faq-steps-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

.faq-steps-list li {
  margin: 0;
}

/* Nhóm liên kết nhanh dẫn tới trang hướng dẫn / chính sách liên quan */
.faq-item-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-item-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--charcoal);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.faq-item-link:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

/* Nút xem chi tiết trên thẻ thương hiệu đối tác tại trang Tất cả thương hiệu */
.partner-brand-actions {
  margin-top: auto;
  display: flex;
}

.partner-brand-actions .btn {
  width: 100%;
  justify-content: center;
}

/* Cột nội dung bên phải và hàng nút thao tác trong trang chi tiết thương hiệu */
.brand-detail-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Bỏ viền kẻ mờ và khoảng đệm thừa quanh logo trong trang chi tiết thương hiệu */
.brand-detail-card .partner-catalogue-logo-wrap {
  border: 0;
  padding: 0;
}

/* Khối giải thích các dòng dây curoa trong trang Hướng dẫn đo dây curoa */
.guide-section-card {
  padding: 22px;
}

.guide-section-head {
  margin-bottom: 16px;
}

/* Tiêu đề khối hướng dẫn dùng dấu gạch xéo / màu cam đồng bộ GEMINI.md */
.guide-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.guide-section-head h2::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
}

.guide-section-head p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Lưới hiển thị các dòng dây curoa DCZ Power */
.belt-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.belt-type-item {
  padding: 14px 16px;
  border-radius: 10px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.belt-type-item h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--charcoal);
}

.belt-type-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.55;
}

/* Lưới 3 cột đều cho 3 thẻ tổng quan dịch vụ trên trang dich-vu.html */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-overview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .services-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

/* Bảng thông số kỹ thuật chuẩn trong các trang Hướng dẫn đo: căn thẳng cột, có đường kẻ ngăn cách */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-top: 4px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--warm-border);
  vertical-align: middle;
}

.spec-table thead th {
  background-color: var(--warm-gray-bg);
  color: var(--charcoal);
  font-weight: 700;
  white-space: nowrap;
}

.spec-table tbody tr:hover {
  background-color: #faf9f7;
}

/* ============================================================================
   [17] KHỐI PHÂN TÍCH CÔNG THỨC TÍNH & CẮT BẢN RỘNG DÂY CUROA (huong-dan-do-day-curoa.html)
   ============================================================================ */

/* Lưới 2 cột cân đối cho thẻ phân tích công thức Poly-V / Timing Belt và nhóm cắt bản rộng */
.belt-formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* Chia đều 2 cột trên màn hình máy tính */
  gap: 16px;
  margin-top: 16px;
}

/* Thẻ hộp công thức nổi bật với nền xám ấm và viền trái cam thương hiệu DCZ */
.belt-formula-box {
  background-color: var(--warm-gray-bg); /* Nền xám ấm dịu mắt từ :root */
  border: 1px solid var(--warm-border);  /* Viền xám ấm mảnh */
  border-radius: var(--radius);          /* Bo góc đồng bộ toàn trang */
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.belt-formula-box h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--charcoal);
}

.belt-formula-box p,
.belt-formula-box li {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.6;
}

/* Khối hiển thị từng bước tính toán minh họa rõ ràng */
.belt-calc-example {
  background-color: var(--white);        /* Nền trắng tách biệt ví dụ tính toán */
  border: 1px dashed var(--orange-logo); /* Viền đứt nét màu cam DCZ làm điểm nhấn */
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-main);
}

/* Nhãn phân biệt dây cần cắt bản rộng và dây đúc sẵn */
.belt-cut-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background-color: var(--orange-logo);  /* Màu cam chủ đạo từ :root */
  color: var(--white);                   /* Chữ trắng tương phản cao */
}

.belt-cut-badge.is-fixed {
  background-color: var(--charcoal-soft); /* Màu đen than cho nhóm đúc sẵn không cắt */
  color: var(--white);
}

/* Chuyển về 1 cột trên tablet và điện thoại */
@media (max-width: 860px) {
  .belt-formula-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   [18] THANH CHUYỂN MÔ PHỎNG CÁC DẠNG DÂY CUROA (huong-dan-do-day-curoa.html)
   ============================================================================ */

/* Thanh chứa các nút chọn dạng dây curoa nằm gọn phía trên sơ đồ SVG */
.belt-diagram-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

/* Nút chọn từng dạng mặt cắt dây curoa */
.belt-diagram-tab {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--warm-border); /* Viền xám ấm mặc định */
  background-color: var(--warm-gray-bg); /* Nền xám ấm dịu mắt */
  color: var(--charcoal);                /* Chữ đen than dễ đọc */
  font-family: var(--font-sans);         /* Đồng bộ font Noto Sans */
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.belt-diagram-tab:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

/* Trạng thái đang chọn của nút mô phỏng dạng dây */
.belt-diagram-tab.is-active {
  background-color: var(--orange-logo);  /* Nền cam thương hiệu DCZ */
  border-color: var(--orange-logo);
  color: var(--white);                   /* Chữ trắng nổi bật */
}

/* ============================================================================
   [19] BANNER TRUNG TÂM KIẾN THỨC & TRA CỨU DCZ TRÊN TRANG CHỦ (trang-chu.html)
   ============================================================================ */

/* Khung banner nền đen than kết hợp mảng vát chéo cam tạo bố cục hoàn toàn mới */
.home-knowledge-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(115deg, var(--charcoal) 0%, var(--charcoal-soft) 68%, var(--orange-logo) 100%); /* Chuyển sắc từ đen than sang cam thương hiệu */
  border: 1px solid var(--charcoal-soft);
  box-shadow: var(--shadow-md);
  color: var(--white);
  font-family: var(--font-sans);         /* Giữ mặc định font Noto Sans */
}

/* Khối nội dung chính bên trái của banner */
.home-knowledge-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 640px;
}

/* Nhãn nhỏ phía trên tiêu đề banner */
.home-knowledge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--orange-logo);             /* Màu cam nhấn theo logo DCZ */
}

/* Tiêu đề chính của banner dùng dấu gạch xéo / màu cam */
.home-knowledge-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
  margin: 0;
}

.home-knowledge-title span {
  color: var(--orange-logo);
  margin-right: 6px;
}

.home-knowledge-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-light);              /* Chữ xám sáng dễ đọc trên nền tối */
  line-height: 1.5;
}

/* Khối phải gồm logo DCZ và các nút truy cập nhanh công cụ kỹ thuật */
.home-knowledge-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.home-knowledge-logo {
  height: 26px;
  width: auto;
  display: block;
}

.home-knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Nút liên kết nhanh dạng viên thuốc trên nền tối */
.home-knowledge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.home-knowledge-pill:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--charcoal);
  transform: translateY(-1px);
}

/* Thu gọn bố cục banner về 1 cột trên tablet và điện thoại (giữ nguyên nền riêng của các biến thể .dcz-banner-*) */
@media (max-width: 900px) {
  .home-knowledge-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 12px;
    gap: 10px;
  }

  .home-knowledge-banner:not([class*="dcz-banner-"]) {
    background: linear-gradient(155deg, var(--charcoal) 0%, var(--charcoal-soft) 78%, var(--orange-logo) 100%);
  }

  .home-knowledge-eyebrow {
    font-size: 10.5px;
  }

  .home-knowledge-title {
    font-size: 14.5px;
    line-height: 1.3;
  }

  .home-knowledge-desc {
    font-size: 12px;
    line-height: 1.4;
  }

  .home-knowledge-right {
    width: 100%;
    align-items: flex-start;
    gap: 8px;
  }

  .home-knowledge-logo {
    height: 20px;
  }

  /* Giữ các nút trong banner trên 1 hàng ngang duy nhất, không xuống dòng */
  .home-knowledge-actions {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }

  .home-knowledge-actions::-webkit-scrollbar {
    display: none;
  }

  .home-knowledge-pill {
    padding: 5px 9px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Các biến thể banner & background đa dạng dùng chung cấu trúc .home-knowledge-banner */
/* 1. Mẫu nền lưới kỹ thuật CAD (Chi tiết sản phẩm & Hướng dẫn đo) */
.home-knowledge-banner.dcz-banner-grid {
  background-color: #141820;
  background-image:
    radial-gradient(circle at 92% 18%, rgba(254, 86, 11, 0.28) 0%, transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px);
  border-left: 5px solid var(--orange-logo);
}

/* 2. Mẫu nền cam năng động sọc chéo cơ khí (Sản phẩm & Catalogue) */
.home-knowledge-banner.dcz-banner-orange {
  background-color: var(--orange-logo);
  background-image:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 8px, transparent 8px 18px),
    linear-gradient(125deg, #FE560B 0%, #df4200 62%, var(--charcoal) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.home-knowledge-banner.dcz-banner-orange .home-knowledge-eyebrow {
  color: #fff2eb;
}

.home-knowledge-banner.dcz-banner-orange .home-knowledge-title span {
  color: var(--white);
}

.home-knowledge-banner.dcz-banner-orange .home-knowledge-desc {
  color: #fff5ef;
}

.home-knowledge-banner.dcz-banner-orange .home-knowledge-pill {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--charcoal);
}

.home-knowledge-banner.dcz-banner-orange .home-knowledge-pill:hover {
  background-color: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

/* 3. Mẫu nền sáng ấm tinh tế (Giỏ hàng & Tài liệu) */
.home-knowledge-banner.dcz-banner-light {
  background: linear-gradient(135deg, var(--white) 0%, #fff7f2 62%, #ffe7d9 100%);
  border: 1.5px solid #f4c6ae;
  border-left: 5px solid var(--orange-logo);
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}

.home-knowledge-banner.dcz-banner-light .home-knowledge-eyebrow {
  color: var(--orange-logo);
}

.home-knowledge-banner.dcz-banner-light .home-knowledge-title {
  color: var(--charcoal);
}

.home-knowledge-banner.dcz-banner-light .home-knowledge-desc {
  color: var(--text-muted);
}

.home-knowledge-banner.dcz-banner-light .home-knowledge-pill {
  background-color: var(--white);
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.home-knowledge-banner.dcz-banner-light .home-knowledge-pill:hover {
  background-color: var(--orange-logo);
  color: var(--white);
}

/* 4. Mẫu nền chia mảng chấm bi công nghiệp (Thương hiệu) */
.home-knowledge-banner.dcz-banner-split {
  background-color: var(--charcoal);
  background-image:
    linear-gradient(112deg, transparent 0 68%, rgba(254, 86, 11, 0.92) 68.3% 100%),
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 14px 14px;
}

@media (max-width: 900px) {
  .home-knowledge-banner.dcz-banner-split {
    background-image:
      linear-gradient(165deg, var(--charcoal) 0 62%, rgba(254, 86, 11, 0.92) 62.5% 100%),
      radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  }
}

/* 5. Mẫu nền vân Carbon công nghiệp (Dịch vụ) */
.home-knowledge-banner.dcz-banner-carbon {
  background-color: #191c22;
  background-image:
    linear-gradient(90deg, rgba(254, 86, 11, 0.16) 0%, transparent 40%, rgba(254, 86, 11, 0.22) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 4px, transparent 4px 10px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.25) 0 4px, transparent 4px 10px);
  border-top: 3px solid var(--orange-logo);
  border-bottom: 3px solid var(--orange-logo);
}

/* 6. Mẫu nền ảnh Poster Vòng bi & chữ DCZ ở background */
.home-knowledge-banner.dcz-banner-bearings-bg {
  background-color: #141619;
  background-image:
    linear-gradient(95deg, rgba(20, 22, 25, 0.92) 0%, rgba(20, 22, 25, 0.72) 52%, rgba(20, 22, 25, 0.42) 100%),
    url("assets/image-banner/poster-vong-bi-dcz-bg.jpg");
  background-size: cover;
  background-position: center right;
  border-left: 5px solid var(--orange-logo);
}

/* ============================================================================
   [20] BỘ CHỌN THƯƠNG HIỆU THẢ XUỐNG ĐỒNG BỘ MENU HEADER (san-pham.html)
   ============================================================================ */

/* Khung bọc nút chọn và bảng thả xuống thương hiệu ở sidebar */
.sidebar-brand-picker {
  position: relative;
  width: 100%;
}

/* Nút hiển thị hãng đang chọn, đồng bộ kích thước với .catalog-select */
.sidebar-brand-trigger {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background-color: var(--warm-gray-bg);
  color: var(--text-main);
  font-family: var(--font-sans);         /* Đồng bộ font Noto Sans mặc định */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sidebar-brand-trigger:hover,
.sidebar-brand-picker.is-open .sidebar-brand-trigger {
  background-color: var(--white);
  border-color: var(--orange-logo);
}

.sidebar-brand-picker.is-open .sidebar-brand-trigger .cat-caret {
  transform: rotate(180deg);
  color: var(--orange-logo);
}

/* Bảng thả xuống dùng chung kiểu dáng & hiệu ứng 0.2s ease với .brand-dropdown ở Header */
.sidebar-brand-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, 88vw);              /* Đủ rộng để xếp 2 hãng DCZ và dải chip đối tác gọn đẹp */
  background-color: var(--white);
  color: var(--text-main);
  border: 1px solid var(--warm-border);
  border-top: 3px solid var(--orange-logo);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-md);
  padding: 12px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.sidebar-brand-picker.is-open .sidebar-brand-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Nút Tất cả thương hiệu ở đầu bảng thả xuống */
.sidebar-brand-all-btn {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--warm-gray-bg);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.sidebar-brand-all-btn:hover,
.sidebar-brand-all-btn.is-active {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

/* Đánh dấu mục đang chọn trong bảng thả xuống thương hiệu */
.sidebar-brand-menu .brand-dropdown-item,
.sidebar-brand-menu .brand-dropdown-chip {
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
}

.sidebar-brand-menu .brand-dropdown-item {
  border: 1px solid var(--warm-border);
  background-color: var(--warm-gray-bg);
}

.sidebar-brand-menu .brand-dropdown-item.is-active,
.sidebar-brand-menu .brand-dropdown-chip.is-active {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

/* ============================================================================
   [21] BỘ CHỌN 8 NGÔN NGỮ TRÊN THANH HEADER (GIỮA GIỎ HÀNG VÀ ĐĂNG NHẬP)
   ============================================================================ */

/* Khung bọc nút chọn ngôn ngữ và bảng thả xuống trên thanh Header */
.header-lang {
  position: relative;
  flex-shrink: 0;
}

/* Nút bấm chọn ngôn ngữ đồng bộ kích thước với nút giỏ hàng */
.header-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background-color: var(--charcoal-soft);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-family: var(--font-sans);         /* Đồng bộ font Noto Sans mặc định */
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.header-lang-btn:hover,
.header-lang.is-open .header-lang-btn {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.header-lang.is-open .header-lang-btn .nav-caret {
  transform: rotate(180deg);
}

/* Bảng thả xuống 8 ngôn ngữ đồng bộ 100% hiệu ứng 0.2s ease với .brand-dropdown và .mega-4level-panel */
.header-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 196px;
  background-color: var(--white);
  color: var(--text-main);
  border: 1px solid var(--warm-border);
  border-top: 3px solid var(--orange-logo);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 1150;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Vùng đệm vô hình giữ liên tục khi di chuột từ nút xuống menu */
.header-lang-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.header-lang.is-open .header-lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Từng dòng lựa chọn ngôn ngữ trong bảng thả xuống */
.header-lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-lang-opt:hover {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.header-lang-opt.is-active {
  background-color: #fff4ee;
  color: var(--orange-logo);
  font-weight: 700;
}

.header-lang-code {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.header-lang-opt.is-active .header-lang-code {
  color: var(--orange-logo);
}

/* Ẩn thanh banner nổi trên cùng của Google Translate, giữ nguyên widget ẩn ngoài màn hình để dịch ổn định trên điện thoại */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
body > .skiptranslate {
  display: none !important;
}

#google_translate_element,
#google_translate_element .skiptranslate {
  display: block !important;
}

body {
  top: 0 !important;
}

/* ============================================================================
   [22] GIAO DIỆN MOBILE APP & ĐIỆN THOẠI GẬP NĂM 2026 (THÍCH ỨNG MỌI MÀN HÌNH)
   ============================================================================ */

/* Trên máy tính (> 960px): ẩn thanh đáy App, hộp tìm kiếm di động và giữ danh sách liên hệ nổi dạng cột */
.dcz-app-tabbar,
.dcz-mobile-search-sheet {
  display: none;
}

.floating-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-contact-toggle {
  display: none;
}

/* Màn hình điện thoại & thiết bị di động (<= 960px) */
@media (max-width: 960px) {
  /* Khóa tràn ngang tuyệt đối trên mọi màn hình điện thoại (2015-2026: fallback hidden trước clip) */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  /* Chừa khoảng trống đáy cho thanh điều hướng App (fallback 74px cho máy đời 2015-2017) */
  body {
    padding-bottom: 74px;
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  /* Tận dụng tối đa chiều rộng màn hình điện thoại (fallback 8px trước max/env) */
  .container {
    padding-left: 8px;
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: 8px;
    padding-right: max(8px, env(safe-area-inset-right));
  }

  /* Giảm khoảng đệm trong card để phần nội dung rộng tối đa */
  .surface-card,
  .guide-diagram-card,
  .detail-cross-section-card,
  .brand-card {
    padding: 12px 10px;
  }

  .section-block {
    padding: 10px 0 4px !important;
  }

  .pagination-bar,
  #catalog-pagination {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pagination-bar::-webkit-scrollbar {
    display: none;
  }

  .pagination-bar button,
  .pagination-bar a {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .catalog-meta-bar {
    gap: 6px;
    margin-bottom: 10px;
  }

  .notice-pill {
    font-size: 11px;
    line-height: 1.35;
    padding: 4px 8px;
  }

  .footer-trust-bar {
    margin-top: 0 !important;
  }

  .site-footer {
    padding: 24px 0 calc(78px + env(safe-area-inset-bottom));
  }

  /* Ngăn các khối grid/flex con đẩy rộng quá màn hình */
  main,
  section,
  article,
  .surface-card,
  .guide-diagram-card,
  .detail-cross-section-card,
  .catalog-main,
  .detail-info-col {
    min-width: 0;
    max-width: 100%;
  }

  /* Dải thông báo cam trên cùng: gọn đẹp, không cắt chữ thô */
  .banner-chay {
    height: 24px;
    font-size: 11.5px;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  /* Thanh Header dạng App 2 hàng cân đối:
     - Hàng 1: Menu + Logo bên trái | Giỏ hàng + Ngôn ngữ + Đăng nhập bên phải (cùng 1 hàng thẳng tắp)
     - Hàng 2: Thanh tìm kiếm toàn chiều rộng */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
  }

  .header-inner {
    padding: 7px max(8px, env(safe-area-inset-right)) 7px max(8px, env(safe-area-inset-left));
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  .header-brand-wrap {
    order: 0;
    margin-right: 0;
    gap: 6px;
    min-width: 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  /* Cho logo đứng trước tìm kiếm; các mục con vẫn xếp trực tiếp trên header mobile */
  .header-right-actions {
    display: contents;
  }

  /* Ẩn nút 3 gạch cạnh Logo trên điện thoại vì đã có nút Danh mục ở thanh đáy */
  .mobile-nav-toggle {
    display: none !important;
  }

  .header-logo img {
    height: 22px !important;
    width: auto;
  }

  .header-search-wrap {
    order: 1;
  }

  #dcz-header-bell-wrap {
    order: 2;
  }

  .header-cart-btn {
    display: inline-flex;
    order: 3;
    flex-shrink: 0;
    width: 36px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    align-items: center;
  }

  .header-cart-btn svg {
    width: 17px;
    height: 17px;
  }

  .header-cart-btn .cart-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
  }

  /* Thanh tìm kiếm gọn nằm giữa ngang hàng với Logo, Giỏ hàng và nút Ngôn ngữ */
  .header-search {
    display: flex;
    order: 2;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 34px;
    border-radius: 8px;
    margin: 0;
  }

  .header-search .search-icon-left {
    margin-left: 8px;
    margin-right: 2px;
    width: 14px;
    height: 14px;
  }

  .header-search .search-input {
    padding: 0 8px 0 4px;
    font-size: 12px;
    min-width: 0;
  }

  /* Ẩn nút chữ "Tìm kiếm" trên điện thoại để ô nhập mã rộng tối đa (bấm Enter/Tìm trên bàn phím) */
  .header-search .search-btn {
    display: none;
  }

  .header-lang {
    order: 4;
    flex-shrink: 0;
    position: relative;
    z-index: 1200;
  }

  .header-lang-btn {
    height: 34px;
    padding: 0 7px;
    font-size: 11.5px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
  }

  /* Bảng chọn 8 ngôn ngữ trên điện thoại: gọn trong khung, dễ chạm bằng ngón tay */
  .header-lang-menu {
    top: calc(100% + 8px);
    right: 0;
    width: min(210px, calc(100vw - 16px));
    z-index: 1600;
    border-radius: 10px;
  }

  .header-lang-menu::before {
    display: none;
  }

  .header-lang-opt {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13.5px;
    touch-action: manipulation;
  }

  .header-auth {
    display: none; /* Đã có nút Đăng nhập / Tài khoản ở thanh điều hướng đáy App */
  }

  /* Tiêu đề trang và các khối nội dung co giãn vừa màn hình */
  .page-header-box h1,
  .section-head h1 {
    font-size: clamp(20px, 5.5vw, 28px);
    line-height: 1.25;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-head .btn {
    width: 100%;
    justify-content: center;
  }

  /* Banner trên điện thoại: ẩn 3 nút Trước/Sau/Tạm dừng, chỉ giữ dấu chấm gọn và dùng vuốt ngang */
  .hero-carousel-nav-group,
  #hero-play-btn {
    display: none;
  }

  .hero-carousel-controls {
    padding: 8px 12px;
    justify-content: center;
    background-color: var(--charcoal);
  }

  /* Giữ breadcrumb, các nút bấm và bảng thông số gọn trên 1 dòng, tránh bẻ chữ xấu */
  .page-breadcrumb {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-size: 12px;
    gap: 5px;
  }

  .page-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .btn,
  .small-banner-cta,
  .home-knowledge-pill {
    white-space: nowrap;
    font-size: clamp(12px, 3.3vw, 13.5px);
    padding: 8px 12px;
  }

  .hero-banner-actions,
  .detail-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .hero-banner-actions .btn,
  .detail-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 9px 8px;
  }

  /* Bảng thông số và hướng dẫn tự cuộn ngang mượt khi nhiều cột, không vỡ layout */
  .specs-table,
  .guide-table,
  .cart-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 12.5px;
  }

  .specs-table th,
  .specs-table td,
  .guide-table th,
  .guide-table td {
    padding: 8px 10px;
  }

  .specs-table th {
    white-space: nowrap;
  }

  /* Căn chỉnh lại khối Tra cứu vòng bi trên điện thoại: Mã vòng bi rộng 100%, d/D/B nằm 3 cột thẳng hàng, 2 nút nằm ngang */
  .catalog-top-controls .dimension-search-form,
  .dimension-search-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    align-items: end;
  }

  /* Trên điện thoại: đưa phần Tìm kiếm / Tra cứu & kết quả lên trên phần Nhóm sản phẩm */
  .catalog-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 8px;
  }

  .catalog-layout > section {
    order: 1;
  }

  /* Ẩn cột Nhóm sản phẩm trên điện thoại vì đã có nút Danh mục ở thanh đáy App */
  .catalog-layout > .catalog-sidebar {
    display: none;
  }

  .general-search-form {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px 8px;
  }

  .general-search-form .dimension-field {
    grid-column: 1 / -1;
  }

  .general-search-form .btn {
    width: 100%;
    justify-content: center;
  }

  .dimension-field-code {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    padding: 0;
  }

  .dimension-field-code .catalog-input,
  .dimension-search-form .catalog-input {
    width: 100%;
    min-width: 0;
  }

  .dimension-or-divider {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    height: auto;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
  }

  .dimension-or-divider::before,
  .dimension-or-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background-color: var(--warm-border);
  }

  .dimension-search-form .dimension-field {
    min-width: 0;
  }

  .dimension-search-form .dimension-field label {
    font-size: 11.5px;
    line-height: 1.25;
    min-height: 29px;
    display: flex;
    align-items: flex-end;
  }

  .dimension-search-form button[type="submit"] {
    grid-column: 1 / 3;
    width: 100%;
    justify-content: center;
  }

  .dimension-search-form #dim-clear-btn {
    grid-column: 3 / 4;
    width: 100%;
    justify-content: center;
  }

  /* Ảnh và bản vẽ CAD SVG luôn nằm gọn trong khung */
  .guide-diagram-card svg,
  .detail-cross-section-card svg,
  .brand-card img {
    max-width: 100%;
    height: auto;
  }

  /* Thanh tab hướng dẫn đo và chi tiết sản phẩm cuộn ngang mượt kiểu App */
  .belt-diagram-tabs,
  .detail-tabs-nav,
  .brand-filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 4px;
  }

  .belt-diagram-tabs::-webkit-scrollbar,
  .detail-tabs-nav::-webkit-scrollbar,
  .brand-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .belt-diagram-tab,
  .detail-tab-btn,
  .brand-filter-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Thu gọn cụm 5 icon liên hệ nổi thành 1 nút tròn nhỏ góc dưới phải, không che chữ */
  .floating-contact {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(74px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 1075;
  }

  .floating-contact-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background-color: var(--orange-logo);
    color: var(--white);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .floating-contact-toggle:active {
    transform: scale(0.94);
  }

  .floating-contact-list {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .floating-contact.is-open .floating-contact-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Thanh điều hướng đáy chuẩn Mobile App (5 mục chính) */
  .dcz-app-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--warm-border);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    padding: 6px max(4px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
  }

  .dcz-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 44px;
    min-width: 0;
    padding: 4px 2px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-size: clamp(9.5px, 2.7vw, 11px);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .dcz-tab-item > span:not(.dcz-tab-icon-wrap) {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dcz-tab-item svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
  }

  .dcz-tab-item.is-active,
  .dcz-tab-item:hover {
    color: var(--orange-logo);
    font-weight: 700;
  }

  .dcz-tab-icon-wrap {
    position: relative;
    display: inline-flex;
    overflow: visible;
  }

  .dcz-tab-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    border: 1.5px solid var(--white);
    background-color: var(--orange-logo);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
  }

  /* Hộp tìm kiếm nhanh bật lên ngay phía trên thanh đáy App khi bấm kính lúp */
  .dcz-mobile-search-sheet:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1090;
  }

  .dcz-mobile-search-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(20, 22, 25, 0.45);
    backdrop-filter: blur(2px);
  }

  .dcz-mobile-search-box {
    position: absolute;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(74px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background-color: var(--white);
    border: 1px solid var(--warm-border);
    border-top: 3px solid var(--orange-logo);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .dcz-mobile-search-box svg {
    color: var(--orange-logo);
    flex-shrink: 0;
  }

  .dcz-mobile-search-box input {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 14px;
  }

  .dcz-mobile-search-submit {
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background-color: var(--orange-logo);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
  }

  .dcz-mobile-search-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background-color: var(--warm-gray-bg);
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Hỗ trợ chiều cao động 100dvh (fallback 100vh cho máy 2015-2022) và phản hồi chạm tức thì */
  .mobile-drawer-panel {
    height: 100vh;
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .btn,
  .dcz-tab-item,
  .header-cart-btn {
    touch-action: manipulation;
  }
}

/* ============================================================================
   [23] NÚT ĐĂNG NHẬP / ĐĂNG KÝ BẰNG GOOGLE / GMAIL TRONG dang-nhap.html
   ============================================================================ */
.auth-social-block {
  margin-top: 16px;
}

/* Đường phân cách "Hoặc" đồng bộ chữ và viền chuẩn DCZ */
.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background-color: var(--warm-border);
}

/* Nút Đăng nhập bằng Google / Gmail nền trắng viền ấm, hiệu ứng 0.2s ease */
.auth-google-btn {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  background-color: var(--white);
  border: 1.5px solid var(--warm-border);
  border-radius: 8px;
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-google-btn:hover {
  border-color: var(--orange-logo);
  background-color: #fffaf7;
  box-shadow: var(--shadow-sm);
}

/* Hộp nhập nhanh Gmail ngay bên dưới nút Google khi chưa cấu hình Client ID */
.auth-gmail-quick-box {
  margin-top: 12px;
  padding: 14px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
}

/* ============================================================================
   [24] GIAO DIỆN HỒ SƠ & QUẢN LÝ TÀI KHOẢN KHÁCH HÀNG DCZ (SAU KHI ĐĂNG NHẬP)
   ============================================================================ */
.account-dashboard-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  align-items: start;
}

.account-dashboard-grid[hidden] {
  display: none !important;
}

.account-sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

/* Khung ảnh đại diện (Avatar) hình tròn viền cam DCZ */
/* Khối ảnh đại diện và nút đổi ảnh gọn gàng trong thanh bên tài khoản */
.account-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.account-avatar-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-logo) 0%, var(--charcoal) 100%);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-md);
}

.account-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-avatar-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Thu nhỏ nút Đổi ảnh / Xóa ảnh dạng viên thuốc gọn nhẹ */
.account-avatar-actions .btn {
  padding: 3px 10px;
  font-size: 11.5px;
  line-height: 1.35;
  border-radius: 999px;
  min-height: 0;
}

.account-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #fff4ee;
  border: 1px solid #f7c7af;
  color: var(--orange-logo);
  font-size: 11.5px;
  font-weight: 700;
}

.account-quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--warm-border);
}

/* Menu điều hướng dọc phân nhóm trong cột trái tài khoản (loại bỏ thanh cuộn ngang) */
.account-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--warm-border);
}

.account-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-nav-group-label {
  padding: 0 10px 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.account-nav-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.account-tab-btn::after {
  content: "›";
  font-size: 15px;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.45;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.account-tab-btn:hover {
  color: var(--orange-logo);
  background-color: var(--warm-gray-bg);
}

.account-tab-btn:hover::after {
  color: var(--orange-logo);
  opacity: 0.9;
  transform: translateX(2px);
}

.account-tab-btn.is-active {
  color: var(--orange-logo);
  background-color: #fff4ee;
  border-color: rgba(235, 92, 20, 0.2);
  border-left-color: var(--orange-logo);
  font-weight: 700;
}

.account-tab-btn.is-active::after {
  color: var(--orange-logo);
  opacity: 1;
}

.account-type-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-type-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--warm-border);
  border-radius: 8px;
  background-color: var(--warm-gray-bg);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.account-type-pill:has(input:checked) {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--charcoal);
}

.account-form-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Avatar nhỏ gọn hình tròn chuẩn 1:1 (không viền) và menu thả xuống khi trỏ vào tên tài khoản trên Header */
.header-inner img.header-avatar-mini,
.header-avatar-mini {
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: none;
  flex-shrink: 0;
}

.header-user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-user-trigger {
  gap: 6px;
}

.header-user-menu-wrap:hover .header-user-trigger .nav-caret {
  transform: rotate(180deg);
}

/* Bảng menu thả xuống đồng bộ hiệu ứng 0.2s ease, bo góc và đổ bóng chuẩn DCZ */
.header-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 196px;
  background-color: var(--white);
  color: var(--text-main);
  border: 1px solid var(--warm-border);
  border-top: 3px solid var(--orange-logo);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Vùng đệm vô hình giữ menu mở liên tục khi di chuột từ tên xuống bảng */
.header-user-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.header-user-menu-wrap:hover .header-user-dropdown,
.header-user-menu-wrap:focus-within .header-user-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-user-opt {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-user-opt:hover {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.header-user-opt.is-logout {
  border-top: 1px solid var(--warm-border);
  margin-top: 2px;
  padding-top: 9px;
  color: #dc2626;
}

/* ============================================================================
   [25] HỆ THỐNG NHẬP MÃ XÁC NHẬN KHÔNG PHẢI ROBOT (DCZ CANVAS CAPTCHA)
   ============================================================================ */
.dcz-captcha-box {
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background-color: var(--warm-gray-bg);
}

.dcz-captcha-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.dcz-captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dcz-captcha-canvas {
  display: block;
  width: 144px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  flex-shrink: 0;
}

.dcz-captcha-refresh {
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--warm-border);
  border-radius: 6px;
  background-color: var(--white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.dcz-captcha-refresh:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.dcz-captcha-input {
  flex: 1 1 130px;
  min-width: 110px;
  height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--warm-border);
  border-radius: 6px;
  background-color: var(--white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: border-color 0.2s ease;
}

.dcz-captcha-input:focus {
  outline: none;
  border-color: var(--orange-logo);
}

.dcz-captcha-err {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  min-height: 16px;
}

/* ============================================================================
   [26] THẺ THỐNG KÊ TỔNG QUAN & CÁC MỤC B2B MỞ RỘNG TRONG TÀI KHOẢN
   ============================================================================ */
.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.account-stat-card {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--warm-border);
  background-color: var(--warm-gray-bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange-logo);
  line-height: 1.1;
}

.account-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.account-inline-card-form {
  padding: 12px 14px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background-color: var(--warm-gray-bg);
}

@media (max-width: 720px) {
  .account-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .account-dashboard-grid,
  .account-form-2col,
  .account-type-pills {
    grid-template-columns: 1fr;
  }

  /* Trên màn hình nhỏ: menu tài khoản xếp gọn 2 cột bọc dòng, không kéo ngang */
  .account-nav-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .account-tab-btn {
    border: 1px solid var(--warm-border);
    border-left-width: 3px;
    padding: 9px 10px;
    font-size: 13px;
  }
}

/* ============================================================================
   TRANG SƠ ĐỒ TRANG WEB (so-do-trang-web.html) - BỐ CỤC CÂY 3 CỘT CHUẨN DCZ
   ============================================================================ */
.sitemap-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.sitemap-section {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 22px 24px 26px;
  box-shadow: var(--shadow-sm);
}

/* Tiêu đề mục lớn đồng bộ dấu gạch xéo / màu cam bên trái (theo quy tắc DCZ) */
.sitemap-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--warm-border);
  font-size: 19px;
  font-weight: 800;
  color: var(--charcoal);
}

.sitemap-section-heading::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
}

/* Thanh nhóm danh mục cấp 1 nền xám ấm, bo góc chuẩn DCZ */
.sitemap-group-block + .sitemap-group-block {
  margin-top: 22px;
}

.sitemap-group-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  margin-bottom: 16px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  color: var(--charcoal);
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.sitemap-group-bar::before {
  content: "›";
  color: var(--orange-logo);
  font-size: 17px;
  line-height: 1;
}

.sitemap-group-bar:hover {
  color: var(--orange-logo);
  border-color: rgba(235, 92, 20, 0.35);
  background-color: #fff4ee;
}

/* Lưới 3 cột hiển thị danh mục cấp 2 và cấp 3 */
.sitemap-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 26px;
  padding-inline: 6px;
}

.sitemap-branch {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sitemap-branch-title {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sitemap-branch-title::before {
  content: "›";
  color: var(--orange-logo);
  font-weight: 800;
}

.sitemap-branch-title:hover {
  color: var(--orange-logo);
}

.sitemap-leaf-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sitemap-leaf-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sitemap-leaf-list a::before {
  content: "›";
  color: var(--orange-logo);
  font-size: 13px;
  opacity: 0.75;
}

.sitemap-leaf-list a:hover {
  color: var(--orange-logo);
  transform: translateX(2px);
}

@media (max-width: 960px) {
  .sitemap-3col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .sitemap-section {
    padding: 16px 14px 20px;
  }

  .sitemap-3col-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================================================
   TRANG ƯU ĐÃI & KHUYẾN MẠI (uu-dai.html)
   ============================================================================ */
.promo-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.promo-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-radius: 14px;
  background: linear-gradient(125deg, #1b1d21 0%, #2a2d33 65%, #3d2215 100%);
  color: var(--white);
  border: 1px solid rgba(235, 92, 20, 0.35);
  box-shadow: var(--shadow-md);
}

.promo-hero-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background-color: rgba(235, 92, 20, 0.2);
  border: 1px solid rgba(235, 92, 20, 0.5);
  color: #ff9a62;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.promo-hero-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.promo-hero-card p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 660px;
}

.promo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.promo-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--charcoal);
}

.promo-section-title::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
}

/* Lưới thẻ chương trình khuyến mại */
.promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.promo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.promo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(235, 92, 20, 0.45);
  box-shadow: var(--shadow-md);
}

.promo-card-tag {
  display: inline-block;
  padding: 3px 9px;
  margin-bottom: 8px;
  border-radius: 6px;
  background-color: #fff4ee;
  color: var(--orange-logo);
  font-size: 11.5px;
  font-weight: 800;
}

.promo-card h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--charcoal);
}

.promo-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.promo-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--warm-border);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Lưới Voucher sao chép nhanh */
.promo-voucher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.promo-voucher-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background-color: var(--white);
  border: 1.5px dashed rgba(235, 92, 20, 0.45);
  border-radius: 12px;
}

.promo-voucher-code {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--charcoal);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.promo-voucher-title {
  margin: 8px 0 4px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--charcoal);
}

.promo-voucher-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .promo-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-voucher-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .promo-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Nền chấm kỹ thuật (dot-matrix) trên nền chuyển sắc ấm áp dụng cho toàn bộ vùng nội dung chính của website */
#main-content {
  position: relative;
  min-height: calc(100vh - 180px);
  background-color: var(--warm-gray-bg);
  background-image:
    radial-gradient(rgba(24, 26, 30, 0.085) 1.1px, transparent 1.1px),
    linear-gradient(135deg, rgba(235, 92, 20, 0.08) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(24, 26, 30, 0.05) 100%);
  background-size: 20px 20px, 100% 100%;
}

/* Đổ bóng nổi khối nhẹ cho các thẻ trắng trên nền kỹ thuật trang Tài khoản */
body[data-page="auth"] .auth-card-box,
body[data-page="auth"] .account-sidebar-card,
body[data-page="auth"] .account-main-card {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  box-shadow: var(--shadow-md);
}

/* ============================================================================
   THANH THÔNG BÁO & TÙY CHỈNH COOKIE DCZ (THU MẢNH SÁT ĐÁY, RỘNG BẰNG WEB)
   ============================================================================ */
.dcz-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1600;
  background-color: #f4f6fa;
  border-top: 2px solid var(--orange-logo);
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.14);
  padding: 10px 24px;
  font-family: var(--font-sans);
}

.dcz-cookie-inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-right: 34px;
}

.dcz-cookie-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dcz-cookie-info {
  flex: 1 1 auto;
  min-width: 0;
}

.dcz-cookie-close {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--charcoal);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dcz-cookie-close:hover {
  background-color: rgba(24, 26, 30, 0.08);
  color: var(--orange-logo);
}

.dcz-cookie-title {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--charcoal);
}

.dcz-cookie-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-main);
}

.dcz-cookie-prefs {
  margin: 10px 0 2px;
  padding: 10px 14px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dcz-cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--charcoal);
  cursor: pointer;
}

.dcz-cookie-pref-row small {
  color: var(--text-muted);
  font-weight: 400;
}

.dcz-cookie-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dcz-cookie-actions .btn {
  padding: 7px 13px;
  font-size: 12.5px;
  white-space: nowrap;
}

.dcz-cookie-policy-link {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-logo);
  text-decoration: underline;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.dcz-cookie-policy-link:hover {
  color: var(--orange-dark);
}

.footer-cookie-reopen-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: inherit;
  color: var(--orange-logo);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 960px) {
  .dcz-cookie-bar-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dcz-cookie-close {
    top: 0;
    transform: none;
  }
}

@media (max-width: 768px) {
  .dcz-cookie-banner {
    bottom: 62px;
    padding: 10px 14px;
    max-height: 70vh;
    overflow-y: auto;
  }

  .dcz-cookie-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .dcz-cookie-actions .btn {
    flex: 1 1 auto;
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* ============================================================================
   TRANG QUẢN TRỊ NỘI BỘ DCZ (admin.html)
   ============================================================================ */
/* Cụm trạng thái, thông báo và đường về trang chủ tự co theo chiều rộng màn hình */
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-header-label {
  min-width: 0;
}

/* Nút Về trang chủ trên header Admin đồng bộ chiều cao và bo góc với nút Giỏ hàng / Ngôn ngữ trên web demo */
.admin-header-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-header-home-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.admin-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-panel-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Giữ nền và màu chữ các nút Excel rõ nét, không để hiệu ứng nút chung làm mất tương phản */
.admin-panel-tools .admin-excel-action {
  position: relative;
  overflow: hidden;
  background-size: 100% 100%;
  animation: none;
}

.admin-panel-tools .admin-excel-action--template {
  color: var(--orange-logo);
  border-color: var(--warm-border);
  background: linear-gradient(135deg, var(--white), #fff4ee);
  box-shadow: var(--shadow-sm);
}

.admin-panel-tools .admin-excel-action--download {
  color: var(--white);
  border-color: var(--charcoal);
  background: linear-gradient(135deg, #303640, var(--charcoal));
  box-shadow: 0 4px 12px rgba(20, 22, 25, 0.18);
}

.admin-panel-tools .admin-excel-action--import {
  color: var(--white);
  border-color: var(--orange-logo);
  background: linear-gradient(135deg, #ff7b32, var(--orange-logo), var(--orange-dark));
  box-shadow: 0 4px 12px rgba(235, 92, 20, 0.24);
}

.admin-excel-action--template::before {
  content: "\25A4";
  font-size: 15px;
}

.admin-excel-action--download::before {
  content: "\2193";
  font-size: 17px;
  font-weight: 800;
}

.admin-excel-action--import::before {
  content: "\2191";
  font-size: 17px;
  font-weight: 800;
}

.admin-panel-tools .admin-excel-action--template:hover {
  color: var(--orange-logo);
  border-color: var(--orange-logo);
  background: #fff4ee;
}

.admin-panel-tools .admin-excel-action--download:hover {
  color: var(--white);
  border-color: var(--charcoal);
  background: linear-gradient(135deg, #303640, var(--charcoal));
}

.admin-panel-tools .admin-excel-action--import:hover {
  color: var(--white);
  border-color: var(--orange-dark);
  background: linear-gradient(135deg, #ff873f, var(--orange-logo), var(--orange-dark));
}

.admin-panel-tools .admin-excel-action:hover {
  filter: brightness(1.06);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.admin-panel-tools .admin-excel-action:active {
  transform: translateY(0);
}

.admin-panel-tools .admin-excel-action:focus-visible {
  outline: 3px solid rgba(254, 86, 11, 0.28);
  outline-offset: 2px;
}

.admin-search-input {
  width: 240px;
  max-width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  background-color: var(--white);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  background-color: var(--warm-gray-bg);
  color: var(--charcoal);
  font-weight: 800;
  text-align: center;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--warm-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--warm-border);
  text-align: center;
  vertical-align: middle;
  color: var(--text-main);
  transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover td {
  background-color: #fff9f5;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr.is-selected td {
  background-color: #fff6f0;
}

.admin-check-col {
  width: 38px;
  text-align: center !important;
}

.admin-check-input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange-logo);
  cursor: pointer;
  vertical-align: middle;
}

/* Thanh bộ lọc Thời gian (Tháng này / Tùy chỉnh ngày) & Trạng thái trong Quản trị */
.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
}

.admin-filter-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-filter-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--charcoal);
}

.admin-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-filter-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.admin-filter-radio input {
  accent-color: var(--orange-logo);
  cursor: pointer;
}

.admin-filter-radio:has(input:checked) {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
  font-weight: 700;
}

.admin-custom-dates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-custom-dates[hidden] {
  display: none !important;
}

.admin-date-input {
  width: 145px;
  padding: 5px 8px;
  font-size: 12.5px;
}

/* Bộ chọn ngày Custom Calendar Dropdown chuẩn DCZ (đồng bộ 0.2s ease, bo góc, viền ấm và đổ bóng) */
.dcz-date-wrap {
  position: relative;
  display: inline-block;
}

.dcz-date-native-hidden {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
}

.dcz-date-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 146px;
  height: 36px;
  padding: 0 11px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.dcz-date-trigger.is-placeholder {
  color: var(--text-muted);
}

.dcz-date-trigger:hover,
.dcz-date-wrap.is-open .dcz-date-trigger {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.dcz-date-wrap.is-open .dcz-date-trigger {
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.14);
}

.dcz-date-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  width: 276px;
  padding: 12px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dcz-date-wrap.is-open .dcz-date-popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dcz-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dcz-cal-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--black);
}

.dcz-cal-nav {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.dcz-cal-nav:hover {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.dcz-cal-weekdays,
.dcz-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.dcz-cal-weekdays span {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 0;
}

.dcz-cal-day {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: transparent;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dcz-cal-day.is-outside {
  color: #b8b2ac;
}

.dcz-cal-day.is-today {
  border-color: rgba(242, 101, 34, 0.45);
  font-weight: 700;
}

.dcz-cal-day.is-in-range {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.dcz-cal-day:hover {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.dcz-cal-day.is-selected {
  background-color: var(--orange-logo);
  border-color: var(--orange-logo);
  color: var(--white);
  font-weight: 700;
}

.dcz-cal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--warm-border);
}

.dcz-cal-action {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dcz-cal-action:hover {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.dcz-cal-action.is-today-btn {
  color: var(--orange-logo);
}

/* Nút Sửa nhanh trên bảng quản trị và form chỉnh sửa trong modal Admin chuẩn DCZ */
/* Nút Sửa và nút Xóa trong bảng quản trị Admin: dùng chung kiểu nút bo góc chuẩn DCZ */
.admin-edit-btn,
.admin-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; /* Chuyển màu mượt đồng bộ 0.2s */
}

.admin-edit-btn:hover {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

/* Nhóm nút Sửa / Xóa cạnh nhau và màu nhấn riêng cho nút Xóa */
.admin-action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-delete-btn {
  color: #b42318;                  /* Chữ đỏ cảnh báo cho thao tác xóa */
}

.admin-delete-btn:hover {
  border-color: #d92d20;           /* Viền đỏ khi rê chuột */
  background-color: #fef3f2;       /* Nền đỏ nhạt khi rê chuột */
  color: #b42318;
}

.adm-edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adm-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

/* Căn chỉnh nhãn và ô chọn Trạng thái phiếu/đơn thẳng hàng, rộng 100% trong form chỉnh sửa Admin */
.adm-edit-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm-edit-form .form-group .form-label {
  margin-bottom: 0;
}

.adm-edit-form .dcz-select-wrap {
  display: block;
  width: 100%;
}

.adm-edit-form .dcz-select-trigger {
  width: 100%;
  min-height: 40px;
  justify-content: space-between;
}

@media (max-width: 700px) {
  .adm-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* Bảng chỉnh sửa danh sách sản phẩm trong Đơn hàng / Báo giá Admin */
.adm-edit-items-wrap {
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--white);
}

.adm-edit-items-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background-color: #faf7f4;
  border-bottom: 1px solid var(--warm-border);
  font-size: 12.5px;
  color: var(--text-muted);
}

.adm-edit-items-summary strong {
  color: var(--orange-logo);
}

/* Thông tin tổng quan khách hàng trong hộp thoại chỉnh sửa đơn hàng Admin */
.adm-edit-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: #faf7f4;
  border: 1px solid var(--warm-border);
  font-size: 13px;
  color: var(--charcoal);
}

.adm-edit-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.adm-edit-items-table th,
.adm-edit-items-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--warm-border);
  vertical-align: middle;
  text-align: center; /* Căn giữa mặc định cho mọi cột */
}

/* Riêng cột Tên sản phẩm căn lề trái theo chuẩn hiển thị */
.adm-edit-items-table th.is-name-col,
.adm-edit-items-table td.is-name-col {
  text-align: left;
}

.adm-edit-items-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  background-color: #f4efe9;
  white-space: nowrap;
}

.adm-edit-items-table tbody tr:hover {
  background-color: #fffaf6;
}

.adm-edit-items-table .form-control {
  padding: 6px 8px;
  font-size: 12.5px;
  height: 34px;
  width: 100%;
  text-align: center; /* Chữ trong các ô Mã hàng, Hãng, ĐVT, SL căn giữa */
}

.adm-edit-items-table .form-control.js-ei-name {
  text-align: left; /* Riêng ô Tên sản phẩm căn lề trái */
}

.adm-edit-items-table .form-control.js-ei-sku {
  font-weight: 700;
}

.adm-edit-items-table .form-control.js-ei-qty {
  font-weight: 700;
  color: var(--orange-logo);
}

.adm-ei-stt {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 12.5px;
}

.adm-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--warm-border);
}

/* Hộp thoại xác nhận đã gửi yêu cầu báo giá thành công chuẩn DCZ */
.dcz-success-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  animation: dczFadeIn 0.2s ease;
}

.dcz-success-modal[hidden] {
  display: none !important;
}

@keyframes dczFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dcz-success-card {
  width: 100%;
  max-width: 460px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 26px 24px 22px;
  text-align: center;
  font-family: var(--font-sans);
}

.dcz-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background-color: #ecfdf3;
  border: 2px solid #a6f4c5;
  color: #12b76a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dcz-success-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--black);
}

.dcz-success-meta {
  margin: 12px 0 14px;
  padding: 12px 14px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-main);
}

.dcz-success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Giao diện Shop Online: Lưới sản phẩm có giá niêm yết & hộp thoại Giỏ hàng đặt mua nhanh */
/* Lưới 5 sản phẩm trên 1 hàng ở màn hình máy tính */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1220px) {
  .shop-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .shop-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .shop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  /* Giữ hai sản phẩm mỗi hàng trên điện thoại, kể cả màn hình nhỏ */
  .shop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 360px) {
  /* Thu gọn nội dung thẻ ở điện thoại rất nhỏ để nhãn và nút không tràn cột */
  .shop-card {
    padding: 7px;
  }

  .shop-card-top-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .shop-card-sku,
  .shop-card-brand-tag {
    font-size: 10px;
    white-space: nowrap;
  }

  .shop-card-title {
    font-size: 12px;
    line-height: 1.35;
  }

  .shop-card-meta,
  .shop-sold-count {
    font-size: 10.5px;
  }

  .shop-card-rating {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 10.5px;
  }

  .shop-stars {
    gap: 2px;
    font-size: 11px;
  }

  .shop-stock-pill {
    font-size: 10px;
  }

  .shop-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .shop-card-actions .btn {
    min-width: 0;
    padding: 7px 2px;
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
  }
}

.shop-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 11px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-card:hover {
  transform: translateY(-2px);
  border-color: rgba(235, 92, 20, 0.55);
  box-shadow: var(--shadow-md);
}

/* Khung ảnh thẻ sản phẩm Shop Online: phông trắng tinh hoàn toàn, đặt logo DCZ ở góc trái */
.shop-card-img {
  position: relative;              /* Làm gốc tọa độ để gắn logo hãng ở góc trên bên trái */
  width: 100%;
  aspect-ratio: 1 / 1;             /* Giữ khung ảnh vuông tỉ lệ 1:1 */
  border-radius: 10px;
  background-color: #ffffff;       /* Phông nền trắng tinh không pha màu hay gradient */
  border: 1px solid var(--warm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;                /* Bo góc gọn theo khung */
  margin-bottom: 10px;
}

.shop-card-img > img:not(.shop-card-corner-logo) {
  width: 100%;
  height: 100%;
  object-fit: contain;             /* Giữ nguyên toàn bộ hình sản phẩm trên phông trắng */
  padding: 16px;                   /* Chừa khoảng thở sạch quanh sản phẩm */
  display: block;
}

/* Logo thương hiệu DCZ gắn rõ nét ở góc trên bên trái khung ảnh sản phẩm Shop Online */
.shop-card-corner-logo {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 24px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  pointer-events: none;            /* Không cản thao tác bấm vào ảnh sản phẩm */
  z-index: 2;
}

/* Mác báo hiệu đang chạy Flash Sale ở góc trên bên phải khung ảnh sản phẩm */
.shop-card-flash-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: linear-gradient(110deg, #e94a08 0%, var(--orange-logo) 32%, #ff7d38 54%, var(--orange-logo) 78%, #e94a08 100%);
  background-size: 220% 100%;
  animation: dczFlashBgFlow 3.6s linear infinite;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(235, 92, 20, 0.28);
  pointer-events: none;            /* Không cản thao tác bấm vào ảnh sản phẩm */
}

.shop-card-flash-badge svg {
  flex-shrink: 0;
}

.shop-card-sku {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background-color: #fff4ee;
  color: var(--orange-logo);
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.shop-card-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

.shop-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.shop-card-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--orange-logo);
  margin-bottom: 12px;
}

.shop-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shop-card-actions .btn {
  padding: 8px 10px;
  font-size: 12.5px;
}

.shop-checkout-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  padding: 18px 20px;
  overflow-y: auto;
  max-height: calc(90vh - 64px);
}

@media (max-width: 820px) {
  .shop-checkout-body {
    grid-template-columns: 1fr;
  }
}

.shop-checkout-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
}

.shop-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-qty-ctrl button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.shop-total-box {
  margin-top: 6px;
  padding: 12px 14px;
  background-color: #fff4ee;
  border: 1px solid rgba(235, 92, 20, 0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
}

.shop-checkout-form {
  padding: 14px 16px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
}

/* Nhãn Yêu thích + có nền cam chuyển động nổi bật đầu tên sản phẩm (phong cách sàn TMĐT DCZ) */
.shop-fav-badge {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: linear-gradient(110deg, #e94a08 0%, var(--orange-logo) 32%, #ff7d38 54%, var(--orange-logo) 78%, #e94a08 100%);
  background-size: 220% 100%;
  animation: dczFlashBgFlow 3.6s linear infinite;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  margin-right: 5px;
  vertical-align: 1px;
}

/* Vệt sáng lướt nhẹ qua nhãn Yêu thích + */
.shop-fav-badge::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -45%;
  width: 38%;
  height: 140%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-22deg);
  animation: dczFlashShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* Hàng đánh giá 5 sao & lượt đã bán dưới giá bán trên thẻ sản phẩm Shop Online */
.shop-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.shop-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.shop-stars-num {
  color: var(--black);
  font-weight: 700;
}

.shop-rating-sep {
  width: 1px;
  height: 12px;
  background-color: var(--warm-border);
}

.shop-sold-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Giao diện hộp thoại chọn phân loại bản dây A, B, C, M, FM & số inch */
.shop-variant-body {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  column-gap: 20px;
  row-gap: 12px;
  padding: 18px 20px;
  overflow-y: auto;
  max-height: calc(90vh - 64px);
}

@media (max-width: 720px) {
  .shop-variant-body {
    grid-template-columns: 1fr;
  }
}

.shop-variant-section-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.shop-variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.shop-variant-pill {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-variant-pill:hover {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.shop-variant-pill.is-active {
  border-color: var(--orange-logo);
  background-color: var(--orange-logo);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.shop-inch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.shop-inch-chip {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--warm-border);
  background-color: var(--warm-gray-bg);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-inch-chip:hover {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.shop-inch-chip.is-active {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.shop-inch-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.shop-inch-input-row input {
  width: 110px;
  font-weight: 700;
}

.shop-variant-price-box {
  padding: 12px 14px;
  border-radius: 10px;
  background-color: #fff4ee;
  border: 1px solid rgba(235, 92, 20, 0.35);
  margin-bottom: 14px;
}

.shop-variant-price-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange-logo);
  line-height: 1.2;
}

.shop-variant-formula-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Dải cam kết mua hàng trực tiếp phía trên khu vực Shop Online */
.shop-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 11px 16px;
  margin-bottom: 18px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--charcoal);
}

.shop-trust-strip strong {
  color: var(--orange-logo);
}

/* Cột bộ lọc bên trái chuyên dụng cho Shop Online */
.shop-sidebar .cat-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.2s ease;
}

.shop-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 999px;
  background-color: var(--warm-gray-bg);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.cat-filter-btn.is-active .shop-filter-count {
  background-color: var(--orange-logo);
  color: var(--white);
}

.shop-brand-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.shop-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--charcoal);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-check-item:hover {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.shop-check-item input[type="checkbox"],
.shop-check-item input[type="radio"] {
  accent-color: var(--orange-logo);
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.shop-check-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.shop-price-radios {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.shop-price-custom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-price-custom input {
  width: 100%;
  padding: 6px 8px;
  font-size: 12.5px;
}

/* Thanh tìm kiếm & sắp xếp phía trên lưới sản phẩm Shop Online */
.shop-toolbar-card {
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-toolbar-search {
  flex: 1 1 260px;
}

.shop-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-result-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Nhãn giảm giá & thương hiệu trên thẻ sản phẩm Shop Online */
.shop-card-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.shop-card-brand-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--charcoal);
  background-color: var(--warm-gray-bg);
  padding: 2px 7px;
  border-radius: 6px;
}

.shop-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.shop-price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.shop-discount-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange-logo);
  background-color: #fff4ee;
  border: 1px solid rgba(235, 92, 20, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
}

.shop-stock-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #15803d;
}

.shop-stock-pill.is-out {
  color: #b42318;
}

/* Bảng mô tả danh sách mã & số đo vòng bi bên trong chi tiết sản phẩm Shop Online */
.shop-spec-section {
  grid-column: 1 / -1;
  border-top: 1px solid var(--warm-border);
  padding-top: 14px;
  margin-top: 4px;
}

/* Khung bảng mã & số đo cao thoáng vừa khít khung modal, không chừa khoảng trống ở đáy */
.shop-spec-table-wrap {
  max-height: clamp(360px, 54vh, 520px);
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
}

.shop-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.shop-spec-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--warm-gray-bg);
  color: var(--black);
  font-weight: 800;
  text-align: center;
  padding: 7px 6px;
  border-bottom: 1px solid var(--warm-border);
  white-space: nowrap;             /* Không xuống dòng tiêu đề cột */
}

.shop-spec-table td {
  padding: 6px 6px;
  text-align: center;
  border-bottom: 1px solid var(--warm-border);
  color: var(--charcoal);
  white-space: nowrap;             /* Giữ mã, giá bán, tồn kho luôn nằm trên 1 dòng */
}

.shop-spec-table tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.shop-spec-table tbody tr:hover {
  background-color: #fff4ee;
}

.shop-spec-table tbody tr.is-selected {
  background-color: #fff4ee;
  color: var(--orange-logo);
  font-weight: 700;
}

/* Cột nhập số lượng & nút + thêm nhanh vào giỏ thu gọn tối đa ngay trước cột Mã hàng */
.shop-row-quick-cell {
  width: 90px;
  white-space: nowrap;
}

.shop-row-quick-act {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Khung chọn số lượng thu gọn gồm mũi tên xuống/lên 2 bên và ô số ở giữa */
.shop-row-qty-box {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border: 1px solid var(--warm-border);
  border-radius: 5px;
  background-color: var(--white);
  overflow: hidden;
}

.shop-row-step {
  width: 16px;
  height: 100%;
  border: none;
  background-color: var(--warm-gray-bg);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-row-step:hover {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.shop-row-qty-inp {
  width: 26px;
  height: 100%;
  padding: 0 2px;
  border: none;
  border-left: 1px solid var(--warm-border);
  border-right: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

/* Ẩn 2 mũi tên dọc mặc định của trình duyệt bên trong ô số lượng */
.shop-row-qty-inp::-webkit-outer-spin-button,
.shop-row-qty-inp::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.shop-row-qty-inp:focus {
  outline: none;
  background-color: #fffaf7;
}

.shop-row-add-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--orange-logo);
  border-radius: 5px;
  background-color: #fff4ee;
  color: var(--orange-logo);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.shop-row-add-btn:hover {
  background-color: var(--orange-logo);
  color: var(--white);
}

.shop-row-add-btn.is-added {
  border-color: #2e7d32;
  background-color: #2e7d32;
  color: var(--white);
}

/* Bố cục chi tiết sản phẩm Shop Online 2 cột chuẩn sàn TMĐT (theo ảnh mẫu) */
.shop-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 24px;
  padding: 20px 22px;
  overflow-y: auto;
  max-height: calc(90vh - 64px);
}

@media (max-width: 860px) {
  /* Ép các khối chi tiết co theo khung điện thoại, tránh tạo thanh cuộn ngang */
  .shop-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
  }

  .shop-detail-grid > * {
    min-width: 0;
  }
}

/* Khung ảnh chính trong chi tiết sản phẩm Shop Online: phông trắng tinh, có logo góc trái */
.shop-detail-main-img {
  position: relative;              /* Làm gốc tọa độ để gắn logo DCZ ở góc trên bên trái */
  width: 100%;
  aspect-ratio: 1 / 1;             /* Giữ khung ảnh vuông tỉ lệ 1:1 */
  border-radius: 10px;
  background-color: #ffffff;       /* Phông nền trắng tinh không pha màu hay gradient */
  border: 1px solid var(--warm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;                /* Bo góc gọn theo khung */
  margin-bottom: 10px;
}

.shop-detail-main-img > img:not(.shop-card-corner-logo) {
  width: 100%;
  height: 100%;
  object-fit: contain;             /* Giữ nguyên toàn bộ hình sản phẩm trên phông trắng */
  padding: 18px;                   /* Chừa khoảng thở sạch quanh sản phẩm */
  display: block;
}

/* Tăng kích thước logo DCZ ở góc trái khung ảnh chính trong modal chi tiết sản phẩm */
.shop-detail-main-img .shop-card-corner-logo {
  top: 14px;
  left: 14px;
  height: 36px;
  max-width: 190px;
}

.shop-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.shop-detail-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1.5px solid var(--warm-border);
  background-color: #eef1f5;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 74%, rgba(203, 210, 220, 0.85) 75%, #eef2f6 100%),
    linear-gradient(135deg, transparent 62%, #cfd6df 62.3%, #e7ebf0 69%, #eb5c14 69.3%, #eb5c14 75.5%, #373c46 75.8%, #20242c 100%);
  overflow: hidden;
  cursor: pointer;
  padding: 2px;
  transition: border-color 0.2s ease;
}

.shop-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.shop-detail-thumb.is-active,
.shop-detail-thumb:hover {
  border-color: var(--orange-logo);
}

.shop-detail-social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--warm-border);
  font-size: 12.5px;
  color: var(--charcoal);
}

.shop-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: color 0.2s ease;
}

.shop-like-btn.is-liked,
.shop-like-btn:hover {
  color: var(--orange-logo);
}

.shop-detail-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

.shop-detail-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Thanh chạy Flash Sale nền cam DCZ chuyển động liên tục nằm ngay dưới đánh giá & lượt bán */
.shop-flash-sale-bar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 14px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: linear-gradient(110deg, #e94a08 0%, var(--orange-logo) 26%, #ff7d38 50%, var(--orange-logo) 74%, #e94a08 100%);
  background-size: 240% 100%;
  animation: dczFlashBgFlow 4s linear infinite;
  color: var(--white);
  font-family: var(--font-sans);
}

/* Vệt sáng chéo quét nhẹ qua thanh Flash Sale tạo cảm giác chuyển động nổi bật */
.shop-flash-sale-bar::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -45%;
  width: 36%;
  height: 140%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.24) 50%, transparent 100%);
  transform: skewX(-22deg);
  animation: dczFlashShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* Giữ chữ và đồng hồ nổi trên lớp hiệu ứng ánh sáng */
.shop-flash-left,
.shop-flash-right {
  position: relative;
  z-index: 1;
}

@keyframes dczFlashBgFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

@keyframes dczFlashShine {
  0% { left: -45%; }
  55%, 100% { left: 125%; }
}

.shop-flash-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.shop-flash-left strong {
  font-weight: 900;
  font-style: italic;
}

.shop-flash-left span {
  font-weight: 500;
}

.shop-flash-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shop-flash-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Các ô số đếm ngược nền đen chữ trắng nổi bật trên thanh Flash Sale */
.shop-flash-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border-radius: 4px;
  background-color: #16181c;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hiệu ứng nhấp nháy báo động đồng hồ khi sắp hết thời gian Flash Sale (dưới 5 phút) */
.shop-flash-timer.is-urgent .shop-flash-box {
  animation: dczFlashClockAlert 0.68s ease-in-out infinite;
}

.shop-flash-sale-bar.is-urgent .shop-flash-right > svg {
  animation: dczFlashBellShake 0.68s ease-in-out infinite;
}

@keyframes dczFlashClockAlert {
  0%, 100% {
    background-color: #16181c;
    color: var(--white);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
  }
  50% {
    background-color: #b91c1c;
    color: #fff3b0;
    box-shadow: 0 0 0 2px rgba(255, 243, 176, 0.72);
    transform: scale(1.06);
  }
}

@keyframes dczFlashBellShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg); }
  75% { transform: rotate(14deg); }
}

.shop-detail-price-banner {
  background-color: transparent;
  border: none;
  padding: 4px 0;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-detail-price-main {
  font-size: 26px;
  font-weight: 800;
  color: var(--orange-logo);
  line-height: 1.1;
}

.shop-detail-kv-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.shop-detail-kv-row {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13px;
}

/* Hàng thông tin trải rộng toàn chiều ngang (dùng cho Combo Khuyến Mãi để không bỏ trống cột trái) */
.shop-detail-kv-row.is-stacked {
  grid-template-columns: 1fr;
  gap: 6px;
}

.shop-detail-kv-row.is-stacked .shop-detail-kv-label {
  padding-top: 0;
}

@media (max-width: 560px) {
  /* Xếp nội dung nhiều cột theo chiều dọc và cho hàng dài tự xuống dòng trong modal */
  .shop-detail-kv-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .shop-detail-kv-row > *,
  .shop-promo-tags {
    min-width: 0;
  }

  .shop-promo-tags .shop-promo-tag {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .shop-detail-social-row {
    flex-wrap: wrap;
  }
}

.shop-detail-kv-label {
  color: var(--text-muted);
  font-weight: 600;
  padding-top: 4px;
}

/* Nhóm thẻ Combo Khuyến Mãi thu gọn kích thước để hiển thị nhiều thẻ trên 1 hàng */
/* Nhóm thẻ Combo Khuyến Mãi thu gọn kích thước để 3 thẻ Mua 10/20/30 nằm vừa 1 hàng */
.shop-promo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  gap: 4px;
}

.shop-promo-tag {
  display: inline-block;
  padding: 2px 6px;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid rgba(235, 92, 20, 0.45);
  background-color: #fff4ee;
  color: var(--orange-logo);
  font-size: 11px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

/* Dòng chú thích giải thích ưu đãi nhỏ gọn dưới thẻ Combo */
.shop-promo-tags small {
  font-size: 11px;
}

.shop-var-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 168px;
  overflow-y: auto;
  padding: 2px 2px 4px 0;
}

/* Nút phân loại hàng có dấu tích cam ở góc dưới phải khi đang chọn (theo mẫu Shopee) */
.shop-var-chip {
  position: relative;
  padding: 7px 13px;
  border-radius: 6px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.shop-var-chip:hover:not(:disabled) {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
  background-color: #fff4ee;
}

/* Trạng thái mờ và khóa bấm khi Series/Nắp không khả dụng với lựa chọn hiện tại */
.shop-var-chip:disabled,
.shop-var-chip.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background-color: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
  pointer-events: none;
}

.shop-var-chip.is-active {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
  background-color: #fff4ee;
  font-weight: 700;
}

.shop-var-chip.is-active::after {
  content: "✓";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 15px;
  height: 14px;
  background-color: var(--orange-logo);
  color: var(--white);
  font-size: 9px;
  line-height: 15px;
  text-align: center;
  border-top-left-radius: 5px;
}

.shop-detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.shop-detail-cta-row .btn-add-outline {
  flex: 1 1 180px;
  background-color: #fff4ee;
  border: 1.5px solid var(--orange-logo);
  color: var(--orange-logo);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-detail-cta-row .btn-add-outline:hover {
  background-color: #ffe7da;
}

.shop-detail-cta-row .btn-buy-solid {
  flex: 1 1 180px;
  background-color: var(--orange-logo);
  border: 1.5px solid var(--orange-logo);
  color: var(--white);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-detail-cta-row .btn-buy-solid:hover {
  filter: brightness(0.95);
}

/* Thu gọn 3 nút hành động trong cửa sổ chi tiết Series (Bắt đầu chọn / Đi đến giỏ hàng / Mua ngay) */
.shop-detail-cta-row.is-triple {
  gap: 8px;
}

.shop-detail-cta-row.is-triple .btn-pick-dark,
.shop-detail-cta-row.is-triple .btn-add-outline,
.shop-detail-cta-row.is-triple .btn-buy-solid {
  flex: 1 1 120px;
  padding: 8px 10px;
  font-size: 12.5px;
  border-radius: 6px;
}

.shop-detail-cta-row .btn-pick-dark {
  background-color: var(--white);
  border: 1.5px solid var(--charcoal);
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-detail-cta-row .btn-pick-dark:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
  background-color: #fff4ee;
}

/* Thanh phân trang Shop Online (5 hàng = 25 sản phẩm/trang) */
.shop-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.shop-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-page-btn:hover:not(:disabled) {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.shop-page-btn.is-active {
  border-color: var(--orange-logo);
  background-color: var(--orange-logo);
  color: var(--white);
}

.shop-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Thanh tìm mã và số đo dãn đều khít 100% chiều rộng, không cắt chữ placeholder */
.shop-modal-dim-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin: 0;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
}

.shop-modal-dim-bar label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
}

.shop-modal-dim-bar input {
  flex: 1 1 115px;
  min-width: 110px;
  width: auto;
  height: 36px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 7px;
  background-color: var(--white);
}

.shop-modal-dim-bar input.is-code-input {
  flex: 1.6 1 195px;
  min-width: 180px;
}

.shop-modal-dim-bar input.is-size-input {
  flex: 1.4 1 190px;
  min-width: 175px;
}

/* Đường kẻ phân tách rõ ràng giữa thanh tìm kiếm nhanh và bảng mã / lưới phân loại bên dưới */
.shop-modal-search-divider {
  width: 100%;
  height: 1px;
  background-color: var(--warm-border);
  margin: 12px 0;
}

/* Căn đều chính xác 12px ở mọi khoảng cách quanh thanh tìm mã & số đo và dải tab Bảng mã */
#shop-ser-filter-anchor {
  padding-top: 12px;
  padding-bottom: 0;
  margin-bottom: 0;
}

#shop-ser-filter-anchor + .shop-spec-section {
  padding-top: 12px;
  margin-top: 0;
}

/* Các tab mô tả & thông số kỹ thuật chi tiết bên dưới chi tiết sản phẩm: căn giữa cân đối 12px giữa 2 đường kẻ */
.shop-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-bottom: 1px solid var(--warm-border);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.shop-detail-tab {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-detail-tab:hover {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.shop-detail-tab.is-active {
  border-color: var(--orange-logo);
  background-color: var(--orange-logo);
  color: var(--white);
}

.shop-tech-kv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  overflow: hidden;
}

.shop-tech-kv-table th,
.shop-tech-kv-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--warm-border);
  text-align: left;
}

.shop-tech-kv-table th {
  width: 220px;
  background-color: var(--warm-gray-bg);
  color: var(--black);
  font-weight: 700;
}

.shop-desc-box {
  padding: 12px 14px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background-color: var(--white);
  font-size: 13px;
  line-height: 1.6;
  color: var(--charcoal);
}

.shop-desc-box ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

/* Hàng icon chia sẻ Facebook, Messenger, Zalo & Sao chép link */
.shop-share-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-share-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.shop-share-btn:hover {
  transform: translateY(-1px) scale(1.06);
  opacity: 0.92;
}

.shop-share-btn.is-fb { background-color: #1877f2; }
.shop-share-btn.is-mes { background: linear-gradient(135deg, #00b2ff 0%, #006aff 50%, #a033ff 100%); }
.shop-share-btn.is-zalo { background-color: #0068ff; font-size: 9.5px; letter-spacing: -0.3px; }
.shop-share-btn.is-copy { background-color: var(--warm-gray-bg); color: var(--charcoal); border: 1px solid var(--warm-border); }

/* Thanh lọc trạng thái & Trình chỉnh sửa sản phẩm 6 Tab trong Admin (chuẩn Seller Center) */
.adm-sp-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1.5px solid var(--warm-border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.adm-sp-subtab {
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adm-sp-subtab:hover {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
  background-color: #fff4ee;
}

.adm-sp-subtab.is-active {
  border-color: var(--orange-logo);
  background-color: var(--orange-logo);
  color: var(--white);
}

.adm-sp-editor-card {
  padding: 0;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--warm-border);
}

.adm-sp-editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0 14px;
  background-color: var(--white);
  border-bottom: 1px solid var(--warm-border);
}

.adm-sp-editor-tab {
  padding: 12px 14px;
  border: none;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adm-sp-editor-tab:hover {
  color: var(--orange-logo);
}

.adm-sp-editor-tab.is-active {
  color: var(--orange-logo);
  border-bottom-color: var(--orange-logo);
}

.adm-sp-editor-pane {
  padding: 16px 18px;
  background-color: var(--white);
}

.adm-sp-pane-title {
  margin: 0 0 14px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--black);
}

.adm-sp-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 680px) {
  .adm-sp-row {
    flex-direction: column;
    gap: 6px;
  }
}

.adm-sp-label {
  width: 170px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  padding-top: 8px;
}

.adm-sp-img-preview {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--warm-gray-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-sp-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.adm-sp-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  background-color: var(--warm-gray-bg);
  border-top: 1px solid var(--warm-border);
}

/* Dải cam kết mua hàng trực tiếp phía trên khu vực Shop Online */
.shop-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 11px 16px;
  margin-bottom: 18px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--charcoal);
}

.shop-trust-strip strong {
  color: var(--orange-logo);
}

/* Cột bộ lọc bên trái chuyên dụng cho Shop Online */
.shop-sidebar .cat-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.2s ease;
}

.shop-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 999px;
  background-color: var(--warm-gray-bg);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.cat-filter-btn.is-active .shop-filter-count {
  background-color: var(--orange-logo);
  color: var(--white);
}

.shop-brand-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.shop-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--charcoal);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-check-item:hover {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.shop-check-item input[type="checkbox"],
.shop-check-item input[type="radio"] {
  accent-color: var(--orange-logo);
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.shop-check-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.shop-price-radios {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.shop-price-custom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-price-custom input {
  width: 100%;
  padding: 6px 8px;
  font-size: 12.5px;
}

/* Thanh tìm kiếm & sắp xếp phía trên lưới sản phẩm Shop Online */
.shop-toolbar-card {
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-toolbar-search {
  flex: 1 1 260px;
}

.shop-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-result-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Nhãn giảm giá & thương hiệu trên thẻ sản phẩm Shop Online */
.shop-card-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.shop-card-brand-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--charcoal);
  background-color: var(--warm-gray-bg);
  padding: 2px 7px;
  border-radius: 6px;
}

.shop-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.shop-price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.shop-discount-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange-logo);
  background-color: #fff4ee;
  border: 1px solid rgba(235, 92, 20, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
}

.shop-stock-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #15803d;
}

.shop-stock-pill.is-out {
  color: #b42318;
}

.admin-shop-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background-color: #fff4ee;
  border: 1px solid rgba(235, 92, 20, 0.35);
  color: var(--orange-logo);
  font-size: 10.5px;
  font-weight: 800;
  margin-top: 3px;
}

/* Thanh quy trình xử lý đơn hàng Admin (Order Pipeline) đồng bộ chuẩn DCZ */
.admin-order-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 1120px) {
  .admin-order-pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-order-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-pipe-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.admin-pipe-card:hover {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  transform: translateY(-1px);
}

.admin-pipe-card.is-active {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  box-shadow: 0 0 0 2px rgba(235, 92, 20, 0.14);
}

.admin-pipe-card span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-pipe-card strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
}

.admin-pipe-card.is-revenue {
  cursor: default;
  background-color: var(--warm-gray-bg);
}

.admin-pipe-card.is-revenue strong {
  color: var(--orange-logo);
  font-size: 14.5px;
}

/* Nút xử lý nhanh quy trình đơn hàng (Xác nhận / Giao hàng / Hoàn tất) */
.admin-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-quick-btn:hover {
  background-color: var(--orange-logo);
  color: var(--white);
}

.admin-quick-btn.is-done-step {
  border-color: #16a34a;
  background-color: #ecfdf3;
  color: #15803d;
}

.admin-quick-btn.is-done-step:hover {
  background-color: #16a34a;
  color: var(--white);
}

/* Menu thả xuống Xuất file (File tổng quan / File chi tiết) đồng bộ 0.2s ease, bo góc và đổ bóng chuẩn DCZ */
.admin-export-dropdown-wrap {
  position: relative;
  display: inline-block;
}

/* Nút xóa hàng loạt trên thanh công cụ Admin đồng bộ chiều cao, bo góc và hiệu ứng chuẩn DCZ */
.admin-bulk-del-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background-color: #fff5f5;
  color: #dc2626;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-bulk-del-btn:hover:not(:disabled) {
  background-color: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
  box-shadow: var(--shadow-sm);
}

.admin-bulk-del-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-bulk-del-btn[hidden] {
  display: none !important;
}

/* Nút và bảng chọn cột thông tin hiển thị (Column Picker) chuẩn DCZ, chuyển động 0.2s ease */
.admin-cols-wrap {
  position: relative;
  display: inline-block;
}

.admin-cols-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-cols-btn:hover,
.admin-cols-btn[aria-expanded="true"] {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
  box-shadow: var(--shadow-sm);
}

.admin-cols-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 440px;
  max-width: calc(100vw - 32px);
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
  z-index: 45;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-cols-menu[hidden] {
  display: none !important;
}

.admin-cols-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--warm-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
}

.admin-cols-menu-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-cols-mini-btn {
  border: none;
  background: transparent;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-logo);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.admin-cols-mini-btn:hover {
  background-color: #fff4ee;
}

.admin-cols-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.admin-cols-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--charcoal);
  cursor: pointer;
  user-select: none;
  padding: 3px 4px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-cols-item:hover {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.admin-cols-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--orange-logo);
  cursor: pointer;
  flex-shrink: 0;
}

/* Mở rộng khung dashboard trang tài khoản giúp bố cục thông tin thoáng rộng, không bị ép xuống dòng */
body[data-page="auth"] .account-dashboard-grid {
  max-width: 1180px;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
}

/* Bố cục phần Hồ Sơ Của Tôi (2 cột: thông tin bên trái, chọn ảnh đại diện bên phải) và đầu sidebar gọn nhẹ */
.account-sidebar-compact {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

.account-sidebar-avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-logo), #ff7a33);
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #fff4ee;
}

.account-sidebar-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-sidebar-user-meta {
  min-width: 0;
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.account-sidebar-edit-link {
  border: none;
  background: transparent;
  padding: 0;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.account-sidebar-edit-link:hover {
  color: var(--orange-logo);
}

.acc-profile-head {
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--warm-border);
}

.acc-profile-head-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.acc-profile-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: start;
}

.acc-profile-form-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acc-profile-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

/* Ẩn hoàn toàn các dòng thông tin doanh nghiệp khi chọn loại tài khoản Cá nhân */
.acc-profile-row[hidden] {
  display: none !important;
}

.acc-profile-row.is-top {
  align-items: start;
}

/* Đảm bảo nút chọn Cá nhân / Doanh nghiệp luôn nằm gọn trên 1 hàng ngang */
.acc-profile-row .account-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.acc-profile-row .account-type-pill {
  flex: 0 0 auto;
  width: auto;
  padding: 8px 16px;
  white-space: nowrap;
}

.acc-profile-row .form-control {
  width: 100%;
  min-width: 0;
}

.acc-profile-label {
  text-align: right;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
}

.acc-profile-row.is-top .acc-profile-label {
  padding-top: 9px;
}

.acc-profile-avatar-col {
  border-left: 1px solid var(--warm-border);
  padding: 8px 4px 8px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.acc-profile-avatar-col .account-avatar-circle {
  width: 100px;
  height: 100px;
  font-size: 28px;
}

.acc-profile-avatar-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .acc-profile-split {
    grid-template-columns: 1fr;
  }
  .acc-profile-avatar-col {
    border-left: none;
    border-top: 1px solid var(--warm-border);
    padding: 20px 0 0;
    order: -1;
  }
  .acc-profile-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .acc-profile-label {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .admin-cols-grid {
    grid-template-columns: 1fr;
  }
}

.admin-export-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 176px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-export-menu[hidden] {
  display: none !important;
}

.admin-export-menu-item {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-export-menu-item:hover {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

/* Nút bấm Mã phiếu & Mã khách trong bảng Quản trị */
.admin-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(24, 26, 30, 0.25);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.admin-link-btn:hover {
  color: var(--orange-logo);
  text-decoration-color: var(--orange-logo);
}

.admin-link-btn.is-orange {
  color: var(--orange-logo);
  text-decoration-color: rgba(235, 92, 20, 0.35);
}

/* Bảng xem trước đơn sắp xóa có thể cuộn trên màn hình nhỏ */
/* Hộp xác nhận xóa căn giữa màn hình, dùng màu DCZ */
.admin-delete-confirm-card {
  width: min(480px, 94vw);
  max-height: 86vh;
  padding: 22px;
}

.admin-delete-confirm-message {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.admin-delete-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

@media (max-width: 480px) {
  .admin-delete-confirm-card {
    padding: 17px;
  }

  .admin-delete-confirm-actions {
    flex-direction: column-reverse;
  }

  .admin-delete-confirm-actions > button {
    width: 100%;
  }
}

.admin-order-delete-preview-card {
  width: min(1040px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.admin-order-delete-preview-summary {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.admin-order-delete-preview-table-wrap {
  max-height: min(56vh, 560px);
  overflow: auto;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
}

.admin-order-delete-preview-table-wrap .admin-table {
  min-width: 820px;
  margin: 0;
}

.admin-order-delete-preview-table-wrap .admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-order-delete-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.admin-order-delete-preview-confirm {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #dc2626;
  border-radius: 9px;
  background: #dc2626;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.admin-order-delete-preview-confirm:hover:not(:disabled) {
  border-color: #b91c1c;
  background: #b91c1c;
}

.admin-order-delete-preview-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .admin-order-delete-preview-card {
    padding: 16px;
  }

  .admin-order-delete-preview-actions {
    flex-direction: column-reverse;
  }

  .admin-order-delete-preview-actions > button {
    width: 100%;
  }
}

.admin-detail-modal-card {
  width: min(860px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.admin-detail-modal-body {
  overflow-y: auto;
  padding-top: 8px;
}

/* Khung mẫu tờ Phiếu báo giá PDF chuẩn DCZ */
.admin-pdf-sheet {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  padding: 24px 26px;
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.55;
}

.admin-pdf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--orange-logo);
  margin-bottom: 16px;
}

.admin-pdf-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  margin-bottom: 16px;
}

.admin-customer-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-customer-field {
  padding: 10px 12px;
  border-radius: 8px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
}

.admin-customer-field span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.admin-customer-field strong {
  font-size: 13.5px;
  color: var(--charcoal);
}

@media print {
  body[data-page="admin"] > *:not(#admin-detail-modal) {
    display: none !important;
  }
  #admin-detail-modal {
    position: static !important;
    background: none !important;
    padding: 0 !important;
  }
  .admin-detail-modal-card {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-height: none !important;
  }
  .order-modal-head {
    display: none !important;
  }
}

/* Custom Dropdown chuẩn DCZ thay thế <select> mặc định (loại bỏ nền xanh dương trình duyệt) */
.dcz-select-wrap {
  position: relative;
  display: inline-block;
  min-width: 152px;
}

.dcz-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.dcz-select-trigger:hover,
.dcz-select-wrap.is-open .dcz-select-trigger {
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.dcz-select-caret {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.dcz-select-wrap.is-open .dcz-select-caret {
  transform: rotate(180deg);
}

.dcz-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dcz-select-menu[hidden] {
  display: none !important;
}

.dcz-select-option {
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dcz-select-option:hover,
.dcz-select-option.is-active {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

/* Huy hiệu QUẢN TRỊ NỘI BỘ DCZ đồng bộ kiểu nút thông báo (bo góc 10px, cao 38px, nền kính mờ) và đèn xanh đang online */
.admin-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.admin-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
  animation: dczOnlinePulse 2s ease-in-out infinite;
}

@keyframes dczOnlinePulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
  }
}

/* Nút chuông thông báo và bảng danh sách thông báo trên Header Admin */
.admin-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-bell-wrap[hidden] {
  display: none !important;
}

/* Nút chuông thông báo Admin đồng bộ kiểu nút Giỏ hàng / Ngôn ngữ trên header (bo góc 10px, viền cam khi hover/mở, badge viền mỏng 1px) */
.admin-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-bell-btn:hover,
.admin-bell-wrap.is-open .admin-bell-btn {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.admin-bell-btn svg {
  width: 19px;
  height: 19px;
}

.admin-bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: var(--orange-logo);
  border: 1px solid #16181c;
  color: var(--white);
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.admin-bell-badge[hidden] {
  display: none !important;
}

.admin-bell-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, 90vw);
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 1200;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-bell-menu[hidden] {
  display: none !important;
}

.admin-bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background-color: var(--warm-gray-bg);
  border-bottom: 1px solid var(--warm-border);
  font-size: 13px;
  color: var(--charcoal);
}

.admin-bell-clear-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-logo);
  cursor: pointer;
}

.admin-bell-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-bell-item {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 10px 12px 10px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-sans);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.admin-bell-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--orange-logo);
}

.admin-bell-item:hover {
  background-color: #fff4ee;
  border-color: rgba(235, 92, 20, 0.22);
}

.admin-bell-item strong {
  font-size: 12.5px;
  color: var(--charcoal);
}

.admin-bell-item span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Công tắc gạt Bật/Tắt chế độ bảo trì trong Quản trị */
.admin-maintenance-box {
  padding: 16px 18px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
}

.admin-maintenance-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Công tắc gạt bật/tắt chuẩn DCZ đồng bộ toàn website (gọn cân đối, hiệu ứng 0.2s ease) */
.dcz-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.dcz-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dcz-switch-slider {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background-color: #cbd5e1;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.dcz-switch-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.dcz-switch input:checked + .dcz-switch-slider {
  background-color: #22c55e; /* Màu xanh lá cây khi bật công tắc đồng bộ toàn web */
}

.dcz-switch input:checked + .dcz-switch-slider::before {
  transform: translateX(18px);
}

.dcz-switch-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--charcoal);
}

/* Màn hình toàn trang khi Website bật chế độ Bảo trì */
.dcz-maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  background: radial-gradient(circle at 50% 25%, rgba(235, 92, 20, 0.16) 0%, transparent 55%), #121418;
  font-family: var(--font-sans);
  overflow-y: auto;
}

.dcz-maintenance-poster-wrap {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(235, 92, 20, 0.45);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  background-color: var(--charcoal);
}

.dcz-maintenance-poster-img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Thẻ thông báo Bảo trì Website DCZ (nền gradient tối sang trọng, viền nhấn cam trên cùng) */
.dcz-maintenance-card {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  padding: 26px 28px 24px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(28, 31, 38, 0.96) 0%, rgba(16, 18, 23, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--orange-logo);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: var(--white);
}

.dcz-maintenance-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.dcz-maintenance-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff6b2b;
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.28);
  animation: dczMaintPulse 2s ease-in-out infinite;
}

@keyframes dczMaintPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.28);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 107, 43, 0.12);
  }
}

.dcz-maintenance-card h1 {
  margin: 0 0 10px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
}

.dcz-maintenance-card p {
  max-width: 680px;
  margin: 0 auto 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #d0d5dd;
}

.dcz-maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.dcz-maintenance-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dcz-maintenance-actions .btn-primary {
  box-shadow: 0 6px 18px rgba(235, 92, 20, 0.35);
}

.dcz-maintenance-actions .btn:hover {
  transform: translateY(-1px);
}

.dcz-maintenance-actions .btn-outline-light {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.dcz-maintenance-actions .btn-outline-light:hover {
  border-color: var(--orange-logo);
  color: #ff9a62;
  background-color: rgba(235, 92, 20, 0.12);
}

/* Căn giữa tuyệt đối khối chọn trạng thái trong ô và cột bảng Admin */
.admin-status-row {
  width: 100%; /* Chiếm toàn bộ chiều rộng ô để căn giữa chuẩn xác */
  display: flex; /* Dùng flex để căn giữa theo cả chiều ngang và dọc */
  align-items: center; /* Căn giữa theo chiều dọc trong ô */
  justify-content: center; /* Căn giữa theo chiều ngang trong cột */
  gap: 6px;
  margin: 0 auto;
}

/* Căn giữa chữ trạng thái bên trong nút chọn dropdown của cột Trạng thái */
.admin-status-row .dcz-select-wrap {
  margin: 0 auto; /* Căn giữa khung dropdown trong cột */
}

.admin-status-row .dcz-select-trigger {
  position: relative; /* Làm mốc để đặt mũi tên sổ xuống ở mép phải */
  justify-content: center; /* Căn giữa chữ trạng thái bên trong khung */
  padding: 6px 28px; /* Chừa khoảng trống cân đối hai bên cho mũi tên */
  text-align: center;
}

.admin-status-row .dcz-select-caret {
  position: absolute; /* Đặt cố định mũi tên ở bên phải để không đẩy lệch chữ */
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.admin-status-row .dcz-select-wrap.is-open .dcz-select-caret {
  transform: translateY(-50%) rotate(180deg); /* Giữ nguyên căn giữa dọc khi xoay mũi tên */
}

.admin-status-select {
  padding: 5px 8px;
  border: 1px solid var(--warm-border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  background-color: var(--white);
  color: var(--charcoal);
}

/* Căn menu chọn trang đích popup và ô URL tùy chỉnh gọn trong khung trang trí Admin */
.adm-launch-popup-link-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.adm-launch-popup-link-field > .dcz-select-wrap {
  width: 100%;
  min-width: 0;
}

.adm-launch-popup-link-field .dcz-select-trigger {
  min-height: 42px;
}

.adm-launch-popup-custom-link[hidden] {
  display: none !important;
}

/* Nút biểu tượng con mắt bật/tắt hiện mật khẩu */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .form-control {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn.is-visible {
  color: var(--orange-logo);
  background-color: rgba(235, 92, 20, 0.08);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Lưới quản lý thay ảnh Banner & Trang trí trong trang Quản trị */
.auth-page-wrap[hidden],
#admin-login-wrap[hidden],
#admin-modal-print-btn[hidden] {
  display: none !important;
}

/* Mở rộng bảng điều khiển Quản trị Admin bằng toàn bộ chiều ngang website và cân bằng cạnh đáy 2 cột */
body[data-page="admin"] .account-dashboard-grid {
  max-width: 100%;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
}

body[data-page="admin"] .account-sidebar-card {
  align-self: start;
}

body[data-page="admin"] .account-main-card {
  height: 100%;
  min-height: 100%;
  overflow: visible;
}

@media (min-width: 1024px) {
  body[data-page="admin"] .admin-table-wrap {
    overflow: visible;
  }
}

/* Hiển thị danh sách sản phẩm trong phiếu báo giá/đơn hàng gọn gàng bằng chip xếp từ trái sang phải */
.admin-items-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 5px;
  max-width: 100%;
}

.admin-item-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
}

.admin-items-full {
  margin-top: 6px;
  padding: 8px;
  border-radius: 8px;
  background-color: var(--warm-gray-bg);
  border: 1px solid var(--warm-border);
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-align: left;
  gap: 5px;
}

.admin-items-full[hidden] {
  display: none !important;
}

.admin-items-toggle-btn {
  padding: 3px 10px;
  border: 1px solid rgba(235, 92, 20, 0.35);
  border-radius: 999px;
  background-color: #fff4ee;
  color: var(--orange-logo);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-items-toggle-btn:hover {
  background-color: var(--orange-logo);
  color: var(--white);
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-media-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-size-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  background-color: #fff4ee;
  border: 1px solid rgba(235, 92, 20, 0.3);
  color: var(--orange-logo);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .admin-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-media-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background-color: var(--warm-gray-bg);
}

.admin-media-card h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--charcoal);
}

.admin-media-preview {
  width: 100%;
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;           /* Hiển thị trọn vẹn ảnh banner không bị cắt chữ ở viền */
  display: block;
}

/* Bộ quản lý ảnh hỗ trợ thêm/xóa, kéo-thả và cập nhật thứ tự hiển thị */
.admin-sortable-image-manager {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.admin-sortable-image-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background: var(--white);
}

.admin-sortable-image-toolbar h3 {
  margin: 0 0 4px;
  color: var(--charcoal);
  font-size: 15px;
}

.admin-sortable-image-toolbar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
}

.admin-sortable-image-list {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.admin-sortable-image-card {
  min-width: 0;
  padding: 12px;
  gap: 9px;
  background: var(--white);
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

/* Thanh điều khiển gộp kiểu, vị trí, kích thước lưới và thao tác thẻ nổi bật */
.admin-promo-display-settings {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) repeat(4, minmax(110px, 1fr)) minmax(330px, 1.5fr);
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background: var(--white);
}

/* Căn đồng bộ thanh cấu hình poster kiến thức với thanh Thẻ nổi bật */
.admin-news-poster-display-settings {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) repeat(3, minmax(110px, 1fr)) minmax(330px, 1.5fr);
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background: var(--white);
}

.admin-promo-display-settings h3,
.admin-news-poster-display-settings h3 {
  margin: 0 0 4px;
  color: var(--charcoal);
  font-size: 14px;
}

.admin-promo-display-settings p,
.admin-news-poster-display-settings p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
}

.admin-promo-display-settings .form-field,
.admin-news-poster-display-settings .form-field {
  margin: 0;
}

/* Dùng chung một kiểu căn chỉnh tiêu đề và nút thêm ảnh trong các thanh cấu hình */
.admin-inline-image-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.admin-inline-image-toolbar h3 {
  margin: 0 0 4px;
  color: var(--charcoal);
  font-size: 15px;
}

.admin-inline-image-toolbar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.admin-inline-image-toolbar .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

#adm-hero-slides-list .admin-media-preview {
  height: auto;
  aspect-ratio: 3 / 1;
}

.admin-sortable-image-card.is-dragging {
  opacity: 0.45;
  box-shadow: var(--shadow-md);
}

.admin-sortable-image-card.is-drop-target {
  outline: 2px dashed var(--orange-logo);
  outline-offset: 2px;
}

.admin-sortable-image-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-sortable-image-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
}

.admin-sortable-image-drag {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background: var(--white);
  color: var(--charcoal);
  cursor: grab;
  touch-action: none;
}

.admin-sortable-image-drag:active {
  cursor: grabbing;
}

.admin-sortable-image-remove {
  padding: 6px 9px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background: var(--white);
  color: #b42318;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-sortable-image-remove:hover:not(:disabled) {
  background: #fff4ee;
  color: var(--orange-logo);
}

.admin-sortable-image-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-sortable-image-enabled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 700;
}

.admin-sortable-image-empty {
  color: var(--text-muted);
  font-size: 12px;
}

.admin-media-preview img[hidden] {
  display: none !important;
}

.admin-media-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-upload-label {
  padding: 6px 12px;
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .admin-media-grid {
    grid-template-columns: 1fr;
  }

  .admin-promo-display-settings,
  .admin-news-poster-display-settings {
    grid-template-columns: 1fr;
  }

  .admin-inline-image-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-sortable-image-list {
    grid-template-columns: 1fr;
  }

  .admin-sortable-image-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (min-width: 721px) and (max-width: 1120px) {
  /* Thu gọn các thiết lập thành hai cột khi chiều ngang không đủ cho năm cột */
  .admin-promo-display-settings,
  .admin-news-poster-display-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-promo-display-settings > div:first-child,
  .admin-news-poster-display-settings > div:first-child {
    grid-column: 1 / -1;
  }

  .admin-inline-image-toolbar {
    /* Giữ tiêu đề và nút thêm nằm trong cùng khung khi các lựa chọn xuống dòng */
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid var(--warm-border);
  }

  .admin-sortable-image-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Ẩn đúng các mục không thuộc tab giao diện đang chọn */
[data-appearance-section][hidden] {
  display: none !important;
}

/* Khối chứng nhận Bộ Công Thương & DMCA ở chân trang: căn bằng đúng lề phải của Hỗ trợ thanh toán (220px) */
.footer-cert-block {
  padding-top: 4px;
}

.footer-cert-row {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 10px;
  max-width: 220px;
  width: 100%;
  align-items: center;
}

.footer-cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-cert-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer-cert-badge img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tiêu đề phụ có dấu gạch xéo / cam đồng bộ quy tắc DCZ trong trang Tài khoản */
/* Tiêu đề các mục trong Tài khoản & Admin: đồng bộ cỡ chữ lớn 20px nổi bật hơn nội dung và dấu / cam chuẩn DCZ */
.account-subhead {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 0 14px;
}

.account-subhead span {
  color: var(--orange-logo);
  font-weight: 800;
  margin-right: 6px;
}

@media (max-width: 600px) {
  .account-subhead {
    font-size: 18px;
  }
}

/* Danh sách thẻ lịch sử báo giá và lịch sử mua hàng */
.account-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-history-card {
  padding: 12px 14px;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background-color: var(--warm-gray-bg);
}

.account-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.account-history-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background-color: #fff4ee;
  border: 1px solid #f7c7af;
  color: var(--orange-logo);
  font-size: 11.5px;
  font-weight: 700;
}

.account-history-badge.is-done {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: #15803d;
}

.account-history-items {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 8px;
}

.account-history-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-history-actions .btn {
  padding: 5px 10px;
  font-size: 12px;
}

/* Điện thoại thường (361px - 559px): lưới sản phẩm 2 cột cân đối, không ngắt dòng thừa */
@media (min-width: 350px) and (max-width: 559px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-card {
    padding: 8px;
    gap: 6px;
  }

  .product-card-badges {
    flex-wrap: nowrap;
    font-size: 10.5px;
  }

  .product-card-badges > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card-title {
    font-size: 12.5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-actions {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4px;
    margin-top: auto;
  }

  .product-card-actions .btn {
    padding: 6px 3px;
    font-size: 10.5px;
    white-space: nowrap;
  }
}

/* Điện thoại gập màn hình ngoài siêu hẹp (<= 349px: Z Fold Cover 280-344px, iPhone SE/Mini) */
@media (max-width: 349px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-inner {
    padding: 6px 10px 8px;
    flex-wrap: wrap;
    gap: 6px 4px;
  }

  /* Chuyển tìm kiếm xuống hàng riêng để logo và nút thao tác vừa trên màn ngoài gập */
  .header-search-wrap {
    order: 5;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
  }

  .header-logo img {
    height: 22px !important;
  }

  .header-auth .auth-link span {
    display: none; /* Giữ icon tài khoản gọn gàng trên màn hình ngoài hẹp */
  }

  .product-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .surface-card,
  .guide-diagram-card,
  .brand-card {
    padding: 12px;
  }

  .dcz-tab-item span {
    font-size: 9.5px;
  }

  /* Xếp phần nhận diện Admin xuống hàng riêng để logo và nút không tràn màn hình gập */
  body[data-page="admin"] .header-inner {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px 8px;
  }

  body[data-page="admin"] .admin-header-actions {
    flex: 1 1 100%;
    width: 100%;
    gap: 6px;
  }

  body[data-page="admin"] .admin-header-badge {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding-inline: 8px;
    font-size: 10px;
    letter-spacing: 0;
  }

  body[data-page="admin"] .admin-header-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="admin"] .admin-header-home-btn {
    flex-shrink: 0;
    height: 34px;
    padding-inline: 9px;
    font-size: 11.5px;
  }
}

/* Điện thoại gọn đến 435px: dành riêng một hàng cho cụm điều khiển Admin */
@media (max-width: 435px) {
  body[data-page="admin"] .header-inner {
    flex-wrap: wrap;
  }

  body[data-page="admin"] .admin-header-actions {
    flex: 1 1 100%;
    width: 100%;
    justify-content: space-between;
  }
}

/* Điện thoại gập khi mở màn hình rộng / màn hình vuông-chữ nhật (560px - 960px hoặc 2 màn hình gập) */
@media (min-width: 560px) and (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .guide-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (horizontal-viewport-segments: 2) {
  .guide-grid,
  .detail-specs-layout,
  .cart-layout {
    gap: 24px;
  }
}

/* ================================================================
   MENU THẢ NGANG 3 CẤP CHO CỘT NHÓM SẢN PHẨM TRANG SHOP ONLINE
   Đồng bộ hiệu ứng 0.2s ease, nền trắng, viền ấm và đổ bóng chuẩn DCZ
   ================================================================ */
.shop-sidebar {
  position: relative;
  z-index: 40; /* Đảm bảo menu thả ngang nổi đè lên lưới sản phẩm bên phải */
  overflow: visible;
}

.shop-cat-tree {
  position: relative;
  overflow: visible;
}

.shop-flyout-item {
  position: relative;
}

.shop-flyout-btn-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.shop-flyout-arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.shop-flyout-item:hover > .cat-filter-btn .shop-flyout-arrow,
.shop-flyout-item:focus-within > .cat-filter-btn .shop-flyout-arrow,
.cat-filter-btn.is-active .shop-flyout-arrow {
  color: var(--orange-logo);
  transform: translateX(2px);
}

/* Bảng menu thả ngang cấp 2 & cấp 3 */
.shop-flyout-panel {
  position: absolute;
  top: -6px;
  left: calc(100% + 8px);
  min-width: 248px;
  padding: 8px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Cầu nối vô hình bên trái giúp chuột trượt ngang không bị mất trạng thái hover */
.shop-flyout-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
}

.shop-flyout-item:hover > .shop-flyout-panel,
.shop-flyout-item:focus-within > .shop-flyout-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* Mục con bên trong bảng thả ngang cấp 2 & cấp 3 */
.shop-flyout-subitem {
  position: relative;
}

.shop-flyout-subbtn {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-sans); /* Giữ nguyên font Noto Sans mặc định */
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-flyout-subitem:hover > .shop-flyout-subbtn,
.shop-flyout-subitem:focus-within > .shop-flyout-subbtn,
.shop-flyout-subbtn.is-active {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.shop-flyout-subbtn.is-active .shop-filter-count {
  background-color: var(--orange-logo);
  color: var(--white);
}

.shop-flyout-subitem:hover > .shop-flyout-subbtn .shop-flyout-arrow,
.shop-flyout-subitem:focus-within > .shop-flyout-subbtn .shop-flyout-arrow,
.shop-flyout-subbtn.is-active .shop-flyout-arrow {
  color: var(--orange-logo);
  transform: translateX(2px);
}

/* Bảng thả ngang cấp 3 bung tiếp sang bên phải cấp 2 */
.shop-flyout-panel--l3 {
  top: -6px;
  left: calc(100% + 8px);
  min-width: 240px;
  z-index: 70;
}

.shop-flyout-subitem:hover > .shop-flyout-panel--l3,
.shop-flyout-subitem:focus-within > .shop-flyout-panel--l3 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* Bảng thả ngang cấp 4 bung các mã hàng cụ thể bên phải từng Series */
.shop-flyout-panel--l4 {
  top: -6px;
  left: calc(100% + 8px);
  min-width: 210px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 80;
}

.shop-flyout-panel--l4.is-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 256px;
}

.shop-flyout-subitem:hover > .shop-flyout-panel--l4,
.shop-flyout-subitem:focus-within > .shop-flyout-panel--l4 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* Thu gọn thành menu xổ dọc thân thiện trên màn hình hẹp (<= 920px) */
@media (max-width: 920px) {
  .shop-flyout-panel,
  .shop-flyout-panel--l3,
  .shop-flyout-panel--l4 {
    position: static;
    min-width: 0;
    max-height: none;
    margin: 4px 0 6px 12px;
    padding: 6px;
    box-shadow: none;
    border-left: 2px solid var(--warm-border);
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .shop-flyout-panel::before {
    display: none;
  }

  .shop-flyout-item.is-open > .shop-flyout-panel,
  .shop-flyout-subitem.is-open > .shop-flyout-panel--l3,
  .shop-flyout-subitem.is-open > .shop-flyout-panel--l4 {
    display: flex;
  }

  .shop-flyout-subitem.is-open > .shop-flyout-panel--l4.is-grid {
    display: grid;
  }
}

/* ================================================================
   CHỦ ĐỀ NOEL / GIÁNG SINH TOÀN WEBSITE DCZ
   Mũ Noel trên logo DCZ, dải đèn lấp lánh dưới header & tuyết rơi nhẹ
   ================================================================ */
/* Mũ Noel nhung đỏ 3D chụp vừa khít vào góc trên bên phải chữ Z màu cam trên logo DCZ */
.dcz-xmas-hat {
  position: absolute;
  top: -10px;
  right: -13px;
  left: auto;
  width: 44px;
  height: auto;
  transform: rotate(3deg);
  transform-origin: center center;
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
  animation: dczXmasHatBob 4.5s ease-in-out infinite;
}

@keyframes dczXmasHatBob {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-1px); }
}

/* Dải lá thông + đèn Giáng Sinh trang trí ngay dưới thanh header */
.dcz-xmas-lights {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 18px 2px;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
  /* Dải lá thông SVG lặp ngang mềm mại kết hợp điểm đỏ quả châu */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18'%3E%3Cpath d='M0,0 Q15,12 30,2 Q45,13 60,1 Q75,13 90,2 Q105,12 120,0 L120,0 L0,0 Z' fill='%2314532d'/%3E%3Cpath d='M0,0 Q15,9 30,1 Q45,10 60,0 Q75,10 90,1 Q105,9 120,0' fill='none' stroke='%2316a34a' stroke-width='2'/%3E%3Ccircle cx='30' cy='5' r='2.2' fill='%23ef4444'/%3E%3Ccircle cx='90' cy='5' r='2.2' fill='%23fbbf24'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: top left;
  background-size: 120px 18px;
}

/* Cụm cảnh Noel góc dưới trái: Cây thông, hộp quà cùng 2 linh vật DEX & ZIP */
.dcz-xmas-scene {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9989;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.25));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dcz-xmas-scene.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.dcz-xmas-mascot-img {
  display: block;
  width: 172px;
  height: auto;
}

.dcz-xmas-bulb {
  position: relative;
  width: 7px;
  height: 10px;
  border-radius: 50% 50% 45% 45%;
  background-color: var(--bulb-color, var(--orange-logo));
  box-shadow: 0 0 7px var(--bulb-color, var(--orange-logo));
  animation: dczXmasTwinkle var(--twinkle-dur, 2.2s) ease-in-out infinite alternate;
  animation-delay: var(--twinkle-delay, 0s);
}

.dcz-xmas-bulb::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 2px 2px 0 0;
  background-color: #2f353d;
}

@keyframes dczXmasTwinkle {
  0% { opacity: 0.55; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.06); }
}

/* Lớp tuyết rơi nhẹ toàn màn hình (không cản thao tác chuột) */
.dcz-xmas-snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.dcz-xmas-snow-layer.is-hidden {
  opacity: 0;
}

.dcz-xmas-flake {
  position: absolute;
  top: -24px;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  user-select: none;
  will-change: transform, opacity;
  animation: dczXmasSnowFall var(--fall-dur, 11s) linear infinite;
  animation-delay: var(--fall-delay, 0s);
}

@keyframes dczXmasSnowFall {
  0% {
    transform: translate3d(0, -24px, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: var(--flake-opacity, 0.78);
  }
  90% {
    opacity: var(--flake-opacity, 0.78);
  }
  100% {
    transform: translate3d(var(--fall-drift, 32px), 105vh, 0) rotate(220deg);
    opacity: 0;
  }
}

/* Nút bật/tắt chủ đề Noel màu xanh lá thông đồng bộ dưới chân linh vật DEX & ZIP */
.dcz-xmas-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9991;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1.5px solid #4ade80;
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.dcz-xmas-toggle-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 6px #86efac;
  flex-shrink: 0;
}

.dcz-xmas-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.dcz-xmas-toggle.is-off {
  background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  border-color: #6b7280;
  box-shadow: var(--shadow-md);
  opacity: 0.85;
}

.dcz-xmas-toggle.is-off .dcz-xmas-toggle-dot {
  background-color: #9ca3af;
  box-shadow: none;
}

/* Thu gọn mũ Noel & dải đèn trên màn hình điện thoại */
@media (max-width: 768px) {
  .dcz-xmas-hat {
    top: -9px;
    right: -12px;
    left: auto;
    width: 30px;
    height: 24px;
  }

  .dcz-xmas-lights {
    padding: 0 8px 2px;
  }

  .dcz-xmas-scene {
    left: 8px;
    bottom: 8px;
    gap: 2px;
    transform: scale(0.76);
    transform-origin: bottom left;
  }

  .dcz-xmas-toggle {
    left: 10px;
    bottom: 12px;
    padding: 5px 10px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dcz-xmas-hat,
  .dcz-xmas-bulb,
  .dcz-xmas-flake,
  .dcz-xmas-char--santa,
  .dcz-xmas-char--snowman,
  .dcz-xmas-char--ginger {
    animation: none !important;
  }
}

/* Nền background chủ đề Noel toàn website: tuyết rơi chìm, cây thông & ánh sáng mùa đông dịu mắt */
body:not(.dcz-xmas-off) {
  background-color: #eef4f8;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%2394a3b8' stroke-width='1.2' opacity='0.22'%3E%3Cpath d='M42 22v20M33.3 27l17.4 10M50.7 27L33.3 37'/%3E%3Cpath d='M168 62v16M161 66l14 8M175 66l-14 8'/%3E%3Cpath d='M92 148v20M83.3 153l17.4 10M100.7 153l-17.4 10'/%3E%3Cpath d='M184 172v14M178 175.5l12 7M190 175.5l-12 7'/%3E%3C/g%3E%3Cg opacity='0.14'%3E%3Cpolygon points='128,28 116,48 140,48' fill='%2315803d'/%3E%3Cpolygon points='128,39 112,62 144,62' fill='%23166534'/%3E%3Crect x='125.5' y='62' width='5' height='6' fill='%237c431e'/%3E%3Ccircle cx='34' cy='112' r='3' fill='%23ef4444'/%3E%3Ccircle cx='192' cy='118' r='2.5' fill='%23eb5c14'/%3E%3Ccircle cx='148' cy='192' r='3' fill='%23fbbf24'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 10% 15%, rgba(22, 163, 74, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 90% 18%, rgba(235, 92, 20, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #eaf2f7 0%, #f7f4f0 46%, #edf4f8 100%);
  background-attachment: fixed;
  background-size: 220px 220px, 100% 100%, 100% 100%, 100% 100%;
}

/* ================================================================
   KHỐI CAM KẾT DỊCH VỤ & LINH VẬT DEX - ZIP GIỮA POSTER ĐEN VÀ DANH MỤC
   ================================================================ */
.home-mascot-strip-section {
  padding: 10px 0 6px;
}

/* Khung trong suốt sạch sẽ để linh vật DEX - ZIP đứng trực tiếp trên nền sáng của trang */
.home-mascot-bridge {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 148px;
  align-items: end;
  gap: 10px;
  padding: 6px 0 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-mascot-dex,
.home-mascot-zip {
  width: 148px;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.14));
}

.home-mascot-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
}

/* Thanh 5 cam kết dịch vụ DCZ: nền trắng sáng gọn nhẹ đồng bộ nền trang */
.home-trust-bar {
  background-color: var(--white);
  background-image: linear-gradient(180deg, #ffffff 0%, #fcfaf8 100%);
  border: 1px solid var(--warm-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.home-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2px 6px;
  border-right: 1px solid var(--warm-border);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--charcoal);
}

.home-trust-item:last-child {
  border-right: none;
}

.home-trust-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  border: none;
  color: var(--orange-logo);
  flex-shrink: 0;
}

/* Thanh tiêu đề dẫn dắt bo tròn nền trắng sáng nổi bật */
.home-brand-lead-pill {
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.home-brand-lead-pill h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.home-brand-lead-arrows {
  color: var(--orange-logo);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

/* Co giãn hợp lý khối cam kết & linh vật trên tablet và điện thoại */
@media (max-width: 1024px) {
  .home-mascot-bridge {
    grid-template-columns: 92px minmax(0, 1fr) 92px;
    gap: 6px;
  }

  .home-mascot-dex,
  .home-mascot-zip {
    width: 92px;
  }

  .home-trust-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-trust-item {
    border-right: none;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .home-mascot-bridge {
    grid-template-columns: 1fr;
  }

  .home-mascot-dex,
  .home-mascot-zip {
    display: none;
  }

  .home-trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 12px;
  }

  .home-brand-lead-pill h2 {
    font-size: 13.5px;
  }
}

/* ============================================================================
   CẤU HÌNH KHUYẾN MÃI & COMBO SHOP ONLINE CHI TIẾT TRONG ADMIN
   ============================================================================ */
.adm-mkt-card {
  padding: 18px;
  margin-bottom: 14px;
  background-color: var(--warm-gray-bg); /* Nền xám ấm đồng bộ khối Admin */
  border: 1px solid var(--warm-border);
  border-radius: 12px;
}

.adm-mkt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.adm-mkt-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
}

/* Tiêu đề khối có gạch xéo cam chuẩn DCZ */
.adm-mkt-card-title::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
  margin-right: 6px;
}

.adm-mkt-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
}

.adm-mkt-switch-label input {
  accent-color: var(--orange-logo);   /* Màu nhấn cam DCZ cho checkbox */
  width: 16px;
  height: 16px;
}

.adm-mkt-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.adm-mkt-combo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Từng dòng cấu hình mức Combo / Bậc giảm % / Quà tặng cân đối thẳng hàng nhau */
.adm-mkt-combo-row {
  display: grid;
  grid-template-columns: 92px 110px 175px 130px minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  transition: border-color 0.2s ease; /* Hiệu ứng viền mượt 0.2s chuẩn DCZ */
}

/* Bố cục 5 cột cân bằng cho hàng Mua đạt mốc nhận quà tặng (thêm SL quà) */
.adm-mkt-combo-row.is-gift-row {
  grid-template-columns: 92px 130px 92px minmax(190px, 1fr) minmax(190px, 1fr);
}

/* Thanh Tab menu ngang chia từng loại Marketing trong Admin */
.adm-mkt-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
}

.adm-mkt-subtab-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--warm-gray-bg);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.adm-mkt-subtab-btn:hover {
  background-color: #fff4ee;
  border-color: var(--orange-logo);
  color: var(--orange-logo);
}

.adm-mkt-subtab-btn.is-active {
  background-color: var(--orange-logo);
  border-color: var(--orange-logo);
  color: var(--white);
}

/* Đảm bảo khối khuyến mãi ẩn hoàn toàn khi lọc theo tab ngang */
.adm-mkt-card[hidden] {
  display: none !important;
}

/* Nhãn trạng thái chương trình khuyến mãi theo thời gian thực trong Admin */
.adm-mkt-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
}

.adm-mkt-status-badge.is-live {
  background-color: #eafaf1;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.adm-mkt-status-badge.is-upcoming {
  background-color: #fff4ee;
  color: var(--orange-logo);
  border: 1px solid #ffd4be;
}

.adm-mkt-status-badge.is-off {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* Đồng bộ chiều cao mọi ô nhập và Custom Dropdown trong hàng Admin Marketing */
.adm-mkt-combo-row .form-field,
.adm-mkt-iv-row .form-field {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.adm-mkt-combo-row .form-field label,
.adm-mkt-iv-row .form-field label {
  margin-bottom: 0;
  line-height: 1.25;
}

.adm-mkt-combo-row .form-control,
.adm-mkt-iv-row .form-control {
  height: 38px;
  padding: 0 11px;
  box-sizing: border-box;
}

.adm-mkt-combo-row .dcz-select-wrap,
.adm-mkt-iv-row .dcz-select-wrap {
  width: 100%;
  min-width: 0;
}

.adm-mkt-combo-row .dcz-select-trigger,
.adm-mkt-iv-row .dcz-select-trigger {
  height: 38px;
  min-height: 38px;
  padding: 0 11px;
  font-size: 13px;
  box-sizing: border-box;
}

.adm-mkt-combo-row:hover,
.adm-mkt-iv-row:hover {
  border-color: var(--orange-logo);
}

.adm-mkt-tier-toggle {
  display: inline-flex;
  align-items: center;
  height: 38px;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--charcoal);
  padding-bottom: 0;
  cursor: pointer;
}

.adm-mkt-tier-toggle input {
  accent-color: var(--orange-logo);
  width: 16px;
  height: 16px;
}

/* Công tắc gạt bật/tắt nhanh cho từng chương trình khuyến mãi trong Admin */
.adm-mkt-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  user-select: none;
}

.adm-mkt-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Thanh trượt công tắc Khuyến mãi Admin đồng bộ kích thước 38x20 với chuẩn toàn web */
.adm-mkt-switch-slider {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background-color: #cbd5e1;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.adm-mkt-switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.adm-mkt-switch input:checked + .adm-mkt-switch-slider {
  background-color: #22c55e; /* Màu xanh lá cây đồng bộ công tắc toàn web */
}

.adm-mkt-switch input:checked + .adm-mkt-switch-slider::after {
  transform: translateX(18px);
}

/* Làm mờ khối cấu hình khi công tắc của chương trình đang gạt TẮT */
.adm-mkt-card.is-section-off .adm-mkt-combo-list,
.adm-mkt-card.is-section-off .adm-mkt-grid-3 {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.adm-mkt-preview-box {
  margin-top: 14px;
  padding: 12px 14px;
  background-color: var(--white);
  border: 1px dashed var(--warm-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.adm-mkt-preview-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .adm-mkt-grid-3 {
    grid-template-columns: 1fr;
  }

  .adm-mkt-combo-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================================
   BỘ NHÂN VẬT NOEL KHÔNG KHUNG VIỀN, KÉO RỜI TỪNG BÉ ĐỘC LẬP TRÊN MÀN HÌNH
   Gồm: Bé cây thông, Tuần lộc, Ông già Noel, Bánh quy Noel, Người tuyết, Hộp quà & Chuông kẹo
   ============================================================================ */
.dcz-xmas-char {
  position: fixed;                 /* Mỗi nhân vật đứng độc lập để kéo rời tự do */
  bottom: 14px;
  z-index: 9992;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 46px;
  height: 54px;
  background: transparent;         /* Không khung nền */
  border: none;                    /* Không viền */
  padding: 0;
  user-select: none;               /* Tránh bôi đen khi kéo thả */
  touch-action: none;              /* Hỗ trợ kéo mượt trên màn hình cảm ứng */
  cursor: grab;
  transform-origin: bottom center;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.28)); /* Đổ bóng trực tiếp theo dáng nhân vật */
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.dcz-xmas-char.is-dragging {
  cursor: grabbing;
  z-index: 9995;                   /* Nổi lên trên các nhân vật khác khi đang kéo */
  transform: scale(1.14);
  animation: none !important;
}

.dcz-xmas-char svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.dcz-xmas-char:hover {
  transform: translateY(-6px) scale(1.12); /* Nhún nhảy vui mắt khi rê chuột vào từng bé */
}

/* Chuyển động lắc lư nhẹ nhàng riêng cho từng nhân vật */
.dcz-xmas-char--tree {
  animation: dczXmasSway 3.4s ease-in-out infinite;
}

.dcz-xmas-char--reindeer {
  animation: dczXmasBob 2.6s ease-in-out infinite 0.2s;
}

.dcz-xmas-char--santa {
  width: 50px;
  height: 58px;
  animation: dczXmasBob 2.8s ease-in-out infinite 0.5s;
}

.dcz-xmas-char--ginger {
  animation: dczXmasSway 2.9s ease-in-out infinite 0.35s;
}

.dcz-xmas-char--snowman {
  animation: dczXmasBob 3.1s ease-in-out infinite 0.7s;
}

.dcz-xmas-char--gift,
.dcz-xmas-char--bell {
  width: 38px;
  height: 46px;
  animation: dczXmasSway 3.6s ease-in-out infinite 0.9s;
}

/* Chuyển động riêng cho Nhà ống khói, Lò sưởi, Em bé Noel và Sói xám DEX Noel */
.dcz-xmas-char--house,
.dcz-xmas-char--fireplace {
  width: 48px;
  height: 54px;
  animation: dczXmasSway 3.5s ease-in-out infinite 0.4s;
}

.dcz-xmas-char--baby,
.dcz-xmas-char--wolf {
  width: 48px;
  height: 56px;
  animation: dczXmasBob 2.9s ease-in-out infinite 0.6s;
}

@keyframes dczXmasBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes dczXmasSway {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

@media (max-width: 768px) {
  .dcz-xmas-char {
    width: 38px;
    height: 44px;
    bottom: 10px;
  }

  .dcz-xmas-char--santa {
    width: 42px;
    height: 48px;
  }

  .dcz-xmas-char--gift,
  .dcz-xmas-char--bell {
    width: 32px;
    height: 38px;
  }
}

/* Nút Clear nằm phía trên icon cây Noel để không chồng lên vòng quay và nhân vật */
.dcz-xmas-clear-btn {
  position: fixed;
  left: 82px;
  bottom: 156px;
  z-index: 9993;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, visibility 0.2s ease; /* Hiệu ứng mượt 0.2s chuẩn DCZ */
}

/* Icon cây Noel trong suốt, cùng kích thước 56 × 62 px với vòng quay và có thể kéo thả */
.dcz-xmas-tray-toggle {
  position: fixed;
  left: 82px;
  bottom: 86px;
  z-index: 9994;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 62px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.28));
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.dcz-xmas-tray-toggle:hover {
  filter: drop-shadow(0 6px 12px rgba(254, 106, 23, 0.36));
}

.dcz-xmas-tray-toggle:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 5px var(--orange-logo));
}

.dcz-xmas-tray-toggle.is-dragging {
  cursor: grabbing;
  transform: none;
  transition: none;
}

.dcz-xmas-tray-toggle svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Đèn nhiều màu trên cây nhấp nháy luân phiên; hộp quà luôn nằm sát gốc cây */
.dcz-xmas-tray-light {
  transform-box: fill-box;
  transform-origin: center;
  animation: dczXmasTrayLightBlink 0.9s ease-in-out infinite;
}

.dcz-xmas-tray-light--two { animation-delay: 0.22s; }
.dcz-xmas-tray-light--three { animation-delay: 0.44s; }
.dcz-xmas-tray-light--four { animation-delay: 0.66s; }

/* Chu kỳ phóng sáng rồi dịu xuống giúp các bóng đèn nhấp nháy lần lượt */
@keyframes dczXmasTrayLightBlink {
  0%, 100% { opacity: 0.55; transform: scale(0.82); filter: drop-shadow(0 0 1px currentColor); }
  50% { opacity: 1; transform: scale(1.18); filter: drop-shadow(0 0 4px currentColor); }
}

/* Tôn trọng cài đặt giảm chuyển động của thiết bị bằng cách tắt hiệu ứng nhấp nháy */
@media (prefers-reduced-motion: reduce) {
  .dcz-xmas-tray-light {
    animation: none;
  }
}

/* Khi khay Noel thu gọn, ẩn nhân vật và Clear nhưng giữ lại nút mở khay */
body.dcz-xmas-chars-collapsed .dcz-xmas-char[data-xmas-id],
body.dcz-xmas-chars-collapsed #dcz-xmas-clear-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dcz-xmas-clear-btn:hover {
  border-color: var(--orange-logo);
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.dcz-xmas-char.is-resetting {
  transition: left 0.25s ease, top 0.25s ease; /* Trượt mượt về vị trí cũ khi bấm Clear */
}

/* Trên điện thoại, đặt nút khay và Clear cao hơn thanh điều hướng đáy cùng vùng an toàn */
@media (max-width: 960px) {
  .dcz-xmas-tray-toggle {
    bottom: calc(74px + 12px + env(safe-area-inset-bottom));
  }

  .dcz-xmas-clear-btn {
    bottom: calc(74px + 82px + env(safe-area-inset-bottom));
  }
}

/* ============================================================================
   HIỆU ỨNG ÔNG GIÀ NOEL CƯỠI XE TUẦN LỘC BAY QUA BAY LẠI NÉM QUÀ
   ============================================================================ */
.dcz-xmas-sleigh {
  position: fixed;
  top: 72px;
  left: -380px;
  width: 340px;
  height: 108px;
  z-index: 9990;
  pointer-events: none;            /* Không cản trở thao tác bấm chuột trên trang */
  user-select: none;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.24));
  will-change: transform, left, top;
}

.dcz-xmas-sleigh svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hộp quà được ông già Noel ném xuống xung quanh cửa sổ */
.dcz-xmas-drop-gift {
  position: fixed;
  width: 28px;
  height: 28px;
  z-index: 9989;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.2));
  animation: dczXmasGiftFall var(--gift-dur, 3.4s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.dcz-xmas-drop-gift svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes dczXmasGiftFall {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.5);
  }
  12% {
    opacity: 1;
    transform: translate(calc(var(--gift-dx, 24px) * 0.3), -22px) rotate(25deg) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(var(--gift-dx, 24px), var(--gift-dy, 360px)) rotate(var(--gift-rot, 240deg)) scale(0.85);
  }
}

@media (max-width: 768px) {
  .dcz-xmas-sleigh {
    width: 230px;
    height: 74px;
  }

  .dcz-xmas-drop-gift {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dcz-xmas-sleigh,
  .dcz-xmas-drop-gift {
    display: none !important;
  }
}

/* Khối nội dung chi tiết trong 3 tab Mô tả, Tài liệu và Hướng dẫn đo ở trang chi tiết sản phẩm */
.detail-rich-block {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.65;
}

/* Tiêu đề phụ trong tab chi tiết sản phẩm, đồng bộ dấu gạch xéo màu cam bên trái */
.detail-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin: 12px 0 8px;
}

.detail-subhead::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 800;
}

/* Danh sách gạch đầu dòng và quy trình từng bước trong tab Mô tả, Tài liệu, Hướng dẫn đo */
.detail-bullet-list,
.detail-step-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.detail-bullet-list li,
.detail-step-list li {
  color: var(--text-main);
}

.detail-step-list code {
  background: var(--bg-soft);
  border: 1px solid var(--warm-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
  color: var(--orange-logo);
  font-weight: 600;
}

/* Nền chuyển động và ánh sáng lướt chỉ áp dụng cho các nút thao tác chính */
.btn-primary,
.btn-buy-solid,
.search-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #e94a08 0%, var(--orange-logo) 32%, #ff7d38 54%, var(--orange-logo) 78%, #e94a08 100%);
  background-size: 220% 100%;
  animation: dczFlashBgFlow 4s linear infinite;
}

.btn-dark,
.btn-green {
  position: relative;
  overflow: hidden;
  background-size: 220% 100%;
  animation: dczFlashBgFlow 4s linear infinite;
}

/* Nút yêu cầu báo giá màu than */
.btn-dark {
  background: linear-gradient(110deg, #111317 0%, #2b303a 34%, #414854 54%, #2b303a 78%, #111317 100%);
  background-size: 220% 100%;
  animation: dczFlashBgFlow 4s linear infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px rgba(24, 26, 30, 0.3);
}

/* Nút đặt hàng màu xanh lá */
.btn-green {
  background: linear-gradient(110deg, #15803d 0%, #16a34a 34%, #22c55e 54%, #16a34a 78%, #15803d 100%);
  background-size: 220% 100%;
  animation: dczFlashBgFlow 4s linear infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Vệt sáng dùng chung cho nhóm nút thao tác chính, giữ nguyên màu nhận diện */
.btn-primary::after,
.btn-buy-solid::after,
.search-btn::after,
.btn-dark::after,
.btn-green::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -45%;
  width: 36%;
  height: 140%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.24) 50%, transparent 100%);
  transform: skewX(-22deg);
  animation: dczFlashShine 3.6s ease-in-out infinite;
  pointer-events: none;
}

.btn-dark:hover {
  filter: brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 16px rgba(24, 26, 30, 0.4);
}

.btn-green:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px rgba(22, 163, 74, 0.4);
}

/* Tắt hiệu ứng chuyển động khi nút chính bị vô hiệu hóa */
.btn-primary:disabled,
.btn-buy-solid:disabled,
.search-btn:disabled,
.btn-dark:disabled,
.btn-green:disabled {
  animation: none;
}

.btn-primary:disabled::after,
.btn-buy-solid:disabled::after,
.search-btn:disabled::after,
.btn-dark:disabled::after,
.btn-green:disabled::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .btn-buy-solid,
  .search-btn,
  .btn-dark,
  .btn-green,
  .btn-primary::after,
  .btn-buy-solid::after,
  .search-btn::after,
  .btn-dark::after,
  .btn-green::after {
    animation: none !important;
  }
}

/* ============================================================================
   POPUP POSTER RA MẮT VÒNG BI DCZ (HIỂN THỊ KHI VÀO TRANG CHỦ / SHOP ONLINE)
   ============================================================================ */
.dcz-launch-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(4px);
  animation: dczSuggestDrop 0.25s ease;
}

.dcz-launch-backdrop[hidden] {
  display: none;
}

/* Khung Popup co giãn linh hoạt theo mọi tỷ lệ ảnh (vuông 1:1, ngang 16:9, dọc 4:5) */
.dcz-launch-card {
  position: relative;
  width: auto;
  min-width: min(320px, 92vw);
  max-width: min(680px, 94vw);
  border-radius: 14px;
  background-color: #14171c;
  border: 0; /* Bỏ đường viền quanh ảnh và khung popup */
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.dcz-launch-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(20, 22, 26, 0.78);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dcz-launch-close:hover {
  background-color: var(--orange-logo);
  border-color: var(--orange-logo);
  transform: scale(1.06);
}

.dcz-launch-poster-link {
  display: block;
  width: 100%;
  background-color: #111317;
}

/* Ảnh trong Popup hiển thị trọn vẹn theo đúng tỷ lệ gốc, không bị cắt xén */
.dcz-launch-poster-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  object-fit: contain;
}

.dcz-launch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background-color: #16181d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dcz-launch-actions .btn-buy-solid {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  border: none;
}

.dcz-launch-skip-btn {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent;
  color: #d1d5db;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dcz-launch-skip-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ============================================================================
   VÒNG QUAY MAY MẮN DCZ & Ô MÃ GIẢM GIÁ NỘI BỘ
   ============================================================================ */
/* Bố cục 4 cột cân bằng cho hàng cấu hình 6 ô giải thưởng Vòng quay trong Admin */
.adm-mkt-combo-row.is-wheel-row {
  grid-template-columns: 76px minmax(180px, 1.3fr) 170px 140px;
}

/* Biểu tượng Bánh xe quay may mắn không khung, có thể kéo di chuyển tự do trên màn hình */
/* Icon vòng quay cố định góc trái dưới và nổi trên các thành phần trang thông thường */
.dcz-wheel-fab {
  position: fixed;
  left: 16px;
  bottom: 72px;
  z-index: 9996;
  width: 56px;
  height: 62px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.28));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.dcz-wheel-fab:hover {
  transform: translateY(-4px) scale(1.08);
}

.dcz-wheel-fab.is-dragging {
  cursor: grabbing;
  transform: scale(1.12);
}

.dcz-wheel-fab svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Đĩa bánh xe quay tròn liên tục và 8 bóng đèn vàng nhấp nháy trên icon nổi */
.dcz-wheel-fab-disc {
  transform-box: fill-box;
  transform-origin: center center;
  animation: dczWheelMiniSpin 6s linear infinite;
}

.dcz-wheel-fab-b1 {
  animation: dczBulbBlink 0.9s ease-in-out infinite;
}

.dcz-wheel-fab-b2 {
  animation: dczBulbBlink 0.9s ease-in-out infinite 0.45s;
}

@keyframes dczWheelMiniSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dòng phụ đề gọn đẹp, tạo khoảng thoáng phía trên mũi tên vàng */
.dcz-wheel-subtitle {
  margin: 0 auto 14px;
  max-width: 360px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: #fff7f2;
  border: 1px solid #ffd9c4;
  font-size: 12px;
  line-height: 1.4;
  color: var(--charcoal);
}

.dcz-wheel-card {
  width: min(460px, 94vw);
  border-radius: 14px;
  background-color: var(--white);
  border: 1.5px solid var(--warm-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  padding: 18px;
  position: relative;
  text-align: center;
}

/* Khung tổng thể bánh xe quay thưởng DCZ (gồm bánh xe và chân đế) */
.dcz-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 14px auto 6px;
}

.dcz-wheel-stage {
  position: relative;
  width: 288px;
  height: 288px;
  z-index: 2;
}

/* Kim chỉ mũi tên vàng viền nâu ở đỉnh bánh xe */
.dcz-wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  width: 34px;
  height: 42px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}

.dcz-wheel-pointer svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Vành ngoài đỏ cam gắn 16 bóng đèn vàng nhấp nháy quanh bánh xe */
.dcz-wheel-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ef4423 0%, #c92513 78%, #8f160a 100%);
  border: 4px solid #5a150b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 2px 6px rgba(255, 255, 255, 0.28);
  z-index: 2;
}

/* Từng bóng đèn tròn màu vàng quanh vành ngoài */
.dcz-wheel-bulb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8b8 0%, #ffd230 65%, #d48900 100%);
  box-shadow: 0 0 6px rgba(255, 210, 48, 0.85);
  animation: dczBulbBlink 1.2s ease-in-out infinite;
}

.dcz-wheel-bulb.is-alt {
  animation-delay: 0.6s;
}

@keyframes dczBulbBlink {
  0%, 100% { opacity: 1; transform-origin: center; }
  50% { opacity: 0.45; }
}

/* Đĩa quay 6 ô xen kẽ đỏ cam DCZ và kem sáng giống mẫu bánh xe */
.dcz-wheel-disc {
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  border: 3px solid #5a150b;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.24);
  z-index: 3;
  transition: transform 4.2s cubic-bezier(0.15, 0.85, 0.2, 1);
  background: conic-gradient(
    #dc3522 0deg 59deg,
    #5a150b 59deg 60deg,
    #fff3d6 60deg 119deg,
    #5a150b 119deg 120deg,
    #eb5c14 120deg 179deg,
    #5a150b 179deg 180deg,
    #fff3d6 180deg 239deg,
    #5a150b 239deg 240deg,
    #dc3522 240deg 299deg,
    #5a150b 299deg 300deg,
    #fff3d6 300deg 359deg,
    #5a150b 359deg 360deg
  );
}

.dcz-wheel-slice-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  margin-left: -48px;
  margin-top: -12px;
  transform-origin: center center;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.dcz-wheel-slice-label.is-cream {
  color: #2b1810;
  text-shadow: none;
}

/* Nút tâm vòng quay nổi bật với viền vàng-cam, nền than và logo có nền sáng dễ đọc */
.dcz-wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 88px;
  height: 88px;
  padding: 8px;
  border-radius: 50%;
  border: 4px solid transparent;
  background:
    linear-gradient(145deg, #292e37, #111318 72%) padding-box,
    linear-gradient(135deg, #fff4b0 0%, #fbbf24 38%, var(--orange-logo) 72%, #ffe889 100%) border-box;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(20, 22, 25, 0.72), 0 0 20px rgba(254, 86, 11, 0.34), inset 0 2px 7px rgba(255, 255, 255, 0.14), 0 8px 18px rgba(0, 0, 0, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.dcz-wheel-center-btn:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.05);
  filter: brightness(1.08);
  box-shadow: 0 0 0 3px rgba(20, 22, 25, 0.72), 0 0 26px rgba(254, 86, 11, 0.52), inset 0 2px 7px rgba(255, 255, 255, 0.18), 0 10px 22px rgba(0, 0, 0, 0.46);
}

.dcz-wheel-center-btn:focus-visible {
  outline: 3px solid var(--orange-logo);
  outline-offset: 5px;
}

/* Hiển thị logo DCZ trắng-cam nguyên bản trên nền tâm tối, không thêm nền hay khung ảnh */
.dcz-wheel-center-logo {
  width: 72px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  display: block;
}

/* Chân đế vững chắc phía dưới bánh xe quay thưởng */
.dcz-wheel-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -16px;
  z-index: 1;
}

.dcz-wheel-stand-neck {
  width: 112px;
  height: 28px;
  background: linear-gradient(180deg, #5c2a1b 0%, #7d3c27 100%);
  border: 3px solid #441b10;
  border-bottom: none;
  clip-path: polygon(16% 0%, 84% 0%, 100% 100%, 0% 100%);
}

.dcz-wheel-stand-base {
  width: 176px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, #8b462e 0%, #5a2718 100%);
  border: 3px solid #441b10;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.dcz-wheel-center-btn:disabled {
  cursor: not-allowed;
}

.dcz-wheel-result {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: #fff4ee;
  border: 1px solid #ffd4be;
  color: var(--orange-logo);
  font-size: 13px;
  font-weight: 700;
}

/* Hộp xác nhận giải thưởng nằm trên vòng quay, giữ nút xác nhận luôn dễ nhìn */
.dcz-wheel-win-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(5px);
  animation: dczSuggestDrop 0.22s ease;
}

.dcz-wheel-win-backdrop[hidden] {
  display: none !important;
}

.dcz-wheel-win-card {
  width: min(420px, 92vw);
  padding: 26px 24px 22px;
  border: 1px solid #ffd4be;
  border-top: 4px solid var(--orange-logo);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--white), #fff8f4);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38), 0 0 28px rgba(254, 86, 11, 0.18);
  text-align: center;
}

.dcz-wheel-win-icon {
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1;
}

.dcz-wheel-win-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--charcoal);
  font-size: 18px;
  font-weight: 800;
}

.dcz-wheel-win-title::before {
  content: "/";
  color: var(--orange-logo);
  font-weight: 900;
}

.dcz-wheel-win-prize {
  margin: 0 auto 10px;
  padding: 12px;
  border: 1px solid #ffd4be;
  border-radius: 12px;
  background: #fff1e8;
  color: var(--orange-logo);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
}

/* Làm nổi bật mã giảm giá vừa trúng để khách dễ đọc và đối chiếu trong giỏ hàng */
.dcz-wheel-win-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: -2px auto 12px;
  padding: 8px 14px;
  border: 1px dashed var(--orange-logo);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--charcoal);
  font: 800 15px/1.4 var(--font-sans);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.dcz-wheel-win-code[hidden] {
  display: none !important;
}

.dcz-wheel-win-description {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Nút xác nhận kế thừa nền cam động và hiệu ứng ánh sáng của nút chính toàn website */
.dcz-wheel-win-confirm {
  min-width: 150px;
}

.dcz-wheel-win-confirm:focus-visible {
  outline: 3px solid rgba(254, 86, 11, 0.28);
  outline-offset: 3px;
}

/* Pháo hoa nhiều màu nổ theo cụm quanh hộp thông báo rồi tự tan biến */
.dcz-wheel-fireworks {
  position: fixed;
  inset: 0;
  z-index: 10002;
  overflow: hidden;
  pointer-events: none;
}

.dcz-wheel-firework-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--firework-color, #ffd230);
  box-shadow: 0 0 9px var(--firework-color, #ffd230);
  animation: dczWheelFireworkBurst 1.25s cubic-bezier(0.12, 0.72, 0.24, 1) forwards;
}

@keyframes dczWheelFireworkBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.55);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--firework-x)), calc(-50% + var(--firework-y))) scale(0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dcz-wheel-firework-particle {
    animation-duration: 0.01ms;
  }
}

.dcz-cart-internal-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.dcz-cart-internal-row .form-control {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

/* Khối tiêu đề và ghi chú khu vực Khiếu nại đơn hàng trên trang Liên hệ */
.contact-complaint-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--warm-border);
}

/* Đoạn lưu ý chỉ áp dụng cho khách hàng đã mua đơn hàng */
.contact-complaint-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Hàng cấu hình Mã giảm giá nội bộ (DCZ.VIP.6 số) độc lập hoàn toàn, dàn đều 100% chiều ngang */
.adm-mkt-iv-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 12px;
  padding: 14px;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

/* Hàng nhập thông số mã, hình thức, giá trị, giảm tối đa và đơn tối thiểu */
.adm-mkt-iv-main {
  width: 100%;
  display: grid;
  grid-template-columns: 84px minmax(200px, 1.4fr) minmax(140px, 1fr) minmax(95px, 0.75fr) minmax(140px, 1fr) minmax(140px, 1fr);
  gap: 10px;
  align-items: end;
}

@media (max-width: 1120px) {
  .adm-mkt-iv-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Khung chứa ô Mã nội bộ và nút 2 mũi tên xoay tròn đổi 6 số */
.adm-iv-code-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-iv-code-wrap .form-control {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Nút 2 mũi tên xoay tròn đổi 6 số ngẫu nhiên cho mã DCZ.VIP */
.adm-iv-rotate-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background-color: var(--white);
  color: var(--orange-logo);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.adm-iv-rotate-btn:hover {
  background-color: #fff4ee;
  border-color: var(--orange-logo);
}

.adm-iv-rotate-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.35s ease;
}

.adm-iv-rotate-btn.is-spinning svg {
  transform: rotate(360deg);
}

/* Thanh gửi mã qua Mã khách hàng và hiển thị thông tin người nhận + trạng thái */
.adm-mkt-iv-send-bar {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(195px, 230px) auto minmax(260px, 1fr);
  align-items: end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--warm-border);
}

@media (max-width: 920px) {
  .adm-mkt-iv-send-bar {
    grid-template-columns: 1fr;
  }
}

/* Hộp hiển thị thông tin người được gửi và trạng thái Đã gửi / Đang chờ xử lý / Đã hoàn thành */
.adm-iv-tracking-info {
  min-height: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 8px;
  background-color: #faf8f6;
  border: 1px solid var(--warm-border);
}

/* Căn đều 6 thẻ thống kê Tổng quan trong trang Quản trị Admin */
body[data-page="admin"] .account-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

/* ============================================================================
   NỀN BACKGROUND ĐỒNG BỘ CHO MỌI BẢNG DỮ LIỆU & HỘP THOẠI CHI TIẾT TRÊN TOÀN WEB
   ============================================================================ */
/* Nền chấm bi công nghiệp nhẹ nhàng chuẩn DCZ cho các khung bảng và hộp thoại chi tiết */
.surface-card,
.quote-pdf-dialog,
.shop-variant-body,
.admin-table-wrap,
.table-wrap {
  background-color: var(--white);
  background-image: radial-gradient(rgba(235, 92, 20, 0.055) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Nền tiêu đề bảng ấm áp đồng bộ nhận diện DCZ trên toàn bộ các trang */
.admin-table thead th,
.spec-table thead th,
.shop-var-table thead th,
.cart-table thead th,
.dim-table thead th,
.dcz-ser-table thead th {
  background: linear-gradient(180deg, #fff5ef 0%, #f7f1eb 100%);
  border-bottom: 2px solid rgba(235, 92, 20, 0.24);
  color: var(--charcoal);
}

/* Nền xen kẽ nhẹ giữa các dòng bảng và hiệu ứng rê chuột cam nhạt DCZ */
.admin-table tbody tr:nth-child(even) td,
.spec-table tbody tr:nth-child(even) td,
.shop-var-table tbody tr:nth-child(even) td,
.cart-table tbody tr:nth-child(even) td,
.dim-table tbody tr:nth-child(even) td,
.dcz-ser-table tbody tr:nth-child(even) td {
  background-color: rgba(250, 246, 242, 0.72);
}

.admin-table tbody tr:hover td,
.spec-table tbody tr:hover td,
.shop-var-table tbody tr:hover td,
.cart-table tbody tr:hover td,
.dim-table tbody tr:hover td,
.dcz-ser-table tbody tr:hover td {
  background-color: #fff4ee;
  transition: background-color 0.2s ease;
}

/* Menu thả gợi ý từ khóa Mã khách hàng chuẩn DCZ trong trang Quản trị */
.adm-iv-cust-wrap {
  position: relative;
  width: 100%;
}

.adm-iv-cust-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(360px, 86vw);
  max-height: 230px;
  overflow-y: auto;
  background-color: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 5px;
  z-index: 1200;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.adm-iv-cust-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--charcoal);
  font-family: var(--font-sans);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.adm-iv-cust-item strong {
  font-size: 13px;
  font-weight: 800;
}

.adm-iv-cust-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.adm-iv-cust-item:hover,
.adm-iv-cust-item.is-active {
  background-color: #fff4ee;
  color: var(--orange-logo);
}

.adm-iv-cust-item:hover span,
.adm-iv-cust-item.is-active span {
  color: var(--orange-logo);
}

/* Nút lọc nguồn phản hồi (Tất cả / Từ khách hàng / Từ hệ thống) đang chọn */
.js-adm-fb-filter.is-active {
  background-color: #fff4ee;
  border-color: var(--orange-logo);
  color: var(--orange-logo);
  font-weight: 700;
}

/* Custom Dropdown chuẩn DCZ khi nằm trong ô nhập liệu .form-field */
.form-field .dcz-select-wrap {
  width: 100%;
  display: block;
}

.form-field .dcz-select-trigger {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
}

/* Dòng phản hồi chưa xem trong Trung tâm Phản hồi Admin */
.adm-fb-row-unread {
  background-color: #fffaf7;
}

/* ================================================================
   CÀI ĐẶT THÔNG BÁO TRONG TÀI KHOẢN KHÁCH HÀNG (EMAIL / SMS / ZALO)
   Đồng bộ font Noto Sans, viền var(--warm-border) và chuyển động 0.2s ease
   ================================================================ */
.acc-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.acc-notif-status {
  font-size: 12.5px;
  font-weight: 700;
  color: #15803d;
}

/* Khối từng kênh thông báo (Email / SMS / Zalo) */
.acc-notif-group {
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background-color: var(--white);
  padding: 14px 18px;
  margin-bottom: 14px;
}

/* Hàng thiết lập từng mục thông báo */
.acc-notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.acc-notif-row.is-master {
  padding-top: 2px;
  padding-bottom: 12px;
}

/* Nhóm mục con thụt lề sang phải giống bố cục cài đặt chuẩn */
.acc-notif-sublist {
  padding-left: 24px;
  border-top: 1px solid var(--warm-border);
  transition: opacity 0.2s ease;
}

.acc-notif-sublist.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.acc-notif-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.acc-notif-info strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--charcoal);
}

.acc-notif-row.is-master .acc-notif-info strong {
  font-size: 15.5px;
}

.acc-notif-info span {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Ghi chú: Nút gạt .dcz-switch đã được chuẩn hóa đồng bộ 38x20px ở phần công tắc toàn website */

@media (max-width: 600px) {
  .acc-notif-group {
    padding: 12px 14px;
  }

  .acc-notif-sublist {
    padding-left: 14px;
  }
}

/* ============================================================================
   HIỆU ỨNG NỔI BẬT CHO MENU SHOP ONLINE TRÊN THANH ĐIỀU HƯỚNG
   ============================================================================ */
.nav-link-shop-online {
  position: relative; /* Làm mốc cho hiệu ứng vệt sáng quét ngang */
  overflow: hidden; /* Giữ vệt sáng nằm gọn trong nút */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px !important;
  border-radius: 999px !important; /* Bo tròn dạng viên thuốc nổi bật trên thanh menu tối */
  background: linear-gradient(135deg, var(--orange-logo) 0%, #ea580c 100%) !important;
  color: var(--white) !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(254, 106, 23, 0.38); /* Đổ bóng cam nhẹ thu hút ánh nhìn */
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; /* Hiệu ứng chuyển động chuẩn DCZ */
}

/* Vệt ánh sáng lướt ngang định kỳ tạo điểm nhấn cho Shop Online */
.nav-link-shop-online::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.42) 50%, transparent 80%);
  animation: dczShopNavShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* Icon túi mua hàng và mũi tên trắng tinh tế đồng bộ mẫu nút Mua hàng online */
.shop-nav-bag-icon {
  flex-shrink: 0;
  display: block;
}

.shop-nav-arrow {
  display: inline-block;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease; /* Đẩy nhẹ mũi tên sang phải khi rê chuột */
}

.nav-link-shop-online:hover .shop-nav-arrow {
  transform: translateX(3px);
}

.nav-link-shop-online:hover,
.nav-link-shop-online.is-current {
  transform: translateY(-1px); /* Nâng nhẹ khi rê chuột hoặc đang ở trang Shop Online */
  filter: brightness(1.07);
  box-shadow: 0 4px 16px rgba(254, 106, 23, 0.55);
  color: var(--white) !important;
}

@keyframes dczShopNavShimmer {
  0%, 55% { left: -120%; }
  100% { left: 150%; }
}

@keyframes dczShopDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85); }
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
