/* Store Section Styles */
.store-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-24);
}

.store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-32);
  padding: var(--space-20);
  background: var(--color-surface-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.coins-display {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary);
}

.coins-display i {
  color: #ffd700;
  font-size: var(--font-size-xl);
}

/* Store Sections */
.store-section {
  margin-bottom: var(--space-48);
}

.store-section-header {
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-16);
  border-bottom: 2px solid var(--color-border);
}

.store-section-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-8) 0;
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.store-section-header h2 i {
  color: var(--color-primary);
}

.store-section-header p {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: var(--font-size-base);
}

/* Avatar Gallery */
.avatar-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-20);
}

.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-20);
  background: var(--color-surface-raised);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.avatar-option:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.avatar-option.selected {
  border-color: var(--color-primary);
  border-width: 3px;
  background: linear-gradient(135deg, var(--color-surface-raised), rgba(14, 165, 233, 0.05));
}

.avatar-option.selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.avatar-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avatar-option:hover .avatar-icon {
  transform: rotate(5deg) scale(1.1);
}

.avatar-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-24);
}

.product-card {
  background: var(--color-surface-raised);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-24);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.product-card.owned {
  border-color: var(--color-success);
  background: var(--color-success-light);
}

.product-card.unaffordable {
  opacity: 0.6;
  cursor: not-allowed;
}

.product-preview {
  margin-bottom: var(--space-20);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mini-chart-preview {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  display: flex;
  align-items: end;
  justify-content: space-around;
  padding: var(--space-12);
  gap: var(--space-4);
}

.color-bar {
  width: 20px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.product-card:hover .color-bar {
  transform: scaleY(1.1);
}

.product-info {
  text-align: center;
}

.product-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-8);
}

.product-price {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
  font-weight: 500;
}

.product-btn {
  width: 100%;
  padding: var(--space-12) var(--space-16);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.buy-btn {
  background: var(--color-primary);
  color: var(--color-white);
}

.buy-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.owned-btn {
  background: var(--color-success);
  color: var(--color-white);
}

.owned-btn:hover {
  background: var(--color-success-dark);
  transform: translateY(-1px);
}

.disabled-btn {
  background: var(--color-text-tertiary);
  color: var(--color-text-secondary);
  cursor: not-allowed;
}

/* Style Manager Styles */
.style-manager-card {
  margin-top: var(--space-24);
}

.current-style-preview h4,
.owned-styles-section h4 {
  margin: 0 0 var(--space-16);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
}

.current-style-display {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-primary);
  margin-bottom: var(--space-24);
}

.style-preview-mini {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
}

.mini-chart {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-hover));
  border-radius: var(--radius-sm);
}

.style-name {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
}

.owned-styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-16);
}

.owned-style-card {
  padding: var(--space-16);
  background: var(--color-surface-raised);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.owned-style-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.owned-style-card.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.owned-style-preview {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.mini-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.owned-style-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.owned-style-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.active-badge {
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .store-container {
    padding: var(--space-16);
  }

  .store-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .product-card {
    padding: var(--space-20);
  }

  .mini-chart-preview {
    height: 80px;
    padding: var(--space-8);
  }

  .owned-styles-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-12);
  }

  .owned-style-card {
    padding: var(--space-12);
  }

  .owned-style-preview {
    width: 50px;
    height: 30px;
  }

  .store-header {
    flex-direction: column;
    gap: var(--space-12);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .store-grid {
    grid-template-columns: 1fr;
  }

  .owned-styles-grid {
    grid-template-columns: 1fr 1fr;
  }
}