/* Global Styles */
:root {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --secondary: #2ecc71;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --white: #ffffff;
  --gray: #95a5a6;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

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

.logo i {
  font-size: 28px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--dark);
}

/* Categories */
.categories {
  padding: 80px 0;
  background: #f8f9fa;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

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

.category-card:hover {
  transform: translateY(-10px);
}

.category-card i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--gray);
}

/* Featured Products */
.featured-products {
  padding: 80px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

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

.product-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--secondary);
  color: var(--white);
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 3px;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.4;
  height: 44px;
  overflow: hidden;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  color: #e74c3c;
  font-weight: bold;
  font-size: 18px;
}

.product-moq {
  color: var(--gray);
  font-size: 14px;
}

.view-more {
  text-align: center;
  margin-top: 50px;
}

/* Features */
.why-choose {
  padding: 80px 0;
  background: #f8f9fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-card i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--gray);
}

/* Stats */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: bold;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* CTA */
.cta {
  padding: 80px 0;
  text-align: center;
  background: var(--white);
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta p {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 30px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-col p {
  color: #bdc3c7;
}

.footer-col ul li {
  margin-bottom: 10px;
  color: #bdc3c7;
}

.footer-col ul li i {
  margin-right: 10px;
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
  color: #bdc3c7;
}

/* Products Page */
.products-page {
  padding: 40px 0 80px;
}

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

.products-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.products-header p {
  color: var(--gray);
}

.products-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 500;
}

.filter-group select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

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

.pagination button {
  padding: 8px 15px;
  border: 1px solid #ddd;
  background: var(--white);
  cursor: pointer;
  border-radius: 5px;
  transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.product-loading {
  text-align: center;
  padding: 60px;
  color: var(--gray);
}

/* Product Detail Page */
.product-detail {
  padding: 40px 0 80px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.product-gallery {
  position: relative;
}

.main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f5f5;
}

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbnails img.active {
  border-color: var(--primary);
}

.product-detail-info h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.product-detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--gray);
}

.product-detail-price {
  font-size: 32px;
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 20px;
}

.product-detail-price span {
  font-size: 16px;
  color: var(--gray);
  font-weight: normal;
}

.product-specs {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.product-specs h3 {
  margin-bottom: 15px;
}

.product-specs ul li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.product-actions .btn {
  flex: 1;
  text-align: center;
}

.product-description {
  margin-top: 50px;
}

.product-description h2 {
  margin-bottom: 20px;
}

/* Contact Page */
.contact-page {
  padding: 40px 0 80px;
}

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

.contact-form {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 10px;
}

.contact-form h2 {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

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

.contact-info h2 {
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-item i {
  font-size: 24px;
  color: var(--primary);
  width: 50px;
  height: 50px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .product-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
