/* ==========================================================================
   PREMIUMIFY DESIGN SYSTEM
   Exact 1:1 reproduction of premiumify.net
   Deep obsidian-navy palette, vivid gradient accents, and bespoke typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --navy: #070b1f;
  --navy-2: #0b0f2a;
  --surface: #111827;
  --surface-hover: #1a2338;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --brand: #3347ff;
  --brand-2: #8b3bff;
  --brand-glow: rgba(51, 71, 255, 0.35);

  --text-main: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .px-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

/* Premiumify Header */
.px-header {
  background: rgba(7, 11, 31, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.px-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.px-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--brand-glow);
}

/* Nav Links */
.px-nav-link {
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.px-nav-link:hover, .px-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Buttons */
.px-btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px var(--brand-glow);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.px-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(51, 71, 255, 0.5);
  filter: brightness(1.08);
}

.px-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.px-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
}

/* Premiumify Signature Hero */
.px-hero {
  position: relative;
  isolation: isolate;
  margin: 12px 16px 0;
  padding: 56px 24px 44px;
  border-radius: var(--r-xl);
  background: radial-gradient(120% 90% at 0% 0%, #1b2a8f 0%, transparent 55%),
              radial-gradient(90% 80% at 100% 10%, #4a2a9c 0%, transparent 55%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.px-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #dfe4ff;
  margin-bottom: 20px;
}

.px-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: px-pulse 2s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes px-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.8; }
}

.px-grad {
  background: linear-gradient(90deg, #9db0ff 0%, #d7b8ff 50%, #ffb8e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.px-lead {
  font-size: 1.0625rem;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.6;
}

/* Premiumify Hero Search Bar */
.px-search-hero {
  position: relative;
  max-width: 580px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  padding: 4px 6px 4px 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.px-search-hero input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9375rem;
  padding: 10px 0;
}

.px-search-hero input::placeholder {
  color: #8b99b5;
}

/* Live Customer Activity Toast (Premiumify Feature) */
.px-live-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  color: #c7d2fe;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Premiumify Product Card (.px-card) */
.px-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
}

.px-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(51, 71, 255, 0.25);
  background: var(--surface-hover);
}

.px-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.px-card-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #1c2640;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.px-card-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.px-card:hover .px-card-logo-wrap img {
  transform: scale(1.1);
}

.px-badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
}

.px-card-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.015em;
  margin-top: 6px;
  transition: color 0.2s ease;
}

.px-card:hover .px-card-name {
  color: #9db0ff;
}

.px-card-meta {
  font-size: 0.8125rem;
  color: var(--text-dim);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.px-card-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.px-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.px-card-go {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.px-card:hover .px-card-go {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Category Filter Chips */
.px-chip {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.px-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.px-chip.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--brand-glow);
}

/* Premiumify PDP Variant Card */
.px-variant-choice {
  background: #172033;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.px-variant-choice:hover {
  border-color: var(--line-strong);
  background: #1c2640;
}

.px-variant-choice.selected {
  border-color: #6fb1ff;
  background: rgba(51, 71, 255, 0.12);
  box-shadow: 0 0 0 1px #6fb1ff;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: #1c2640;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}
