:root {
  --bg: #030616;
  --bg-soft: #070b22;
  --card: rgba(10, 16, 40, 0.9);
  --card-border: rgba(255, 255, 255, 0.06);
  --accent: #4f46e5;
  --accent-soft: #22d3ee;
  --danger: #fb7185;
  --text-main: #f9fafb;
  --text-sub: #9ca3af;
  --radius-xl: 22px;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.9);
  --blur: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #1d2671 0, transparent 50%),
              radial-gradient(circle at bottom right, #0f172a 0, transparent 55%),
              var(--bg);
  color: var(--text-main);
  /* display: flex; */
  justify-content: center;
  align-items: flex-start;
  align-items: center;
  padding: 32px 16px;
}

.app-shell {
  width: 100%;
  max-width: 1180px;
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(15,23,42,0.7));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
  padding: 0 26px 28px;
  position: relative;
}

/* Remove selection / blue layer on cards */
.product-card,
.product-card * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* TOP BAR (STICKY + HIDE/SHOW) */
.top-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 18px 0 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease-in-out, background 0.2s ease;
  border-radius: 10px;
}

.top-bar.hide-header {
  transform: translateY(-120%);
}

/* First row: logo + title + icons */
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  /* background: radial-gradient(circle at 30% 0, #22d3ee, #4f46e5); */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.7);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-sub);
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* NAV + SEARCH */
.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--text-sub);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  flex: 1;
  justify-content: center;
}

.nav-links::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  padding: 6px 10px;
  border-radius: 999px;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text-main);
  background: rgba(148, 163, 184, 0.12);
}

.search {
  position: relative;
  /* flex: 1; */
}

.search input {
  background: rgba(15,23,42,0.85);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 7px 11px 7px 30px;
  font-size: 0.8rem;
  color: var(--text-main);
  outline: none;
  min-width: 160px;
}

.search span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* HEADER BUTTONS */
.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  background: rgba(15,23,42,0.9);
  transition: 0.2s ease;
}

.circle-btn:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

/* HERO HEADER */
.hero-header {
  margin-top: 6px;
  margin-bottom: 18px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  background: rgba(15, 23, 42, 0.9);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.4);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* BANNER SLIDER */
.banner-slider {
  position: relative;
  margin-bottom: 22px;
  margin-top: 4px;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 50%),
              radial-gradient(circle at bottom right, rgba(129,140,248,0.2), transparent 55%),
              #020617;
  border: 1px solid rgba(148,163,184,0.3);
  box-shadow: 0 16px 50px rgba(15,23,42,0.9);
}

.banner-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

/* extra left/right padding so arrows don't cover text */
.banner-slide {
  min-width: 100%;
  padding: 18px 56px 18px;
  display: flex;
  align-items: center;
}

.banner-content {
  max-width: 640px;
}

.banner-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.banner-label.new {
  background: rgba(34,197,94,0.18);
  border: 1px solid rgba(34,197,94,0.9);
  color: #bbf7d0;
}

.banner-label.hot {
  background: rgba(248,113,113,0.18);
  border: 1px solid rgba(248,113,113,0.9);
  color: #fecaca;
}

.banner-label.featured {
  background: rgba(129,140,248,0.2);
  border: 1px solid rgba(129,140,248,0.9);
  color: #e0e7ff;
}

.banner-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.banner-text {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.banner-text strong {
  color: #fbbf24;
}

.banner-cta {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5, #22d3ee);
  color: #f9fafb;
  box-shadow: 0 10px 26px rgba(56,189,248,0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.banner-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.banner-cta:active {
  transform: translateY(0);
  box-shadow: 0 5px 16px rgba(56,189,248,0.4);
}

/* Banner Nav */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.banner-nav:hover {
  background: rgba(37,99,235,0.9);
  box-shadow: 0 8px 20px rgba(37,99,235,0.7);
}

.banner-nav.prev {
  left: 10px;
}

.banner-nav.next {
  right: 10px;
}

/* Banner Dots */
.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.banner-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(148,163,184,0.7);
  cursor: pointer;
  transition: width 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  opacity: 0.8;
}

.banner-dots .dot.active {
  width: 16px;
  background: #22d3ee;
  opacity: 1;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(129,140,248,0.18), transparent 60%),
              var(--card);
  border: 1px solid var(--card-border);
  padding: 16px 16px 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.8);
  backdrop-filter: blur(var(--blur));
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;

  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(96,165,250,0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 20px 60px rgba(15,23,42, 0.95);
}

.product-card:hover::before {
  opacity: 1;
}

.pc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ICON CONTAINER */
.pc-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.pc-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50px;
}

.pc-badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.7);
  color: #a5f3fc;
}

.pc-badge.purple {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.9);
  color: #e9d5ff;
}

.pc-badge.red {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.9);
  color: #fecaca;
}

.pc-title {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pc-validity {
  font-weight: 500;
  color: var(--accent-soft);
  font-size: 0.85rem;
}

.pc-subtitle {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.pc-price {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.pc-oldprice {
  font-size: 0.7rem;
  color: var(--text-sub);
  text-decoration: line-through;
}

/* Footer sticks to bottom of card */
.pc-footer {
  margin-top: auto;
  padding-top: 12px;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: none;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5, #22d3ee);
  color: #f9fafb;
  box-shadow: 0 8px 25px rgba(56,189,248, 0.45);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn-buy span {
  font-size: 0.9rem;
}

.btn-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(56,189,248, 0.7);
}

.btn-buy:active {
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 4px 14px rgba(56,189,248,0.5);
}


/* Desktop search aligned toward the right */
.search-desktop {
    display: block;
    width: 320px;        /* controls search size */
    margin-left: auto;   /* pushes search to the right */
    margin-right: 0 16px;
}


.search-mobile {
    display: none;
}


/* RESPONSIVE (tablet & below) */
@media (max-width: 1024px) {
  .app-shell {
    padding: 0 16px 22px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding: 16px 10px;
  }

  .search {
    margin-top: 8px;
    width: 100%;
  }

  .search input {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    padding: 6px 0;
    margin-top: 0;
    justify-content: flex-start;
  }

  .banner-slide {
    padding: 16px 44px;
  }

  /* Always 2 cards on phone */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* MOBILE: search moves to next line */
.search-desktop {
    display: none;
}

.search-mobile {
    display: block;
    margin-top: 8px;
    width: 100%;
}

}


        
.page-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #555;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.pc-badge-unavailable {
  background: rgba(255, 70, 70, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff7070 !important;
  font-weight: 700;
  border-radius: 5px;
}







