:root {
  --primary: #FF8A00;
  --secondary: #FFC83D;
  --bg: #FFFFFF;
  --gray: #F5F5F5;
  --text: #222222;
  --accent: #34C759;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --nav-h: 72px;
}

/* Login */
.login-page {
  height: 100%;
  background: linear-gradient(180deg, #FFF5E6 0%, #fff 45%);
  padding: 16px 24px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.login-back {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.login-hero {
  text-align: center;
  margin: 28px 0 24px;
}
.login-logo {
  width: auto;
  height: 64px;
  margin: 0 auto 14px;
  display: block;
  animation: scaleIn 0.6s ease, float 3s ease-in-out infinite;
}
.login-logo img {
  width: auto;
  height: 100%;
  object-fit: contain;
}
.login-hero h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.login-hero p {
  margin: 6px 0 0;
  color: #888;
  font-size: 13px;
}
.login-form .form-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}
.input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}
.input-wrap .form-control {
  border-radius: 16px;
  border: 1.5px solid #eee;
  padding: 12px 14px 12px 42px;
  font-size: 15px;
  background: #fff;
  box-shadow: none;
}
.input-wrap .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.15);
}
.btn-login {
  margin-top: 8px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #ff9f2e);
  padding: 13px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(255, 138, 0, 0.35);
}
.btn-login:hover, .btn-login:active {
  background: linear-gradient(135deg, #e67c00, var(--primary));
}
.login-hint {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 16px;
}
.login-error {
  color: #e53935;
  font-size: 12px;
  margin-bottom: 8px;
  text-align: center;
}

/* App shell */
.app-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--gray);
  position: relative;
}
.app-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 8px);
  -webkit-overflow-scrolling: touch;
}
.page {
  display: none;
  min-height: 100%;
  animation: fadeInUp 0.28s ease;
}
.page.active { display: block; }

/* Bottom nav */
.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 8px 4px 18px;
  z-index: 100;
}
.nav-item {
  flex: 1;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #999;
  font-size: 10px;
  font-weight: 600;
  padding: 4px;
  cursor: pointer;
}
.nav-item i { font-size: 20px; }
.nav-item.active {
  color: var(--primary);
}
.nav-item.active i {
  transform: translateY(-1px);
}

/* Cards / glass */
.glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.6);
}

.section-pad { padding: 12px 16px; }
.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title .link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  border: none;
  background: none;
}

/* Home header */
.home-top {
  background: linear-gradient(135deg, #FF8A00 0%, #FFC83D 100%);
  padding: 6px 16px 16px;
  border-radius: 0 0 28px 28px;
  color: #fff;
  text-align: center;
}
.home-top .greet {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 2px;
}
.home-top .brand-line {
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 10px;
  opacity: 0.95;
}
.home-top .brand-mark {
  width: auto;
  height: 28px;
  max-width: 180px;
  margin: 0 auto 4px;
  display: block;
}
.home-top .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  color: #888;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  cursor: pointer;
}
.search-bar span { font-size: 13px; flex: 1; }

.banner-wrap {
  margin: -8px 16px 0;
  position: relative;
  z-index: 2;
}
.banner {
  border-radius: var(--radius);
  overflow: hidden;
  height: 120px;
  background: linear-gradient(120deg, #ff6b00, #ffb347);
  position: relative;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 18px 20px;
}
.banner h3 { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.banner p { font-size: 12px; margin: 0; opacity: 0.92; }
.banner .bi-stars {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 48px;
  opacity: 0.25;
}

/* Promo slider */
.promo-slider {
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background: #f5f5f5;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.promo-slider.is-swiping {
  cursor: grabbing;
}
.promo-slider.is-swiping .promo-track {
  transition: none;
}
.promo-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.promo-slide {
  flex: 0 0 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}
.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.promo-slide-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  pointer-events: none;
}
.promo-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.promo-dot.active {
  background: #fff;
  width: 16px;
}

/* Home carousel menu */
.carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 4px 2px 6px;
  animation: fadeInUp 0.45s ease;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.carousel.is-dragging {
  cursor: grabbing;
}
.carousel.is-dragging .carousel-slidemo {
  pointer-events: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-slidemo {
  flex: 0 0 68px;
  text-align: center;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
  touch-action: pan-x;
}
.carousel-slidemo:hover { transform: translateY(-3px); }
.carousel-slidemo .carousel-image {
  width: 56px;
  height: 56px;
  border-radius: 40px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  background: #fff;
}
.carousel-slidemo p {
  font-size: 10px;
  font-weight: 700;
  color: #444;
  margin: 6px 0 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 0;
}
.quick-item {
  border: none;
  background: none;
  text-align: center;
  padding: 0;
  cursor: pointer;
  animation: fadeInUp 0.4s ease both;
  transition: transform 0.2s ease;
}
.quick-item:hover { transform: translateY(-4px); }
.quick-item:nth-child(1) { animation-delay: 0.05s; }
.quick-item:nth-child(2) { animation-delay: 0.1s; }
.quick-item:nth-child(3) { animation-delay: 0.15s; }
.quick-item:nth-child(4) { animation-delay: 0.2s; }
.quick-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 14px rgba(255, 138, 0, 0.2);
  transition: all 0.3s ease;
}
.quick-item:hover .quick-icon {
  box-shadow: 0 10px 24px rgba(255, 138, 0, 0.35);
  transform: scale(1.1);
}
.quick-item:nth-child(1) .quick-icon { background: linear-gradient(135deg, #FF8A00, #ff6b00); }
.quick-item:nth-child(2) .quick-icon { background: linear-gradient(135deg, #FFC83D, #ff9800); }
.quick-item:nth-child(3) .quick-icon { background: linear-gradient(135deg, #7C4DFF, #536DFE); }
.quick-item:nth-child(4) .quick-icon { background: linear-gradient(135deg, #00BCD4, #26C6DA); }
.quick-item span {
  font-size: 10px;
  font-weight: 600;
  color: #555;
  line-height: 1.25;
  display: block;
}

/* Product cards */
.prod-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.prod-scroll::-webkit-scrollbar { display: none; }
.prod-card {
  min-width: 148px;
  max-width: 148px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease both;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.prod-card img,
.prod-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #eee;
  display: block;
}
.prod-body { padding: 10px; }
.prod-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  height: 32px;
  overflow: hidden;
  margin: 0 0 6px;
  line-height: 1.3;
}
.prod-price-cny {
  font-size: 11px;
  color: #999;
  margin: 0;
}
.prod-price-thb {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.prod-score {
  font-size: 10px;
  color: #888;
  margin-top: 4px;
}
.prod-score i { color: #FFC83D; }

.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.prod-grid .prod-card {
  min-width: 0;
  max-width: none;
  width: 100%;
}

.order-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
}
.order-mini .thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eee;
  object-fit: cover;
}
.order-mini .meta { flex: 1; min-width: 0; }
.order-mini .meta strong {
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-mini .meta small { color: #999; font-size: 11px; }
.badge-status {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.badge-paid { background: #E8F5E9; color: #2E7D32; }
.badge-shipping { background: #FFF3E0; color: #EF6C00; }
.badge-completed { background: #E3F2FD; color: #1565C0; }
.badge-pending { background: #F5F5F5; color: #666; }

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 12px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.page-header .back-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-header h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  flex: 1;
}

/* Filter chips */
.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 16px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.chip-scroll.is-dragging { cursor: grabbing; }
.chip-scroll.is-dragging .filter-chip { pointer-events: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  border: none;
  background: #fff;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  touch-action: pan-x;
}
.filter-chip.active {
  background: var(--primary);
  color: #fff;
}

/* Product detail */
.pd-wrap {
  padding-bottom: 130px;
}
.pd-gallery {
  background: #fff;
  position: relative;
}
.pd-gallery .pd-main-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}
.pd-gallery .pd-main-img.img-broken {
  object-fit: contain;
  padding: 40px;
  opacity: 0.35;
}
.pd-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.pd-thumbs.is-dragging { cursor: grabbing; }
.pd-thumbs.is-dragging img { pointer-events: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: #f5f5f5;
}
.pd-thumbs img.active { border-color: var(--primary); }
.pd-info { padding: 12px 16px 16px; }
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0;
}
.pd-price-row .thb {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.pd-price-row .cny { color: #999; font-size: 13px; }
.pd-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 390px;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
  z-index: 60;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pd-qty-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 0;
  font-size: 12px;
}
.pd-qty-bar .pd-stock {
  color: #888;
  font-weight: 600;
}
.pd-qty-bar .pd-stock strong {
  color: #2E7D32;
  font-weight: 800;
}
.pd-actions {
  display: flex;
  gap: 10px;
  padding: 10px 16px 12px;
  background: transparent;
}
.btn-soft {
  border: none;
  border-radius: 16px;
  background: var(--gray);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #555;
}
.btn-import {
  flex: 1;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #ff9f2e);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(255, 138, 0, 0.35);
}

/* Wizard */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 4px;
}
.wizard-step {
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: #bbb;
}
.wizard-step .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eee;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  font-size: 11px;
}
.wizard-step.active .dot,
.wizard-step.done .dot {
  background: var(--primary);
  color: #fff;
}
.wizard-step.active { color: var(--primary); }
.wizard-step.done { color: var(--accent); }
.wizard-panel {
  padding: 8px 16px 24px;
}
.wizard-nav {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}
.wizard-nav .btn {
  flex: 1;
  border-radius: 14px;
  padding: 12px;
  font-weight: 700;
}
.btn-outline-orange {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: #fff;
}
.btn-orange {
  background: var(--primary);
  border: none;
  color: #fff;
}
.success-anim {
  text-align: center;
  padding: 40px 20px;
}
.success-anim .check {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: checkPop 0.55s ease;
  box-shadow: 0 12px 28px rgba(52, 199, 89, 0.4);
}

/* Shipping calc */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.form-card label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
}
.form-card .form-control,
.form-card .form-select {
  border-radius: 14px;
  border: 1.5px solid #eee;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 10px;
}
.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.12);
}
.result-card {
  background: linear-gradient(135deg, #FF8A00, #FFC83D);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(255, 138, 0, 0.3);
}
.result-card .big {
  font-size: 28px;
  font-weight: 800;
}
.result-card .sub { font-size: 12px; opacity: 0.9; }

/* Profile */
.profile-hero {
  background: linear-gradient(135deg, #FF8A00, #FFC83D);
  color: #fff;
  padding: 20px 16px 28px;
  border-radius: 0 0 28px 28px;
  text-align: center;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 10px;
  border: 3px solid rgba(255,255,255,0.5);
}
.menu-list {
  margin: -12px 16px 16px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  border: none;
  width: 100%;
  text-align: left;
}
.menu-item i.main {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #FFF3E0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.menu-item span { flex: 1; font-weight: 600; font-size: 14px; }
.menu-item .val { font-size: 12px; color: #999; font-weight: 500; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.stats-grid .glass-card {
  padding: 14px;
}
.stats-grid .num {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.stats-grid .lbl {
  font-size: 11px;
  color: #999;
}

/* FAB */
.fab {
  position: absolute;
  right: 18px;
  bottom: calc(var(--nav-h) + 16px);
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, var(--primary), #ff9f2e);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(255, 138, 0, 0.45);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseSoft 2.4s ease infinite;
}
.fab.hidden { display: none; }

/* Chart container */
.chart-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  height: 180px;
}

/* Translate */
.translate-box textarea {
  border-radius: 16px;
  border: 1.5px solid #eee;
  min-height: 100px;
  font-size: 14px;
  resize: none;
}
.translate-result {
  background: #FFF8EE;
  border-radius: 16px;
  padding: 14px;
  min-height: 80px;
  font-size: 14px;
  border: 1px dashed rgba(255, 138, 0, 0.3);
}

.hidden-nav .bottom-nav,
.hidden-nav .fab { display: none !important; }
.hidden-nav .app-body { padding-bottom: 16px; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}
.empty-state i { font-size: 40px; color: #ddd; display: block; margin-bottom: 8px; }

/* Paste link box */
.paste-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 16px;
  padding: 6px 6px 6px 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.paste-box.light {
  box-shadow: var(--shadow);
  border: 1.5px solid #eee;
  margin-bottom: 4px;
}
.paste-box i { color: #FF8A00; font-size: 18px; }
.paste-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12.5px;
  min-width: 0;
  background: transparent;
  color: #222;
}
.paste-box button {
  border: none;
  background: linear-gradient(135deg, #FF8A00, #ff9f2e);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
}
.platform-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.plat-btn {
  border: none;
  background: #fff;
  border-radius: 14px;
  padding: 12px 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 13px;
}
.plat-1688 { color: #FF6600; }
.plat-tb { color: #FF5000; }
.plat-tm { color: #E60012; }
.banner-img {
  background-size: cover;
  background-position: center top;
}
.howto-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.howto-item {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 12px 4px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: bounceIn 0.5s ease both;
  transition: transform 0.2s ease;
  min-width: 0;
}
.howto-item:nth-child(1) { animation-delay: 0.1s; }
.howto-item:nth-child(3) { animation-delay: 0.2s; }
.howto-item:nth-child(5) { animation-delay: 0.3s; }
.howto-item:nth-child(7) { animation-delay: 0.4s; }
.howto-item:hover { transform: translateY(-3px); }
.howto-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  color: #FF8A00;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseSoft 2s ease-in-out infinite;
}
.howto-arrow {
  flex: 0 0 auto;
  color: #FFB74D;
  font-size: 12px;
  opacity: 0.7;
}
.howto-item .t { font-size: 9px; font-weight: 700; color: #444; line-height: 1.2; }
.howto-item .d { display: none; }
.howto-item .n { display: none; }

.nav-item { position: relative; }
.nav-badge {
  position: absolute;
  top: 0;
  right: calc(50% - 18px);
  background: #E53935;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* SKU / Detail buy */
.sku-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.sku-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  text-align: left;
  line-height: 1.3;
  border: 1.5px solid #eee;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  word-break: break-word;
}
.sku-chip img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
}
.sku-chip.active {
  border-color: #FF8A00;
  color: #FF8A00;
  background: #FFF8EE;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.qty-row button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: #F5F5F5;
  font-size: 18px;
  font-weight: 700;
}
.qty-row span { font-weight: 800; min-width: 24px; text-align: center; }
.source-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #FFF3E0;
  color: #E65100;
}

/* Checkout steps */
.checkout-steps {
  display: flex;
  justify-content: space-around;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.cstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #bbb;
}
.cstep i { font-size: 18px; }
.cstep.active { color: #FF8A00; }
.cstep.done { color: #34C759; }

/* Cart items */
.cart-shop {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-item {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cart-item.is-updating { opacity: 0.6; }
.cart-item.is-removing {
  opacity: 0;
  transform: translateX(20px);
}
.cart-total-flash {
  animation: totalFlash 0.35s ease;
}
@keyframes totalFlash {
  0% { color: #FF8A00; transform: scale(1.05); }
  100% { color: inherit; transform: scale(1); }
}
.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item .sku { font-size: 11px; color: #999; }
.cart-item .price { font-size: 13px; font-weight: 800; color: #FF8A00; }
.cart-item .rm {
  border: none;
  background: none;
  color: #ccc;
  font-size: 16px;
  padding: 0;
}
.cart-footer {
  position: sticky;
  bottom: calc(var(--nav-h) + 4px);
  margin: 0 12px 8px;
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  z-index: 40;
}
.cf-label { font-size: 11px; color: #999; }
.cf-price { font-size: 18px; font-weight: 800; color: #E53935; }
.btn-checkout {
  border: none;
  background: linear-gradient(135deg, #FF8A00, #ff9f2e);
  color: #fff;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 14px;
}

/* Ship options */
.ship-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ship-opt {
  border: 1.5px solid #eee;
  background: #fff;
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.ship-opt i { font-size: 22px; }
.ship-opt.active {
  border-color: #E53935;
  color: #E53935;
  background: #FFF5F5;
  box-shadow: 0 0 0 1px #E53935;
}
.ship-opt small { font-weight: 500; color: #999; font-size: 10px; }

.toggle-list { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 12px; }
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #f5f5f5;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .meta { flex: 1; }
.toggle-row .meta strong { font-size: 13px; display: block; }
.toggle-row .meta small { font-size: 11px; color: #999; }
.toggle-row .fee { font-size: 12px; font-weight: 700; color: #FF8A00; margin-right: 6px; }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
.form-switch .form-check-input:checked { background-color: #FF8A00; border-color: #FF8A00; }

.summary-box {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  font-size: 13px;
}
.summary-box .row-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #666;
}
.summary-box .row-line.total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #eee;
  font-weight: 800;
  color: #222;
  font-size: 15px;
}
.summary-box .row-line.total span:last-child { color: #E53935; }

.terms-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}
.sticky-order-bar {
  position: sticky;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.sticky-order-bar .price { font-size: 18px; font-weight: 800; color: #E53935; }

/* PO */
.po-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.po-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.po-card .id { font-weight: 800; font-size: 14px; }
.po-status {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
}
.po-card .meta { font-size: 11px; color: #999; }
.po-timeline-h {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 4px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.po-timeline-h.is-dragging { cursor: grabbing; }
.po-timeline-h::-webkit-scrollbar { display: none; }
.po-tl {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
  position: relative;
  font-size: 9px;
  color: #bbb;
  font-weight: 600;
}
.po-tl .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eee;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
}
.po-tl.done .dot { background: #34C759; }
.po-tl.current .dot { background: #FF8A00; box-shadow: 0 0 0 4px rgba(255,138,0,0.2); }
.po-tl.done, .po-tl.current { color: #444; }
.po-item-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.po-item-row:last-child { border-bottom: none; }
.po-item-row img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}
.paid-banner {
  background: #E8F5E9;
  color: #2E7D32;
  text-align: center;
  font-weight: 800;
  padding: 10px;
  border-radius: 12px;
  margin: 10px 0;
}

/* PROFILE / ME PAGE */
.me-header {
  padding: 16px 16px 12px;
  animation: fadeInUp 0.4s ease;
}
.me-icons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.me-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.me-icon-btn:hover { background: rgba(255,138,0,0.1); color: #FF8A00; }
.me-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.me-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.me-info { flex: 1; }
.me-email {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}
.me-level {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-badge {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(135deg, #FF8A00, #FFC83D);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.me-id {
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

/* BALANCE CARD */
.balance-card {
  background: linear-gradient(135deg, #FF8A00, #FFC83D);
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255,138,0,0.25);
  animation: fadeInUp 0.5s ease;
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}
.bc-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 4px;
}
.bc-amount {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -1px;
}
.bc-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.bc-btn {
  flex: 1;
  padding: 10px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s;
}
.bc-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}
.bc-btn i { font-size: 16px; }
.bc-icons {
  display: flex;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 14px;
}
.bc-icon {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.bc-icon:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.bc-icon i {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}
.bc-icon span {
  font-size: 11px;
  font-weight: 600;
  display: block;
}
.bc-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #E53935;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(229,57,53,0.4);
}

/* PROMO BANNER */
.promo-banner {
  background: linear-gradient(120deg, #FF8A00, #FFC83D);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 20px rgba(255,138,0,0.2);
  animation: fadeInUp 0.6s ease;
  overflow: hidden;
  position: relative;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  animation: glow 4s ease-in-out infinite;
}
.promo-text { flex: 1; position: relative; z-index: 1; }
.promo-tag {
  display: inline-block;
  background: rgba(255,255,255,0.3);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.promo-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}
.promo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-bottom: 10px;
}
.promo-btn {
  display: inline-block;
  background: #fff;
  color: #FF8A00;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.25s;
}
.promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.promo-img {
  font-size: 64px;
  margin-left: 10px;
  animation: bounceIn 0.8s ease, float 3s ease-in-out infinite;
}

/* ME SECTION TITLE */
.me-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 800;
  color: #222;
}
.me-view-all {
  font-size: 12px;
  font-weight: 600;
  color: #FF8A00;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ORDER STATUS ROW */
.order-status-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  animation: fadeInUp 0.6s ease;
}
.order-status-item {
  flex: 1;
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.25s;
}
.order-status-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.order-status-item i {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
  color: #FF8A00;
}
.order-status-item span {
  font-size: 11px;
  font-weight: 600;
  color: #444;
  display: block;
}

/* ME SHIPPING CARD */
.me-shipping-card {
  background: linear-gradient(120deg, rgba(255,138,0,0.08), rgba(255,200,61,0.08));
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.65s ease;
  border: 1px solid rgba(255,138,0,0.15);
}
.mesc-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FF8A00, #FFC83D);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}
.mesc-text { flex: 1; }
.mesc-title {
  font-size: 13px;
  font-weight: 800;
  color: #222;
  margin-bottom: 2px;
}
.mesc-sub {
  font-size: 11px;
  color: #666;
}
.mesc-btn {
  background: #FF8A00;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}
.mesc-btn:hover {
  background: #E67700;
  transform: translateY(-2px);
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  animation: fadeInUp 0.7s ease;
}
.service-item {
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.25s;
}
.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.service-item i {
  font-size: 26px;
  display: block;
  margin-bottom: 6px;
  color: #FF8A00;
}
.service-item span {
  font-size: 10px;
  font-weight: 600;
  color: #444;
  display: block;
  line-height: 1.2;
}

/* EARN CARD */
.earn-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.75s ease;
}
.earn-text {
  margin-bottom: 12px;
}
.earn-title {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  line-height: 1.4;
}
.earn-stats {
  display: flex;
  gap: 12px;
}
.earn-stat {
  flex: 1;
  background: #F5F5F5;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.earn-stat span {
  font-size: 18px;
  font-weight: 800;
  color: #FF8A00;
}

/* FOR YOU CARDS */
.foryou-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.foryou-card {
  flex: 1;
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s;
  animation: fadeInUp 0.8s ease;
  position: relative;
  overflow: hidden;
}
.foryou-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.foryou-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 5s ease-in-out infinite;
}
.foryou-icon {
  font-size: 32px;
  margin-bottom: 8px;
  animation: bounceIn 1s ease;
}
.foryou-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}
.foryou-sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.9;
}

/* TOP UP / WITHDRAW */
.balance-info {
  background: linear-gradient(135deg, #F5F5F5, #E8E8E8);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  animation: fadeInUp 0.4s ease;
}
.bi-label {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  margin-bottom: 6px;
}
.bi-amount {
  font-size: 36px;
  font-weight: 900;
  color: #FF8A00;
  letter-spacing: -1px;
}
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.qa-btn {
  background: #F5F5F5;
  border: 1px solid #E8E8E8;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  transition: all 0.2s;
}
.qa-btn:hover, .qa-btn.active {
  background: rgba(255,138,0,0.1);
  border-color: #FF8A00;
  color: #FF8A00;
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.pm-btn {
  background: #F5F5F5;
  border: 2px solid #E8E8E8;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.pm-btn:hover, .pm-btn.active {
  background: rgba(255,138,0,0.08);
  border-color: #FF8A00;
}
.pm-btn i {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
  color: #666;
}
.pm-btn.active i { color: #FF8A00; }
.pm-btn span {
  font-size: 11px;
  font-weight: 600;
  color: #444;
  display: block;
}
.withdraw-fee {
  font-size: 12px;
  color: #E53935;
  font-weight: 600;
  margin-top: 8px;
  padding: 8px;
  background: rgba(229,57,53,0.08);
  border-radius: 8px;
  text-align: center;
}
.info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(52,199,89,0.08);
  border: 1px solid rgba(52,199,89,0.2);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  color: #2E7D32;
  font-weight: 600;
  animation: fadeInUp 0.6s ease;
}
.info-box i {
  font-size: 18px;
  flex-shrink: 0;
}

/* FLASH DEALS */
.flash-deals-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-bottom: 8px;
  animation: fadeInUp 0.5s ease;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.flash-deals-scroll.is-dragging {
  cursor: grabbing;
}
.flash-deals-scroll.is-dragging .flash-deal-card {
  pointer-events: none;
}
.flash-deals-scroll::-webkit-scrollbar { display: none; }
.flash-deal-card {
  flex: 0 0 140px;
  background: #fff;
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.25s;
  overflow: hidden;
  border: none;
  text-align: left;
  touch-action: pan-x;
}
.flash-deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.flash-deal-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f5f5f5;
}
.flash-deal-body {
  padding: 10px;
}
.flash-deal-title {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.flash-deal-price {
  font-size: 14px;
  font-weight: 800;
  color: #E53935;
  margin-bottom: 2px;
}
.flash-deal-old {
  font-size: 10px;
  color: #999;
  text-decoration: line-through;
}

/* PRODUCT DETAIL - API desc */
.pd-desc-html {
  font-size: 13px;
  color: #555;
  overflow: hidden;
}
.pd-desc-html img {
  width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  margin-bottom: 8px;
  display: block;
}
.pd-desc-imgs img,
.pd-desc-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 8px;
  display: block;
}

/* Cart added popup */
.cart-popup {
  position: absolute;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cart-popup.d-none { display: none !important; }
.cart-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.cart-popup-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.28s ease;
}
.cart-popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.cart-popup-card h4 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #222;
}
.cart-popup-sku {
  font-size: 12px;
  color: #666;
  margin: 0 0 18px;
  line-height: 1.45;
  word-break: break-word;
}
.cart-popup-actions {
  display: flex;
  gap: 10px;
}
.btn-cart-popup-ghost {
  flex: 1;
  border: 1.5px solid #e8e8e8;
  background: #fff;
  color: #444;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 12px;
}
.btn-cart-popup-ghost:active { background: #f5f5f5; }
.cart-popup-actions .btn-orange {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 12px;
}
