/* ===== ECS System Parts - Design System ===== */

:root {
  /* Colors */
  --primary: #1a2b4c;
  --primary-dark: #0f1a32;
  --primary-light: #2a4070;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  --bg: #f5f6f8;
  --bg-white: #ffffff;
  --bg-gray: #eef0f3;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 72px;
  --container: 1240px;
  --transition: 0.25s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 10px;
}
.section-title.center { text-align: center; }
.section-title.center::after { margin-left: auto; margin-right: auto; }
.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-top {
  background: var(--primary-dark);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px 0;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top a:hover { color: var(--accent); }
.header-top .top-links { display: flex; gap: 20px; }
.header-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

/* Nav */
.nav { display: flex; gap: 4px; }
.nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav a:hover, .nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 12px;
  gap: 8px;
  transition: var(--transition);
}
.search-box:focus-within { background: rgba(255,255,255,0.18); }
.search-box input {
  background: none;
  border: none;
  color: #fff;
  width: 160px;
  outline: none;
  font-size: 0.88rem;
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.search-box svg { color: rgba(255,255,255,0.6); flex-shrink: 0; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}
.cart-btn:hover { background: var(--accent-dark); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  background: none;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
}
.mobile-toggle:hover { background: rgba(255,255,255,0.1); }

/* Language Switcher */
.lang-switcher {
  position: relative;
  z-index: 1001;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-current:hover { background: rgba(255,255,255,0.2); }
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  min-width: 180px;
  overflow: hidden;
  z-index: 1002;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text);
  background: none;
  transition: var(--transition);
  text-align: left;
}
.lang-option:hover { background: var(--bg-gray); color: var(--primary); }
.lang-option .lang-flag { font-size: 1.1rem; }

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--primary-dark);
  padding: 0 0 12px;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover { background: var(--primary-dark); }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ===== Category Cards ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--bg-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}
.category-card:hover .category-icon {
  background: var(--accent);
  color: #fff;
}
.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.category-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== Product Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-gray);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-badge.new { background: var(--success); }
.product-badge.sale { background: var(--danger); }
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a:hover { color: var(--accent); }
.product-oem {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.product-price .old {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 4px;
}
.btn-add-cart {
  background: var(--primary);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-add-cart:hover { background: var(--accent); transform: scale(1.1); }

/* ===== Features Section ===== */
.features {
  background: var(--bg-white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 20px;
}
.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Banner CTA ===== */
.banner-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.banner-cta h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.banner-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  font-size: 1rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li {
  font-size: 0.88rem;
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.footer-contact svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Shop Page ===== */
.shop-header {
  background: var(--primary);
  color: #fff;
  padding: 32px 0;
}
.shop-header h1 { font-size: 1.8rem; font-weight: 700; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 32px 0;
}
.shop-sidebar {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.sidebar-block { margin-bottom: 28px; }
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.filter-list li {
  margin-bottom: 8px;
}
.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 4px 0;
  transition: var(--transition);
}
.filter-list label:hover { color: var(--accent); }
.filter-list input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.filter-list .count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-range input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
}
.price-range input:focus { border-color: var(--accent); }

.shop-main {}
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.shop-toolbar .result-count {
  font-size: 0.88rem;
  color: var(--text-light);
}
.shop-toolbar select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}
.shop-toolbar select:focus { border-color: var(--accent); }

.shop-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.pagination a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  background: var(--bg-white);
  transition: var(--transition);
}
.pagination a:hover, .pagination a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.no-results svg { margin-bottom: 16px; }

/* ===== Product Detail Page ===== */
.product-detail {
  padding: 32px 0;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.product-gallery {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.product-main-img {
  aspect-ratio: 1;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-main-img .placeholder-large {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}
.product-main-img .placeholder-large svg {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}
.product-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px;
}
.product-thumb {
  width: 80px;
  height: 80px;
  background: var(--bg-gray);
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  flex-shrink: 0;
}
.product-thumb:hover, .product-thumb.active { border-color: var(--accent); }
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-detail {}
.product-info-detail .product-cat {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.product-info-detail h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.product-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.product-meta-item {
  font-size: 0.88rem;
}
.product-meta-item .label { color: var(--text-muted); }
.product-meta-item .value { font-weight: 600; color: var(--primary); }
.product-meta-item .value.in-stock { color: var(--success); }

.product-price-detail {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.product-price-detail .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.product-price-detail .old-price {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-short-desc {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-options {
  margin-bottom: 24px;
}
.product-options label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.qty-selector button {
  width: 40px;
  height: 40px;
  background: var(--bg-gray);
  color: var(--text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qty-selector button:hover { background: var(--accent); color: #fff; }
.qty-selector input {
  width: 56px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.btn-add-cart-detail {
  flex: 1;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-add-cart-detail:hover { background: var(--accent-dark); }
.btn-inquiry {
  flex: 1;
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-inquiry:hover { background: var(--primary-dark); }

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.product-tag {
  background: var(--bg-gray);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Tabs */
.product-tabs {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.tab-headers {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-gray);
}
.tab-header {
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.tab-header:hover { color: var(--primary); }
.tab-header.active {
  color: var(--primary);
  background: var(--bg-white);
  border-bottom-color: var(--accent);
}
.tab-content {
  padding: 28px;
  display: none;
}
.tab-content.active { display: block; }
.tab-content h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.tab-content p, .tab-content li {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 8px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th, .spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.spec-table th {
  background: var(--bg-gray);
  color: var(--primary);
  font-weight: 600;
  width: 200px;
}
.spec-table td { color: var(--text-light); }

/* Related products */
.related-products {
  padding: 40px 0 64px;
}

/* ===== Cart Page ===== */
.cart-page { padding: 32px 0 64px; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}
.cart-items {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th {
  background: var(--bg-gray);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.cart-table td {
  padding: 16px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-product-img {
  width: 72px;
  height: 72px;
  background: var(--bg-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.cart-product-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cart-product-info .oem {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cart-price {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.92rem;
}
.cart-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}
.cart-qty button {
  width: 32px;
  height: 32px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.cart-qty button:hover { background: var(--accent); color: #fff; }
.cart-qty span {
  width: 40px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}
.cart-total-cell {
  font-weight: 700;
  color: var(--primary);
}
.cart-remove {
  color: var(--text-muted);
  transition: var(--transition);
  background: none;
}
.cart-remove:hover { color: var(--danger); }

.cart-summary {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.cart-summary h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.summary-row .label { color: var(--text-light); }
.summary-row .value { font-weight: 600; }
.summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
  margin-bottom: 20px;
}
.summary-row.total .label { font-weight: 700; color: var(--primary); font-size: 1rem; }
.summary-row.total .value { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.summary-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 10px;
  background: var(--bg-gray);
  border-radius: 6px;
}
.btn-checkout {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-checkout:hover { background: var(--accent-dark); }
.btn-continue {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  color: var(--text-light);
  font-size: 0.88rem;
  padding: 10px;
}
.btn-continue:hover { color: var(--accent); }

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.cart-empty svg { margin-bottom: 20px; }
.cart-empty h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; }
.cart-empty p { color: var(--text-light); margin-bottom: 24px; }

/* Checkout Confirm Form */
.checkout-confirm {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
}
.checkout-confirm h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.checkout-subtitle {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.checkout-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.checkout-form .form-group {
  margin-bottom: 16px;
}
.checkout-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}
.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-white);
}
.checkout-order-summary {
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 20px;
  margin: 8px 0 24px;
}
.checkout-order-summary h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.cos-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text);
}
.cos-item small { color: var(--text-muted); }
.cos-item-price { font-weight: 600; color: var(--primary); white-space: nowrap; margin-left: 16px; }
.cos-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--border);
  font-size: 1.05rem;
  color: var(--primary);
  text-align: right;
}
.btn-checkout-lg {
  width: 100%;
  font-size: 1.05rem;
  padding: 14px;
}
.btn-back-cart {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  margin-top: 8px;
  background: none;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-back-cart:hover { color: var(--accent); }

/* Checkout Success */
.checkout-success {
  text-align: center;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  border: 1px solid var(--border);
  max-width: 640px;
  margin: 0 auto;
}
.checkout-success .success-icon {
  margin-bottom: 20px;
}
.checkout-success h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.checkout-success > p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.checkout-success-info {
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text);
}
.checkout-success-info p {
  margin-bottom: 6px;
}
.checkout-success-info p:last-child { margin-bottom: 0; }
.checkout-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn-wa-checkout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-wa-checkout:hover {
  background: #1fa855;
  color: #fff;
  transform: translateY(-1px);
}
.btn-pay-checkout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFC439;
  color: #111;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid #E0A600;
}
.btn-pay-checkout:hover {
  background: #F5B830;
  color: #111;
  transform: translateY(-1px);
}
.checkout-back-link {
  display: inline-block;
  color: var(--text-light);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 16px;
}
.checkout-back-link:hover { color: var(--accent); }

/* Policy Pages */
.policy-page {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}
.policy-page h2:first-child {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.policy-page .policy-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}
.policy-page h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 28px 0 10px;
}
.policy-page p,
.policy-page li {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 10px;
}
.policy-page ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .checkout-confirm { padding: 24px 16px; }
  .checkout-form .form-row { grid-template-columns: 1fr; }
  .checkout-actions { flex-direction: column; }
  .btn-wa-checkout, .btn-pay-checkout { width: 100%; justify-content: center; }
  .checkout-success { padding: 32px 16px; }
  .policy-page { padding: 24px 16px; }
}

/* ===== About Page ===== */
.about-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.about-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.about-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.8;
}
.about-visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  text-align: center;
}
.about-visual .big-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
}
.about-visual .big-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.stat-card .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-card .label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 4px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.value-card .value-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 16px;
}
.value-card .value-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.value-card:hover .value-img img {
  transform: scale(1.05);
}
.value-card .icon {
  width: 48px;
  height: 48px;
  background: var(--bg-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.value-card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* ===== Contact Page ===== */
.contact-page { padding: 32px 0 64px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info {}
.contact-info h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .icon {
  width: 44px;
  height: 44px;
  background: var(--bg-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 4px; }
.contact-item p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
}
.contact-form h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-group label .req { color: var(--danger); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit {
  background: var(--accent);
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-submit:hover { background: var(--accent-dark); }

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }

/* ===== Problem Solutions Section ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.solution-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--transition);
}
.solution-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.solution-card:hover::before { transform: scaleY(1); }
.solution-card .solution-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  transition: var(--transition);
}
.solution-card:hover .solution-icon {
  background: var(--accent);
  color: #fff;
}
.solution-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.solution-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}
.solution-card .solution-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(245,158,11,0.1);
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Custom Process Section ===== */
.process-section {
  background: var(--primary);
  color: #fff;
}
.process-section .section-title { color: #fff; }
.process-section .section-subtitle { color: rgba(255,255,255,0.6); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.2);
}
.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 28px;
  right: -16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.2);
  border-top: 2px solid rgba(255,255,255,0.2);
  transform: rotate(45deg);
}
.process-num {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.process-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ===== Emergency CTA ===== */
.emergency-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 48px 0;
}
.emergency-cta h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.emergency-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.emergency-cta .btn {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.emergency-cta .btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Responsive additions ===== */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-step:not(:last-child)::after,
  .process-step:not(:last-child)::before { display: none; }
}
@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { flex-direction: column; gap: 12px; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-products { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-top { display: none; }
  .nav { display: none; }
  .search-box { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-nav { display: none; }
  .mobile-nav.open { display: flex; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-products { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-table th:nth-child(4),
  .cart-table td:nth-child(4) { display: none; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }
}

/* Top bar WhatsApp link */
.top-whatsapp {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  color: #25D366 !important;
  font-weight: 600;
}
.top-whatsapp:hover { opacity: 0.85; }

/* Floating WhatsApp Button */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
#wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
#wa-float svg {
  width: 28px;
  height: 28px;
}

/* Pulse animation for floating button */
#wa-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 768px) {
  #wa-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  #wa-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ===== Payment Page ===== */
.payment-section {
  padding: 48px 0 64px;
}
.payment-intro {
  margin-bottom: 48px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.payment-method-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.payment-method-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.payment-method-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.pm-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pm-icon {
  margin-bottom: 20px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.payment-method-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.payment-method-card > p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.pm-features {
  margin-bottom: 20px;
  flex: 1;
}
.pm-features li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.pm-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
/* PayPal Checkout Form */
.paypal-button-area {
  background: transparent;
  border-radius: 8px;
  padding: 0;
  text-align: center;
}
.paypal-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.paypal-amount-row {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 260px;
  background: var(--bg-white);
  transition: border-color 0.2s;
}
.paypal-amount-row:focus-within {
  border-color: #009CDE;
}
.paypal-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0 12px;
  background: var(--bg-gray);
  line-height: 48px;
  user-select: none;
}
.paypal-amount-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  -moz-appearance: textfield;
}
.paypal-amount-input::-webkit-outer-spin-button,
.paypal-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.paypal-amount-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.paypal-email-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.paypal-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFC439;
  color: #111;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid #E0A600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.paypal-live-btn:hover {
  background: #F5B830;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.paypal-live-btn svg {
  flex-shrink: 0;
}
.paypal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 280px;
}
.paypal-alt-link {
  font-size: 0.8rem;
  color: var(--text-light);
}
.paypal-alt-link a {
  color: #009CDE;
  font-weight: 600;
  text-decoration: underline;
}
.paypal-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: toastSlideIn 0.3s ease;
}
.paypal-toast.success {
  background: #10b981;
  color: #fff;
}
.paypal-toast.error {
  background: #ef4444;
  color: #fff;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.bank-info-box {
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 16px;
  margin-top: auto;
}
.bank-note {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
}

/* Payment Process Section */
.payment-process-section {
  background: var(--primary);
  padding: 56px 0;
}
.payment-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.payment-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.payment-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.2);
}
.payment-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 28px;
  right: -16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.2);
  border-top: 2px solid rgba(255,255,255,0.2);
  transform: rotate(45deg);
}
.ps-num {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.payment-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.payment-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* Payment Security Section */
.payment-security {
  background: var(--bg-white);
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.security-item {
  text-align: center;
  padding: 24px;
}
.si-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.security-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.security-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Payment FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.faq-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.faq-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Payment page responsive */
@media (max-width: 1024px) {
  .payment-methods-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .payment-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .payment-step:not(:last-child)::after,
  .payment-step:not(:last-child)::before { display: none; }
  .security-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .payment-steps { grid-template-columns: 1fr; }
}

/* ===== Mobile Optimization (480px and below) ===== */
@media (max-width: 480px) {
  /* Container tighter padding */
  .container { padding: 0 14px; }

  /* Hero */
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9rem; margin-bottom: 20px; }
  .hero-actions { gap: 10px; }
  .btn { padding: 10px 20px; font-size: 0.88rem; }
  .btn-lg { padding: 12px 24px; }
  .hero-stats { gap: 16px; margin-top: 32px; padding-top: 20px; }
  .hero-stat .num { font-size: 1.5rem; }
  .hero-stat .label { font-size: 0.75rem; }

  /* Section spacing */
  .section { padding: 32px 0; }
  .section-sm { padding: 28px 0; }
  .section-title { font-size: 1.25rem; }
  .section-subtitle { font-size: 0.88rem; margin-bottom: 20px; }

  /* Products grid: 1 column on tiny phones */
  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-info { padding: 12px; }
  .product-name { font-size: 0.88rem; }
  .product-oem { font-size: 0.75rem; }
  .product-price { font-size: 1.1rem; }
  .btn-add-cart { width: 36px; height: 36px; }

  /* Shop page */
  .shop-header { padding: 24px 0; }
  .shop-header h1 { font-size: 1.4rem; }
  .shop-products { grid-template-columns: 1fr; gap: 14px; }
  .shop-toolbar { flex-direction: column; gap: 8px; align-items: stretch; padding: 10px 14px; }
  .shop-toolbar .result-count { text-align: center; font-size: 0.82rem; }
  .shop-toolbar select { width: 100%; }
  .shop-sidebar { padding: 16px; }
  .sidebar-block { margin-bottom: 20px; }

  /* Product detail page */
  .product-detail { padding: 20px 0; }
  .product-detail-grid { gap: 20px; }
  .product-info-detail h1 { font-size: 1.25rem; }
  .product-thumbs { gap: 8px; padding: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .product-thumb { width: 60px; height: 60px; flex-shrink: 0; }
  .product-meta { flex-wrap: wrap; gap: 10px; }
  .product-price-detail .price { font-size: 1.6rem; }
  .product-actions { flex-direction: column; }
  .btn-add-cart-detail, .btn-inquiry { width: 100%; padding: 12px; }
  .tab-header { padding: 12px 16px; font-size: 0.85rem; }
  .tab-content { padding: 18px; }
  .spec-table th { width: 130px; }
  .spec-table th, .spec-table td { padding: 10px 12px; font-size: 0.85rem; }

  /* Cart: convert table to card layout */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    padding: 12px;
  }
  .cart-table tr:first-child { border: none; background: none; padding: 0; margin-bottom: 0; }
  .cart-table td {
    border: none;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }
  .cart-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: left;
  }
  .cart-table .cart-product { justify-content: flex-start; text-align: left; }
  .cart-table .cart-product td::before { display: none; }
  .cart-product-img { width: 56px; height: 56px; }
  .cart-product-info h4 { font-size: 0.85rem; }
  .cart-product-info .oem { font-size: 0.75rem; }
  .cart-summary { padding: 18px; }

  /* Checkout form */
  .checkout-confirm { padding: 20px 14px; }
  .checkout-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .checkout-order-summary { padding: 14px; }
  .cos-item { font-size: 0.85rem; }

  /* Payment page */
  .payment-section { padding: 32px 0 48px; }
  .payment-method-card { padding: 24px 20px; }
  .paypal-amount-row { max-width: 100%; }
  .paypal-live-btn { width: 100%; justify-content: center; padding: 14px; }

  /* About page */
  .about-hero { padding: 36px 0; }
  .about-hero h1 { font-size: 1.6rem; }
  .about-hero p { font-size: 0.92rem; }
  .about-visual { padding: 32px 20px; }
  .stat-card { padding: 24px 12px; }
  .stat-card .num { font-size: 1.8rem; }
  .value-card { padding: 20px; }

  /* Contact page */
  .contact-form { padding: 20px; }
  .contact-item .icon { width: 38px; height: 38px; }

  /* Footer */
  .footer { padding: 36px 0 0; }
  .footer-grid { gap: 24px; padding-bottom: 28px; }
  .footer-col h4 { font-size: 0.88rem; margin-bottom: 10px; }
  .footer-col ul li { margin-bottom: 6px; }
  .footer-col ul li a { font-size: 0.82rem; }
  .footer-contact li { font-size: 0.82rem; margin-bottom: 8px; }
  .footer-bottom { padding: 16px 0; font-size: 0.76rem; }

  /* Trust bar */
  .trust-item { font-size: 0.82rem; }

  /* Emergency CTA */
  .emergency-cta { padding: 36px 0; }
  .emergency-cta h2 { font-size: 1.4rem; }
  .emergency-cta p { font-size: 0.92rem; }

  /* Banner CTA */
  .banner-cta { padding: 40px 0; }
  .banner-cta h2 { font-size: 1.4rem; }

  /* Policy pages */
  .policy-page { padding: 20px 14px; }
  .policy-page h2:first-child { font-size: 1.25rem; }
  .policy-page h3 { font-size: 1rem; }
  .policy-page p, .policy-page li { font-size: 0.88rem; }

  /* Toast position */
  .toast { bottom: 14px; right: 14px; left: 14px; padding: 12px 16px; font-size: 0.85rem; }

  /* Floating WhatsApp - slightly smaller */
  #wa-float { bottom: 12px; right: 12px; width: 44px; height: 44px; }
  #wa-float svg { width: 22px; height: 22px; }
}

/* ===== Mobile fine-tuning (768px and below) ===== */
@media (max-width: 768px) {
  /* Logo smaller on mobile */
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo-icon { width: 34px; height: 34px; font-size: 1.2rem; }

  /* Header height adjustment */
  :root { --header-h: 60px; }

  /* Cart btn more compact */
  .cart-btn { padding: 7px 12px; font-size: 0.82rem; }

  /* Lang switcher compact */
  .lang-current { padding: 5px 8px; font-size: 0.78rem; }

  /* Categories grid: 2 columns on tablets, keep */
  .categories-grid { gap: 14px; }
  .category-card { padding: 20px 14px; }

  /* Features grid: 2 columns */
  .features-grid { gap: 16px; }
  .feature-item { padding: 16px 12px; }
  .feature-item h3 { font-size: 0.92rem; }
  .feature-item p { font-size: 0.82rem; }

  /* Product card: reduce gap */
  .products-grid { gap: 16px; }

  /* Shop products: 2 columns on tablet */
  .shop-products { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Cart layout: stack */
  .cart-layout { gap: 16px; }

  /* About grid: stack */
  .about-grid { gap: 28px; }
  .about-text h2 { font-size: 1.3rem; }

  /* Stats grid: 2 columns */
  .stats-grid { gap: 14px; }
  .stat-card { padding: 24px 12px; }
  .stat-card .num { font-size: 2rem; }

  /* Contact grid: stack */
  .contact-grid { gap: 24px; }
}

/* ===== Extra small phone (360px and below) ===== */
@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .hero h1 { font-size: 1.3rem; }
  .logo { font-size: 1rem; }
  .logo-icon { width: 30px; height: 30px; font-size: 1.05rem; }
  .product-name { font-size: 0.82rem; -webkit-line-clamp: 1; }
  .product-info { padding: 10px; }
  .product-price { font-size: 1rem; }
  .btn-add-cart { width: 32px; height: 32px; }
  .section-title { font-size: 1.15rem; }
}

/* ===== Factory Tour Section (About Page) ===== */
.factory-tour {
  background: var(--bg-white);
}
.factory-tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.factory-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-gray);
}
.factory-photo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.factory-photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.factory-photo-card:hover img {
  transform: scale(1.05);
}
.factory-photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}
.factory-photo-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}
.factory-photo-card.featured img {
  aspect-ratio: auto;
  min-height: 360px;
  object-fit: cover;
}
.factory-photo-card.featured .factory-photo-label {
  font-size: 1rem;
  padding: 20px 18px 14px;
}

/* Factory Category Header */
.factory-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.factory-category-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.factory-category-header h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0;
}
.factory-category-header p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Factory Direct Section (Homepage) ===== */
.factory-direct {
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.factory-direct::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
}
.factory-direct .section-title { color: #fff; }
.factory-direct .section-subtitle { color: rgba(255,255,255,0.6); }
.factory-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.factory-showcase-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.factory-showcase-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.factory-showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}
.factory-showcase-overlay h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.factory-showcase-overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}
.factory-showcase-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.factory-showcase-side-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  flex: 1;
}
.factory-showcase-side-item img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}
.factory-showcase-side-item .factory-showcase-overlay {
  padding: 16px;
}
.factory-showcase-side-item .factory-showcase-overlay h3 {
  font-size: 0.95rem;
}
.factory-badge-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.factory-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
}
.factory-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Responsive: Factory sections */
@media (max-width: 1024px) {
  .factory-tour-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-photo-card.featured { grid-column: span 2; grid-row: span 1; }
  .factory-photo-card.featured img { min-height: 280px; }
  .factory-showcase { grid-template-columns: 1fr 1fr; }
  .factory-showcase-main { grid-column: span 2; }
  .factory-showcase-main img { height: 300px; }
  .factory-showcase-side { flex-direction: row; }
  .factory-badge-row { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .factory-tour-grid { grid-template-columns: 1fr; }
  .factory-photo-card.featured { grid-column: span 1; }
  .factory-photo-card.featured img { min-height: 240px; }
  .factory-showcase { grid-template-columns: 1fr; }
  .factory-showcase-main { grid-column: span 1; }
  .factory-showcase-main img { height: 240px; }
  .factory-showcase-side { flex-direction: column; }
  .factory-badge-row { flex-direction: column; gap: 10px; }
}
