/* ============================================
   KitOutdoor - Outdoor Sports Equipment
   HANGZHOU JIEZUAN CRAFTS CO., LIMITED
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #F97316;
  --primary-light: #FB923C;
  --primary-dark: #EA580C;
  --accent: #0EA5E9;
  --accent-hover: #0284C7;
  --green: #16A34A;
  --bg: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-dark: #0F172A;
  --text: #0F172A;
  --text-light: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.12);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 96px;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

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

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.3; color: var(--text); }
h1 { font-size: 2.8rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 700; color: var(--primary);
}
.logo-img { height: 80px; width: auto; border-radius: 4px; }
.footer .logo-img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  transition: var(--transition); position: relative;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: var(--transition);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.62) 0%, rgba(2, 132, 199, 0.35) 100%);
}
.hero-slider .container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-slider .hero-content {
  max-width: 650px;
}
.hero-slider .hero-content h1 {
  color: white; margin-bottom: 20px; font-size: 3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-slider .hero-content p {
  font-size: 1.2rem; opacity: 0.95; margin-bottom: 36px; line-height: 1.8;
  color: white;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.hero-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.2);
}

/* Hero arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.3);
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* ── keep old .hero for about/contact page-hero use ── */
.hero, .page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  color: white; padding: 80px 0 60px;
  overflow: hidden;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.15);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  border: 2px solid white; color: white; background: transparent;
}
.btn-outline:hover { background: white; color: var(--primary); }
.btn-outline-dark {
  border: 2px solid var(--primary); color: var(--primary); background: transparent;
}
.btn-outline-dark:hover { background: var(--primary); color: white; }
.btn-send {
  background: var(--primary); color: white; padding: 14px 40px; font-size: 1.05rem;
}
.btn-send:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* --- Product Categories --- */
.categories { padding: 80px 0; }
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.cat-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 40px 24px; text-align: center;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: center;
}
.cat-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.15) 100%);
  transition: var(--transition);
}
.cat-card:hover .cat-overlay {
  background: linear-gradient(to top, rgba(8,47,73,0.8) 0%, rgba(2,132,199,0.35) 100%);
}
.cat-card-content {
  position: relative;
  z-index: 1;
  color: white;
}
.cat-card-content h3 { color: white; margin-bottom: 8px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.cat-card-content span { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { color: var(--text-light); font-size: 0.95rem; }

/* --- Featured Products --- */
.featured { padding: 80px 0; background: var(--bg-white); }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  background: var(--bg); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img {
  aspect-ratio: 1/1; background: #EEF2F7;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--text-muted);
}
.product-info { padding: 20px; }
.product-info h3 { margin-bottom: 6px; }
.product-info p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-size: 0.8rem; padding: 4px 12px;
  background: #E0F2FE; color: var(--primary);
  border-radius: 20px; font-weight: 500;
}
.product-actions { display: flex; gap: 10px; }
.btn-sm {
  padding: 8px 20px; font-size: 0.85rem; border-radius: 6px;
  font-weight: 600; transition: var(--transition);
  flex: 1; text-align: center;
}
.btn-sm-primary { background: var(--primary); color: white; }
.btn-sm-primary:hover { background: var(--primary-dark); }
.btn-sm-outline { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-sm-outline:hover { background: var(--primary); color: white; }

.btn-inquiry {
  display: block;
  margin: 0 20px 20px;
  padding: 11px 16px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-inquiry:hover { background: var(--primary-dark); color: #fff; }


/* --- Why Us --- */
.why-us { padding: 80px 0; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.feature-card {
  text-align: center; padding: 32px 20px;
}
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: #E0F2FE; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 32px; }

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; padding: 60px 0; text-align: center;
}
.page-header h1 { color: white; font-size: 2.4rem; }
.page-header p { opacity: 0.9; margin-top: 8px; font-size: 1.1rem; }

/* --- Products Page --- */
.products-section { padding: 80px 0; }
.product-filters {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px; border-radius: 30px;
  font-size: 0.95rem; font-weight: 500;
  background: var(--bg-white); color: var(--text);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); color: white; border-color: var(--primary);
}
.product-grid-expanded { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- About Page --- */
.about-content { padding: 80px 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-image {
  background: var(--border); border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--text-muted);
}
.company-info { padding: 80px 0; background: var(--bg-white); }
.info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.info-card {
  background: var(--bg); padding: 24px; border-radius: var(--radius);
  display: flex; gap: 16px; align-items: flex-start;
}
.info-icon {
  font-size: 1.5rem; flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: #E0F2FE; border-radius: var(--radius);
}
.info-card h4 { margin-bottom: 6px; }
.info-card p { color: var(--text-light); font-size: 0.95rem; }

/* --- Contact Page --- */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.contact-company h2 { margin-bottom: 24px; }
.contact-item {
  display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start;
}
.contact-item .icon {
  font-size: 1.4rem; width: 44px; height: 44px;
  background: #E0F2FE; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 4px; }
.contact-item p { color: var(--text-light); font-size: 0.95rem; }

.contact-form-box {
  background: var(--bg-white); padding: 40px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-form-box h3 { margin-bottom: 24px; }
.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 textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit;
  transition: var(--transition); background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,94,32,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row .form-group { margin-bottom: 20px; }

/* Form result messages */
.form-result { padding: 12px 16px; border-radius: var(--radius); font-size: 0.95rem; }
.form-success { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.form-error { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }

/* --- About Page --- */
.about-content p { color: var(--text-light); margin-bottom: 18px; font-size: 1rem; line-height: 1.9; }
.about-content p:last-child { margin-bottom: 0; }

/* Who We Are - left image / right text */
.about-who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-who-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-who-img {
  width: 100%;
  height: auto;
  display: block;
}
.about-who-text h2 {
  margin-bottom: 20px;
}
.about-who-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.9;
}
.about-who-text p:last-child {
  margin-bottom: 0;
}

/* OEM / Customs feature sections */
.about-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-feature-img {
  width: 100%;
  height: auto;
  display: block;
}
.about-feature-text h2 {
  margin-bottom: 16px;
}
.about-feature-text > p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.9;
}
.about-feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.about-feature-list li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-item {
  background: var(--bg); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.info-item strong { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--primary); }
.info-item p { color: var(--text-light); font-size: 0.92rem; line-height: 1.8; }

/* --- Contact Page --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info-card {
  background: var(--bg-white); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); text-align: center;
  transition: var(--transition); display: block; color: inherit;
}
a.contact-info-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.contact-info-card .contact-icon { margin-bottom: 12px; color: var(--primary); }
.contact-info-card .contact-icon svg { width: 28px; height: 28px; }
.contact-info-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-info-card p { color: var(--text); font-size: 0.9rem; margin-bottom: 4px; }
.contact-info-card span { color: var(--text-muted); font-size: 0.8rem; }
.contact-info-col h2, .contact-form-col h2 { margin-bottom: 24px; }

/* --- Footer --- */
.footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand h3 { color: white; margin-bottom: 12px; font-size: 1.3rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; }
.footer-col h4 { color: white; margin-bottom: 16px; font-size: 1rem; }
.footer-col a {
  display: block; color: rgba(255,255,255,0.6); margin-bottom: 10px;
  font-size: 0.9rem; transition: var(--transition);
}
.footer-col a:hover { color: white; }
.footer-contact p { font-size: 0.9rem; line-height: 1.8; }
.footer-contact svg { display: inline; vertical-align: middle; margin-right: 6px; opacity: 0.6; }
.info-item p svg { display: inline; vertical-align: middle; margin-right: 4px; opacity: 0.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center;
  font-size: 0.85rem;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 56px; height: 56px;
  background: #25D366; color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* --- Language Switcher --- */
.lang-switcher { display: flex; align-items: center; }
.lang-switcher select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.85rem; background: var(--bg-white); color: var(--text);
  cursor: pointer; font-family: inherit;
}
.lang-switcher select:focus { outline: none; border-color: var(--primary); }

/* --- Section helpers --- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }
.section-footer { text-align: center; margin-top: 32px; }

/* --- Page Hero (About / Contact) --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; padding: 80px 0; text-align: center;
}
.page-hero h1 { color: white; font-size: 2.4rem; margin-bottom: 12px; }
.page-subtitle { color: rgba(255,255,255,0.85); font-size: 1.15rem; }

/* --- Hero (updated) --- */
.hero-subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 36px; line-height: 1.8; }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
}
.cta-section h2 { color: white; }

/* --- Product Card badges (build.py uses these) --- */
.price-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.7); color: white;
  font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; font-weight: 500; z-index: 1;
}
.moq-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--primary); color: white;
  font-size: 0.8rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; z-index: 1;
}
.product-img-link { display: block; color: inherit; }

/* --- Product Detail Page (WooCommerce-style) --- */
.breadcrumb {
  padding: 16px 0; font-size: 0.85rem; color: var(--text-light);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; color: var(--text-muted); }

.product-detail { padding: 20px 0 80px; }
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
/* Gallery */
.pd-gallery, .product-gallery { }
.gallery-main {
  width: 100%; aspect-ratio: 1/1;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .no-img {
  font-size: 5rem; color: var(--text-muted);
}
.gallery-thumbs {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px; height: 72px; border-radius: var(--radius);
  border: 2px solid var(--border); overflow: hidden; cursor: pointer;
  transition: var(--transition); background: var(--bg-white);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.pd-info, .product-detail-info { }
.pd-info h1, .product-detail-info h1 { font-size: 1.8rem; margin-bottom: 8px; line-height: 1.4; }
.pd-sku { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.pd-sku span { font-weight: 600; color: var(--text-light); }
.pd-category-badge {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 0.82rem; padding: 4px 14px;
  background: #E0F2FE; color: var(--primary);
  border-radius: 20px; font-weight: 500; margin-bottom: 20px;
}
.pd-short-desc { color: var(--text-light); font-size: 1rem; margin-bottom: 24px; line-height: 1.8; }
.pd-price-box, .product-price-row {
  background: var(--bg); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 24px;
  display: flex; gap: 32px; flex-wrap: wrap; align-items: center;
}
.pd-price-item label, .product-price span { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.pd-price-item .val, .product-price { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.pd-price-item .val.gray, .product-moq { color: var(--text); font-size: 0.95rem; }
.pd-price-item .unit, .product-price span { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.product-moq strong { color: var(--primary); }

.pd-attrs-quick {
  margin-bottom: 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.pd-attrs-quick .attr-row {
  display: flex; padding: 6px 0; font-size: 0.92rem;
}
.pd-attrs-quick .attr-label { width: 140px; color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.pd-attrs-quick .attr-val { color: var(--text); }

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-inquire {
  background: var(--primary); color: white; padding: 14px 36px;
  font-size: 1.05rem; font-weight: 600; border-radius: var(--radius);
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-inquire:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-wa {
  background: #25D366; color: white; padding: 14px 28px;
  font-size: 1rem; font-weight: 600; border-radius: var(--radius);
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-wa:hover { background: #1da851; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

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

/* Tabs (product detail - supports both .pd-tab-* and .tab-* class names) */
.pd-tabs, .product-tabs { margin-top: 60px; }
.pd-tab-headers, .product-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 32px;
}
.pd-tab-header, .tab-btn {
  padding: 14px 28px; font-size: 1rem; font-weight: 600;
  color: var(--text-light); cursor: pointer; transition: var(--transition);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  background: none; font-family: inherit;
}
.pd-tab-header:hover, .tab-btn:hover { color: var(--primary); }
.pd-tab-header.active, .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.pd-tab-content, .tab-content { display: none; }
.pd-tab-content.active, .tab-content.active { display: block; animation: fadeIn 0.3s ease; }
.tab-inner { color: var(--text-light); font-size: 1rem; line-height: 1.9; max-width: 900px; }
.spec-table { width: 100%; max-width: 800px; border-collapse: collapse; }
.spec-table td {
  padding: 12px 20px; text-align: left; font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
.spec-table td:first-child {
  width: 200px; color: var(--text-muted); font-weight: 500;
  background: var(--bg);
}
.spec-table td:last-child { color: var(--text); }

/* Product detail meta */
.product-short-desc { color: var(--text-light); font-size: 1rem; margin-bottom: 24px; line-height: 1.8; }
.product-meta { margin-bottom: 8px; font-size: 0.9rem; color: var(--text-light); }
.product-meta .tag {
  display: inline-block; font-size: 0.8rem; padding: 3px 10px;
  background: #E0F2FE; color: var(--primary);
  border-radius: 20px; font-weight: 500; margin-left: 4px;
}

/* Inquiry Form on detail page */
.inquiry-section {
  margin-top: 60px; padding: 48px;
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.inquiry-section h2 { margin-bottom: 8px; }
.inquiry-section .sub { color: var(--text-light); margin-bottom: 32px; }
.inquiry-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.inquiry-form-grid .full { grid-column: 1 / -1; }
.inquiry-product-preview {
  display: flex; gap: 16px; align-items: center;
  background: var(--bg); padding: 16px; border-radius: var(--radius);
  margin-bottom: 24px;
}
.inquiry-product-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.inquiry-product-preview .info h4 { font-size: 0.95rem; }
.inquiry-product-preview .info p { font-size: 0.82rem; color: var(--text-muted); }

/* Related products */
.related-products { margin-top: 80px; }
.related-products h2 { font-size: 1.5rem; margin-bottom: 32px; }

/* Product card with image */
.product-card.clickable { cursor: pointer; }
.product-card .product-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card .product-img {
  position: relative; overflow: hidden;
}
.product-card .product-img .img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--text-muted); background: #EFF6FF;
}
.product-card .badge-moq {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.7); color: white;
  font-size: 0.75rem; padding: 3px 10px; border-radius: 20px;
  font-weight: 500;
}
.product-card .badge-price {
  position: absolute; top: 10px; right: 10px;
  background: var(--primary); color: white;
  font-size: 0.8rem; padding: 3px 10px; border-radius: 20px;
  font-weight: 600;
}
.product-card .product-info h3 {
  font-size: 1rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.8em;
}
.product-card .product-info p {
  font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
}

/* --- Featured Products Carousel --- */
.featured-products-section { padding: 80px 0; }
.featured-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.featured-track-wrapper {
  flex: 1;
  overflow: hidden;
}
.featured-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}
.featured-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
}
.featured-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.featured-arrow:hover {
  background: var(--primary); color: white; border-color: var(--primary);
}
.featured-card .product-img { aspect-ratio: 4/3; }

/* --- Stats Section --- */
.stats-section { padding: 60px 0; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: white; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item { padding: 16px; }
.stat-icon { margin-bottom: 12px; color: #FFFFFF; display: flex; justify-content: center; }
.stat-icon svg { width: 32px; height: 32px; }
.stat-number {
  font-size: 2.4rem; font-weight: 700;
  margin-bottom: 6px; color: white;
}
.stat-label {
  font-size: 1rem; opacity: 0.9;
}

/* --- Certificates Section --- */
.certificates-section { padding: 80px 0; overflow: hidden; }
.certificates-marquee {
  overflow: hidden;
  position: relative;
}
.certificates-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.certificates-track:hover { animation-play-state: paused; }
.certificate-card {
  flex: 0 0 220px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.certificate-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #F8FAFC;
}
.certificate-card p {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  margin: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Testimonials Section --- */
.testimonials-section { padding: 80px 0; background: var(--bg); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial-quote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  padding-left: 24px;
}
.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0; top: -8px;
  font-size: 2.5rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}
.testimonial-meta { flex: 1; }
.testimonial-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 4px;
}
.testimonial-country {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--primary);
}
.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Brands Reference Section --- */
.brands-section {
  padding: 32px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  text-align: center;
}
.brands-section h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.brands-list {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.6;
  letter-spacing: 0.3px;
}
.brands-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}
.brands-disclaimer {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
  opacity: 0.8;
}

/* --- Blog Listing --- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card-body {
  padding: 20px;
}
.blog-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.blog-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text-dark);
}
.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-readmore {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Blog Detail --- */
.blog-article {
  padding: 0;
}
.blog-article-container {
  max-width: 820px;
}
.blog-article-header {
  text-align: center;
  margin-bottom: 28px;
}
.blog-article-cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.blog-article-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text-dark);
}
.blog-article-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.blog-article-cover {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
}
.blog-article-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark);
}
.blog-article-content h2 {
  font-size: 1.5rem;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text-dark);
  font-weight: 700;
}
.blog-article-content h3 {
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-weight: 600;
}
.blog-article-content p {
  margin-bottom: 16px;
}
.blog-article-content ul,
.blog-article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.blog-article-content li {
  margin-bottom: 6px;
  line-height: 1.75;
}
.blog-article-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
.blog-article-content a:hover {
  text-decoration: underline;
}
.blog-article-content strong {
  font-weight: 700;
  color: var(--text-dark);
}
.blog-article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-light);
}
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.blog-table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.blog-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.blog-table tr:nth-child(even) td {
  background: var(--bg-light);
}
.blog-article-footer {
  margin-top: 40px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid-expanded { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { flex: 0 0 calc(50% - 12px); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-who-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-oem .about-feature-image { order: -1; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero-slider { height: 420px; }
  .hero-slider .hero-content h1 { font-size: 1.8rem; }
  .hero-slider .hero-content p { font-size: 1rem; }
  .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
  .hero-buttons { justify-content: center; }


  .header { --header-height: 68px; height: 68px; }
  .logo-img { height: 52px; }
  .menu-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: var(--header-height);
    left: 0; right: 0; flex-direction: column;
    background: var(--bg-white); padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    text-align: center;
  }
  .nav.show { display: flex; }

  .cat-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-grid-expanded { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.8rem; }
  .featured-card { flex: 0 0 calc(100% - 0px); }
  .featured-arrow { width: 36px; height: 36px; }
  .certificate-card { flex: 0 0 160px; }
  .certificate-card img { height: 200px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-who-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-oem .about-feature-image { order: -1; }
  .testimonial-card { padding: 24px; }
  .brands-section { padding: 24px 0; }
  .brands-list { font-size: 0.7rem; }
  .brands-note { font-size: 0.65rem; }
  .brands-disclaimer { font-size: 0.6rem; }

  .blog-grid { grid-template-columns: 1fr; }
  .blog-article-header h1 { font-size: 1.6rem; }
  .blog-article-content { font-size: 1rem; }
  .blog-article-content h2 { font-size: 1.3rem; }
  .blog-article-content h3 { font-size: 1.1rem; }
  .blog-table { font-size: 0.85rem; }
  .blog-table th, .blog-table td { padding: 8px 10px; }
  .blog-article-meta { flex-wrap: wrap; justify-content: center; }

  .contact-form-box { padding: 24px; }
  .whatsapp-float { bottom: 20px; right: 20px; }

  /* Product detail responsive */
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-main { max-width: 400px; margin: 0 auto; }
  .gallery-thumbs { justify-content: center; }
  .pd-info h1 { font-size: 1.4rem; }
  .product-price-row { flex-direction: column; gap: 16px; }
  .pd-tab-headers, .product-tabs { overflow-x: auto; }
  .pd-tab-header, .tab-btn { white-space: nowrap; padding: 12px 18px; font-size: 0.9rem; }
  .inquiry-section { padding: 24px; }
  .inquiry-form-grid, .form-row { grid-template-columns: 1fr; }
  .spec-table td:first-child, .pd-spec-table th { width: 120px; }

  /* Multi-language */
  .lang-switcher select { font-size: 0.8rem; padding: 6px 10px; }

  /* About & Contact */
  .info-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-cards { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.8rem; }
}

/* --- Products page: search + pagination (v2) --- */
.product-search-bar {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 0 8px;
}
.product-search-bar input {
  width: 100%;
  padding: 16px 24px 16px 54px;
  font-size: 1.05rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 20px center / 22px no-repeat;
  box-shadow: var(--shadow);
  outline: none;
  transition: var(--transition);
  color: var(--text);
}
.product-search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.15), var(--shadow);
}
.product-search-bar input::placeholder { color: var(--text-muted); }

.no-products { text-align: center; padding: 60px 0 20px; color: var(--text-light); font-size: 1.1rem; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination .page-info {
  margin-right: 12px;
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 600;
}
.pagination button {
  min-width: 46px;
  height: 46px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}
.pagination button:hover:not(.disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.pagination button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.pagination button.disabled { opacity: 0.35; cursor: default; }

@media (max-width: 768px) {
  .pagination { gap: 6px; margin-top: 36px; }
  .pagination button { min-width: 40px; height: 40px; padding: 0 10px; font-size: 0.92rem; }
  .product-search-bar { margin-bottom: 28px; }
}
