:root {
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --muted: #64748b;
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(255, 255, 255, 0.06);
  --glass: rgba(15, 23, 42, 0.6);
  --glass-strong: rgba(15, 23, 42, 0.78);
  --glass-soft: rgba(15, 23, 42, 0.44);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  --shadow-tight: 0 12px 34px rgba(0, 0, 0, 0.3);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --surface-3: #334155;
  --glow-blue: rgba(59, 130, 246, 0.4);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #050a18;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.08), transparent 30rem),
    radial-gradient(circle at 58% 72%, rgba(34, 197, 94, 0.06), transparent 26rem),
    linear-gradient(135deg, #050a18 0%, #0a1628 48%, #0c1a30 100%);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.03), transparent);
}

/* ─── Page Loading Animation ─── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050a18;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(59, 130, 246, 0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: loaderSpin 0.8s linear infinite;
}

.loader-dots {
  display: flex;
  gap: 8px;
}

.loader-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ─── Scroll-reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Button glow hover (global) ─── */
@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.5), 0 0 50px rgba(59, 130, 246, 0.2); }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
  color: #f1f5f9;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 0.98;
}

h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.06;
}

h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.app-shell {
  min-height: 100vh;
  padding: 22px;
}

.glass-card,
.hero-glass,
.product-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6)),
    rgba(15, 23, 42, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.glass-card {
  border-radius: var(--radius-lg);
}

.glass-card::before,
.hero-glass::before,
.product-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%);
  opacity: 0.72;
}

.glass-card,
.hero-glass,
.product-card,
.btn,
.icon-btn {
  position: relative;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
}

.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  gap: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateZ(0);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease, background 180ms ease;
}

.btn {
  padding: 0 18px;
}

.btn svg,
.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.btn:hover,
.icon-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 16px 38px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  animation: btnGlowPulse 1.5s ease-in-out infinite;
}

.btn-dark {
  background: linear-gradient(135deg, #1e293b, #334155);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

.btn-glass {
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.7);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.icon-btn.danger {
  color: var(--red);
}

.auth-shell {
  display: grid;
  place-items: center;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
  width: min(1120px, 100%);
}

.hero-glass {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 34px;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 20, 46, 0.94), rgba(9, 92, 185, 0.76)),
    radial-gradient(circle at 78% 18%, rgba(90, 200, 250, 0.42), transparent 22rem);
}

.hero-glass h1 {
  max-width: 640px;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
}

.hero-glass p {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.hero-glass .eyebrow {
  color: #8ed6ff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.hero-metrics span {
  min-height: 78px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: 20px;
}

.auth-card {
  align-self: center;
  padding: 28px;
}

.card-icon,
.stat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #075bd8);
  box-shadow: 0 14px 30px rgba(0, 122, 255, 0.22);
}

.card-icon svg,
.stat-icon svg {
  width: 22px;
  height: 22px;
}

.auth-card h2 {
  margin-top: 20px;
}

.auth-card p {
  margin-top: 8px;
}

.form-stack {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-layout {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 18px 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #007aff, #5ac8fa);
  box-shadow: 0 18px 36px rgba(0, 122, 255, 0.26);
}

.side-nav {
  display: grid;
  gap: 8px;
  width: 100%;
}

.side-nav a {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 58px;
  border-radius: 18px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.side-nav a:hover,
.side-nav a.active {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.side-nav svg {
  width: 22px;
  height: 22px;
}

.admin-content {
  display: grid;
  gap: 18px;
}

.page-narrow {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.topbar h1 {
  margin-top: 9px;
  font-size: clamp(28px, 3vw, 42px);
}

.topbar p:last-child {
  max-width: 720px;
  margin-top: 8px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.toolbar form,
.card-actions form {
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.stat-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong {
  color: #475467;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 46px;
  line-height: 0.9;
}

.stat-card small {
  color: var(--muted);
  font-size: 13px;
}

.stat-icon.green {
  background: linear-gradient(135deg, var(--green), #1aa64a);
}

.stat-icon.cyan {
  background: linear-gradient(135deg, var(--blue-2), #0b94d8);
}

.section-card {
  padding: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin-top: 6px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.product-card {
  border-radius: 24px;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.55);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  flex-grow: 1;
}

.product-title-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.product-title-row h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 16px;
  line-height: 1.3;
}

.price-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.price-pair span {
  display: grid;
  gap: 5px;
  border-radius: 14px;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.price-pair strong {
  color: var(--ink);
  font-size: 14px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status.success {
  color: #087a32;
  background: rgba(52, 199, 89, 0.14);
}

.status.warning {
  color: #a15c00;
  background: rgba(255, 149, 0, 0.15);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-align: left;
}

th {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}

td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.52);
}

.table-empty {
  color: var(--muted);
  text-align: center;
}

.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  border: 1px dashed rgba(0, 122, 255, 0.26);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  color: var(--blue);
}

.text-link {
  color: #0064d8;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.form-grid .section-card {
  align-self: start;
}

.section-card > p:not(.eyebrow) {
  margin-top: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.span-2 {
  grid-column: 1 / -1;
}

.mini-panel {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.mini-panel p {
  color: var(--ink-2);
  font-size: 13px;
}

.code-input {
  min-height: 150px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-tight);
}

.flash,
[class*="bg-red-50"],
[class*="bg-emerald-50"] {
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .glass-card,
  .hero-glass,
  .product-card {
    animation: material-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes material-in {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.985);
      filter: blur(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }
}

.scrape-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 5px 10px;
  color: var(--ink-2);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.stat-chip.success {
  color: #087a32;
  border-color: rgba(52, 199, 89, 0.28);
  background: rgba(52, 199, 89, 0.12);
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.info-chip svg {
  width: 14px;
  height: 14px;
}

.info-chip.category {
  color: #a15c00;
  background: rgba(255, 149, 0, 0.12);
}

.info-chip.rating {
  color: #a16800;
  background: rgba(255, 200, 50, 0.14);
}

.info-chip.seller {
  color: #4a5568;
  background: rgba(15, 23, 42, 0.06);
}

.info-chip.return {
  color: #0064d8;
  background: rgba(0, 122, 255, 0.1);
}

.margin-calculator {
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 18px;
  padding: 18px;
  background: rgba(0, 122, 255, 0.04);
}

.margin-calculator h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #0064d8;
  font-size: 14px;
}

.margin-calculator h3 svg {
  width: 18px;
  height: 18px;
}

.margin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profit-display {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  min-height: 28px;
}

.profit-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.profit-tag.positive {
  color: #087a32;
  background: rgba(52, 199, 89, 0.14);
}

.profit-tag.negative {
  color: #c12020;
  background: rgba(255, 59, 48, 0.12);
}

.profit-tag.discount {
  color: #a15c00;
  background: rgba(255, 149, 0, 0.12);
}

.image-gallery-section {
  margin-top: 8px;
}

.image-gallery-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.image-gallery-section h3 svg {
  width: 18px;
  height: 18px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.gallery-thumb:hover {
  border-color: rgba(0, 122, 255, 0.4);
  transform: translateY(-2px);
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-thumb .img-index {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.55);
}

.variants-section {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.variants-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.variants-section h3 svg {
  width: 18px;
  height: 18px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
}

.variant-chip.size {
  color: var(--ink-2);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.variant-chip.color {
  color: #4a5568;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.8);
}

@media (max-width: 980px) {
  .auth-grid,
  .admin-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
  }

  .side-nav a {
    min-width: 82px;
  }

  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 12px;
  }

  .hero-glass {
    min-height: auto;
    padding: 24px;
  }

  .hero-metrics,
  .price-pair,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .auth-card,
  .topbar,
  .section-card,
  .stat-card {
    padding: 18px;
  }

  .btn {
    width: 100%;
  }

  .toolbar {
    width: 100%;
  }

  .toolbar form,
  .toolbar .btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════
   FIZZY BUTTON — Bubble-particle loading animation
   Inspired by CSS Fizzy Button (#9) from dev.to/webdeasy
   ═══════════════════════════════════════════════════════ */

.fizzy-btn {
  position: relative;
  overflow: visible;
  z-index: 1;
  transition: transform 120ms ease, box-shadow 250ms ease;
}

.fizzy-btn:active:not(.is-loading) {
  transform: scale(0.96);
}

.fizzy-btn::before,
.fizzy-btn::after {
  position: absolute;
  content: '';
  display: block;
  width: 140%;
  height: 100%;
  left: -20%;
  z-index: -1;
  transition: opacity ease-in-out 0.5s, transform ease-in-out 0.5s;
  background-repeat: no-repeat;
}

.fizzy-btn::before {
  display: none;
  top: -75%;
}

.fizzy-btn::after {
  display: none;
  bottom: -75%;
}

/* ── Fizzy particles fire when loading ── */
.fizzy-btn.is-loading {
  pointer-events: none;
  animation: fizzyPulseGlow 1.5s ease-in-out infinite;
}

.fizzy-btn.is-loading::before {
  display: block;
  animation: topBubbles 0.8s ease-in-out infinite;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 20%, transparent 20%),
    radial-gradient(circle, transparent 20%, rgba(255, 255, 255, 0.7) 20%, transparent 30%),
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 20%, transparent 20%),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, rgba(255, 255, 255, 0.7) 15%, transparent 20%),
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 20%, transparent 20%),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 20%, transparent 20%),
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 20%, transparent 20%),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 20%, transparent 20%);
  background-size:
    10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%,
    10% 10%, 15% 15%, 10% 10%, 18% 18%;
}

.fizzy-btn.is-loading::after {
  display: block;
  animation: bottomBubbles 0.8s ease-in-out infinite;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 20%, transparent 20%),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, rgba(255, 255, 255, 0.8) 15%, transparent 20%),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 20%, transparent 20%),
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 20%, transparent 20%),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 20%, transparent 20%),
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 20%, transparent 20%);
  background-size:
    15% 15%, 20% 20%, 18% 18%, 20% 20%,
    15% 15%, 10% 10%, 20% 20%;
}

/* ── Spinner overlay inside the button ── */
.fizzy-btn .fizzy-spinner {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: inherit;
  border-radius: inherit;
  gap: 10px;
}

.fizzy-btn.is-loading .fizzy-spinner {
  display: flex;
}

.fizzy-btn.is-loading .fizzy-label {
  visibility: hidden;
}

.fizzy-spinner-ring {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fizzySpinRing 0.7s linear infinite;
}

.fizzy-spinner-text {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: fizzyTextPulse 1.5s ease-in-out infinite;
}

/* ── Keyframes ── */
@keyframes topBubbles {
  0% {
    background-position:
      5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%,
      25% 90%, 40% 90%, 55% 90%, 70% 90%;
  }
  50% {
    background-position:
      0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%,
      22% 50%, 50% 50%, 65% 20%, 90% 30%;
  }
  100% {
    background-position:
      0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%,
      22% 40%, 50% 40%, 65% 10%, 90% 20%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

@keyframes bottomBubbles {
  0% {
    background-position:
      10% -10%, 30% 10%, 55% -10%, 70% -10%,
      85% -10%, 70% -10%, 70% 0%;
  }
  50% {
    background-position:
      0% 80%, 20% 80%, 45% 60%, 60% 100%,
      75% 70%, 95% 60%, 105% 0%;
  }
  100% {
    background-position:
      0% 90%, 20% 90%, 45% 70%, 60% 110%,
      75% 80%, 95% 70%, 110% 10%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

@keyframes fizzySpinRing {
  to { transform: rotate(360deg); }
}

@keyframes fizzyPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50%      { box-shadow: 0 0 20px 6px rgba(37, 99, 235, 0.25); }
}

@keyframes fizzyTextPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ═══════════════════════════════════════════════════════
   STORE FRONT — Premium E-commerce UI
   ═══════════════════════════════════════════════════════ */

.store-shell {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(59, 130, 246, 0.08), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(96, 165, 250, 0.05), transparent 28rem),
    linear-gradient(180deg, #050a18 0%, #0a1225 100%);
}

.store-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 60px;
}

/* ─── Store Hero ─── */
.store-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding: 40px 44px;
  margin-bottom: 36px;
  background:
    linear-gradient(135deg, rgba(8, 20, 48, 0.95), rgba(12, 75, 160, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(90, 200, 250, 0.35), transparent 20rem);
  color: #fff;
}

.store-hero::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 40%);
}

.store-hero h1 {
  color: #fff;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  margin-top: 14px;
}

.store-hero .eyebrow {
  color: #7dd3fc;
}

.store-hero .hero-desc {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 14px;
  font-size: 15px;
  max-width: 540px;
}

.hero-stats-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  text-align: center;
}

.hero-stat-num {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

/* ─── Section Title ─── */
.store-section {
  margin-top: 8px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.product-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: 10px;
}

/* ─── Product Grid ─── */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ─── Product Card ─── */
.store-product-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 280ms ease, border-color 280ms ease;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(12px);
}

.store-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.spc-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0f172a;
}

.spc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.store-product-card:hover .spc-image-wrap img {
  transform: scale(1.06);
}

.spc-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #e53e3e, #c53030);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.35);
  letter-spacing: 0.02em;
}

.spc-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}

.spc-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  min-height: 42px; /* Force 2 lines of space */
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Star Ratings (shared) ─── */
.star-icon {
  width: 14px;
  height: 14px;
  fill: #d1d5db;
}

.star-icon.filled {
  fill: #f59e0b;
}

.spc-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.spc-stars {
  display: flex;
  gap: 1px;
}

.spc-rating-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.spc-review-count {
  font-size: 12px;
  color: var(--muted);
}

.spc-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.spc-price {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.spc-mrp {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
}

.spc-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.spc-size-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--ink-2);
  border: 1px solid #e2e8f0;
}

.spc-size-chip.more {
  background: rgba(0, 122, 255, 0.08);
  color: #0064d8;
  border-color: rgba(0, 122, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE (PDP)
   ═══════════════════════════════════════════════════════ */

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0064d8;
  transition: color 160ms ease;
}

.breadcrumb a:hover {
  color: #004aad;
}

.breadcrumb a svg,
.breadcrumb a i {
  width: 14px;
  height: 14px;
}

.breadcrumb-sep {
  color: #d1d5db;
}

.breadcrumb > span:last-child {
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 400px;
}

/* ─── PDP Layout ─── */
.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ─── Image Gallery ─── */
.pdp-gallery {
  position: sticky;
  top: 24px;
}

.pdp-main-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
  backdrop-filter: blur(12px);
}

.pdp-main-image-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
  transition: transform 400ms ease;
}

.pdp-main-image-wrap:hover img {
  transform: scale(1.03);
}

.zoom-trigger {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-trigger svg,
.zoom-trigger i {
  width: 20px;
  height: 20px;
}

.pdp-main-image-wrap:hover .zoom-trigger {
  opacity: 1;
}

.zoom-trigger:hover {
  transform: scale(1.1);
  background: rgba(30, 41, 59, 0.9);
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pdp-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  padding: 0;
}

.pdp-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pdp-thumb:hover {
  border-color: rgba(0, 122, 255, 0.4);
  transform: translateY(-2px);
}

.pdp-thumb.active {
  border-color: #0064d8;
  box-shadow: 0 4px 14px rgba(0, 100, 216, 0.2);
}

/* ─── Product Info ─── */
.pdp-info {
  padding: 4px 0;
}

.pdp-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0064d8;
  background: rgba(0, 122, 255, 0.08);
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.pdp-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.pdp-stars {
  display: flex;
  gap: 2px;
}

.pdp-stars .star-icon {
  width: 18px;
  height: 18px;
}

.pdp-rating-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}

.pdp-review-count {
  font-size: 14px;
  color: var(--muted);
}

.pdp-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 20px;
}

.pdp-selling-price {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
}

.pdp-mrp {
  font-size: 18px;
  color: #9ca3af;
  text-decoration: line-through;
}

.pdp-discount {
  font-size: 14px;
  font-weight: 800;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
}

.pdp-tax-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.pdp-seller {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.pdp-seller strong {
  color: var(--ink-2);
}

.pdp-divider {
  border: 0;
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 20px 0;
}

/* ─── Size / Color Selectors ─── */
.pdp-option-group {
  margin-bottom: 20px;
}

.pdp-option-group h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.pdp-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  min-width: 52px;
  padding: 10px 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  text-align: center;
}

.size-btn:hover {
  border-color: #3b82f6;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
}

.size-btn.selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

.pdp-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-btn {
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.color-btn:hover {
  border-color: #3b82f6;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
}

.color-btn.selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* ─── Buy Form ─── */
.pdp-buy-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 24px;
}

.pdp-qty-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-qty-row label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
}

.qty-btn {
  width: 40px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: background 160ms ease;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.qty-stepper input {
  width: 48px;
  min-height: 44px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  text-align: center;
  font-weight: 700;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.qty-stepper input:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  min-height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #0064d8, #0050b0);
  box-shadow: 0 8px 28px rgba(0, 100, 216, 0.3);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 100, 216, 0.35);
}

.btn-buy-now svg,
.btn-buy-now i {
  width: 20px;
  height: 20px;
}

/* ─── Return Policy ─── */
.pdp-policy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 14px;
  color: #60a5fa;
}

.pdp-policy svg,
.pdp-policy i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── Feature badges ─── */
.pdp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.pdp-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.pdp-feature svg,
.pdp-feature i {
  width: 22px;
  height: 22px;
  color: #60a5fa;
}

/* ─── Description ─── */
.pdp-description {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.pdp-description h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: #fff;
}

.pdp-description p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ═══════════════════════════════════════════════════════
   ZOOM MODAL — Fullscreen Image Viewer
   ═══════════════════════════════════════════════════════ */

.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.zoom-overlay.open {
  opacity: 1;
  visibility: visible;
}

.zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
  z-index: 10;
}

.zoom-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.zoom-close svg,
.zoom-close i {
  width: 24px;
  height: 24px;
}

.zoom-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.zoom-arrow {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background 180ms ease, transform 180ms ease;
}

.zoom-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.zoom-arrow svg,
.zoom-arrow i {
  width: 24px;
  height: 24px;
}

.zoom-image-container {
  max-width: 80vw;
  max-height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-image-container img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 300ms ease;
  cursor: grab;
}

.zoom-image-container img:active {
  cursor: grabbing;
}

.zoom-thumb-strip {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding: 8px;
  overflow-x: auto;
  max-width: 80vw;
}

.zoom-thumb-btn {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 180ms ease, transform 180ms ease;
}

.zoom-thumb-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.zoom-thumb-btn.active {
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.zoom-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Store
   ═══════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  .store-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdp-gallery {
    position: static;
  }

  .pdp-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .store-container {
    padding: 16px 14px 40px;
  }

  .store-hero {
    padding: 22px;
  }

  .store-hero h1 {
    font-size: 22px;
  }

  .hero-stats-box {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-stat {
    padding: 12px 8px;
  }

  .hero-stat-num {
    font-size: 20px;
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .spc-body {
    padding: 10px 12px 14px;
  }

  .spc-title {
    font-size: 13px;
  }

  .spc-price {
    font-size: 16px;
  }

  .pdp-buy-form {
    flex-direction: column;
    align-items: stretch;
  }

  .pdp-qty-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .pdp-features {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .pdp-feature {
    font-size: 10px;
    padding: 10px 4px;
  }

  .zoom-image-container {
    max-width: 95vw;
    max-height: 70vh;
  }

  .zoom-thumb-strip {
    max-width: 95vw;
  }
}
/* TABLE STYLES FIX */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 24px;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table-wrap th {
  padding: 16px 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
}
.table-wrap td {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
}
.table-wrap tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.table-wrap tbody tr:last-child td {
  border-bottom: none;
}
.table-wrap td small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.table-wrap td.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* ─── Store Filters & Pagination ─── */
.store-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.search-form {
  max-width: 500px;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.search-input {
  padding-left: 40px;
  background: var(--glass-soft);
  border: 1px solid var(--line-dark);
}
.search-input:focus {
  border-color: var(--blue);
  background: var(--glass);
}
.clear-btn {
  padding: 0 12px;
  font-size: 12px;
}
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.category-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.category-pill:hover,
.category-pill.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.page-info {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.status.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.status.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.status.info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* ─── Flash Messages ─── */
.flash-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid;
  backdrop-filter: blur(8px);
  animation: flashSlideIn 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes flashSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.flash-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: #4ade80;
}
.flash-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* ─── Order Progress Tracker (User Side) ─── */
.order-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 0 4px;
  position: relative;
}
.order-tracker::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  z-index: 0;
}
.order-tracker .tracker-fill {
  position: absolute;
  top: 24px;
  left: 16px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #4ade80, #60a5fa, #a78bfa);
  z-index: 1;
  transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}
.tracker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: var(--surface-1, #0c1425);
  transition: all 300ms ease;
}
.tracker-step.active .tracker-dot {
  background: #4ade80;
  border-color: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}
.tracker-step.completed .tracker-dot {
  background: #4ade80;
  border-color: #4ade80;
}
.tracker-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}
.tracker-step.active .tracker-label,
.tracker-step.completed .tracker-label {
  color: rgba(255,255,255,0.7);
}

/* ADMIN SCRAPE PREVIEW FIX */
.mini-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.mini-panel h3 {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
.scrape-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stat-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--ink);
}
.stat-chip strong {
  color: var(--muted);
  margin-right: 6px;
  font-weight: 500;
}
.stat-chip.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* ─── Wishlist Buttons ─── */
.spc-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--glass);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  z-index: 10;
}
.spc-wishlist-btn:hover {
  color: var(--color-danger, #ef4444);
  border-color: var(--color-danger, #ef4444);
}
.spc-wishlist-btn.active .wishlist-icon {
  fill: var(--color-danger, #ef4444);
  color: var(--color-danger, #ef4444);
}

.btn-wishlist {
  background: var(--surface-2);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-wishlist:hover {
  background: var(--surface-hover);
  color: var(--color-danger, #ef4444);
}
.btn-wishlist.active .wishlist-icon {
  fill: var(--color-danger, #ef4444);
  color: var(--color-danger, #ef4444);
}

/* ═══════════════════════════════════════════════════════
   VIEW TRANSITIONS API — Smooth page navigation
   ═══════════════════════════════════════════════════════ */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-fade-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-fade-in 320ms cubic-bezier(0, 0, 0.2, 1) both;
}

@keyframes vt-fade-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.98); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════
   GLASSMORPHIC 3D CARD FLIP — Payment Processing Loader
   Pure CSS + Vanilla-tilt.js integration
   ═══════════════════════════════════════════════════════ */
.payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  background: rgba(5, 10, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: overlay-in 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.payment-overlay.active {
  display: flex;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 3D Scene Container */
.flip-scene {
  perspective: 1200px;
  width: 280px;
  height: 170px;
}

/* The flipping card */
.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cardFlip 3.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  /* Apple-grade glassmorphism */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 60px rgba(59, 130, 246, 0.08);
  overflow: hidden;
}

/* Front: Brand logo */
.flip-card-front {
  z-index: 2;
}

.flip-card-front .flip-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.flip-card-front .flip-logo svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.flip-card-front .flip-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
}

/* Light reflection sweep on front */
.flip-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 60%
  );
  animation: lightSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

/* Back: Secure processing */
.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-back .lock-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(34, 197, 94, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.flip-card-back .lock-icon svg {
  width: 20px;
  height: 20px;
  color: #93c5fd;
}

.flip-card-back .secure-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
}

.flip-card-back .secure-sub {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

/* Light reflection sweep on back */
.flip-card-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 60%
  );
  animation: lightSweep 3.6s ease-in-out infinite;
  animation-delay: 1.8s;
  pointer-events: none;
}

/* The 3D flip animation */
@keyframes cardFlip {
  0%   { transform: rotateY(0deg); }
  40%  { transform: rotateY(180deg); }
  50%  { transform: rotateY(180deg); }
  90%  { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); }
}

/* Light sweep across glass surface */
@keyframes lightSweep {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Glow ring under card */
.flip-glow {
  width: 180px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.4), transparent 70%);
  filter: blur(6px);
  animation: glowPulse 3.6s ease-in-out infinite;
  margin-top: -16px;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scaleX(1); }
  25%      { opacity: 1;   transform: scaleX(1.3); }
  50%      { opacity: 0.4; transform: scaleX(0.8); }
  75%      { opacity: 1;   transform: scaleX(1.3); }
}

/* Status text under card */
.payment-overlay .overlay-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* Mobile responsiveness for the card */
@media (max-width: 480px) {
  .flip-scene {
    width: 240px;
    height: 145px;
  }
  .flip-card-front .flip-logo {
    font-size: 20px;
  }
}

/* ─── iOS-Style Premium Dropdown ─── */
.ios-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ios-select {
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    border-color 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 200ms ease,
    box-shadow 200ms ease,
    transform 120ms ease;
}

.ios-select:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.18);
}

.ios-select:focus {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(15, 23, 42, 0.8);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(59, 130, 246, 0.1);
  transform: scale(1.005);
}

.ios-select:active {
  transform: scale(0.995);
}

.ios-select option {
  background: #0f172a;
  color: var(--ink);
  padding: 10px 14px;
  font-size: 0.95rem;
}

.ios-select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: color 200ms ease, transform 200ms ease;
}

.ios-select:focus ~ .ios-select-icon {
  color: rgba(59, 130, 246, 0.8);
  transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 640px) {
  .ios-select {
    min-height: 44px;
    padding: 10px 38px 10px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
}

/* Mobile fallback: disable heavy backdrop-filter on small screens to avoid GPU/compositor artifacts */
@media (max-width: 900px) {
  .glass-card,
  .hero-glass,
  .product-card,
  .pdp-main-image-wrap,
  .payment-overlay,
  .flip-card-back,
  #obsidrix-loader,
  .zoom-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 14, 26, 0.78) !important;
  }
  /* disable heavy animations/filters on small screens */
  .glass-card, .hero-glass, .product-card { animation: none !important; }
  .pdp-main-image-wrap img { transform: none !important; }
  .payment-overlay { animation: none !important; }
}

