﻿/* ==========================================================================
   HomeAppliancePro - Global Stylesheet
   Design system: warm beige base / brown & red-brown accents
   Radius rule: buttons = pill, cards = 18px, inputs = 10px
   Z-scale: header 100 | mobile menu 90 | modal 200 | cookie 300 | floating 120 | toast 310
   ========================================================================== */

:root {
  --bg: #F7F1E4;
  --bg-alt: #EFE4D0;
  --surface: #FDFAF3;
  --surface-2: #F4EBD9;
  --ink: #2E2419;
  --ink-2: #5C4B3A;
  --ink-3: #8A7663;
  --brown: #5A4632;
  --brown-deep: #3C2E1F;
  --accent: #A34A2A;
  --accent-deep: #8A3C1F;
  --accent-soft: #F0DCCB;
  --line: rgba(92, 75, 58, 0.16);
  --line-strong: rgba(92, 75, 58, 0.28);
  --white: #FFFFFF;
  --ok: #3F6B4F;

  --r-card: 18px;
  --r-input: 10px;
  --r-pill: 999px;

  --shadow-1: 0 2px 10px rgba(60, 46, 31, 0.07);
  --shadow-2: 0 10px 30px rgba(60, 46, 31, 0.12);
  --shadow-3: 0 24px 60px rgba(60, 46, 31, 0.18);

  --font: "Outfit", "Noto Sans Arabic", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--accent-deep); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; color: var(--brown-deep); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-deep { background: var(--brown-deep); color: #F3EAD9; }
.bg-deep h2, .bg-deep h3 { color: #FFF8EC; }
.bg-deep p { color: rgba(243, 234, 217, 0.82); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Section headers ---------- */
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.sec-head .kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.sec-head.center .kicker::after { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.sec-head p.lead { color: var(--ink-2); font-size: 1.06rem; max-width: 60ch; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-pill);
  font-family: var(--font); font-size: 0.98rem; font-weight: 600; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; box-shadow: 0 8px 22px rgba(163, 74, 42, 0.35); }
.btn-dark { background: var(--brown-deep); color: #F7EFDF; }
.btn-dark:hover { background: var(--brown); color: #fff; }
.btn-outline { background: transparent; color: var(--brown-deep); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #FFF8EC; color: var(--brown-deep); }
.btn-light:hover { background: #fff; color: var(--accent); }
.btn-ghost-light { background: transparent; color: #FFF3E0; border-color: rgba(255, 243, 224, 0.45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn svg { flex: 0 0 auto; }
.btn-wa { background: #1F6B45; color: #fff; }
.btn-wa:hover { background: #185738; color: #fff; box-shadow: 0 8px 22px rgba(31, 107, 69, 0.3); }

/* ---------- Topbar / Header ---------- */
.topbar { background: var(--brown-deep); color: rgba(247, 239, 223, 0.88); font-size: 0.82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: rgba(247, 239, 223, 0.92); }
.topbar a:hover { color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 18px; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header { background: rgba(247, 241, 228, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brown-deep); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.01em; }
.logo:hover { color: var(--accent); }
.logo .logo-img { height: 38px; width: auto; display: block; }
.logo .logo-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--brown-deep));
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); font-weight: 500; font-size: 0.97rem;
  padding: 8px 14px; border-radius: 8px;
}
.nav a:hover { color: var(--accent); background: rgba(163, 74, 42, 0.07); }
.nav a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 248, 236, 0.6); border-radius: var(--r-pill);
  color: #FFF8EC; font-family: var(--font); font-size: 0.86rem; font-weight: 600;
  padding: 7px 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.16); }
.lang-btn .globe { opacity: 0.9; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-2); padding: 6px; z-index: 120;
  display: none; flex-direction: column;
}
.lang-menu.open { display: flex; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: 0; font-family: var(--font); font-size: 0.92rem;
  color: var(--ink); padding: 10px 14px; border-radius: 9px; cursor: pointer; text-align: left;
}
.lang-menu button:hover { background: var(--surface-2); color: var(--accent); }
.lang-menu button.active { color: var(--accent); font-weight: 600; }
.lang-menu button .lang-code { font-size: 0.74rem; font-weight: 700; color: var(--ink-3); letter-spacing: 0.06em; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: rgba(44, 36, 25, 0.5);
  display: none; align-items: flex-end; justify-content: stretch;
}
.mobile-nav.open { display: flex; }
.mobile-nav .sheet {
  background: var(--surface); width: 100%; max-height: 82vh; overflow: auto;
  border-radius: 22px 22px 0 0; padding: 26px 24px 34px;
}
.mobile-nav .sheet .nav { flex-direction: column; align-items: stretch; gap: 2px; }
.mobile-nav .sheet .nav a { padding: 13px 10px; font-size: 1.06rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.mobile-nav .sheet .nav a:last-child { border-bottom: 0; }
.mobile-nav .sheet .m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mobile-nav .sheet .m-actions .btn { width: 100%; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; overflow: hidden; background: var(--brown-deep); }
.hero-slides { position: relative; min-height: min(78vh, 680px); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease);
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28, 20, 12, 0.78) 0%, rgba(28, 20, 12, 0.45) 48%, rgba(28, 20, 12, 0.18) 100%);
}
.hero-content { position: relative; z-index: 3; max-width: 640px; padding: 96px 0 110px; color: #F7EFDF; }
.hero-content .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #E8B88A; margin-bottom: 18px;
}
.hero-content .hero-eyebrow::before { content: ""; width: 30px; height: 2px; background: #E8B88A; }
.hero-content h1 { color: #FFF9EF; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero-content .hero-sub { font-size: 1.12rem; color: rgba(247, 239, 223, 0.92); max-width: 46ch; margin-bottom: 30px; text-shadow: 0 1px 14px rgba(20, 14, 8, 0.45); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-nav { position: absolute; z-index: 5; bottom: 34px; left: 0; right: 0; }
.hero-nav .container { display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 34px; height: 4px; border-radius: 4px; border: 0; cursor: pointer;
  background: rgba(255, 249, 239, 0.35); transition: background 0.3s, width 0.3s;
}
.hero-dot.active { background: #E8B88A; width: 52px; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255, 249, 239, 0.5);
  background: rgba(28, 20, 12, 0.25); color: #FFF9EF; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
[dir="rtl"] .hero-arrow.prev { transform: scaleX(-1); }
[dir="rtl"] .hero-arrow.next { transform: scaleX(-1); }

/* ---------- Trust strip / cert wall ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-strip .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 34px; padding: 20px 24px; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; }
.trust-item svg { color: var(--accent); }
.trust-strip .trust-link { font-size: 0.86rem; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; margin-inline-start: 6px; }
.trust-strip .trust-link:hover { color: var(--brown-deep); }
.market-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.market-tag { border: 1px solid var(--line); background: var(--surface); color: var(--brown-deep); border-radius: 999px; padding: 8px 18px; font-size: 0.92rem; font-weight: 600; }

/* ---------- Advantage cards (numbered) ---------- */
.adv-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 22px; align-items: stretch; }
.adv-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 34px 30px; box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.adv-card.featured { background: var(--brown-deep); border-color: var(--brown-deep); color: #F3EAD9; }
.adv-card.featured h3 { color: #FFF8EC; }
.adv-card.featured p { color: rgba(243, 234, 217, 0.82); }
.adv-num { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px; }
.adv-card.featured .adv-num { color: #E8B88A; }
.adv-icon {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.adv-card.featured .adv-icon { background: rgba(232, 184, 138, 0.18); color: #E8B88A; }
.adv-card h3 { margin-bottom: 12px; font-size: 1.22rem; }
.adv-card p { font-size: 0.96rem; margin-bottom: 18px; }
.adv-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-chip { font-size: 0.8rem; font-weight: 600; color: var(--brown-deep); background: var(--surface-2); border-radius: var(--r-pill); padding: 5px 12px; }
.adv-card.featured .stat-chip { background: rgba(232, 184, 138, 0.16); color: #F3EAD9; }

/* ---------- Split / why us ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media { position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2); }
.split .media img { width: 100%; height: auto; object-fit: cover; }
.split .media .media-tag {
  position: absolute; left: 18px; bottom: 18px; background: rgba(60, 46, 31, 0.85); color: #F7EFDF;
  font-size: 0.82rem; font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.check-list { list-style: none; margin: 22px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 1rem; }
.check-list li svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.check-list li strong { color: var(--brown-deep); font-weight: 600; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--brown-deep); position: relative; overflow: hidden; }
.stats-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 85% 20%, rgba(163, 74, 42, 0.28), transparent 70%);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: #FFF8EC; line-height: 1; }
.stat-item .stat-num em { font-style: normal; color: #E8B88A; }
.stat-item .stat-label { margin-top: 10px; color: rgba(243, 234, 217, 0.78); font-size: 0.94rem; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-tile {
  position: relative; border-radius: var(--r-card); overflow: hidden; display: block;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.cat-tile img { width: 100%; aspect-ratio: 1/0.92; object-fit: cover; transition: transform 0.5s var(--ease); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .cat-body { padding: 14px 16px 16px; }
.cat-tile .cat-name { font-weight: 600; color: var(--brown-deep); font-size: 1.02rem; margin-bottom: 2px; }
.cat-tile .cat-count { font-size: 0.82rem; color: var(--ink-3); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.product-card .p-media { position: relative; background: #F1E8D6; }
.product-card .p-media-link {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
}
.product-card .p-media-link img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; transition: transform 0.5s var(--ease); }
.product-card .p-media-link:hover img { transform: scale(1.04); }
.product-card .p-media-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.product-card .p-badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
}
.product-card .p-cat { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.product-card .p-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .p-name { font-size: 1.06rem; font-weight: 600; color: var(--brown-deep); margin-bottom: 10px; line-height: 1.3; }
.product-card .p-specs { list-style: none; display: grid; gap: 5px; margin: 0 0 16px; }
.product-card .p-specs li { font-size: 0.84rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; }
.product-card .p-specs li span:first-child { color: var(--ink-3); }
.product-card .p-foot { margin-top: auto; display: flex; gap: 8px; }
.product-card .p-foot .btn { flex: 1; padding: 10px 12px; font-size: 0.9rem; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink-2);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600; cursor: pointer;
  padding: 8px 18px; border-radius: var(--r-pill); transition: all 0.25s var(--ease);
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-box { position: relative; }
.search-box input {
  padding: 10px 16px 10px 40px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong);
  background: var(--surface); font-family: var(--font); font-size: 0.92rem; color: var(--ink); width: 250px; max-width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163, 74, 42, 0.15); }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
[dir="rtl"] .search-box svg { left: auto; right: 13px; }
[dir="rtl"] .search-box input { padding-left: 16px; padding-right: 40px; }
.grid-empty { text-align: center; padding: 60px 20px; color: var(--ink-3); display: none; }
.grid-empty.show { display: block; }

/* ---------- Product modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(255, 252, 245, 0.94);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface); border-radius: 20px; max-width: 960px; width: 100%;
  max-height: 90vh; overflow: auto; box-shadow: var(--shadow-3); position: relative;
  border: 1px solid var(--line-strong);
  animation: modal-in 0.35s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brown-deep); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-1);
  transition: background 0.25s, transform 0.2s;
}
.modal-close:hover { background: var(--accent); transform: scale(1.05); }
.modal-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; padding: 30px; }
.modal-body .m-media img { width: 100%; border-radius: 14px; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.modal-body .m-cat { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.modal-body h3 { font-size: 1.5rem; margin: 6px 0 10px; }
.modal-body .m-desc { color: var(--ink-2); font-size: 0.95rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.spec-cell { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.spec-cell .k { font-size: 0.84rem; color: var(--brown-deep); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.spec-cell .v { font-size: 1.08rem; font-weight: 600; color: #1F1810; margin-top: 3px; }
.m-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 26px; box-shadow: var(--shadow-1); display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.testi-stars { color: #C9862E; letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 14px; }
.testi-text { font-size: 0.97rem; color: var(--ink-2); margin-bottom: 20px; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-ava {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.testi-who .name { font-weight: 600; color: var(--brown-deep); font-size: 0.95rem; line-height: 1.25; }
.testi-who .role { font-size: 0.82rem; color: var(--ink-3); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px; box-shadow: var(--shadow-2);
}
.form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card .form-note { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--brown-deep); }
.field .req { color: var(--accent); }
.field label .req { color: var(--accent); }
.field label.reqd::after { content: " *"; color: var(--accent); font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 0.95rem; color: var(--ink);
  background: #FFFDF7; border: 1.5px solid var(--line-strong); border-radius: var(--r-input);
  padding: 12px 14px; width: 100%; transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a7a63' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field.invalid select { border-color: #B3261E; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163, 74, 42, 0.15);
}
.field .hint { font-size: 0.8rem; color: var(--ink-3); }
.field .err { font-size: 0.82rem; color: #B3261E; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #B3261E; }
.field.invalid .err { display: block; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.form-success {
  display: none; margin-top: 18px; background: #E4EFE6; color: var(--ok);
  border: 1px solid rgba(63, 107, 79, 0.3); border-radius: 12px; padding: 14px 18px; font-size: 0.95rem;
}
.form-success.show { display: block; }
.form-success .wa-line { margin-top: 10px; }
.upload-note {
  display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2);
  border-radius: 12px; padding: 12px 14px; font-size: 0.86rem; color: var(--ink-2);
}
.upload-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent); }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-3); flex-wrap: wrap; padding: 16px 0; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.5; }
.crumbs .cur { color: var(--accent); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--brown-deep); position: relative; overflow: hidden; color: #F7EFDF;
  padding: 64px 0 60px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 320px at 88% 10%, rgba(163, 74, 42, 0.3), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #FFF9EF; margin-bottom: 10px; }
.page-hero p { color: rgba(247, 239, 223, 0.82); max-width: 60ch; font-size: 1.05rem; margin: 0; }

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; padding: 0 0 34px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--accent);
}
.tl-item .tl-year { font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.tl-item h4 { margin: 4px 0 6px; font-size: 1.08rem; }
.tl-item p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
[dir="rtl"] .timeline { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .timeline::before { left: auto; right: 7px; }
[dir="rtl"] .tl-item { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .tl-item::before { left: auto; right: -30px; }

/* ---------- QC steps ---------- */
.qc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px 24px; position: relative; overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.qc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.qc-card .qc-num {
  position: absolute; top: 10px; right: 16px; font-size: 3.4rem; font-weight: 700;
  color: rgba(163, 74, 42, 0.12); line-height: 1;
}
.qc-card .qc-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.qc-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.qc-card p { font-size: 0.92rem; color: var(--ink-2); margin: 0; }

/* ---------- Cert badges ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px 20px; text-align: center; box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cert-card .cert-mark {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--brown-deep); color: #F7EFDF; font-weight: 700; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: -0.02em;
}
.cert-card .cert-name { font-weight: 700; color: var(--brown-deep); font-size: 1rem; }
.cert-card .cert-scope { font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 46px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px 22px; box-shadow: var(--shadow-1); text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.contact-card .cc-icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { font-size: 0.9rem; color: var(--ink-2); margin: 0; word-break: break-word; }
.contact-card a { color: var(--ink-2); }
.contact-card a:hover { color: var(--accent); }
.map-wrap { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--brown-deep); color: #F7EFDF; text-align: center; padding: 72px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 280px at 15% 80%, rgba(163, 74, 42, 0.32), transparent 70%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #FFF8EC; }
.cta-band p { color: rgba(243, 234, 217, 0.85); max-width: 56ch; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--brown-deep); color: rgba(243, 234, 217, 0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: #FFF8EC; font-size: 1rem; margin-bottom: 18px; }
.footer a { color: rgba(243, 234, 217, 0.78); }
.footer a:hover { color: #fff; }
.footer .f-about p { font-size: 0.92rem; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul li { font-size: 0.92rem; }
.footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer .f-contact svg { flex: 0 0 auto; margin-top: 3px; color: #E8B88A; }
.footer .logo { color: #FFF8EC; margin-bottom: 16px; }
.footer .logo-img { height: 34px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(243, 234, 217, 0.14); padding: 18px 0; font-size: 0.84rem; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(243, 234, 217, 0.7); }
.footer .lang-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.footer .lang-row button {
  background: rgba(243, 234, 217, 0.1); border: 1px solid rgba(243, 234, 217, 0.2); color: rgba(243, 234, 217, 0.85);
  font-family: var(--font); font-size: 0.8rem; font-weight: 600; border-radius: var(--r-pill); padding: 5px 13px; cursor: pointer; transition: all 0.2s;
}
.footer .lang-row button:hover, .footer .lang-row button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Floating buttons ---------- */
.float-stack { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2); transition: transform 0.25s var(--ease), background 0.25s;
}
.float-btn:hover { transform: translateY(-3px) scale(1.04); }
.float-wa { background: #1F6B45; color: #fff; }
.float-wa:hover { background: #185738; }
.float-top { background: var(--surface); color: var(--brown-deep); display: none; }
.float-top.show { display: inline-flex; }
[dir="rtl"] .float-stack { right: auto; left: 20px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 300; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-3); padding: 22px 24px; display: none;
}
.cookie-banner.show { display: block; animation: modal-in 0.4s var(--ease); }
.cookie-banner h4 { font-size: 1.02rem; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.86rem; color: var(--ink-2); margin-bottom: 16px; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
[dir="rtl"] .cookie-banner { left: auto; right: 20px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 310; background: var(--brown-deep); color: #F7EFDF; font-size: 0.92rem;
  padding: 13px 22px; border-radius: var(--r-pill); box-shadow: var(--shadow-3);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: min(92vw, 560px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- OEM list (about) ---------- */
.oem-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oem-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px; box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.oem-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.oem-item .oem-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.oem-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.oem-item p { font-size: 0.88rem; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .oem-list { grid-template-columns: 1fr; } }

/* ---------- Image collage (about) ---------- */
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.collage .col { display: grid; gap: 18px; }
.collage .col img { aspect-ratio: 4 / 3; }
.collage figure { margin: 0; position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2); }
.collage img { width: 100%; height: auto; object-fit: cover; }
.collage figcaption {
  position: absolute; left: 14px; bottom: 14px; background: rgba(60, 46, 31, 0.85); color: #F7EFDF;
  font-size: 0.82rem; font-weight: 600; padding: 7px 13px; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
@media (max-width: 760px) { .collage { grid-template-columns: 1fr; } }

/* ---------- Product detail page ---------- */
.factory-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-soft); border-radius: 12px; padding: 12px 15px;
  font-size: 0.88rem; color: var(--brown-deep); margin-top: 16px;
}
.factory-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.video-wrap { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2); margin-top: 22px; background: var(--brown-deep); }
.video-wrap iframe, .video-wrap video { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.pd-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.pd-media { position: sticky; top: 100px; }
.pd-media img { width: 100%; border-radius: var(--r-card); box-shadow: var(--shadow-2); aspect-ratio: 1/0.92; object-fit: contain; background: #fff; }
.pd-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 8px 0 14px; }
.pd-info .spec-grid { grid-template-columns: 1fr 1fr; }
.pd-info .m-cat { font-size: 0.85rem; }
.pd-info .m-desc { font-size: 1.06rem; line-height: 1.7; }
@media (max-width: 900px) {
  .pd-layout { grid-template-columns: 1fr; gap: 26px; }
  .pd-media { position: static; }
  .pd-info .spec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pd-info .spec-grid { grid-template-columns: 1fr 1fr; }
  .pd-info .m-cta .btn { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .adv-grid .adv-card:first-child { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .qc-grid { grid-template-columns: 1fr 1fr; }
  .nav, .header-actions .btn, .topbar .tb-left .tb-hide-sm { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 8px; }
  .hero-slides { min-height: min(88vh, 620px); }
  .hero-content { padding: 90px 0 110px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; min-height: 34px; }
  .adv-grid { grid-template-columns: 1fr; }
  .adv-grid .adv-card:first-child { grid-column: auto; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card .p-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; }
  .product-card .p-media-link img { aspect-ratio: 16/10; object-fit: contain; background: #fff; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .qc-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .modal-body { grid-template-columns: 1fr; padding: 20px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn { width: 100%; padding: 13px 18px; font-size: 0.95rem; }
  .hero-content { padding: 70px 0 90px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide.active img { animation: none; }
}
