/* ============================================================
   Solvark CAMERA STORE — GLOBAL CSS
   Design System: Variables, Reset, Typography, Utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Colors */
  --clr-bg-primary: #0A0A0F;
  --clr-bg-secondary: #111827;
  --clr-bg-tertiary: #1A2236;
  --clr-bg-card: #0F1729;
  --clr-accent: #F59E0B;
  --clr-accent-hover: #D97706;
  --clr-accent-light: rgba(245, 158, 11, 0.12);
  --clr-accent-glow: rgba(245, 158, 11, 0.35);
  --clr-red: #EF4444;
  --clr-green: #10B981;
  --clr-blue: #3B82F6;
  --clr-text-primary: #F9FAFB;
  --clr-text-secondary: #9CA3AF;
  --clr-text-muted: #6B7280;
  --clr-border: #1F2937;
  --clr-border-hover: #374151;
  --clr-glass-bg: rgba(15, 23, 41, 0.7);
  --clr-glass-border: rgba(245, 158, 11, 0.15);
  --clr-overlay: rgba(0, 0, 0, 0.6);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --gradient-dark: linear-gradient(180deg, #0A0A0F 0%, #111827 100%);
  --gradient-card: linear-gradient(145deg, #111827 0%, #0F1729 100%);
  --gradient-hero: linear-gradient(to right, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.5) 60%, transparent 100%);
  --gradient-text: linear-gradient(135deg, #F59E0B, #F97316);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Font sizes (fluid) */
  --fs-xs: clamp(0.7rem, 1.5vw, 0.75rem);
  --fs-sm: clamp(0.8rem, 2vw, 0.875rem);
  --fs-base: clamp(0.9rem, 2.5vw, 1rem);
  --fs-md: clamp(1rem, 3vw, 1.125rem);
  --fs-lg: clamp(1.1rem, 3.5vw, 1.25rem);
  --fs-xl: clamp(1.3rem, 4vw, 1.5rem);
  --fs-2xl: clamp(1.6rem, 5vw, 2rem);
  --fs-3xl: clamp(2rem, 6vw, 2.75rem);
  --fs-4xl: clamp(2.5rem, 7vw, 3.5rem);
  --fs-5xl: clamp(3rem, 8vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 0 30px rgba(245, 158, 11, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1440px;
  --container-pad: clamp(1rem, 5vw, 3rem);
  --header-height: 72px;
  --sidebar-width: 280px;

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ============================================================
   CSS RESET
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-accent) var(--clr-bg-secondary);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-accent-hover);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--clr-text-primary);
  background-color: var(--clr-bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  object-fit: cover;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--clr-text-primary);
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-top: var(--space-4);
}

.text-accent {
  color: var(--clr-accent);
}

.text-muted {
  color: var(--clr-text-muted);
}

.text-secondary {
  color: var(--clr-text-secondary);
}

.text-red {
  color: var(--clr-red);
}

.text-green {
  color: var(--clr-green);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-20);
}

.section--sm {
  padding-block: var(--space-12);
}

.section--lg {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.hidden {
  display: none !important;
}

.overflow-hidden {
  overflow: hidden;
}

/* Spacing helpers */
.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.py-4 {
  padding-block: var(--space-4);
}

.px-4 {
  padding-inline: var(--space-4);
}

.p-4 {
  padding: var(--space-4);
}

.p-6 {
  padding: var(--space-6);
}

.p-8 {
  padding: var(--space-8);
}

/* ============================================================
   GLASS MORPHISM
   ============================================================ */
.glass {
  background: var(--clr-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--clr-glass-border);
}

.glass-card {
  background: var(--clr-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Delay helpers */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* ============================================================
   STAR RATING
   ============================================================ */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--clr-accent);
  font-size: 0.85rem;
}

.stars .empty {
  color: var(--clr-border);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--clr-accent);
}

.breadcrumb .sep {
  color: var(--clr-text-muted);
}

.breadcrumb .current {
  color: var(--clr-text-secondary);
}

/* ============================================================
   PAGE HERO BANNER
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  background: linear-gradient(135deg, var(--clr-bg-secondary) 0%, var(--clr-bg-primary) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, var(--clr-accent-light) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: var(--fs-4xl);
  font-weight: 800;
}

.page-hero__subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-secondary);
  margin-top: var(--space-4);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-8);
}

.empty-state__icon {
  font-size: 4rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-6);
  opacity: 0.4;
}

.empty-state__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.empty-state__text {
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-8);
}

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider {
  height: 1px;
  background: var(--clr-border);
  margin-block: var(--space-6);
}

.divider--accent {
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

/* ============================================================
   OVERLAY BACKDROP
   ============================================================ */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: var(--clr-overlay);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.overlay-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-label {
  justify-content: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

.section-header--between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ============================================================
   PRICE DISPLAY
   ============================================================ */
.price-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.price-current {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-accent);
}

.price-original {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  text-decoration: line-through;
}

.price-discount {
  background: rgba(239, 68, 68, 0.15);
  color: var(--clr-red);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge--new {
  background: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge--sale {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge--hot {
  background: rgba(245, 158, 11, 0.2);
  color: var(--clr-accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge--sold {
  background: rgba(107, 114, 128, 0.2);
  color: #9CA3AF;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.badge--success {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge--warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--clr-accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge--error {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--clr-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.loader-ring {
  width: 56px;
  height: 56px;
  border: 3px solid var(--clr-border);
  border-top-color: var(--clr-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 1280px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: var(--space-12);
  }

  .section--lg {
    padding-block: var(--space-16);
  }

  .hide-mobile {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hide-sm {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .show-mobile {
    display: none !important;
  }
}