/* ============================================
   Reguvale v2 — MIC Store Style Theme
   Based on Made-in-China B2B catalog layout
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --nav-bg: #0f172a;
  --nav-text: #e2e8f0;
  --nav-hover: #3b82f6;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent-blue: #1e40af;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: .25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::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, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-light);
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== NAVIGATION BAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-logo span { color: #fff; }
/* Nav Links */
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  color: var(--nav-text);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(59,130,246,.25);
}
/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2.5px;
  background: #fff; border-radius: 2px;
  transition: .2s;
}

/* ========== HERO BANNER ========== */
.hero-banner {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .85;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,.3), rgba(15,23,42,.65));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.hero-overlay h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
  margin-bottom: 12px;
}
.hero-overlay p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 600px;
  line-height: 1.5;
}
.hero-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 22px;
  background: rgba(37,99,235,.85);
  border-radius: 30px;
  font-size: .88rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* ========== COUNTRY FLAGS ROW ========== */
.flags-row {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.flags-row .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.flag-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.flag-icon {
  width: 26px; height: 18px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* ========== SECTION HEADERS ========== */
.section-header {
  text-align: center;
  padding: 48px 0 32px;
}
.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: .95rem;
}
.section-line {
  width: 50px; height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ========== FEATURED PRODUCT (Left Big + Right Thumbs) ========== */
.featured-product {
  padding: 0 0 48px;
}
.fp-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
/* Left: Main Image */
.fp-main {
  position: relative;
  background: #f1f5f9;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fp-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.fp-main:hover img { transform: scale(1.04); }
.fp-price-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(220,38,38,.35);
}
.fp-price-tag small {
  font-size: .78rem;
  font-weight: 400;
  opacity: .85;
}
/* Right: Thumbnails */
.fp-thumbs {
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.fp-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  aspect-ratio: 1;
}
.fp-thumb:hover,
.fp-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,.2);
}
.fp-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Product info below images */
.fp-info {
  grid-column: 1 / -1;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.fp-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.fp-info p {
  color: var(--text-secondary);
  font-size: .92rem;
  margin-bottom: 12px;
}
.fp-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fp-spec-tag {
  background: #eff6ff;
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
}
.fp-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ========== PRODUCT CATEGORY GRID ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  padding: 0 0 48px;
}
.cat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.cat-card-img {
  aspect-ratio: 4/3;
  background: #f1f5f9;
  overflow: hidden;
}
.cat-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card-body {
  padding: 16px;
  text-align: center;
}
.cat-card-body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cat-card-body p {
  font-size: .82rem;
  color: var(--text-secondary);
}
.cat-link {
  display: inline-block;
  margin-top: 10px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--primary);
}
.cat-link::after {
  content: ' →';
  transition: margin-right .2s;
}
.cat-link:hover::after { margin-left: 4px; }

/* ========== CATEGORY BANNER STRIP ========== */
.cat-strip {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #3b82f6 100%);
  padding: 36px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cat-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cat-strip-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.cat-strip h2 {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 30px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.btn-view-more:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

/* ========== PRODUCT IMAGE GALLERY GRID ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 0 0 48px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: #f1f5f9;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ========== CTA INQUIRY BANNER ========== 
   Blue gradient banner matching MIC "For any inquiries" strip */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  padding: 52px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-inner p {
  font-size: 1.02rem;
  opacity: .92;
  margin-bottom: 24px;
  line-height: 1.55;
}
.btn-cta-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
}
.btn-cta-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

/* ========== ABOUT US SECTION ========== */
.about-section {
  padding: 56px 0;
  background: var(--bg-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: #f1f5f9;
}
.about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-text h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-secondary);
  font-size: .93rem;
  margin-bottom: 12px;
  line-height: 1.7;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.stat-box {
  text-align: center;
  padding: 18px 10px;
  background: #eff6ff;
  border-radius: var(--radius);
}
.stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: .78rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 44px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: .87rem;
  line-height: 1.65;
  opacity: .8;
}
.footer-col h4 {
  color: #e2e8f0;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #94a3b8;
  font-size: .86rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: #fff;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .87rem;
  margin-bottom: 10px;
}
.footer-contact li strong {
  color: #e2e8f0;
}
.footer-bottom {
  border-top: 1px solid rgba(148,163,184,.15);
  padding-top: 20px;
  text-align: center;
  font-size: .82rem;
  opacity: .65;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .fp-grid { grid-template-columns: 1fr; }
  .fp-thumbs {
    flex-direction: row; padding: 16px;
    overflow-x: auto;
  }
  .fp-thumb { min-width: 90px; flex-shrink: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-strip-inner { flex-direction: column; gap: 16px; text-align: center; }
  .hero-overlay h1 { font-size: 1.8rem; }
}
@media (max-width: 720px) {
  .navbar-inner { height: 56px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--nav-bg);
    padding: 12px 20px;
    gap: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
  }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cat-strip h2 { font-size: 1.2rem; }
  .hero-banner { height: 300px; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .btn-primary, .btn-outline, .btn-cta-large { width: 100%; justify-content: center; }
}
