/* ===== SHARED DANH MỤC (MOBILE + DESKTOP) — HL & MODULAR dùng chung ===== */
/* Copy file này sang cả 2 project sau mỗi lần sửa.                    */

/* ─── DESKTOP ─── */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .man_hinh_danh_muc,
  .mobile-menu-home {
    padding: 16px;
  }
  .dau_danh_muc,
  .mobile-home-header {
    margin-bottom: 12px;
  }
  .nhan_danh_muc,
  .mobile-home-kicker {
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: uppercase;
  }
  .tieu_de_danh_muc,
  .mobile-home-header h2 {
    color: #025b48;
    font-weight: 900;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 0;
    margin: 0;
  }
  .luoi_danh_muc,
  .mobile-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px;
  }
  .the_danh_muc,
  .mobile-home-card {
    min-height: 78px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px !important;
    border: 1px solid #b3d9d0 !important;
    border-radius: 6px !important;
    background: #e6f4f1 !important;
    color: #025b48 !important;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s ease;
    aspect-ratio: auto !important;
    box-shadow: none !important;
  }
  .the_danh_muc:hover,
  .mobile-home-card:hover {
    transform: translateY(-2px);
    border-color: #025b48 !important;
    box-shadow: 0 2px 10px rgba(2, 91, 72, 0.15) !important;
  }
  .noi_dung_the_danh_muc {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .ten_danh_muc,
  .mobile-home-title {
    color: #025b48 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
  }
  .mo_ta_danh_muc {
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
  }
  .bieu_tuong_danh_muc,
  .mobile-home-icon {
    display: none !important;
  }
}

/* ─── MOBILE ─── */
@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
  .man_hinh_danh_muc,
  .mobile-menu-home {
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line, #e2e8f0);
    box-shadow: var(--shadow-soft, 0 1px 4px rgba(0,0,0,0.08));
  }
  .dau_danh_muc,
  .mobile-home-header {
    padding: 0;
    margin-bottom: 12px;
    border-bottom: 0;
  }
  .nhan_danh_muc,
  .mobile-home-kicker {
    color: var(--muted, #4a5568);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .tieu_de_danh_muc,
  .mobile-home-header h2 {
    font-size: 20px;
    line-height: 1.15;
    margin-top: 2px;
    color: var(--brand, #025b48);
    font-weight: 900;
  }
  .luoi_danh_muc,
  .mobile-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    padding: 0;
  }
  .the_danh_muc,
  .mobile-home-card {
    aspect-ratio: auto !important;
    width: 100% !important;
    min-height: 52px !important;
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 6px 8px !important;
    border: 1px solid #b9dfd3 !important;
    border-radius: 6px !important;
    background: #e6f4f1 !important;
    color: #025b48 !important;
    box-shadow: none !important;
    text-align: center;
    transition: none !important;
    font-family: inherit;
  }
  .the_danh_muc:hover,
  .mobile-home-card:hover {
    transform: none !important;
    border-color: #b9dfd3 !important;
    box-shadow: none !important;
  }
  .the_danh_muc.active,
  .mobile-home-card.active {
    background: var(--brand, #025b48) !important;
    color: #ffffff !important;
    border-color: var(--brand, #025b48) !important;
  }
  .bieu_tuong_danh_muc,
  .mobile-home-icon {
    display: none !important;
  }
  .ten_danh_muc,
  .mobile-home-title {
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    color: inherit !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    width: 100% !important;
  }
  .mo_ta_danh_muc {
    display: none !important;
  }
  .noi_dung_the_danh_muc {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
