/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --accent: #ff6600;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ===== Header ===== */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

nav ul { display: flex; gap: 8px; }
nav ul li a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  color: var(--text);
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--primary);
  color: #fff;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0066ff 0%, #0047b3 50%, #001a4d 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span { color: #66b3ff; }

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}
.btn-primary:hover { background: #e6f0ff; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #e65c00; transform: translateY(-2px); }

/* ===== Stats Bar ===== */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== Section ===== */
.section { padding: 60px 0; }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Product Cards ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-new { background: #dcfce7; color: #166534; }
.badge-sale { background: #fee2e2; color: #991b1b; }
.badge-hot { background: #fff3cd; color: #856404; }
.badge-top { background: #dbeafe; color: #1e40af; }

.product-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.product-info { padding: 20px; }

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-brand {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-specs {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.price-current {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.stars { color: #f59e0b; }

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* ===== Categories Grid ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  cursor: pointer;
}

.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e6f0ff, #cce0ff);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.category-count {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  background: #f0f4ff;
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e6f0ff, #cce0ff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Newsletter ===== */
.newsletter {
  background: linear-gradient(135deg, #0066ff, #0047b3);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.newsletter h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
}

/* ===== About Page ===== */
.about-hero {
  background: linear-gradient(135deg, #0066ff 0%, #001a4d 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.about-content { padding: 60px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.about-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-image {
  background: linear-gradient(135deg, #e6f0ff, #cce0ff);
  border-radius: var(--radius);
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066ff, #0047b3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 14px;
}

.team-card h3 { font-weight: 700; margin-bottom: 4px; }
.team-card p { font-size: 0.9rem; color: var(--primary); font-weight: 500; }

/* ===== Contact Page ===== */
.contact-section { padding: 60px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e6f0ff, #cce0ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-card h3 { font-weight: 700; margin-bottom: 4px; }
.info-card p { font-size: 0.9rem; color: var(--text-light); }

/* ===== Footer ===== */
footer {
  background: #0a0f1a;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.7;
}

.footer-links h4 {
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  color: #9ca3af;
  transition: var(--transition);
}

.footer-links ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ===== Filter Bar ===== */
.filter-bar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
}

.filter-bar input[type="search"] {
  flex: 1;
  min-width: 200px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Comparison Table ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.comparison-table th {
  background: #f0f4ff;
  font-weight: 700;
  color: var(--primary);
}

.comparison-table tr:hover { background: #fafbff; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  nav ul.open { display: flex; }
  .mobile-toggle { display: flex; }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
