:root {
  --ink: #1a1410;
  --muted: #6b5e52;
  --cream: #f7f1e8;
  --sand: #ebe0d2;
  --rose: #9c4b5a;
  --rose-deep: #7a3543;
  --gold: #c4a574;
  --white: #fffdf9;
  --shadow: 0 18px 50px rgba(26, 20, 16, 0.12);
  --radius: 18px;
  --font-display: "Amiri", "Noto Naskh Arabic", serif;
  --font-body: "Cairo", "Noto Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(196,165,116,.18), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(156,75,90,.12), transparent 26%),
    linear-gradient(180deg, #fbf7f1 0%, #f3ebe1 45%, #efe5d8 100%);
  line-height: 1.8;
  direction: rtl;
}
body.lang-zh {
  direction: ltr;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font-body);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-inline-start: .4rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(156,75,90,.08);
  font-size: .9rem;
  font-weight: 700;
}
.lang-switch a { color: var(--muted); }
.lang-switch a.active,
.lang-switch a:hover { color: var(--rose); }
.lang-switch span { color: #c4b5a5; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,253,249,.86);
  border-bottom: 1px solid rgba(26,20,16,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img {
  width: 56px; height: 56px; object-fit: contain;
  border-radius: 10px; background: #111; box-shadow: var(--shadow);
  display: block; flex-shrink: 0;
}
.brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem; display: block; line-height: 1.2;
}
.brand span { color: var(--muted); font-size: .82rem; }
.nav-links { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }
.nav-links > a { color: var(--muted); font-weight: 600; }
.nav-links > a:hover,
.nav-links > a.active { color: var(--rose); }
.nav-links > a.active {
  position: relative;
}
.nav-links > a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.35rem;
  height: 2px; border-radius: 2px;
  background: var(--rose);
}
.nav-links .nav-contact {
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(156,75,90,.35);
  color: var(--rose);
}
.nav-links .nav-contact:hover,
.nav-links .nav-contact.active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}
.nav-links .nav-contact.active::after { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.3rem; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; transition: .25s ease;
}
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(26,20,16,.15);
}

.hero {
  position: relative; min-height: min(88vh, 760px);
  display: grid; align-items: end; overflow: hidden;
  border-radius: 0 0 36px 36px;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,12,10,.55) 0%, rgba(18,12,10,.28) 48%, rgba(18,12,10,.18) 100%),
    linear-gradient(180deg, rgba(18,12,10,.28), rgba(18,12,10,.78));
}
.hero-content {
  position: relative; z-index: 1; color: #fff;
  padding: 5rem 0 3.5rem;
}
.hero-kicker {
  display: inline-block; letter-spacing: .08em;
  color: var(--gold); margin-bottom: .8rem; font-weight: 700;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  margin: 0 0 .8rem; line-height: 1.25; max-width: 16ch;
}
.hero p { max-width: 38rem; color: rgba(255,255,255,.88); margin: 0 0 1.5rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 .4rem;
}
.section-head p { margin: 0; color: var(--muted); max-width: 40rem; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: -3rem; position: relative; z-index: 2;
}
.stat {
  background: var(--white); border-radius: var(--radius);
  padding: 1.3rem 1.1rem; box-shadow: var(--shadow);
  text-align: center;
}
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.7rem; color: var(--rose); margin-bottom: .2rem;
}
.stat span { color: var(--muted); font-size: .92rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.card {
  background: rgba(255,253,249,.78);
  border: 1px solid rgba(26,20,16,.05);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3ebe0;
  padding: 0;
  line-height: 0;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.card:hover .thumb img { transform: scale(1.03); }
.card .body { padding: 1.1rem 1.15rem 1.3rem; }
.card h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

.adv {
  padding: 1.3rem; border-radius: var(--radius);
  background: linear-gradient(160deg, #fffdf9, #f4e9dc);
  border: 1px solid rgba(196,165,116,.25);
}
.adv h3 { margin: 0 0 .4rem; color: var(--rose-deep); }
.adv p { margin: 0; color: var(--muted); }

.split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center;
}
.split-media {
  border-radius: 28px; overflow: hidden; min-height: 360px;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
}
.split-copy h2 { font-family: var(--font-display); font-size: 2.2rem; margin-top: 0; }
.split-copy p { color: var(--muted); white-space: pre-line; }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: #1a1410;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(26,20,16,.08);
  display: block;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(135deg, rgba(156,75,90,.1), rgba(196,165,116,.12));
  border-bottom: 1px solid rgba(26,20,16,.05);
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .4rem; }
.page-hero p { margin: 0; color: var(--muted); }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
  padding: .45rem 1rem; border-radius: 999px;
  background: rgba(255,253,249,.9); border: 1px solid rgba(26,20,16,.08);
  color: var(--muted); font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}
.chip.active, .chip:hover { background: var(--rose); color: #fff; border-color: var(--rose); }

/* Sticky category filters + mobile product browse UX */
.filters-sticky {
  position: sticky;
  top: 64px;
  z-index: 40;
  margin: 0 0 1.2rem;
  padding: .55rem 0;
  background: rgba(251, 247, 241, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,20,16,.06);
}
.filters-sticky .filters {
  margin-bottom: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .15rem .1rem .35rem;
  gap: .5rem;
}
.filters-sticky .filters::-webkit-scrollbar { display: none; }
.section-products { padding-top: 1.5rem; }
.page-hero-compact { padding: 2rem 0 1.2rem; }
.infinite-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 1.4rem 0 .2rem;
  color: var(--muted);
  font-size: .92rem;
  min-height: 2rem;
}
.infinite-loader[hidden] { display: none !important; }
.infinite-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(156,75,90,.2);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spinLoad .7s linear infinite;
}
@keyframes spinLoad {
  to { transform: rotate(360deg); }
}
#loadMoreSentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}
.back-top {
  position: fixed;
  right: 22px;
  bottom: 168px;
  z-index: 9985;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(26,20,16,.88);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(26,20,16,.25);
}
.back-top:hover { background: var(--rose); }
html[dir="rtl"] .back-top { right: auto; left: 22px; }
@media (max-width: 960px) {
  .filters-sticky { top: 58px; }
  .back-top { right: 16px; bottom: 150px; width: 44px; height: 44px; }
  html[dir="rtl"] .back-top { left: 16px; right: auto; }
}
@media (min-width: 961px) {
  .filters-sticky .filters { flex-wrap: wrap; overflow: visible; }
}

.product-detail {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start;
}
.product-detail .cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f3ebe0;
  padding: 0;
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.product-detail .cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.product-detail h1 { font-family: var(--font-display); margin-top: 0; }
.meta { color: var(--muted); margin-bottom: 1rem; }
.content-box {
  white-space: pre-line; background: rgba(255,253,249,.8);
  border-radius: var(--radius); padding: 1.2rem; border: 1px solid rgba(26,20,16,.05);
}

.form {
  display: grid; gap: 1rem; max-width: 720px;
  background: rgba(255,253,249,.9); padding: 1.5rem; border-radius: 22px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; margin-bottom: .35rem; font-weight: 700; }
.form input, .form textarea {
  width: 100%; border: 1px solid rgba(26,20,16,.12); border-radius: 12px;
  padding: .85rem 1rem; font: inherit; background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form-msg { margin-top: .5rem; font-weight: 700; }

.site-footer {
  margin-top: 3rem; padding: 2.5rem 0 1.5rem;
  background: #17110e; color: rgba(255,255,255,.82);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem;
}
.site-footer h3 { color: #fff; font-family: var(--font-display); margin-top: 0; }
.site-footer a:hover { color: var(--gold); }
.copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; font-size: .9rem; color: rgba(255,255,255,.55); }

.mobile-toggle { display: none; background: none; border: 0; font-size: 1.5rem; }

.about-lead { white-space: pre-line; line-height: 1.85; }
.about-points {
  margin: 1.2rem 0 0; padding: 0; list-style: none;
  display: grid; gap: .65rem;
}
.about-points li {
  position: relative; padding-inline-start: 1.1rem;
  color: rgba(26,20,16,.82); line-height: 1.55;
}
.about-points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent, #9c4b5a);
}
.about-cards .about-card,
.about-steps .about-step {
  background: rgba(255,253,249,.92); border-radius: 18px; padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow); min-height: 140px;
}
.about-card strong, .about-step strong {
  display: block; margin-bottom: .45rem; font-size: 1.05rem;
}
.about-card p, .about-step p {
  margin: 0; color: rgba(26,20,16,.72); line-height: 1.55; font-size: .95rem;
}
.about-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.8rem; height: 1.8rem; border-radius: 999px; margin-bottom: .7rem;
  background: #1a1410; color: #fff; font-weight: 700; font-size: .85rem;
}
.about-meta {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px;
  background: rgba(156,75,90,.06); line-height: 1.7; font-size: .95rem;
}
.about-gallery img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 16px;
}
.about-certs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.about-certs img {
  width: 100%; height: 220px; object-fit: contain; background: #fff;
  border-radius: 16px; padding: .75rem; box-shadow: var(--shadow);
}
@media (max-width: 960px) {
  .about-certs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .about-certs { grid-template-columns: 1fr; }
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@media (max-width: 960px) {
  .stats, .grid-3, .grid-4, .gallery, .split, .product-detail, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
  .nav-links {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 72px;
    background: #fff; border-radius: 16px; padding: 1rem; flex-direction: column;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .stats, .grid-3, .grid-4, .gallery, .split, .product-detail, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; border-radius: 0 0 24px 24px; }
}

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9990;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(18, 140, 126, .4);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-float:hover {
  background: #1ebe57;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 24px rgba(18, 140, 126, .45);
  color: #fff;
}
.wa-float svg { width: 32px; height: 32px; display: block; }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
}
html[dir="rtl"] .wa-float { right: auto; left: 22px; }
@media (max-width: 640px) {
  html[dir="rtl"] .wa-float { left: 16px; right: auto; }
}

/* Side WhatsApp nudge after idle browse */
.wa-nudge {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 9991;
  width: min(320px, calc(100vw - 2rem));
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem 1rem 1rem .95rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(18, 12, 10, .18);
  border: 1px solid rgba(37, 211, 102, .28);
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}
.wa-nudge.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  animation: waNudgePulse 1.6s ease .45s 1;
}
.wa-nudge-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(37, 211, 102, .35);
}
.wa-nudge-icon svg { width: 26px; height: 26px; display: block; }
.wa-nudge-body { flex: 1; min-width: 0; padding-right: 1.1rem; }
.wa-nudge-body strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: .3rem;
  color: var(--ink);
}
.wa-nudge-body p {
  margin: 0 0 .75rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.wa-nudge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  margin-bottom: .45rem;
  transition: background .2s ease, transform .2s ease;
}
.wa-nudge-btn:hover { background: #1ebe57; transform: translateY(-1px); }
.wa-nudge-later {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
  padding: .25rem;
}
.wa-nudge-later:hover { color: var(--ink); }
.wa-nudge-close {
  position: absolute;
  top: .45rem;
  right: .55rem;
  width: 28px; height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(26,20,16,.06);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.wa-nudge-close:hover { background: rgba(26,20,16,.12); color: var(--ink); }
@keyframes waNudgePulse {
  0%, 100% { box-shadow: 0 16px 40px rgba(18, 12, 10, .18); }
  50% { box-shadow: 0 16px 40px rgba(37, 211, 102, .28); }
}
html[dir="rtl"] .wa-nudge {
  right: auto;
  left: 22px;
  transform: translateX(-120%);
}
html[dir="rtl"] .wa-nudge.is-open { transform: translateX(0); }
html[dir="rtl"] .wa-nudge-body { padding-right: 0; padding-left: 1.1rem; }
html[dir="rtl"] .wa-nudge-close { right: auto; left: .55rem; }
@media (max-width: 640px) {
  .wa-nudge {
    right: 16px;
    bottom: 84px;
    width: min(300px, calc(100vw - 2rem));
  }
  html[dir="rtl"] .wa-nudge { left: 16px; right: auto; }
}

