/* Home — t-shopping.store palette */

.nx-home {
  --ink: #121212;
  --cyan: #3bb5d4;
  --magenta: #f0357a;
  --bg: #f4f5f8;
  --card: #ffffff;
  --muted: #6b7280;
  --line: rgba(18, 18, 18, 0.08);
  min-height: 100%;
  padding-bottom: 14px;
  background: var(--bg);
  color: var(--ink);
}

.app-root:has(.nx-home) { background: var(--bg); }

.nx-hero {
  position: relative;
  overflow: hidden;
  padding: 12px 14px 12px;
  color: #121212;
  background: #ffffff;
  border-radius: 0;
  isolation: isolate;
}

.nx-hero::before,
.nx-hero::after {
  content: none;
}

.nx-hero-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.nx-logo {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}

.nx-logo-plate {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nx-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.nx-brand:hover .nx-logo-plate,
.nx-brand:focus-visible .nx-logo-plate {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.nx-cart {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #121212;
  text-decoration: none;
  background: #f4f5f8;
  border: 1px solid #eceef2;
  border-radius: 14px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nx-cart:hover,
.nx-cart:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(240, 53, 122, 0.16);
}

@keyframes nxLogoShine {
  0%, 68% { transform: translateX(-80%) rotate(18deg); opacity: 0; }
  78% { opacity: 1; }
  100% { transform: translateX(130%) rotate(18deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-logo-shine { animation: none; }
}

.nx-search.gm-search-sticky,
.gm-search-sticky {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.nx-search form,
.gm-search-sticky form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(18, 18, 18, 0.08);
}

.nx-search input,
.gm-search-sticky input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  min-width: 0;
  font: 500 14px/1.4 inherit;
  color: var(--ink);
}

.nx-search .gm-search-ic { color: var(--magenta); }
.gm-search-sticky .gm-search-cart { display: none; }

.nx-trust {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 10px;
  padding: 2px 4px;
  background: #fff0f5;
  border: 1px solid #fde2ea;
  border-radius: 14px;
}

.nx-trust span {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  color: #575757;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.nx-trust span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #f3d0db;
}

.nx-trust i { color: var(--cyan); font-size: 10px; }

.gm-banner-section { padding: 14px 14px 0; background: transparent; }

.gm-banner {
  position: relative;
  aspect-ratio: 16 / 8.3;
  overflow: hidden;
  background: #111;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(20, 22, 28, 0.12);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.banner-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.banner-counter {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 4;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 22, 28, 0.55);
  border-radius: 999px;
}

.banner-dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 0; }
.banner-dot {
  width: 6px;
  height: 6px;
  background: #d5d8e0;
  border-radius: 99px;
  cursor: pointer;
}
.banner-dot.active {
  width: 16px;
  background: var(--magenta);
}

.gm-cats-section {
  margin: 10px 14px 0;
  padding: 14px 10px 12px;
  background: var(--card);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(20, 22, 28, 0.05);
}

.gm-cats-viewport { overflow: visible; }
.gm-cats-track {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 6px;
  transform: none !important;
}
.gm-cat-dots { display: none; }

.gm-cat-item {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.gm-cat-ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #14161c;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}
.gm-cat-ic--cyan,
.gm-cat-ic--olive { background: #e8eef2; color: #3BB5D4; }
.gm-cat-ic--pink { background: #fff0f5; color: #F0357A; }
.gm-cat-ic--mix { background: #f4f5f8; color: #1c1917; }
.gm-cat-ic--img { overflow: hidden; background: #f4f6fa; }
.gm-cat-ic--img img { width: 100%; height: 100%; object-fit: cover; }

.gm-cat-label {
  font-size: 10px;
  font-weight: 700;
  color: #3b3f4a;
  text-align: center;
  line-height: 1.2;
  max-width: 64px;
}

.wow-section,
.trending-section,
.tiktok-deals-section,
.gm-levels-section {
  margin: 12px 14px 0;
  padding: 14px 0 12px;
  background: var(--card);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(20, 22, 28, 0.05);
}

.sec-hd,
.wow-bar,
.trending-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px 12px;
  background: transparent;
}

.sec-hd h3,
.trending-sec-head h3,
.wb-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.wb-title {
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.sec-hd a,
.wb-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--magenta);
  text-decoration: none;
  border: 0;
}

.premium-count {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #D42E66;
  background: #fff0f5;
  padding: 4px 8px;
  border-radius: 999px;
}

.wb-timer { display: flex; align-items: center; gap: 4px; margin-left: auto; color: var(--muted); font-weight: 700; }
.wb-timer .t-seg {
  min-width: 24px;
  padding: 4px 5px;
  text-align: center;
  color: #fff;
  background: #14161c;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 0 var(--magenta);
}

.wow-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 14px 8px;
  scrollbar-width: none;
}
.wow-scroll::-webkit-scrollbar { display: none; }

.wow-card,
.wow-card.wow-card--pro {
  flex: 0 0 156px;
  width: 156px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(20, 22, 28, 0.05);
}

.wow-card .wc-img,
.trend-img {
  position: relative;
  aspect-ratio: 1;
  background: #f4f6fa;
  overflow: hidden;
}
.wow-card .wc-img img,
.trend-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wc-shop-tag,
.trend-shop-tag,
.wc-mall {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 22, 28, 0.72);
  border-radius: 999px;
}

.wc-off,
.trend-off {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--magenta);
  border-radius: 999px;
}

.lv-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #14161c;
  border-radius: 999px;
}

.wc-body,
.trend-card-body { padding: 9px 10px 11px; }

.wc-name,
.trend-card-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 32px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wc-price,
.trend-card-price,
.wc-price-row .wc-price {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--magenta);
}

.wc-orig,
.trend-card-orig { font-size: 11px; color: #9aa0b4; text-decoration: line-through; }
.wc-sold,
.trend-card-shop { margin-top: 4px; font-size: 11px; color: var(--muted); }

.wc-progress { height: 4px; margin-top: 8px; background: #eceff5; border-radius: 99px; overflow: hidden; }
.wc-progress-fill {
  display: block;
  height: 100%;
  min-width: 8%;
  background: var(--magenta);
}

.trending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 6px;
}

.trending-card,
.trending-card.trend-card--pro {
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(20, 22, 28, 0.04);
}

.trend-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.trend-points-back { display: none; }

.tiktok-deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 4px;
}
.tiktok-deal-card {
  overflow: hidden;
  cursor: pointer;
  background: #111;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(20, 22, 28, 0.1);
}
.tiktok-deal-card img { width: 100%; aspect-ratio: 10/9; object-fit: cover; display: block; }

.level-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 14px 8px;
  scrollbar-width: none;
}
.level-scroll::-webkit-scrollbar { display: none; }

.lv-card {
  flex: 0 0 208px;
  width: 208px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
}
.lv-card-inner { display: flex; height: 122px; }
.lv-card-left { flex: 1; padding: 13px; display: flex; flex-direction: column; justify-content: space-between; }
.lv-card-right {
  width: 52px;
  display: grid;
  place-items: center;
  border-left: 1px dashed rgba(255,255,255,.35);
  background: rgba(0,0,0,.08);
}
.lv-badge-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}
.lv-capital { color: #fff; font-size: 19px; font-weight: 800; }
.lv-tier-label, .lv-capital-lbl, .lv-tier-starter { color: rgba(255,255,255,.85); font-size: 10px; }
.lv-barcode { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lv-barcode-lines { display: flex; gap: 2px; align-items: flex-end; }
.lv-barcode-lines span { width: 2px; background: rgba(255,255,255,.85); }
.lv-barcode-code { font-size: 8px; color: rgba(255,255,255,.85); }

.gm-home-header { display: none; }

.app-root:has(.nx-home) .bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px rgba(20, 22, 28, 0.05);
  backdrop-filter: blur(14px);
}
.app-root:has(.nx-home) .bottom-nav .bn-item__label { display: block; }
.app-root:has(.nx-home) .bottom-nav .bn-item { color: #8b909c; }
.app-root:has(.nx-home) .bottom-nav .bn-item.active,
.app-root:has(.nx-home) .bottom-nav .bn-item.active i { color: #14161c; }
