/* ==========================================================================
   BadmintonOEM.com - Pure White & Light Gray B2B Master CSS Engine (2026)
   Clean, Spacious, Atmospheric B2B Sourcing Portal Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Clean B2B Pure White & Light Gray Tokens */
  /* Clean Light B2B Engine (Pure White & Light Gray) */
  --bg-deep: #F8FAFC;
  --bg-main: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;

  /* Accent Colors */
  --accent-primary: #2563EB; /* Trust Blue */
  --accent-gold-bright: #F59E0B;
  --accent-gold: #D97706;
  --accent-emerald: #10B981;
  --accent-emerald-light: #ECFDF5;

  /* Text & Border Tokens */
  --text-pure: #000000;
  --text-main: #0F172A;
  --text-sub: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --border-light: #E2E8F0;
  --border-card: #CBD5E1;
  --border-subtle: #E2E8F0;
  --border-focus: #0284C7;
  --border-glow: rgba(37, 99, 235, 0.35);

  /* Card & Element Shadows */
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
  --shadow-modal: 0 20px 50px -10px rgba(15, 23, 42, 0.18);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Transitions & Easing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zero Overflow & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg-main);
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
  touch-action: manipulation;
}

/* Typography & Base Elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-primary-hover);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.w-full { width: 100%; }

.desktop-only { display: flex !important; }
.mobile-only { display: none !important; }

/* Trust Blue Gradient Text */
.accent-color, .hero-title .accent-color {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Verified Supplier Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--accent-emerald-light);
  border: 1px solid var(--accent-emerald);
  border-radius: 50px;
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Top Announcement Bar Position & High Z-Index */
.top-bar {
  position: relative;
  z-index: 120;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 0.45rem 0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.top-bar span, .top-bar div {
  white-space: nowrap;
}

/* Main Header Glassmorphism */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.brand-logo {
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-item {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
  position: relative;
  padding: 0.4rem 0;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent-primary), #3B82F6);
  transition: width 0.3s var(--ease-spring);
  border-radius: 2px;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent-primary);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 1px;
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: var(--bg-pure);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-spring);
  padding: 2rem;
}

.mobile-drawer.active { transform: translateX(0); }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-dark);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-link {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 0.85rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.drawer-link.active {
  color: var(--accent-primary) !important;
}

/* Clean Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  min-height: 40px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  user-select: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-outline {
  background: var(--bg-pure);
  border: 1px solid var(--border-card);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--bg-surface);
}

.btn-lg { min-height: 50px; padding: 0.9rem 2.25rem; font-size: 1rem; }
.btn-block, .w-full { width: 100%; }

/* HERO SECTION */
.hero-section {
  padding: 4.5rem 0 5.5rem;
  position: relative;
  background: linear-gradient(180deg, var(--bg-pure) 0%, var(--bg-surface) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-subtitle-top {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.metric-box {
  display: flex;
  flex-direction: column;
  background: var(--bg-pure);
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* HERO PHOTO PANEL */
.hero-panel-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}

.hero-panel-photo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-spring);
}

.hero-panel-photo:hover .hero-img {
  transform: scale(1.03);
}

.panel-overlay {
  position: absolute;
  inset: 0;
  /* Ambient Light Background */
  background: var(--bg-deep);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
}

.panel-header p {
  color: #E2E8F0;
  font-size: 0.875rem;
  font-weight: 500;
}

/* SECTIONS */
.section-block { padding: 5rem 0; }

.bg-dark-alt, .bg-surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-heading { margin-bottom: 3.5rem; }
.section-heading h2 { font-family: var(--font-heading); font-size: 2.35rem; font-weight: 800; margin-bottom: 0.65rem; color: var(--text-dark); letter-spacing: -0.02em; }
.section-heading p { color: var(--text-muted); font-size: 1.05rem; }

/* PRODUCT CARD */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

.product-card-photo {
  background: var(--bg-pure);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-spring);
}

.product-card-photo:hover {
  border-color: var(--border-card);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-spring);
}

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

.card-body-photo { padding: 2rem; }
.card-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; margin-bottom: 0.4rem; color: var(--text-dark); }
.card-subtitle { color: var(--text-muted); font-size: 0.925rem; margin-bottom: 1.5rem; }

/* FACTORY SHOWCASE CARD */
.distributor-card-photo {
  background: var(--bg-pure);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.distributor-img-box {
  height: 100%;
  min-height: 360px;
}

.factory-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.distributor-info-box { padding: 3rem; }
.distributor-info-box h2 { font-family: var(--font-heading); font-size: 2.1rem; margin-bottom: 1rem; font-weight: 800; color: var(--text-dark); }
.distributor-info-box p { color: var(--text-main); margin-bottom: 2rem; font-size: 1.025rem; line-height: 1.65; }

/* STEPS GRID (6-Step QC Process) */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

.step-item {
  background: var(--bg-pure);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-hover);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.65rem;
  line-height: 1;
}

.step-item h4 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 700; color: var(--text-dark); }
.step-item p { color: var(--text-main); font-size: 0.9rem; line-height: 1.6; }

.step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: var(--accent-emerald-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* MACHINERY CARDS (factory-lab.html) */
.machinery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.machinery-card {
  background: var(--bg-pure);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.machinery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.machinery-body {
  padding: 1.5rem;
}

.machinery-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.machinery-spec {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.machinery-desc {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.55;
}

/* RFQ SECTION & FORMS */
.rfq-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.rfq-text h2 { font-family: var(--font-heading); font-size: 2.35rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-dark); }
.rfq-text p { color: var(--text-main); margin-bottom: 2rem; font-size: 1.025rem; }
.direct-contacts p { margin-bottom: 0.65rem; font-size: 0.95rem; color: var(--text-main); }

.rfq-form-box {
  background: var(--bg-pure);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.form-field input, .form-field select, .form-field textarea, .modal-input {
  background: var(--bg-pure);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text-dark);
  font-size: 0.925rem;
  outline: none;
  min-height: 48px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .modal-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* SPEC CHIPS & BADGES */
.spec-chip, .spec-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* FOOTER & WHATSAPP */
.main-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  color: var(--text-muted);
}

.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-primary); }

.whatsapp-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 98;
  background: #10B981;
  color: #FFFFFF; text-decoration: none; padding: 0.8rem 1.5rem; min-height: 48px; border-radius: 50px;
  font-weight: 700; font-size: 0.925rem; display: inline-flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
  color: #FFFFFF;
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card { background: var(--bg-pure); border: 1px solid var(--border-light); border-radius: 16px; width: 100%; max-width: 460px; padding: 2.25rem; position: relative; box-shadow: var(--shadow-modal); }
.modal-close { position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }

/* ALIBABA STYLE MULTI-LANGUAGE & CURRENCY SELECTOR */
.lang-dropdown {
  position: relative;
  z-index: 130;
  display: inline-block;
}

.lang-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  color: #0F172A;
  padding: 0.25rem 0.65rem;
  font-size: 0.775rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lang-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: #F0F9FF;
}

.ali-lang-box {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px !important;
  padding: 1.25rem !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18) !important;
  font-family: var(--font-body);
  display: none;
  z-index: 9999;
}

/* Invisible Hover Bridge */
.ali-lang-box::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.lang-dropdown.active .ali-lang-box {
  display: block;
}

.ali-lang-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 0.75rem;
}

.ali-lang-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.25rem;
}

.ali-lang-header p {
  font-size: 0.775rem;
  color: #64748B;
  line-height: 1.35;
}

.ali-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ali-field label {
  font-size: 0.775rem;
  font-weight: 600;
  color: #334155;
}

.ali-select {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: #0F172A;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ali-select:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #FFFFFF;
}

.ali-save-btn {
  margin-top: 1.25rem;
  width: 100%;
  background: #0284C7;
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.ali-save-btn:hover {
  background: #0369A1;
}

@media (max-width: 640px) {
  .ali-lang-box {
    width: 290px !important;
    right: -20px;
  }
}

/* Hide Google Translate top banner & toolbar for clean B2B look */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame {
  display: none !important;
}
body {
  top: 0px !important;
}
.goog-te-gadget-icon {
  display: none !important;
}
.goog-te-gadget-simple {
  background: transparent !important;
  border: none !important;
}

.lang-item:hover {
  background: var(--bg-surface);
  color: var(--accent-primary);
}

/* MOBILE STICKY BOTTOM BAR */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 0.6rem 1rem env(safe-area-inset-bottom);
  z-index: 97;
  gap: 0.75rem;
}

@media (max-width: 1150px) {
  .mobile-sticky-bar { display: flex; }
  .whatsapp-btn { bottom: 4.5rem; right: 1rem; padding: 0.65rem 1.1rem; font-size: 0.85rem; }
  body { padding-bottom: 4.5rem; }
  .machinery-grid { grid-template-columns: 1fr; }
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .hero-grid, .product-grid, .distributor-card-photo, .rfq-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.25rem; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; }
  .step-item { min-width: 270px; scroll-snap-align: start; flex-shrink: 0; }
}

@media (max-width: 640px) {
  .hero-cta { flex-direction: column; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .top-bar { display: none; }
}

/* ==========================================================================
   Modern Product Gallery & Real Material Image System (2026 UI/UX)
   ========================================================================== */

/* Panoramic Real Workshop Banner */
.panoramic-banner-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  margin: 2.5rem 0;
  background: #0F172A;
}

.panoramic-banner-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.panoramic-banner-container:hover .panoramic-banner-img {
  transform: scale(1.02);
}

.panoramic-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.5rem;
  color: #FFFFFF;
}

.panoramic-banner-overlay h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.panoramic-banner-overlay p {
  color: #E2E8F0;
  font-size: 0.95rem;
  max-width: 720px;
  line-height: 1.5;
}

/* Multi-Angle Interactive Product Gallery */
.gallery-interactive-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.gallery-main-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.gallery-main-frame:hover img {
  transform: scale(1.05);
}

.gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.gallery-thumbs-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.gallery-thumb-btn {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid var(--border-light);
  background: #F8FAFC;
  padding: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.gallery-thumb-btn:hover {
  border-color: #0284C7;
}

.gallery-thumb-btn.active {
  border-color: #0284C7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Material Showcase Grid */
.material-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.material-item-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.material-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.material-item-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F1F5F9;
  overflow: hidden;
}

.material-item-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.material-item-card:hover .material-item-img-box img {
  transform: scale(1.06);
}

.material-item-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.material-item-body h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.material-item-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* RFQ Visual Product Selector with Thumbnail */
.rfq-product-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.rfq-product-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rfq-product-option:hover {
  border-color: #0284C7;
  background: #F0F9FF;
}

.rfq-product-option.selected {
  border-color: #0284C7;
  background: #E0F2FE;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.rfq-product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: #F8FAFC;
}

.rfq-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rfq-product-meta h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.rfq-product-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

