/* ==========================================================================
   Wencheng B2B Tableware - Global Stylesheet
   Deep-blue + Orange international business theme · Fully responsive · RTL-ready
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #081a33;
  --navy-800: #0b2447;
  --navy-700: #123a6e;
  --navy-600: #1b4b8f;
  --navy-100: #e7eef8;
  --navy-50: #f3f7fc;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #ff8a3d;
  --orange-100: #ffedd5;
  --ink: #1b2b4b;
  --ink-soft: #55677f;
  --line: #e2e8f2;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --white: #fff;
  --shadow-sm: 0 2px 10px rgba(11, 36, 71, 0.08);
  --shadow-md: 0 8px 28px rgba(11, 36, 71, 0.12);
  --shadow-lg: 0 16px 48px rgba(11, 36, 71, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --font: 'Inter', 'Noto Sans Arabic', 'Noto Naskh Arabic', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 18px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }
.section-block { margin-top: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-weight: 600; font-size: 14px; transition: all .2s ease; text-align: center;
  white-space: nowrap;
}
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--orange-500); color: #fff; border-color: var(--orange-500); }
.btn-accent:hover { background: var(--orange-600); border-color: var(--orange-600); transform: translateY(-1px); }
.btn-primary { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); }
.btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa:hover { background: #1eb857; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--navy-100); color: var(--navy-800);
  font-size: 12px; font-weight: 600; border: 1px solid #d3e0f2;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(11,36,71,.08); }
.topbar { background: var(--navy-900); color: #cfe0f5; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 12px; }
.topbar a { color: #fff; }
.topbar-divider { opacity: .4; margin: 0 8px; }
.topbar-left { display: flex; align-items: center; overflow: hidden; white-space: nowrap; }

.lang-switch { position: relative; }
.lang-btn { background: transparent; border: none; color: #fff; font-size: 12.5px; display: flex; align-items: center; gap: 6px; padding: 4px 6px; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; background: #fff; color: var(--ink);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); min-width: 180px; padding: 6px;
  display: none; z-index: 200; border: 1px solid var(--line);
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--ink); }
.lang-menu a:hover { background: var(--navy-50); color: var(--navy-800); }
.lang-menu a.is-active { background: var(--orange-100); color: var(--orange-600); font-weight: 700; }
.flag { font-size: 15px; }

.main-nav { background: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; color: var(--navy-800); font-size: 15px; }
.brand-en { font-size: 10.5px; letter-spacing: 2.5px; color: var(--orange-500); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--orange-500); }
.nav-links a.is-active { color: var(--orange-600); background: var(--orange-100); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy-800); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; }
.hero-slider { position: relative; height: clamp(420px, 62vh, 640px); overflow: hidden; background: var(--navy-800); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,26,51,.88) 10%, rgba(8,26,51,.45) 60%, rgba(8,26,51,.15)); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; max-width: var(--container); margin: 0 auto; padding: 0 20px; color: #fff; }
.hero-content h1 { color: #fff; font-size: clamp(28px, 4.5vw, 46px); max-width: 720px; margin-bottom: 16px; }
.hero-content p { color: #dfeafb; font-size: clamp(15px, 2vw, 18px); max-width: 620px; margin-bottom: 28px; }
.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; transition: .25s; }
.hero-dot.is-active { background: var(--orange-500); width: 26px; border-radius: 6px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.18); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: .2s; backdrop-filter: blur(2px);
}
.hero-arrow:hover { background: var(--orange-500); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* ---------- Slogan strip ---------- */
.slogan-strip { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; text-align: center; padding: 30px 20px; }
.slogan-big { font-size: clamp(20px, 3vw, 30px); font-weight: 800; color: inherit; }
.slogan-sub { color: #bcd3f2; margin-top: 6px; font-size: 13.5px; letter-spacing: 1px; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }
.section-more { text-align: center; margin-top: 36px; }

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.adv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm); transition: .25s; }
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.adv-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--orange-100); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.adv-card h3 { margin-bottom: 8px; }
.adv-card p { color: var(--ink-soft); font-size: 14px; }

/* ---------- Stats ---------- */
.section-stats { background: var(--navy-900); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; color: #fff; }
.stat { padding: 8px; }
.stat-n { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--orange-400); }
.stat-l { color: #cfe0f5; font-size: 14px; }

/* ---------- Cards grids ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card, .prod-card, .case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; box-shadow: var(--shadow-sm);
}
.cat-card:hover, .prod-card:hover, .case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--navy-100); }
.cat-img, .prod-img, .case-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.cat-img img, .prod-img img, .case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-card:hover img, .prod-card:hover img, .case-card:hover img { transform: scale(1.06); }
.cat-body, .prod-body, .case-body { padding: 16px 18px 20px; }
.cat-body h3 { font-size: 16.5px; margin-bottom: 6px; }
.cat-body p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-body h3 { font-size: 16px; margin-bottom: 6px; min-height: 40px; }
.prod-desc { color: var(--ink-soft); font-size: 13px; min-height: 42px; margin-bottom: 10px; }
.prod-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.prod-price { color: var(--orange-600); font-weight: 800; font-size: 16px; }
.prod-price em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--ink-soft); }
.prod-moq { font-size: 12px; color: var(--ink-soft); }

.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.case-body h3 { font-size: 16px; margin-bottom: 8px; }
.case-body p { color: var(--ink-soft); font-size: 13px; margin-bottom: 10px; }
.case-meta { font-size: 12.5px; color: var(--navy-600); font-weight: 600; }
.case-meta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Factory ---------- */
.factory-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.factory-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.factory-body h2 { margin-bottom: 16px; }
.factory-body > p { color: var(--ink-soft); margin-bottom: 18px; }
.factory-points li { padding: 8px 0 8px 26px; position: relative; color: var(--ink-soft); }
.factory-points li::before { content: '✓'; position: absolute; left: 0; color: var(--orange-500); font-weight: 800; }

/* ---------- Quote form ---------- */
.section-quote { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.quote-wrap { max-width: 900px; }
.quote-head { text-align: center; color: #fff; margin-bottom: 28px; }
.quote-head h2 { color: #fff; }
.quote-head p { color: #cfe0f5; margin-top: 8px; }
.quote-form { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; transition: .2s; background: #fff;
}
.quote-form textarea { margin-bottom: 14px; resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.form-msg { margin-top: 12px; font-weight: 600; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: #16a34a; }
.form-msg.err { color: #dc2626; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; padding: 54px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfe0f5; margin-top: 10px; max-width: 720px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--orange-500); }
.breadcrumb span { color: var(--navy-800); font-weight: 600; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 32px; box-shadow: var(--shadow-sm);
}
.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-item label { font-size: 12.5px; font-weight: 700; color: var(--navy-800); }
.filter-item select, .filter-item input {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 160px; background: #fff; outline: none;
}
.filter-search input { min-width: 200px; }
.filter-actions { display: flex; gap: 10px; }
.empty-state { text-align: center; color: var(--ink-soft); padding: 60px 0; }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.pd-main-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.pd-main-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumb { width: 74px; height: 74px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: none; opacity: .75; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active { border-color: var(--orange-500); opacity: 1; }
.pd-info h1 { margin-bottom: 12px; }
.pd-short { color: var(--ink-soft); margin-bottom: 18px; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.pd-price-label { font-weight: 600; color: var(--ink-soft); }
.pd-price { font-size: 28px; font-weight: 800; color: var(--orange-600); }
.pd-fob { font-size: 12px; color: var(--ink-soft); background: var(--bg-soft); padding: 3px 8px; border-radius: 6px; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pd-key-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); font-size: 14px; }
.pd-key-list li strong { color: var(--navy-800); margin-right: 6px; }
.pd-order-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 22px; }
.pd-qty-row, .pd-spec-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pd-qty-row label, .pd-spec-row label { font-weight: 700; color: var(--navy-800); min-width: 90px; font-size: 14px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty-stepper button { width: 38px; height: 40px; border: none; background: var(--navy-50); font-size: 18px; color: var(--navy-800); }
.qty-stepper button:hover { background: var(--orange-100); color: var(--orange-600); }
.qty-stepper input { width: 64px; text-align: center; border: none; outline: none; height: 40px; font-weight: 700; }
.pd-spec-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; }
.pd-btn-row { display: flex; gap: 12px; }
.pd-btn-row .btn { flex: 1; }

/* tabs */
.pd-tabs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tab-nav { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.tab-btn { padding: 14px 26px; border: none; background: none; font-weight: 700; color: var(--ink-soft); border-bottom: 3px solid transparent; font-size: 15px; }
.tab-btn.is-active { color: var(--orange-600); border-bottom-color: var(--orange-500); }
.tab-panel { display: none; padding: 26px; }
.tab-panel.is-active { display: block; }
.tab-panel p { color: var(--ink-soft); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.spec-table th { color: var(--navy-800); width: 220px; background: var(--bg-soft); }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-body h2 { margin-bottom: 14px; }
.about-body > p { color: var(--ink-soft); margin-bottom: 20px; }
.about-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-info-grid div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.about-info-grid strong { display: block; font-size: 12.5px; color: var(--navy-600); margin-bottom: 4px; }
.about-info-grid span { font-size: 13px; color: var(--ink); }

.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--navy-100); }
.tl-item { position: relative; padding: 0 0 26px 20px; }
.tl-item::before { content: ''; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--orange-500); }
.tl-year { display: inline-block; font-weight: 800; color: var(--orange-600); font-size: 18px; margin-bottom: 4px; }
.tl-item p { color: var(--ink-soft); }

.factory-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fg-item img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow-sm); }

.feature-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature-col h3 { margin-bottom: 10px; font-size: 16.5px; }
.feature-col p { color: var(--ink-soft); font-size: 14px; }
.cert-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Article / News ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article h1 { margin-bottom: 12px; }
.article-meta { color: var(--ink-soft); font-size: 13px; margin-bottom: 20px; display: flex; gap: 18px; }
.article p { color: var(--ink-soft); margin-bottom: 16px; }
.article-highlight { background: var(--orange-100); border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0; color: var(--navy-800); }
.case-hero, .news-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow-md); }
.case-hero img, .news-hero img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }

.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-item { display: grid; grid-template-columns: 320px 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .25s; }
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.news-body { padding: 20px 24px; }
.news-date { font-size: 12.5px; color: var(--orange-600); font-weight: 600; }
.news-body h3 { margin: 6px 0 8px; font-size: 18px; }
.news-body p { color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; }
.news-more { color: var(--navy-600); font-weight: 700; font-size: 13.5px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
.contact-info { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-info h2 { margin-bottom: 20px; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-list .ci-ico { font-size: 22px; }
.contact-list strong { color: var(--navy-800); font-size: 14px; }
.contact-list p { color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }
.contact-channels { display: flex; gap: 12px; margin: 20px 0; }
.resp-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange-500); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; }
.resp-box strong { color: var(--navy-800); }
.resp-box p { color: var(--ink-soft); font-size: 13.5px; margin-top: 4px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 260px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-form-wrap h2 { margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--navy-800); }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; background: #fff; transition: .2s; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.form-field small { color: var(--ink-soft); font-size: 12px; }
.inquiry-form .form-field.textarea { grid-column: 1 / -1; }
.inquiry-form button[type=submit] { margin-top: 18px; }

/* ---------- Checkout ---------- */
.co-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.co-card h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.co-item { display: flex; gap: 16px; }
.co-item-img { width: 120px; height: 120px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); flex-shrink: 0; }
.co-item-img img { width: 100%; height: 100%; object-fit: cover; }
.co-item-info { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.co-unit-price { color: var(--orange-600); font-weight: 800; }
.co-spec-input { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; }
.co-subtotal-row { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-weight: 700; }
.co-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); transition: .2s;
}
.pill small { display: block; font-size: 11px; font-weight: 400; }
.pill:hover { border-color: var(--orange-400); }
.pill.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.co-amounts { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px; }
.co-amount-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-soft); }
.co-amount-row strong { color: var(--navy-800); }
.co-amount-row.due-now { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.co-amount-row.due-now strong { color: var(--orange-600); font-size: 20px; }
.co-amount-row.due-later strong { color: var(--ink-soft); }

.co-side { position: sticky; top: 100px; }
.co-summary { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.co-summary h3 { color: #fff; margin-bottom: 16px; }
.co-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.18); font-size: 14px; color: #cfe0f5; }
.co-summary-row span:last-child { color: #fff; text-align: right; }
.co-summary-row.total { font-weight: 800; font-size: 16px; }
.co-summary-row.total span:last-child { color: var(--orange-400); font-size: 22px; }
.co-summary-row.due span:last-child { color: #7ce7a0; font-weight: 700; }
.co-summary .btn { margin-top: 18px; }
.co-summary .form-msg { color: #fff; }

/* ---------- Order success ---------- */
.order-success-wrap { max-width: 640px; }
.os-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); text-align: center; padding: 48px 32px; }
.os-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.os-card h1 { margin-bottom: 10px; }
.os-card > p { color: var(--ink-soft); margin-bottom: 26px; }
.os-detail { text-align: left; max-width: 420px; margin: 0 auto 26px; border-top: 1px solid var(--line); }
.os-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.os-row span { color: var(--ink-soft); }
.os-actions { display: flex; gap: 12px; justify-content: center; }

/* ---------- Legal ---------- */
.legal .article h2 { font-size: 19px; margin: 26px 0 10px; }
.legal .article p { color: var(--ink-soft); }

/* ---------- 404 ---------- */
.section-404 { padding: 90px 0; }
.os-icon.x { background: var(--navy-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #bcd3f2; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; padding: 54px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a:hover { color: var(--orange-400); }
.footer-about p { font-size: 13.5px; line-height: 1.7; }
.footer-slogan { color: var(--orange-400); font-weight: 700; margin-top: 14px; font-size: 14px !important; }
.footer-contact li { display: flex; gap: 8px; margin-bottom: 10px; font-size: 13.5px; }
.footer-contact .ico { flex-shrink: 0; }
.footer-contact a:hover { color: var(--orange-400); }
.footer-newsletter h5 { color: #fff; font-size: 14px; margin: 14px 0 10px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; outline: none; min-width: 0; }
.newsletter-form input::placeholder { color: #8aa4c8; }
.newsletter-msg { margin-top: 8px; font-size: 12.5px; min-height: 16px; }
.newsletter-msg.ok { color: #7ce7a0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a:hover { color: var(--orange-400); }

/* ---------- Floating widgets ---------- */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 90; }
.whatsapp-float a { width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: .2s; }
.whatsapp-float a:hover { transform: scale(1.08); }
.back-top {
  position: fixed; bottom: 92px; right: 28px; z-index: 90; width: 42px; height: 42px;
  border-radius: 10px; background: var(--navy-800); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; opacity: 0; visibility: hidden; transition: .3s; box-shadow: var(--shadow-md);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--orange-500); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 200;
  width: min(960px, calc(100% - 32px)); background: var(--navy-900); color: #e5eefb;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 20px;
}
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cookie-inner p { font-size: 13.5px; flex: 1; min-width: 260px; }
.cookie-inner a { color: var(--orange-400); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- RTL adjustments ---------- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .spec-table th, [dir="rtl"] .spec-table td { text-align: right; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .factory-points li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .factory-points li::before { left: auto; right: 0; }
[dir="rtl"] .timeline { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .timeline::before { left: auto; right: 9px; }
[dir="rtl"] .tl-item { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .tl-item::before { left: auto; right: -28px; }
[dir="rtl"] .resp-box { border-left: 1px solid var(--line); border-right: 4px solid var(--orange-500); }
[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
[dir="rtl"] .back-top { right: auto; left: 28px; }
[dir="rtl"] .hero-overlay { background: linear-gradient(-100deg, rgba(8,26,51,.88) 10%, rgba(8,26,51,.45) 60%, rgba(8,26,51,.15)); }
[dir="rtl"] .co-summary-row span:last-child { text-align: left; }
[dir="rtl"] .pd-key-list li strong { margin-right: 0; margin-left: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid, .prod-grid, .case-grid, .factory-gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .co-layout { grid-template-columns: 1fr; }
  .co-side { position: static; }
}
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 110px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px;
    box-shadow: var(--shadow-md); display: none; z-index: 90; border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: flex; }
  .topbar-left span:nth-child(3), .topbar-left span:nth-child(4) { display: none; }
  .pd-layout { grid-template-columns: 1fr; }
  .about-split, .factory-split { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-img img { aspect-ratio: 16/9; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .feature-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .cat-grid, .prod-grid, .case-grid, .factory-gallery, .adv-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .co-item { flex-direction: column; }
  .co-item-img { width: 100%; height: auto; aspect-ratio: 4/3; }
  .cookie-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
  .hero-arrow { display: none; }
  .topbar-left { display: none; }
  .topbar-inner { justify-content: center; }
  .pd-btn-row { flex-direction: column; }
}
