/* ==========================================================================
   SWIFTSEN INTERNATIONAL — B2B Agricultural Machinery Parts
   Theme: Black / White + Gold accent · Fully responsive · RTL support
   ========================================================================== */

:root {
  --ink: #0d0d0d;
  --ink-2: #1a1a1a;
  --ink-3: #2b2b2b;
  --paper: #ffffff;
  --soft: #f7f6f3;
  --line: #e7e5df;
  --gray: #6d6a64;
  --gold: #c8a24b;
  --gold-d: #a8863a;
  --gold-l: #f0e2bd;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 13, 13, .08);
  --shadow-sm: 0 4px 14px rgba(13, 13, 13, .06);
  --font: "Segoe UI", "Helvetica Neue", Roboto, Arial, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.soft { background: var(--soft); }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-d); margin-bottom: 12px;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--gold); margin-inline-end: 10px; vertical-align: middle; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.section-head p { color: var(--gray); margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 6px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: all .25s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.82); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-left { display: flex; gap: 22px; flex-wrap: wrap; }
.tb-badge { color: var(--gold); font-weight: 700; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 900; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 8px; background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; letter-spacing: -.03em;
}
.logo-text b { display: block; font-size: 19px; font-weight: 800; letter-spacing: .04em; line-height: 1.1; }
.logo-text span { display: block; font-size: 10.5px; letter-spacing: .34em; color: var(--gold-d); font-weight: 700; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { font-weight: 600; font-size: 15px; color: var(--ink-3); position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .25s; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
[dir="rtl"] .main-nav a::after { left: auto; right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* language switcher */
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang-switch button {
  background: transparent; border: none; padding: 7px 12px; font-size: 12.5px; font-weight: 700;
  color: var(--gray); cursor: pointer; letter-spacing: .04em; transition: all .2s;
}
.lang-switch button + button { border-inline-start: 1px solid var(--line); }
.lang-switch button.active { background: var(--ink); color: var(--gold); }

.burger { display: none; background: none; border: none; cursor: pointer; width: 42px; height: 42px; position: relative; z-index: 960; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px auto; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero carousel ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-track { display: flex; transition: transform .7s cubic-bezier(.77, 0, .175, 1); }
.hero-slide {
  min-width: 100%; min-height: 560px; display: flex; align-items: center; position: relative;
  padding: 90px 0;
}
.hero-bg { position: absolute; inset: 0; background-color: #111; background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero-slide:nth-child(1) .hero-bg { background-image: url("../images/hero/hero1.png"); }
.hero-slide:nth-child(2) .hero-bg { background-image: url("../images/hero/hero2.png"); }
.hero-slide:nth-child(3) .hero-bg { background-image: url("../images/hero/hero3.png"); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 100% 100%, rgba(13,13,13,.95) 0%, transparent 55%), linear-gradient(115deg, rgba(17,17,17,.78) 0%, rgba(28,28,28,.55) 55%, rgba(38,34,26,.40) 100%); }
.hero-content { position: relative; max-width: 680px; }
.hero-content .eyebrow { color: var(--gold); }
.hero-content h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 18px; }
.hero-content h1 em { font-style: normal; color: var(--gold); }
.hero-content p { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 34px; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 26px; inset-inline-start: 0; width: 100%; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots button { width: 34px; height: 3px; border: none; background: rgba(255,255,255,.3); cursor: pointer; transition: .3s; }
.hero-dots button.active { background: var(--gold); }

/* ---------- Advantage cards ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.adv-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 30px; transition: .3s; position: relative; overflow: hidden; }
.adv-card::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
[dir="rtl"] .adv-card::before { transform-origin: right; }
.adv-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.adv-card:hover::before { transform: scaleX(1); }
.adv-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--soft); border: 1px solid var(--gold-l); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.adv-icon svg { width: 26px; height: 26px; stroke: var(--gold-d); }
.adv-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.adv-card p { color: var(--gray); font-size: 15px; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px;
  display: flex; flex-direction: column; gap: 12px; transition: .3s; position: relative;
}
.cat-card:hover { background: var(--ink); border-color: var(--ink); }
.cat-card:hover .cat-name, .cat-card:hover .cat-count, .cat-card:hover .cat-arrow { color: var(--gold); }
.cat-card:hover .cat-icon { background: rgba(200,162,75,.14); border-color: rgba(200,162,75,.4); }
.cat-icon { width: 52px; height: 52px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: .3s; }
.cat-icon svg { width: 26px; height: 26px; stroke: var(--ink); }
.cat-card:hover .cat-icon svg { stroke: var(--gold); }
.cat-name { font-size: 17px; font-weight: 800; transition: .3s; }
.cat-count { font-size: 13px; color: var(--gray); transition: .3s; }
.cat-arrow { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--gold-d); transition: .3s; }

/* ---------- Why us / stats ---------- */
.why-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.why-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.why-list li:last-child { border-bottom: none; }
.why-check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-top: 3px; }
.why-list b { display: block; font-size: 16.5px; }
.why-list span { color: var(--gray); font-size: 14.5px; }
.why-visual { background: var(--ink); border-radius: var(--radius); padding: 36px; color: #fff; position: relative; overflow: hidden; }
.why-visual::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(200,162,75,.12); top: -80px; inset-inline-end: -80px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; position: relative; }
.stat b { display: block; font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.stat span { font-size: 13.5px; color: rgba(255,255,255,.65); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.testi-stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; }
.testi-text { color: var(--ink-3); font-size: 15px; font-style: italic; flex: 1; }
.testi-who b { display: block; font-size: 15px; }
.testi-who span { font-size: 13px; color: var(--gray); }
.testi-flag { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 74px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 15% 100%, rgba(200,162,75,.18), transparent 65%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.cta-inner h2 em { font-style: normal; color: var(--gold); }
.cta-inner p { color: rgba(255,255,255,.65); margin-top: 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 74px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 320px at 85% 10%, rgba(200,162,75,.16), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.68); margin-top: 10px; max-width: 640px; }
.breadcrumb { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.breadcrumb a { color: var(--gold); }

/* ---------- Products toolbar ---------- */
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 34px; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 380px; }
.search-box input {
  width: 100%; padding: 12px 16px 12px 44px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--paper); outline: none; transition: border .2s;
}
[dir="rtl"] .search-box input { padding: 12px 44px 12px 16px; }
.search-box input:focus { border-color: var(--gold); }
.search-box svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--gray); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: 13.5px; font-weight: 700; color: var(--ink-3); cursor: pointer; transition: .2s;
}
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--gold); }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prod-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .3s; }
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.prod-thumb { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #161616, #26241e); display: flex; align-items: center; justify-content: center; }
.prod-thumb svg.p-icon { width: 84px; height: 84px; stroke: var(--gold); opacity: .92; }
.prod-thumb .cat-tag {
  position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(13,13,13,.72); color: var(--gold);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; backdrop-filter: blur(4px);
}
.prod-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prod-body h3 { font-size: 17px; font-weight: 800; line-height: 1.35; }
.spec-table { width: 100%; font-size: 13.5px; border-collapse: collapse; }
.spec-table td { padding: 6px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--gray); white-space: nowrap; padding-inline-end: 14px; width: 86px; }
.prod-body .btn { margin-top: auto; }
.no-results { text-align: center; color: var(--gray); padding: 70px 0; grid-column: 1 / -1; }

/* ---------- Product photos / price / stock / qty (v2) ---------- */
.prod-photo { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb[data-gallery] { cursor: zoom-in; }
.photo-count { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(13,13,13,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; backdrop-filter: blur(4px); }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { color: var(--gold-d); font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.price.muted { color: var(--gray); font-weight: 700; font-size: 13px; }
.stock-badge { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.stock-badge.ok { background: #e9f3e9; color: #1c6b2d; }
.stock-badge.low { background: #fdf3dd; color: #8a6410; }
.stock-badge.out { background: #f9e6e6; color: #a33333; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-label { font-size: 13px; font-weight: 700; color: var(--gray); }
.qty-stepper { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper); }
.qty-stepper button { width: 34px; border: none; background: var(--soft); font-size: 18px; font-weight: 700; cursor: pointer; color: var(--ink); transition: .15s; }
.qty-stepper button:hover { background: var(--ink); color: var(--gold); }
.qty-stepper input { width: 58px; border: none; text-align: center; font-weight: 700; font-size: 14px; appearance: textfield; -moz-appearance: textfield; min-height: 34px; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.card-actions .btn { flex: 1; }

/* quote list (RFQ cart) */
.quote-fab { position: fixed; bottom: 96px; inset-inline-end: 22px; z-index: 940; width: 54px; height: 54px; border-radius: 50%; background: var(--gold); border: none; cursor: pointer; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.quote-fab:hover { transform: scale(1.07); }
.quote-fab svg { width: 24px; height: 24px; stroke: #fff; }
.quote-fab .badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: var(--gold); font-size: 11px; font-weight: 800; display: none; align-items: center; justify-content: center; padding: 0 5px; }
.quote-fab .badge.show { display: flex; }
.qd-overlay { position: fixed; inset: 0; background: rgba(13,13,13,.42); z-index: 1240; display: none; }
.qd-overlay.open { display: block; }
.quote-drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(400px, 94vw); background: var(--paper); z-index: 1250; box-shadow: -14px 0 44px rgba(13,13,13,.18); transform: translateX(110%); transition: transform .32s ease; display: flex; flex-direction: column; }
[dir="rtl"] .quote-drawer { transform: translateX(-110%); box-shadow: 14px 0 44px rgba(13,13,13,.18); }
.quote-drawer.open { transform: translateX(0); }
.qd-head { background: var(--ink); color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.qd-head b { color: var(--gold); font-size: 16px; }
.qd-head button { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.qd-body { flex: 1; overflow: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.qd-empty { color: var(--gray); text-align: center; padding: 48px 12px; font-size: 14px; }
.qd-item { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.qd-line { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.qd-line b { font-size: 14px; line-height: 1.4; }
.qd-line .price { font-size: 13px; }
.qd-remove { background: none; border: none; color: #a33; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; }
.qd-item .qty-stepper { align-self: flex-end; }
.qd-foot { border-top: 1px solid var(--line); padding: 16px 22px; display: flex; gap: 10px; }
.qd-foot .btn { flex: 1; }

/* toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--gold); font-weight: 700; font-size: 14px; padding: 12px 24px; border-radius: 8px; z-index: 1400; opacity: 0; pointer-events: none; transition: .3s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* photo lightbox */
.lb-mask { position: fixed; inset: 0; background: rgba(8,8,8,.93); z-index: 1350; display: none; flex-direction: column; }
.lb-mask.open { display: flex; }
.lb-main { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 56px 70px 16px; min-height: 0; }
.lb-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: 12px; inset-inline-end: 16px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; z-index: 2; line-height: 1; }
.lb-count { position: absolute; top: 20px; inset-inline-start: 22px; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.lb-name { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 26px; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; transition: .2s; }
.lb-nav:hover { background: var(--gold); }
.lb-prev { inset-inline-start: 14px; }
.lb-next { inset-inline-end: 14px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 18px; }
.lb-thumbs img { flex: 0 0 auto; width: 66px; height: 50px; object-fit: cover; border-radius: 4px; opacity: .55; cursor: pointer; border: 2px solid transparent; transition: .2s; }
.lb-thumbs img:hover { opacity: .85; }
.lb-thumbs img.active { opacity: 1; border-color: var(--gold); }

/* admin photo manager */
.modal.wide { max-width: 880px; }
.pm-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pm-bar input[type="text"] { flex: 1; min-width: 220px; }
.pm-status { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--gray); margin-top: 8px; }
#pm-count { font-weight: 800; color: var(--ink); }
.pm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 12px; }
.pm-thumb { position: relative; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--line); aspect-ratio: 4 / 3; background: var(--soft); }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumb .cover-flag { position: absolute; top: 0; inset-inline-start: 0; background: var(--gold); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-end-end-radius: 6px; letter-spacing: .05em; }
.pm-thumb .pm-ops { position: absolute; bottom: 0; inset-inline: 0; display: flex; justify-content: space-between; background: rgba(13,13,13,.66); }
.pm-thumb .pm-ops button { background: none; border: none; color: #fff; cursor: pointer; padding: 5px 9px; font-size: 12px; }
.pm-thumb .pm-ops .star { color: var(--gold); font-weight: 800; }
.pm-thumb .pm-ops .del:hover { color: #ff8080; }
.pm-empty { grid-column: 1 / -1; color: var(--gray); font-size: 13px; text-align: center; padding: 28px 10px; border: 1.5px dashed var(--line); border-radius: 8px; }
.admin-table img.mini { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; display: block; background: var(--soft); }
.stock-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--soft); }
.stock-chip.out { background: #f9e6e6; color: #a33333; }
.stock-chip.low { background: #fdf3dd; color: #8a6410; }

/* ---------- About page ---------- */
.story-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.story-wrap p { color: var(--ink-3); margin-bottom: 16px; }
.story-visual { background: var(--ink); background-size: cover; background-position: center; border-radius: var(--radius); aspect-ratio: 4 / 3.2; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.story-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(17,17,17,.55), rgba(200,162,75,.18)); }

.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 34px 40px; }
[dir="rtl"] .tl-item { padding: 0 40px 34px 0; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--gold); }
.tl-year { font-size: 14px; font-weight: 800; color: var(--gold-d); letter-spacing: .06em; }
.tl-item b { display: block; font-size: 17px; margin: 2px 0 4px; }
.tl-item p { color: var(--gray); font-size: 14.5px; }

.factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.factory-cell { background: var(--ink); border-radius: var(--radius); aspect-ratio: 4 / 3; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.factory-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.factory-cell::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 100% 100%, rgba(0,0,0,.96) 0%, transparent 55%), linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.18) 100%); }
.factory-cell span { position: relative; color: #fff; font-weight: 700; font-size: 14px; z-index: 2; }

.qc-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: qc; }
.qc-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; position: relative; counter-increment: qc; }
.qc-step::before { content: counter(qc, decimal-leading-zero); display: block; font-size: 26px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.qc-step b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.qc-step span { font-size: 12.5px; color: var(--gray); display: block; }

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cert-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; text-align: center; background: var(--paper); transition: .3s; }
.cert-card:hover { box-shadow: var(--shadow-sm); border-color: var(--gold); }
.cert-card .cert-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--soft); border: 1px solid var(--gold-l); display: flex; align-items: center; justify-content: center; }
.cert-card .cert-icon svg { width: 26px; height: 26px; stroke: var(--gold-d); }
.cert-card b { display: block; font-size: 15.5px; }
.cert-card span { font-size: 13px; color: var(--gray); }

.oem-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 46px; align-items: center; position: relative; overflow: hidden; }
.oem-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 280px at 90% 0%, rgba(200,162,75,.16), transparent 60%); }
.oem-band h2 { font-size: clamp(23px, 2.8vw, 32px); font-weight: 800; }
.oem-band h2 em { font-style: normal; color: var(--gold); }
.oem-band p { color: rgba(255,255,255,.72); margin: 14px 0 22px; }
.oem-list li { display: flex; gap: 10px; padding: 7px 0; color: rgba(255,255,255,.85); font-size: 14.5px; }
.oem-list li::before { content: "◆"; color: var(--gold); font-size: 11px; margin-top: 5px; }
.promise-card { background: rgba(255,255,255,.05); border: 1px solid rgba(200,162,75,.35); border-radius: var(--radius); padding: 32px; text-align: center; position: relative; }
.promise-card .big { font-size: 52px; font-weight: 800; color: var(--gold); line-height: 1; }
.promise-card b { display: block; font-size: 17px; margin-top: 10px; }
.promise-card span { font-size: 13.5px; color: rgba(255,255,255,.6); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field label i { color: var(--gold-d); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--paper); outline: none; transition: border .2s; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field .hint { font-size: 12px; color: var(--gray); margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--gray); margin: 6px 0 18px; }
.form-success {
  display: none; background: #f2f8ef; border: 1px solid #cfe3c4; color: #2e5c22;
  border-radius: 8px; padding: 18px; margin-bottom: 20px; font-size: 14.5px;
}
.form-success.show { display: block; }

.info-cards { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.info-card .ic { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.info-card .ic svg { width: 20px; height: 20px; stroke: var(--gold); }
.info-card b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.info-card span, .info-card a { font-size: 14px; color: var(--gray); word-break: break-word; }
.info-card a:hover { color: var(--gold-d); }

.map-wrap { margin-top: 56px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(1) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer h4::after { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-top: 8px; }
.site-footer p { font-size: 14px; }
.footer-links li { padding: 5px 0; font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; }
.footer-contact svg { flex: none; width: 16px; height: 16px; stroke: var(--gold); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 18px; inset-inline: 18px; z-index: 1200; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(13,13,13,.22);
  padding: 20px 24px; display: none; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--ink-3); }
.cookie-banner p a { color: var(--gold-d); font-weight: 700; text-decoration: underline; }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 1100; width: 58px; height: 58px;
  border-radius: 50%; background: var(--gold); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 10px 26px rgba(200,162,75,.45); display: flex; align-items: center; justify-content: center;
  transition: transform .25s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 26px; height: 26px; stroke: #fff; }
.chat-panel {
  position: fixed; bottom: 96px; inset-inline-end: 24px; z-index: 1100; width: 330px; max-width: calc(100vw - 40px);
  background: var(--paper); border-radius: 14px; box-shadow: 0 24px 60px rgba(13,13,13,.28);
  display: none; overflow: hidden; border: 1px solid var(--line);
}
.chat-panel.open { display: block; }
.chat-head { background: var(--ink); color: #fff; padding: 18px 20px; }
.chat-head b { display: block; font-size: 15px; }
.chat-head span { font-size: 12.5px; color: var(--gold); }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { background: var(--soft); border-radius: 10px; padding: 14px; font-size: 13.5px; color: var(--ink-3); }
.chat-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font-weight: 700; font-size: 14px; transition: .2s; }
.chat-opt:hover { border-color: var(--gold); background: #fdfbf5; }
.chat-opt svg { width: 20px; height: 20px; stroke: var(--gold-d); flex: none; }
.chat-opt small { display: block; font-weight: 500; color: var(--gray); font-size: 12px; }

/* ---------- Admin ---------- */
.admin-layout { display: flex; min-height: 100vh; background: var(--soft); }
.admin-side { width: 240px; flex: none; background: var(--ink); color: rgba(255,255,255,.75); padding: 26px 0; display: flex; flex-direction: column; }
.admin-side .logo { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 18px; }
.admin-side nav { flex: 1; }
.admin-side nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; background: none; border: none;
  color: inherit; padding: 13px 26px; font-size: 14.5px; font-weight: 600; cursor: pointer; border-inline-start: 3px solid transparent; transition: .2s;
}
.admin-side nav button:hover { color: #fff; background: rgba(255,255,255,.04); }
.admin-side nav button.active { color: var(--gold); background: rgba(200,162,75,.08); border-inline-start-color: var(--gold); }
.admin-side .side-foot { padding: 18px 26px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.35); }
.admin-main { flex: 1; padding: 34px 38px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 16px; }
.admin-top h1 { font-size: 24px; font-weight: 800; }
.admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 26px; margin-bottom: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.stat-card b { display: block; font-size: 30px; font-weight: 800; color: var(--ink); }
.stat-card span { font-size: 13px; color: var(--gray); }
.stat-card.gold b { color: var(--gold-d); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: start; padding: 10px 12px; background: var(--soft); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--gray); border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:hover td { background: #fdfcf9; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.tag-new { background: #fdf1d8; color: #8a6a1c; }
.tag-done { background: #e8f2e4; color: #3f6d33; }
.tag-cat { background: var(--soft); color: var(--gray); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions button, .row-actions a { border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--ink-3); transition: .2s; }
.row-actions button:hover, .row-actions a:hover { border-color: var(--gold); color: var(--gold-d); }
.row-actions button.danger:hover { border-color: #c0392b; color: #c0392b; }

.modal-mask { position: fixed; inset: 0; background: rgba(13,13,13,.55); z-index: 1300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.open { display: flex; }
.modal { background: var(--paper); border-radius: 14px; width: 100%; max-width: 620px; max-height: 90vh; overflow: auto; padding: 32px; }
.modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 20px; }
.login-card { background: var(--paper); border-radius: 16px; padding: 44px 40px; width: 100%; max-width: 400px; }
.login-card .logo { justify-content: center; margin-bottom: 26px; }
.login-card h2 { text-align: center; font-size: 20px; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--gray); font-size: 13.5px; margin-bottom: 26px; }
.login-hint { margin-top: 18px; font-size: 12.5px; color: var(--gray); background: var(--soft); border-radius: 8px; padding: 12px 14px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 1000; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); cursor: pointer; opacity: 0; pointer-events: none;
  transition: .3s; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--gold); }
.to-top svg { width: 18px; height: 18px; stroke: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .adv-grid, .testi-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .qc-flow { grid-template-columns: repeat(3, 1fr); }
  .factory-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-wrap, .story-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .oem-band { grid-template-columns: 1fr; padding: 40px 30px; }
  .main-nav { display: none; }
  .burger { display: block; }
  .header-actions .btn { display: none; }
  .admin-layout { flex-direction: column; }
  .admin-side { width: 100%; flex-direction: row; align-items: center; padding: 10px 0; overflow-x: auto; }
  .admin-side .logo { padding: 0 18px; border: none; margin: 0; }
  .admin-side nav { display: flex; }
  .admin-side nav button { white-space: nowrap; border-inline-start: none; border-bottom: 3px solid transparent; padding: 10px 16px; }
  .admin-side nav button.active { border-bottom-color: var(--gold); }
  .admin-side .side-foot { display: none; }
  .admin-main { padding: 22px 18px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero-slide { min-height: 460px; padding: 60px 0; }
  .adv-grid, .testi-grid, .prod-grid, .cat-grid, .qc-flow, .factory-grid, .cert-grid, .footer-grid, .stats-grid, .form-row { grid-template-columns: 1fr; }
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
  .form-card { padding: 26px 20px; }
  .modal { padding: 24px 18px; }
  .cookie-banner { inset-inline: 10px; bottom: 10px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .map-wrap iframe { height: 300px; }
  .admin-table th:nth-child(7), .admin-table td:nth-child(7),
  .admin-table th:nth-child(8), .admin-table td:nth-child(8) { display: none; }
  .card-actions { flex-direction: column; }
  .lb-main { padding: 56px 14px 10px; }
  .lb-name { display: none; }
}

/* ---------- Print / misc ---------- */
::selection { background: var(--gold); color: #fff; }
.wa-green { color: #1faa53; }
