@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-purple: #6366f1;
  --secondary-purple: #8b5cf6;
  --accent-green: #10b981;
  --dark-bg: #0f0f23;
  --card-bg: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --border-color: #27272a;
  --glow-primary: rgba(99, 102, 241, 0.3);
  --glow-accent: rgba(16, 185, 129, 0.3);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-dark: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--gradient-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Modern Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Main Content */
.main-content {
  margin-top: 80px;
  flex: 1;
  padding: 2rem;
}

/* Hero Section */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-purple);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-tag {
  background: var(--accent-green);
  color: var(--dark-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-purple);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.product-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.price-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.price-option:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary-purple);
}

.price-duration {
  font-weight: 600;
  color: var(--text-primary);
}

.price-amount {
  font-weight: 700;
  color: var(--accent-green);
}

.product-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn i {
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
  background: var(--primary-purple);
  color: white;
}

/* Slider Navigation */
.slider-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: var(--primary-purple);
  box-shadow: 0 0 20px var(--glow-primary);
  transform: scale(1.2);
}

/* Footer */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Slider */
.featured-slider-section {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 2rem;
  position: relative;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-product-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  padding: 3rem;
  gap: 3rem;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.slide-content {
  flex: 1;
  z-index: 2;
}

.slide-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.slide-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.slide-feature {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-purple);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.slide-actions {
  display: flex;
  gap: 1rem;
}

.slide-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide-icon {
  font-size: 8rem;
  opacity: 0.1;
  position: absolute;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.slide-character {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 260px;
  opacity: 0.2;
  z-index: 2;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-character img {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.4));
  min-width: 100%;
  min-height: 100%;
}

.featured-product-slide:hover .slide-character {
  opacity: 0.4;
  transform: translateY(-50%) scale(1.05);
  right: -30px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary-purple);
  transform: scale(1.1);
  box-shadow: 0 8px 25px var(--glow-primary);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn i {
  font-size: 0.875rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-primary);
  border-color: var(--primary-purple);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-primary);
}



/* Enhanced Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  justify-content: center;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  min-height: 400px;
}

.product-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary-purple), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotate 4s linear infinite;
  z-index: 1;
}

.product-card:hover::after {
  opacity: 0.1;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-purple);
}

/* Product Character Image */
.product-character {
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 170px;
  opacity: 0.15;
  z-index: 1;
  transition: all 0.4s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-character img {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 10px 20px rgba(99, 102, 241, 0.3));
  min-width: 100%;
  min-height: 100%;
}

.product-card:hover .product-character {
  opacity: 0.3;
  transform: translateY(-50%) scale(1.1);
  right: -10px;
}

/* Product Content */
.product-content {
  flex: 1;
  padding: 2rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  z-index: 3;
  color: white;
}

.product-icon i {
  font-size: 1.5rem;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 3;
}

.product-tag {
  background: var(--accent-green);
  color: var(--dark-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 3;
}

.product-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
  position: relative;
  z-index: 3;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 3;
}

.feature-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-purple);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.product-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 3;
}

.price-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.price-option:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary-purple);
}

.price-duration {
  font-weight: 600;
  color: var(--text-primary);
}

.price-amount {
  font-weight: 700;
  color: var(--accent-green);
}

.product-actions {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 3;
}

/* Product Image */
.product-image {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  z-index: 3;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Status Badge */
.status-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-available {
  background: var(--accent-green);
  color: white;
}

.status-limited {
  background: #f59e0b;
  color: white;
}

.status-sold-out {
  background: #ef4444;
  color: white;
}

.status-coming-soon {
  background: var(--primary-purple);
  color: white;
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 3;
}

.stars {
  display: flex;
  gap: 0.2rem;
  color: #fbbf24;
}

.stars i {
  font-size: 0.875rem;
}

.rating-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Popular Price Option */
.price-option.popular {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-green);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  background: var(--accent-green);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-weight: 600;
}

/* Disabled Button */
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }
  
  .nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .product-card {
    padding: 1.5rem;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .featured-product-slide {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }
  
  .slide-actions {
    justify-content: center;
  }
  
  .product-card {
    flex-direction: column;
    min-height: auto;
  }
  
  .product-character {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 90px;
    height: 110px;
    opacity: 0.2;
    align-self: flex-end;
    margin: -1rem -1rem 1rem 0;
  }
  
  .product-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  
  .slide-character {
    display: none;
  }
  
  .filter-tabs {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-purple);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}