/**
 * Stylesheet cho Shop Bán Tài Khoản Premium/Plus
 * Tác giả: Huỳnh Nguyễn Thành Đạt
 */

/* ===================================================
   1. Banner Thông Báo & Ticker Cao Cấp
   =================================================== */
.shop-ticker-bar {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 50%, rgba(15, 23, 42, 0.95) 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.55rem 0;
  position: relative;
  z-index: 99;
  overflow: hidden;
}

.shop-ticker-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b, #10b981, #6366f1);
  background-size: 300% 100%;
  animation: tickerBorderGradient 6s linear infinite;
}

@keyframes tickerBorderGradient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

.shop-ticker-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.shop-ticker-badge-wrap {
  flex-shrink: 0;
}

.shop-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
  user-select: none;
}

.ticker-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  animation: pulseBeacon 1.4s ease-in-out infinite alternate;
}

@keyframes pulseBeacon {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
    box-shadow: 0 0 2px #ffffff;
  }

  100% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 8px #ffffff;
  }
}

.shop-ticker-marquee-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
}

.shop-ticker-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  will-change: transform;
  animation: tickerScroll 28s linear infinite;
  padding-left: 100%;
}

.shop-ticker-marquee-wrap:hover .shop-ticker-marquee-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.ticker-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.2px;
}

.ticker-text-sep {
  color: #ec4899;
  font-size: 0.75rem;
  opacity: 0.8;
}

.ticker-text-dup,
.ticker-text-dup2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
}

.shop-ticker-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ticker-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ticker-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: rotate(90deg);
}

@media (max-width: 640px) {
  .shop-ticker-bar {
    padding: 0.45rem 0;
  }

  .shop-ticker-badge {
    padding: 0.22rem 0.55rem;
    font-size: 0.68rem;
  }

  .ticker-badge-text {
    display: none;
  }

  .ticker-text,
  .ticker-text-dup,
  .ticker-text-dup2 {
    font-size: 0.82rem;
  }
}

/* ===================================================
   2. Hero Header & Bộ Lọc (Tabs & Filters)
   =================================================== */
.shop-hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  position: relative;
}

.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.shop-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .shop-title {
  background: linear-gradient(135deg, #0f172a 30%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shop-desc {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Tab chuyển đổi Shop vs Kho tài khoản */
.shop-view-tabs {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.shop-view-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  min-height: 42px;
}

.shop-view-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

@media (max-width: 640px) {
  .shop-view-tabs {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--radius-lg);
    gap: 0.35rem;
    padding: 0.3rem;
  }

  .shop-view-tabs::-webkit-scrollbar {
    display: none;
  }

  .shop-view-btn {
    flex-shrink: 0;
    flex: 1;
    min-width: max-content;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }
}

/* ===================================================
   Mobile & Tablet Responsive Form Grids
   =================================================== */
.admin-settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .admin-settings-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.admin-form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .admin-form-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .admin-form-grid-4 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.admin-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .admin-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.admin-form-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .admin-form-grid-2-1 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.admin-form-grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {}

/* ===================================================
   ADMIN PRODUCT MODAL: Giao Diện Thêm/Sửa Sản Phẩm Cân Bằng & Hiện Đại (2026)
   =================================================== */
.admin-product-modal-container {
  max-width: 860px !important;
  width: min(94vw, 860px) !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 20px !important;
  background: var(--bg-surface, #0f172a) !important;
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12)) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
}

[data-theme="light"] .admin-product-modal-container {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
}

#adminProductForm {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  flex: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
}

.admin-product-modal-body {
  padding: 1.15rem 1.4rem !important;
  max-height: calc(88vh - 135px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  /* STRICTLY PREVENT HORIZONTAL SCROLLING! */
  display: flex !important;
  flex-direction: column !important;
  gap: 1.1rem !important;
  flex: 1 !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Modal */
.admin-product-modal-body::-webkit-scrollbar {
  width: 6px;
}

.admin-product-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

[data-theme="light"] .admin-product-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

/* Grouping Section Cards */
.admin-form-section,
.quick-fill-section {
  flex-shrink: 0 !important;
  /* CRITICAL: Never squish sections! */
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="light"] .admin-form-section,
[data-theme="light"] .quick-fill-section {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.admin-form-section:focus-within {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
}

.section-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.4rem;
}

[data-theme="light"] .section-head-bar {
  border-bottom-color: #e2e8f0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-primary, #f8fafc);
  text-transform: uppercase;
}

[data-theme="light"] .section-title {
  color: #1e293b;
}

.section-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.section-hint {
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
}

/* Quick Fill Assistant Section */
.quick-fill-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.06) 100%);
  border: 1.5px dashed rgba(99, 102, 241, 0.45);
}

[data-theme="light"] .quick-fill-section {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border-color: #c7d2fe;
}

.quick-fill-controls {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.quick-fill-select-wrap {
  flex: 1;
  min-width: 0;
}

.quick-fill-controls select {
  font-size: 0.86rem;
  font-weight: 600;
  border-color: rgba(99, 102, 241, 0.35);
  background: var(--bg-surface, #0f172a);
}

[data-theme="light"] .quick-fill-controls select {
  background: #ffffff;
}

.btn-quick-fill-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-quick-fill-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.quick-fill-chips-wrap {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.chips-label {
  font-size: 0.73rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 700;
}

/* Balanced Grid Layouts */
.admin-grid-2-balanced {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .admin-grid-2-balanced {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Section 2: 2x2 Balanced Grid (Giá Bán | Giá Gốc, Thời Hạn | Huy Hiệu) */
.admin-grid-4-balanced {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

@media (max-width: 540px) {
  .admin-grid-4-balanced {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.admin-grid-2-equal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .admin-grid-2-equal {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Image Section Grid: Controls + Preview Card (Flex-wrap prevents horizontal blowout) */
.admin-grid-img-balanced {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.img-controls-col {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.img-preview-col {
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 640px) {

  .img-controls-col,
  .img-preview-col {
    flex: 1 1 100%;
    width: 100%;
  }

  .admin-squircle-preview-box {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Form Label Balanced */
.form-label-balanced {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}

[data-theme="light"] .form-label-balanced {
  color: #1e293b;
}

.required-star {
  color: #ef4444;
  font-weight: 800;
}

.label-badge-action {
  font-size: 0.72rem;
  font-weight: 600;
  color: #818cf8;
  letter-spacing: 0.2px;
}

.label-hint-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
}

.field-subtext {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* Price & Hint Balanced Height */
.price-hint-balanced {
  min-height: 18px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 0.3rem;
  color: #10b981;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-hint-balanced.hint-muted {
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
}

/* Fused Input Combo */
.form-input-combo-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.form-input-combo-wrap .combo-input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  flex: 1;
  min-width: 0;
}

.form-input-combo-wrap .combo-select {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: none !important;
  background: rgba(30, 41, 59, 0.9);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
  max-width: 96px;
  width: auto;
  border-color: var(--border-glass, rgba(255, 255, 255, 0.15));
}

[data-theme="light"] .form-input-combo-wrap .combo-select {
  background: #f1f5f9;
  color: #4f46e5;
  border-color: #cbd5e1;
}

.form-input-combo-wrap .combo-select-wide {
  max-width: 140px !important;
  width: auto;
  flex-shrink: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Live Squircle Preview Card */
.admin-squircle-preview-box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
  padding: 0.6rem 0.75rem;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 215px;
  min-width: 0;
  overflow: hidden;
}

[data-theme="light"] .admin-squircle-preview-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.admin-squircle-thumb-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(135% 135% at 25% 15%, #223048 0%, #131b2c 60%, #090e1a 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .admin-squircle-thumb-wrap {
  background: radial-gradient(135% 135% at 25% 15%, #ffffff 0%, #f1f5f9 65%, #e2e8f0 100%);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), inset 0 1.5px 1.5px #ffffff;
}

.admin-squircle-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 36%, transparent 58%);
  pointer-events: none;
  z-index: 2;
}

.admin-squircle-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.admin-squircle-thumb-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.preview-badge-status {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #10b981;
  letter-spacing: 0.3px;
}

.preview-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .preview-title {
  color: #1e293b;
}

.preview-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.25;
}

/* Past Gallery Box */
.past-gallery-box {
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.06));
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

[data-theme="light"] .past-gallery-box {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.gallery-title {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.past-gallery-track {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  width: 100%;
  min-width: 0;
}

/* Balanced Textareas */
.balanced-textarea {
  min-height: 108px !important;
  max-height: 150px !important;
  line-height: 1.45 !important;
  resize: vertical !important;
}

.balanced-textarea-sub {
  min-height: 72px !important;
  max-height: 120px !important;
  line-height: 1.45 !important;
  resize: vertical !important;
}

/* Modal Footer */
.admin-product-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem !important;
  border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08)) !important;
  background: var(--bg-surface, #0f172a) !important;
}

[data-theme="light"] .admin-product-modal-footer {
  background: #ffffff !important;
  border-top-color: #e2e8f0 !important;
}

.btn-cancel-modal {
  padding: 0.65rem 1.25rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}

.btn-save-product {
  padding: 0.65rem 1.6rem !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4) !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-save-product:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.55) !important;
}

/* ===================================================
   Responsive Container & Zoom Scale Adaptation
   =================================================== */
.shop-container {
  width: 100% !important;
  max-width: min(94vw, 1480px) !important;
  margin: 0 auto !important;
  padding-left: clamp(0.75rem, 2.5vw, 2rem) !important;
  padding-right: clamp(0.75rem, 2.5vw, 2rem) !important;
  box-sizing: border-box !important;
}

@media (min-width: 1920px) {
  .shop-container {
    max-width: 1600px !important;
  }
}

/* ===================================================
   2. Bố Cục 2 Cột (Left Sidebar Menu & Main Content)
   =================================================== */
.shop-two-column-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(1.25rem, 2vw, 2.25rem);
  align-items: flex-start;
  margin-bottom: 3.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .shop-two-column-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Sidebar Column & Main Column chống tràn CSS Grid */
.shop-sidebar-col {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.shop-main-col {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.shop-sidebar-sticky {
  position: sticky;
  top: 85px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: calc(100vh - 95px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  padding-right: 2px;
}

.shop-sidebar-sticky::-webkit-scrollbar {
  width: 5px;
}

.shop-sidebar-sticky::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.shop-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.shop-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
}

.sidebar-head-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-total-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.shop-category-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-cat-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
}

.sidebar-cat-btn .cat-icon {
  font-size: 1.15rem;
  margin-right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.sidebar-cat-btn .cat-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-cat-btn .cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.sidebar-cat-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: translateX(3px);
}

.sidebar-cat-btn.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.04) 100%);
  border-color: rgba(99, 102, 241, 0.35);
  color: #818cf8;
  font-weight: 800;
  box-shadow: inset 3px 0 0 #6366f1;
}

.sidebar-cat-btn.active .cat-count {
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

/* Sidebar VIP Support Widget */
.shop-sidebar-widget {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.shop-sidebar-widget::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.widget-glow-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  letter-spacing: 0.5px;
}

.shop-sidebar-widget .widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.shop-sidebar-widget .widget-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.sidebar-widget-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
}

.sidebar-widget-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
}

/* Mobile & Tablet Adaptation for Sidebar */
@media (max-width: 992px) {
  .shop-sidebar-sticky {
    position: static;
  }

  .shop-sidebar-card {
    padding: 0.85rem 1rem;
  }

  .shop-sidebar-head {
    display: none;
  }

  .shop-category-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shop-category-menu::-webkit-scrollbar {
    display: none;
  }

  .sidebar-cat-btn {
    flex-shrink: 0;
    width: auto;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    font-size: 0.85rem;
    gap: 0.35rem;
  }

  .sidebar-cat-btn .cat-icon {
    margin-right: 0.25rem;
  }

  .sidebar-cat-btn.active {
    box-shadow: none;
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.2);
  }

  .shop-sidebar-widget {
    display: none;
  }
}

/* Toolbar & Quick Tags */
.shop-toolbar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg);
  padding: clamp(0.85rem, 1.5vw, 1.25rem);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.shop-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.shop-search-box {
  position: relative;
  flex: 1;
  min-width: min(100%, 220px);
}

.shop-search-box input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.65rem 2.5rem 0.65rem 2.5rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.shop-search-box input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.shop-search-box .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.shop-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sort-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.shop-sort-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.shop-sort-select:focus {
  border-color: var(--accent-primary);
}

@media (max-width: 680px) {
  .shop-toolbar-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .shop-search-box {
    width: 100%;
    min-width: 0;
  }

  .shop-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .shop-sort-select {
    flex: 1;
  }
}

/* Quick Tags */
.shop-quick-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.quick-tag-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.quick-tag-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-tag-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent-primary);
  color: #c7d2fe;
  transform: translateY(-1px);
}

/* Floating Zalo Support Button */
.shop-floating-zalo {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-floating-zalo:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.65);
}

.floating-zalo-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.floating-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  border: 2px solid #38bdf8;
  animation: pulseZalo 2s infinite;
  pointer-events: none;
}

@keyframes pulseZalo {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.15);
    opacity: 0;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .shop-floating-zalo {
    right: 14px;
    bottom: 16px;
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .shop-floating-zalo {
    right: 12px;
    bottom: 12px;
    padding: 0.5rem 0.8rem;
    font-size: 0.78rem;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
  }
}

/* ===================================================
   Menu Navbar Danh Mục (Category Horizontal Navbar)
   =================================================== */
.shop-category-navbar-wrapper {
  position: sticky;
  top: 68px;
  z-index: 95;
  margin-bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

[data-theme="light"] .shop-category-navbar-wrapper {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.shop-category-navbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}

.shop-category-navbar::-webkit-scrollbar {
  display: none;
}

.shop-cat-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.shop-cat-nav-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.shop-cat-nav-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 3px 12px var(--accent-glow) !important;
  transform: translateY(-1px);
}

.cat-nav-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.cat-nav-label {
  line-height: 1.2;
}

.cat-nav-count {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  line-height: 1;
}

.shop-cat-nav-btn.active .cat-nav-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

@media (max-width: 640px) {
  .shop-category-navbar-wrapper {
    top: 54px;
    padding: 0.35rem 0.45rem;
    margin-bottom: 1.15rem;
    border-radius: var(--radius-md);
  }

  .shop-cat-nav-btn {
    padding: 0.42rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .cat-nav-icon {
    font-size: 0.95rem;
  }

  .cat-nav-count {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
  }
}

/* ===================================================
   3. Thẻ Sản Phẩm (Product Cards Grid) - Đã được chuẩn hóa thống nhất tại Mục 6 bên dưới
   =================================================== */

/* Ritokey Floating Customer Care Button */
.shop-floating-support {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 998;
}

.btn-floating-support {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff !important;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-floating-support:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.6);
}

@media (max-width: 640px) {
  .shop-floating-support {
    bottom: 14px;
    right: 12px;
  }

  .btn-floating-support {
    padding: 0.48rem 0.85rem;
    font-size: 0.76rem;
    gap: 0.35rem;
  }
}

.product-body {
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-sizing: border-box;
}

.product-category-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  height: 2.7em;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-short-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  height: 2.9em;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-features-quick {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  min-height: 4.2rem;
}

.product-features-quick li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-features-quick li::before {
  content: '✓';
  color: #10b981;
  font-weight: 900;
  flex-shrink: 0;
}

.product-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-sizing: border-box;
}

.product-price-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.product-price-origin {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1.2;
}

.product-price-current {
  font-size: 1.15rem;
  font-weight: 900;
  color: #10b981;
  letter-spacing: -0.3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-buy-now {
  background: var(--accent-primary);
  color: #ffffff !important;
  border: none;
  padding: 0.52rem 0.95rem;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.btn-buy-now:hover:not(:disabled):not(.btn-out-of-stock) {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-buy-now:disabled,
.btn-buy-now.btn-out-of-stock {
  background: rgba(100, 116, 139, 0.35) !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-buy-now.btn-contact {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

/* ===================================================
   TỐI ƯU SẢN PHẨM MOBILE: 2 CỘT NHỎ GỌN, CHUẨN ĐẸP
   =================================================== */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-bottom: 2.25rem;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .product-thumb-wrap {
    aspect-ratio: 16 / 11;
    min-height: unset;
  }

  .product-badge-tag {
    top: 5px;
    left: 5px;
    font-size: 0.58rem;
    padding: 0.12rem 0.38rem;
    border-radius: 4px;
  }

  .product-duration-tag {
    top: 5px;
    right: 5px;
    font-size: 0.58rem;
    padding: 0.12rem 0.38rem;
    border-radius: 4px;
  }

  .product-body {
    padding: 0.65rem 0.65rem 0.75rem !important;
  }

  .product-category-name {
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
  }

  .product-title {
    font-size: 0.85rem;
    line-height: 1.3;
    height: 2.6em;
    margin-bottom: 0.3rem;
  }

  /* Ẩn mô tả dài và danh sách tính năng trên thẻ 2 cột mobile để giữ chiều cao nhỏ gọn */
  .product-short-desc,
  .product-features-quick {
    display: none !important;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding-top: 0.55rem;
  }

  .product-price-box {
    width: 100%;
  }

  .product-price-current {
    font-size: 1.02rem;
  }

  .product-price-origin {
    font-size: 0.68rem;
  }

  .btn-buy-now {
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 360px) {
  .products-grid {
    gap: 0.45rem !important;
  }

  .product-body {
    padding: 0.5rem 0.5rem 0.65rem !important;
  }

  .product-title {
    font-size: 0.8rem;
  }

  .product-price-current {
    font-size: 0.95rem;
  }
}

/* VIP Support Bar at bottom */
.shop-vip-support-bar {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.vip-support-content {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

/* Không cho nút Zalo kế thừa width:100% của .sidebar-widget-btn khi nằm trong
   thanh hỗ trợ ngang. Nếu để width:100%, flex sẽ ép phần nội dung bên trái
   xuống còn vài chục pixel và từng chữ bị xếp dọc. */
.shop-vip-support-bar .btn-vip-zalo {
  width: auto;
  flex: 0 0 auto;
  max-width: 100%;
}

.vip-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.35rem 0 0.25rem;
}

.vip-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.btn-vip-zalo {
  background: linear-gradient(135deg, #0284c7, #06b6d4) !important;
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.btn-vip-zalo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.55);
}

@media (max-width: 768px) {
  .shop-vip-support-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1.1rem 1rem;
    gap: .85rem;
  }

  .shop-vip-support-bar .widget-glow-badge {
    max-width: 100%;
    box-sizing: border-box;
  }

  .vip-support-content {
    width: 100%;
  }

  .vip-title {
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .vip-desc {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .shop-vip-support-bar .btn-vip-zalo {
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* Admin Table Scroll Wrappers */
.admin-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

.admin-table-scroll-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.btn-buy-now.btn-contact:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5) !important;
}

.product-badge-tag.badge-out-of-stock {
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
}

.product-badge-tag.badge-contact {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
}

/* ===================================================
   4. Modal Thanh Toán VietQR
   =================================================== */
.qr-modal-body {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.qr-modal-body > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.qr-detail-col {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.qr-preview-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  box-sizing: border-box;
}

.qr-img {
  width: 100%;
  max-width: 215px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto;
}

.qr-scan-guide {
  font-size: 0.78rem;
  color: #475569;
  margin-top: 0.55rem;
  font-weight: 600;
  line-height: 1.4;
}

.qr-info-table {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .qr-info-table {
  border-color: #e2e8f0;
}

.qr-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.88rem;
  min-width: 0;
}

[data-theme="light"] .qr-info-row {
  border-bottom-color: #f1f5f9;
}

.qr-info-row:last-child {
  border-bottom: none;
}

.qr-info-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.qr-info-val-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.qr-info-val {
  font-weight: 800;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.btn-copy-chip {
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-primary, #6366f1);
  border-radius: 6px;
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-copy-chip:hover {
  background: var(--accent-primary, #6366f1);
  color: #fff;
}

.qr-important-note {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.06) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md, 12px);
  padding: 0.8rem 1rem;
  font-size: 0.83rem;
  color: #fde68a;
  margin: 0.85rem 0 0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}

.qr-important-note strong {
  color: #fbbf24;
}

[data-theme="light"] .qr-important-note {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

[data-theme="light"] .qr-important-note strong {
  color: #b45309;
}

.qr-important-note span:first-child {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.qr-delivery-note {
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md, 12px);
  padding: 0.8rem 1rem;
  font-size: 0.83rem;
  color: #a7f3d0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.65rem;
  line-height: 1.5;
}

.qr-delivery-note strong {
  color: #34d399;
}

[data-theme="light"] .qr-delivery-note {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

[data-theme="light"] .qr-delivery-note strong {
  color: #047857;
}

@media (max-width: 720px) {
  .qr-modal-body {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .qr-preview-box {
    max-width: 230px;
    padding: 0.75rem;
  }

  .qr-img {
    max-width: 195px;
  }
}

@media (max-width: 480px) {
  .qr-info-row {
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    gap: 0.5rem;
  }

  .qr-info-label {
    font-size: 0.76rem;
  }

  .qr-important-note,
  .qr-delivery-note {
    padding: 0.65rem 0.8rem;
    font-size: 0.78rem;
  }
}

/* Khung Thông Báo Trạng Thái Đơn Hàng Trong Kho */
.order-notice-card {
  border-radius: var(--radius-md, 12px);
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.order-notice-card.notice-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(180, 83, 9, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.06);
}

.order-notice-card.notice-info {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(14, 116, 144, 0.05) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.06);
}

.order-notice-card.notice-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(4, 120, 87, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.06);
}

.order-notice-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-notice-body {
  flex: 1;
  min-width: 240px;
}

.order-notice-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.notice-warning .order-notice-title {
  color: #fbbf24;
}

.notice-info .order-notice-title {
  color: #38bdf8;
}

.notice-success .order-notice-title {
  color: #34d399;
}

.order-notice-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
}

/* ===================================================
   5. Kho Tài Khoản Của Tôi (My Orders / Accounts)
   =================================================== */
.my-orders-container {
  max-width: 960px;
  margin: 0 auto;
}

.order-history-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease;
}

.order-history-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1rem;
}

.order-code-badge {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.order-status-pill {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.order-status-pill.waiting_transfer {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.order-status-pill.transferred {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.order-status-pill.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.order-status-pill.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.order-credentials-box {
  background: #090d16;
  border: 2px dashed #10b981;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  position: relative;
}

.order-credentials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.order-credentials-title {
  color: #34d399;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-credentials-text {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #a7f3d0;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}

/* ===================================================
   6. Modal System Trong Admin Shop & Quản Trị
   =================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.modal.active,
.modal[style*="display: flex"] {
  display: flex !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10001;
  animation: modalFadeIn 0.25s ease forwards;
}

.modal-container {
  position: relative;
  z-index: 10002;
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.14));
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(99, 102, 241, 0.18);
  width: 100%;
  max-width: min(92vw, 720px);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  animation: modalScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mobile Bottom-Sheet Modal Enhancement (Ưu tiên mobile tối đa) */
@media (max-width: 640px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-container {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none;
    border-left: none;
    border-right: none;
    animation: modalSlideUpMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes modalSlideUpMobile {
    from {
      opacity: 0;
      transform: translateY(100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .modal-header {
    padding-top: 1.4rem;
    position: relative;
  }

  .modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.02);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  transform: rotate(90deg);
}

.modal-body {
  padding: clamp(1rem, 2vw, 1.5rem);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.modal-footer {
  padding: clamp(0.75rem, 1.5vw, 1.15rem) clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* Detail Modal Specific Scroll & Features Styling */
.modal-detail-body {
  padding: 1.35rem 1.5rem !important;
  overflow-y: auto !important;
  max-height: calc(86vh - 135px) !important;
  -webkit-overflow-scrolling: touch;
}

.modal-features-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
}

.modal-features-list li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.55rem !important;
  font-size: 0.86rem !important;
  line-height: 1.55 !important;
  color: var(--text-secondary, #cbd5e1) !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
}

[data-theme="light"] .modal-features-list li {
  color: #334155 !important;
}

.modal-features-list li::before {
  content: '✓' !important;
  color: #10b981 !important;
  font-weight: 900 !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
  font-size: 0.95rem !important;
}

/* Order Customer Note Styling */
.modal-order-note-wrap {
  background: var(--bg-surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 10px);
  padding: 0.85rem 1rem;
}

[data-theme="light"] .modal-order-note-wrap {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.shop-note-textarea {
  font-family: inherit;
  width: 100%;
  line-height: 1.5;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-note-textarea:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  outline: none !important;
}

[data-theme="light"] .shop-note-textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .shop-note-textarea:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
}

/* Clean Dismiss Button for Detail Modal */
.btn-modal-dismiss {
  padding: 0.65rem 1.4rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: rgba(148, 163, 184, 0.12) !important;
  color: var(--text-primary, #f1f5f9) !important;
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.14)) !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 95px !important;
  height: 42px !important;
}

[data-theme="light"] .btn-modal-dismiss {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

.btn-modal-dismiss:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  transform: translateY(-1px);
}

/* =========================================================================
   MODAL FOOTER RESPONSIVE SYSTEM (Mobile & Desktop)
   Đồng bộ giao diện nút bấm cho Shop Clone & Shop Tài Khoản Bản Quyền
   ========================================================================= */
.modal-detail-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 1rem 1.5rem !important;
  border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08)) !important;
  background: var(--bg-surface, #0f172a) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

[data-theme="light"] .modal-detail-footer {
  background: #ffffff !important;
  border-top-color: #e2e8f0 !important;
}

/* Nút bấm trên Desktop */
.modal-detail-footer .btn-buy-now,
.modal-detail-footer .btn-primary,
.modal-detail-footer .btn-success,
.modal-detail-footer .btn-modal-buy,
.modal-footer .btn-modal-buy {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 1.4rem !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.modal-detail-footer .btn-secondary,
.modal-detail-footer .btn-modal-dismiss,
.modal-footer .btn-modal-dismiss {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 1.25rem !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

/* Nút bấm trên Mobile & Tablet (< 768px) */
@media (max-width: 768px) {
  .modal-footer,
  .modal-detail-footer {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 0.55rem !important;
    padding: 0.75rem 1rem 0.95rem 1rem !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    background: var(--bg-surface, #0f172a) !important;
    border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08)) !important;
  }

  [data-theme="light"] .modal-footer,
  [data-theme="light"] .modal-detail-footer {
    background: #ffffff !important;
    border-top-color: #e2e8f0 !important;
  }

  .modal-footer > *,
  .modal-detail-footer > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex: none !important;
  }

  /* Nút Mua Hàng Chính (Primary CTA) trên mobile */
  .modal-footer .btn-buy-now,
  .modal-footer .btn-primary,
  .modal-footer .btn-success,
  .modal-footer .btn-modal-buy,
  .modal-detail-footer .btn-buy-now,
  .modal-detail-footer .btn-primary,
  .modal-detail-footer .btn-success,
  .modal-detail-footer .btn-modal-buy,
  #detailModalBuyBtn,
  #btnOpenBuyFromDetail,
  #btnConfirmTransferred,
  #btnSubmitBuyClone {
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    flex: none !important;
    padding: 0 1rem !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.45rem !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28) !important;
  }

  /* Nút Đóng / Hủy trên mobile */
  .modal-footer .btn-secondary,
  .modal-footer .btn-modal-dismiss,
  .modal-footer button[onclick*="closeDetailModal"],
  .modal-footer button[onclick*="closeBuyCloneModal"],
  .modal-detail-footer .btn-secondary,
  .modal-detail-footer .btn-modal-dismiss {
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: none !important;
    padding: 0 1rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.35rem !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-secondary, #cbd5e1) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  [data-theme="light"] .modal-footer .btn-secondary,
  [data-theme="light"] .modal-footer .btn-modal-dismiss,
  [data-theme="light"] .modal-footer button[onclick*="closeDetailModal"],
  [data-theme="light"] .modal-footer button[onclick*="closeBuyCloneModal"],
  [data-theme="light"] .modal-detail-footer .btn-secondary,
  [data-theme="light"] .modal-detail-footer .btn-modal-dismiss {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
  }

  @media (max-width: 440px) {
    #shopPaymentMethodGrid {
      grid-template-columns: 1fr !important;
      gap: 0.6rem !important;
    }
  }
}

.modal-product-header {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.modal-product-thumb-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(135% 135% at 25% 15%, #25334d 0%, #151d30 60%, #0a0f1d 100%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 2px 2px rgba(255, 255, 255, 0.28), inset 0 -2px 3px rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .modal-product-thumb-wrap {
  background: radial-gradient(135% 135% at 25% 15%, #ffffff 0%, #f1f5f9 65%, #e2e8f0 100%);
  border: 2px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), inset 0 2px 2px #ffffff;
}

.modal-product-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 38%, transparent 58%);
  pointer-events: none;
  z-index: 2;
}

.modal-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

@media (max-width: 480px) {
  .modal-product-header {
    gap: 0.85rem;
  }

  .modal-product-thumb-wrap {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    padding: 6px;
  }
}

/* ===================================================
   7. Giao Diện Bảng Đơn Hàng & Sản Phẩm Tối Ưu Mobile / Tablet (Admin Cards)
   =================================================== */
@media (max-width: 768px) {

  #adminOrdersTable,
  #adminOrdersTable thead,
  #adminOrdersTable tbody,
  #adminOrdersTable tr,
  #adminOrdersTable td,
  #adminProductsTable,
  #adminProductsTable thead,
  #adminProductsTable tbody,
  #adminProductsTable tr,
  #adminProductsTable td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  #adminOrdersTable thead,
  #adminProductsTable thead {
    display: none;
  }

  #adminOrdersTable tr,
  #adminProductsTable tr {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  #adminOrdersTable td,
  #adminProductsTable td {
    padding: 0.4rem 0 !important;
    border: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }

  #adminOrdersTable td::before,
  #adminProductsTable td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: left;
    padding-right: 0.75rem;
    flex-shrink: 0;
  }

  #adminOrdersTable td:last-child,
  #adminProductsTable td:last-child {
    margin-top: 0.75rem;
    padding-top: 0.85rem !important;
    border-top: 1px solid var(--border-glass) !important;
    justify-content: flex-end;
  }

  #adminOrdersTable td:last-child::before,
  #adminProductsTable td:last-child::before {
    display: none;
  }

  #adminOrdersTable td:last-child div,
  #adminProductsTable td:last-child div {
    width: 100%;
    display: flex !important;
    gap: 0.5rem;
  }

  #adminOrdersTable td:last-child button,
  #adminProductsTable td:last-child button {
    flex: 1;
    min-height: 42px;
    font-size: 0.88rem;
  }
}

/* Helper text & Sample chips */
.sample-img-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sample-img-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.price-hint {
  font-size: 0.76rem;
  color: #10b981;
  font-weight: 600;
  margin-top: 0.3rem;
  min-height: 1.1rem;
}

/* ===================================================
   8. Trust Badges & Nâng Cấp Giao Diện User / Admin
   =================================================== */
/* ===================================================
   8. Trust Badges & Nâng Cấp Giao Diện User / Admin
   =================================================== */
.shop-trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
  margin: 2rem 0 2.25rem 0;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.trust-badge-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 100%;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trust-badge-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.trust-badge-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.trust-badge-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trust-badge-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 540px) {
  .shop-trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin: 1.25rem 0 1.5rem 0;
  }

  .trust-badge-card {
    padding: 0.65rem 0.75rem;
    gap: 0.55rem;
    border-radius: var(--radius-md);
  }

  .trust-badge-icon-box {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
  }

  .trust-badge-title {
    font-size: 0.78rem;
  }

  .trust-badge-desc {
    font-size: 0.68rem;
    line-height: 1.25;
  }
}

/* Giá Liên Hệ Báo Giá */
.contact-price-text {
  color: #38bdf8 !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* Admin Toolbar Filter Elements */
.admin-select-filter {
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.admin-select-filter:hover,
.admin-select-filter:focus {
  border-color: var(--accent-primary) !important;
  outline: none;
}

/* Admin Glass Stat Cards tự co giãn đều hàng */
.admin-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .admin-stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

@media (max-width: 380px) {
  .admin-stat-row {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}



/* ===================================================
   MOBILE SHOP V2 - GỌN, VỪA MÀN HÌNH & KHO TÀI KHOẢN
   =================================================== */
@media (max-width: 640px) {
  .shop-container {
    width: 100%;
    max-width: 100%;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box;
  }

  .shop-hero {
    padding-left: 4px;
    padding-right: 4px;
  }

  .shop-title {
    font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .shop-desc {
    font-size: .82rem !important;
    line-height: 1.5;
  }

  .shop-view-tabs {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    box-sizing: border-box;
  }

  .shop-view-tabs .shop-view-btn {
    min-width: 0 !important;
    width: 100%;
    justify-content: center;
    padding: .58rem .35rem !important;
    font-size: .72rem !important;
    line-height: 1.25;
    white-space: normal !important;
  }

  .shop-trust-badges {
    grid-template-columns: 1fr 1fr !important;
    gap: .55rem !important;
  }

  .shop-toolbar-card {
    padding: .7rem !important;
    border-radius: 13px;
  }

  .shop-quick-tags {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .shop-quick-tags::-webkit-scrollbar {
    display: none;
  }

  .quick-tag-label,
  .quick-tag-btn {
    flex-shrink: 0;
  }

  .shop-category-navbar-wrapper {
    position: sticky;
    top: 52px;
    z-index: 90;
  }

  .shop-category-navbar {
    gap: .4rem;
  }

  .shop-cat-nav-btn {
    padding: .46rem .65rem !important;
    font-size: .74rem !important;
  }

  .cat-nav-icon {
    font-size: .88rem;
  }

  .cat-nav-count {
    font-size: .62rem;
    padding: .09rem .35rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .product-card {
    min-width: 0;
  }

  .product-thumb-wrap {
    aspect-ratio: 1.28 / 1;
  }

  .product-body {
    min-width: 0;
  }

  .product-category-name,
  .product-title,
  .product-price-current,
  .product-price-origin {
    overflow-wrap: anywhere;
  }

  .product-title {
    font-size: .82rem !important;
    height: 2.55em;
  }

  .product-price-current {
    font-size: .94rem !important;
    white-space: normal;
    line-height: 1.25;
  }

  .contact-price-text {
    font-size: .82rem !important;
    line-height: 1.25;
  }

  .btn-buy-now {
    min-height: 34px;
    font-size: .72rem !important;
  }

  /* Kho tài khoản: không để hàng thông tin dài phá chiều rộng */
  #shopViewMyOrders>.my-orders-container {
    width: 100%;
    min-width: 0;
  }

  #shopViewMyOrders .my-orders-container>div:first-child {
    align-items: stretch !important;
  }

  #shopViewMyOrders .my-orders-container>div:first-child>div {
    min-width: 0;
  }

  #shopViewMyOrders .my-orders-container h2 {
    font-size: 1.18rem !important;
    line-height: 1.3;
  }

  .order-history-card {
    padding: .8rem !important;
    margin-bottom: .8rem;
    border-radius: 13px;
    min-width: 0;
    overflow: hidden;
  }

  .order-head {
    align-items: flex-start;
    padding-bottom: .7rem;
    margin-bottom: .7rem;
  }

  .order-code-badge {
    font-size: .78rem;
  }

  .order-status-pill {
    font-size: .68rem;
    padding: .24rem .55rem;
  }

  .order-history-card h4 {
    font-size: .98rem !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .order-history-card .order-main-info,
  .order-history-card>div {
    min-width: 0;
  }

  .order-credentials-box {
    padding: .8rem !important;
    overflow: hidden;
  }

  .order-credentials-header {
    align-items: flex-start;
  }

  .order-credentials-text {
    font-size: .78rem !important;
  }

  /* Các dòng username/password trong HTML render bằng inline style */
  .order-history-card strong,
  .order-history-card span,
  .order-history-card div {
    max-width: 100%;
  }

  .btn-copy-chip {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Modal shop: vừa màn hình, không bị nút footer khuất */
  .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-footer {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .modal-footer .btn,
  .modal-footer .btn-buy-now {
    flex: 0 0 auto;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .shop-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .products-grid {
    gap: 6px !important;
  }

  .product-body {
    padding: .55rem !important;
  }

  .product-title {
    font-size: .78rem !important;
  }

  .product-price-current {
    font-size: .88rem !important;
  }

  .btn-buy-now {
    font-size: .68rem !important;
    padding-left: .35rem !important;
    padding-right: .35rem !important;
  }
}

/* ===================================================
   GIAO DIỆN MẪU SHOP5S.VN & RITOKEY.COM
   =================================================== */

/* 1. Khối Lưu Ý & Quy Định Shop (Chuẩn Shop5s.vn) */
.shop5s-notice-box {
  background: rgba(15, 23, 42, 0.92);
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 1.15rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .shop5s-notice-box {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.shop5s-notice-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.35);
}

.shop5s-notice-icon {
  font-size: 1.15rem;
}

.shop5s-notice-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

[data-theme="light"] .shop5s-notice-title {
  color: #1d4ed8;
}

.shop5s-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.shop5s-notice-list li {
  color: #60a5fa;
  display: block;
}

[data-theme="light"] .shop5s-notice-list li {
  color: #1e40af;
}

.shop5s-notice-list strong {
  font-weight: 800;
}

.highlight-red {
  color: #ef4444 !important;
  font-weight: 900;
}

.shop5s-link {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 700;
}

[data-theme="light"] .shop5s-link {
  color: #2563eb;
}

/* 2. Thanh Cảm Ơn Xanh Lam (Chuẩn Shop5s.vn) */
.shop5s-thanks-bar {
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.shop5s-thanks-bar .thanks-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.shop5s-thanks-bar strong {
  color: #fef08a;
  font-weight: 800;
}

/* 3. Hàng Nút Danh Mục 3D Màu Tối (Chuẩn Shop5s.vn) */
.shop5s-cat-nav-wrap {
  margin-bottom: 1.15rem;
}

.shop5s-cat-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.shop5s-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.82rem;
  border-radius: var(--radius-sm, 9px);
  background: #181c26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .shop5s-cat-btn {
  background: #ffffff;
  color: #334155;
  border-color: #e2e8f0;
}

.shop5s-cat-btn:hover {
  transform: translateY(-1px);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  color: #ffffff;
}

[data-theme="light"] .shop5s-cat-btn:hover {
  color: #2563eb;
  border-color: #93c5fd;
  background: #f8fafc;
}

.shop5s-cat-btn.active {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .shop5s-cat-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.cat-btn-icon {
  font-size: 0.95rem;
}

.cat-btn-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.shop5s-cat-btn:hover .cat-btn-img {
  transform: scale(1.1);
}

.cat-btn-count {
  font-size: 0.68rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.shop5s-cat-btn.active .cat-btn-count {
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
}

/* 4. Toolbar Tìm Kiếm & Lọc Gọn Gàng */
.shop5s-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-card, rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .shop5s-toolbar {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.shop5s-search-box {
  flex: 1 1 auto;
  max-width: 420px;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  padding: 0 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="light"] .shop5s-search-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.shop5s-search-box:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.shop5s-search-box .search-icon {
  color: var(--text-muted);
  font-size: 0.92rem;
  pointer-events: none;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.shop5s-search-box input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.84rem;
  outline: none;
}

[data-theme="light"] .shop5s-search-box input {
  color: #0f172a;
}

.shop5s-search-box input::placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.shop5s-search-box .search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0 0.2rem;
  line-height: 1;
}

.shop5s-sort-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.shop5s-sort-box .sort-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.shop5s-sort-select {
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
  background: var(--bg-card, rgba(15, 23, 42, 0.8));
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 0.65rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

[data-theme="light"] .shop5s-sort-select {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* 5. Khối Phân Nhóm Danh Mục Chuẩn Ritokey.com */
.ritokey-section {
  margin-bottom: 2.25rem;
}

.ritokey-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.ritokey-section-title-wrap {
  flex: 1;
  min-width: 240px;
}

.ritokey-section-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ritokey-section-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.ritokey-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: #181c26;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

[data-theme="light"] .ritokey-more-btn {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.ritokey-more-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

/* ===================================================
   6. LƯỚI SẢN PHẨM & CARD CHUẨN RITOKEY (PREMIUM DESKTOP & MOBILE)
   =================================================== */

/* Lưới sản phẩm mặc định (Desktop >= 1200px: 4 cột rộng rãi, đồng bộ) */
.ritokey-products-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .ritokey-products-grid,
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

@media (max-width: 900px) {
  .ritokey-products-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Thẻ Sản Phẩm Chuẩn Ritokey - Thiết kế cao cấp, chiều cao 100% đồng đều */
.ritokey-card,
.product-card {
  background: linear-gradient(180deg, rgba(26, 34, 52, 0.94) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.09));
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
  padding: 1.15rem;
  box-sizing: border-box;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.28s ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  user-select: none;
}

[data-theme="light"] .ritokey-card,
[data-theme="light"] .product-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.ritokey-card:hover,
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .ritokey-card:hover,
[data-theme="light"] .product-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 0 20px rgba(99, 102, 241, 0.15);
}

.ritokey-card.is-out-of-stock,
.product-card.is-out-of-stock {
  opacity: 0.78;
}

.ritokey-card.is-out-of-stock:hover,
.product-card.is-out-of-stock:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.18);
}

.ritokey-card.is-out-of-stock .ritokey-thumb-img,
.product-card.is-out-of-stock .ritokey-thumb-img {
  filter: grayscale(60%);
}

.ritokey-floating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.25));
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  backdrop-filter: blur(8px);
  z-index: 2;
}

[data-theme="light"] .ritokey-floating-badge {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15);
}

.ritokey-card-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
  margin-bottom: 0.75rem;
}

/* Ô hiển thị hình ảnh sản phẩm - Thiết kế siêu sang (Ultra-Luxury App-Icon Squircle) */
.ritokey-thumb-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(135% 135% at 25% 15%, #223048 0%, #131b2c 60%, #090e1a 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.25), inset 0 -1.5px 2px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

[data-theme="light"] .ritokey-thumb-wrap {
  background: radial-gradient(135% 135% at 25% 15%, #ffffff 0%, #f1f5f9 65%, #e2e8f0 100%);
  border: 1.5px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08), inset 0 1.5px 1.5px #ffffff, inset 0 -1px 2px rgba(0, 0, 0, 0.04);
}

.ritokey-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 36%, transparent 58%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.ritokey-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 11px;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28));
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.ritokey-card:hover .ritokey-thumb-wrap,
.product-card:hover .ritokey-thumb-wrap {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.42), 0 0 16px rgba(99, 102, 241, 0.3), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .ritokey-card:hover .ritokey-thumb-wrap,
[data-theme="light"] .product-card:hover .ritokey-thumb-wrap {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.25), 0 0 12px rgba(99, 102, 241, 0.15), inset 0 1.5px 1.5px #ffffff;
}

.ritokey-card:hover .ritokey-thumb-img,
.product-card:hover .ritokey-thumb-img {
  transform: scale(1.12);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.42));
}

.ritokey-info-wrap {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.ritokey-title {
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.38;
  height: 2.76em;
  margin: 0 0 0.4rem 0;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.ritokey-card:hover .ritokey-title,
.product-card:hover .ritokey-title {
  color: #818cf8;
}

[data-theme="light"] .ritokey-card:hover .ritokey-title,
[data-theme="light"] .product-card:hover .ritokey-title {
  color: #4f46e5;
}

.ritokey-meta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  line-height: 1.2;
}

.ritokey-cat-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.ritokey-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

[data-theme="light"] .ritokey-duration-badge {
  color: #0284c7;
  background: #e0f2fe;
  border-color: #bae6fd;
}

/* ===================================================
   CARD FOOTER - KHỐI GIÁ & NÚT THAO TÁC (DESKTOP & MOBILE)
   =================================================== */
.ritokey-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .ritokey-card-footer {
  border-top-color: #f1f5f9;
}

.ritokey-pricing-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 90px;
}

.ritokey-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.ritokey-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #10b981;
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.4px;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
  line-height: 1.1;
}

[data-theme="light"] .ritokey-price {
  color: #059669;
  text-shadow: none;
}

.ritokey-price.contact-price {
  color: #38bdf8;
  font-size: 1.05rem;
  font-family: inherit;
  text-shadow: none;
}

[data-theme="light"] .ritokey-price.contact-price {
  color: #0284c7;
}

.ritokey-origin-price {
  font-size: 0.74rem;
  text-decoration: line-through;
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-mono, monospace);
  line-height: 1;
}

.ritokey-discount-badge {
  font-size: 0.66rem;
  font-weight: 800;
  color: #f87171;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.32);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}

[data-theme="light"] .ritokey-discount-badge {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.ritokey-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-card-detail {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #ffffff);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.48rem 0.8rem;
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

[data-theme="light"] .btn-card-detail {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-card-detail:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
  transform: translateY(-2px);
}

[data-theme="light"] .btn-card-detail:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #4338ca;
}

.btn-card-buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md, 8px);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.48rem 1.05rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  white-space: nowrap;
}

.btn-card-buy:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.btn-card-contact {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.btn-card-contact:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5) !important;
}

.btn-card-soldout,
.btn-card-buy:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background: #334155 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  transform: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ===================================================
   7. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   =================================================== */
@media (max-width: 768px) {

  /* Balanced 2-Column Category Grid on Mobile */
  .shop5s-cat-nav-wrap {
    margin: 0 0 0.95rem 0;
    padding: 0;
  }

  .shop5s-cat-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    width: 100%;
    padding: 0;
  }

  .shop5s-cat-nav::-webkit-scrollbar {
    display: none;
  }

  .shop5s-cat-btn,
  .shop5s-cat-nav .shop5s-cat-btn,
  .shop5s-cat-nav .shop-cat-nav-btn {
    width: 100% !important;
    height: 38px !important;
    padding: 0 0.45rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    gap: 0.35rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .shop5s-cat-nav .cat-btn-icon {
    font-size: 0.95rem !important;
    flex-shrink: 0;
    line-height: 1 !important;
  }

  .shop5s-cat-nav .cat-btn-text {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shop5s-cat-nav .cat-btn-count {
    font-size: 0.65rem !important;
    padding: 0.08rem 0.35rem !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    flex-shrink: 0;
  }

  /* Nút Kho Tài Khoản Của Tôi trải rộng full-width ở đáy */
  .shop5s-cat-nav .btn-view-orders {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 38px !important;
    margin-top: 0.15rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    border-style: dashed !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    font-size: 0.76rem !important;
  }

  /* Toolbar & Search Bar Mobile */
  .shop5s-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.95rem;
    border-radius: 10px;
    height: auto !important;
    min-height: unset !important;
  }

  .shop5s-search-box {
    width: 100%;
    min-width: 0;
    flex: none !important;
    height: 38px !important;
    max-height: 38px !important;
    padding: 0 0.65rem !important;
    border-radius: 8px;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
  }

  .shop5s-search-box input {
    height: 100% !important;
    min-height: unset !important;
    max-height: unset !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .shop5s-sort-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .shop5s-sort-box .sort-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
  }

  .shop5s-sort-select {
    flex: 1;
    max-width: 175px;
    height: 32px;
    font-size: 0.76rem;
    padding: 0 0.5rem;
    border-radius: 8px;
  }

  .ritokey-section-header {
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .ritokey-section-desc {
    display: none;
  }

  .ritokey-section-title {
    font-size: 1rem;
    margin: 0;
  }

  .ritokey-more-btn {
    padding: 0.32rem 0.8rem;
    font-size: 0.72rem;
  }

  .shop5s-notice-box {
    padding: 0.85rem 0.95rem;
  }

  .shop5s-notice-list {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .shop5s-thanks-bar {
    font-size: 0.78rem;
    padding: 0.55rem 0.8rem;
  }
}

/* ===================================================
   PRODUCT CARD OPTIMIZATIONS FOR MOBILE (<= 640px)
   =================================================== */
@media (max-width: 640px) {
  .ritokey-products-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .ritokey-card,
  .product-card {
    padding: 0.75rem 0.7rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .ritokey-card-main {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    align-items: flex-start;
  }

  .ritokey-thumb-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 3px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .ritokey-info-wrap {
    flex: 1;
    min-width: 0;
  }

  .ritokey-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.32;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.64em;
  }

  .ritokey-cat-text {
    font-size: 0.65rem;
    max-width: 75px;
  }

  .ritokey-duration-badge {
    font-size: 0.64rem;
    padding: 0.1rem 0.35rem;
  }

  .ritokey-floating-badge {
    font-size: 0.56rem;
    padding: 0.1rem 0.35rem;
    top: 5px;
    right: 6px;
  }

  /* Card Footer cân xứng trên Mobile */
  .ritokey-card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    margin-top: auto;
  }

  .ritokey-pricing-wrap {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .ritokey-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
  }

  .ritokey-price {
    font-size: 1.12rem;
  }

  .ritokey-origin-price {
    font-size: 0.68rem;
  }

  .ritokey-discount-badge {
    font-size: 0.62rem;
    padding: 0.08rem 0.32rem;
  }

  .ritokey-card-actions {
    width: 100%;
    display: flex;
    gap: 0.35rem;
    align-items: center;
  }

  /* Nút Chi tiết dạng icon 34x34px để không làm gãy hàng */
  .btn-card-detail {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex: 0 0 34px;
  }

  .btn-detail-text {
    display: none;
  }

  .btn-card-buy {
    flex: 1 1 auto;
    height: 34px;
    padding: 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .ritokey-products-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .ritokey-card,
  .product-card {
    padding: 0.6rem 0.55rem;
    border-radius: 11px;
  }

  .modal-container {
    width: calc(100% - 1rem) !important;
    border-radius: 16px !important;
  }

  .admin-product-modal-body {
    padding: 1rem 0.85rem !important;
  }
}

@media (max-width: 360px) {
  .ritokey-products-grid,
  .products-grid {
    grid-template-columns: 1fr !important;
  }
}
