/* ==========================================
   ЛОВЦЫ СНОВ — Стили интернет-магазина
   Мистический ночной дизайн
   ========================================== */

/* CSS Variables */
:root {
  /* Цветовая палитра */
  --color-bg-deep: #0a0a12;
  --color-bg: #0f0f1a;
  --color-bg-light: #161625;
  --color-bg-card: #1a1a2e;
  --color-bg-card-hover: #222238;
  
  --color-primary: #7c5ce0;
  --color-primary-light: #9d85f0;
  --color-primary-dark: #5a3db8;
  --color-secondary: #e0c05c;
  --color-accent: #c77dff;
  
  --color-text: #e8e6f0;
  --color-text-muted: #9896a8;
  --color-text-dark: #6b6980;
  
  --color-border: rgba(124, 92, 224, 0.2);
  --color-glow: rgba(124, 92, 224, 0.4);
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #7c5ce0 0%, #c77dff 100%);
  --gradient-gold: linear-gradient(135deg, #e0c05c 0%, #f0d86c 100%);
  --gradient-bg: linear-gradient(180deg, #0a0a12 0%, #0f0f1a 50%, #161625 100%);
  
  /* Типографика */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Raleway', sans-serif;
  
  /* Размеры */
  --container-max: 1200px;
  --header-height: 80px;
  
  /* Тени */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(124, 92, 224, 0.3);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
  
  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================
   ЗВЁЗДНЫЙ ФОН
   ========================================== */
.stars, .stars2, .stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.stars {
  background: 
    radial-gradient(1px 1px at 20px 30px, white, transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 90px 40px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 160px 120px, white, transparent),
    radial-gradient(1px 1px at 200px 50px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 250px 90px, white, transparent),
    radial-gradient(1px 1px at 280px 140px, rgba(255,255,255,0.8), transparent);
  background-repeat: repeat;
  background-size: 300px 200px;
  animation: twinkle 4s ease-in-out infinite;
}

.stars2 {
  background: 
    radial-gradient(1px 1px at 70px 20px, rgba(199, 125, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 120px 60px, rgba(124, 92, 224, 0.7), transparent),
    radial-gradient(1px 1px at 180px 100px, rgba(199, 125, 255, 0.6), transparent),
    radial-gradient(1px 1px at 220px 30px, rgba(124, 92, 224, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 260px 80px, rgba(199, 125, 255, 0.5), transparent);
  background-repeat: repeat;
  background-size: 350px 150px;
  animation: twinkle 6s ease-in-out infinite reverse;
}

.stars3 {
  background: 
    radial-gradient(2px 2px at 100px 50px, rgba(224, 192, 92, 0.6), transparent),
    radial-gradient(2px 2px at 200px 150px, rgba(224, 192, 92, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 300px 100px, rgba(224, 192, 92, 0.5), transparent);
  background-repeat: repeat;
  background-size: 400px 200px;
  animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 32px;
  color: var(--color-secondary);
  text-shadow: 0 0 20px rgba(224, 192, 92, 0.5);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.cart-btn {
  position: relative;
  padding: 10px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.cart-btn:hover {
  color: var(--color-primary-light);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-fast);
}

.cart-count.active {
  opacity: 1;
  transform: scale(1);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 30px 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link:hover {
  color: var(--color-primary-light);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 24px 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 30px;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 450px;
}

.hero-decoration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dreamcatcher Animation */
.dreamcatcher-animation {
  position: relative;
  width: 300px;
  height: 400px;
}

.dc-ring {
  position: absolute;
  border: 2px solid;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
}

.dc-ring-1 {
  width: 200px;
  height: 200px;
  top: 0;
  border-color: var(--color-primary);
  animation: ringPulse 4s ease-in-out infinite;
}

.dc-ring-2 {
  width: 160px;
  height: 160px;
  top: 20px;
  border-color: var(--color-accent);
  animation: ringPulse 4s ease-in-out infinite 0.5s;
}

.dc-ring-3 {
  width: 120px;
  height: 120px;
  top: 40px;
  border-color: var(--color-secondary);
  animation: ringPulse 4s ease-in-out infinite 1s;
}

@keyframes ringPulse {
  0%, 100% { 
    opacity: 0.5;
    box-shadow: 0 0 20px var(--color-glow);
  }
  50% { 
    opacity: 1;
    box-shadow: 0 0 40px var(--color-glow);
  }
}

.dc-web {
  position: absolute;
  width: 180px;
  height: 180px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: 
    radial-gradient(circle at center, transparent 10%, var(--color-border) 11%, transparent 12%),
    radial-gradient(circle at center, transparent 30%, var(--color-border) 31%, transparent 32%),
    radial-gradient(circle at center, transparent 50%, var(--color-border) 51%, transparent 52%),
    radial-gradient(circle at center, transparent 70%, var(--color-border) 71%, transparent 72%);
  animation: webRotate 30s linear infinite;
}

@keyframes webRotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

.dc-feathers {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.feather {
  width: 4px;
  height: 120px;
  background: linear-gradient(180deg, var(--color-primary) 0%, transparent 100%);
  border-radius: 2px;
  animation: featherSway 3s ease-in-out infinite;
}

.feather-1 { animation-delay: 0s; }
.feather-2 { animation-delay: 0.5s; height: 150px; }
.feather-3 { animation-delay: 1s; }

@keyframes featherSway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(124, 92, 224, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(124, 92, 224, 0.1);
}

.btn-full {
  width: 100%;
}

.btn-small {
  padding: 12px 24px;
  font-size: 12px;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 92, 224, 0.05) 50%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature {
  text-align: center;
  padding: 40px 30px;
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: all var(--transition-normal);
}

.feature:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--color-secondary);
  text-shadow: 0 0 30px rgba(224, 192, 92, 0.5);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================
   SECTION TITLE
   ========================================== */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.section-title-left {
  justify-content: flex-start;
}

.section-title-decoration {
  color: var(--color-secondary);
  font-size: 24px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================
   CATALOG / PRODUCTS
   ========================================== */
.catalog {
  padding: 100px 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
  padding: 30px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-label {
  font-size: 14px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.filter-select {
  padding: 12px 40px 12px 16px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239896a8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all var(--transition-fast);
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--color-primary);
  outline: none;
}

.search-group {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.search-input::placeholder {
  color: var(--color-text-dark);
}

.search-input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.search-btn:hover {
  color: var(--color-primary);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Product Card */
.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
}

.product-info {
  padding: 24px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-description {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary-light);
}

.product-price span {
  font-size: 14px;
  color: var(--color-text-muted);
}

.add-to-cart-btn {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-glow);
}

.add-to-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(124, 92, 224, 0.6);
}

/* Loader */
.loader {
  display: none;
  justify-content: center;
  padding: 50px;
}

.loader.active {
  display: flex;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 92, 224, 0.03) 50%, transparent 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  max-width: 500px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.about-image-frame::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  filter: blur(60px);
  opacity: 0.5;
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: auto;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
  padding: 100px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  max-width: 500px;
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: var(--color-text-dark);
}

.form-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 92, 224, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 60px 0 30px;
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-dark);
}

/* ==========================================
   MODALS
   ========================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 24px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
}

/* Cart Modal */
.cart-modal {
  max-width: 450px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--color-bg-light);
  border-radius: 12px;
}

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  color: var(--color-primary-light);
}

.cart-item-remove {
  color: var(--color-text-dark);
  font-size: 20px;
  padding: 5px;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: #ff6b6b;
}

.cart-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}

.cart-empty.active {
  display: flex;
}

.cart-empty-icon {
  font-size: 60px;
  margin-top: 20px;
  opacity: 0.3;
}

.cart-footer {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.cart-footer.hidden {
  display: none;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cart-total span:last-child {
  color: var(--color-primary-light);
}

/* Product Modal */
.product-modal {
  max-width: 700px;
}

.product-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.product-modal-image {
  border-radius: 16px;
  overflow: hidden;
}

.product-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-info h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-modal-category {
  font-size: 12px;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.product-modal-description {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-modal-details {
  margin-bottom: 24px;
}

.product-modal-detail {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.product-modal-detail span:first-child {
  color: var(--color-text-muted);
}

.product-modal-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 20px;
}

.product-modal-price span {
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ==========================================
   NOTIFICATION
   ========================================== */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 3000;
}

.notification.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.notification-icon {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

.notification-text {
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .dreamcatcher-animation {
    width: 200px;
    height: 280px;
  }
  
  .dc-ring-1 { width: 140px; height: 140px; }
  .dc-ring-2 { width: 110px; height: 110px; top: 15px; }
  .dc-ring-3 { width: 80px; height: 80px; top: 30px; }
  .dc-web { width: 120px; height: 120px; top: 10px; }
  .dc-feathers { top: 140px; width: 140px; }
  .feather { height: 80px; }
  .feather-2 { height: 100px; }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-text {
    max-width: 100%;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    max-width: 100%;
  }
  
  .product-modal-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .filters {
    flex-direction: column;
    gap: 16px;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-select,
  .search-input {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .about-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .footer-links {
    gap: 24px;
  }
  
  .modal-content {
    padding: 30px 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 120px 16px 60px;
  }
  
  .btn {
    padding: 14px 28px;
    font-size: 13px;
  }
  
  .section-title {
    flex-direction: column;
    gap: 12px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-image {
    height: 240px;
  }
  
  .notification {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}


