:root {
  --ink: #1f241f;
  --muted: #626b5c;
  --line: #d8d2c5;
  --paper: #fbf7ef;
  --white: #ffffff;

  /* الاسم بقي navy حتى لا نعدل كل الكلاسات، لكن اللون صار زيتياً داكناً */
  --navy: #233326;

  --teal: #597a4a;
  --gold: #b88945;
  --red: #9e3d32;
  --green: #2f6b4f;

  --shadow: 0 20px 45px rgba(35, 51, 38, 0.14);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  color: var(--ink);
  background: var(--paper);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(35, 51, 38, 0.96);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #f4d58d 45%, var(--teal));
  color: #081b2f;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-name {
  font-weight: 800;
  line-height: 1.25;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 999px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 72px);
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(29, 42, 31, 0.72), rgba(29, 42, 31, 0.88) 58%, rgba(29, 42, 31, 0.96)),
    var(--hero-image, url("assets/images/hero-products.jpg")) center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 760px;
  gap: 18px;
  padding-block: 86px 70px;
}

.eyebrow {
  color: #8a641f;
  font-weight: 700;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #f3d389;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(2.15rem, 5vw, 4.7rem);
  line-height: 1.18;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.section-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
  line-height: 1.35;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #101820;
  box-shadow: 0 14px 28px rgba(184, 138, 61, 0.26);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-outline {
  border-color: #9aaabd;
  background: #f3f7fa;
  color: var(--navy);
}

.btn-whatsapp {
  background: #1f8f5f;
  color: var(--white);
}

.section {
  padding-block: 76px;
}

.section-alt {
  background: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head > div {
  max-width: 780px;
}

.stats-band {
  position: relative;
  z-index: 2;
  margin-top: -38px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid #bdc8d4;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 52px rgba(18, 30, 44, 0.18);
}

.stat {
  padding: 24px;
  border-inline-start: 1px solid #cbd3dc;
  background: #ffffff;
}

.stat:first-child {
  border-inline-start: 0;
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.stat span {
  color: #3f4f60;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
}

.text-stack {
  display: grid;
  gap: 18px;
}

.feature-list,
.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.clean-list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--muted);
}

.feature-list li::before,
.clean-list li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.78em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame.tall {
  aspect-ratio: 4 / 5;
}

.media-frame.wide {
  aspect-ratio: 16 / 10;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 30, 44, 0.09);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 12px;
  object-fit: contain;
  background: #f4f6f8;
}

.catalog-card img {
  padding: 10px;
}

.product-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-card-actions.is-single {
  grid-template-columns: 1fr;
}

.product-card-actions .btn {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid #d9e3e2;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f2fbfa;
  color: #11635f;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-button {
  cursor: pointer;
  font-family: inherit;
  line-height: 1.35;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tag-button:hover,
.tag-button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-item {
  border-top: 3px solid var(--gold);
  padding: 20px 0 0;
}

.service-item p {
  color: var(--muted);
}

.page-hero {
  padding-block: 70px 54px;
  background:
    linear-gradient(90deg, rgba(29, 42, 31, 0.68), rgba(29, 42, 31, 0.94)),
    var(--page-image, url("assets/images/hero-products.jpg")) center / cover no-repeat;
  color: var(--white);
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.breadcrumb {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}

.catalog-filter-panel {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
  grid-template-areas:
    "head"
    "select";
  align-items: center;
  gap: 8px;
}

.catalog-filter-head {
  grid-area: head;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-filter-label {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.catalog-select {
  grid-area: select;
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
}

.catalog-tools {
  grid-area: tools;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid #d8e1ea;
  border-radius: var(--radius);
  padding: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(18, 30, 44, 0.06);
  scrollbar-color: #a9b7c7 transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.catalog-tools::-webkit-scrollbar {
  height: 8px;
}

.catalog-tools::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #a9b7c7;
}

.catalog-tools::-webkit-scrollbar-track {
  background: transparent;
}

.catalog-status {
  margin: 0 0 24px;
  color: #3f4f60;
  font-weight: 700;
}

.pill {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  background: #f8fafc;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pill:hover,
.pill.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.pill:hover {
  transform: translateY(-1px);
}

.catalog-wholesale {
  align-self: end;
  white-space: nowrap;
}

.product-card.is-hidden {
  display: none;
}

.catalog-empty {
  margin: 24px 0 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

.pagination[hidden] {
  display: none;
}

.pagination button,
.pagination-gap {
  min-width: 42px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
}

.pagination button {
  cursor: pointer;
}

.pagination button:hover:not(:disabled),
.pagination button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-gap {
  display: inline-grid;
  place-items: center;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: start;
}

.product-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 12px;
  object-fit: contain;
  background: #f4f6f8;
}

.dynamic-product-photo img {
  padding: 10px;
}

.detail-panel {
  display: grid;
  gap: 22px;
}

.detail-block {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.notice {
  border-inline-start: 4px solid var(--gold);
  padding: 14px 16px;
  background: #fff7e8;
  color: #6f5320;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(18, 30, 44, 0.06);
}

.contact-box strong {
  display: block;
  margin-bottom: 6px;
}

.footer {
  padding-block: 34px;
  background: #1d2a1f;
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer a {
  color: var(--white);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    inset-inline: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 10px;
    background: #0b2945;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 6px;
  }

  .stats-grid,
  .product-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .product-detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }
}

@media (max-width: 820px) {
  .catalog-toolbar {
    grid-template-columns: 1fr;
    justify-content: stretch;
    align-items: stretch;
  }

  .catalog-filter-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "select";
  }

  .catalog-tools {
    display: none;
  }

  .catalog-wholesale {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .brand {
    min-width: auto;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding-block: 70px 54px;
  }

  .section {
    padding-block: 56px;
  }

  .stats-grid,
  .product-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .stat:first-child {
    border-top: 0;
  }

  .hero-actions,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-card-actions {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}
