/* ==========================================================================
   BEYOND STUDIO — MODERN DESIGN SYSTEM & MOTION STYLES
   ========================================================================== */

:root {
  --bg-deep: #07080b;
  --bg-surface: #0e1017;
  --bg-card: #131620;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(230, 57, 70, 0.4);
  --accent: #e63946;
  --accent-glow: rgba(230, 57, 70, 0.35);
  --accent-gold: #f4a261;
  --font-sans: 'Outfit', 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Rajdhani', 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: #f4f4f5;
  overflow-x: hidden;
  selection-background-color: var(--accent);
}

/* Canvas Particle Ambient Background */
#ambientCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* Ambient Glow Gradients */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent-gold) 60%, transparent 80%);
}

/* Motion Card Spotlight */
.motion-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.motion-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    450px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(230, 57, 70, 0.15),
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.motion-card:hover::before {
  opacity: 1;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-fw {
  background: rgba(24, 24, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  backdrop-filter: blur(8px);
}

.badge-subtle {
  background: rgba(39, 39, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

/* Filter Chips */
.filter-chip {
  padding: 0.55rem 1.15rem;
  border-radius: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a1a1aa;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.filter-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(39, 39, 42, 0.7);
}

.filter-chip.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Skeleton Loading Shimmer */
.skeleton-box {
  position: relative;
  overflow: hidden;
  background: #18181b;
}

.skeleton-box::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Keyframe Float */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Toast System */
#toastContainer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 100;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 290px;
  max-width: 420px;
  padding: 0.85rem 1.1rem;
  background: rgba(18, 20, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: 0.85rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-item.toast-success {
  border-left-color: #10b981;
}

.toast-item.toast-error {
  border-left-color: #f43f5e;
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #71717a;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.toast-close:hover {
  color: #fff;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(9, 10, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel {
  background: rgba(14, 16, 23, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass {
  background: rgba(14, 16, 23, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bestseller-item {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bestseller-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

/* Fixitfy Top Customers Crown Shine & Item Styles */
@keyframes crown-shine {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(245, 197, 24, 0.45));
    transform: translateX(-50%) translateY(0);
  }
  50% {
    filter: drop-shadow(0 0 7px rgba(245, 197, 24, 0.95));
    transform: translateX(-50%) translateY(-1.5px);
  }
}

.crown-shine {
  animation: crown-shine 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .crown-shine {
    animation: none;
    filter: drop-shadow(0 0 4px rgba(245, 197, 24, 0.7));
  }
}

.customer-row {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.customer-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   FIXITFY PRODUCT CARDS, 3D SPOTLIGHT & RIM BORDER EFFECT
   ========================================================================== */
.card {
  position: relative;
  border-radius: 1.25rem;
  background: rgba(14, 16, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  will-change: transform;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-hover {
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease, border-color 350ms ease;
}

.card:hover {
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(244, 63, 94, 0.12);
}

/* Fixitfy Spotlight Radial Glow following cursor */
.card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(
    580px circle at var(--mx, 50%) var(--my, 50%),
    rgba(244, 63, 94, 0.16),
    transparent 65%
  );
  z-index: 2;
}

.card:hover .card-spotlight {
  opacity: 1;
}

/* Fixitfy Rim Glowing Border Edge */
.card-rim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(244, 63, 94, 0.85),
    transparent 65%
  );
  z-index: 10;
}

.card:hover .card-rim {
  opacity: 1;
}

/* Tags matching Fixitfy */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tag-vorp {
  background: rgba(120, 20, 30, 0.7);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.tag-rsg {
  background: rgba(16, 85, 40, 0.7);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #86efac;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.tag-standalone {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

/* Badges for detail page */
.badge-vorp {
  background: rgba(75, 15, 25, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.badge-rsg {
  background: rgba(13, 45, 24, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #86efac;
}

.badge-standalone {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

/* Product Detail Tabs */
.product-tab-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a1a1aa;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.product-tab-btn:hover {
  color: #fff;
}

.product-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* Code Snippet Box */
.code-container {
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #d4d4d8;
  overflow-x: auto;
}

/* ==========================================================================
   PRODUCT DESCRIPTION RICH MARKDOWN & TYPOGRAPHY STYLING
   ========================================================================== */
#productDescription {
  color: #d4d4d8;
  font-size: 0.925rem;
  line-height: 1.75;
}

#productDescription p {
  margin-bottom: 1rem;
  color: #d4d4d8;
  line-height: 1.75;
}

#productDescription p:last-child {
  margin-bottom: 0;
}

#productDescription h1,
#productDescription h2,
#productDescription h3,
#productDescription h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

#productDescription h1 {
  font-size: 1.6rem;
  font-family: var(--font-display);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

#productDescription h2 {
  font-size: 1.35rem;
  font-family: var(--font-display);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}

#productDescription h3 {
  font-size: 1.15rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#productDescription h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}

#productDescription h4 {
  font-size: 1rem;
  color: #e4e4e7;
}

#productDescription strong,
#productDescription b {
  color: #ffffff;
  font-weight: 700;
}

#productDescription em,
#productDescription i {
  color: #a1a1aa;
  font-style: italic;
}

#productDescription ul {
  list-style: none;
  margin: 1rem 0 1.25rem 0;
  padding-left: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#productDescription ul > li {
  position: relative;
  padding-left: 1.6rem;
  color: #d4d4d8;
  line-height: 1.65;
}

#productDescription ul > li::before {
  content: '✦';
  position: absolute;
  left: 0.25rem;
  top: 0;
  color: #f43f5e;
  font-size: 0.75rem;
  line-height: 1.65;
}

#productDescription ol {
  list-style-type: decimal;
  margin: 1rem 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #d4d4d8;
}

#productDescription ol > li {
  line-height: 1.65;
}

#productDescription code:not(pre code) {
  background: rgba(24, 24, 27, 0.9);
  color: #f43f5e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  padding: 0.15rem 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
}

#productDescription pre {
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  overflow-x: auto;
}

#productDescription pre code {
  color: #e4e4e7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  background: transparent;
  padding: 0;
  border: none;
}

#productDescription hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  margin: 1.75rem 0;
}

#productDescription blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(230, 57, 70, 0.06);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #cbd5e1;
  font-style: italic;
}

#productDescription a {
  color: #f87171;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

#productDescription a:hover {
  color: #ffffff;
}



/* Recent Purchases ticker */
.ticker-viewport {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.45rem 0;
  animation: ticker-scroll 45s linear infinite;
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}
