/* ==========================================================================
   SimSale.Mk - Design System Theme
   Primary Brand Color: #FE2C55 (Mã màu chính - Đỏ nhạt phong cách TikTok Shop)
   ========================================================================== */

:root {
  /* Mã màu chính thương hiệu (TikTok Red / Coral Red) */
  --primary-color: #FE2C55;
  --primary-color-hover: #E02447;
  --primary-color-active: #C81E3D;
  --primary-color-light: #FFF0F2;
  --primary-color-tint: rgba(254, 44, 85, 0.08);
  --primary-color-rgb: 254, 44, 85;

  /* Bootstrap Danger override */
  --bs-danger: #FE2C55;
  --bs-danger-rgb: 254, 44, 85;

  /* Biến tương thích ngược (Backward Compatibility) */
  --cps-red: var(--primary-color);
  --cps-red-dark: var(--primary-color-hover);
  --cps-red-light: var(--primary-color-light);
  --cps-red-gradient: linear-gradient(135deg, #FE2C55 0%, #FF5A79 100%);
  --cps-fire-gradient: linear-gradient(90deg, #FE2C55 0%, #FF6B4A 100%);
  --cps-gold: #ffbe00;
  --cps-gold-dark: #d99b00;
  --cps-text: #212529;
  --cps-text-muted: #717171;
  --cps-bg: #f4f6f8;
  --cps-card-bg: #ffffff;
  --cps-border: #e9ecef;
  --cps-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --cps-shadow-hover: 0 6px 20px rgba(254, 44, 85, 0.18);
  --cps-radius: 10px;
  --bs-primary: #3b82f6;
  --bs-primary-rgb: 59, 130, 246;
}

/* Custom Blue (#3b82f6) thay cho mặc định #0d6efd */
.btn-primary {
  --bs-btn-bg: #3b82f6;
  --bs-btn-border-color: #3b82f6;
  --bs-btn-hover-bg: #2563eb;
  --bs-btn-hover-border-color: #1d4ed8;
  --bs-btn-active-bg: #1d4ed8;
  --bs-btn-active-border-color: #1e40af;
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #2563eb !important;
  border-color: #1d4ed8 !important;
}

.bg-primary {
  background-color: #3b82f6 !important;
}

.border-primary {
  border-color: #3b82f6 !important;
}

.text-primary {
  color: #3b82f6 !important;
}

/* TikTok Red Primary Color Utilities & Bootstrap Overrides */
.text-primary-color,
.text-danger {
  color: var(--primary-color) !important;
}

.bg-primary-color,
.bg-danger {
  background-color: var(--primary-color) !important;
}

.border-primary-color,
.border-danger {
  border-color: var(--primary-color) !important;
}

.btn-danger {
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-hover-bg: var(--primary-color-hover);
  --bs-btn-hover-border-color: var(--primary-color-hover);
  --bs-btn-active-bg: var(--primary-color-active);
  --bs-btn-active-border-color: var(--primary-color-active);
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background-color: var(--primary-color-hover) !important;
  border-color: var(--primary-color-hover) !important;
  color: #fff !important;
}

.btn-outline-danger {
  --bs-btn-color: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-hover-bg: var(--primary-color);
  --bs-btn-hover-border-color: var(--primary-color);
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-danger:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

.badge.bg-danger {
  background-color: var(--primary-color) !important;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--cps-bg);
  color: var(--cps-text);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  text-decoration-color: currentColor;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--cps-red);
}

/* ---------------- Top announcement bar ---------------- */
.top-header-banner {
  background: #f1f2f4;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid #e1e4e8;
}

.top-header-banner a {
  color: #4a4a4a;
}

.top-header-banner a:hover {
  color: var(--cps-red);
}

/* ---------------- Main Header (CellphoneS Red) ---------------- */
.cps-header {
  background-color: var(--cps-red);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cps-header a {
  color: #fff;
}

.cps-header .dropdown-menu a,
.cps-header .dropdown-menu .dropdown-item {
  color: #1f2937 !important;
  font-size: 0.875rem;
}

.cps-header .dropdown-menu .dropdown-item:hover,
.cps-header .dropdown-menu .dropdown-item:focus {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
}

.cps-header .dropdown-menu .dropdown-item.text-danger {
  color: var(--primary-color) !important;
}

.cps-header .dropdown-menu .dropdown-item.text-danger:hover {
  background-color: #fff1f2 !important;
  color: var(--primary-color-hover) !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  color: var(--cps-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title .main-text {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-title .sub-text {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Header Buttons / Pills (Chuẩn font đồng bộ dạng như ảnh) */
.btn-cps-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  height: 38px;
  line-height: 1;
  text-decoration: none !important;
}

.btn-cps-pill:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.btn-cps-pill i {
  font-size: 18px;
  line-height: 1;
}

/* Header Search */
.header-search {
  flex-grow: 1;
  max-width: 480px;
  position: relative;
}

.header-search .input-group {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header-search input {
  border: none;
  font-size: 13px;
  padding: 10px 14px;
}

.header-search input:focus {
  outline: none;
  box-shadow: none;
}

.header-search button {
  background: transparent;
  border: none;
  color: #717171;
  padding: 0 14px;
  font-size: 16px;
}

.header-search button:hover {
  color: var(--cps-red);
}

/* Search Dropdown Results */
.search-results-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 1050;
  display: none;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--cps-border);
}

.search-results-dropdown.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--cps-text);
  font-size: 13px;
}

.search-result-item:hover {
  background-color: #f8f9fa;
  color: var(--cps-red);
}

/* Header Cart & User Avatar Badge (Chuẩn theo ảnh mẫu) */
.cart-icon-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-box i {
  font-size: 19px;
  line-height: 1;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  background: #ffffff;
  color: var(--primary-color);
  font-weight: 800;
  font-size: 10.5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1.5px solid #ffffff;
  transition: transform 0.2s ease;
}

.btn-cps-pill:hover .cart-badge {
  transform: scale(1.1);
}

.avatar-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-badge-wrap i {
  font-size: 20px;
  line-height: 1;
}

.avatar-mini-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  background: #f59e0b;
  /* Màu cam vàng nổi bật chuẩn ảnh */
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Sub-nav quick category bar */
.sub-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 0;
  position: relative;
}

.sub-nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sub-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 34px 2px 34px;
  cursor: grab;
  user-select: none;
  width: 100%;
}

.sub-nav-inner:active {
  cursor: grabbing;
}

.sub-nav-inner::-webkit-scrollbar {
  display: none;
}

.sub-nav-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.sub-nav-scroll-btn:hover {
  background: var(--cps-red);
  color: #fff;
  border-color: var(--cps-red);
  box-shadow: 0 4px 10px rgba(254, 44, 85, 0.25);
}

.sub-nav-scroll-prev {
  left: 0;
}

.sub-nav-scroll-next {
  right: 0;
}

.sub-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none !important;
}

.sub-nav-chip:hover {
  background: #e5e7eb;
  color: #111827;
}

.sub-nav-chip.active {
  background: #fff0f1 !important;
  color: var(--cps-red) !important;
  border-color: var(--cps-red) !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(254, 44, 85, 0.12);
}

/* ---------------- Home Hero Section ---------------- */
.hero-wrapper {
  margin-top: 15px;
}

.sidebar-mega-menu {
  background: #fff;
  border-radius: var(--cps-radius);
  box-shadow: var(--cps-shadow);
  padding: 8px 0;
  height: 100%;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.menu-item:hover {
  background: #fff5f5;
  color: var(--cps-red);
  padding-left: 18px;
}

.menu-item .menu-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item .menu-left i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #666;
}

.menu-item:hover .menu-left i {
  color: var(--cps-red);
}

.menu-item .bi-chevron-right {
  font-size: 11px;
  color: #aaa;
}

/* Carousel Banner - Cố định chiều cao tuyệt đối tránh giật/nhảy nhấp nháy */
.hero-carousel {
  border-radius: var(--cps-radius);
  overflow: hidden;
  box-shadow: var(--cps-shadow);
  height: 100%;
}

.hero-carousel .carousel-inner {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.hero-carousel .carousel-item {
  height: 100%;
  width: 100%;
}

.hero-carousel .carousel-item>a,
.hero-carousel .carousel-slide-content,
.hero-carousel .carousel-slide-img {
  height: 100%;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .hero-carousel {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
  }

  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-carousel .carousel-item>a,
  .hero-carousel .carousel-slide-content,
  .hero-carousel .carousel-slide-img {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
    object-fit: cover !important;
  }
}

@media (max-width: 991.98px) {
  .hero-carousel {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
  }

  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-carousel .carousel-item>a,
  .hero-carousel .carousel-slide-content,
  .hero-carousel .carousel-slide-img {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
  }

  .hero-carousel .carousel-slide-content {
    padding: 24px !important;
  }

  .hero-carousel .carousel-slide-content h2 {
    font-size: 1.35rem !important;
    margin-bottom: 0.35rem !important;
  }

  .hero-carousel .carousel-slide-content p {
    font-size: 0.85rem !important;
  }
}

.carousel-banner-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: #2b2b2b;
}

.hero-side-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.side-banner-card {
  flex: 1;
  border-radius: var(--cps-radius);
  overflow: hidden;
  box-shadow: var(--cps-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  color: #fff;
  transition: transform 0.2s;
  position: relative;
}

.side-banner-card:hover {
  transform: translateY(-2px);
  color: #fff;
}

.side-banner-1 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.side-banner-2 {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.side-banner-3 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.side-banner-red {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.side-banner-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.side-banner-dark {
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

.side-banner-card h6 {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.side-banner-card p {
  font-size: 11px;
  margin-bottom: 0;
  opacity: 0.9;
}

/* ---------------- Quick Access Icons ---------------- */
.quick-access-bar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.quick-access-item {
  background: #fff;
  border-radius: var(--cps-radius);
  padding: 12px 6px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.quick-access-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--cps-shadow-hover);
  color: var(--cps-red);
}

.quick-access-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #fff0f1;
  color: var(--cps-red);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.quick-access-icon:has(img),
.quick-access-icon.has-img {
  background: #f8fafc !important;
  border: 1px solid #eef2f6;
  border-radius: 12px;
}

.quick-access-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  display: block;
  transition: transform 0.25s ease;
}

.quick-access-item:hover .quick-access-img {
  transform: scale(1.1);
}

.quick-access-item:nth-child(2) .quick-access-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.quick-access-item:nth-child(3) .quick-access-icon {
  background: #fef3c7;
  color: #d97706;
}

.quick-access-item:nth-child(4) .quick-access-icon {
  background: #dcfce7;
  color: #16a34a;
}

.quick-access-item:nth-child(5) .quick-access-icon {
  background: #f3e8ff;
  color: #9333ea;
}

.quick-access-item:nth-child(6) .quick-access-icon {
  background: #ffe4e6;
  color: #e11d48;
}

.quick-access-item:nth-child(7) .quick-access-icon {
  background: #ccfbf1;
  color: #0d9488;
}

.quick-access-item:nth-child(8) .quick-access-icon {
  background: #ffedd5;
  color: #ea580c;
}

.quick-access-label {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

/* ---------------- Flash Sale Block (Giờ vàng giá sốc) ---------------- */
.flash-sale-wrapper {
  background: var(--cps-fire-gradient);
  border-radius: var(--cps-radius);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(254, 44, 85, 0.2);
  color: #fff;
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.flash-sale-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-sale-title h3 {
  margin: 0;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.countdown-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}

.countdown-num {
  background: #000;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.flash-sale-nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
  padding: 4px;
  border-radius: 8px;
}

.flash-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

.flash-tab-btn.active {
  background: #fff;
  color: var(--cps-red);
}

.flash-sale-head-link {
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.flash-sale-head-link:hover {
  opacity: 1;
  color: #fff;
  transform: translateX(2px);
}

.flash-sale-btn-more {
  background: #fff;
  color: var(--cps-red) !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #fff;
  text-decoration: none;
}

.flash-sale-btn-more:hover {
  background: #fff0f0;
  color: var(--cps-red-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ---------------- Product & SIM Cards ---------------- */
.sim-card {
  background: #fff;
  color: #1f2937;
  border-radius: var(--cps-radius);
  border: 1px solid var(--cps-border);
  padding: 14px;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sim-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cps-shadow-hover);
  border-color: #fca5a5;
}

/* Đảm bảo chữ trong sim-card khi nằm trong khối Giờ Vàng Giá Sốc không bị màu trắng */
.flash-sale-wrapper .sim-card {
  color: #1f2937;
}

/* Card Top: chứa nhà mạng (trái) và nhãn giảm giá / badge (phải) */
.sim-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
  min-height: 22px;
}

.sim-telco-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

.sim-badge-discount {
  display: inline-flex;
  align-items: center;
  background: var(--cps-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Hỗ trợ trường hợp đặt trực tiếp bên ngoài .sim-card-top */
.sim-card>.sim-badge-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.sim-card>.sim-telco-badge {
  margin-bottom: 8px;
  max-width: calc(100% - 60px);
}

.sim-number-text {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  font-family: monospace, sans-serif;
}

.sim-meaning-text {
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
  min-height: 18px;
}

.sim-package-box {
  background: #e8faf6;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 11px;
  color: #0f766e;
  border: 1px solid #b2ece1;
}

.sim-package-box strong {
  color: #00bfa5;
  font-weight: 700;
}

/* Đảm bảo trong Giờ vàng giá sốc phối màu xanh chuẩn như ảnh */
.flash-sale-wrapper .sim-package-box {
  background: #e8faf6 !important;
  color: #0f766e !important;
  border: 1px solid #b2ece1 !important;
}

.flash-sale-wrapper .sim-package-box strong {
  color: #00bfa5 !important;
}

/* Tag Freeship & Ưu Đãi theo ảnh mẫu */
.badge-freeship {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #e8faf6;
  color: #00bfa5;
  border: 1px solid #b2ece1;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-uudai {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #ffdcd7;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Voucher vận chuyển banner phối màu xanh ngọc như ảnh */
.voucher-shipping-box {
  background: #e8faf6;
  border: 1px solid #b2ece1;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 191, 165, 0.08);
}

.voucher-shipping-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}

.voucher-shipping-title .voucher-badge {
  color: #00bfa5;
  font-weight: 800;
}

.voucher-shipping-sub {
  font-size: 11px;
  color: #6b7280;
}

.btn-voucher-claim {
  background: #00bfa5;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-voucher-claim:hover {
  background: #009e89;
  color: #fff;
  transform: translateY(-1px);
}

.sim-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.sim-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--cps-red);
}

.sim-old-price {
  font-size: 12px;
  color: var(--cps-text-muted);
  text-decoration: line-through;
}

.sim-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-buy-sim {
  flex: 1;
  background: var(--cps-red);
  color: #fff !important;
  border: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  /* In thường */
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
  line-height: 1;
  transition: background 0.2s, transform 0.1s;
}

.btn-buy-sim:hover {
  background: var(--cps-red-dark);
  color: #fff !important;
}

.btn-add-cart-icon {
  background: #fef2f2;
  color: var(--cps-red);
  border: 1px solid #fecaca;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-cart-icon:hover {
  background: var(--cps-red);
  color: #fff;
}

/* Fire progress bar for flash sales */
.fire-progress {
  position: relative;
  background: #ffd5d8;
  height: 18px;
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0;
}

.fire-progress-bar {
  background: linear-gradient(90deg, #ff7a00, var(--primary-color));
  height: 100%;
  border-radius: 12px;
}

.fire-progress-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ---------------- Tech Device Cards ---------------- */
.product-card {
  background: #fff;
  border-radius: var(--cps-radius);
  border: 1px solid var(--cps-border);
  padding: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cps-shadow-hover);
  border-color: #fca5a5;
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
  overflow: hidden;
}

.product-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--cps-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.product-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  height: 36px;
  max-height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
}

.product-smember {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  color: #b45309;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
  display: inline-block;
}

.product-gift {
  background: #f8fafc;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
  color: #64748b;
  margin-bottom: 8px;
  min-height: 30px;
}

/* ---------------- CellphoneS Style Smart Sim Filter ---------------- */
.sim-filter-box {
  background: #fff;
  border-radius: var(--cps-radius);
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  border: 1px solid #f1f3f5;
}

.sim-filter-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
}

.filter-bar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Nút dạng pill trên thanh tiêu chí */
.btn-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  border: 1px solid transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-filter-pill:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Nút đỏ đặc biệt "Bộ lọc" như trong ảnh */
.btn-filter-pill.btn-filter-main {
  background: #fff;
  border: 1.5px solid var(--cps-red);
  color: var(--cps-red);
  font-weight: 600;
}

.btn-filter-pill.btn-filter-main:hover {
  background: #fff5f5;
  color: var(--cps-red-dark);
}

/* Khi dropdown đang mở hoặc có giá trị đã chọn (như nút 'Loại bàn ủi v' trong ảnh) */
.btn-filter-pill.active,
.btn-filter-pill.show,
.btn-filter-pill.has-value {
  background: #fff !important;
  border: 1.5px solid var(--cps-red) !important;
  color: var(--cps-red) !important;
  font-weight: 600;
}

.btn-filter-pill::after {
  display: none !important;
}

/* Dropdown popover menu kiểu CellphoneS */
.filter-popover {
  min-width: 340px;
  max-width: 440px;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #e5e7eb !important;
  padding: 16px !important;
  margin-top: 8px !important;
  background: #fff;
  z-index: 1050;
}

.filter-popover-title {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

/* Danh sách chip lựa chọn bo tròn dạng viên thuốc */
.filter-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip-btn {
  background: #f3f4f6;
  border: 1px solid transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.filter-chip-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.filter-chip-btn.active {
  background: #fff0f1;
  border-color: var(--cps-red);
  color: var(--cps-red);
  font-weight: 600;
}

/* Hàng nút dưới đáy popover: Đóng & Xem kết quả */
.filter-popover-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f3f5;
}

.btn-popover-close {
  flex: 1;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-popover-close:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-popover-submit {
  flex: 1.3;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ef4444 100%);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 2px 6px rgba(254, 44, 85, 0.25);
}

.btn-popover-submit:hover {
  background: linear-gradient(135deg, var(--primary-color-hover) 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(254, 44, 85, 0.35);
}

/* Hàng Sắp xếp theo */
.sort-by-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}

.sort-options-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.sort-by-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-right: 6px;
}

.sort-chip {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid transparent;
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sort-chip:hover {
  background: #e5e7eb;
  color: #111827;
}

.sort-chip.active {
  background: #fff;
  border-color: var(--cps-red);
  color: var(--cps-red);
  font-weight: 600;
}

.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 6px;
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--cps-red-light);
  border-color: var(--cps-red);
  color: var(--cps-red);
  font-weight: 600;
}

/* ---------------- CellphoneS Assurance Bar ---------------- */
.assurance-bar {
  background: #fff;
  border-radius: var(--cps-radius);
  padding: 20px;
  box-shadow: var(--cps-shadow);
  margin: 30px 0;
}

.assurance-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assurance-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cps-red-light);
  color: var(--cps-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.assurance-item strong {
  font-size: 13px;
  display: block;
}

.assurance-item small {
  color: var(--cps-text-muted);
  font-size: 11px;
}

/* ---------------- Footer (CellphoneS Style) ---------------- */
/* Desktop / PC Base Typography */
.cps-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 36px 0 20px 0;
  margin-top: 40px;
  font-size: 13.5px;
  color: #475569;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
  text-transform: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.footer-links li {
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 1.5;
}

.footer-links a {
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-hotline {
  font-size: 13px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer-hotline strong,
.footer-hotline .fw-bold {
  color: var(--primary-color);
  font-size: 13px;
}

.footer-address {
  font-size: 13px;
  line-height: 1.6;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.payment-badge-img {
  height: 28px;
  padding: 4px 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.footer-bottom {
  border-top: 1px solid #f1f5f9;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
}

/* ---------------- Footer Mobile Typography (< 992px) ---------------- */
@media (max-width: 991.98px) {
  .cps-footer {
    padding: 20px 0 16px 0 !important;
    margin-top: 20px !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
  }

  .footer-heading {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #1e293b !important;
  }

  .footer-links {
    font-size: 11px !important;
  }

  .footer-links li {
    margin-bottom: 5px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .footer-links a {
    font-size: 11px !important;
    color: #64748b !important;
  }

  .footer-address {
    font-size: 11px !important;
    line-height: 1.45 !important;
    margin-bottom: 6px !important;
  }

  .footer-hotline {
    font-size: 11px !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
  }

  .footer-hotline strong,
  .footer-hotline .fw-bold,
  .footer-hotline a {
    font-size: 11.5px !important;
  }

  .cps-footer .btn-sm {
    font-size: 11px !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
  }

  .footer-bottom {
    margin-top: 14px !important;
    padding-top: 12px !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    color: #94a3b8 !important;
    text-align: center !important;
  }
}

/* ---------------- Mobile Bottom Nav ---------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  height: 56px;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #eee;
  pointer-events: auto;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: #64748b !important;
  gap: 2px;
  position: relative;
  text-decoration: none !important;
  cursor: pointer;
  flex: 1;
  height: 100%;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  user-select: none;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus,
.mobile-nav-item:focus-visible,
.mobile-nav-item:active {
  color: #64748b !important;
  outline: none !important;
  text-decoration: none !important;
}

.mobile-nav-item i {
  font-size: 19px;
  line-height: 1;
  color: inherit;
}

.mobile-nav-item.active,
.mobile-nav-item.active:hover,
.mobile-nav-item.active:focus,
.mobile-nav-item.active:active {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

.mobile-nav-item.active i {
  color: var(--primary-color) !important;
}

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge-dot {
  position: absolute;
  top: -5px;
  right: -9px;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid #ffffff;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ---------------- Toast Notification ---------------- */
.cps-toast {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background: rgba(17, 24, 39, 0.95);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  display: none;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Modern E-Commerce Mobile UI/UX & Compact Desktop Grid Styles (Shopee/TikTok Style)
   ========================================================================== */

/* Lưới Desktop 6 cột cực kỳ nhỏ gọn hiển thị nhiều sim */
@media (min-width: 1200px) {
  .row-cols-xl-6>* {
    flex: 0 0 auto;
    width: 16.66666667% !important;
  }
}

/* Thẻ Sim Hiện Đại (Modern Sim Card) - Tối ưu độ rộng tự co giãn 100% lấp đầy cột lưới */
.sim-card-modern,
.sim-card-moderm {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f2f5;
  padding: 8px;
  transition: all 0.2s ease;
  height: 100%;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  text-decoration: none !important;
  color: inherit;
}

/* Product Card Modern (Dành cho 35 sản phẩm Simmart: USB Dcom, GSM Modem, Sim rác...) */
.product-card-modern {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  padding: 0 !important;
  transition: all 0.25s ease;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .product-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
    border-color: #fca5a5 !important;
    color: inherit;
  }
}

.product-card-modern > a:first-child {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.product-card-modern .product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-card-modern .product-thumb-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.3s ease;
}

.product-card-modern:hover .product-thumb-img {
  transform: scale(1.04);
}

@media (max-width: 575.98px) {
  .product-card-modern .product-thumb-wrap {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: unset !important;
  }
  .product-card-modern .product-discount-badge {
    top: 0 !important;
    left: 0 !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 7px 0 7px 0 !important;
  }
  .product-card-modern .product-modern-body {
    padding: 8px 8px 10px !important;
  }
  .product-card-modern .product-modern-title {
    font-size: 12.5px !important;
    min-height: 34px !important;
  }
  .product-card-modern .product-modern-price {
    font-size: 14px !important;
  }
}

.product-card-modern .product-discount-badge {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  background: linear-gradient(135deg, #FE2C55 0%, #FF5A79 100%) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 8px 0 8px 0 !important;
  border-top-left-radius: 7px !important;
  border-bottom-right-radius: 8px !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  z-index: 2;
  line-height: 1.2 !important;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 6px rgba(254, 44, 85, 0.25) !important;
}

.product-card-modern .product-modern-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-modern .product-cat-tag {
  font-size: 11.5px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0.2px;
}

.product-card-modern .product-modern-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.product-card-modern .product-modern-rating {
  margin-bottom: 6px;
}

.product-card-modern .product-modern-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
}

.product-modern-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.product-modern-old-price {
  font-size: 11.5px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-top: 3px;
}

.sim-card-modern,
.sim-card-moderm {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {

  .sim-card-modern:hover,
  .sim-card-moderm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    border-color: #fca5a5;
    color: inherit;
  }
}

/* Thumbnail thẻ Sim với gradient nhà mạng & chi tiết phong cách TMĐT - Tỷ lệ 16:9 thu gọn độ cao */
.sim-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 6px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.thumb-viettel {
  background: linear-gradient(135deg, #a80012 0%, #ee0033 60%, #ff4d6d 100%);
}

.thumb-vinaphone {
  background: linear-gradient(135deg, #005fad 0%, #008ad7 60%, #38bdf8 100%);
}

.thumb-mobifone {
  background: linear-gradient(135deg, #003e7e 0%, #005baa 60%, #0284c7 100%);
}

.thumb-wintel {
  background: linear-gradient(135deg, #b91c1c 0%, #e60012 60%, #fb923c 100%);
}

.thumb-vietnamobile {
  background: linear-gradient(135deg, #ea580c 0%, #f37021 60%, #fb923c 100%);
}

.thumb-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  line-height: 1;
}

.thumb-mall-badge {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border-radius: 3px;
  padding: 1.5px 4px;
  font-size: 7.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-transform: uppercase;
  color: #fff;
}

.mall-flag {
  background: #ee2c4a;
  color: #fff;
  padding: 1px 2.5px;
  border-radius: 2px;
  font-weight: 800;
  font-size: 6.5px;
}

.thumb-discount-pill {
  background: #ee2c4a;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 1.5px 4px;
  border-radius: 3px;
  line-height: 1;
}

.thumb-center-content {
  text-align: center;
  margin: auto 0;
  line-height: 1.1;
}

.thumb-package-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  line-height: 1;
  margin-bottom: 1px;
}

.thumb-data-highlight {
  font-size: 7.5px;
  font-weight: 600;
  opacity: 0.95;
  background: rgba(0, 0, 0, 0.25);
  display: inline-block;
  padding: 0.5px 4px;
  border-radius: 2px;
}

.thumb-phone-number {
  font-family: monospace, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #ffeb3b;
  margin-top: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

/* Dải nhãn TMĐT 3 màu dưới ảnh */
.thumb-xtra-bar {
  display: flex;
  margin: -4px -6px 0 -6px;
  background: rgba(0, 0, 0, 0.15);
  font-size: 6.5px;
  font-weight: 700;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  overflow: hidden;
  line-height: 1.2;
}

.xtra-cell {
  flex: 1;
  text-align: center;
  padding: 1.5px 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xtra-freeship {
  background: #00bfa5;
  color: #fff;
}

.xtra-extra {
  background: #00c853;
  color: #fff;
}

.xtra-bonus {
  background: #ffd600;
  color: #000;
}

/* Phần nội dung dưới card */
.sim-modern-body {
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sim-modern-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 2px;
  height: 31px;
  max-height: 31px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
}

.sim-modern-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 2px;
}

.sim-modern-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.sim-star-rating {
  color: #ffb800;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sim-modern-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.sim-modern-price {
  font-size: 13px;
  font-weight: 800;
  color: #ee2c4a;
  line-height: 1.1;
}

.sim-modern-old-price {
  font-size: 9.5px;
  color: #94a3b8;
  text-decoration: line-through;
  display: block;
  min-height: 14px;
  line-height: 1.2;
}

.btn-add-cart-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff0f2;
  border: 1px solid #ffdcd7;
  color: #ee2c4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.btn-add-cart-mini:hover {
  background: #ee2c4a;
  color: #fff;
  border-color: #ee2c4a;
}

/* Card nằm ngang cho Flash Sale Mobile (ảnh 6) */
.sim-card-horizontal {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f2f5;
  padding: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .sim-card-horizontal:hover {
    border-color: #fca5a5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    color: inherit;
  }
}

.sim-card-horizontal .h-thumb {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  color: #fff;
}

.sim-card-horizontal .h-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sim-card-horizontal .h-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.sim-card-horizontal .h-progress {
  position: relative;
  background: #ffd5d8;
  height: 15px;
  border-radius: 999px;
  overflow: hidden;
  margin: 3px 0;
}

.sim-card-horizontal .h-progress-bar {
  background: linear-gradient(90deg, #ff6026 0%, #ee2c4a 100%);
  height: 100%;
  border-radius: 999px;
}

.sim-card-horizontal .h-progress-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sim-card-horizontal .h-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.btn-buy-pill-sm {
  background: var(--primary-color) !important;
  color: #fff !important;
  border: 1px solid var(--primary-color) !important;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  height: 28px;
  cursor: pointer;
}

.btn-buy-pill-sm:hover {
  background: var(--primary-color-hover) !important;
  border-color: var(--primary-color-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(254, 44, 85, 0.3);
}

/* Danh mục nhà mạng chuẩn như Ảnh 2 (Shopee / TikTok Shop style) */
.category-showcase-section {
  margin: 18px 0 24px 0;
}

.category-showcase-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.telco-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .telco-category-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
}

@media (min-width: 992px) {
  .telco-category-grid {
    gap: 16px;
  }
}

.telco-category-item {
  min-width: 0;
  width: 100%;
  background: #ffffff;
  border-radius: var(--cps-radius);
  padding: 12px 6px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  color: #1e293b;
  box-sizing: border-box;
}

.telco-category-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--cps-shadow-hover);
  color: var(--cps-red);
}

.telco-category-thumb {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin: 0 auto;
  transition: all 0.25s ease;
}

@media (min-width: 992px) {
  .telco-category-thumb {
    width: 76px;
    height: 76px;
  }
}

.telco-category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  margin: 0;
  display: block;
  border-radius: 11px;
  transition: transform 0.25s ease;
}

.telco-category-item:hover .telco-category-thumb {
  border-color: #fca5a5;
  box-shadow: 0 4px 12px rgba(238, 44, 74, 0.12);
}

.telco-category-item:hover .telco-category-thumb img {
  transform: scale(1.08);
}

.telco-category-label {
  margin-top: 0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
  text-align: center;
  width: 100%;
  word-break: break-word;
}

@media (min-width: 992px) {
  .telco-category-label {
    font-size: 13px;
    margin-top: 0;
  }
}
  word-break: break-word;
}

@media (min-width: 992px) {
  .telco-category-label {
    font-size: 13px;
    margin-top: 8px;
  }
}

.telco-category-item:hover .telco-category-label {
  color: #ee2c4a;
}

/* Các nhãn thương hiệu bên trong thumbnail */
.brand-viettel-logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #ee0033;
  letter-spacing: -0.5px;
  line-height: 1;
}

@media (min-width: 992px) {
  .brand-viettel-logo {
    font-size: 20px;
  }
}

.brand-viettel-slogan {
  font-size: 7.5px;
  color: #64748b;
  margin-top: 2px;
  text-align: center;
}

.brand-mobifone-logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1;
}

@media (min-width: 992px) {
  .brand-mobifone-logo {
    font-size: 20px;
  }
}

.brand-mobifone-logo .mobi {
  color: #005baa;
}

.brand-mobifone-logo .fone {
  color: #ee2c4a;
}

.brand-vinaphone-logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #008ad7;
  letter-spacing: -0.3px;
  line-height: 1;
}

@media (min-width: 992px) {
  .brand-vinaphone-logo {
    font-size: 19px;
  }
}

.brand-vietnamobile-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.brand-vietnamobile-logo i {
  color: #ff6f00;
  font-size: 15px;
  line-height: 1;
}

.brand-vietnamobile-logo span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  color: #ff6f00;
  letter-spacing: -0.3px;
  line-height: 1;
}

@media (min-width: 992px) {
  .brand-vietnamobile-logo i {
    font-size: 18px;
  }

  .brand-vietnamobile-logo span {
    font-size: 13.5px;
  }
}

.brand-wintel-logo {
  display: flex;
  align-items: center;
  gap: 3px;
}

.brand-wintel-logo .win-badge {
  background: #e60012;
  color: #fff;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 3px;
  border-radius: 3px;
}

.brand-wintel-logo .win-text {
  font-size: 16px;
  font-weight: 900;
  color: #e60012;
  letter-spacing: -0.5px;
}

@media (min-width: 992px) {
  .brand-wintel-logo .win-text {
    font-size: 18px;
  }
}

.brand-data-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand-data-badge {
  font-size: 7px;
  font-weight: 800;
  color: #ee2c4a;
  background: #fee2e2;
  padding: 1px 4px;
  border-radius: 3px;
  margin-bottom: 2px;
}

.brand-data-main {
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  text-align: center;
}

.brand-data-cards {
  display: flex;
  gap: 3px;
  margin-top: 2px;
  font-size: 11px;
}

/* Mobile Top Nav Tabs (Ảnh 1, 2, 3, 4, 6) */
.mobile-shop-tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 10px;
  margin-bottom: 10px;
}

.mobile-shop-tab-item {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.mobile-shop-tab-item.active {
  color: #0f172a;
  font-weight: 700;
  border-bottom-color: #0f172a;
}

/* Thẻ Sim nằm ngang siêu gọn cho khu vực Nhà Mạng trên Mobile (Ảnh mẫu mới) */
.sim-telco-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  color: inherit !important;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.sim-telco-row-item:last-child {
  border-bottom: none;
}

.sim-telco-row-item:active {
  background: #f8fafc;
}

.telco-row-thumb {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.thumb-mall-badge-sm {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 7.5px;
  font-weight: 700;
  color: #fff;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.mall-flag-sm {
  background: #ee2c4a;
  color: #fff;
  font-size: 6.5px;
  font-weight: 900;
  padding: 0 2px;
  border-radius: 2px;
}

.telco-row-package {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.3px;
}

.telco-row-detail {
  font-size: 8px;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.telco-row-sim-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
}

.telco-row-sim-chip .chip-number {
  font-family: monospace;
  color: #ffeb3b;
  font-size: 8.5px;
}

.telco-row-sim-chip .chip-telco {
  color: #fff;
  font-size: 7.5px;
}

.telco-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.telco-row-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.telco-row-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.telco-row-price-wrap {
  display: flex;
  flex-direction: column;
}

.telco-row-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.telco-row-price {
  font-size: 14.5px;
  font-weight: 800;
  color: #ee2c4a;
  line-height: 1.1;
}

.telco-row-sold {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

.telco-row-old-price {
  font-size: 10.5px;
  color: #94a3b8;
  text-decoration: line-through;
  line-height: 1.2;
}

/* Header khu vực nhà mạng gọn gàng như ảnh */
.telco-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 2px;
}

.telco-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0;
  letter-spacing: -0.2px;
}

.telco-section-more {
  font-size: 12.5px;
  color: #334155;
  text-decoration: none !important;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.telco-section-more:hover {
  color: #ee2c4a;
}

/* Khối danh sách card nhà mạng trên Mobile */
.telco-mobile-list {
  background: #fff;
  border-radius: 8px;
  padding: 0 4px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
  .quick-access-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  body.has-bottom-nav .mobile-bottom-nav {
    display: flex !important;
  }

  body.has-bottom-nav {
    padding-bottom: 60px !important;
  }

  body.no-bottom-nav .mobile-bottom-nav,
  body:not(.has-bottom-nav) .mobile-bottom-nav {
    display: none !important;
  }

  body.no-bottom-nav:not(.detail-page-body):not(.checkout-page-body),
  body:not(.has-bottom-nav):not(.detail-page-body):not(.checkout-page-body) {
    padding-bottom: 0 !important;
  }

  .header-actions {
    display: none !important;
  }

  .btn-header-menu {
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
  }

  .mobile-header-cart {
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
  }

  .mobile-header-cart .cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ffffff;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 10px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    border: 1.5px solid #ffffff;
    pointer-events: none;
  }
}

@media (max-width: 575.98px) {
  .quick-access-bar {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .quick-access-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .quick-access-label {
    font-size: 10px;
  }

  .flash-sale-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Product Detail Page Styles (TikTok Shop / Shopee Style & Desktop Quick Buy)
   ========================================================================== */

/* Toàn bộ chữ in thường, không ép uppercase */
.detail-page-container * {
  text-transform: none;
}

.detail-page-container h1,
.detail-page-container h2,
.detail-page-container h3,
.detail-page-container h4,
.detail-page-container h5,
.detail-page-container h6,
.detail-page-container button,
.detail-page-container .btn,
.detail-page-container .badge {
  text-transform: none !important;
}

/* Khung ảnh màn chi tiết sản phẩm (Hình vuông 1:1 chuẩn TMĐT, rộng đầy khung) */
.product-detail-img-box {
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  background: #ffffff;
  border-radius: 12px !important;
  border: none !important;
  overflow: hidden;
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
}

.product-detail-main-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.35s ease;
}

.product-detail-img-box:hover .product-detail-main-img {
  transform: scale(1.03);
}

.product-discount-badge-lg {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  background: linear-gradient(135deg, #FE2C55 0%, #FF5A79 100%) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 12px 0 12px 0 !important;
  border-top-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  z-index: 2;
  line-height: 1.2 !important;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.25) !important;
}

@media (max-width: 575.98px) {
  .product-detail-img-box {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: unset !important;
    border-radius: 10px !important;
  }
  .product-discount-badge-lg {
    top: 0 !important;
    left: 0 !important;
    font-size: 11px !important;
    padding: 3px 8px !important;
    border-radius: 10px 0 10px 0 !important;
    border-top-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
  }
}

/* Thẻ hình ảnh sản phẩm lớn */
.detail-visual-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.detail-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.detail-return-badge {
  background: rgba(40, 25, 15, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-counter-badge {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
}

.detail-visual-body {
  text-align: center;
  margin: auto 0;
}

.detail-visual-package {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.detail-visual-detail {
  font-size: clamp(12px, 2.5vw, 15px);
  font-weight: 600;
  opacity: 0.95;
  background: rgba(0, 0, 0, 0.25);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  margin: 8px 0;
}

.detail-visual-number {
  font-family: monospace, sans-serif;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 900;
  color: #ffeb3b;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

/* Dải nhãn 3 màu chân thumbnail */
.detail-xtra-bar {
  display: flex;
  margin: -16px -16px 0 -16px;
  font-size: 9.5px;
  font-weight: 700;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  overflow: hidden;
}

.detail-commitments-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 8px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.detail-commit-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Thông tin giá và tiêu đề */
.detail-price-main {
  font-size: 28px;
  font-weight: 900;
  color: #ee2c4a;
  line-height: 1.1;
}

.detail-price-old {
  font-size: 15px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 8px;
}

.detail-star-shop-badge {
  background: #fff3e6;
  color: #ff7a00;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.detail-product-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 8px 0;
}

/* Khối vận chuyển & bảo hành */
.detail-shipping-box {
  background: #fafaf9;
  border: 1px solid #f0f0ee;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
}

.detail-shipping-title {
  font-size: 13px;
  font-weight: 700;
  color: #00bfa5;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.detail-policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  color: #475569;
}

/* Selector loại sim và hình thức nhận */
.detail-selector-group {
  margin: 14px 0;
}

.detail-selector-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: block;
}

.detail-pill-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-pill-opt {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-pill-opt.active {
  border-color: #ee2c4a;
  color: #ee2c4a;
  background: #fff5f6;
  box-shadow: 0 0 0 1px #ee2c4a;
}

/* Form đặt mua nhanh trên Desktop */
.quick-order-card {
  background: #fff;
  border: 1.5px solid #fecaca;
  border-radius: 14px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(238, 44, 74, 0.05);
}

.quick-order-title {
  font-size: 15px;
  font-weight: 800;
  color: #ee2c4a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-control-order {
  height: 42px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  padding: 0 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-order:focus {
  border-color: #ee2c4a;
  box-shadow: 0 0 0 3px rgba(238, 44, 74, 0.15);
  outline: none;
}

/* Nút CTA mua ngay & giỏ hàng (Không gradient, rộng hết 1 dòng, cao hơn, REM responsive) */
.btn-detail-buy-now {
  background: var(--primary-color) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-color) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 50px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0 !important;
  min-height: 48px !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: all 0.2s ease;
  line-height: 1.4;
  text-decoration: none;
}

.btn-detail-buy-now:hover {
  background: #ba0015 !important;
  border-color: #ba0015 !important;
  color: #ffffff !important;
  transform: none;
  box-shadow: none !important;
}

.btn-detail-add-cart {
  background: #fef2f2 !important;
  background-image: none !important;
  color: var(--primary-color) !important;
  border: 1px solid #fecaca !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 50px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0 !important;
  min-height: 48px !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: all 0.2s ease;
  line-height: 1.4;
  text-decoration: none;
}

.btn-detail-add-cart:hover {
  background: #fee2e2 !important;
  border-color: var(--primary-color) !important;
  color: #ba0015 !important;
  transform: none;
  box-shadow: none !important;
}

@media (max-width: 576px) {

  .btn-detail-buy-now,
  .btn-detail-add-cart {
    font-size: 0.85rem !important;
    padding: 0.6rem 0.5rem !important;
    min-height: 44px !important;
    flex: 1 1 0 !important;
    white-space: nowrap;
  }
}

/* Tabs mô tả & hướng dẫn kích hoạt */
.detail-tabs-header {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin: 24px 0 16px 0;
  gap: 8px;
  overflow-x: auto;
}

.detail-tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.detail-tab-btn.active {
  color: #0f172a;
  font-weight: 800;
  border-bottom-color: #0f172a;
}

/* Hướng dẫn đăng ký chính chủ (Chuẩn Ảnh 2) */
.reg-guide-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.reg-guide-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.reg-step-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.reg-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ee2c4a;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reg-step-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}

/* Sticky Bottom Bar trên Mobile (Ảnh 1 & 2) */
.mobile-detail-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  z-index: 1050;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.06);
}

.m-bar-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 10px;
  text-decoration: none !important;
  min-width: 44px;
}

.m-bar-icon-btn i {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 2px;
}

.m-bar-cart-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff0f2;
  border: 1px solid #fecaca;
  color: #ee2c4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.m-bar-btn-buy {
  flex: 1;
  background: var(--primary-color) !important;
  color: #fff !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: 50px !important;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(254, 44, 85, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.m-bar-btn-buy:hover {
  background: var(--primary-color-hover) !important;
  border-color: var(--primary-color-hover) !important;
  color: #fff !important;
}

.m-bar-buy-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
}

.m-bar-sub-price {
  font-size: 10px;
  opacity: 0.95;
  line-height: 1.1;
  margin-top: 1px;
}

/* Ẩn bottom nav mặc định khi ở trang Detail sản phẩm, SIM, bài viết, hoặc trang có class hide-bottom-nav */
body.detail-page-body .mobile-bottom-nav,
body.article-detail-body .mobile-bottom-nav,
body.hide-bottom-nav .mobile-bottom-nav {
  display: none !important;
}

body.detail-page-body {
  padding-bottom: 75px !important;
}

body.article-detail-body,
body.hide-bottom-nav {
  padding-bottom: 0 !important;
}

/* ==========================================================================
   TikTok Shop Style "Tổng Quan Đơn Hàng" / Mua Ngay (WebView & Desktop)
   ========================================================================== */

/* Ẩn Header/Footer/Nav toàn trang trên Mobile khi ở màn Checkout để chuẩn Webview */
body.checkout-page-body .mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 991px) {
  body.checkout-page-body {
    background-color: #f4f5f7 !important;
  }

  body.checkout-page-body .cps-header,
  body.checkout-page-body .top-header-banner,
  body.checkout-page-body .sub-nav,
  body.checkout-page-body .assurance-bar,
  body.checkout-page-body .cps-footer,
  body.checkout-page-body .mobile-bottom-nav {
    display: none !important;
  }

  .tt-sticky-bottom-bar {
    bottom: 0 !important;
    z-index: 1040 !important;
  }

  body.checkout-page-body .tt-checkout-bg {
    padding-bottom: 90px !important;
  }
}

.tt-checkout-bg {
  background-color: #f4f5f7;
  min-height: 100vh;
  padding-bottom: 120px;
}

@media (min-width: 992px) {
  .tt-checkout-bg {
    padding-top: 16px;
    padding-bottom: 50px;
  }
}

/* WebView / Mobile App Header (Chuẩn như ảnh TikTok Shop) */
.tt-webview-header {
  background: #ffffff;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #eceff1;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.tt-header-back {
  font-size: 20px;
  color: #161823;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 32px;
  height: 32px;
  justify-content: center;
}

.tt-header-title {
  font-size: 17px;
  font-weight: 700;
  color: #161823;
  margin: 0;
  flex: 1;
  text-align: center;
  padding-right: 32px;
}

/* Base Card Style */
.tt-card {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
}

@media (max-width: 991px) {
  .tt-card {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }

  /* Khối 1 + 2 + 3 liền mạch trên Mobile */
  .tt-card.tt-address-card {
    border-top: none !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
  }

  .tt-card.tt-product-card {
    border-top: none !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
  }

  .tt-card.tt-cost-card-mobile {
    border-top: 1px solid #f6f7f9 !important;
    border-bottom: 1px solid #ebedf0 !important;
    margin-bottom: 10px !important;
  }

  .tt-card.tt-payment-card {
    border-top: 1px solid #ebedf0 !important;
    border-bottom: 1px solid #ebedf0 !important;
    margin-bottom: 10px !important;
  }
}

/* 1. Address Card (Chuẩn ảnh 1) */
.tt-address-body {
  padding: 14px 16px;
  cursor: pointer;
}

.tt-address-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tt-address-pin {
  font-size: 16px;
  color: #161823;
  flex-shrink: 0;
}

.tt-address-recipient {
  font-size: 14.5px;
  font-weight: 700;
  color: #161823;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-address-chevron {
  color: #999;
  font-size: 14px;
  flex-shrink: 0;
}

.tt-address-lines {
  padding-left: 24px;
  font-size: 13px;
  color: #4b4c52;
  line-height: 1.4;
}

.airmail-stripe {
  height: 3px;
  width: 100%;
  background: repeating-linear-gradient(-45deg,
      #fe2c55 0,
      #fe2c55 12px,
      transparent 12px,
      transparent 18px,
      #0284c7 18px,
      #0284c7 30px,
      transparent 30px,
      transparent 36px);
}

/* 2. Shop & Product Section (Chuẩn ảnh 1 & 2) */
.tt-shop-header {
  padding: 12px 16px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tt-shop-badge {
  background: #fff3e0;
  color: #ff6b00;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-right: 6px;
  flex-shrink: 0;
}

.tt-shop-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #161823;
}

.tt-note-trigger {
  font-size: 12.5px;
  color: #8a8b91;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.tt-note-trigger:hover {
  color: #161823;
}

.tt-product-row {
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  border-top: 1px solid #f6f7f9;
}

/* Thumbnail thẻ Sim phong cách TMĐT chuẩn ảnh */
.tt-product-thumb-wrapper {
  width: 84px;
  height: 84px;
  min-width: 84px;
  max-width: 84px;
  flex-shrink: 0;
  position: relative;
}

.tt-sim-card-thumb {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-size: cover;
  background-position: center;
}

.tt-sim-card-thumb.thumb-viettel {
  background: linear-gradient(135deg, #a80012 0%, #ee0033 60%, #ff4d6d 100%);
}

.tt-sim-card-thumb.thumb-vinaphone {
  background: linear-gradient(135deg, #005fad 0%, #008ad7 60%, #38bdf8 100%);
}

.tt-sim-card-thumb.thumb-mobifone {
  background: linear-gradient(135deg, #003e7e 0%, #005baa 60%, #0284c7 100%);
}

.tt-sim-card-thumb.thumb-wintel {
  background: linear-gradient(135deg, #b91c1c 0%, #e60012 60%, #fb923c 100%);
}

.tt-sim-card-thumb.thumb-vietnamobile {
  background: linear-gradient(135deg, #ea580c 0%, #f37021 60%, #fb923c 100%);
}

.tt-sim-card-top {
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.tt-sim-card-mall {
  background: #e11d48;
  color: #ffffff;
  font-size: 7.5px;
  font-weight: 800;
  padding: 1.5px 3.5px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

.tt-sim-card-telco {
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.tt-sim-card-body {
  text-align: center;
  margin: auto 0;
  line-height: 1.15;
}

.tt-sim-card-pkg {
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-sim-card-num {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
  font-size: 8.5px;
  font-weight: 800;
  color: #ffeb3b;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tt-sim-card-bottom {
  text-align: center;
  line-height: 1;
}

.tt-sim-card-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Cart Item & Quantity Selector (Chuẩn TikTok Shop / Mobile Responsive)
   ========================================================================== */
.cart-item-row {
  transition: all 0.15s ease;
}

.cart-item-thumb {
  width: 76px;
  height: 76px;
  min-width: 76px;
  min-height: 76px;
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px;
  object-fit: contain !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  background: #ffffff;
  overflow: hidden;
}

.cart-item-title {
  font-size: 14px;
  line-height: 1.35;
}

.cart-item-subtitle {
  font-size: 12px;
}

.cart-item-price {
  font-size: 15px;
}

@media (max-width: 767px) {
  .cart-item-row {
    padding: 10px !important;
  }

  .cart-item-thumb {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 6px !important;
    object-fit: contain !important;
    padding: 0 !important;
  }

  .cart-item-title {
    font-size: 12.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
  }

  .cart-item-subtitle {
    font-size: 11px !important;
  }

  .cart-item-price {
    font-size: 13.5px !important;
  }

  .cart-item-old-price {
    font-size: 10.5px !important;
  }

  .cart-qty-group {
    padding: 1px 2px !important;
  }

  .cart-qty-group .btn-qty-action {
    width: 22px !important;
    height: 22px !important;
    font-size: 13px !important;
  }

  .cart-qty-group .cart-qty-val {
    min-width: 22px !important;
    font-size: 12px !important;
  }
}

.cart-qty-group {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 1px 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cart-qty-group .btn-qty-action {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cart-qty-group .btn-qty-action:hover,
.cart-qty-group .btn-qty-action:active {
  background: var(--primary-color-light);
  color: var(--primary-color);
}

.cart-qty-group .cart-qty-val {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  padding: 0 2px;
  user-select: none;
}

backdrop-filter: blur(2px);
color: #ffffff;
font-size: 6.5px;
font-weight: 700;
padding: 1.5px 4px;
border-radius: 3px;
text-transform: uppercase;
letter-spacing: 0.2px;
}

/* Thông tin sản phẩm */
.tt-product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tt-product-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #161823;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.tt-variant-pill {
  font-size: 11.5px;
  color: #616269;
  background: #f4f5f7;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  align-self: flex-start;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-flash-pill {
  font-size: 11px;
  font-weight: 700;
  color: #fe2c55;
  background: #fff0f2;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.tt-price-stepper-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 2px;
  gap: 8px;
}

.tt-price-main {
  font-size: 16.5px;
  font-weight: 800;
  color: #fe2c55;
  line-height: 1.1;
}

.tt-price-old {
  font-size: 11.5px;
  color: #999;
  text-decoration: line-through;
  margin-top: 2px;
}

.tt-price-discount {
  color: #fe2c55;
  font-weight: 600;
  text-decoration: none;
  margin-left: 2px;
}

/* Stepper [- 1 +] chuẩn ảnh */
.tt-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dcdfe4;
  border-radius: 4px;
  overflow: hidden;
  height: 26px;
  background: #ffffff;
  flex-shrink: 0;
}

.tt-stepper-btn {
  width: 26px;
  height: 26px;
  background: #ffffff;
  border: none;
  color: #161823;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
  line-height: 1;
}

.tt-stepper-btn:hover {
  background: #f0f2f5;
}

.tt-stepper-value {
  width: 32px;
  height: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #161823;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  line-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3. Cost Breakdown (Bảng tổng quan chi phí chuẩn ảnh 2) */
.tt-summary-body {
  padding: 14px 16px;
}

.tt-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #161823;
  margin-bottom: 10px;
}

.tt-summary-subrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #616269;
  padding-left: 14px;
  margin-bottom: 8px;
}

.tt-summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid #eceff1;
  margin-top: 6px;
}

.tt-text-red {
  color: #fe2c55 !important;
}

.tt-total-price-black {
  font-size: 17px;
  font-weight: 800;
  color: #161823;
}

.tt-total-price {
  font-size: 19px;
  font-weight: 800;
  color: #161823;
}

/* 4. Payment Methods (Phương thức thanh toán chuẩn ảnh 2) */
.tt-payment-body {
  padding: 14px 16px;
}

.tt-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #161823;
  margin-bottom: 12px;
}

.tt-pay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid #f6f7f9;
}

.tt-pay-option:last-child {
  border-bottom: none;
}

.tt-pay-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-cod-badge {
  background: #00bfa5;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.tt-pay-label {
  font-size: 14px;
  font-weight: 600;
  color: #161823;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tt-radio-circle.active {
  border-color: #fe2c55;
  background: #fe2c55;
}

.tt-radio-circle.active::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.tt-promo-callout {
  background: #fff0f2;
  border: 1px solid #ffd4dc;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #fe2c55;
  font-weight: 600;
}

.tt-payment-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  color: #8a8b91;
  font-size: 12.5px;
}

.tt-pay-icons-strip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-pay-mini-icon {
  height: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0 4px;
  font-size: 10px;
  display: flex;
  align-items: center;
  background: #fafafa;
  color: #4b4c52;
  font-weight: 700;
}

/* 5. Terms & Legal Disclaimer (Chuẩn ảnh 2) */
.tt-disclaimer-text {
  font-size: 11.5px;
  line-height: 1.45;
  color: #8a8b91;
  padding: 10px 16px 20px 16px;
  margin: 0;
}

.tt-disclaimer-text strong {
  color: #4b4c52;
}

@media (min-width: 992px) {
  .tt-sticky-bottom-bar {
    display: none !important;
  }
}

/* 6. Sticky Bottom Checkout Bar (Mobile & WebView chuẩn ảnh 1 & 2) */
.tt-sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e9ecef;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1040;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.tt-bottom-total-col {
  display: flex;
  flex-direction: column;
}

.tt-bottom-total-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #161823;
  line-height: 1.1;
}

.tt-bottom-total-price {
  font-size: 18.5px;
  font-weight: 800;
  color: #fe2c55;
  line-height: 1.1;
  margin-top: 2px;
}

.tt-bottom-savings {
  font-size: 11px;
  font-weight: 600;
  color: #fe2c55;
  margin-top: 2px;
}

.tt-btn-order-main {
  background: linear-gradient(135deg, #fe2c55 0%, #e61d44 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 28px;
  padding: 0 24px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none !important;
  min-width: 175px;
}

.tt-btn-order-main:hover {
  background: linear-gradient(135deg, #e61d44 0%, #cc1437 100%);
  box-shadow: 0 6px 18px rgba(254, 44, 85, 0.45);
}

.tt-btn-order-text {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.tt-btn-order-sub {
  font-size: 9.5px;
  opacity: 0.95;
  margin-top: 2px;
  line-height: 1.1;
}

/* 7. Desktop Layout Enhancements (Dàn Trang Màu Lại Cho Desktop) */
@media (min-width: 992px) {
  .btn-floating-backtotop {
    display: none !important;
    /* Bản desktop bỏ nút lên top */
  }

  .tt-checkout-bg {
    padding-bottom: 120px;
  }

  .tt-desktop-sidebar {
    position: sticky;
    top: 75px;
  }

  .tt-desktop-order-btn {
    width: 100%;
    height: 52px;
    border-radius: 28px;
    margin-top: 16px;
  }

  .tt-desktop-order-btn .tt-btn-order-text {
    font-size: 17px;
  }

  .tt-desktop-order-btn .tt-btn-order-sub {
    font-size: 11px;
  }

  .tt-trust-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin-top: 14px;
  }

  .tt-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 8px;
  }

  .tt-trust-item:last-child {
    margin-bottom: 0;
  }

  .tt-trust-item i {
    color: #fe2c55;
    font-size: 15px;
  }
}

/* Utilities cho giới hạn số dòng hiển thị kèm dấu ba chấm (...) */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Thẻ tin tức & tư vấn sim */
.news-card-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
}

.news-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
}

.news-card-item img {
  transition: transform 0.3s ease;
}

.news-card-item:hover img {
  transform: scale(1.03);
}

.news-card-item a:hover h2,
.news-card-item a:hover h6 {
  color: #ee2c4a !important;
}

/* ==========================================================================
   Phân Trang Base Chuẩn Mã Màu Thương Hiệu (Pagination Red Palette #ee2c4a / var(--primary-color))
   ========================================================================== */
.pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf2f7;
  margin-bottom: 0;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 999px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  line-height: 1;
}

.pagination .page-link:hover {
  color: #ee2c4a;
  background: #fff1f2;
  border-color: #fecdd3;
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ee2c4a 0%, var(--primary-color) 100%) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.3) !important;
  font-weight: 700;
  transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
  color: #cbd5e1 !important;
  background: #f8fafc !important;
  border-color: transparent !important;
  cursor: not-allowed;
  transform: none !important;
}

.pagination-sm .page-link {
  min-width: 32px;
  height: 32px;
  font-size: 12.5px;
  padding: 0 8px;
}

/* ==========================================================================
   Danh Mục Tin Tức & Tin Tức Hot
   ========================================================================== */
.news-cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.news-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.news-cat-pill:hover {
  color: #ee2c4a;
  background: #fff1f2;
  border-color: #fecdd3;
  transform: translateY(-1px);
}

.news-cat-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ee2c4a 0%, var(--primary-color) 100%);
  border-color: var(--primary-color);
  box-shadow: 0 3px 10px rgba(254, 44, 85, 0.25);
}

.news-cat-pill .badge {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 999px;
}

.news-cat-pill.active .badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Tin Tức Hot Banner & Cards */
.hot-news-section {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border: 1px solid #fee2e2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.hot-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hot-news-title {
  font-size: 16px;
  font-weight: 800;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.hot-news-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.hot-news-featured {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #fecdd3;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hot-news-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.12);
  border-color: #f87171;
}

.hot-news-featured img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hot-news-featured:hover img {
  transform: scale(1.02);
}

.hot-news-side-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.2s ease;
}

.hot-news-side-item:hover {
  background: #fff8f8;
  border-color: #fecdd3;
  transform: translateX(3px);
  color: inherit;
}

.hot-news-side-item img {
  width: 90px;
  height: 65px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.hot-news-side-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 4px;
}

.hot-news-side-item:hover .hot-news-side-title {
  color: #ee2c4a;
}


/* Header Cart Link (Flat style as reference image) */
.header-cart-link {
  color: #ffffff !important;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none !important;
  padding: 6px 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.header-cart-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.header-cart-link i {
  font-size: 19px;
  line-height: 1;
}

/* Header Box (Cân đối hoàn hảo với Search Box bên phải) */
.news-header-box {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #edf2f7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 13px 18px;
  margin-bottom: 20px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  text-transform: none !important;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1.2;
}

.news-header-title::before {
  content: "";
  display: inline-block;
  width: 3.5px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 2px;
  flex-shrink: 0;
}

.news-count-badge {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Sidebar Danh mục tin tức & Tin tức nổi bật (Căn phải, phong cách tinh gọn Simmart) */
.news-sidebar-search-box {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #edf2f7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 13px 16px;
  margin-bottom: 20px;
  height: 66px;
  display: flex;
  align-items: center;
}

.news-sidebar-search-form .input-group {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-sidebar-search-form .input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

.news-sidebar-search-input {
  border: none !important;
  font-size: 13.5px;
  padding: 9px 14px;
  box-shadow: none !important;
  background: #ffffff;
}

.news-sidebar-search-input:focus {
  outline: none;
  box-shadow: none;
}

.news-sidebar-search-btn {
  background: var(--primary-color) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 0 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.news-sidebar-search-btn:hover {
  background: var(--primary-color-hover) !important;
  color: #ffffff !important;
}

.news-sidebar-box {
  background: #ffffff;
  border-radius: 8px;
  border: none !important;
  box-shadow: 0 1px 1px #0000000d !important;
  padding: 16px;
  margin-bottom: 20px;
}

.news-sidebar-header {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-transform: none !important;
  letter-spacing: 0.2px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.news-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.15s ease;
  background: transparent;
  border-bottom: 1px solid #f8fafc;
}

.news-cat-link:last-child {
  border-bottom: none;
}

.news-cat-link:hover {
  background: #fff5f5;
  color: var(--primary-color);
  padding-left: 12px;
}

.news-cat-link.active {
  background: #fff0f1;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding-left: 10px;
}

.news-cat-link .badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.news-cat-link.active .badge {
  background: #fee2e2 !important;
  color: var(--primary-color) !important;
  border-color: #fca5a5 !important;
}

.news-hot-widget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-hot-widget-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed #f1f5f9;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.15s ease;
}

.news-hot-widget-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.news-hot-widget-item:hover {
  color: inherit;
}

.news-hot-widget-thumb {
  width: 75px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-hot-widget-title {
  font-size: 12.5px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 2px;
}

.news-hot-widget-item:hover .news-hot-widget-title {
  color: var(--primary-color);
}


/* ==========================================================================
   Article Detail & Body-Post Content Formatting (Chuẩn căn lề bài viết gốc)
   ========================================================================== */
.article-body-content,
.body-post {
  font-size: 15.5px;
  line-height: 1.85;
  color: #2b2b2b;
  word-wrap: break-word;
}

.article-body-content span,
.body-post span {
  font-family: inherit !important;
}

.article-body-content p,
.body-post p {
  margin-bottom: 1.25rem;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.85;
}

.article-body-content h2,
.body-post h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.45;
  padding-left: 12px;
  border-left: 4px solid var(--cps-red);
}

.article-body-content h3,
.body-post h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.article-body-content h4,
.body-post h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.article-body-content strong,
.body-post strong {
  font-weight: 700;
  color: #111827;
}

.article-body-content img,
.body-post img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 1.25rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.article-body-content a,
.body-post a {
  color: var(--cps-red);
  text-decoration: underline;
  text-decoration-color: currentColor !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

.article-body-content a:hover,
.body-post a:hover {
  color: var(--cps-red-dark);
  text-decoration-color: currentColor !important;
}

/* Đảm bảo toàn bộ chữ, thẻ u, span bên trong thẻ a luôn cùng màu với text và gạch dưới */
.article-body-content a *,
.body-post a * {
  color: inherit !important;
  text-decoration-color: currentColor !important;
}

.article-body-content u,
.body-post u {
  text-decoration-color: currentColor !important;
}

.article-body-content ul,
.body-post ul,
.article-body-content ol,
.body-post ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}

.article-body-content li,
.body-post li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.article-body-content blockquote,
.body-post blockquote {
  border-left: 4px solid var(--cps-red);
  background-color: #fff5f5;
  padding: 12px 18px;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4b5563;
}

.article-body-content table,
.body-post table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
}

.article-body-content table th,
.article-body-content table td,
.body-post table th,
.body-post table td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
}

.article-body-content table th,
.body-post table th {
  background-color: #f8fafc;
  font-weight: 600;
}


/* ==========================================================================
   Article SEO Tags Component
   ========================================================================== */
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #e2e8f0;
}

.article-tags-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}

.article-tag-pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.article-tag-pill:hover {
  background-color: #fff1f2;
  color: var(--primary-color);
  border-color: #fecdd3;
  transform: translateY(-1px);
}


/* ==========================================================================
   News Row Item (Chuẩn nét, đúng bố cục Simmart, chống nhòe ảnh)
   ========================================================================== */
.news-row-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.news-row-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

.news-row-thumb-wrap {
  height: 155px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-row-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
}

.news-row-item:hover .news-row-thumb {
  transform: scale(1.03);
}

.news-row-item .card-title {
  color: #1e293b;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.news-row-item:hover .card-title {
  color: var(--primary-color);
}

@media (max-width: 575.98px) {
  .news-row-thumb-wrap {
    height: 180px;
  }
}

/* ==========================================================
   PRODUCT SHOWCASE TABS (Sản phẩm Hot, Mới, Khuyến Mại)
========================================================== */
.product-showcase-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.product-showcase-title {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-showcase-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
}

.product-tab-btn {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.product-tab-btn:hover {
  background: #f8fafc;
  color: var(--primary-color);
  border-color: #fca5a5;
}

.product-tab-btn.active {
  background: var(--primary-color);
  color: #ffffff !important;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.25);
}

.product-tab-pane {
  display: none;
}

.product-tab-pane.active {
  display: block;
}

/* ==========================================================
   FLOATING ACTION GROUP (Hotline + Zalo + Back to Top)
========================================================== */
.floating-action-group {
  position: fixed;
  bottom: 28px;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 9999;
}

@media (max-width: 991.98px) {
  .floating-action-group {
    display: none !important;
  }
}

.btn-floating-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.btn-floating-hotline {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #b80014 100%);
  color: #ffffff !important;
  height: 46px;
  padding: 0 16px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 700;
  gap: 8px;
}

.btn-floating-hotline:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(254, 44, 85, 0.45);
  color: #ffffff !important;
}

.hotline-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--primary-color);
  border-radius: 28px;
  animation: pulseRipple 1.8s infinite;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes pulseRipple {
  0% {
    transform: scale(0.96);
    opacity: 0.9;
  }

  70% {
    transform: scale(1.15);
    opacity: 0;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.btn-floating-zalo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0068ff;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 11px;
}

.btn-floating-zalo:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 104, 255, 0.45);
}

.btn-floating-backtotop {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e293b;
  color: #ffffff;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-floating-backtotop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-floating-backtotop:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(254, 44, 85, 0.4);
}

/* Card Shadow: 0 1px 1px #0000000d & Clean Layout */
.product-card-custom-shadow {
  border: none !important;
  box-shadow: 0 1px 1px #0000000d !important;
}

.product-price-box {
  background-color: #fff5f5 !important;
  border-radius: 8px;
}

.product-detail-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
}

@media (max-width: 991.98px) {
  .product-detail-sidebar {
    position: static;
    top: auto;
  }
}

.article-content-body {
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
  overflow-x: hidden;
  word-wrap: break-word;
  word-break: break-word;
}

.article-content-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 12px auto;
  border-radius: 6px;
}

.article-content-body table {
  max-width: 100% !important;
  width: 100% !important;
  border-collapse: collapse;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}

.article-content-body iframe {
  max-width: 100% !important;
}

.article-content-body p {
  margin-bottom: 12px;
}

/* Sản Phẩm Cùng Loại (Sidebar Right - Truncate with Ellipsis) */
.related-product-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  transition: all 0.2s ease;
  overflow: hidden;
  width: 100%;
}

.related-product-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-product-item:hover .related-product-title {
  color: var(--primary-color) !important;
}

.related-product-thumb {
  width: 60px;
  height: 60px;
  min-width: 60px;
  max-width: 60px;
  object-fit: contain;
  padding: 4px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.related-product-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.related-product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  line-height: 1.35;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.2s ease;
}

/* Auth modal nav-pills */
#authTabs .nav-link,
.nav-pills .nav-link {
  color: #4b5563;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

#authTabs .nav-link.active,
.nav-pills .nav-link.active {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Đồng bộ màu đỏ tươi (var(--primary-color)) cho Header, Button và Link trong Modal Auth */
#loginModal .modal-header,
.auth-header-cps {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

#loginModal .btn-danger,
.auth-btn-cps {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  height: 46px;
  font-size: 15px;
}

#loginModal .btn-danger:hover,
#loginModal .btn-danger:focus,
.auth-btn-cps:hover,
.auth-btn-cps:focus {
  background-color: var(--primary-color-hover) !important;
  border-color: var(--primary-color-hover) !important;
  color: #ffffff !important;
}

#loginModal .btn-link,
.auth-link-cps {
  color: var(--primary-color) !important;
}

/* Auth Inputs Style Chuẩn Ảnh Mẫu */
.auth-field-group {
  margin-bottom: 16px;
  text-align: left;
}

.auth-field-label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.3;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input {
  width: 100%;
  height: 48px;
  padding: 10px 16px;
  font-size: 14.5px;
  color: #1f2937;
  background-color: #ffffff !important;
  border: 1.5px solid #e5e7eb !important;
  /* Viền xám nhẹ mặc định */
  border-radius: 12px !important;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.08) !important;
}

.auth-input::placeholder {
  color: #cbd5e1 !important;
  font-weight: 400;
  opacity: 0.9 !important;
}

.auth-input.has-toggle {
  padding-right: 48px;
}

/* Nút ẩn/hiện mật khẩu hình tròn xám nhạt bên phải */
.auth-toggle-pwd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  z-index: 2;
}

.auth-toggle-pwd:hover {
  background: #cbd5e1;
  color: #1e293b;
}

/* Thông báo lỗi không được bỏ trống chuẩn ảnh */
.auth-error-feedback {
  display: none;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  /* Màu đỏ cam thông báo lỗi */
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.2;
}

.auth-error-feedback i {
  font-size: 13px;
  color: var(--primary-color);
}

.auth-field-group.has-error .auth-error-feedback {
  display: flex !important;
}

.auth-field-group.has-error .auth-input {
  border-color: #ff5238 !important;
  box-shadow: 0 0 0 3px rgba(255, 82, 56, 0.15) !important;
}

/* Placeholder nhạt nhẹ hơn, thanh lịch */
::placeholder {
  color: #adb5bd !important;
  opacity: 0.75 !important;
  font-size: 13.5px !important;
}

::-webkit-input-placeholder {
  color: #adb5bd !important;
  opacity: 0.75 !important;
  font-size: 13.5px !important;
}

:-moz-placeholder {
  color: #adb5bd !important;
  opacity: 0.75 !important;
  font-size: 13.5px !important;
}

::-moz-placeholder {
  color: #adb5bd !important;
  opacity: 0.75 !important;
  font-size: 13.5px !important;
}

:-ms-input-placeholder {
  color: #adb5bd !important;
  opacity: 0.75 !important;
  font-size: 13.5px !important;
}

.form-control::placeholder {
  color: #adb5bd !important;
  opacity: 0.75 !important;
  font-size: 13.5px !important;
  font-weight: 300;
}

/* Order Lookup Specific Input Styling */
.order-lookup-input {
  font-size: 14px !important;
  height: 46px;
  border: 1.5px solid #e5e7eb;
}

.order-lookup-input::placeholder {
  font-size: 13px !important;
  color: #9ca3af !important;
  font-weight: 400;
  opacity: 0.85 !important;
}

.order-lookup-input:focus {
  border-color: #ff5238 !important;
  box-shadow: 0 0 0 3px rgba(255, 82, 56, 0.12) !important;
}

/* ==========================================================================
   Account Profile Page Styles (Tài khoản của tôi)
   ========================================================================== */
.account-page-wrapper {
  min-height: calc(100vh - 200px);
}

.account-sidebar {
  border: 1px solid #edf2f7;
}

.account-user-card {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf2f7;
  margin-bottom: 16px;
}

.account-avatar-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff5238 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.25);
  margin: 0 auto 10px auto;
}

.account-user-meta {
  text-align: center;
}

.account-user-meta .user-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.account-user-meta .user-phone {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
}

.account-user-meta .user-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
}

.account-avatar-letter {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.account-nav-pills .nav-link {
  color: #4b5563;
  font-weight: 500;
  font-size: 14.5px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.account-nav-pills .nav-link i {
  margin-right: 12px !important;
  font-size: 17px;
  width: 22px;
  display: inline-block;
  text-align: center;
  vertical-align: -1px;
  flex-shrink: 0;
}

.account-nav-pills .nav-link:hover {
  background-color: #fff1f2;
  color: var(--primary-color);
}

.account-nav-pills .nav-link.active {
  background-color: #fff1f2 !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  box-shadow: none;
}

.account-nav-pills .nav-link.active i {
  color: var(--primary-color) !important;
}

.account-nav-pills .nav-link.text-danger:hover {
  background-color: #fff1f2;
}

.stat-card {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
}

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon-wrapper i {
  font-size: 24px;
}

.stat-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: #64748b;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.625rem; /* 26px to rõ ràng trên PC */
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.stat-value-money {
  font-size: 1.35rem; /* 21.6px */
  font-weight: 800;
}

.order-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.btn-filter-order {
  background: #ffffff;
  border: 1.5px solid #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 500;
  font-size: 12.5px !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.btn-filter-order:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: #fff1f2 !important;
}

.btn-filter-order.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.orders-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px !important;
}

.order-history-card {
  background-color: #ffffff;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 2px;
}

.order-history-card:hover {
  border-color: #fca5a5 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Desktop Web Order Typography (Base 14px = 0.875rem) */
.order-history-card .order-code {
  font-size: 0.9375rem;
  font-weight: 700;
}

.order-history-card .order-date {
  font-size: 0.8125rem;
}

.order-history-card .order-status-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}

.order-items-preview .item-title {
  font-size: 0.875rem; /* 14px chuẩn web */
  font-weight: 600;
  line-height: 1.4;
}

.order-items-preview .item-subtitle {
  font-size: 0.75rem;
  line-height: 1.3;
}

.order-items-preview .item-price {
  font-size: 0.875rem;
  font-weight: 600;
}

.order-items-preview .item-qty {
  font-size: 0.75rem;
}

.order-customer-info {
  font-size: 0.8125rem;
}

.order-total-label {
  font-size: 0.8125rem;
}

.order-total-val {
  font-size: 1rem;
  font-weight: 700;
}

.btn-order-detail {
  font-size: 0.8125rem;
  padding: 4px 14px;
}

.custom-profile-input {
  height: 44px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-profile-input:focus {
  border-color: #ff5238 !important;
  box-shadow: 0 0 0 3px rgba(255, 82, 56, 0.12) !important;
}

.extra-small {
  font-size: 12px;
}

/* ==========================================================================
   Account / Profile Page Mobile Optimizations
   ========================================================================== */
@media (max-width: 991.98px) {
  .account-page-wrapper {
    padding-top: 10px !important;
    padding-bottom: 24px !important;
  }

  .account-sidebar {
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }

  .account-user-card {
    display: flex !important;
    text-align: left !important;
    align-items: center !important;
    gap: 12px !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }

  .account-avatar-circle {
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .account-avatar-letter {
    font-size: 18px !important;
  }

  .account-user-card h6 {
    font-size: 13.5px !important;
    margin-bottom: 2px !important;
  }

  /* Horizontal scrollable nav pills on mobile */
  .account-nav-pills {
    flex-direction: row !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .account-nav-pills::-webkit-scrollbar {
    display: none;
  }

  .account-nav-pills .nav-link {
    white-space: nowrap !important;
    font-size: 11.5px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc;
  }

  .account-nav-pills .nav-link i {
    font-size: 13px !important;
    margin-right: 5px !important;
    width: auto !important;
  }

  .account-nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
  }

  .account-nav-pills .nav-link.active i {
    color: #ffffff !important;
  }

  .account-nav-pills .nav-link.active .badge {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
  }

  .account-welcome-card {
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }

  /* Compact 3-col Stat Cards on Mobile */
  .stat-card {
    padding: 8px 6px !important;
    border-radius: 10px !important;
  }

  .stat-icon-wrapper {
    width: 28px !important;
    height: 28px !important;
    margin-right: 0 !important;
    font-size: 13px !important;
  }

  .stat-icon-wrapper i {
    font-size: 13px !important;
  }

  .stat-label {
    font-size: 0.6875rem !important; /* 11px */
    line-height: 1.2 !important;
  }

  .stat-value {
    font-size: 0.84375rem !important; /* 13.5px */
    line-height: 1.2 !important;
  }

  .stat-value-money {
    font-size: 0.78125rem !important; /* 12.5px */
  }

  /* Mobile Orders Typography & Spacing (Bình quân ~12px = 0.75rem, các đơn cách margin rõ ràng) */
  .orders-list-wrapper {
    gap: 14px !important;
  }

  .order-history-card {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    margin-bottom: 4px !important;
  }

  .order-history-card .order-code {
    font-size: 0.8125rem !important; /* 13px bold */
  }

  .order-history-card .order-date {
    font-size: 0.6875rem !important; /* 11px */
  }

  .order-history-card .order-status-badge {
    font-size: 0.6875rem !important; /* 11px */
    padding: 3px 8px !important;
  }

  .order-items-preview .item-title {
    font-size: 0.78125rem !important; /* 12.5px - tăng nhẹ dễ đọc */
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }

  .order-items-preview .item-subtitle {
    font-size: 0.6875rem !important; /* 11px */
  }

  .order-items-preview .item-price {
    font-size: 0.75rem !important; /* 12px */
  }

  .order-items-preview .item-qty {
    font-size: 0.6875rem !important; /* 11px */
  }

  .order-customer-info {
    font-size: 0.6875rem !important; /* 11px */
  }

  .order-total-label {
    font-size: 0.6875rem !important; /* 11px */
  }

  .order-total-val {
    font-size: 0.84375rem !important; /* 13.5px bold */
  }

  .btn-order-detail {
    font-size: 0.71875rem !important; /* 11.5px */
    padding: 3px 10px !important;
  }

  .custom-profile-input {
    font-size: 12.5px !important;
    height: 38px !important;
    border-radius: 8px !important;
  }

  .form-label {
    font-size: 11.5px !important;
    margin-bottom: 3px !important;
  }
}


/* ==========================================================================
   Mobile TikTok Shop Style Catalog Layout & Horizontal Product Cards
   ========================================================================== */
.mobile-tiktok-catalog-wrapper {
  display: flex !important;
  gap: 8px;
  min-height: calc(100vh - 100px);
  margin-left: -12px;
  margin-right: -12px;
  margin-top: -6px;
  background-color: #f8fafc;
}

.mobile-cat-sidebar {
  width: 86px;
  flex-shrink: 0;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  position: sticky;
  top: 54px;
  height: calc(100vh - 54px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-cat-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
}

.mobile-cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  color: #475569;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  position: relative;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.mobile-cat-pill .mobile-cat-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.mobile-cat-pill .mobile-cat-icon {
  font-size: 18px;
  margin-bottom: 4px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.mobile-cat-pill.active {
  background: #ffffff;
  color: var(--primary-color) !important;
  font-weight: 700;
  border-left-color: var(--primary-color);
}

.mobile-cat-pill.active .mobile-cat-icon {
  background: #fff1f2;
  color: var(--primary-color);
}

.mobile-products-feed {
  width: 100%;
  padding: 0 0 30px 0;
}

.mobile-feed-header {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #edf2f7;
}

/* Card Sản Phẩm Dạng Ngang (TikTok Shop Style) */
.product-card-horizontal {
  display: flex;
  gap: 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  padding: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .product-card-horizontal:hover {
    border-color: #fca5a5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }
}

.product-card-horizontal .h-thumb-wrap {
  width: 95px;
  height: 95px;
  min-width: 95px;
  min-height: 95px;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #f1f5f9;
}

.product-card-horizontal .h-thumb-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.3s ease;
}

.product-card-horizontal:hover .h-thumb-img {
  transform: scale(1.04);
}

.product-card-horizontal .product-discount-badge {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  background: linear-gradient(135deg, #FE2C55 0%, #FF5A79 100%) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 6px 0 6px 0 !important;
  border-top-left-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  z-index: 2;
  line-height: 1.15 !important;
  letter-spacing: -0.2px;
  box-shadow: 0 1px 4px rgba(254, 44, 85, 0.25) !important;
}

.product-card-horizontal .h-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-card-horizontal .product-cat-tag {
  font-size: 11px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.2;
}

.product-card-horizontal .h-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.product-card-horizontal .h-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.product-card-horizontal .product-modern-price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
}

.product-card-horizontal .product-modern-old-price {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
  line-height: 1;
  margin-left: 4px;
}

/* Global Button Icon & Text Spacing */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-sm {
  gap: 0.375rem;
}
.btn-lg {
  gap: 0.65rem;
}
.btn > i,
.btn > svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}