﻿/* =========================================================
   product-catalog.css  â€“  Trang Danh Má»¥c HÃ ng HoÃ¡
   DÃ¹ng chung Bootstrap 5 + style.css tá»« layout chÃ­nh
   ========================================================= */

/* ---------- Layout body ---------- */
.product-layout-body {
  background: #f5f6fa;
  font-family: 'Roboto', sans-serif;
  color: #222;
}

/* ---------- Topbar marquee ---------- */
.product-topbar {
  background: linear-gradient(90deg, #0766f7 0%, #0550d0 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
}
.product-topbar-inner {
  overflow: hidden;
  width: 100%;
}
.product-topbar-marquee span {
  display: inline-block;
  animation: pcat-scroll 34s linear infinite;
  padding-left: 100%;
}
@keyframes pcat-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- Header ---------- */
.product-header {
  background: #fff;
  border-bottom: 2px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.product-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Brand / Logo */
.product-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.product-brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0766f7, #0550d0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(7,102,247,.35);
}
.product-brand-plus {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-top: -2px;
}
.product-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.product-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 0.5px;
}
.product-brand-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Search bar */
.product-header-search {
  flex: 1;
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}
.pcat-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
}
.pcat-header-search-input {
  width: 100%;
  padding: 9px 38px 9px 38px;
  border: 1.5px solid #e5e7eb;
  border-radius: 24px;
  font-size: 14px;
  color: #222;
  background: #f9fafb;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.pcat-header-search-input:focus {
  border-color: #0766f7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7,102,247,.1);
}
.pcat-header-search-input::placeholder { color: #b0b7c3; }
.pcat-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
  line-height: 1;
}
.pcat-search-clear:hover { color: #0766f7; }

/* Actions row */
.product-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── CTA button (Gói xét nghiệm) ── */
.pcat-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0766f7, #0550d0);
  color: #fff !important;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: box-shadow .15s, transform .15s, opacity .15s;
  box-shadow: 0 2px 10px rgba(7,102,247,.3);
}
.pcat-cta-btn:hover {
  opacity: .9;
  box-shadow: 0 4px 18px rgba(7,102,247,.4);
  transform: translateY(-1px);
}
.pcat-cta-btn i { font-size: 14px; }

/* ── Hotline two-line action ── */
.pcat-hdr-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a2e;
  flex-shrink: 0;
  transition: background .15s;
}
.pcat-hdr-action:hover { background: #f0f6ff; }
.pcat-hdr-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.pcat-hdr-icon--phone {
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid #a7f3d0;
}
.pcat-hdr-action:hover .pcat-hdr-icon--phone {
  background: #059669;
  color: #fff;
  border-color: #059669;
}
.pcat-hdr-text { display: grid; line-height: 1.25; }
.pcat-hdr-label { font-size: 10px; color: #9ca3af; font-weight: 500; white-space: nowrap; }
.pcat-hdr-value { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ── Cart / Orders icon buttons ── */
.pcat-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f0f6ff;
  border: 1.5px solid #dce9fe;
  border-radius: 10px;
  color: #0766f7;
  font-size: 17px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, transform .15s, color .15s;
}
.pcat-icon-btn:hover {
  background: #0766f7;
  border-color: #0766f7;
  color: #fff;
  transform: translateY(-1px);
}

/* Badge (cart / orders count) */
.pcat-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  background: #e53e3e;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
  padding: 0 2px;
}
.pcat-icon-btn:hover .pcat-cart-badge { background: #fff; color: #e53e3e; }

/* Dropdown divider */
.pcat-dropdown-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 4px 0;
}

/* Guest user btn variant */
.pcat-user-btn--guest { background: #f8f9fa; border-color: #e5e7eb; }
.pcat-user-btn--guest .pcat-user-btn-icon { background: #ebebeb; }
.pcat-user-btn--guest .pcat-user-btn-icon i { color: #9ca3af; }
.pcat-user-btn--guest .pcat-user-btn-name { color: #6b7280; }

/* Header vertical divider */
.pcat-header-divider {
  width: 1px;
  height: 30px;
  background: #e5e7eb;
  flex-shrink: 0;
  margin: 0 2px;
  align-self: center;
}

/* User btn icon circle */
.pcat-user-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(7, 102, 247, 0.1);
  flex-shrink: 0;
}
.pcat-user-btn-icon i { font-size: 15px !important; color: #0766f7 !important; }

/* Two-line label + name */
.pcat-user-btn-text {
  flex-direction: column;
  line-height: 1.2;
  gap: 1px;
}
.pcat-user-btn-label {
  font-size: 10.5px;
  font-weight: 500;
  color: #9ca3af;
  text-align: left;
}
.pcat-user-btn-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

/* Caret arrow */
.pcat-user-btn-caret {
  font-size: 10px !important;
  color: #9ca3af !important;
  margin-left: -2px;
  transition: transform .2s;
}
.pcat-user-btn.open .pcat-user-btn-caret { transform: rotate(180deg); }

/* Login button */
.pcat-login-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: #0766f7;
  color: #fff;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.pcat-login-btn:hover { background: #0550d0; color: #fff; transform: translateY(-1px); }

/* User dropdown — click-toggle via JS */
.pcat-user-menu {
  position: relative;
}
.pcat-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  user-select: none;
}
.pcat-user-btn:hover { background: #e8ecf0; border-color: #d1d5db; }
.pcat-user-btn.open { background: #e8ecf0; border-color: #0766f7; }
.pcat-user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 8px;  /* bridge gap — no invisible gap for mouse */
  background: transparent;
  z-index: 400;
}
.pcat-user-dropdown-inner {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  min-width: 190px;
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  overflow: hidden;
}
.pcat-user-dropdown.open { display: block; }
.pcat-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  color: #374151;
  text-decoration: none;
  transition: background .12s, color .12s;
  border-left: 3px solid transparent;
}
.pcat-user-dropdown a:hover {
  background: #f0f6ff;
  color: #0766f7;
  border-left-color: #0766f7;
}
.pcat-user-dropdown a i { width: 16px; text-align: center; }

/* ── Product header responsive ── */
@media (max-width: 575.98px) {
  .product-header-inner { padding: 8px 12px; gap: 10px; }
  .product-brand-sub { display: none; }
  .product-header-search { max-width: none; }
}
@media (max-width: 767.98px) {
  .product-header-inner { gap: 8px; }
}

/* ---------- Main ---------- */
.product-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 12px 32px;
}



/* =========================================================
   Catalog layout: sidebar + content
   ========================================================= */
.pcat-container {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

/* ---------- Sidebar ---------- */
/* ── Sidebar container ── */
.pcat-sidebar {
  width: 230px;
  min-width: 210px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.pcat-sidebar::-webkit-scrollbar { width: 4px; }
.pcat-sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

/* ── Sidebar header ── */
.pcat-sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  letter-spacing: .2px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.pcat-sidebar-header i { color: #0766f7; font-size: 14px; }
.pcat-sidebar-header span { flex: 1; }
.pcat-sidebar-reset {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.pcat-sidebar-reset:hover { background: #fef2f2; color: #e53e3e; }

/* ── Section ── */
.pcat-sidebar-section {
  padding: 14px 14px 10px;
  border-bottom: 1px solid #f3f4f6;
}
.pcat-sidebar-section:last-child { border-bottom: none; padding-bottom: 14px; }

/* ── Section toggle header ── */
.pcat-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 10px;
  cursor: pointer;
  gap: 4px;
}
.pcat-section-toggle-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.pcat-section-toggle-left i { color: #0766f7; font-size: 12px; }
.pcat-section-toggle-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pcat-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  background: #0766f7;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 5px;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s;
}
.pcat-section-count.has-count { opacity: 1; }
.pcat-toggle-caret {
  font-size: 10px;
  color: #9ca3af;
  transition: transform .25s;
}
.pcat-section-toggle[aria-expanded="false"] .pcat-toggle-caret {
  transform: rotate(-90deg);
}

/* ── Clear button ── */
.pcat-clear-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  font-size: 10.5px;
  color: #6b7280;
  cursor: pointer;
  padding: 2px 7px;
  font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
  line-height: 1.5;
}
.pcat-clear-btn:hover { border-color: #0766f7; color: #0766f7; background: #eff6ff; }

/* ── Filter cards (Khuyến mãi / Cận date) ── */
.pcat-filter-card {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  position: relative;
}
.pcat-filter-card:last-child { margin-bottom: 0; }
.pcat-filter-card:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}
.pcat-filter-card:has(.pcat-filter-check:checked),
.pcat-filter-card.active {
  border-color: #0766f7;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(7,102,247,.08);
}
.pcat-filter-card .pcat-filter-check { display: none; }

.pcat-filter-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: background .18s;
}
.pcat-filter-khuyen-mai .pcat-filter-icon { background: #fef3c7; color: #d97706; }
.pcat-filter-can-date   .pcat-filter-icon { background: #fff7ed; color: #ea580c; }
.pcat-filter-card:has(.pcat-filter-check:checked) .pcat-filter-khuyen-mai,
.pcat-filter-card.active .pcat-filter-khuyen-mai { background: #fde68a; }

.pcat-filter-card-body { flex: 1; min-width: 0; }
.pcat-filter-card-title { font-size: 12.5px; font-weight: 700; color: #111827; line-height: 1.3; }
.pcat-filter-card-sub   { font-size: 11px; color: #9ca3af; margin-top: 1px; }

/* Check mark on right of card */
.pcat-filter-check-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  background: #fff;
  flex-shrink: 0;
  transition: border-color .18s, background .18s, color .18s;
}
.pcat-filter-card:has(.pcat-filter-check:checked) .pcat-filter-check-mark,
.pcat-filter-card.active .pcat-filter-check-mark {
  background: #0766f7;
  border-color: #0766f7;
  color: #fff;
}

/* ── Filter search inside list ── */
.pcat-filter-search-wrap {
  position: relative;
  margin-bottom: 8px;
}
.pcat-filter-search-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 11px;
  pointer-events: none;
}
.pcat-filter-search {
  width: 100%;
  padding: 6px 10px 6px 28px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  background: #f9fafb;
  outline: none;
  transition: border-color .15s;
}
.pcat-filter-search:focus { border-color: #0766f7; background: #fff; }
.pcat-filter-search::placeholder { color: #c4c9d4; }

/* ── Custom checkbox items ── */
.pcat-filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
  padding-right: 2px;
}
.pcat-filter-list::-webkit-scrollbar { width: 3px; }
.pcat-filter-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

.pcat-checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 8px;
  transition: background .12s;
}
.pcat-checkbox-label:hover { background: #f3f7ff; }
.pcat-checkbox-label.hidden { display: none; }

.pcat-checkbox-label input[type=checkbox] { display: none; }

/* Custom checkbox box */
.pcat-custom-check { position: relative; flex-shrink: 0; }
.pcat-check-box {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: transparent;
  transition: border-color .15s, background .15s, color .15s;
}
.pcat-checkbox-label:has(input:checked) .pcat-check-box {
  background: #0766f7;
  border-color: #0766f7;
  color: #fff;
}
.pcat-cb-text {
  flex: 1;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.pcat-checkbox-label:has(input:checked) .pcat-cb-text {
  color: #0766f7;
  font-weight: 600;
}
.pcat-search-box .input-group { border: 1.5px solid #e5e7eb; border-radius: 50rem !important; }

/* ---------- Topbar search bar ---------- */
.pcat-topbar-search {
  position: relative;
}
.pcat-topbar-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
}
.pcat-topbar-search-input {
  width: 100%;
  padding: 9px 36px 9px 38px;
  border: 1.5px solid #e5e7eb;
  border-radius: 24px;
  font-size: 14px;
  color: #222;
  background: #f9fafb;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.pcat-topbar-search-input:focus {
  border-color: #0766f7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7,102,247,.1);
}
.pcat-topbar-search-input::placeholder { color: #b0b7c3; }
.pcat-topbar-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
  line-height: 1;
}
.pcat-topbar-search-clear:hover { color: #dc3545; }

/* ---------- Pagination ---------- */
#pcatPagination .pagination .page-link {
  border-radius: 8px !important;
  margin: 0 2px;
  color: #374151;
  border-color: #e5e7eb;
  font-size: 13px;
}
#pcatPagination .pagination .page-item.active .page-link {
  background: #0766f7;
  border-color: #0766f7;
  color: #fff;
}
#pcatPagination .pagination .page-item.disabled .page-link { color: #c9cdd2; }

/* ---------- Content area ---------- */
.pcat-content { flex: 1; min-width: 0; }

.pcat-content-topbar {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Row 1 */
.pcat-topbar-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pcat-topbar-row1-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pcat-content-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pcat-content-title i { color: #0766f7; font-size: 14px; }
.pcat-count-badge {
  background: #eff6ff;
  color: #0766f7;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
  border: 1px solid #dbeafe;
  white-space: nowrap;
}

/* Filter toggle btn (mobile) */
.pcat-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 22px;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.pcat-filter-toggle-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #0766f7;
}
.pcat-filter-toggle-btn i { font-size: 13px; }

/* Row 2 */
.pcat-topbar-row2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pcat-topbar-row2 .pcat-topbar-search {
  flex: 1;
  min-width: 180px;
}

/* Sort tabs (pill buttons) */
.pcat-sort-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.pcat-sort-tabs::-webkit-scrollbar { display: none; }
.pcat-sort-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  border-radius: 22px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafc;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.pcat-sort-tab i { font-size: 11px; }
.pcat-sort-tab:hover {
  border-color: #93c5fd;
  color: #0766f7;
  background: #f0f6ff;
}
.pcat-sort-tab.active {
  background: #0766f7;
  border-color: #0766f7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(7,102,247,.25);
}

@media (max-width: 640px) {
  .pcat-topbar-row2 { flex-direction: column; align-items: stretch; }
  .pcat-sort-tabs { width: 100%; }
  .pcat-sort-tab { flex: 1; justify-content: center; }
}

/* ---------- Product grid wrapper ---------- */
.pcat-grid-wrap {
  position: relative;
}

/* ---------- Product grid ---------- */
.pcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

/* ---------- Product card (pn-prod-card style) ---------- */
.pcat-card {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border: 1.5px solid #e5e7eb;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s, border-color .15s;
  color: inherit;
  text-decoration: none;
}
.pcat-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.11);
  transform: translateY(-2px);
  border-color: #0766f7;
}
.pcat-card:hover .pcat-add-btn { transform: none; }
.pcat-card.hidden { display: none !important; }

/* pn-prod-card inner classes (used in product catalog) */
.pn-prod-card-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}
.pn-prod-card-img-wrap {
  padding: 14px 18px 8px;
  background: #f9fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.pn-prod-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.pn-prod-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #0766f7;
  opacity: .4;
}
.pn-prod-card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.pn-prod-card-brand {
  font-size: 10.5px;
  font-weight: 600;
  color: #0766f7;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pn-prod-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  flex: 1;
}
.pn-prod-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pn-prod-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #e53e3e;
}
.pn-prod-card-oldprice {
  font-size: 12px;
  color: #6b7280;
  text-decoration: line-through;
}

/* Badges */
.pcat-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.pcat-badge {
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
  display: inline-block;
  letter-spacing: .3px;
}
.pcat-badge-promo  { background: #1d4ed8; color: #fff; }
.pcat-badge-sale   { background: #0766f7; color: #fff; }
.pcat-badge-candate{ background: #f59e0b; color: #fff; }
.pcat-badge-flash  { background: linear-gradient(90deg,#ef4444,#f97316); color: #fff; font-weight: 800; }

/* Card header */
.pcat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  margin-top: 2px;
  min-height: 20px;
}
.pcat-card-brand {
  font-size: 10.5px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.pcat-card-model {
  font-size: 10px;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Image */
.pcat-card-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8f9fa, #eef0f5);
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 100px;
}
.pcat-card-img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}
.pcat-card-img--logo {
  max-width: 70%;
  max-height: 70%;
  opacity: 0.55;
  filter: grayscale(30%);
}
.pcat-card-img-placeholder {
  font-size: 36px;
  color: #d1d5db;
}

/* Name */
.pcat-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* HSD */
.pcat-card-hsd {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 8px;
}

/* Footer: price + add btn inline */
.pcat-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.pcat-card-price-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.pcat-card-old-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pcat-card-original-price {
  font-size: 11px;
  color: #9ca3af;
  text-decoration: line-through;
  line-height: 1.2;
}
.pcat-card-disc-badge {
  display: inline-block;
  background: #fee2e2;
  color: #dc3545;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.5;
  letter-spacing: .2px;
}
.pcat-card-price {
  font-size: 15px;
  font-weight: 800;
  color: #dc3545;
  line-height: 1.2;
}
.pcat-card-price--contact {
  font-size: 12px;
  font-weight: 700;
  color: #0766f7;
}

/* Add button — full-width pn-prod-card-btn style */
.pcat-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  background: #e8f0fe;
  color: #0766f7;
  border: 1.5px solid #c7d9fd;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  margin-top: 8px;
  box-shadow: none;
}
.pcat-add-btn:hover {
  background: #0766f7 !important;
  color: #fff !important;
  border-color: #0766f7 !important;
  transform: none !important;
}

/* ---------- No result ---------- */
.pcat-no-result {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 14px;
}

/* Add button pulse */
@keyframes pcat-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.pcat-add-btn-pulse { animation: pcat-pulse .35s ease; }

/* ---------- Product detail modal ---------- */
.pcat-modal-content {
  border-radius: 20px;
  border: none;
  overflow-y: auto;
  max-height: 88vh;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.pcat-modal-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,.07);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 15px;
  transition: background .15s;
}
.pcat-modal-close-btn:hover { background: rgba(0,0,0,.15); }
.pcat-modal-body-wrap {
  display: flex;
}

/* Image section */
.pcat-modal-img-section {
  width: 38%;
  min-width: 180px;
  max-width: 280px;
  background: #f8f9fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  position: relative;
  flex-shrink: 0;
  border-right: 1px solid #f0f0f3;
}
.pcat-modal-img-frame {
  width: 100%;
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}
.pcat-modal-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .2s ease;
}
.pcat-modal-img-frame:hover img {
  transform: scale(1.04);
}
.pcat-modal-img-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}
.pcat-modal-img-placeholder-lg {
  font-size: 64px;
  color: #d1d5db;
}

/* Info section */
.pcat-modal-info-section {
  flex: 1;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pcat-modal-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.pcat-modal-brand {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.pcat-modal-code {
  font-size: 11px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 600;
}
.pcat-modal-name {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 6px;
}
.pcat-modal-hsd {
  font-size: 12.5px;
  color: #6b7280;
  margin-bottom: 0;
}
.pcat-modal-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 14px 0;
}
.pcat-modal-price-section { margin-bottom: 4px; }
.pcat-modal-price {
  font-size: 28px;
  font-weight: 800;
  color: #0766f7;
  line-height: 1;
  margin-bottom: 5px;
}
.pcat-modal-old-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pcat-modal-discount-badge {
  background: #eef4ff;
  color: #0766f7;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 7px;
}

/* Qty stepper */
.pcat-modal-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.pcat-modal-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}
.pcat-modal-qty-ctrl {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.pcat-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f9fafb;
  color: #374151;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background .12s;
  flex-shrink: 0;
}
.pcat-qty-btn:hover { background: #e5e7eb; }
.pcat-qty-input {
  width: 48px;
  border: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  background: #fff;
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}
.pcat-qty-input::-webkit-outer-spin-button,
.pcat-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Description section: full-width below two columns */
.pcat-modal-desc-section {
  border-top: 1.5px solid #f0f0f3;
  padding: 20px 24px 24px;
}
.pcat-modal-desc-heading {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pcat-modal-desc-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.pcat-modal-desc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 0 8px;
  color: #9ca3af;
  font-size: 13px;
  gap: 6px;
}
/* Loading skeleton */
.pcat-modal-desc-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 8px;
}
.pcat-desc-skeleton {
  height: 14px;
  width: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: pcat-skeleton-shimmer 1.2s infinite;
  border-radius: 6px;
}
@keyframes pcat-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Mobile */
@media (max-width: 575px) {
  .pcat-modal-content { max-height: 92vh; }
  .pcat-modal-body-wrap { flex-direction: column; }
  .pcat-modal-img-section {
    width: 100%;
    max-width: none;
    border-right: none;
    border-bottom: 1px solid #f0f0f3;
    padding: 20px;
  }
  .pcat-modal-img-frame { max-width: 180px; margin: 0 auto; }
  .pcat-modal-info-section { padding: 16px 16px 12px; }
  .pcat-modal-desc-section { padding: 16px 16px 20px; }
}

/* ---------- Mobile sidebar ---------- */
@media (max-width: 991px) {
  .pcat-sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    z-index: 1050;
    transition: left .25s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
  }
  .pcat-sidebar.open { left: 0; }
  .pcat-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1040;
  }
  .pcat-sidebar-overlay.open { display: block; }
  .pcat-container { flex-direction: column; }
}

@media (max-width: 575px) {
  .pcat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Cart page  â€“  /gio-hang
   ========================================================= */
.cart-page { max-width: 1100px; margin: 0 auto; }

.cart-header-bar { margin-bottom: 8px; }
.cart-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-empty { color: #9ca3af; }

.cart-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}

/* Table */
.cart-table { border-collapse: separate; border-spacing: 0; }
.cart-table-head th {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: .4px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}
.cart-row td { vertical-align: middle; padding: 12px 8px; border-bottom: 1px solid #f9fafb; }
.cart-row:last-child td { border-bottom: none; }

/* ---------- Flexbox row-based cart table ---------- */
.cart-tbl-head,
.cart-tbl-row {
  display: grid;
  grid-template-columns: 68px 1fr 110px 120px 110px 40px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}
.cart-tbl-head {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: #f9fafb;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid #f0f0f0;
  padding-top: 12px;
  padding-bottom: 12px;
}
.cart-tbl-row {
  border-bottom: 1px solid #f5f5f7;
  transition: background .12s;
}
.cart-tbl-row:last-child { border-bottom: none; border-radius: 0 0 14px 14px; }
.cart-tbl-row:hover { background: #fafbff; }

/* Item image */
.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: #f9fafb;
  display: block;
}
.cart-item-img-ph {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #d1d5db;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 3px;
}
.cart-item-meta { font-size: 11px; color: #9ca3af; }
.cart-item-brand { font-weight: 600; color: #374151; }
.cart-item-price    { font-size: 14px; color: #374151; white-space: nowrap; }
.cart-item-subtotal { font-size: 14px; font-weight: 700; color: #0766f7; white-space: nowrap; }

/* Qty controls */
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: background .12s, border-color .12s;
  flex-shrink: 0;
}
.cart-qty-btn:hover { background: #f3f4f6; border-color: #d1d5db; }
.cart-qty-val { min-width: 28px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-qty-input {
  width: 48px;
  height: 28px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  padding: 0 4px;
  outline: none;
  transition: border-color .12s;
  -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-input:focus { border-color: #dc3545; }

/* Remove button */
.cart-remove-btn {
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 6px;
  transition: color .12s, background .12s;
}
.cart-remove-btn:hover { color: #dc3545; background: #fff0f0; }

/* Subtotal highlight */
.cart-item-subtotal { font-size: 14px; font-weight: 700; color: #dc3545; white-space: nowrap; }

/* Summary */
.cart-summary { }
.cart-summary-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}
.cart-total-price {
  font-size: 20px;
  font-weight: 700;
  color: #0766f7;
}

@media (max-width: 767px) {
  .cart-table-head th:nth-child(3),
  .cart-row td:nth-child(3) { display: none; }

  /* Responsive flexbox cart table */
  .cart-tbl-head,
  .cart-tbl-row {
    grid-template-columns: 54px 1fr 90px 36px;
  }
  .cart-tbl-col-price,
  .cart-tbl-col-qty { display: none; }
  /* Show qty inline under name on mobile */
  .cart-tbl-row { row-gap: 0; }
}


/* =========================================================
   Order Management page  —  /quan-ly-don-hang
   ========================================================= */
.odm-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 4px 40px;
}

/* Page header */
.odm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.odm-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}
.odm-btn-back {
  font-size: 13px;
  color: #4b5563;
  border-color: #d1d5db;
  border-radius: 20px;
  padding: 5px 14px;
}
.odm-btn-back:hover { background: #f3f4f6; }

/* Stats row */
.odm-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.odm-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.odm-stat-card:hover { border-color: #0766f7; box-shadow: 0 2px 8px rgba(7,102,247,.08); }
.odm-stat-card.active { border-color: #0766f7; background: #f0f6ff; }
.odm-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.odm-stat-all      .odm-stat-icon { background: #f3f4f6; color: #374151; }
.odm-stat-pending  .odm-stat-icon { background: #fef9c3; color: #854d0e; }
.odm-stat-processing .odm-stat-icon { background: #dbeafe; color: #1d4ed8; }
.odm-stat-done     .odm-stat-icon { background: #dcfce7; color: #166534; }
.odm-stat-cancelled .odm-stat-icon { background: #fee2e2; color: #991b1b; }
.odm-stat-label { font-size: 11px; color: #6b7280; white-space: nowrap; }
.odm-stat-value { font-size: 20px; font-weight: 700; color: #111827; line-height: 1.2; }

/* Toolbar */
.odm-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.odm-toolbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 14px;
  color: #9ca3af;
}
.odm-toolbar-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: #111827;
  background: transparent;
}
.odm-sort-select {
  padding: 8px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* Empty state */
.odm-empty {
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  color: #9ca3af;
}
.odm-empty-text { font-size: 15px; }

/* Order card list */
.odm-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.odm-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.odm-card:hover {
  border-color: #0766f7;
  box-shadow: 0 4px 16px rgba(7,102,247,.10);
  transform: translateY(-1px);
}
.odm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  border-bottom: 1px solid #f3f4f6;
}
.odm-card-id {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: .3px;
}
.odm-card-body { padding: 10px 16px; }
.odm-card-preview {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.odm-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #9ca3af;
}
.odm-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 12px;
  border-top: 1px solid #f3f4f6;
}
.odm-card-total {
  font-size: 16px;
  font-weight: 700;
  color: #0766f7;
}
.odm-btn-detail {
  font-size: 12.5px;
  font-weight: 600;
  color: #0766f7;
  background: #f0f6ff;
  border: 1.5px solid #dce9fe;
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background .12s;
}
.odm-btn-detail:hover { background: #dce9fe; }

/* Status badges */
.odm-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.odm-badge-pending    { background: #fef9c3; color: #854d0e; }
.odm-badge-processing { background: #dbeafe; color: #1d4ed8; }
.odm-badge-done       { background: #dcfce7; color: #166534; }
.odm-badge-cancelled  { background: #fee2e2; color: #991b1b; }

/* Order detail modal */
.odm-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.odm-modal-overlay.active { display: flex; }
.odm-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  overflow: hidden;
  animation: odmSlideUp .2s ease;
}
@keyframes odmSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.odm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #f3f4f6;
}
.odm-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.odm-modal-order-id {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.odm-modal-close {
  width: 30px;
  height: 30px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  color: #6b7280;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s;
}
.odm-modal-close:hover { background: #e5e7eb; color: #111; }
.odm-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
}
.odm-modal-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.odm-info-label { font-weight: 600; }

/* ── Info grid (modal chi tiết) ── */
.odm-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
}
.odm-info-item {
  display: grid;
  grid-template-columns: 28px 90px 1fr;
  align-items: center;
  gap: 0 6px;
  padding: 9px 12px;
  background: #fff;
  font-size: 13px;
  color: #374151;
}
.odm-info-item.odm-info-full {
  grid-column: 1 / -1;
}
.odm-info-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border-radius: 6px;
  color: #2563eb;
  font-size: 11px;
  flex-shrink: 0;
}
.odm-info-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 11.5px;
  white-space: nowrap;
}
.odm-info-value {
  color: #111827;
  font-size: 13px;
  word-break: break-word;
}
.odm-pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.odm-pay-paid {
  background: #dcfce7;
  color: #16a34a;
}
.odm-pay-unpaid {
  background: #fef9c3;
  color: #b45309;
}
.odm-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.odm-items-table th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1.5px solid #e5e7eb;
  font-size: 12px;
}
.odm-items-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
}
.odm-items-table tfoot td {
  border-bottom: none;
  border-top: 1.5px solid #e5e7eb;
}
.odm-modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid #f3f4f6;
}

/* Responsive */
@media (max-width: 768px) {
  .odm-stats-row { grid-template-columns: repeat(3, 1fr); }
  .odm-stat-label { display: none; }
  .odm-stat-value { font-size: 17px; }
}
@media (max-width: 480px) {
  .odm-stats-row { grid-template-columns: repeat(3, 1fr); }
  .odm-toolbar { flex-direction: column; align-items: stretch; }
}
