/* =========================================================
   DonutWLR, SaaS-style storefront skin
   ========================================================= */

/* 1. Custom Font for Hero Title Only */
@font-face {
  font-family: 'CustomThemeFont';
  src: url('/assets/font.otf') format('opentype'),
       url('assets/font.otf') format('opentype'),
       url('font.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --dwlr-bg: #07070d;
  --dwlr-bg-2: #0e0c1a;
  --dwlr-surface: rgba(255, 255, 255, 0.035);
  --dwlr-surface-strong: rgba(255, 255, 255, 0.06);
  --dwlr-border: rgba(255, 255, 255, 0.08);
  --dwlr-border-strong: rgba(255, 255, 255, 0.14);
  --dwlr-text: #f5f5f7;
  --dwlr-text-dim: rgba(245, 245, 247, 0.64);
  --dwlr-text-faint: rgba(245, 245, 247, 0.42);
  --dwlr-violet: #8b7bff;
  --dwlr-violet-2: #6a5cff;
  --dwlr-violet-deep: #4c3fd9;
  --dwlr-mint: #37d6a7;
}

/* =========================================================
   0. Global safety resets & Clean Dark Background
   ========================================================= */
html, body {
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--dwlr-bg);
}

/* Smooth Interactive Cursor Spotlight Glow */
.cursor-glow,
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.18) 0%, rgba(106, 92, 255, 0.05) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

#available-items,
#reviews {
  scroll-margin-top: 84px;
}

/* =========================================================
   1. Notifications
   ========================================================= */
#notifications,
.notifications,
.toast-container,
[x-data*="notification"],
[class*="purchase-notification"],
.sales-popup {
  position: fixed !important;
  z-index: 9999 !important;
  bottom: 24px !important;
  left: 24px !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  width: auto !important;
  max-width: 350px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

#notifications > div,
.notifications > div {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* =========================================================
   2. Page Backgrounds (Top Screenshot Fade Only)
   ========================================================= */
.donut-bg-layer,
.shop-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 820px;
  z-index: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: blur(5px);
  transform: scale(1.04);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.donut-bg-layer::before,
.shop-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 13, 0.2) 0%, rgba(7, 7, 13, 0.7) 80%, rgba(7, 7, 13, 1) 100%);
  pointer-events: none;
}

/* =========================================================
   3. Base type
   ========================================================= */
.shop-landing,
.shop-landing h1,
.shop-landing h2,
.shop-landing h3 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

/* =========================================================
   4. Layout shell
   ========================================================= */
.shop-page {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 32px;
}

.shop-landing {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--dwlr-text);
}

/* =========================================================
   5. Topbar + nav (Floating Rounded Glass Capsule)
   ========================================================= */
.shop-topbar {
  position: sticky;
  top: 16px;
  width: min(1240px, calc(100% - 32px));
  margin: 16px auto 0;
  border-radius: 16px;
  z-index: 50;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shop-topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 60px;
  padding: 0 18px;
}

/* Brand (Left) */
.shop-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
}

.shop-brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--dwlr-violet), var(--dwlr-violet-deep));
  box-shadow: 0 0 14px rgba(139, 123, 255, 0.35);
  flex-shrink: 0;
}

.shop-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nav Links (Centered) */
.shop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.shop-nav__link {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dwlr-text-dim);
  text-decoration: none;
  transition: all 0.15s ease;
}

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

/* Actions (Right) */
.shop-topbar__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Currency Dropdown Alignment Fix */
.shop-topbar__actions .currency-selector {
  display: flex;
  align-items: center;
}

.shop-topbar__actions .currency-selector .choices {
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.shop-topbar__actions .currency-selector .choices__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 28px 0 14px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
}

.shop-topbar__actions .currency-selector .choices__list--single {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.shop-topbar__actions .currency-selector .choices__item--selectable {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.shop-topbar__actions .currency-selector .choices[data-type*="select-one"]::after {
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  right: 12px !important;
  border-color: rgba(255, 255, 255, 0.5) transparent transparent transparent !important;
}

.shop-cart,
.shop-login {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--dwlr-text);
  border-radius: 999px;
  transition: all 0.15s ease;
}

.shop-cart:hover,
.shop-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 123, 255, 0.4);
  box-shadow: 0 0 14px rgba(139, 123, 255, 0.25);
  color: #fff;
}

.shop-cart {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  position: relative;
  border-radius: 50%;
}

.shop-cart svg {
  width: 15px;
  height: 15px;
}

.shop-cart__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--dwlr-violet);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.shop-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.shop-login svg {
  width: 14px;
  height: 14px;
}

.shop-login--filled {
  background: linear-gradient(135deg, var(--dwlr-violet), var(--dwlr-violet-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 14px rgba(106, 92, 255, 0.35);
}

.shop-login--filled:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(106, 92, 255, 0.55);
}

/* =========================================================
   5b. Reviews marquee
   ========================================================= */
.reviews-marquee {
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--dwlr-border);
  border-bottom: 1px solid var(--dwlr-border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.reviews-marquee__track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: reviewsMarqueeScroll 46s linear infinite;
}

.reviews-marquee:hover .reviews-marquee__track {
  animation-play-state: paused;
}

@keyframes reviewsMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-chip {
  flex: 0 0 auto;
  width: 300px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--dwlr-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dwlr-border);
}

.review-chip__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
}

.review-chip__stars svg {
  width: 13px;
  height: 13px;
  color: var(--dwlr-violet);
}

.review-chip__msg {
  margin: 0 0 8px;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--dwlr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-chip__meta {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--dwlr-text-faint);
}

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee__track {
    animation: none;
  }
}

/* =========================================================
   6. Hero (Custom font applied ONLY to h1)
   ========================================================= */
.shop-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 96px 32px 72px;
  overflow: visible;
  background: transparent;
  border: none;
}

.shop-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(139, 123, 255, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.shop-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
}

.shop-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1rem 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--dwlr-border-strong);
  background: var(--dwlr-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--dwlr-text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.shop-hero__badge strong {
  color: var(--dwlr-text);
  font-weight: 700;
}

.shop-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--dwlr-mint);
  box-shadow: 0 0 0 3px rgba(55, 214, 167, 0.18);
  flex-shrink: 0;
}

/* ONLY the hero title uses font.otf */
.shop-hero h1 {
  margin: 1.6rem 0 0.8rem 0;
  font-family: 'CustomThemeFont', 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: #fff;
}

.shop-hero__accent {
  background: linear-gradient(120deg, var(--dwlr-violet) 0%, #b7aeff 50%, var(--dwlr-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subtitle stays Inter with clean spacing */
.shop-hero__subtitle {
  margin: 0.4rem 0 0 0;
  max-width: 36rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  color: var(--dwlr-text-dim);
  font-weight: 400;
  line-height: 1.6;
}

.shop-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.shop-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  height: 46px;
  padding: 0 1.5rem;
  border-radius: 11px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.shop-hero__button--primary {
  background: linear-gradient(135deg, var(--dwlr-violet), var(--dwlr-violet-deep));
  color: #fff;
  box-shadow: 0 10px 26px rgba(106, 92, 255, 0.35);
}

.shop-hero__button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(106, 92, 255, 0.45);
}

.shop-hero__button--secondary {
  border: 1px solid var(--dwlr-border-strong);
  background: var(--dwlr-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--dwlr-text);
}

.shop-hero__button--secondary:hover {
  background: var(--dwlr-surface-strong);
  transform: translateY(-1px);
}

.shop-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 3.2rem;
  position: relative;
  z-index: 1;
}

.shop-hero__stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0 2.4rem;
}

.shop-hero__stats div + div {
  border-left: 1px solid var(--dwlr-border);
}

.shop-hero__stats strong {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.3rem, 1.6vw, 1.6rem);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.shop-hero__stats span {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dwlr-text-faint);
}

/* =========================================================
   7. Feature strip
   ========================================================= */
.shop-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 24px;
  padding: 40px 8px 8px;
  border-top: 1px solid var(--dwlr-border);
}

.shop-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: none;
}

.shop-feature-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--dwlr-border-strong);
  color: var(--dwlr-violet);
}

.shop-feature-card__icon svg {
  width: 16px;
  height: 16px;
}

.shop-feature-card h3 {
  margin: 0 0 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dwlr-text);
}

.shop-feature-card p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--dwlr-text-dim);
}

/* =========================================================
   8. Catalog heading
   ========================================================= */
.shop-landing__catalog {
  text-align: center;
  padding: 3rem 0 0.75rem;
}

.shop-landing__catalog-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(139, 123, 255, 0.12);
  border: 1px solid rgba(139, 123, 255, 0.28);
  color: var(--dwlr-violet);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-landing__catalog h2 {
  margin: 0.75rem 0 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
}

.shop-landing__catalog-subtitle {
  margin: 0;
  color: var(--dwlr-text-dim);
  font-size: 0.95rem;
}

.shop-landing__components {
  padding-bottom: 2rem;
}

.shop-reviews {
  padding: 1rem 0 3rem;
}

.shop-reviews__heading {
  text-align: center;
  margin-bottom: 2rem;
}

.shop-reviews__heading h2 {
  margin: 0.75rem 0 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
}

/* =========================================================
   9. Product cards
   ========================================================= */
.custom-glass-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)) !important;
  border: 1px solid var(--dwlr-border) !important;
  border-radius: 18px !important;
}

.custom-glass-card::after {
  background: radial-gradient(circle at top, rgba(139, 123, 255, 0.14), transparent 55%) !important;
}

.custom-glass-card:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)) !important;
  border-color: rgba(139, 123, 255, 0.4) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 24px 50px -12px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(106, 92, 255, 0.16) !important;
}

.custom-glass-card .price-pill {
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.28), rgba(0, 0, 0, 0.3)) !important;
  border-color: rgba(139, 123, 255, 0.22) !important;
}

/* =========================================================
   10. Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
  }
}

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 980px) {
  .shop-topbar__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .shop-brand {
    justify-self: auto;
  }

  .shop-nav {
    justify-self: auto;
    justify-content: center;
    border-top: 1px solid var(--dwlr-border);
    border-bottom: 1px solid var(--dwlr-border);
    padding: 8px 0;
  }

  .shop-topbar__actions {
    justify-self: auto;
    justify-content: center;
  }

  .shop-hero {
    padding: 64px 22px 48px;
  }

  .shop-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shop-page {
    width: min(100%, calc(100% - 20px));
    margin-top: 20px;
  }

  .review-chip {
    width: 240px;
  }

  .shop-hero {
    padding: 48px 16px 40px;
    border-radius: 20px;
  }

  .shop-hero__actions {
    flex-direction: column;
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .shop-hero__button {
    width: 100%;
  }

  .shop-hero__stats {
    flex-wrap: wrap;
    row-gap: 1rem;
  }

  .shop-hero__stats div {
    padding: 0 1.4rem;
  }
}