/* ShopCuaAI — design system (Tailwind CDN + custom tokens). Cosmic Neon Purple & Cyan theme */

:root {
  --brand: #9333ea;
  --brand-strong: #7e22ce;
  --brand-soft: #f3e8ff;
  --brand-ink: #1e1038;
  --brand-cyan: #06b6d4;
  --accent: #06b6d4;
  --ok: #059669;
  --warn: #d97706;
  --bad: #e11d48;
  --bg: #f5f3ff;
  --bg-elev: #ffffff;
  --text: #130d2a;
  --muted: #645986;
  --line: #e4ddf7;
  --shadow: 0 1px 3px rgb(88 28 135 / 6%), 0 10px 28px rgb(88 28 135 / 8%);
  --shadow-hover: 0 10px 30px rgb(147 51 234 / 20%), 0 4px 14px rgb(6 182 212 / 14%);
  --radius: 1.15rem;
  --tap: 2.75rem;
  --header-h: 3.85rem;
  --bottom-nav-h: 4.1rem;
  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --header-h: 4.25rem;
  }
}

.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto !important;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 75% 35%, color-mix(in srgb, var(--accent, #9333ea) 25%, transparent), transparent 65%),
    #08071a;
}

.product-card__banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.product-card:hover .product-card__banner {
  filter: brightness(1.06);
  transform: scale(1.02);
}

.product-card__icon {
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-height: 0 !important;
  flex-shrink: 0;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 1.5px solid rgb(168 85 247 / 32%);
  background: #0b1120;
  box-shadow: 0 4px 12px rgb(0 0 0 / 28%);
}

html.dark {
  --brand: #c084fc;
  --brand-strong: #67e8f9;
  --brand-soft: #2e1065;
  --brand-ink: #09071a;
  --brand-cyan: #22d3ee;
  --accent: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --bg: #08071a;
  --bg-elev: #120f2d;
  --text: #f3effe;
  --muted: #a39ac4;
  --line: #292154;
  --shadow: 0 1px 2px rgb(0 0 0 / 50%), 0 14px 36px rgb(4 2 18 / 55%);
  --shadow-hover: 0 10px 30px rgb(168 85 247 / 24%), 0 4px 16px rgb(34 211 238 / 18%);
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background:
    radial-gradient(920px 320px at 8% -8%, rgb(168 85 247 / 15%), transparent 52%),
    radial-gradient(760px 280px at 96% 0%, rgb(6 182 212 / 14%), transparent 48%),
    radial-gradient(640px 260px at 50% 100%, rgb(99 102 241 / 10%), transparent 55%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }
}

html.dark body {
  background:
    radial-gradient(960px 360px at 5% -10%, rgb(168 85 247 / 22%), transparent 52%),
    radial-gradient(760px 320px at 98% -5%, rgb(6 182 212 / 20%), transparent 50%),
    radial-gradient(700px 300px at 50% 105%, rgb(124 58 237 / 14%), transparent 55%),
    var(--bg);
}

::selection { background: rgb(168 85 247 / 32%); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.55rem 1.05rem;
  border-radius: 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

.btn-primary:active,
.btn-secondary:active,
.btn-danger:active,
.icon-btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 52%, #06b6d4 100%);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 16%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset, 0 6px 18px rgb(147 51 234 / 32%), 0 2px 8px rgb(6 182 212 / 20%);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #9333ea 0%, #4f46e5 52%, #0891b2 100%);
  box-shadow: 0 8px 22px rgb(147 51 234 / 40%), 0 3px 10px rgb(6 182 212 / 28%);
}
html.dark .btn-primary {
  color: #ffffff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 22%) inset, 0 6px 20px rgb(168 85 247 / 35%), 0 2px 10px rgb(34 211 238 / 22%);
}

.btn-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(88 28 135 / 5%);
}
.btn-secondary:hover { background: rgb(168 85 247 / 10%); border-color: rgb(168 85 247 / 42%); }

.btn-danger {
  background: #e11d48;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 6px 14px rgb(225 29 72 / 22%);
}
.btn-danger:hover { background: #be123c; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: rgb(147 51 234 / 7%); color: var(--text); }
html.dark .btn-ghost:hover { background: rgb(192 132 252 / 10%); }

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible,
.btn-ghost:focus-visible,
.input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Form controls ---------- */
.input {
  display: block;
  width: 100%;
  min-height: var(--tap);
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-size: 1rem;
  box-shadow: 0 1px 2px rgb(88 28 135 / 4%);
}
@media (min-width: 640px) {
  .input { font-size: 0.9375rem; }
}
.input::placeholder { color: #8b7fb0; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(168 85 247 / 22%); outline: none; }
textarea.input { min-height: 8rem; padding-top: 0.75rem; resize: vertical; }

.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Surfaces ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-ok { background: #d1fae5; color: #065f46; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-bad { background: #ffe4e6; color: #9f1239; }
.badge-muted { background: #ede9fe; color: #5b4d7a; }
.badge-brand { background: var(--brand-soft); color: var(--brand-strong); }
.badge-info { background: #cffafe; color: #0e7490; }

html.dark .badge-ok { background: rgb(16 185 129 / 18%); color: #6ee7b7; }
html.dark .badge-warn { background: rgb(245 158 11 / 18%); color: #fcd34d; }
html.dark .badge-bad { background: rgb(244 63 94 / 18%); color: #fda4af; }
html.dark .badge-muted { background: #1e1945; color: #cbc3e6; }
html.dark .badge-brand { background: rgb(168 85 247 / 20%); color: #e9d5ff; border: 1px solid rgb(192 132 252 / 25%); }
html.dark .badge-info { background: rgb(6 182 212 / 18%); color: #67e8f9; }

/* ---------- Horizontal Swipeable Category Bar ---------- */
.category-scroll {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}
.category-scroll > * {
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .category-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

/* ---------- Header ---------- */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: auto;
  background: rgb(250 247 255 / 88%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html.dark .shop-header {
  background: rgb(8 7 26 / 86%);
  border-bottom: 1px solid rgb(168 85 247 / 24%);
}

.shop-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  max-width: 72rem;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 0.85rem;
}
@media (min-width: 640px) {
  .shop-header__inner {
    gap: 1rem;
    padding: 0 1rem;
  }
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #9333ea 0%, #6366f1 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
@media (min-width: 640px) {
  .brand-mark {
    gap: 0.65rem;
    font-size: 1.15rem;
  }
}
html.dark .brand-mark {
  background: linear-gradient(90deg, #f5d0fe 0%, #c084fc 48%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-mark img {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid rgb(192 132 252 / 55%);
  box-shadow: 0 0 14px rgb(168 85 247 / 42%), 0 0 6px rgb(34 211 238 / 32%);
}
@media (min-width: 640px) {
  .brand-mark img {
    width: 2.4rem;
    height: 2.4rem;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0.75rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-link:hover,
.nav-link.is-active { background: rgb(168 85 247 / 14%); color: var(--brand-strong); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, color .15s, transform .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-strong); }

/* ---------- Mobile Bottom App Navigation Bar ---------- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  min-height: var(--bottom-nav-h);
  padding: 0.25rem 0.35rem calc(0.25rem + env(safe-area-inset-bottom, 0px));
  background: rgb(255 255 255 / 92%);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 24px rgb(88 28 135 / 10%);
}
html.dark .mobile-bottom-nav {
  background: rgb(14 11 36 / 92%);
  border-top: 1px solid rgb(168 85 247 / 24%);
  box-shadow: 0 -6px 28px rgb(0 0 0 / 55%);
}
@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-bottom-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.35rem 0.2rem;
  border-radius: 0.85rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .15s ease;
}
.mobile-bottom-nav__item:active {
  transform: scale(0.94);
}
.mobile-bottom-nav__item svg {
  width: 1.3rem;
  height: 1.3rem;
  transition: transform .18s ease;
}
.mobile-bottom-nav__item.is-active {
  color: var(--brand-strong);
  font-weight: 700;
  background: rgb(168 85 247 / 12%);
}
html.dark .mobile-bottom-nav__item.is-active {
  color: #67e8f9;
  background: rgb(168 85 247 / 18%);
}
.mobile-bottom-nav__item.is-active svg {
  transform: translateY(-1px);
}

/* ---------- Toasts ---------- */
.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 0.5rem);
  right: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  display: flex;
  width: auto;
  max-width: 24rem;
  margin-left: auto;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .toast-stack {
    top: 1rem;
    right: 1rem;
    left: auto;
    width: 22rem;
  }
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  line-height: 1.4;
  animation: toast-in .28s ease;
}
.toast--success { border-color: #6ee7b7; background: #ecfdf5; color: #065f46; }
.toast--error { border-color: #fda4af; background: #fff1f2; color: #9f1239; }
.toast--info { border-color: #c084fc; background: #faf5ff; color: #6b21a8; }
html.dark .toast--success { background: #052e2b; color: #6ee7b7; }
html.dark .toast--error { background: #3f1219; color: #fda4af; }
html.dark .toast--info { background: #1e1038; color: #e9d5ff; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Featured Products Auto-Sliding Carousel ---------- */
.featured-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgb(168 85 247 / 32%);
  background: var(--bg-elev);
  box-shadow: 0 14px 38px rgb(88 28 135 / 16%), 0 0 0 1px rgb(34 211 238 / 12%);
}
@media (min-width: 640px) {
  .featured-carousel {
    border-radius: 1.5rem;
  }
}
html.dark .featured-carousel {
  border-color: rgb(192 132 252 / 28%);
  box-shadow: 0 20px 52px rgb(4 2 18 / 65%), 0 0 28px rgb(168 85 247 / 16%);
}

.featured-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.featured-carousel__track {
  display: flex;
  width: 100%;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.featured-slide {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .featured-slide {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.featured-slide__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 50%, color-mix(in srgb, var(--accent, #9333ea) 26%, transparent), transparent 68%),
    linear-gradient(135deg, #060515 0%, #0d0a24 55%, #130d30 100%);
  text-decoration: none;
}
@media (min-width: 1024px) {
  .featured-slide__media {
    aspect-ratio: auto;
    min-height: 20.5rem;
    border-right: 1px solid var(--line);
  }
}

.featured-slide__banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: filter 300ms ease;
}
.featured-slide__media:hover .featured-slide__banner {
  filter: brightness(1.05);
}

.featured-slide__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.featured-slide__identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.featured-slide__icon {
  width: 2.65rem !important;
  height: 2.65rem !important;
  min-height: 0 !important;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1.5px solid rgb(168 85 247 / 35%);
  background: #0b1120;
  box-shadow: 0 6px 16px rgb(0 0 0 / 32%);
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .featured-slide__icon {
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 0.85rem;
  }
}

.featured-slide__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.featured-slide__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1rem 1.05rem;
  background: var(--bg-elev);
}
@media (min-width: 640px) {
  .featured-slide__content {
    gap: 1rem;
    padding: 1.45rem 1.75rem;
  }
}

.featured-slide__title {
  margin-top: 0.55rem;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--text);
}
@media (min-width: 640px) {
  .featured-slide__title {
    margin-top: 0.7rem;
    font-size: 1.6rem;
  }
}

.featured-slide__desc {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-slide__guide-box {
  margin-top: 0.6rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgb(168 85 247 / 6%);
  padding: 0.55rem 0.75rem;
}
@media (min-width: 640px) {
  .featured-slide__guide-box {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
  }
}

.featured-slide__guide-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.featured-slide__guide-text {
  margin-top: 0.15rem;
  font-size: 0.74rem;
  line-height: 1.38;
  color: var(--muted);
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) {
  .featured-slide__guide-text {
    -webkit-line-clamp: 2;
  }
}

.featured-slide__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.featured-slide__price {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand-strong);
  line-height: 1.1;
}
@media (min-width: 640px) {
  .featured-slide__price {
    font-size: 1.65rem;
  }
}

.featured-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--line);
  background: rgb(147 51 234 / 4%);
}

.featured-carousel__nav-btn {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.featured-carousel__nav-btn:hover {
  border-color: var(--brand);
  background: rgb(168 85 247 / 12%);
  color: var(--brand-strong);
}

.featured-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.featured-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgb(147 51 234 / 28%);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.featured-carousel__dot.is-active {
  width: 1.85rem;
  background: linear-gradient(90deg, #a855f7, #06b6d4);
}

/* ---------- Product card ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgb(168 85 247 / 45%);
}
.product-card:active {
  transform: scale(0.988);
}
.product-card__art {
  position: relative;
  aspect-ratio: 2 / 1;
  height: auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: #08071a;
}
.product-card--soldout .product-card__art { filter: grayscale(.35) brightness(.9); }
.product-card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.95rem 1rem 1.05rem; flex: 1; }
.product-card__price { margin-top: auto; padding-top: 0.4rem; font-size: 1.22rem; font-weight: 800; color: var(--brand-strong); letter-spacing: -.02em; line-height: 1.15; }

.price-original {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgb(244 63 94 / 80%);
  opacity: 0.88;
}
.price-original--sm {
  font-size: 0.75rem;
}

.price-discount-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
  background: rgb(244 63 94 / 14%);
  color: #e11d48;
  border: 1px solid rgb(244 63 94 / 30%);
}
html.dark .price-discount-badge {
  background: rgb(244 63 94 / 22%);
  color: #fda4af;
  border-color: rgb(251 113 133 / 38%);
}
.price-discount-badge--sm {
  padding: 0.06rem 0.42rem;
  font-size: 0.64rem;
}

/* ---------- Variant Card ---------- */
.variant-card {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgb(168 85 247 / 3%);
  padding: 0.9rem 1rem;
  transition: border-color .15s ease, background .15s ease;
}
.variant-card:hover {
  border-color: rgb(168 85 247 / 38%);
  background: rgb(168 85 247 / 6%);
}

/* ---------- Empty / error ---------- */
.empty-state {
  text-align: center;
  padding: 2.25rem 1.15rem;
  color: var(--muted);
}
.empty-state img { width: 8.5rem; margin: 0 auto 0.75rem; }

/* ---------- Tables ---------- */
.data-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgb(147 51 234 / 4%);
}
html.dark .data-table th { background: rgb(168 85 247 / 8%); }
.data-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgb(168 85 247 / 7%); }

.mobile-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.mobile-row:last-child { border-bottom: 0; }

/* ---------- Admin ---------- */
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.3rem;
  border-radius: 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex-shrink: 0;
  border-radius: 0.75rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.admin-tab:hover { background: rgb(168 85 247 / 12%); color: var(--text); }
.admin-tab.is-active {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 55%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgb(147 51 234 / 32%);
}
html.dark .admin-tab.is-active { color: #fff; }

.stat-card { padding: 1rem 1.1rem; }
.stat-card__label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.stat-card__value { margin-top: 0.2rem; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-strong); }
@media (min-width: 640px) {
  .stat-card { padding: 1.15rem 1.2rem; }
  .stat-card__value { font-size: 1.75rem; }
}

/* ---------- Dropzone ---------- */
.dropzone {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.35rem;
  min-height: 8.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1.5px dashed var(--line);
  background: rgb(168 85 247 / 5%);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--brand);
  background: rgb(168 85 247 / 12%);
  color: var(--brand-strong);
}

/* ---------- Charts ---------- */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 13rem;
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.chart-col__bar {
  width: 100%;
  max-width: 2rem;
  border-radius: 0.45rem 0.45rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, #22d3ee, #a855f7);
  min-height: 4px;
  transition: filter .15s;
}
.chart-col:hover .chart-col__bar { filter: brightness(1.12); }
.chart-col__label { margin-top: 0.4rem; font-size: 0.62rem; color: var(--muted); }

.meter {
  height: 0.55rem;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(147 51 234 / 10%);
}
html.dark .meter { background: rgb(255 255 255 / 10%); }
.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a855f7, #06b6d4);
}

/* ---------- Auth split ---------- */
.auth-art {
  display: none;
  border-radius: 1.5rem;
  padding: 2rem;
  color: #fff;
  border: 1px solid rgb(192 132 252 / 28%);
  background:
    radial-gradient(400px 180px at 100% 0%, rgb(34 211 238 / 38%), transparent 52%),
    radial-gradient(360px 180px at 0% 100%, rgb(217 70 239 / 34%), transparent 52%),
    linear-gradient(160deg, #0d0826 0%, #3b0764 55%, #0e4f68 100%);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: color-mix(in srgb, var(--line) 80%, transparent);
}

.google-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.google-login-button:hover:not(:disabled) {
  border-color: #a855f7;
  box-shadow: 0 8px 24px rgb(168 85 247 / 20%);
  transform: translateY(-1px);
}

.google-login-button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.google-login-icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  color: #a855f7;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: Arial, sans-serif;
}

.auth-hint {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
  text-align: center;
}
@media (min-width: 900px) {
  .auth-art { display: flex; flex-direction: column; justify-content: center; min-height: 28rem; }
}

/* ---------- Credential / order ---------- */
.secret-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  background: #08071a;
  color: #67e8f9;
  border-radius: 0.8rem;
  padding: 0.65rem 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
  border: 1px solid #2e235c;
  -webkit-overflow-scrolling: touch;
}

.wallet-card {
  background:
    radial-gradient(280px 120px at 100% 0%, rgb(34 211 238 / 28%), transparent 52%),
    radial-gradient(240px 120px at 0% 100%, rgb(217 70 239 / 26%), transparent 52%),
    linear-gradient(135deg, #2e1065 0%, #581c87 52%, #0e7490 100%);
  color: #fff;
  border-radius: 1.35rem;
  padding: 1.25rem 1.3rem;
}

/* ---------- Footer ---------- */
.shop-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ---------- Misc ---------- */
.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}

.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card, .btn-primary, .btn-secondary, .toast { transition: none; animation: none; }
}
