:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --success: #16a34a;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-top {
  background: #0f172a;
  color: #94a3b8;
  font-size: 13px;
  padding: 6px 0;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-main {
  padding: 14px 0;
}
.header-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand-logo {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo span { color: var(--primary); }
.city-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #bfdbfe;
}
.header-phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* Nav */
.category-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.category-nav-inner {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}
.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: #f1f5f9;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary);
  color: #ffffff;
}

/* Hero / Banners */
.hero-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 40px 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 600px;
  margin-bottom: 20px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.feature-item {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-icon {
  font-size: 24px;
  background: #eff6ff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* Products Grid */
.section-title {
  font-size: 24px;
  font-weight: 800;
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-thumb {
  position: relative;
  background: #f8fafc;
  padding: 16px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb img {
  max-height: 190px;
  object-fit: contain;
}
.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.badge-stock {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dcfce7;
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-cat {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.product-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  flex: 1;
}
.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.price-current {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.price-old {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  width: 100%;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0;
}
.breadcrumbs a:hover { color: var(--primary); }

/* Product Page Layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 850px) {
  .product-detail-layout { grid-template-columns: 1fr; }
}
.product-gallery {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.product-gallery img {
  max-height: 350px;
  object-fit: contain;
}
.product-order-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.order-form-compact {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
}
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Cluster Sub-nav */
.cluster-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 14px;
}
.cluster-pill {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}
.cluster-pill:hover, .cluster-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Content blocks */
.content-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.content-box h2, .content-box h3 { margin: 20px 0 10px; font-weight: 800; }
.content-box p { margin-bottom: 14px; color: #334155; }
.content-box ul, .content-box ol { margin: 12px 0 16px 24px; }
.content-box li { margin-bottom: 6px; }

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 10px 12px; font-size: 14px; }
.specs-table td:first-child { color: var(--text-muted); width: 45%; }
.specs-table td:last-child { font-weight: 600; }

/* Reviews */
.review-card {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-author { font-weight: 700; font-size: 14px; }
.review-stars { color: #f59e0b; }
.review-body { font-size: 14px; color: #334155; }

/* SEO FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #f8fafc;
}
.faq-q { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.faq-a { font-size: 14px; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 20px;
  margin-top: 60px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 { color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  background: none;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.city-item {
  padding: 8px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.city-item:hover { background: var(--primary); color: #fff; }

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}
.lang-switch .lang-btn {
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.lang-switch .lang-btn:hover {
  color: var(--primary);
}
.lang-switch .lang-btn.active {
  color: #fff;
  background: var(--primary);
}
.lang-switch .lang-sep {
  color: #cbd5e1;
  font-size: 11px;
}
