/* GLOBAL */
body {
  margin: 0;
  background: #05060a;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HEADER */
.header-area {
  text-align: center;
  padding: 26px 16px 10px;
}
.avatar-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  position: relative;
}
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(#ff0050,#00f2ea,#ff0050);
  -webkit-mask: radial-gradient(farthest-side,transparent calc(100% - 5px),#000 0);
  animation: spin 4s linear infinite;
}
.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.name {
  font-size: 20px;
  font-weight: 600;
  margin-top: 6px;
  background: linear-gradient(90deg,#ff0050,#00f2ea);
  -webkit-background-clip: text;
  color: transparent;
}
.bio {
  opacity: 0.78;
  font-size: 13px;
  margin-top: 4px;
}
.socials {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.socials a {
  color: #fff;
  font-size: 18px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  transition: 0.2s;
}
.socials a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px #00f2ea88;
}
.back-btn {
  margin-top: 16px;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 10px;
  background: linear-gradient(90deg,#ff0050,#00f2ea);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 0 12px #00f2ea55;
}

/* STORE SHELL – khối card ở giữa */
.store-shell {
  width: 100%;
  max-width: 1000px;
  margin: 18px auto 32px;
  padding: 18px 16px 24px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #151625, #05060a 60%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 18px 40px rgba(0,0,0,0.7);
}

/* BANNER SALE */
.sale-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg,#ff0050,#6f00ff);
  box-shadow: 0 10px 26px rgba(0,0,0,0.6);
  text-align: center;
}
.sale-banner-title {
  font-weight: 600;
  font-size: 15px;
}
.sale-banner-sub {
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
}
.filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
}
.filter-btn.active {
  background: linear-gradient(90deg,#ff0050,#00f2ea);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px #00f2ea55;
}
@media (max-width: 480px) {
  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

/* GRID + CARD */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill,minmax(155px,1fr));
  max-width: 900px;
  margin: 8px auto 0;
  width: 100%;
}
.card {
  background: #111;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: .18s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px #00f2ea55;
}
.card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.title {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.4;
  min-height: 38px;
}
.price {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #00f2ea;
}
.oldprice {
  margin-left: 6px;
  font-size: 12px;
  color: #777;
  text-decoration: line-through;
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 8px;
  background: #ff0050;
}
.buy {
  margin-top: 10px;
  display: block;
  text-align: center;
  padding: 9px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg,#ff0050,#00f2ea);
  box-shadow: 0 0 10px #00f2ea55;
}

/* LOAD MORE */
.load-more-wrap {
  text-align: center;
  margin-top: 18px;
}
.load-more-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: #111827;
  border: 1px solid rgba(148,163,184,0.5);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 13px;
}
.load-more-btn:hover {
  background: #1f2937;
}

/* POPUP */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.popup-overlay.active { display: flex; }
.popup-card {
  width: 90%;
  max-width: 360px;
  background: #020617;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.popup-img {
  width: 100%;
  border-radius: 14px;
}
.popup-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}
.popup-price {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #00f2ea;
}
.popup-oldprice {
  margin-left: 6px;
  color: #64748b;
  font-size: 13px;
  text-decoration: line-through;
}
.popup-badge {
  margin-top: 8px;
  display: inline-block;
  background: #ff0050;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
}
.popup-desc {
  margin-top: 8px;
  font-size: 13px;
  opacity: .85;
}
.popup-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 10px 0;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(90deg,#ff0050,#00f2ea);
  color: #fff;
}
.btn-secondary {
  background: #0f172a;
  border: 1px solid rgba(148,163,184,0.5);
  color: #e5e7eb;
}
.popup-close {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  opacity: .7;
  cursor: pointer;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 10px 0 20px;
  opacity: .7;
  font-size: 13px;
}

/* MOBILE GRID */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
/* ===============================
   FOOTER NEW LAYOUT
================================*/
.footer-area {
  text-align: center;
  padding: 26px 0 30px;
  margin-top: 20px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-socials a {
  color: #fff;
  font-size: 18px;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  transition: 0.2s;
}

.footer-socials a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 14px #00f2ea77;
}

.footer-home-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 12px;
  background: linear-gradient(90deg,#ff0050,#00f2ea);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 18px;
  box-shadow: 0 0 12px #00f2ea55;
}

.footer-copy {
  opacity: .7;
  font-size: 13px;
}
