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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

/* === Header === */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 24px; }

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
}

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

.lang-switch {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition);
}

.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
  color: white;
  text-align: center;
  padding: 80px 20px 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: #1e293b;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-btn:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(245,158,11,0.3); }

/* === Categories + Language bar === */
.categories-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.categories { display: flex; gap: 8px; flex-wrap: wrap; }

.cat-btn {
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition);
}

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

/* === Product Grid === */
.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

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

.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #1e293b;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-info { padding: 16px; }

.product-info .category-tag {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-info .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.product-info .view-btn {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}

.product-info .view-btn:hover { background: var(--primary-dark); }

/* === Product Detail === */
.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-gallery { position: sticky; top: 84px; }

.product-gallery .main-media {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.product-gallery .thumb-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-gallery .thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.product-gallery .thumb:hover,
.product-gallery .thumb.active { border-color: var(--primary); }

.product-gallery .video-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #1e293b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.product-gallery .video-thumb:hover,
.product-gallery .video-thumb.active { border-color: var(--primary); }

/* Video container */
.video-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.product-meta h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-meta .meta-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.product-meta .meta-description {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.stock-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.stock-badge.in-stock { background: #dcfce7; color: #166534; }
.stock-badge.out-of-stock { background: #fee2e2; color: #991b1b; }

.inquiry-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.inquiry-box p { color: var(--text-light); font-size: 14px; margin-bottom: 14px; }

.inquiry-btn {
  display: inline-block;
  width: 100%;
  padding: 14px;
  text-align: center;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: background var(--transition);
}

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

.features-list {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
}

.features-list li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-light);
}

.features-list li::before {
  content: "\2713";
  color: #10b981;
  font-weight: 700;
  margin-right: 10px;
}

/* === Breadcrumb === */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* === About Page === */
.page-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px 60px;
}

.page-section h1 { font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.page-section h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; color: var(--primary); }
.page-section p { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 14px; }

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 10px;
}

.faq-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.faq-item p { font-size: 14px; margin: 0; }

/* === Footer === */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer p { color: var(--text-light); font-size: 14px; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a { font-size: 14px; color: var(--text-light); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }

/* === Toast === */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }

  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }
  .product-meta h1 { font-size: 22px; }
  .product-meta .meta-price { font-size: 26px; }

  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 16px 12px 40px; }

  .categories-bar { padding: 20px 12px 0; flex-direction: column; align-items: flex-start; }
  .categories { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .categories::-webkit-scrollbar { display: none; }
  .cat-btn { white-space: nowrap; flex-shrink: 0; }
}
