/* ==========================================================================
   VARTORDER - E-COMMERCE STYLESHEET
   Matching Reference Layout with Video Showcase & Category Icon Grid
   ========================================================================== */

:root {
  --primary-blue: #0066cc;
  --primary-blue-hover: #0052a3;
  --primary-blue-light: #e6f0fa;
  --accent-red: #d32f2f;
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body.user-site-body {
  font-family: var(--font-family);
  background-color: #f1f5f9;
  background-image: 
    radial-gradient(at 0% 0%, rgba(255, 80, 0, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 15%, rgba(6, 182, 212, 0.07) 0px, transparent 50%),
    radial-gradient(at 50% 60%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(255, 80, 0, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  padding-top: 86px;
}

/* ==========================================================================
   DYNAMIC ATMOSPHERIC BACKDROP (Floating Ambient Light Orbs & Grid)
   ========================================================================== */
.site-ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 80, 0, 0.08) 1.2px, transparent 1.2px), 
    radial-gradient(rgba(99, 102, 241, 0.06) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  opacity: 0.75;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-orange {
  top: -120px;
  left: -80px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(255, 80, 0, 0.14) 0%, rgba(255, 122, 0, 0.05) 50%, transparent 70%);
  filter: blur(70px);
  animation: floatOrb1 16s infinite alternate ease-in-out;
}

.orb-cyan {
  top: 100px;
  right: -120px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  animation: floatOrb2 20s infinite alternate ease-in-out;
}

.orb-purple {
  top: 850px;
  left: 25%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.09) 0%, rgba(168, 85, 247, 0.04) 50%, transparent 70%);
  filter: blur(80px);
  animation: floatOrb3 18s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(1.08); }
  100% { transform: translate(40px, -40px) scale(0.92); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.12); }
  100% { transform: translate(-40px, 30px) scale(0.9); }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header-vm {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  z-index: 1000;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08);
}

/* Top Utility Bar */
.top-util-bar {
  background: #f8fafc;
  font-size: 12.5px;
  color: #64748b;
  padding: 7px 0;
  border-bottom: 1px solid #edf2f7;
}

.util-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.util-left, .util-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.util-divider {
  color: #e2e8f0;
}

.locale-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 600;
  font-size: 12.5px;
}

/* Main Header Bar */
.main-header-row {
  padding: 12px 0;
  background: #ffffff;
}

.header-grid-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.brand-logo-vm {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo-vm:hover {
  transform: scale(1.05);
}

.site-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.04));
}

.footer-logo-img {
  height: 68px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

/* Search Center */
.search-section-center {
  flex: 1;
  max-width: 620px;
  position: relative;
}

/* Search History Dropdown */
.search-history-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 150;
  display: none;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}

.search-history-dropdown.show {
  display: block;
}

.history-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.history-header-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-clear-all-history {
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-clear-all-history:hover {
  background: #fef2f2;
  text-decoration: underline;
}

.history-items-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 0;
}

.history-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.history-item-row:hover {
  background: #f1f5f9;
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.history-clock-icon {
  font-size: 13px;
  color: #94a3b8;
  flex-shrink: 0;
}

.history-keyword-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-img-thumb-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.history-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #3b82f6;
  font-size: 14px;
}

.history-img-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.history-plat-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff1f0;
  color: #e11d48;
  border: 1px solid #fecdd3;
  text-transform: uppercase;
  flex-shrink: 0;
}

.btn-delete-history {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}

.btn-delete-history:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: scale(1.1);
}

.history-empty-state {
  padding: 24px 18px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.history-empty-state i {
  font-size: 20px;
}

.search-bar-vm {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: 46px;
  padding: 3px 5px 3px 16px;
  transition: all 0.25s ease;
}

.search-bar-vm:hover {
  border-color: #94a3b8;
}

.search-bar-vm:focus-within {
  background: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 18px rgba(0, 102, 204, 0.16);
}

.search-platform-badge {
  display: flex;
  align-items: center;
  padding-right: 12px;
  border-right: 1.5px solid #e2e8f0;
}

.select-platform-inline {
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-blue);
  outline: none;
  cursor: pointer;
  padding-right: 2px;
}

.input-search-vm {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
}

.input-search-vm::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.btn-search-camera {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  margin-right: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-search-camera:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
  transform: scale(1.08);
}

.btn-search-vm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066cc 0%, #0284c7 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-search-vm:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.btn-search-vm.loading,
.btn-search-vm.is-loading {
  pointer-events: none;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  cursor: wait;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.btn-search-vm.loading i,
.btn-search-vm.is-loading i {
  font-size: 15px;
}

.image-search-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 4px 12px 4px 6px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
  margin-top: 6px;
}

.searched-thumb-preview {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #7dd3fc;
}

.btn-change-search-img {
  background: transparent;
  border: none;
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-change-search-img:hover {
  background: #e0f2fe;
  text-decoration: underline;
}

/* Right Header Actions */
.header-actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-item-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #334155;
  padding: 6px 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.action-item-btn:hover {
  color: var(--primary-blue);
  background: #f1f5f9;
}

.action-icon-wrap {
  position: relative;
  font-size: 20px;
  color: #475569;
}

.badge-bubble {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--primary-blue);
  color: white;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.action-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

/* Account Dropdown & Button */
.user-account-dropdown {
  position: relative;
}

.account-btn, .btn-account-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.account-btn:hover, .btn-account-login:hover {
  background: #f1f5f9;
}

.account-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.account-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #475569;
}

.account-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.account-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  font-weight: 800;
  color: var(--primary-blue);
  font-size: 14px;
}

/* Avatar Frame Tiers */
.avatar-frame-member {
  border: 2px solid #94a3b8 !important;
  box-shadow: 0 0 0 1.5px #ffffff !important;
  background: #f1f5f9;
}

.avatar-frame-bronze {
  border: 2.5px solid #cd7f32 !important;
  box-shadow: 0 0 0 1.5px #ffffff, 0 0 8px rgba(205, 127, 50, 0.6) !important;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.avatar-frame-silver {
  border: 2.5px solid #64748b !important;
  box-shadow: 0 0 0 1.5px #ffffff, 0 0 8px rgba(100, 116, 139, 0.6) !important;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.avatar-frame-gold {
  border: 2.5px solid #eab308 !important;
  box-shadow: 0 0 0 1.5px #ffffff, 0 0 10px rgba(234, 179, 8, 0.7) !important;
  background: linear-gradient(135deg, #fefce8, #fef08a);
}

.avatar-frame-platinum {
  border: 2.5px solid #06b6d4 !important;
  box-shadow: 0 0 0 1.5px #ffffff, 0 0 10px rgba(6, 182, 212, 0.7) !important;
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
}

.avatar-frame-diamond {
  border: 2.5px solid #a855f7 !important;
  box-shadow: 0 0 0 1.5px #ffffff, 0 0 12px rgba(168, 85, 247, 0.8) !important;
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  animation: diamondAvatarGlow 2.5s infinite alternate;
}

@keyframes diamondAvatarGlow {
  0% { box-shadow: 0 0 0 1.5px #ffffff, 0 0 8px rgba(168, 85, 247, 0.6); }
  100% { box-shadow: 0 0 0 1.5px #ffffff, 0 0 16px rgba(168, 85, 247, 0.95), 0 0 6px rgba(59, 130, 246, 0.7); }
}

/* Profile Modal Big Avatar Frames */
.profile-avatar-container.avatar-frame-member { border: 3.5px solid #94a3b8 !important; box-shadow: 0 0 0 2px #ffffff !important; }
.profile-avatar-container.avatar-frame-bronze { border: 4px solid #cd7f32 !important; box-shadow: 0 0 0 2px #ffffff, 0 0 16px rgba(205, 127, 50, 0.6) !important; }
.profile-avatar-container.avatar-frame-silver { border: 4px solid #64748b !important; box-shadow: 0 0 0 2px #ffffff, 0 0 16px rgba(100, 116, 139, 0.6) !important; }
.profile-avatar-container.avatar-frame-gold { border: 4px solid #eab308 !important; box-shadow: 0 0 0 2px #ffffff, 0 0 18px rgba(234, 179, 8, 0.75) !important; }
.profile-avatar-container.avatar-frame-platinum { border: 4px solid #06b6d4 !important; box-shadow: 0 0 0 2px #ffffff, 0 0 18px rgba(6, 182, 212, 0.75) !important; }
.profile-avatar-container.avatar-frame-diamond { border: 4px solid #a855f7 !important; box-shadow: 0 0 0 2px #ffffff, 0 0 22px rgba(168, 85, 247, 0.85) !important; }

/* Popover Tier Card */
.popover-tier-card {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.popover-tier-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.popover-tier-card .tier-card-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.popover-tier-card .tier-badge-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.popover-tier-card.tier-card-member { background: #f8fafc; border-color: #e2e8f0; }
.popover-tier-card.tier-card-bronze { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border-color: #fed7aa; }
.popover-tier-card.tier-card-silver { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); border-color: #cbd5e1; }
.popover-tier-card.tier-card-gold { background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%); border-color: #fde047; }
.popover-tier-card.tier-card-platinum { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); border-color: #99f6e4; }
.popover-tier-card.tier-card-diamond { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); border-color: #e9d5ff; }

.popover-tier-card.tier-card-bronze .tier-badge-pill { color: #c2410c; }
.popover-tier-card.tier-card-silver .tier-badge-pill { color: #334155; }
.popover-tier-card.tier-card-gold .tier-badge-pill { color: #854d0e; }
.popover-tier-card.tier-card-platinum .tier-badge-pill { color: #0f766e; }
.popover-tier-card.tier-card-diamond .tier-badge-pill { color: #7e22ce; }

.popover-tier-card .tier-discount-tag {
  font-size: 10.5px;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 1.5px 6px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.2;
}

.popover-tier-card .tier-card-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.popover-tier-card .tier-points-text {
  font-size: 11.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  line-height: 1;
}

.popover-tier-card .tier-points-text strong {
  color: #0f172a;
  font-weight: 800;
  font-size: 12px;
}

.popover-tier-card .tier-arrow {
  font-size: 10px;
  color: #94a3b8;
  transition: transform 0.2s ease;
  line-height: 1;
}

.popover-tier-card:hover .tier-arrow {
  transform: translateX(2px);
  color: #0284c7;
}

.account-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.account-prefix {
  font-size: 11px;
  color: var(--text-muted);
}

.account-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow-icon {
  font-size: 10px;
  color: #94a3b8;
  margin-left: 4px;
}

.account-menu-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 295px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 1px 1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  padding: 12px;
  display: none;
  animation: fadeIn 0.18s ease;
  z-index: 120;
}

/* Hover bridge so mouse never loses focus when moving down */
.account-menu-popover::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}

.user-account-dropdown:hover .account-menu-popover,
.user-account-dropdown.show .account-menu-popover {
  display: block;
}

.popover-header {
  padding: 2px 2px 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.popover-header strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.popover-header small {
  display: block;
  color: #64748b;
  font-size: 11.5px;
  margin-top: 2px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-pill {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.role-admin { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.role-staff { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.role-user { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }

.popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
}

.popover-item:hover {
  background: #f8fafc;
  color: var(--primary-blue);
  transform: translateX(2px);
}

.admin-highlight {
  color: #dc2626 !important;
  background: #fef2f2;
}
.admin-highlight:hover {
  background: #fee2e2;
}

.popover-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

.logout-red {
  color: #ef4444 !important;
}
.logout-red:hover {
  background: #fef2f2 !important;
}

/* ==========================================================================
   TOP CATEGORY ICONS BAR (Matching Screenshot)
   ========================================================================== */
.top-categories-bar {
  padding: 24px 0 20px;
}

.cat-marquee-wrapper {
  width: 100%;
}

.cat-clone-card {
  display: none !important;
}

.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cat-item-card {
  position: relative;
  height: 180px;
  border-radius: 20px;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  background: #0f172a;
}

/* Edge-to-Edge Background Video */
.cat-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gradient Overlay for Text Readability */
.cat-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.3) 45%, rgba(15, 23, 42, 0.90) 100%);
  pointer-events: none;
  transition: background 0.4s ease;
}

.cat-item-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 45px -10px var(--cat-shadow, rgba(255, 80, 0, 0.4)), 0 0 25px var(--cat-glow, rgba(255, 80, 0, 0.25));
}

.cat-item-card:hover .cat-card-video {
  transform: scale(1.12);
}

.cat-item-card:hover .cat-card-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.4) 40%, rgba(15, 23, 42, 0.95) 100%);
}

/* Floating Pill Badge on Category */
.cat-pill-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 9999px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  z-index: 3;
}

.badge-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.badge-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.badge-cyan { background: linear-gradient(135deg, #06b6d4, #10b981); }
.badge-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.badge-green { background: linear-gradient(135deg, #10b981, #84cc16); }
.badge-orange { background: linear-gradient(135deg, #ff5000, #ff8c00); }

/* Category Meta Text Overlay */
.cat-card-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  width: 100%;
}

.cat-item-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  transition: all 0.25s ease;
}

.cat-item-card:hover .cat-item-title {
  color: #ffffff;
  text-shadow: 0 0 12px var(--cat-glow, rgba(255, 80, 0, 0.85)), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.cat-item-subtitle {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Category Theme Specific Neon Glow Variables */
.cat-theme-pink { --cat-shadow: rgba(236, 72, 153, 0.45); --cat-glow: rgba(236, 72, 153, 0.6); }
.cat-theme-blue { --cat-shadow: rgba(59, 130, 246, 0.45); --cat-glow: rgba(59, 130, 246, 0.6); }
.cat-theme-cyan { --cat-shadow: rgba(6, 182, 212, 0.45); --cat-glow: rgba(6, 182, 212, 0.6); }
.cat-theme-red { --cat-shadow: rgba(239, 68, 68, 0.45); --cat-glow: rgba(239, 68, 68, 0.6); }
.cat-theme-green { --cat-shadow: rgba(16, 185, 129, 0.45); --cat-glow: rgba(16, 185, 129, 0.6); }
.cat-theme-orange { --cat-shadow: rgba(255, 80, 0, 0.45); --cat-glow: rgba(255, 80, 0, 0.6); }

/* ==========================================================================
   HERO VIDEO BANNER SECTION (Futuristic Cyber Bezel)
   ========================================================================== */
.hero-video-banner-section {
  margin: 6px 0 36px;
}

.video-player-frame {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 24px;
  overflow: hidden;
  background: #090d16;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(226, 232, 240, 0.8);
}

.hero-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95) contrast(1.05);
}

/* Futuristic Tech Overlay */
.video-tech-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.tech-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.live-pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.tech-stats-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: 9999px;
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 600;
}

.ticker-item strong {
  color: #ffffff;
}

.video-control-pill {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 14px;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.video-control-pill:hover {
  background: rgba(255, 80, 0, 0.85);
  border-color: rgba(255, 80, 0, 0.5);
  transform: scale(1.05);
}

/* ==========================================================================
   PRODUCT SECTIONS & HIGH-TECH CARDS
   ========================================================================== */
.vm-product-section {
  margin-bottom: 40px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-main-heading {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.section-heading-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.section-sub-heading {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.link-view-more {
  font-size: 13.5px;
  font-weight: 700;
  color: #ff5000;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.link-view-more:hover {
  color: #ff7a00;
  transform: translateX(4px);
}

/* 5 Column Grid */
.vm-products-grid, .vm-products-grid-all {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.vm-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.vm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -8px rgba(255, 80, 0, 0.16), 0 4px 14px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 80, 0, 0.4);
}

.vm-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f8fafc;
  overflow: hidden;
}

.vm-card-img-wrap::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transform: rotate(30deg);
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;
}

.vm-card:hover .vm-card-img-wrap::after {
  opacity: 1;
  left: 130%;
  transition: left 0.75s ease-in-out;
}

.vm-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-card:hover .vm-card-img {
  transform: scale(1.08);
}

.vm-badge-platform {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vm-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vm-card-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
  color: #1e293b;
}

.vm-card-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.vm-card-title a:hover {
  color: #ff5000;
}

.vm-card-origin-shop {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vm-card-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 12px;
}

.vm-price-vnd {
  color: #ff5000;
  font-size: 12px;
  font-weight: 700;
}

.vm-price-vnd strong {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.vm-rating-score {
  font-size: 11.5px;
  color: #f59e0b;
  font-weight: 700;
}

.btn-add-cart-vm {
  width: 100%;
  background: linear-gradient(135deg, #ff5000 0%, #ff6b00 100%);
  color: white;
  padding: 9px 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 80, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-cart-vm:hover {
  background: linear-gradient(135deg, #e04700 0%, #ff5900 100%);
  box-shadow: 0 6px 18px rgba(255, 80, 0, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   RECOMMENDATION SLIDER & SKU PREVIEW STYLES
   ========================================================================== */
.rec-slider-section {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.88) 0%, rgba(255, 255, 255, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(254, 215, 170, 0.85);
  margin-bottom: 40px;
  box-shadow: 0 8px 30px -4px rgba(255, 80, 0, 0.08);
}

.rec-slider-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rec-nav-btn:hover {
  background: #ff5000;
  color: #ffffff;
  border-color: #ff5000;
  box-shadow: 0 6px 16px rgba(255, 80, 0, 0.35);
  transform: scale(1.08);
}

.rec-nav-btn:active {
  transform: scale(0.95);
}

.rec-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 14px;
}

.rec-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 16px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rec-slider-track::-webkit-scrollbar {
  display: none;
}

.rec-card-item {
  flex: 0 0 calc(20% - 13px);
  min-width: 230px;
  max-width: 270px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

@media (max-width: 1200px) {
  .rec-card-item {
    flex: 0 0 calc(25% - 12px);
    min-width: 220px;
  }
}

@media (max-width: 992px) {
  .rec-card-item {
    flex: 0 0 calc(33.333% - 11px);
    min-width: 210px;
  }
}

@media (max-width: 768px) {
  .rec-card-item {
    flex: 0 0 calc(50% - 8px);
    min-width: 180px;
  }
}

/* SKU Variant Block on Cards */
.rec-sku-block {
  margin: 6px 0 10px 0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rec-sku-block:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.rec-sku-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 4px;
}

.rec-sku-count {
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rec-sku-selected-name {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.35;
  height: 46px;
  margin-bottom: 6px;
  display: block;
  word-break: break-word;
  white-space: normal;
  background: #eff6ff;
  padding: 5px 8px;
  border-radius: 6px;
  border-left: 3px solid var(--primary-blue);
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: none;
}

.rec-sku-selected-name::-webkit-scrollbar {
  display: none;
}

.rec-sku-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px 1px;
}

.rec-sku-list::-webkit-scrollbar {
  display: none;
}

.rec-sku-thumb-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.rec-sku-thumb-btn:hover,
.rec-sku-thumb-btn.active {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2.5px rgba(0, 102, 204, 0.35);
  transform: scale(1.12);
  z-index: 2;
}

.rec-sku-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rec-sku-thumb-text {
  font-size: 9.5px;
  color: #334155;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  padding: 2px;
}

.rec-sku-empty-placeholder {
  display: none;
}

/* ==========================================================================
   POPULAR CATEGORIES BOTTOM
   ========================================================================== */
.vm-popular-categories-section {
  margin-bottom: 36px;
}

/* ==========================================================================
   FOOTER (Matching Screenshot)
   ========================================================================== */
.site-footer-vm {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 30px 0 20px;
  margin-top: 40px;
}

.footer-vm-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.footer-brand-link .logo-symbol {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.footer-brand-link .logo-primary {
  font-size: 20px;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-dropdown-item {
  position: relative;
}

.footer-link-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link-btn:hover {
  color: var(--primary-blue);
}

.single-link {
  color: #334155;
}

.footer-sub-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 8px 0;
  min-width: 170px;
  display: none;
}

.nav-dropdown-item:hover .footer-sub-menu {
  display: block;
}

.footer-sub-menu a {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-main);
}

.footer-sub-menu a:hover {
  background: #f1f5f9;
  color: var(--primary-blue);
}

.footer-locale-selectors {
  display: flex;
  align-items: center;
  gap: 12px;
}

.locale-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.locale-pill:hover {
  border-color: #cbd5e1;
}

.footer-vm-bottom-row {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 18px;
}

/* ==========================================================================
   AUTH MODAL & RESPONSIVE
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  background: white;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 18px;
  color: var(--text-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-logo-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #0066cc, #0284c7);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.google-button-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-features {
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.modal-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
}

/* ==========================================================================
   SEARCH RESULTS PAGE STYLES
   ========================================================================== */
.search-page-main {
  padding: 24px 0 60px;
  background-color: var(--bg-page);
}

.search-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #e2e8f0;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.breadcrumb-trail a {
  color: #334155;
  font-weight: 600;
}

.breadcrumb-trail a:hover {
  color: var(--primary-blue);
}

.breadcrumb-trail .separator {
  font-size: 10px;
  color: #94a3b8;
}

.current-query, .current-item-name {
  color: #0f172a;
  font-weight: 700;
}

.results-count {
  font-size: 14px;
  color: #475569;
}

.search-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar Filters */
.search-sidebar {
  position: sticky;
  top: 90px;
}

.filter-card {
  background: white;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-card-header {
  padding-bottom: 14px;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 18px;
}

.btn-mobile-filter-trigger,
.btn-close-filter-drawer,
.mobile-filter-backdrop,
.mobile-filter-footer-btn {
  display: none;
}

.filter-card-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: #334155;
}

.custom-radio input[type="radio"] {
  accent-color: var(--primary-blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.price-input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.price-input:focus {
  border-color: var(--primary-blue);
}

.range-dash {
  color: #94a3b8;
  font-weight: bold;
}

.btn-apply-filter {
  width: 100%;
  padding: 8px;
  background: var(--primary-blue);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-apply-filter:hover {
  background: var(--primary-blue-hover);
}

.quick-price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-price-list li a {
  font-size: 13px;
  color: #475569;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.quick-price-list li a:hover {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  background: #eff6ff;
}

.rate-info-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  margin-top: 14px;
}

.rate-info-card .rate-icon {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.rate-info-card h4 {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
  text-transform: none;
}

.rate-info-card .rate-val {
  font-size: 14.5px;
  color: #0369a1;
  margin-bottom: 4px;
}

.rate-info-card small {
  font-size: 11px;
  color: #64748b;
  display: block;
}

/* Right Content & Toolbar */
.search-toolbar {
  background: white;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toolbar-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.sort-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  transition: all 0.2s;
}

.sort-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sort-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

/* Products Grid on Search Page */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: white;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px -4px rgba(0, 102, 204, 0.14);
  border-color: var(--primary-blue);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f8fafc;
  overflow: hidden;
  display: block;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .card-img {
  transform: scale(1.06);
}

.platform-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(234, 88, 12, 0.9);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 2;
}

.hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.product-card:hover .hover-overlay {
  opacity: 1;
}

.btn-quick-view {
  background: white;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-shop {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

.card-title a {
  color: #1e293b;
}

.card-title a:hover {
  color: var(--primary-blue);
}

.card-pricing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.price-vnd {
  color: #d32f2f;
  font-size: 17px;
  font-weight: 800;
}

.currency-unit {
  font-size: 13px;
  font-weight: 700;
  margin-left: 2px;
}

.price-cny {
  font-size: 12px;
  color: #94a3b8;
}

.card-footer-action {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sold-count {
  font-size: 11.5px;
  color: #64748b;
}

.btn-order-now {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.product-card:hover .btn-order-now {
  background: var(--primary-blue);
  color: white;
}

.search-empty {
  grid-column: 1 / -1;
  background: white;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 60px 20px;
  text-align: center;
}

.search-empty .empty-icon {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.search-empty h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.search-empty p {
  color: #64748b;
  font-size: 14px;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE STYLES
   ========================================================================== */
.product-detail-main {
  padding: 24px 0 60px;
  background: var(--bg-page);
}

.detail-breadcrumb {
  margin-bottom: 20px;
}

.product-core-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 32px;
  background: white;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 32px;
}

/* Gallery Column */
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.main-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
}

.main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090d16;
  z-index: 3;
}

.main-image-wrapper:hover .main-img {
  transform: scale(1.04);
}

.btn-hero-play-video {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  z-index: 5;
}

.btn-hero-play-video i {
  color: #ff5000;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.btn-hero-play-video:hover {
  background: linear-gradient(135deg, #ff5000 0%, #ff7700 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 80, 0, 0.45);
}

.btn-hero-play-video:hover i {
  color: #ffffff;
  transform: scale(1.15);
}

.zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.main-image-wrapper:hover .zoom-hint {
  background: rgba(0, 102, 204, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.35);
}

.platform-stamp {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff5000;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 80, 0, 0.3);
  z-index: 2;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.platform-stamp.platform-stamp-alibaba,
.platform-stamp.platform-stamp-1688 {
  background: linear-gradient(135deg, #ff6000 0%, #ff7700 100%);
  box-shadow: 0 2px 8px rgba(255, 96, 0, 0.4);
}

.platform-stamp.platform-stamp-tmall {
  background: linear-gradient(135deg, #d32f2f 0%, #990000 100%);
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

.thumbnail-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.thumbnail-slider::-webkit-scrollbar {
  height: 4px;
}

.thumbnail-slider::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.thumb-item {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.thumb-item:hover, .thumb-item.active {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.25);
  transform: translateY(-2px);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Thumbnail item */
.thumb-video-item {
  border-color: #fdba74;
  background: #0f172a;
}

.thumb-video-item img {
  opacity: 0.85;
  filter: brightness(0.85);
}

.thumb-video-item:hover, .thumb-video-item.active {
  border-color: #ff5000;
  box-shadow: 0 0 0 2px rgba(255, 80, 0, 0.35);
}

.thumb-video-icon {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: rgba(255, 80, 0, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.thumb-video-item:hover .thumb-video-icon,
.thumb-video-item.active .thumb-video-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ff5000;
}

.thumb-video-label {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  pointer-events: none;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* ==========================================================================
   PRODUCT IMAGE LIGHTBOX MODAL
   ========================================================================== */
.product-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  user-select: none;
}

.product-lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 82vw;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-counter {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close-btn:hover {
  background: #ff5000;
  border-color: #ff5000;
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-prev-btn {
  left: 28px;
}

.lightbox-next-btn {
  right: 28px;
}

.lightbox-nav-btn:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-thumbnails-row {
  position: absolute;
  bottom: 24px;
  display: flex;
  gap: 10px;
  max-width: 85vw;
  overflow-x: auto;
  padding: 6px;
  scrollbar-width: thin;
}

.lightbox-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all 0.2s ease;
  background: black;
}

.lightbox-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.lightbox-thumb.active {
  border-color: #ff5000;
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 80, 0, 0.6);
  transform: scale(1.08);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Column */
.info-col {
  display: flex;
  flex-direction: column;
}

.product-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge-stock {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.badge-ship {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.link-origin-taobao {
  font-size: 11.5px;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-title-vi {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 12px;
}

.original-title-accordion {
  margin-bottom: 14px;
}

.btn-toggle-orig-title {
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.orig-title-content {
  display: none;
  font-size: 13px;
  color: #475569;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 6px;
}

.meta-rating-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 18px;
  color: #475569;
}

.stars-gold {
  color: #f59e0b;
}

.rating-score {
  font-weight: 800;
  color: #0f172a;
  margin-left: 4px;
}

.reviews-count-link {
  color: var(--primary-blue);
  cursor: pointer;
  font-weight: 600;
}

/* Price Box */
.price-box-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.price-main-vnd {
  color: #d32f2f;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.currency-symbol {
  font-size: 16px;
  font-weight: 700;
}

.price-cny-badge {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.rate-note {
  font-size: 12px;
  color: #94a3b8;
  margin-left: 6px;
}

/* SKU Selector */
.sku-selector-container {
  margin-bottom: 22px;
}

.sku-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.sku-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.sku-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: white;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.sku-pill-btn:hover {
  border-color: #94a3b8;
}

.sku-pill-btn.selected {
  border-color: var(--primary-blue);
  background: #eff6ff;
  color: var(--primary-blue);
  box-shadow: 0 0 0 1px var(--primary-blue);
}

.sku-thumb {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

/* Quantity Counter */
.purchase-quantity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.qty-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.qty-controller {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 34px;
  height: 34px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-controller input {
  width: 48px;
  height: 34px;
  border: none;
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  outline: none;
}

.total-estimated-box {
  margin-left: auto;
  font-size: 13px;
  color: #64748b;
}

.total-estimated-box strong {
  font-size: 17px;
  color: #d32f2f;
  margin-left: 4px;
}

/* Action Buttons */
.action-buttons-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-action-primary {
  background: linear-gradient(135deg, #ff5000 0%, #ff8400 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(255, 80, 0, 0.35);
  transition: all 0.25s ease;
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 80, 0, 0.45);
}

.btn-action-primary i {
  font-size: 24px;
}

.btn-action-primary strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.btn-action-primary small {
  display: block;
  font-size: 11px;
  opacity: 0.9;
}

.btn-action-cart {
  background: var(--primary-blue);
  color: white;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.25);
  transition: all 0.25s ease;
}

.btn-action-cart:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-2px);
}

.guarantee-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.g-item {
  font-size: 12.5px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tabs Section */
.product-tabs-section {
  background: white;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tabs-nav-bar {
  display: flex;
  background: #f8fafc;
  border-bottom: 1.5px solid #cbd5e1;
}

.tab-nav-btn {
  padding: 16px 24px;
  font-size: 14.5px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.tab-nav-btn:hover {
  color: var(--primary-blue);
}

.tab-nav-btn.active {
  color: var(--primary-blue);
  background: white;
  border-bottom-color: var(--primary-blue);
}

.tab-content-panel {
  display: none;
  padding: 28px;
}

.tab-content-panel.active {
  display: block;
}

.panel-heading {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attributes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.attribute-item {
  display: flex;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.attr-name {
  color: #64748b;
  width: 140px;
  flex-shrink: 0;
}

.attr-value {
  color: #1e293b;
  font-weight: 600;
}

.html-desc-body {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  word-break: break-word;
}

.html-desc-body * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.html-desc-body img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: var(--radius-sm);
  margin: 8px auto !important;
  object-fit: contain !important;
}

.html-desc-body table {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  overflow-x: auto !important;
}

/* Reviews Tab */
.reviews-header-summary {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.review-score-box {
  text-align: center;
  padding-right: 32px;
  border-right: 1.5px solid #e2e8f0;
}

.score-big {
  font-size: 36px;
  font-weight: 900;
  color: #d32f2f;
  line-height: 1;
}

.score-stars {
  color: #f59e0b;
  font-size: 14px;
  margin: 6px 0;
}

.review-score-box p {
  font-size: 12px;
  color: #64748b;
}

.review-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.highlight-pill {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reviews-list-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.review-card-item {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px;
  background: white;
}

.rev-author-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.rev-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rev-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.rev-name {
  font-size: 13.5px;
  color: #0f172a;
  display: block;
}

.rev-stars {
  font-size: 11px;
}

.rev-date {
  font-size: 12px;
  color: #94a3b8;
}

.rev-sku-info {
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.rev-comment-body {
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.rev-photos-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rev-photo-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
}

.rev-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.rev-photo-wrap:hover .zoom-overlay {
  opacity: 1;
}

/* Modal photo preview */
.photo-modal-preview {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.photo-modal-preview.active {
  display: flex;
}

.photo-modal-preview img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.close-photo-modal {
  position: absolute;
  top: 24px;
  right: 28px;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .vm-products-grid, .vm-products-grid-all {
    grid-template-columns: repeat(4, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-core-grid {
    grid-template-columns: 380px 1fr;
  }
  .cat-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  body.user-site-body {
    padding-top: 124px;
  }
  .header-grid-container {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-section-center {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .product-core-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vm-products-grid, .vm-products-grid-all {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body.user-site-body {
    padding-top: 92px;
  }
  .site-header-vm, .main-header-row {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    padding: 5px 0;
  }
  .header-grid-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 8px;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }
  .brand-logo-vm {
    flex-shrink: 0;
  }
  .site-logo-img {
    height: 32px;
  }
  .header-actions-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .action-item-btn {
    padding: 4px 5px;
    gap: 0;
  }
  .action-item-btn .action-text-group {
    display: none;
  }
  .action-icon-wrap {
    font-size: 17px;
  }
  .badge-bubble {
    width: 15px;
    height: 15px;
    font-size: 8.5px;
    top: -5px;
    right: -7px;
  }
  .account-balance-badge {
    padding: 3px 7px 3px 4px;
    gap: 4px;
    border-radius: 9999px;
  }
  .account-balance-badge .balance-label {
    display: none;
  }
  .account-balance-badge .account-balance-amount {
    font-size: 11px;
  }
  .account-balance-badge .balance-icon-wrap {
    width: 20px;
    height: 20px;
    font-size: 9.5px;
  }
  .account-balance-badge .btn-deposit-plus-icon {
    width: 14px;
    height: 14px;
    font-size: 7px;
    margin-left: 0;
  }
  .user-account-dropdown .account-btn {
    padding: 2px;
    gap: 0;
    border-radius: 50%;
  }
  .user-account-dropdown .account-text-group,
  .user-account-dropdown .arrow-icon {
    display: none; /* Minimalist avatar-only button on mobile */
  }
  .user-account-dropdown .account-avatar-wrap {
    width: 28px;
    height: 28px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .btn-account-login {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px 2px 3px;
    border-radius: 9999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
  }
  .btn-account-login .account-icon-wrap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0066cc;
    color: #ffffff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-account-login .account-prefix {
    display: none;
  }
  .btn-account-login .account-name {
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
    max-width: none;
  }
  .search-section-center {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 1px;
  }
  .search-bar-vm {
    height: 36px;
    padding: 2px 3px 2px 6px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  .select-platform-inline {
    font-size: 11px;
    padding-right: 8px;
  }
  .search-platform-badge {
    padding-right: 6px;
  }
  .input-search-vm {
    font-size: 11.5px;
    padding: 0 6px;
  }
  .btn-search-vm {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 50%;
  }
  .top-util-bar {
    display: none;
  }

  /* 6 Category Video Cards - Infinite Continuous Auto-Scroll Carousel on Mobile Only */
  .top-categories-bar {
    margin-bottom: 12px;
    padding: 16px 0 6px;
    overflow: hidden;
  }
  .cat-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  }
  .cat-clone-card {
    display: flex !important;
  }
  .cat-cards-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    width: max-content;
    animation: catInfiniteScrollLeft 20s linear infinite;
    will-change: transform;
  }
  .cat-cards-grid:hover,
  .cat-cards-grid:active {
    animation-play-state: paused;
  }
  @keyframes catInfiniteScrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-50% - 4px));
    }
  }
  .cat-item-card {
    flex: 0 0 132px;
    min-width: 132px;
    max-width: 132px;
    height: 94px;
    padding: 8px 6px 6px;
    border-radius: 14px;
  }
  .cat-item-title {
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 0px;
    line-height: 1.2;
  }
  .cat-item-subtitle {
    font-size: 9.5px;
    opacity: 0.88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
  }
  .cat-pill-badge {
    font-size: 7.5px;
    padding: 1.5px 5px;
    top: 5px;
    right: 5px;
    border-radius: 999px;
  }
  .video-player-frame {
    height: 180px;
    border-radius: 14px;
  }

  /* Mobile Search Page: Filter Drawer & Toolbar */
  .search-layout {
    display: block !important;
    width: 100% !important;
  }
  .search-content {
    width: 100% !important;
  }
  .search-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding: 2px 0 !important;
  }
  .btn-mobile-filter-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1.5px solid #0066cc;
    color: #0066cc;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.12);
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .btn-mobile-filter-trigger:hover,
  .btn-mobile-filter-trigger:active {
    background: #0066cc;
    color: #ffffff;
  }
  .active-filter-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5000;
  }
  .toolbar-left {
    display: flex !important;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .toolbar-left::-webkit-scrollbar {
    display: none;
  }
  .toolbar-label {
    display: none !important;
  }
  .sort-buttons {
    display: flex !important;
    gap: 5px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  .sort-buttons::-webkit-scrollbar {
    display: none;
  }
  .sort-btn {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
  }

  /* Slide-up Bottom Sheet Drawer for Filters on Mobile */
  .mobile-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .mobile-filter-backdrop.active {
    display: block !important;
    opacity: 1 !important;
  }

  .search-sidebar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-height: 82vh !important;
    background: #ffffff !important;
    border-radius: 24px 24px 0 0 !important;
    z-index: 10002 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.28) !important;
    overflow-y: auto !important;
    transform: translateY(105%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .search-sidebar.mobile-drawer-active {
    transform: translateY(0) !important;
  }

  .filter-card {
    border: none !important;
    box-shadow: none !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 0 18px 24px !important;
  }
  .filter-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 0 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    z-index: 5 !important;
    margin-bottom: 14px !important;
  }
  .btn-close-filter-drawer {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    border: none;
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
  }
  .mobile-filter-footer-btn {
    display: block !important;
    margin-top: 20px;
  }
  .btn-confirm-mobile-filter {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card .card-body {
    padding: 8px 10px;
  }
  .product-card .card-title {
    font-size: 12px;
  }
  .product-card .price-vnd {
    font-size: 14px;
  }
  .product-card .card-footer-action {
    margin-top: 6px;
  }
  .product-card .btn-order-now {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Hide Breadcrumbs on Mobile */
  .detail-breadcrumb,
  .breadcrumb-trail {
    display: none !important;
  }

  /* Product Detail Mobile Optimization */
  .product-detail-main {
    padding: 6px 0 24px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .product-container {
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .product-core-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .gallery-col {
    width: 100% !important;
  }
  .main-image-wrapper {
    height: 320px !important;
    border-radius: 16px !important;
    width: 100% !important;
  }
  .thumbnail-slider {
    gap: 6px !important;
    padding: 4px 0 !important;
  }
  .thumb-item {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
  }
  .info-col {
    width: 100% !important;
  }
  .product-badge-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .badge-stock, .badge-ship {
    padding: 3px 8px !important;
    font-size: 10px !important;
    border-radius: 9999px !important;
  }
  .product-title-vi {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
  .meta-rating-bar {
    flex-wrap: wrap !important;
    gap: 6px !important;
    font-size: 11.5px !important;
  }
  .price-box-card {
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }
  .price-main-vnd .price-val {
    font-size: 22px !important;
    font-weight: 900 !important;
  }
  .sku-selector-container {
    margin-bottom: 12px !important;
  }
  .sku-label {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }
  .sku-pills-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    max-height: 140px !important;
    overflow-y: auto !important;
  }
  .sku-pill-btn {
    padding: 4px 8px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
    gap: 5px !important;
  }
  .sku-thumb {
    width: 20px !important;
    height: 20px !important;
  }
  .purchase-quantity-row {
    margin-bottom: 12px !important;
    gap: 8px !important;
  }
  .qty-label {
    font-size: 12px !important;
  }
  .qty-controller {
    height: 30px !important;
  }
  .qty-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 10px !important;
  }
  .qty-controller input {
    width: 38px !important;
    height: 28px !important;
    font-size: 12.5px !important;
  }
  .total-estimated-box {
    font-size: 11.5px !important;
    margin-left: auto !important;
  }
  .total-estimated-box strong {
    font-size: 14.5px !important;
  }

  /* Minimalist Compact Action Buttons on Mobile */
  .action-buttons-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
  .btn-action-primary {
    padding: 10px 8px !important;
    border-radius: 12px !important;
    gap: 6px !important;
    font-size: 12px !important;
  }
  .btn-action-primary i {
    font-size: 15px !important;
  }
  .btn-action-primary strong {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
  .btn-action-primary small {
    display: none !important;
  }
  .btn-action-cart {
    padding: 10px 8px !important;
    border-radius: 12px !important;
    flex-direction: row !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  .btn-action-cart i {
    font-size: 14px !important;
  }
  .guarantee-box {
    padding: 8px 10px !important;
    gap: 5px !important;
    font-size: 11px !important;
  }

  /* Tabs & Rich Description Container: Prevent Horizontal Overflow */
  .product-tabs-section {
    margin-top: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .tabs-nav-bar {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }
  .tabs-nav-bar::-webkit-scrollbar {
    display: none;
  }
  .tab-nav-btn {
    padding: 7px 12px !important;
    font-size: 11.5px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }
  .tab-content-panel {
    padding: 12px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .specs-table-wrapper,
  .rich-desc-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 10px 0 !important;
  }
  .attributes-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .attribute-item {
    padding: 6px 8px !important;
    font-size: 11.5px !important;
  }
  .attr-name {
    width: 95px !important;
    font-size: 11px !important;
  }
  .attr-value {
    font-size: 11.5px !important;
  }
  .panel-heading {
    font-size: 14px !important;
    margin-bottom: 10px !important;
  }

  .vm-products-grid, .vm-products-grid-all {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .rec-card-item {
    flex: 0 0 calc(50% - 4px);
    min-width: 140px;
    max-width: none;
  }
  .footer-vm-main-row {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body.user-site-body {
    padding-top: 94px;
  }
  .site-logo-img {
    height: 28px;
  }
  .header-actions-right {
    gap: 4px;
  }
  .account-balance-badge {
    padding: 2px 5px 2px 3px;
    gap: 3px;
  }
  .account-balance-badge .account-balance-amount {
    font-size: 10px;
  }
  .btn-account-login {
    padding: 2px 6px 2px 3px;
    gap: 3px;
  }
  .btn-account-login .account-icon-wrap {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .btn-account-login .account-name {
    font-size: 10.5px;
  }
  .top-categories-bar {
    padding: 16px 0 6px;
  }
  .cat-cards-grid {
    animation-duration: 18s;
  }
  .cat-item-card {
    flex: 0 0 122px;
    min-width: 122px;
    max-width: 122px;
    height: 90px;
    padding: 6px 5px 5px;
    border-radius: 12px;
  }
  .cat-item-title {
    font-size: 12px;
  }
  .cat-item-subtitle {
    font-size: 9px;
  }
  .section-main-heading {
    font-size: 15px;
  }
  .section-sub-heading {
    font-size: 11px;
  }
  .rec-card-item {
    flex: 0 0 calc(50% - 4px);
    min-width: 130px;
  }
  .vm-card-body {
    padding: 8px;
  }
  .vm-card-title {
    font-size: 11.5px;
  }
}

/* ==========================================================================
   BALANCE BADGE & PAYOS DEPOSIT MODAL STYLES
   ========================================================================== */
.account-balance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #6ee7b7;
  border-radius: 9999px;
  padding: 4px 12px 4px 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.account-balance-badge:hover {
  background: #d1fae5;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.balance-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.balance-info-col {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.balance-label {
  font-size: 9.5px;
  color: #065f46;
  font-weight: 700;
  text-transform: uppercase;
}

.account-balance-amount {
  font-size: 13.5px;
  color: #047857;
  font-weight: 800;
  font-family: var(--font-heading);
}

.btn-deposit-plus-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #059669;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.account-balance-badge:hover .btn-deposit-plus-icon {
  transform: rotate(90deg);
}

/* Popover Balance Card */
.popover-balance-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.popover-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.btn-popover-deposit {
  width: 100%;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 7px 0;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-popover-deposit:hover {
  background: #059669;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.deposit-highlight {
  color: #059669 !important;
  font-weight: 700;
}

.deposit-highlight i {
  color: #10b981 !important;
}

/* ==========================================================================
   DEPOSIT MODAL OVERLAY & CONTENT
   ========================================================================== */
.deposit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.deposit-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.deposit-modal-card {
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  padding: 24px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: depositModalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes depositModalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.btn-close-deposit-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-deposit-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.deposit-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.btn-back-step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-back-step:hover {
  background: #e2e8f0;
}

.deposit-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.deposit-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.deposit-modal-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.deposit-current-balance-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 16px;
}

.deposit-current-balance-row strong {
  color: #059669;
  font-size: 14px;
  font-weight: 800;
}

.deposit-section-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deposit-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.deposit-preset-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.deposit-preset-btn:hover {
  border-color: var(--primary-blue);
  background: #f0f7ff;
  color: var(--primary-blue);
}

.deposit-preset-btn.active {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.25);
}

.deposit-input-group {
  margin-bottom: 16px;
}

.deposit-input-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.deposit-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.deposit-number-input {
  width: 100%;
  padding: 10px 50px 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
}

.deposit-number-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.deposit-currency-suffix {
  position: absolute;
  right: 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: #64748b;
}

.deposit-helper-text {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #64748b;
}

.deposit-gateway-info {
  display: flex;
  gap: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.gateway-icon-col i {
  font-size: 24px;
}

.gateway-text-col strong {
  font-size: 13px;
  color: #1e3a8a;
  display: block;
  margin-bottom: 2px;
}

.gateway-text-col p {
  font-size: 11.5px;
  color: #3b82f6;
  margin: 0;
  line-height: 1.4;
}

.btn-submit-deposit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0052a3 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
  transition: all 0.2s ease;
}

.btn-submit-deposit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* Step 2 QR Styles */
.deposit-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deposit-qr-img-wrap {
  width: 220px;
  height: 220px;
  background: white;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.deposit-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.qr-pulse-indicator {
  position: static;
  background: #0f172a;
  color: white;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 4px;
}

.qr-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.deposit-summary-box {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}

.badge-order-code {
  background: #e2e8f0;
  color: #1e293b;
  font-family: monospace;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.deposit-actions-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-open-payos-link {
  flex: 1;
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-check-paid-now {
  background: #10b981;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========================================= */
/* Global SweetAlert2 Highest Layer Fix      */
/* ========================================= */
.swal2-container {
  z-index: 99999999 !important;
}

.checkout-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99999;
}

.address-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 100050 !important;
}

/* ==========================================================================
   USER PROFILE SETTINGS MODAL
   ========================================================================== */
.profile-modal-dialog {
  max-width: 620px;
  width: 92%;
  margin: auto;
}

.profile-modal-content {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

.profile-modal-header {
  padding: 20px 24px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-modal-body {
  padding: 20px 24px 24px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Profile Summary Banner Card */
.profile-summary-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 22px;
}

.profile-avatar-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-avatar-container {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  background: #f1f5f9;
}

.profile-lg-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.profile-avatar-container:hover .avatar-edit-overlay {
  opacity: 1;
}

.profile-status-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.profile-main-meta {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.profile-display-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.role-badge-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
}

.role-badge-pill.role-admin {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
}

.profile-email-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  gap: 10px;
}

.balance-strip-item .label {
  font-size: 12px;
  color: #64748b;
  margin-right: 6px;
}

.balance-strip-item .value {
  font-size: 14px;
  font-weight: 800;
  color: #10b981;
}

.btn-strip-deposit {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff5000, #ff7a00);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}

.btn-strip-deposit:hover {
  transform: translateY(-1px);
}

/* Edit Form */
.profile-edit-form {
  margin-bottom: 22px;
}

.form-section-header {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
}

.form-group-vm {
  margin-bottom: 14px;
}

.form-label-vm {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.form-label-vm .required {
  color: #ef4444;
}

.input-with-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon-wrap .input-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.input-with-icon-wrap .form-control-vm {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 13.5px;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
}

.input-with-icon-wrap .form-control-vm:focus {
  outline: none;
  border-color: #ff5000;
  box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.12);
}

.form-hint-text {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.profile-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-save-profile {
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff5000, #ff7a00);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 80, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-save-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 80, 0, 0.35);
}

/* Quick Nav Cards */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .quick-nav-grid {
    grid-template-columns: 1fr;
  }
}

.quick-nav-card {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-nav-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.nav-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.icon-box-blue { background: #eff6ff; color: #3b82f6; }
.icon-box-emerald { background: #f0fdf4; color: #10b981; }
.icon-box-amber { background: #fffbeb; color: #f59e0b; }

.nav-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nav-card-text strong {
  font-size: 12px;
  color: #0f172a;
}

.nav-card-text span {
  font-size: 10.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-nav-card .arrow {
  font-size: 10px;
  color: #cbd5e1;
}

/* ========================================================
   GLOBAL PRODUCT DETAIL LOADING OVERLAY
   ======================================================== */
.product-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.product-loading-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-loading-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-loading-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  padding: 34px 38px 28px;
  width: 90%;
  max-width: 430px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-loading-overlay.show .product-loading-card {
  transform: scale(1) translateY(0);
}

.product-loading-visual {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
}

.loading-ring-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid #e0f2fe;
  border-top-color: #0284c7;
  border-right-color: #f97316;
  animation: spinProductRing 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spinProductRing {
  to {
    transform: rotate(360deg);
  }
}

.loading-icon-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #0284c7;
  animation: pulseIconCenter 1.6s ease-in-out infinite;
}

@keyframes pulseIconCenter {
  0%, 100% { transform: scale(1); color: #0284c7; }
  50% { transform: scale(1.18); color: #ea580c; }
}

.product-loading-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.product-loading-sub {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 22px;
  line-height: 1.45;
}

.product-loading-progress-bar {
  width: 100%;
  height: 5px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-glow {
  position: absolute;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #0284c7, #f97316, #0284c7);
  border-radius: 10px;
  animation: shimmerBarGlow 1.3s ease-in-out infinite;
}

@keyframes shimmerBarGlow {
  0% { left: -40%; }
  100% { left: 100%; }
}







