:root {
  --primary: #ff6b35;
  --primary-dark: #e85a2a;
  --secondary: #004e89;
  --background: #f7f9fc;
  --surface: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #666666;
  --border: #e5e7eb;
  --success: #10b981;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
  --primary: #ff6b35;
  --primary-dark: #ff8555;
  --secondary: #0074d9;
  --background: #0f1419;
  --surface: #1c2128;
  --text-primary: #e6edf3;
  --text-secondary: #9198a1;
  --border: #30363d;
  --success: #3fb950;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  background: var(--surface);
  box-shadow: 0 2px 10px var(--shadow);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

header h1 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
}

header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.theme-toggle {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.hero {
  text-align: center;
  padding: 3rem 0;
}

.hero h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.currency-selector {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.currency-selector label {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.currency-select {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.currency-select:hover {
  border-color: var(--primary);
}

.currency-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.payment-info {
  background: var(--surface);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow);
  margin-bottom: 2rem;
  text-align: center;
}

.payment-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.payment-method {
  background: var(--background);
  padding: 1rem 2rem;
  border-radius: 10px;
  border: 2px solid var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.products-section {
  padding: 2rem 0;
}

.products-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--surface);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.product-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-type {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--background);
  border-radius: 15px;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.buy-btn {
  background: var(--primary);
  color: white;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  width: 100%;
}

.buy-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.how-to-order {
  background: var(--surface);
  padding: 3rem 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow);
  margin-bottom: 3rem;
}

.how-to-order h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
}

.step-number {
  background: var(--primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

footer {
  background: var(--surface);
  color: var(--text-primary);
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  box-shadow: 0 -2px 10px var(--shadow);
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .currency-selector {
    flex-direction: column;
    gap: 0.5rem;
  }

  .payment-methods {
    flex-direction: column;
    gap: 1rem;
  }
}
