:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #00c853;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover { text-decoration: none; }

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  text-decoration: none;
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #00b848; text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); text-decoration: none; }

/* Sections */
.section {
  padding: 64px 20px;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text);
}

.section-alt { background: var(--bg-alt); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

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

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

.product-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-body { padding: 20px; }

.product-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }

.product-card-body .meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.product-card-body .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-card-body .desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

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

.news-card:hover { box-shadow: var(--shadow-lg); }

.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-alt);
}

.news-card-body { padding: 20px; }

.news-card-body .date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }

.read-more { font-weight: 600; font-size: 0.9rem; }

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

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); }

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }

/* Page Header */
.page-header {
  background: var(--bg-alt);
  padding: 48px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* Filter */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

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

/* Inquiry Form */
.inquiry-form {
  max-width: 700px;
  margin: 0 auto;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-detail-img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.product-detail-info h2 { font-size: 1.6rem; margin-bottom: 12px; }
.product-detail-info .price { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.product-detail-info .desc { color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }

.specs { margin-bottom: 24px; }
.specs dt { font-weight: 600; margin-top: 12px; font-size: 0.9rem; }
.specs dd { margin-left: 0; font-size: 0.9rem; color: var(--text-light); }

/* Footer */
.site-footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 48px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #9ca3af; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #374151;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Category Badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-drone { background: #e3f2fd; color: #1565c0; }
.badge-accessory { background: #f3e5f5; color: #7b1fa2; }
.badge-parts { background: #e8f5e9; color: #2e7d32; }

/* Pagination / Placeholder images */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e7ff, #f0f0ff);
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Inquiry confirmation */
.confirmation {
  text-align: center;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
}

.confirmation .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 40px 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .main-nav ul.open { display: flex; }
  .main-nav a { padding: 10px 0; }
}
