html[data-theme="dark"] {
  --bg: #020617;
  --bg-2: #0b1222;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, .18);
  --card: #0b1222;
  --shadow: 0 14px 40px rgba(0, 0, 0, .35);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, .28);
  --ring: 0 0 0 .25rem rgba(37, 99, 235, .25);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.container-max {
  max-width: var(--container-max);
}

/* Utilities */
.soft {
  background: color-mix(in srgb, var(--card) 96%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-2);
  --bs-btn-hover-border-color: var(--brand-2);
  --bs-btn-color: #fff;
  border-radius: 999px;
  padding-inline: 16px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  transition: var(--transition);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  color: var(--muted);
  font-size: .875rem;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

/* Topbar */
/* Topbar: NOT sticky / NOT fixed (scrolls away) */
.topbar {
  position: relative;
  /* بدل fixed */
  inset: auto;
  /* يلغي inset */
  height: var(--topbar-h);
  z-index: 1040;
  background: var(--brand);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}


.topbar .topbar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.topbar-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.ticker {
  min-width: 0;
}

.ticker .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .95rem;
  color: #ffffff;
  padding: 0 6px;
}

.ticker .fa-solid {
  color: var(--brand);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.brand-badge {
  width: 73px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* مهم عشان اللوجو ما يتقصّش */
}


.brand-sub {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}

/* Search */
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: var(--shadow-soft);
}

.searchbar i {
  color: var(--muted);
}

.searchbar input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: var(--text);
  font-weight: 600;
}

.searchbar input::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  font-weight: 600;
}

.icon-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 160px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.badge-dot {
  position: absolute;
  top: 29px;
  inset-inline-end: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .70rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 2px solid var(--bg);
}

/* Nav */
.nav-strip {
  border-top: 1px solid var(--border);

}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-linkx {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 700;
  transition: var(--transition);
}

.nav-linkx:hover {
  border-color: var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
}

/* Page spacing (account fixed topbar + sticky header) 
.page-pad {
  padding-top: calc(var(--header-h) + 18px);
}
*/
/* Hero */
.hero {
  padding-top: 18px;
  padding-bottom: 24px;
}

.hero-card {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(1000px 500px at 100% 0%,
      color-mix(in srgb, var(--brand) 25%, transparent),
      transparent 55%),
    radial-gradient(800px 500px at 0% 100%,
      color-mix(in srgb, var(--brand) 18%, transparent),
      transparent 55%),
    color-mix(in srgb, var(--card) 92%, transparent);

  box-shadow: var(--shadow);
}

.hero-slide {
  padding: 26px 26px;
  min-height: 320px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 8px 0;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: clamp(1.35rem, 2.1vw, 2.25rem);
}

.hero p {
  margin: 0 0 14px 0;
  color: var(--muted);
  font-weight: 600;
}

.hero-media {
  height: 240px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(29, 78, 216, .10)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 12px, rgba(255, 255, 255, 0) 12px 24px);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;

}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* أهم سطر */
  object-position: center;
  display: block;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .22), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .14), transparent 45%);
  transform: rotate(12deg);
}

.hero .hero-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hero .hero-controls .btn {
  font-weight: 800;
}

.hero .hero-kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Section headings */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-weight: 900;
  font-size: 1.25rem;
}

/* Categories */
.cat-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 94%, transparent);

  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  min-height: 74px;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cat-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.cat-card h6 {
  margin: 0;
  font-weight: 900;
}

.cat-card small {
  color: var(--muted);
  font-weight: 700;
}

/* Product card */
.prod-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.prod-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.prod-media {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(29, 78, 216, .10)),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .18), transparent 40%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  height: 240px;
}

.prod-tag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(2, 6, 23, .65);
  color: #fff;
  padding: .28rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

html[data-theme="dark"] .prod-tag {
  background: rgba(148, 163, 184, .14);
  border: 1px solid rgba(148, 163, 184, .25);
}

.prod-body {
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.prod-title {
  margin: 0;
  font-weight: 900;
  font-size: .98rem;
  line-height: 1.25;
}

.prod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
  font-size: .875rem;
}

.stars i {
  color: #f59e0b;
}

html[data-theme="dark"] .stars i {
  color: #fbbf24;
}

.prod-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  font-weight: 1000;
  font-size: 1.05rem;
}

.old {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 800;
  font-size: .9rem;
  margin-inline-start: 8px;
}

.prod-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}

.prod-actions .btn {
  border-radius: 999px;
  font-weight: 900;
}

/* Swiper nav */
.swiper-button-prev,
.swiper-button-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 14px;
  font-weight: 900;
}

.swiper-pagination-bullet {
  background: color-mix(in srgb, var(--muted) 60%, transparent);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--brand);
}

/* Trust / value props */
.vp {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
}

.vp i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--brand);
  flex: 0 0 auto;
}

.vp h6 {
  margin: 0 0 4px 0;
  font-weight: 900;
}

.vp p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  font-size: .9rem;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.foot-title {
  font-weight: 900;
  margin: 0 0 8px 0;
}

.foot-link {
  display: block;
  padding: .25rem 0;
  color: var(--muted);
  font-weight: 700;
}

.foot-link:hover {
  color: var(--text);
}

/* Offcanvas */
.offcanvas {
  background: var(--bg);
  color: var(--text);
}

.offcanvas .list-group-item {
  background: color-mix(in srgb, var(--card) 94%, transparent);
  color: var(--text);
  border-color: var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  font-weight: 850;
}

/* Responsive */
@media (max-width: 992px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "search search";
  }

  .brand {
    grid-area: brand;
  }

  .icon-actions {
    grid-area: actions;
  }

  .search-wrap {
    grid-area: search;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    height: 200px;
  }

  .icon-actions {
    min-width: auto;
  }

  .brand {
    min-width: auto;
  }
}

/* Mobile bottom dock */
.mobile-dock {
  position: fixed;
  inset-inline: 0;
  bottom: 10px;
  z-index: 1040;
  pointer-events: none;
}

.mobile-dock .dock-inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.mobile-dock .dock-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 0;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  transition: all var(--transition);
  min-height: 48px;
}

.mobile-dock .dock-btn i {
  font-size: 18px;
  line-height: 1;
  opacity: .9;
}

.mobile-dock .dock-btn small {
  font-size: 11px;
  line-height: 1;
}

.mobile-dock .dock-btn:hover,
.mobile-dock .dock-btn:focus {
  color: var(--text);
  background: var(--bg-2);
}

.mobile-dock .dock-btn.active {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

/* Give room for dock on mobile */
@media (max-width: 992px) {
  body {
    padding-bottom: 88px;
  }
}


.search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 2000;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.ss-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.ss-title i {
  color: var(--brand);
}

.ss-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ss-body {
  padding: 10px 10px 6px;
  max-height: 360px;
  overflow: auto;
}

.ss-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  color: var(--muted);
  font-weight: 800;
}

.ss-empty {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 8px;
  color: var(--muted);
}

.ss-empty i {
  font-size: 1.2rem;
  margin-top: 2px;
}

.ss-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ss-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  transition: var(--transition);
  cursor: pointer;
}

.ss-item:hover,
.ss-item.active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.ss-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.ss-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-main {
  min-width: 0;
  flex: 1;
}

.ss-name {
  margin: 0;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  font-size: .85rem;
}

.ss-pill {
  padding: .18rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
}

.ss-foot {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

/* Auth Offcanvas theming (works with your CSS variables) */
.auth-canvas {
  background: var(--bg);
  color: var(--text);
}

.auth-canvas .offcanvas-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}

.auth-card {
  background: var(--surface, var(--card, #fff));
  border: 1px solid var(--border);
  border-radius: var(--radius, 18px);
  box-shadow: var(--shadow-soft, 0 8px 18px rgba(2, 6, 23, .08));
}

.auth-tabs .nav-link {
  border-radius: 999px;
  padding: .55rem .9rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface, #fff) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  transition: var(--transition, 180ms ease);
}

.auth-tabs .nav-link:hover {
  transform: translateY(-1px);
}

.auth-tabs .nav-link.active {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface, #fff));
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
  box-shadow: var(--ring, 0 0 0 .25rem rgba(37, 99, 235, .18));
}

.auth-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
}

.auth-input {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
  color: var(--text);
  padding: .75rem .9rem;
  transition: var(--transition, 180ms ease);
}

.auth-input::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.auth-input:focus {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: var(--ring, 0 0 0 .25rem rgba(37, 99, 235, .18));
  background: color-mix(in srgb, var(--surface, #fff) 98%, transparent);
  color: var(--text);
}

.auth-btn {
  border-radius: 14px;
  padding: .8rem 1rem;
  font-weight: 700;
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  filter: brightness(0.95);
  color: #fff;
}

.auth-link {
  color: color-mix(in srgb, var(--brand) 90%, var(--text));
}

.auth-hint {
  font-size: .85rem;
  color: var(--muted);
}

.auth-alert {
  text-align: right;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  background: color-mix(in srgb, var(--brand) 10%, var(--surface, #fff));
  color: var(--text);
  border-radius: 16px;
}

html[dir="ltr"] .auth-alert {
  text-align: left;
}


.repass-canvas .offcanvas-body {
  padding: 12px;
}

.repass-canvas .repass {
  max-width: 520px;
  margin: 0 auto;
}

.repass-canvas .offcanvas-header {
  border-bottom: 1px solid var(--border);
}

.repass-canvas .card-body {
  border-radius: var(--radius, 18px);
}

.repass-canvas .auth-input.text-center {
  letter-spacing: .25em;
}


.avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;

  /* يعتمد على الثيم */
  background: linear-gradient(135deg,
      var(--brand),
      color-mix(in srgb, var(--brand) 70%, black));

  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;

  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.avatar-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* === Nav Strip Layout === */
.nav-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.nav-zone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-center {
  justify-content: center;
}

.nav-start {
  justify-content: flex-start;
}

.nav-end {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 14px;
}

/* RTL/LTR safe spacing */
.nav-linkx {
  white-space: nowrap;
}

/* === Categories Button (make it pop) === */
.btn-cats {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--brand) 10%, var(--bg));
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.btn-cats i {
  color: var(--brand);
}

.btn-cats:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--brand) 16%, var(--bg));
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
}

/* === Deals chip (eye-catching) === */
.chip-deals {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg,
      var(--brand),
      color-mix(in srgb, var(--brand) 70%, black));
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.chip-deals:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  filter: saturate(1.05);
}

/* === Center Pages pill (clean & centered) === */
.nav-center-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .52rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  transition: var(--transition);
}

.nav-center-link:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  box-shadow: var(--shadow-soft);
}

/* === Offers link as a badge CTA on the far side === */
.nav-offers {
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--bg));
}

.nav-offers i {
  color: var(--brand);
}

/* Dropdown alignment for RTL/LTR */
html[dir="rtl"] .dropdown-menu {
  text-align: right;
}

html[dir="ltr"] .dropdown-menu {
  text-align: left;
}

/* =========================
   CATS OFFCANVAS - ACCORDION (Parent/Child)
   Uses your vars: --brand --bg --text --border --shadow-soft --radius --transition
========================= */

.cats-canvas .offcanvas-header {
  border-bottom: 1px solid var(--border);
}

.cats-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  box-shadow: var(--shadow-soft);
}

.cats-badge i {
  color: var(--brand);
}

/* Accordion shell */
.cats-acc .accordion-item {
  background: transparent;
  border: 0;
  margin-bottom: 10px;
}

.cats-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* Remove default bootstrap arrow */
.cats-acc .accordion-button::after {
  display: none !important;
}

.cats-btn {
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 12px;
}

.cats-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cats-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cats-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  flex: 0 0 auto;
}

.cats-icon i {
  color: var(--brand);
}

.cats-name {
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cats-arrow {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
  flex: 0 0 auto;
}

/* Arrow rotate when expanded */
.cats-btn:not(.collapsed) .cats-arrow {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--bg));
}

.cats-btn:not(.collapsed) .cats-arrow i {
  transform: rotate(180deg);
  transition: var(--transition);
}

/* Body */
.cats-body {
  padding: 12px 12px 14px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.cats-body-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cats-hint {
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 65%, transparent);
  font-weight: 700;
}

.cats-viewall {
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cats-viewall:hover {
  text-decoration: underline;
}

/* RTL arrow for viewall */
html[dir="rtl"] .cats-viewall i {
  transform: rotate(180deg);
}

/* Subcategories grid */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.subcat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);

  /* يمنع تكسير الشكل */
  min-height: 52px;
}

.sub-title {
  flex: 1 1 auto;
  min-width: 0;
  /* أهم سطر لمنع دخول النص في الأيقونة */
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.15;

  /* لو الاسم طويل: سطرين فقط وباقي نقاط */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subcat-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  box-shadow: var(--shadow-soft);
}

.sub-ic {
  flex: 0 0 auto;
  /* الأيقونة لا تنكمش */
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: color-mix(in srgb, var(--brand) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
}

.sub-ic i {
  color: var(--brand);
}

.sub-ic img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.subcat-card span:last-child {
  font-weight: 800;
  font-size: 12.5px;
}

/* Mobile */
@media (max-width: 575.98px) {
  .cats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.empty-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.empty-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: color-mix(in srgb, var(--brand) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
}

.empty-icon i {
  font-size: 26px;
  color: var(--brand);
}

.empty-text {
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

.btn-empty {
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border));
  background: color-mix(in srgb, var(--brand) 12%, var(--bg));
  color: var(--text);
  transition: var(--transition);
}

.btn-empty:hover {
  background: color-mix(in srgb, var(--brand) 20%, var(--bg));
  box-shadow: var(--shadow-soft);
}

/* Direct category row (no subcats) */
.cats-direct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow: var(--shadow-soft);

  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  margin-bottom: 10px;
}

.cats-direct:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.cats-direct .cats-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.cats-go {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  background: var(--bg);
  transition: var(--transition);
}

.cats-direct:hover .cats-go {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--bg));
}

.cats-go i {
  color: var(--brand);
}

/* خلي Swiper يشتغل طبيعي */
.catSwiper .swiper-slide {
  height: auto;
  display: flex;
  /* يخلي الكارت يمسك نفسه */
}

.catSwiper .swiper-slide>* {
  width: 100%;
  /* الكارت يملى عرض السلايد */
}

/* لو الكارت عندك cat-card */
.catSwiper .cat-card {
  width: 100%;
  height: 100%;
}

.cat-sub-fake {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.cat-sub-fake .sub-link {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
  font-size: 68%;
}

.cat-sub-fake .sub-link:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cat-sub-fake .sep {
  opacity: .55;
}

.cat-sub-fake .view-all {
  font-weight: 600;
  color: var(--brand);
  padding: 2px 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  transition: 0.25s ease;
}

.cat-sub-fake .view-all:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

/* =========================
   Product Card (Enhanced)
========================= */
.prod-card {
  position: relative;
  border-radius: 18px;
  background: var(--card, #fff);
  border: 1px solid var(--border, rgba(15, 23, 42, .12));
  box-shadow: var(--shadow-soft, 0 8px 18px rgba(2, 6, 23, .08));
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow, 0 10px 30px rgba(2, 6, 23, .12));
  border-color: color-mix(in srgb, var(--brand, #2563eb) 20%, var(--border, rgba(15, 23, 42, .12)));
}

.prod-media {
  position: relative;
  height: clamp(220px, 28vw, 300px);
  background: #ffffff;
  overflow: hidden;
}

.prod-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(0.9);
  transition: transform .35s ease;
  background-repeat: no-repeat;
}

.prod-card:hover .prod-img {
  transform: scale(1.06);
}

/* subtle shine */
.prod-media::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .25) 50%, transparent 65%);
  transform: translateX(-35%) rotate(8deg);
  opacity: 0;
  transition: opacity .22s ease, transform .55s ease;
  pointer-events: none;
}

.prod-card:hover .prod-media::after {
  opacity: 1;
  transform: translateX(35%) rotate(8deg);
}

.prod-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 14px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--brand);
  color: #ffffff;
  border: 1px solid color-mix(in srgb, var(--brand, #2563eb) 18%, transparent);
}

/* Wishlist on image */
.wish-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .12);
  transition: .18s ease;
  color: var(--text, #0f172a);
}

.prod-side-actions {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  /* يمين في RTL */
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}

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

.wish-btn.is-active {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .28);
  color: #ef4444;
}

.wish-btn.is-active i {
  font-weight: 900;
  /* يخلي القلب solid عند تفعيل */
}

/* Body */
.prod-body {
  padding: 12px 14px 10px;
}

.prod-title {
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text, #0f172a);
}

.prod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted, #64748b);
  font-size: 13px;
}

.stars i {
  margin-inline-end: 2px;
}

.prod-price {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-weight: 800;
  font-size: 16px;
}

.old {
  margin-inline-start: 8px;
  color: var(--muted, #64748b);
  text-decoration: line-through;
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: color-mix(in srgb, var(--bg, #fff) 92%, transparent);
}

/* Actions */
.prod-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 14px;
}

.qty {
  display: flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg, #fff) 94%, transparent);
  height: 42px;
}

.qty-btn {
  width: 38px;
  height: 42px;
  border: 0;
  background: transparent;
  font-weight: 900;
  font-size: 16px;
  color: var(--text, #0f172a);
  transition: background .18s ease;
}

.qty-btn:hover {
  background: color-mix(in srgb, var(--brand, #2563eb) 10%, transparent);
}

.qty-input {
  width: 44px;
  height: 42px;
  border: 0;
  outline: 0;
  text-align: center;
  font-weight: 800;
  background: transparent;
  color: var(--text, #0f172a);
}

/* Make btn-brand match your system (if you already have it ignore) */
.btn-brand {
  background: var(--brand, #2563eb);
  color: #fff;
  border: 0;
  border-radius: 14px;
  height: 42px;
}

.btn-brand:hover {
  filter: brightness(.95);
}

/* container */
.meta-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* base neon tag */
.neon-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;

  height: 26px;
  /* صغير */
  padding: 0 10px;
  /* رشيق */
  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;

  text-decoration: none !important;
  user-select: none;
  white-space: nowrap;

  border: 1px solid transparent;
  background: rgba(0, 0, 0, .25);
  /* ثابت */
  backdrop-filter: blur(6px);

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.neon-tag i {
  font-size: 12px;
}

/* Neon Category (cyan) */
.neon-cat {
  color: #000000;
  /* ثابت */
}

/* Neon Brand (pink) */
.neon-brand {
  color: #000000;
  /* ثابت */
}

/* hover */
.neon-tag:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* active press */
.neon-tag:active {
  transform: translateY(0);
}

/* لو عندك دارك/لايت: الألوان ثابتة كده كده
   بس ممكن تقلل الخلفية في اللايت لو حبيت */
html[data-theme="light"] .neon-tag {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .neon-tag {
  background: rgba(255, 255, 255, 0.25);
}


.ref_wish {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wish-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.wish-item:hover {
  transform: translateY(-2px);
}

.wish-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.wish-info {
  flex: 1;
}

.wish-title {
  font-size: 14px;
  margin: 0;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wish-remove {
  background: transparent;
  border: none;
  color: #e63946;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.wish-remove:hover {
  transform: scale(1.15);
}



/* يثبت شكل الميتا ومكانه */
.prod-mini-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  direction: rtl;
  /* لو الكارت RTL */
}

/* كل عنصر ما يكسرش سطر */
.prod-mini-meta .mini-stock,
.prod-mini-meta .mini-sku {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-width: 0;
  opacity: .65;
}

/* الأيقونة صغيرة ومش بتزاحم */
.prod-mini-meta i {
  font-size: 10px;
  opacity: .55;
}

/* قصّ الـ SKU عشان ما يبوظش الكارت */
.prod-mini-meta .mini-sku span {
  max-width: 110px;
  /* عدّلها حسب عرض الكارت */
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

/* لو السعر فوق وبيضغط عليه، خلي السطر ده ينزل لوحده */
.product-card .prod-mini-meta {
  width: 100%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;

  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}

.status-badge i {
  font-size: 10px;
  opacity: .8;
}


.ref_cart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* list */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* item card */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  align-items: flex-start;
  position: relative;
}

.cart-img {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--bg-2);
}

.cart-info {
  flex: 1;
  min-width: 0;
}

.cart-title {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 6px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.cart-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* qty */
.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--card) 70%, transparent);
}

.cart-qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-qty-btn:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
}

.cart-qty-input {
  width: 40px;
  height: 34px;
  border: 0;
  background: transparent;
  text-align: center;
  outline: none;
  color: var(--text);
  font-weight: 700;
}

/* line total */
.cart-line-total {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cart-line-total b {
  color: var(--text);
  font-size: 14px;
}

/* remove */
.cart-remove {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  backdrop-filter: blur(6px);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.cart-remove:hover {
  color: #fff;
  background: color-mix(in srgb, var(--brand) 85%, transparent);
  border-color: transparent;
}

/* summary */
.cart-summary {
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
}

.sum-row.muted {
  color: var(--muted);
}

.sum-row.grand {
  padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--border) 70%, transparent);
  margin-top: 6px;
  font-size: 14px;
}

.sum-row.grand b {
  font-size: 15px;
}

/* =========================================
   HERO_2 base
========================================= */
.hero_2 {
  padding: 14px 0
}

.hero-card_2 {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* swiper sizing */
.hero_2 .swiper {
  width: 100%
}

.hero_2 .swiper-slide {
  height: auto
}

/* Slide wrapper */
.hero-slide_2 {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 22px;
  min-height: 280px;
  padding: 0;
}

@media (min-width: 992px) {
  .hero-slide_2 {
    padding: 28px;
    min-height: 340px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr .85fr;
    gap: 26px;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--border));
  background: color-mix(in srgb, var(--brand) 12%, var(--bg));
  color: color-mix(in srgb, var(--brand) 85%, var(--text));
}

.hero-title {
  margin: 10px 0 6px;
  font-weight: 900;
  line-height: 1.15;
  font-size: clamp(22px, 2.2vw + 10px, 40px);
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, .5vw + 12px, 16px);
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}

.hero-btn {
  border-radius: 14px
}

.hero-hint {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding-inline: 10px;
}

/* =========================================
   Slide 1: Art banner (no images)
========================================= */
.hero-art {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 520px at 10% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    radial-gradient(900px 420px at 100% 20%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, transparent), color-mix(in srgb, var(--bg) 86%, transparent));
}

/* Artwork area */
.hero-artwork {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(280px 240px at 30% 30%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 60%),
    radial-gradient(260px 260px at 70% 70%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%),
    color-mix(in srgb, var(--bg) 96%, transparent);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: .95;
  background: radial-gradient(circle at 30% 30%,
      color-mix(in srgb, var(--brand) 35%, white),
      color-mix(in srgb, var(--brand) 12%, transparent) 60%,
      transparent 72%);
}

.orb-1 {
  width: 220px;
  height: 220px;
  left: -40px;
  top: -50px
}

.orb-2 {
  width: 180px;
  height: 180px;
  right: -40px;
  top: 20px;
  opacity: .8
}

.orb-3 {
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -110px;
  opacity: .7
}

.lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 16px, color-mix(in srgb, var(--border) 60%, transparent) 16px 17px, transparent 17px 34px) 0 0 / 34px 34px,
    linear-gradient(0deg, transparent 0 16px, color-mix(in srgb, var(--border) 60%, transparent) 16px 17px, transparent 17px 34px) 0 0 / 34px 34px;
  opacity: .35;
  mask-image: radial-gradient(circle at 35% 40%, black 0 55%, transparent 70%);
}

.badge {
  position: absolute;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: saturate(1.2) blur(8px);
}

.badge strong {
  display: block;
  font-weight: 900
}

.badge span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px
}

.badge-a {
  left: 14px;
  bottom: 14px
}

.badge-b {
  right: 14px;
  top: 14px
}

/* =========================================
   Slide 2: Small logo + points (Tabby)
========================================= */
.hero-logo .hero-logoBox {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.logo-frame {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--brand) 22%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--bg));
}

.logo-frame img {
  max-height: 44px;
  max-width: 80%;
  object-fit: contain
}

.logo-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 576px) {
  .logo-points {
    grid-template-columns: 1fr 1fr 1fr
  }
}

.lp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  color: var(--text);
  font-weight: 800;
}

.lp i {
  color: color-mix(in srgb, var(--brand) 80%, var(--text))
}

/* =========================================
   Slide 3: Full image banner
========================================= */
.hero-image {
  position: relative;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

@media (max-width: 575px) {
  .hero-image img {
    height: 290px
  }
}

.hero-imageOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, transparent 0 52%, rgba(0, 0, 0, .55) 100%);
  color: #fff;
}

.hero-imageOverlay .hero-pill {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

.hero-imageOverlay .hero-sub {
  color: rgba(255, 255, 255, .86)
}

.hero-imageOverlay .hero-title {
  color: #fff
}

/* =========================================
   Swiper controls (scoped to hero_2)
========================================= */
.hero_2 .swiper-button-next,
.hero_2 .swiper-button-prev {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero_2 .swiper-button-next:after,
.hero_2 .swiper-button-prev:after {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.hero_2 .swiper-pagination-bullet {
  background: color-mix(in srgb, var(--brand) 60%, var(--muted));
  opacity: .35;
}

.hero_2 .swiper-pagination-bullet-active {
  opacity: 1
}

/* Optional: spacing for pagination */
.hero_2 .swiper-pagination {
  bottom: 10px !important
}


.hero-textOnly {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(900px 380px at 15% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
    radial-gradient(700px 320px at 85% 30%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 96%, transparent), color-mix(in srgb, var(--bg) 88%, transparent));
}

.hero2-inner {
  position: relative;
  padding: 22px 18px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  isolation: isolate;
}

@media (min-width: 992px) {
  .hero2-inner {
    padding: 34px 40px;
    min-height: 320px;
  }
}

/* Top row */
.hero2-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 6px;
}

.hero2-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .2px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--border));
  background: color-mix(in srgb, var(--brand) 10%, var(--bg));
  color: color-mix(in srgb, var(--brand) 85%, var(--text));
  position: relative;
  overflow: hidden;
}

/* subtle animated shimmer inside pill */
.hero2-pill::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, .35) 45%, transparent 55% 100%);
  transform: translateX(-120%);
  animation: hero2Shimmer 3.2s ease-in-out infinite;
  opacity: .55;
  pointer-events: none;
}

@keyframes hero2Shimmer {

  0%,
  60% {
    transform: translateX(-120%)
  }

  100% {
    transform: translateX(120%)
  }
}

.hero2-mini {
  font-weight: 800;
  color: var(--muted);
  padding-inline: 8px;
  position: relative;
}

.hero2-mini::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 70%, var(--text));
  margin-inline-end: 8px;
  transform: translateY(-1px);
  opacity: .9;
}

/* Title */
.hero2-title {
  margin: 0;
  line-height: 1.02;
  font-weight: 1000;
  letter-spacing: -.6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  font-size: clamp(26px, 2.6vw + 12px, 54px);
}

.hero2-title-stroke {
  position: relative;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--brand) 82%, var(--text));
  text-shadow: 0 10px 30px rgba(2, 6, 23, .10);
  filter: drop-shadow(0 12px 20px rgba(2, 6, 23, .08));
}

/* animated underline stroke */
.hero2-title-stroke::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  bottom: -8px;
  background:
    linear-gradient(90deg,
      transparent 0 12%,
      color-mix(in srgb, var(--brand) 55%, transparent) 18%,
      color-mix(in srgb, var(--brand) 85%, transparent) 50%,
      color-mix(in srgb, var(--brand) 55%, transparent) 82%,
      transparent 100%);
  border-radius: 999px;
  filter: blur(0.2px);
  transform: scaleX(.2);
  transform-origin: center;
  animation: hero2Underline 2.4s ease-in-out infinite;
  opacity: .9;
}

@keyframes hero2Underline {

  0%,
  100% {
    transform: scaleX(.22);
    opacity: .55
  }

  50% {
    transform: scaleX(1);
    opacity: 1
  }
}

.hero2-title-fill {
  color: var(--text);
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--text) 92%, transparent),
      color-mix(in srgb, var(--brand) 55%, var(--text)));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Sub */
.hero2-sub {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(13px, .55vw + 12px, 16px);
  line-height: 1.8;
}

/* CTA row */
.hero2-cta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero2-btn {
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 0 14px 30px rgba(2, 6, 23, .12);
}

/* KPI chips */
.hero2-kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.kpi {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: var(--shadow-soft);
}

.kpi b {
  font-weight: 1000;
  letter-spacing: .2px;
  color: color-mix(in srgb, var(--brand) 82%, var(--text));
}

.kpi em {
  font-style: normal;
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}

/* Decorative glow (no images) */
.hero2-glow {
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(420px 240px at 20% 30%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(360px 220px at 85% 65%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero2-sheen {
  position: absolute;
  top: -30%;
  left: -60%;
  width: 60%;
  height: 160%;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, .18) 48%, transparent 60% 100%);
  transform: rotate(10deg);
  animation: hero2Sheen 4.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

@keyframes hero2Sheen {

  0%,
  55% {
    left: -60%;
    opacity: .0
  }

  70% {
    opacity: .85
  }

  100% {
    left: 120%;
    opacity: 0
  }
}

/* Better tap target in webview */
.hero-textOnly:active {
  transform: translateY(1px);
}

/* ======================
   Hero CTA Icons Styling
====================== */

/* زر التسوق */
.hero2-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero2-btn-icon {
  font-size: 14px;
  transition: transform .3s ease;
}

.hero2-btn:hover .hero2-btn-icon {
  transform: translateX(4px);
}

/* KPI icons */
.kpi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: color-mix(in srgb, var(--brand) 14%, var(--bg));
  color: color-mix(in srgb, var(--brand) 80%, var(--text));
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  transition: all .25s ease;
}

.kpi:hover .kpi-icon {
  background: color-mix(in srgb, var(--brand) 24%, var(--bg));
  transform: translateY(-2px);
}

/* =========================================
   Slide 2: Tabby / Payment banner (Premium)
   ========================================= */

.hero-slide_2 {
  display: block;
  text-decoration: none;
  color: var(--text);
}

/* Banner wrapper */
.hero-pay {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(900px 380px at 85% 20%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%),
    radial-gradient(700px 320px at 20% 80%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 97%, transparent), color-mix(in srgb, var(--bg) 90%, transparent));
}

.hero-pay-inner {
  padding: 18px;
  min-height: 270px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  position: relative;
  isolation: isolate;
}

@media (min-width: 992px) {
  .hero-pay-inner {
    padding: 28px 34px;
    min-height: 320px;
    grid-template-columns: 420px 1fr;
    /* اللوجو جنب + النص */
    gap: 22px;
  }
}

/* Side card (logo) */
.hero-pay-side {
  order: 2;
  /* في الموبايل ينزل تحت */
}

@media (min-width: 992px) {
  .hero-pay-side {
    order: 0;
    /* في الديسكتوب يبقى جنب */
  }
}

.pay-brandCard {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.pay-brandCard::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(260px 200px at 20% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 65%),
    radial-gradient(260px 200px at 90% 80%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 65%);
  opacity: .9;
  pointer-events: none;
}

.pay-brandTop {
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  background: color-mix(in srgb, var(--brand) 10%, var(--bg));
  color: color-mix(in srgb, var(--brand) 85%, var(--text));
}

.pay-logoFrame {
  height: 86px;
  margin-top: 14px;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--brand) 22%, var(--border));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.pay-logoFrame img {
  max-height: 44px;
  max-width: 78%;
  object-fit: contain;
}

.pay-note {
  margin-top: 12px;
  font-weight: 800;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

/* Copy side */
.hero-pay-copy {
  position: relative;
}

.pay-title {
  margin: 10px 0 6px;
  line-height: 1.05;
  font-weight: 1000;
  letter-spacing: -.6px;
  font-size: clamp(26px, 2.4vw + 12px, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

/* Stroke word */
.pay-stroke {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--brand) 82%, var(--text));
  text-shadow: 0 10px 30px rgba(2, 6, 23, .08);
  position: relative;
}

/* Small animated underline for the stroke word */
.pay-stroke::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      transparent 0 15%,
      color-mix(in srgb, var(--brand) 55%, transparent) 25%,
      color-mix(in srgb, var(--brand) 90%, transparent) 50%,
      color-mix(in srgb, var(--brand) 55%, transparent) 75%,
      transparent 100%);
  transform: scaleX(.25);
  transform-origin: center;
  animation: payUnderline 2.6s ease-in-out infinite;
  opacity: .9;
}

@keyframes payUnderline {

  0%,
  100% {
    transform: scaleX(.25);
    opacity: .55
  }

  50% {
    transform: scaleX(1);
    opacity: 1
  }
}

/* Fill word with subtle gradient */
.pay-fill {
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--text) 92%, transparent),
      color-mix(in srgb, var(--brand) 55%, var(--text)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sub text */
.pay-sub {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(13px, .55vw + 12px, 16px);
  line-height: 1.85;
}

/* CTA */
.pay-cta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pay-btn {
  border-radius: 16px;
  padding: 10px 14px;
}

.pay-micro {
  font-weight: 800;
  color: var(--muted);
}

/* Decorative glow behind copy */
.pay-glow {
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(420px 260px at 70% 35%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(360px 220px at 30% 70%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* =========================
   Premium Theme Button
========================= */

.pay-btn-theme {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 18px;
  font-weight: 900;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  color: color-mix(in srgb, var(--brand) 85%, var(--text));
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand) 12%, var(--bg)),
      color-mix(in srgb, var(--brand) 6%, var(--bg)));

  box-shadow: 0 12px 28px rgba(2, 6, 23, .10);
  transition: all .3s ease;
}

/* Hover effect */
.pay-btn-theme:hover {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand) 18%, var(--bg)),
      color-mix(in srgb, var(--brand) 10%, var(--bg)));
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(2, 6, 23, .14);
}

/* Icon styling */
.pay-btn-icon {
  font-size: 14px;
  transition: transform .3s ease;
  color: color-mix(in srgb, var(--brand) 90%, var(--text));
}

/* subtle slide animation */
.pay-btn-theme:hover .pay-btn-icon {
  transform: translateX(-4px);
}

/* light animated sheen */
.pay-btn-theme::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg,
      transparent 0 35%,
      rgba(255, 255, 255, .35) 50%,
      transparent 65%);
  transform: skewX(-20deg);
  transition: all .6s ease;
}

.pay-btn-theme:hover::after {
  left: 130%;
}


.cat-banners {
  padding: 16px 0 6px;
}

.cat-banners-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 12px;
}

.cat-banners-head h3 {
  margin: 0;
  font-weight: 800;
}

.cat-banners-head .muted {
  margin: 6px 0 0;
  color: var(--muted);
}

.catBannerSwiper {
  position: relative;
  overflow: hidden;
  padding-bottom: 10px;
}

/* Card */
.cat-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);

  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .35);
  box-shadow: var(--shadow);
}

.cat-card__content {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  min-height: 210px;
}

/* Copy */
.cat-card__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  width: fit-content;
  font-size: 13px;
}

.cat-pill i {
  color: var(--brand);
}

.cat-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 20px;
}

/* Subs */
.cat-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.sub-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.sub-chip:hover {
  background: var(--bg-2);
  border-color: rgba(37, 99, 235, .35);
  transform: translateY(-1px);
}

/* Buttons */
.cat-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* Media */
.cat-card__media {
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

/* Swiper controls overlay-ish */
.catBannerSwiper .swiper-pagination {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: auto;
}

.catBannerSwiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: .55;
  background: #fff;
}

html[data-theme="light"] .catBannerSwiper .swiper-pagination-bullet {
  background: rgba(15, 23, 42, .35);
}

.catBannerSwiper .swiper-pagination-bullet-active {
  width: 26px;
  opacity: 1;
  background: var(--brand) !important;
}

.catBannerSwiper .swiper-button-prev,
.catBannerSwiper .swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .catBannerSwiper .swiper-button-prev,
html[data-theme="dark"] .catBannerSwiper .swiper-button-next {
  background: rgba(15, 23, 42, .35);
}

.catBannerSwiper .swiper-button-prev:after,
.catBannerSwiper .swiper-button-next:after {
  font-size: 16px;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 992px) {
  .cat-card__content {
    grid-template-columns: 1fr;
  }

  .cat-card__media {
    height: 160px;
  }
}

.top-category-banner {
  position: relative;
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--bg-2), var(--card));
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

/* لمعان خفيف متحرك */
.top-category-banner::before {
  content: "";
  position: absolute;
  inset: -60% -40%;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, .18), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(255, 77, 0, .12), transparent 55%);
  filter: blur(18px);
  transform: rotate(12deg);
  z-index: 0;
  animation: floatGlow 7s ease-in-out infinite;
}

@keyframes floatGlow {

  0%,
  100% {
    transform: translateY(0) rotate(12deg);
    opacity: .85;
  }

  50% {
    transform: translateY(-10px) rotate(10deg);
    opacity: 1;
  }
}

.top-category-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 18px;
  padding: 18px 18px;
  min-height: 180px;
}

/* Content */
.top-category-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 0, .25);
  background: rgba(255, 77, 0, .10);
  color: #ff4d00;
  font-size: 13px;
  font-weight: 800;
  width: fit-content;
}

.top-category-title {
  margin: 0;
  font-weight: 950;
  font-size: 24px;
  letter-spacing: .2px;
}

.top-category-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 52ch;
}

/* زرار: مايبقاش full width */
.top-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
  transform: translateY(0);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

/* أنيميشن للزرار */
.top-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
  filter: brightness(1.03);
}



/* Hover على البنر كله */
.top-category-banner:hover {
  box-shadow: var(--shadow);
}



/* لمعة سريعة على hover */
.top-category-banner::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: rotate(18deg);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition);
}

.top-category-banner:hover::after {
  opacity: 1;
  animation: shine 900ms ease;
}

@keyframes shine {
  from {
    left: -60%;
  }

  to {
    left: 120%;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .top-category-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 16px;
    min-height: unset;
  }

  .top-category-desc {
    margin-inline: auto;
  }

  .top-cta {
    margin-inline: auto;
  }

  .top-category-media {
    height: 190px;
  }

  /* على الموبايل خليها أكبر */
}

/* العمود بتاع الميديا: thumb + subcards جنب بعض */
.top-category-media {
  display: grid;
  grid-template-columns: 96px 1fr;
  /* الصورة صغيرة ثابتة */
  gap: 12px;
  align-items: center;
}

/* صورة الفئة الرئيسية: صغيرة وثابتة */
.cat-thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  display: grid;
  place-items: center;
}

.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* بدون قص */
  padding: 10px;
  /* يخليها شيك حتى لو الصورة مختلفة */
  transform: scale(1);
  transition: transform 400ms ease;
}

.top-category-banner:hover .cat-thumb img {
  transform: scale(1.06);
}

/* شبكة الفئات الفرعية */
.subcats-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* كارت فرعي صغير بصورة + اسم */
.sub-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.sub-mini img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  /* هنا قص بسيط عادي لأنها thumbnail */
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.sub-mini span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-mini:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .35);
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
}

/* يخلي البنر رفيع أكتر (لو محتاجه) */
.top-category-inner {
  min-height: 150px !important;
  /* كان 180، قلّلناه */
}

/* موبايل */
@media (max-width: 992px) {
  .top-category-media {
    grid-template-columns: 80px 1fr;
  }

  .cat-thumb {
    width: 80px;
    height: 80px;
  }

  .sub-mini {
    padding: 9px;
  }

  .sub-mini img {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 768px) {
  .top-category-media {
    grid-template-columns: 1fr;
    /* تحت بعض على الموبايل */
  }

  .cat-thumb {
    margin-inline: auto;
  }

  .subcats-mini {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ===== Blogs Section ===== */
.sec-blogs {
  padding: 26px 0 10px;
}

.sec-blogs .sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sec-blogs .sec-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
}

.sec-blogs .sec-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.sec-blogs .sec-more {
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* Swiper container spacing */
.blogs-swiper {
  padding: 6px 2px 8px;
}

.blog-card {
  display: block;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, .25);
  text-decoration: none;
}

.blog-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-2);
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-tag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  backdrop-filter: blur(6px);
}

html[data-theme="dark"] .blog-tag {
  background: rgba(255, 255, 255, .14);
}

.blog-body {
  padding: 14px 14px 12px;
}

.blog-title {
  margin: 0;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text);
}

.blog-excerpt {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6;
  min-height: 44px;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: .85rem;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-item i {
  opacity: .85;
}

.meta-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
}

html[dir="rtl"] .meta-cta i {
  transform: rotate(180deg);
}

/* Controls */
.blogs-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .25);
  box-shadow: var(--shadow);
}

.blogs-pagination {
  width: auto !important;
}

.blogs-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  opacity: .35;
}

.blogs-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 576px) {
  .sec-blogs .sec-sub {
    display: none;
  }
}

.contact-info i {
  width: 18px;
  text-align: center;
  opacity: .85;
}

.social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  transition: all var(--transition);
  box-shadow: var(--shadow-soft);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .25);
  box-shadow: var(--shadow);
  color: var(--brand);
}

.foot-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot-link i {
  font-size: 14px;
  opacity: .85;
}

.newsletter-wrapper {
  display: flex;
  gap: 10px;
}

.newsletter-wrapper .form-control {
  flex: 1;
  border-radius: 999px;
  padding-inline: 16px;
}

.newsletter-btn {
  border-radius: 999px;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Mobile */
@media (max-width: 576px) {
  .newsletter-wrapper {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
    justify-content: center;
  }
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 28px 0;

}

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

.footer-bottom .copy-text {
  font-size: .85rem;
  color: var(--muted);
}

.footer-bottom .dev-text {
  font-size: .85rem;
  color: var(--muted);
}

.footer-bottom .dev-text strong {
  color: #adb5bd;
  font-weight: 800;
}

/* موبايل */
@media (max-width:576px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* Offcanvas styling */
.main-canvas .offcanvas-header {
  border-bottom: 1px solid var(--border);
}

.main-canvas .offcanvas-body {
  padding-top: 14px;
}

.canvas-actions {
  display: flex;
  gap: 10px;
}

.canvas-links {
  border: 0;
}

.canvas-links .list-group-item {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
}

.canvas-links .list-group-item i {
  opacity: .85;
}

.canvas-links .list-group-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, .25);
}

.canvas-links .list-group-item.is-highlight {
  border-color: rgba(37, 99, 235, .30);
  box-shadow: var(--shadow);
}

.canvas-dropdown .list-group-item {
  margin-bottom: 0;
}

.canvas-sublist {
  padding: 10px 8px 2px;
  border: 1px solid var(--border);
  border-top: 0;
  background: var(--bg-2);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.canvas-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}

.canvas-subitem i {
  font-size: .85rem;
  opacity: .7;
}

.canvas-subitem:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(37, 99, 235, .25);
}


.color-list {
  display: flex;
  flex-direction: column;
  /* تحت بعض */
  gap: 10px;
  margin-top: 10px;
}

.color-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.color-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  /* Bootstrap5 + modern browsers */
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: inline-block;
}

.color-code {
  font-weight: 800;
  color: var(--text);
  opacity: .9;
  font-size: .9rem;
}


.spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.spec-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.spec-text {
  font-weight: 800;
  color: var(--text);
  opacity: .9;
  font-size: .92rem;
}

/* ===== Base spacing ===== */
.page-pad {
  padding: 18px 0 28px;
}

/* ===== Breadcrumb ===== */
.crumb-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
}

.crumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700
}

.crumb-link i {
  opacity: .85
}

.crumb-sep {
  opacity: .35;
  font-size: .9rem
}

html[dir="ltr"] .crumb-sep {
  transform: rotate(180deg)
}

.crumb-current {
  color: var(--muted);
  font-weight: 700
}

.crumb-actions {
  display: flex;
  align-items: center;
  gap: 10px
}

/* ===== Layout ===== */
.cat-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}

@media(max-width:991.98px) {
  .cat-layout {
    grid-template-columns: 1fr
  }
}

/* ===== Cards ===== */
.cardx {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.cardx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
}

.btn-ghost:hover {
  background: var(--bg-2)
}

/* ===== Filter blocks ===== */
.fx {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.fx:last-child {
  border-bottom: 0;
}

.fx-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 10px;
}

.fx-title i {
  color: var(--brand);
  opacity: .9;
}

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

.chip {
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  transition: var(--transition);
}

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

.chip.active {
  background: rgba(37, 99, 235, .12);
  border-color: rgba(37, 99, 235, .25);
  color: var(--brand);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.range-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none
}

.color-item input {
  display: none
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .1)
}

.color-code {
  font-weight: 900
}

.spec-list {
  display: grid;
  gap: 10px
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none
}

.spec-item input {
  display: none
}

.spec-text {
  font-weight: 800
}

/* ===== Result bar ===== */
.resultbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}

.result-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
}

.pill i {
  color: var(--brand);
  opacity: .9
}

/* ===== Offcanvas ===== */
.off-filters .offcanvas-header {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.off-filters .offcanvas-body {
  background: var(--bg);
}



/* ===== Buttons ===== */
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, .02);
  border-radius: 999px;
  padding: 10px 14px;
}

.btn-brand:hover {
  filter: brightness(.95);
  color: #fff;
}


/* ===== Selected state for filter pills ===== */
.color-item,
.spec-item {
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

/* دعم حديث: لو الـ input اتحدد، نلوّن الـ label كله */
.color-item:has(input:checked),
.spec-item:has(input:checked) {
  border-color: rgba(37, 99, 235, .55);
  background: rgba(37, 99, 235, .10);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
  transform: translateY(-1px);
}

/* نقطة اللون نفسها تبان مختارة */
.color-item:has(input:checked) .color-dot {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .8) inset;
}

/* لو عنصر "الكل" أو المقاس نص */
.color-item:has(input:checked) .color-code,
.spec-item:has(input:checked) .spec-text {
  color: var(--brand);
}

/* علامة صح صغيرة (اختيار) */
.color-item:has(input:checked)::after,
.spec-item:has(input:checked)::after {
  content: "✓";
  font-weight: 900;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  position: absolute;
  top: -8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

html[dir="rtl"] .color-item:has(input:checked)::after,
html[dir="rtl"] .spec-item:has(input:checked)::after {
  left: -8px;
}

html[dir="ltr"] .color-item:has(input:checked)::after,
html[dir="ltr"] .spec-item:has(input:checked)::after {
  right: -8px;
}

/* لمسة Hover لطيفة */
.color-item:hover,
.spec-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
}

.no-results-card {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  animation: fadeIn .25s ease;
}

.no-results-card i {
  font-size: 38px;
  margin-bottom: 12px;
  color: var(--brand);
  opacity: .9;
}

.no-results-card h6 {
  font-weight: 900;
  margin-bottom: 6px;
}

.no-results-card p {
  color: var(--muted);
  margin-bottom: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-soft);
  padding: 34px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, .10), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(34, 197, 94, .08), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(245, 158, 11, .08), transparent 45%);
  pointer-events: none;
}

.empty-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, .10);
  border: 1px solid rgba(37, 99, 235, .18);
  color: var(--brand);
  position: relative;
  z-index: 1;
}

.empty-ico i {
  font-size: 28px;
}

.empty-title {
  font-weight: 900;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.empty-sub {
  margin: 0 auto 16px;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.empty-actions .btn {
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.empty-hint {
  margin-top: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.empty-hint .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .5);
  display: inline-block;
}

@media (max-width: 575.98px) {
  .empty-state {
    padding: 26px 14px;
  }

  .empty-actions {
    flex-direction: column;
  }

  .empty-actions .btn {
    width: 100%;
  }
}

.empty-state-wrapper {
  grid-column: 1 / -1;
  /* يمسك العمودين */
  display: flex;
  justify-content: center;
}

.empty-state {
  max-width: 620px;
  width: 100%;
}

@media (max-width: 991.98px) {
  span[data-en="Product details"] {
    font-size: 10px;
  }
}



.btn-loading,
.cmp-remove.btn-loading {
  pointer-events: none;
  opacity: .75;
}

.spin {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
  vertical-align: -3px;
}

.spin.sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.spin.lg {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* نفس CSS بتاعك (اختصارًا) */
.page-pad {
  padding: 18px 0 28px
}

.crumb-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px
}

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow-soft)
}

.crumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 400
}

.crumb-sep {
  opacity: .35;
  font-size: .9rem
}

html[dir="ltr"] .crumb-sep {
  transform: rotate(180deg)
}

.crumb-current {
  color: var(--muted);
  font-weight: 400
}

.resultbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow-soft)
}

.result-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900
}

.pill i {
  color: var(--brand);
  opacity: .9
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px
}

.btn-ghost:hover {
  background: var(--bg-2)
}

.btn-outline-brand {
  background: transparent;
  border: 1px solid rgba(37, 99, 235, .35);
  color: var(--brand);
  border-radius: 999px;
  padding: 10px 14px
}

.btn-outline-brand:hover {
  background: rgba(37, 99, 235, .10)
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, .02);
  border-radius: 999px;
  padding: 10px 14px
}

.btn-brand:hover {
  filter: brightness(.95);
  color: #fff
}

.compare-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden
}

.compare-table {
  display: block;
  overflow: auto
}

.cmp-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr)
}

.cmp-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--card)
}

.cmp-cell {
  border-bottom: 1px solid var(--border);
  border-inline-end: 1px solid var(--border);
  padding: 12px
}

.cmp-cell:last-child {
  border-inline-end: 0
}

.cmp-key {
  position: sticky;
  left: 0;
  z-index: 6;
  background: var(--card);
  min-width: 220px;
  font-weight: 900;
  color: var(--muted)
}

.cmp-prod {
  position: relative
}

.cmp-remove {
  position: absolute;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 3
}

html[dir="rtl"] .cmp-remove {
  left: 10px
}

html[dir="ltr"] .cmp-remove {
  right: 10px
}

.cmp-remove:hover {
  background: var(--bg-2)
}

.cmp-card {
  display: block;
  text-decoration: none;
  color: var(--text)
}

.cmp-media {
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden
}

.cmp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.cmp-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted)
}

.cmp-title {
  margin-top: 10px;
  font-weight: 950;
  line-height: 1.35
}

.cmp-price {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.cmp-old {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 800
}

.cmp-badge {
  border: 1px solid rgba(34, 197, 94, .25);
  background: rgba(34, 197, 94, .10);
  color: #166534;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 900;
  font-size: .85rem
}

.cmp-actions {
  margin-top: 10px
}

.cmp-data .cmp-val {
  font-weight: 850
}

.cmp-divider {
  padding: 12px 14px;
  font-weight: 950;
  border-top: 1px solid var(--border);
  background: var(--bg-2)
}

.cmp-diff .cmp-key {
  color: var(--brand)
}

.cmp-diff .cmp-val {
  background: rgba(37, 99, 235, .06)
}

.cmp-mcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 12px;
  position: relative
}

.cmp-mtop {
  display: flex;
  gap: 12px;
  align-items: center
}

.cmp-mimg {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  flex: 0 0 auto
}

.cmp-mimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.cmp-minfo {
  flex: 1
}

.cmp-mbtns {
  margin-top: 8px
}

.cmp-mlist {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: grid;
  gap: 8px
}

.cmp-li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px
}

.cmp-li b {
  font-weight: 950;
  color: var(--muted)
}

.cmp-li span {
  font-weight: 900
}

.empty-state {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  text-align: center
}

.empty-ico {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, .10);
  border: 1px solid rgba(37, 99, 235, .18);
  color: var(--brand);
  margin-bottom: 12px;
  font-size: 22px
}

.empty-title {
  font-weight: 950;
  margin: 6px 0 6px
}

.empty-sub {
  color: var(--muted);
  font-weight: 800;
  margin: 0 0 12px
}

.empty-hint {
  margin-top: 14px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 850
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  display: inline-block
}

.cmp-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center
}

.cmp-swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .15);
  display: inline-block
}

.cmp-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.cmp-tag {
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 900;
  font-size: .85rem
}

.pdpMainSwiper {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  max-width: 420px;
  /* صغر الرقم براحتك */
  margin: 0 auto;
}

.pdpMainSwiper .swiper-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.pdpThumbsSwiper .swiper-slide {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  opacity: .85;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.pdpThumbsSwiper .swiper-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.pdpThumbsSwiper .swiper-slide:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.pdpThumbsSwiper .swiper-slide.is-active {
  opacity: 1;
  box-shadow: var(--ring);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
}

/* Swiper arrows style (same theme) */
.pdpMainSwiper .swiper-button-prev,
.pdpMainSwiper .swiper-button-next,
.pdpThumbsSwiper .swiper-button-prev,
.pdpThumbsSwiper .swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.pdpMainSwiper .swiper-button-prev::after,
.pdpMainSwiper .swiper-button-next::after,
.pdpThumbsSwiper .swiper-button-prev::after,
.pdpThumbsSwiper .swiper-button-next::after {
  font-size: 14px;
  color: var(--text);
  font-weight: 1000;
}

/* =========================
     Product UI — matches your theme vars
  ========================= */
.page-pad {
  padding: 18px 0 34px;
}

.pdp-wrap {
  display: grid;
  gap: 18px;
}

@media (min-width: 992px) {
  .pdp-wrap {
    grid-template-columns: .9fr 1.1fr;

    align-items: start;
  }
}

.p-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.p-card.pad {
  padding: 16px;
}

.p-media {
  padding: 14px;
}

.p-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.p-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .2));
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

html[data-theme="dark"] .p-badge {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
}

.p-badge i {
  color: var(--brand);
}

.p-title {
  margin: 0;
  font-weight: 900;
  color: var(--text);
  letter-spacing: .2px;
  line-height: 1.15;
}

.p-sub {
  margin-top: 19px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 13px;
}

.p-sub .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(100, 116, 139, .6);
  display: inline-block;
}

.p-pricebox {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 12px 12px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px dashed var(--border);
}

.p-price {
  font-size: 28px;
  font-weight: 1000;
  color: var(--text);
  letter-spacing: .2px;
}

.p-price small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.p-old {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 800;
}

.p-save {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
}

.p-save i {
  color: #16a34a;
}

/* ok to keep brand? small accent */
html[data-theme="dark"] .p-save i {
  color: #22c55e;
}

.p-actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.p-opts {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.opt-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 1000;
  color: var(--text);
  font-size: 14px;
}

.opt-title small {
  color: var(--muted);
  font-weight: 800;
}

/* Sizes */
.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  padding: 9px 12px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  user-select: none;
}

.size-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.size-btn.is-active {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  box-shadow: var(--ring);
}

.size-btn.is-disabled {
  opacity: .45;
  pointer-events: none;
  text-decoration: line-through;
}

/* Colors */
.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), outline var(--transition);
  background: var(--card);
  position: relative;
}

.color-swatch span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, .10);
  display: block;
}

html[data-theme="dark"] .color-swatch span {
  border-color: rgba(148, 163, 184, .25);
}

.color-swatch:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.color-swatch.is-active {
  box-shadow: var(--ring);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
}

.color-swatch.is-out::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 2px;
  background: rgba(239, 68, 68, .9);
  transform: rotate(-38deg);
  border-radius: 99px;
}

/* Qty */
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  width: 190px;
  max-width: 100%;
}

.qty button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 1000;
}

.qty input {
  width: 100%;
  border: 0;
  outline: none;
  text-align: center;
  background: transparent;
  color: var(--text);
  font-weight: 1000;
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000 30%));
  color: #fff;
  border: 0;
  border-radius: 16px;
  font-weight: 1000;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), filter var(--transition);
}

.btn-brand:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-soft {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 1000;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}

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

/* Meta tags (SKU, Stock, Brand...) */
.meta-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

@media (min-width: 576px) {
  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.meta-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.meta-ico {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  flex: 0 0 auto;
}

.meta-item b {
  display: block;
  font-weight: 1000;
  color: var(--text);
  font-size: 13px;
}

.meta-item span {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

/* Gallery */
.main-shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.main-shot a {
  display: block;
  position: relative;
}

.main-shot img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 4;
  object-fit: cover;
}

.zoom-hint {
  position: absolute;
  inset: auto 10px 10px auto;
  background: rgba(15, 23, 42, .68);
  color: #fff;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}

html[data-theme="dark"] .zoom-hint {
  background: rgba(2, 6, 23, .55);
}

.thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (max-width: 576px) {
  .thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.thumb {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.thumb.is-active {
  box-shadow: var(--ring);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
}

/* Tabs */
.p-tabs {
  margin-top: 18px;
}

.nav-pills.pdp-pills {
  gap: 10px;
}

.nav-pills.pdp-pills .nav-link {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
  font-weight: 1000;
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
}

.nav-pills.pdp-pills .nav-link.active {
  background: color-mix(in srgb, var(--brand) 14%, var(--card));
  box-shadow: var(--ring);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
}

.tab-pane {
  margin-top: 12px;
}

.tab-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.tab-body p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.75;
}

.tab-body .muted {
  color: var(--muted);
  font-weight: 800;
}

/* Specs list */
.specs {
  display: grid;
  gap: 10px;
}

.spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-2);
}

.spec b {
  color: var(--text);
  font-weight: 1000;
  font-size: 13px;
}

.spec span {
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

/* Reviews */
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.rating-big {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-big .num {
  font-size: 34px;
  font-weight: 1000;
  color: var(--text);
}

.stars i {
  color: #f59e0b;
}

/* amber stars */
.review {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--brand);
  font-weight: 1000;
  flex: 0 0 auto;
}

.review b {
  color: var(--text);
  font-weight: 1000;
}

.review p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

/* Related */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.section-head h4 {
  margin: 0;
  font-weight: 1000;
  color: var(--text);
}

.section-head small {
  color: var(--muted);
  font-weight: 900;
}

/* Swiper buttons style override (works with your init) */
.swiper-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.swiper-nav .swiper-button-prev,
.swiper-nav .swiper-button-next {
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  margin: 0;
}

.swiper-nav .swiper-button-prev::after,
.swiper-nav .swiper-button-next::after {
  font-size: 14px;
  color: var(--text);
  font-weight: 1000;
}

/* Small helper for bilingual text blocks */
.bi {
  display: grid;
  gap: 6px;
}

.review-date {
  font-size: 11px;
  color: #888;
  font-weight: 400;
}

.review b {
  font-size: 14px;
}

.review p {
  font-size: 13px;
  margin-top: 6px;
  color: #444;
}



/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .85);
  transition: opacity .25s ease, visibility .25s ease;
}

html[data-theme="dark"] .preloader {
  background: rgba(10, 12, 16, .72);
}

.preloader.is-hide {
  opacity: 0;
  visibility: hidden;
}

.pre-card {
  width: min(420px, calc(100% - 32px));
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(2, 6, 23, .10);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .10);
  text-align: center;
}

html[data-theme="dark"] .pre-card {
  border-color: rgba(255, 255, 255, .10);
  background: rgba(18, 22, 28, .85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.pre-logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pre-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand, #2563eb);
  opacity: .35;
  animation: preDot 900ms infinite ease-in-out;
}

.pre-dot:nth-child(2) {
  animation-delay: 120ms;
}

.pre-dot:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes preDot {

  0%,
  100% {
    transform: translateY(0);
    opacity: .35;
  }

  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.pre-text {
  font-weight: 800;
  font-size: 15px;
  color: var(--text, #0f172a);
}

.pre-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted, #64748b);
}

/* RTL/LTR subtle alignment */
html[dir="rtl"] .pre-card {
  text-align: right;
}

html[dir="ltr"] .pre-card {
  text-align: left;
}

html[dir="rtl"] .pre-logo,
html[dir="ltr"] .pre-logo {
  text-align: center;
}

.cart-variant {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.cart-variant .v-key {
  color: #6c757d;
  font-size: .85rem;
}

.cart-variant .v-val {
  font-weight: 600;
  font-size: .9rem;
}

.v-color-badge {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ddd;
  vertical-align: middle;
  box-shadow: 0 0 0 2px #fff inset;
}

/* ===== Scroll fix: offcanvas content must scroll ===== */
.ck-canvas .ck-wrap {
  height: calc(100dvh - 64px);
  /* header height تقريبًا */
  display: flex;
  flex-direction: column;
}

.ck-canvas .ck-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 14px;
}

.ck-canvas .ck-footer {
  padding: 12px 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  background: var(--bs-body-bg, #fff);
}

/* ===== Close button visible in dark mode ===== */
.ck-close {
  opacity: .9;
}

[data-bs-theme="dark"] .ck-close,
html[data-theme="dark"] .ck-close,
body.dark .ck-close {
  filter: invert(1) grayscale(100%);
  opacity: .95;
}

/* ===== Head bar ===== */
.ck-headbar {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

/* ===== Steps timeline ===== */
.ck-steps {
  position: relative;
  padding: 6px 0 8px;
}

.ck-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 10px 0;
}

.ck-step::before {
  content: "";
  position: absolute;
  inset-inline-start: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, .10);
}

.ck-node {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, .10);
  border: 1px solid rgba(13, 110, 253, .20);
}

/* ===== Cards ===== */
.ck-card {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;

  overflow: hidden;
}

.ck-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.ck-title {
  font-weight: 900;
  line-height: 1.1;
}

.ck-sub {
  font-size: .85rem;
  color: rgba(108, 117, 125, 1);
}

.ck-card-body {
  padding: 12px;
}

/* ===== Buttons ===== */
.ck-btn-soft {
  border-radius: 12px;
  border: 1px solid rgba(13, 110, 253, .25);
  background: rgba(13, 110, 253, .08);
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* ===== Lists (addresses) ===== */
.ck-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ck-item input {
  display: none;
}

.ck-item-ui {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .10);
  cursor: pointer;
}

.ck-pill {
  font-size: .75rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: rgba(25, 135, 84, .12);
  color: rgba(25, 135, 84, 1);
  white-space: nowrap;
}

.ck-pill.muted {
  background: rgba(108, 117, 125, .12);
  color: rgba(108, 117, 125, 1);
}

.ck-item-main {
  flex: 1;
}

.ck-item-sub {
  font-size: .85rem;
  color: rgba(108, 117, 125, 1);
  margin-top: 2px;
}

.ck-check {
  opacity: 0;
  margin-top: 2px;
}

.ck-item input:checked+.ck-item-ui {
  border-color: rgba(13, 110, 253, .55);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .10);
}

.ck-item input:checked+.ck-item-ui .ck-check {
  opacity: 1;
}

/* ===== Order summary ===== */
.ck-order {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ck-order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .08);
}

.ck-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 0, 0, .04);
}

.ck-oi-main {
  flex: 1;
  min-width: 0;
}

.ck-oi-title {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ck-oi-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(108, 117, 125, 1);
  margin-top: 2px;
}

.ck-qty {
  font-weight: 900;
}

.ck-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(108, 117, 125, .6);
}

.ck-oi-price {
  white-space: nowrap;
}

/* ===== Totals rows ===== */
.ck-totals {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, .15);
}

.ck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ck-row.grand {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(13, 110, 253, .06);
}

.ck-grandbox {
  margin-top: 10px;
}

/* ===== Coupon ===== */
.ck-coupon {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ck-coupon-input {
  position: relative;
  flex: 1;
}

.ck-coupon-input i {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .7;
}

.ck-input {
  border-radius: 14px;
  padding-inline-start: 38px;
}

.ck-apply {
  border-radius: 14px;
  white-space: nowrap;
}

/* ===== Payment ===== */
.ck-pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ck-pay-item input {
  display: none;
}

.ck-pay-ui {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .10);
  cursor: pointer;
}

.ck-pay-ui>i {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(13, 110, 253, .10);
  border: 1px solid rgba(13, 110, 253, .18);
}

.ck-pay-txt {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ck-pay-tag {
  font-size: .75rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, .10);
  white-space: nowrap;
}

.ck-pay-item input:checked+.ck-pay-ui {
  border-color: rgba(13, 110, 253, .55);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .10);
}

/* ===== Footer note ===== */
.ck-note {
  color: rgba(108, 117, 125, 1);
  margin-top: 8px;
}

.ck-input-wrap {
  position: relative;
}

.ck-input-wrap i {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .65;
  font-size: .9rem;
}

.ck-input {
  padding-inline-start: 38px;
  border-radius: 14px;
}

.ck-select {
  padding-inline-start: 38px;
  border-radius: 14px;
}

.ck-locate-btn {
  border-radius: 14px;
}

.ck-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .9rem;
}

.ck-loc-preview {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(13, 110, 253, .06);
}

.ck-loc-preview i {
  opacity: .85;
}

.ck-loc-link {
  text-decoration: none;
}

.ck-loc-link:hover {
  text-decoration: underline;
}

.ck-card {
  border-radius: 18px;
}

.ck-badge-icon {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bs-primary-rgb), .08);
  border: 1px solid rgba(var(--bs-primary-rgb), .15);
  font-size: 1.4rem;
}

@media (min-width: 992px) {
  #checkout {
    --bs-offcanvas-width: 50vw;
    /* 45% من عرض الشاشة */
  }

  #account {
    --bs-offcanvas-width: 50vw;
    /* 45% من عرض الشاشة */
  }

  #my_order {
    --bs-offcanvas-width: 50vw;
    /* 45% من عرض الشاشة */
  }
}


.is-refreshing {
  position: relative;
}

.refresh-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(3px);
  border-radius: inherit;
  z-index: 5;
}

.refresh-chip {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .65);
}

.refresh-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: .85;
  animation: bounce .6s infinite ease-in-out;
}

.refresh-chip .dot2 {
  animation-delay: .1s;
}

.refresh-chip .dot3 {
  animation-delay: .2s;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: .6;
  }

  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}





.order-success-card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  border: 1px solid rgba(0, 0, 0, .05);
  transition: .3s ease;
}

.order-success-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.success-icon {
  font-size: 60px;
  color: var(--brand);
}

.order-number {
  font-size: 1.1rem;
  color: var(--text-main);
}

.order-note {
  color: var(--text-muted);
}


.btn-outline-brand {
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 12px;
  font-weight: 600;
  transition: .3s ease;
}

.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
}

.error-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
  transition: .3s ease;
}

.error-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.error-icon {
  font-size: 55px;
  color: var(--brand);
}

.error-code {
  font-size: 90px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.error-card p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 20px auto;
}



/* Account Offcanvas UI */
.acc-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .05);
}

.acc-user .acc-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .04);
  color: var(--brand);
  font-size: 22px;
}

.acc-name {
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.acc-email {
  font-size: 12px;
  color: var(--text-muted);
}

.acc-logout {
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, .04);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, .06);
  transition: .2s ease;
  white-space: nowrap;
}

.acc-logout:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, .06);
  color: var(--text-main);
}

.acc-wallet .acc-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .04);
  color: var(--brand);
  font-size: 18px;
}

.acc-label {
  font-weight: 800;
  color: var(--text-main);
}

.acc-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.acc-balance {
  font-weight: 900;
  color: var(--brand);
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(0, 0, 0, .06);
  padding: 10px 12px;
  border-radius: 14px;
}

.acc-balance .cur {
  font-size: 12px;
  opacity: .8;
  margin-inline-start: 6px;
}

/* Tiles */
.acc-tile {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  padding: 14px;
  height: 100%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
  transition: .2s ease;
}

.acc-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .07);
  border-color: rgba(0, 0, 0, .10);
}

.tile-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .04);
  color: var(--brand);
  font-size: 18px;
  margin-bottom: 10px;
}

.tile-title {
  font-weight: 800;
  color: var(--text-main);
  font-size: 14px;
}

.tile-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== Orders UI (matches ck/cats vibe) ===== */
.orders-wrap {
  display: grid;
  gap: 12px;
}

.order-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .03), rgba(0, 0, 0, 0));
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.order-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2px;
  border: 1px solid rgba(0, 0, 0, .08);
  line-height: 1;
}

.order-date {
  font-size: 12px;
  color: rgba(0, 0, 0, .55);
  font-weight: 600;
}

/* status variants */
.st-delivered {
  background: rgba(25, 135, 84, .12);
  color: #198754;
  border-color: rgba(25, 135, 84, .25);
}

.st-processing {
  background: rgba(178, 178, 178, 0.12);
  color: #000000;

}

.st-canceled {
  background: rgba(220, 53, 69, .12);
  color: #dc3545;
  border-color: rgba(220, 53, 69, .25);
}

.order-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
}

.order-media {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  background: rgba(0, 0, 0, .02);
}

.order-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-info {
  min-width: 0;
}

.order-title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.order-meta {
  font-size: 12px;
  color: rgba(0, 0, 0, .65);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.muted {
  color: rgba(0, 0, 0, .55);
}

.order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 0, 0, .12);
}

.order-price .price {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.1;
}

.order-price small {
  font-weight: 700;
  font-size: 11px;
  color: rgba(0, 0, 0, .55);
}

.btn-order-again {
  border-radius: 12px;
  padding: 9px 10px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(13, 110, 253, .08);
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: .2s ease;
}

.btn-order-again:hover {
  background: rgba(13, 110, 253, .14);
  transform: translateY(-1px);
}

/* rating row */
.order-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.rate-label {
  font-weight: 900;
  font-size: 12px;
  color: rgba(0, 0, 0, .65);
}

.rate-stars-btn {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 1;
}

.rate-stars-btn .stars i {
  font-size: 14px;
  margin-inline-start: 2px;
  color: #f7b500;
}

/* ===== Modal Rating ===== */
.rate-modal-content {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.rate-box {
  display: grid;
  gap: 10px;
  padding: 6px 4px;
}

.rate-img {
  width: 132px;
  height: 132px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, .08);
  margin: 0 auto;
}

.rate-name {
  font-weight: 900;
  font-size: 14px;
}

.rate-select {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.rate-star {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(0, 0, 0, .02);
  display: grid;
  place-items: center;
  transition: .15s ease;
}

.rate-star i {
  font-size: 18px;
  color: rgba(0, 0, 0, .35);
}

.rate-star.active,
.rate-star:hover {
  background: rgba(247, 181, 0, .12);
  border-color: rgba(247, 181, 0, .28);
}

.rate-star.active i,
.rate-star:hover i {
  color: #f7b500;
}

.rate-textarea {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .12);
  padding: 10px 12px;
  resize: none;
  font-weight: 600;
}

.btn-save-rate {
  border-radius: 14px;
  padding: 11px 12px;
  font-weight: 900;
  border: 0;
  background: linear-gradient(135deg, rgba(13, 110, 253, .95), rgba(13, 110, 253, .75));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-save-rate:hover {
  filter: brightness(1.05);
}

/* Mobile tweaks */
@media (max-width: 420px) {
  .order-body {
    grid-template-columns: 86px 1fr;
  }

  .order-media {
    width: 86px;
    height: 86px;
  }

  .btn-order-again {
    padding: 8px 9px;
  }
}


/* stars */
#rateSelect .rate-star {
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

#rateSelect .rate-star i {
  color: #9aa4b2;
  /* رمادي */
  font-size: 22px;
  transition: .15s ease;
}

#rateSelect .rate-star.is-on i {
  color: #f6c343;
  /* أصفر */
}

#rateSelect .rate-star:focus {
  outline: none;
  box-shadow: none;
}

/* ===== Address UI (matches your clean offcanvas vibe) ===== */
.address-card {
  border-radius: 14px;
  background: var(--bs-body-bg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.address-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, .08);
  color: rgba(13, 110, 253, 1);
  flex: 0 0 auto;
}

.addr-badge {
  background: rgba(25, 135, 84, .12) !important;
  color: #198754 !important;
  border: 1px solid rgba(25, 135, 84, .18);
  font-weight: 700;
}

.btn-addr-del {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(220, 53, 69, .20);
  background: rgba(220, 53, 69, .06);
  color: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-addr-del:hover {
  background: rgba(220, 53, 69, .12);
  border-color: rgba(220, 53, 69, .30);
}

/* ===== Page Layout ===== */
.page-layout {
  padding-top: 30px;
  padding-bottom: 60px;
}

/* Hero */
.page-hero {
  padding: 50px 0 30px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 15px;
}

/* Content Card */
.content-card {
  background: var(--bs-body-bg);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
  line-height: 1.9;
  font-size: 15px;
}

/* Headings */
.content-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* Paragraph */
.content-card p {
  margin-bottom: 15px;
  color: #555;
}

/* Lists */
.content-card ul {
  padding-inline-start: 18px;
}

.content-card li {
  margin-bottom: 8px;
}


/* مهم: امنع أي flex/fit-content يخنق الكروت */
.page-layout {
  display: block !important;
}

/* الكارت ياخد عرض العمود بالكامل */
.mag-card {
  width: 100%;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
  transition: .2s ease;
}

.mag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .10);
}

/* الغلاف: نسبة ثابتة محترمة (مش طويلة قوي) */
.mag-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  /* بدل 3/4 اللي بيطلع طويل */
  background: #f4f6f8;
  overflow: hidden;
}

.mag-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* النص */
.mag-body {
  padding: 12px 12px 14px;
  text-align: center;
}

.mag-title {
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== hint ===== */
.mag-hint {
  max-width: 980px;
  margin: 8px auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(0, 0, 0, .05);
}

.mag-hint-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: rgba(0, 0, 0, .70);
}

.mag-hint-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mag-hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(0, 0, 0, .06);
  font-size: 12px;
  color: rgba(0, 0, 0, .65);
}

/* ===== shell ===== */
.mag-shell {
  max-width: 980px;
  margin: 0 auto 60px;
  position: relative;
}

/* page height = responsive (مش ضخمة ولا صغيرة) */
.mag-page {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .10);
  padding: 16px;
  min-height: clamp(520px, 72vh, 720px);
  position: relative;
  overflow: hidden;
}

.mag-page:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, .02), transparent 35%, rgba(0, 0, 0, .01));
  pointer-events: none;
}

/* cover pages: show FULL image (no crop) */
.mag-cover {
  padding: 0;
}

.mag-cover-frame {
  width: 100%;
  height: clamp(520px, 72vh, 720px);
  background: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mag-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* أهم سطر: مفيش قص */
  display: block;
  padding: 18px;
}

.mag-cover-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, .06);
}

.mag-cover-title {
  margin: 0;
  font-weight: 950;
  font-size: 22px;
}

.mag-cover-sub {
  font-size: 13px;
}

/* header inside product pages */
.mag-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mag-page-title {
  font-weight: 950;
  font-size: 14px;
}

.mag-page-no {
  font-size: 12px;
  color: rgba(0, 0, 0, .55);
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 999px;
  padding: 6px 10px;
}

/* product card */
.mag-prod {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
}

.mag-prod-media {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  background: rgba(0, 0, 0, .03);
}

.mag-prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(220, 53, 69, .10);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, .18);
}

html[dir="rtl"] .mag-badge {
  left: auto;
  right: 10px;
}

.mag-prod-body {
  padding: 12px 12px 14px;
}

.mag-prod-title {
  font-weight: 950;
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mag-prod-desc {
  color: rgba(0, 0, 0, .60);
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mag-price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px;
}

.mag-price-new {
  font-weight: 950;
  font-size: 13px;
}

.mag-price-old {
  font-size: 12px;
  color: rgba(0, 0, 0, .45);
  text-decoration: line-through;
}

.sar {
  font-size: 11px;
  opacity: .7;
}

.mag-spec-title {
  font-weight: 950;
  font-size: 12px;
  margin-bottom: 6px;
  color: rgba(0, 0, 0, .70);
}

.mag-spec-table th {
  width: 44%;
  font-size: 11px;
  color: rgba(0, 0, 0, .70);
  background: rgba(0, 0, 0, .02);
}

.mag-spec-table td {
  font-size: 11px;
  color: rgba(0, 0, 0, .70);
}

/* nav */
.mag-nav {
  position: absolute;
  top: 50%;
  left: -16px;
  right: -16px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 50;
}

.mag-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.mag-pagination {
  margin-top: 12px;
  text-align: center;
}

/* spacing between pages (like a book gap) on desktop */
@media (min-width: 992px) {
  .magazine-swiper .swiper-slide {
    transform: translateZ(0);
  }
}

/* ==== uses your vibe: soft + premium ==== */
.page-head .tile-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .06);
}

.coupon-card {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.coupon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .11);
}

.coupon-top {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, .02);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .9);
}

.coupon-badge.is-percent {
  color: #b07b00;
  border-color: rgba(176, 123, 0, .25);
  background: rgba(176, 123, 0, .08);
}

.coupon-badge.is-fixed {
  color: #0b5ed7;
  border-color: rgba(13, 110, 253, .25);
  background: rgba(13, 110, 253, .08);
}

.coupon-exp {
  font-size: 12px;
  white-space: nowrap;
}

.coupon-body {
  padding: 14px;
}

.coupon-code-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.coupon-code {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(0, 0, 0, .18);
  background: rgba(0, 0, 0, .02);
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.coupon-copy {
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .92);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coupon-copy:hover {
  background: #fff;
}

.coupon-text {
  color: rgba(0, 0, 0, .72);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.coupon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(0, 0, 0, .06);
  font-size: 12px;
  color: rgba(0, 0, 0, .68);
}


/* =========================
     Track Order (Mobile First)
  ========================= */

.track-wrap {
  max-width: 540px;
  margin-inline: auto;
}

.track-card {
  border-radius: 20px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.track-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.track-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.track-badge {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(var(--brand-rgb, 13, 110, 253), .12);
  color: var(--brand, #0d6efd);
  flex: 0 0 auto;
}

.track-title h4 {
  margin: 0;
  font-weight: 900;
  font-size: 1.05rem;
}

.track-sub {
  color: var(--bs-secondary-color, #6c757d);
  font-size: .9rem;
  margin-top: 2px;
}

.track-body {
  padding: 16px;
}

.track-input {
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
}

.track-btn {
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 900;
}

.track-hint {
  margin-top: 10px;
  color: var(--bs-secondary-color, #6c757d);
  font-size: .85rem;
}

/* Result */
.res {
  margin-top: 14px;
  border-radius: 20px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: var(--bs-body-bg, #fff);
  overflow: hidden;
}

.res-top {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.res-inv {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.res-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .12));
  background: rgba(0, 0, 0, .02);
  font-weight: 900;
  font-size: .88rem;
  white-space: nowrap;
}

.res-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.res-box {
  border-radius: 18px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: rgba(0, 0, 0, .02);
  padding: 12px;
}

.res-k {
  color: var(--bs-secondary-color, #6c757d);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-v {
  margin-top: 6px;
  font-weight: 1000;
  font-size: 1.05rem;
}

.hide {
  display: none !important;
}

@media (min-width: 992px) {
  .track-wrap {
    max-width: 720px;
  }

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

.blog-wrap {
  max-width: 1100px;
  margin-inline: auto;
}

.blog-hero {
  border-radius: 22px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: linear-gradient(135deg, rgba(var(--brand-rgb, 13, 110, 253), .10), rgba(0, 0, 0, .00));
  padding: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .06);
}

.blog-hero h1 {
  margin: 0;
  font-weight: 1000;
  font-size: 1.25rem;
}

.blog-hero p {
  margin: 6px 0 0;
  color: var(--bs-secondary-color, #6c757d);
}

.blog-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bcard {
  border-radius: 22px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: var(--bs-body-bg, #fff);
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .06);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .10);
}

.bimg {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, .04);
  overflow: hidden;
}

.bimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.bshade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .35));
}

.bmeta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.bpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  font-size: .85rem;
  white-space: nowrap;
}

.bbody {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.btitle {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 1000;
  line-height: 1.25;
}

.bdesc {
  margin: 0;
  color: var(--bs-secondary-color, #6c757d);
  font-size: .92rem;
  line-height: 1.55;
}

.bfoot {
  padding: 0 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.breadmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 1000;
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .10));
  background: rgba(0, 0, 0, .02);
  color: var(--bs-body-color, #111);
}

.breadmore:hover {
  background: rgba(0, 0, 0, .04);
}

.bstat {
  color: var(--bs-secondary-color, #6c757d);
  font-weight: 800;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.empty {
  margin-top: 14px;
  border-radius: 22px;
  border: 1px dashed var(--bs-border-color, rgba(0, 0, 0, .18));
  padding: 18px;
  text-align: center;
  color: var(--bs-secondary-color, #6c757d);
}

/* =========================
     Blog Post (Mobile First)
  ========================= */
.post-wrap {
  max-width: 980px;
  margin-inline: auto;
}

.post-hero {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .06);
}

.post-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, .04);
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
}

.post-head {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  z-index: 2;
}

.post-head-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-title {
  margin: 0;
  color: #fff;
  font-weight: 1000;
  line-height: 1.2;
  font-size: 1.25rem;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}

@media (min-width: 992px) {
  .post-title {
    font-size: 1.75rem;
  }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-weight: 900;
  font-size: .88rem;
  backdrop-filter: blur(6px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.post-body {
  padding: 16px;
}

.post-card {
  margin-top: 12px;
  border-radius: 22px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.post-card-head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-card-head .left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.post-ico {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(var(--brand-rgb, 13, 110, 253), .12);
  color: var(--brand, #0d6efd);
  flex: 0 0 auto;
}

.post-card-head b {
  font-weight: 1000;
  font-size: 1rem;
}

.post-card-head small {
  display: block;
  margin-top: 2px;
  color: var(--bs-secondary-color, #6c757d);
  font-weight: 700;
}

/* Article content styling (CKEditor HTML friendly) */
.post-content {
  padding: 16px;
  line-height: 1.85;
  font-size: 1rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  margin: 12px auto;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-weight: 1000;
  margin: 16px 0 10px;
}

.post-content p {
  margin: 0 0 12px;
}

.post-content ul,
.post-content ol {
  padding-inline-start: 1.25rem;
}

.post-content blockquote {
  border-inline-start: 4px solid rgba(var(--brand-rgb, 13, 110, 253), .45);
  background: rgba(0, 0, 0, .02);
  padding: 12px 12px;
  border-radius: 16px;
  margin: 12px 0;
}

.post-content a {
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid rgba(var(--brand-rgb, 13, 110, 253), .35);
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 16px;
}

.btn-soft {
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .10));
  background: rgba(0, 0, 0, .02);
  font-weight: 1000;
}

/* =========================
     Contact Page (Mobile First)
  ========================= */
.cx-wrap {
  max-width: 1100px;
  margin-inline: auto;
}

.cx-hero {
  border-radius: 22px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: linear-gradient(135deg, rgba(var(--brand-rgb, 13, 110, 253), .10), rgba(0, 0, 0, .00));
  padding: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .06);
}

.cx-hero h1 {
  margin: 0;
  font-weight: 1000;
  font-size: 1.25rem;
}

.cx-hero p {
  margin: 6px 0 0;
  color: var(--bs-secondary-color, #6c757d);
}

.cx-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 992px) {
  .cx-grid {
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
  }
}

.cx-card {
  border-radius: 22px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.cx-head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cx-head .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cx-ico {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(var(--brand-rgb, 13, 110, 253), .12);
  color: var(--brand, #0d6efd);
}

.cx-head b {
  font-weight: 1000;
}

.cx-head small {
  display: block;
  margin-top: 2px;
  color: var(--bs-secondary-color, #6c757d);
  font-weight: 700;
}

.cx-body {
  padding: 14px;
}

/* Form */
.cx-input {
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
}

.cx-text {
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  min-height: 140px;
}

.cx-btn {
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 1000;
}

/* Info list */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  border-radius: 18px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: rgba(0, 0, 0, .02);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.info-item i {
  margin-top: 2px;
}

.info-item b {
  display: block;
  font-weight: 1000;
}

.info-item .v {
  color: var(--bs-secondary-color, #6c757d);
  font-weight: 700;
  margin-top: 3px;
  line-height: 1.5;
  word-break: break-word;
}

.sos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.so {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .10));
  background: rgba(0, 0, 0, .02);
  text-decoration: none;
  font-weight: 1000;
  color: var(--bs-body-color, #111);
}

.so:hover {
  background: rgba(0, 0, 0, .04);
}

/* Branches */
.br-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .br-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.br {
  border-radius: 20px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
  background: rgba(0, 0, 0, .02);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.br-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.br-top h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.3;
}

.br-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .12));
  background: rgba(0, 0, 0, .02);
  font-weight: 900;
  font-size: .85rem;
  white-space: nowrap;
}

.br-line {
  color: var(--bs-secondary-color, #6c757d);
  font-weight: 700;
  line-height: 1.55;
}

.br-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.br-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .10));
  background: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-weight: 1000;
  color: var(--bs-body-color, #111);
}

.br-actions a:hover {
  background: rgba(255, 255, 255, .9);
}


.top-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--brand);
  z-index: 100000;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 180ms ease;
}

/* عشان ما يركبش على safe-area في WebView */
html[data-webview="1"] .top-loader {
  top: var(--wv-top);
}

.top-loader.is-active {
  opacity: 1;
}

.top-loader.is-done {
  width: 100% !important;
  opacity: 0;
  transition: width 220ms ease, opacity 260ms ease 120ms;
}


/* الحاوية الأساسية */
.ck-pay-ui {
  padding: 15px;
  position: relative;
  overflow: hidden;
  /* يمنع خروج أي عنصر برا الإطار */
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 80px;
}

.ck-pay-fees {
  min-width: 80px;
  white-space: nowrap;
  /* يمنع نزول السطر */
}

.pay-methods-icons {
  font-size: 18px;
  color: #555;
  display: flex;
  gap: 5px;
}

/* العلم الخاص بمدى */
.mada-icon-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0 3px;
  height: 18px;
}


/* الحاوية الكلية */
.rp-mini-wrap {
  direction: rtl;
  padding: 0 15px;
}

.rp-mini-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a202c;
}

/* الكارت المستطيل */
.rp-mini-card-horizontal {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 12px;
  gap: 15px;
  transition: all 0.3s ease;
  height: 110px;
  /* زيادة الارتفاع لراحة العين */
}

.rp-mini-card-horizontal:hover {
  border-color: #3182ce;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* الصورة */
.mini-img-box {
  width: 85px;
  /* تكبير الصورة */
  height: 85px;
  flex-shrink: 0;
  background: #f7fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mini-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* النصوص */
.mini-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

.mini-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d3748;
  text-decoration: none;
  line-height: 1.4;
  /* جعل الاسم يظهر على سطرين فقط */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-footer {
  display: flex;
  align-items: flex-end;
  /* محاذاة العناصر للأسفل */
  justify-content: space-between;
}

/* السعر */
.mini-price-wrapper {
  display: flex;
  flex-direction: column;
}

.mini-price-val {
  color: #2b6cb0;
  font-size: 1.1rem;
  font-weight: 900;
}

.mini-currency {
  font-size: 0.75rem;
  color: #718096;
  font-weight: 600;
}

/* زر السلة (واضح وجذاب) */
.mini-cart-btn {
  background: #3182ce;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px -1px rgba(49, 130, 206, 0.3);
}

.mini-cart-btn:hover {
  background: #2b6cb0;
  transform: scale(1.05);
}

/* تنسيق الأسهم */
.rp-next,
.rp-prev {
  color: #3182ce !important;
  background: #fff;
  width: 35px !important;
  height: 35px !important;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rp-next::after,
.rp-prev::after {
  font-size: 14px !important;
  font-weight: bold;
}


/* =========================================================
   MINI HOME BANNERS
========================================================= */

.mini-banners-section {
  width: 100%;
  margin: 18px 0 28px;
  position: relative;
}

.miniBannersSwiper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.miniBannersSwiper .swiper-slide {
  height: auto;
}

.mini-banner-card {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.mini-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.13);
}

.mini-banner-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 150;
  object-fit: cover;
}


/* Navigation */

.miniBannersSwiper .swiper-button-prev,
.miniBannersSwiper .swiper-button-next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.12);
}

.miniBannersSwiper .swiper-button-prev::after,
.miniBannersSwiper .swiper-button-next::after {
  font-size: 14px;
  font-weight: 800;
}


/* Mobile */

@media (max-width: 767.98px) {

  .mini-banners-section {
    margin: 14px 0 22px;
  }

  .mini-banner-card {
    border-radius: 14px;
  }

  .miniBannersSwiper .swiper-button-prev,
  .miniBannersSwiper .swiper-button-next {
    display: none;
  }
}


/* =========================================================
   FEATURED CATEGORIES
========================================================= */

/* =========================================================
   FEATURED CATEGORIES SECTION
========================================================= */

.featured-categories-section {
  position: relative;
}


/* =========================================================
   CATEGORIES SWIPER
========================================================= */

.featured-categories-section .catSwiper {
  position: relative;
  width: 100%;
  padding: 15px 48px 28px;
  overflow: hidden;
}

.featured-categories-section .swiper-slide {
  height: auto;
}


/* =========================================================
   CATEGORY CARD
========================================================= */

.featured-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  height: 100%;

  gap: 14px;
  padding: 10px 6px;

  color: #172033;
  text-align: center;
  text-decoration: none;

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.featured-cat-card:hover {
  color: #0166b1;
  transform: translateY(-5px);
}


/* =========================================================
   CATEGORY ICON
========================================================= */

.featured-cat-icon {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 155px;
  height: 155px;

  padding: 18px;
  overflow: hidden;

  background:
    linear-gradient(145deg,
      #ffffff 0%,
      #f5f9fc 100%);

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;

  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.09),
    inset 0 0 0 6px rgba(255, 255, 255, 0.75);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}


/* Inner circle */

.featured-cat-icon::before {
  content: "";

  position: absolute;
  inset: 7px;

  border: 1px solid rgba(1, 102, 177, 0.07);
  border-radius: inherit;

  pointer-events: none;
}


/* Small decorative shine */

.featured-cat-icon::after {
  content: "";

  position: absolute;
  top: 13px;
  left: 24px;

  width: 35%;
  height: 16px;

  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;

  filter: blur(8px);

  pointer-events: none;
}


/* Icon hover */

.featured-cat-card:hover .featured-cat-icon {
  border-color: rgba(1, 102, 177, 0.28);

  box-shadow:
    0 16px 35px rgba(1, 102, 177, 0.17),
    inset 0 0 0 6px rgba(1, 102, 177, 0.04);

  transform: scale(1.035);
}


/* =========================================================
   CATEGORY IMAGE
========================================================= */

.featured-cat-icon img {
  position: relative;
  z-index: 2;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transition: transform 0.35s ease;
}

.featured-cat-card:hover .featured-cat-icon img {
  transform: scale(1.08);
}


/* =========================================================
   CATEGORY TITLE
========================================================= */

.featured-cat-title {
  width: 100%;
  min-height: 46px;

  padding: 0 5px;

  overflow: hidden;

  color: #172033;

  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;

  text-align: center;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  transition: color 0.3s ease;
}

.featured-cat-card:hover .featured-cat-title {
  color: #0166b1;
}


/* =========================================================
   SWIPER NAVIGATION
========================================================= */

.featured-categories-section .cat-swiper-prev,
.featured-categories-section .cat-swiper-next {
  width: 42px;
  height: 42px;

  margin-top: -34px;

  color: #172033;
  background: rgba(255, 255, 255, 0.97);

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;

  box-shadow:
    0 7px 22px rgba(15, 23, 42, 0.13);

  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.featured-categories-section .cat-swiper-prev:hover,
.featured-categories-section .cat-swiper-next:hover {
  color: #ffffff;
  background-color: #0166b1;
  border-color: #0166b1;
  transform: scale(1.06);
}

.featured-categories-section .cat-swiper-prev::after,
.featured-categories-section .cat-swiper-next::after {
  font-size: 14px;
  font-weight: 900;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

  .featured-categories-section .catSwiper {
    padding-right: 44px;
    padding-left: 44px;
  }

  .featured-cat-icon {
    width: 135px;
    height: 135px;
    padding: 16px;
  }

  .featured-cat-title {
    min-height: 43px;
    font-size: 14px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

  .featured-categories-section .catSwiper {
    padding: 12px 4px 22px;
  }

  .featured-cat-card {
    gap: 10px;
    padding: 7px 3px;
  }

  .featured-cat-icon {
    width: 105px;
    height: 105px;

    padding: 12px;

    border-radius: 50%;

    box-shadow:
      0 7px 20px rgba(15, 23, 42, 0.09),
      inset 0 0 0 4px rgba(255, 255, 255, 0.75);
  }

  .featured-cat-icon::before {
    inset: 5px;
  }

  .featured-cat-title {
    min-height: 40px;

    padding: 0 2px;

    font-size: 13px;
    line-height: 1.45;
  }

  .featured-categories-section .cat-swiper-prev,
  .featured-categories-section .cat-swiper-next {
    display: none;
  }

}

/* =========================================================
   HOME BRANDS
========================================================= */

.brands-home-section {
  position: relative;
}


/* Swiper */

.brands-home-section .brandsSwiper {
  width: 100%;
  overflow: hidden;
}

.brands-home-section .swiper-slide {
  height: auto;
}


/* =========================================================
   BRAND CARD
========================================================= */

.brand-home-card {
  width: 100%;
  height: 140px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #fff;

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;

  text-decoration: none;

  box-shadow:
    0 6px 22px rgba(15, 23, 42, 0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}


/* الصورة تأخذ كامل مساحة الكارت */

.brand-home-card img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  object-position: center;

  padding: 10px;

  transition: transform 0.3s ease;
}


/* Hover */

.brand-home-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.11);

  border-color: rgba(15, 23, 42, 0.13);
}

.brand-home-card:hover img {
  transform: scale(1.035);
}


/* =========================================================
   NO IMAGE
========================================================= */

.brand-home-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 32px;

  color: #94a3b8;

  background: #f8fafc;
}


/* =========================================================
   SWIPER BUTTONS
========================================================= */

.brands-home-section .swiper-button-prev,
.brands-home-section .swiper-button-next {
  width: 40px;
  height: 40px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.96);

  box-shadow:
    0 5px 18px rgba(15, 23, 42, 0.15);
}

.brands-home-section .swiper-button-prev::after,
.brands-home-section .swiper-button-next::after {
  font-size: 14px;
  font-weight: 800;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

  .brand-home-card {
    height: 125px;
    border-radius: 16px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

  .brand-home-card {
    height: 105px;
    border-radius: 14px;
  }

  .brand-home-card img {
    padding: 7px;
  }

  .brands-home-section .swiper-button-prev,
  .brands-home-section .swiper-button-next {
    display: none;
  }

}

/* =========================================================
   FLOATING MAINTENANCE BUTTON
========================================================= */

.maintenance-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 245px;
  padding: 10px 12px;

  background: #071a35;
  color: #fff !important;

  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;

  text-decoration: none !important;

  box-shadow:
    0 15px 40px rgba(7, 26, 53, .25),
    0 4px 12px rgba(0, 0, 0, .12);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}


/* البرتقالي الخاص بالصيانة */
.maintenance-float::before {
  content: "";
  position: absolute;

  top: 10px;
  bottom: 10px;
  left: 0;

  width: 4px;

  background: #f58234;

  border-radius: 0 5px 5px 0;
}


.maintenance-float:hover {
  transform: translateY(-4px);

  box-shadow:
    0 20px 50px rgba(7, 26, 53, .32),
    0 6px 16px rgba(0, 0, 0, .14);

  color: #fff !important;
}


/* أيقونة الصيانة */
.maintenance-float-icon {
  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: #f58234;

  color: #fff;

  font-size: 19px;
}


/* النص */
.maintenance-float-content {
  display: flex;
  flex-direction: column;

  flex: 1;

  line-height: 1.3;
}


.maintenance-float-content small {
  margin-bottom: 3px;

  color: rgba(255, 255, 255, .60);

  font-size: 10px;
  font-weight: 600;
}


.maintenance-float-content strong {
  color: #fff;

  font-size: 14px;
  font-weight: 800;
}


/* WhatsApp */
.maintenance-whatsapp {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #25D366;

  color: #fff;

  font-size: 18px;
}


/* حركة خفيفة تلفت الانتباه بدون إزعاج */
.maintenance-float-icon i {
  animation: maintenanceTool 4s ease-in-out infinite;
}


@keyframes maintenanceTool {

  0%,
  85%,
  100% {
    transform: rotate(0);
  }

  90% {
    transform: rotate(-12deg);
  }

  95% {
    transform: rotate(12deg);
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {

  .maintenance-float {
    left: 12px;
    bottom: 96px;

    min-width: auto;

    padding: 8px 10px;

    border-radius: 16px;

    gap: 9px;
  }


  .maintenance-float-icon {
    width: 42px;
    height: 42px;

    flex-basis: 42px;

    border-radius: 12px;

    font-size: 17px;
  }


  .maintenance-float-content small {
    font-size: 9px;
  }


  .maintenance-float-content strong {
    font-size: 12px;
  }


  .maintenance-whatsapp {
    width: 30px;
    height: 30px;

    flex-basis: 30px;

    font-size: 16px;
  }
}



/* ============================================
   HALAH INVESTMENT - REGISTER FORM
   ============================================ */

#register .halah-register {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

/* Heading */
#register .halah-register-heading {
  text-align: center;
  margin-bottom: 25px;
}

#register .halah-register-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(16, 44, 56, 0.08);
  color: #102c38;
  font-size: 25px;
  margin-bottom: 14px;
}

#register .halah-register-heading h5 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--brand, #102c38);
}

#register .halah-register-heading p {
  font-size: 12px;
  line-height: 1.9;
  color: #7b8794;
  margin: 0;
}

/* Account type */
#register .halah-register-type {
  background: #f7f9fb;
  border: 1px solid #e4eaf0;
  border-radius: 15px;
  padding: 16px;
  margin-bottom: 25px;
}

/* Section heading */
#register .halah-register-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  color: #102c38;
  border-bottom: 1px solid #edf0f3;
  padding-bottom: 13px;
  margin-bottom: 20px;
}

#register .halah-register-section-title i {
  color: #b39360;
  font-size: 16px;
}

/* Fields */
#register .halah-register-field {
  margin-bottom: 19px;
  text-align: right;
}

#register .auth-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #344054;
  margin-bottom: 9px;
}

#register .auth-label i {
  color: #a88a58;
  width: 19px;
  text-align: center;
}

#register .halah-required {
  color: #e34c4c;
  font-size: 15px;
}

/* Input appearance */
#register .auth-input,
#register .halah-register-type .form-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e0e6ed;
  background: #fff;
  border-radius: 11px;
  font-size: 13px;
  color: #243746;
  padding: 11px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#register .auth-input:focus,
#register .halah-register-type .form-select:focus {
  border-color: #b39360;
  box-shadow: 0 0 0 3px rgba(179, 147, 96, .12);
  outline: none;
}

#register .auth-input::placeholder {
  color: #a5afba;
  opacity: 1;
}

#register .auth-input[dir="ltr"] {
  text-align: left;
}

/* Select2 */
#register .select2-container {
  width: 100% !important;
  max-width: 100%;
}

#register .select2-container--default .select2-selection--single {
  height: 48px !important;
  min-height: 48px;
  border: 1px solid #e0e6ed !important;
  border-radius: 11px !important;
  background: #fff !important;
}

#register .select2-container--default .select2-selection--single .select2-selection__rendered {
  height: 46px;
  line-height: 46px !important;
  padding: 0 14px;
  color: #243746;
  font-size: 13px;
  text-align: right;
}

#register .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
  top: 0;
  right: auto;
  left: 9px;
}

#register .select2-container--default.select2-container--focus .select2-selection--single,
#register .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #b39360 !important;
  box-shadow: 0 0 0 3px rgba(179, 147, 96, .12);
}

/* Hints */
#register .halah-field-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.8;
  color: #84909d;
}

#register .halah-field-hint i {
  margin-top: 3px;
  color: #b39360;
}

/* Terms */
#register .halah-register-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f7f9fb;
  border-radius: 12px;
  padding: 14px;
  margin: 24px 0 20px;
  font-size: 11px;
  line-height: 2;
  color: #677584;
}

#register .halah-register-terms>i {
  margin-top: 5px;
  color: #b39360;
  font-size: 15px;
}

#register .halah-register-terms a {
  color: #102c38;
  font-weight: 800;
  text-decoration: none;
}

#register .halah-register-terms a:hover {
  text-decoration: underline;
}

/* Submit button */
#register .halah-register-submit {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: #102c38;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: background .2s ease, transform .2s ease;
}

#register .halah-register-submit:hover {
  background: #1b4350;
  color: #fff;
  transform: translateY(-1px);
}

/* Footer */
#register .halah-register-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 17px;
  font-size: 11px;
  color: #99a4af;
}

#register .halah-register-footer i {
  color: #7f9a8a;
}

/* Mobile */
@media (max-width: 576px) {
  #register .halah-register-type {
    padding: 13px;
  }

  #register .halah-register-heading h5 {
    font-size: 18px;
  }
}


/* ============================================
   HALAH INVESTMENT - LOGIN FORM
   ============================================ */

#login_t .halah-login {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

/* Header */
#login_t .halah-login-heading {
  text-align: center;
  margin-bottom: 28px;
}

#login_t .halah-login-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(16, 44, 56, .08);
  color: #102c38;
  font-size: 25px;
  margin-bottom: 14px;
}

#login_t .halah-login-heading h5 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #102c38;
}

#login_t .halah-login-heading p {
  font-size: 12px;
  color: #7b8794;
  line-height: 1.9;
  margin: 0;
}

/* Section title */
#login_t .halah-login-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  color: #102c38;
  border-bottom: 1px solid #edf0f3;
  padding-bottom: 13px;
  margin-bottom: 22px;
}

#login_t .halah-login-section-title i {
  color: #b39360;
  font-size: 16px;
}

/* Fields */
#login_t .halah-login-field {
  margin-bottom: 20px;
}

#login_t .auth-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #344054;
  margin-bottom: 9px;
}

#login_t .auth-label i {
  color: #a88a58;
  width: 19px;
  text-align: center;
}

/* Inputs */
#login_t .auth-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e0e6ed;
  background: #fff;
  border-radius: 11px;
  font-size: 13px;
  color: #243746;
  padding: 11px 14px;
  transition: border-color .2s ease,
    box-shadow .2s ease;
}

#login_t .auth-input:focus {
  border-color: #b39360;
  box-shadow: 0 0 0 3px rgba(179, 147, 96, .12);
  outline: none;
}

#login_t .auth-input::placeholder {
  color: #a5afba;
  opacity: 1;
}

#login_t .auth-input[dir="ltr"] {
  text-align: left;
}

/* Forgot password */
#login_t .halah-login-forgot {
  display: flex;
  justify-content: flex-start;
  margin: 2px 0 24px;
}

#login_t .halah-login-forgot a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #9a7b49;
  text-decoration: none;
  transition: color .2s ease;
}

#login_t .halah-login-forgot a:hover {
  color: #102c38;
}

/* Submit */
#login_t .halah-login-submit {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: #102c38;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: background .2s ease,
    transform .2s ease;
}

#login_t .halah-login-submit:hover {
  background: #1b4350;
  color: #fff;
  transform: translateY(-1px);
}

#login_t .halah-login-submit:focus-visible {
  box-shadow: 0 0 0 3px rgba(179, 147, 96, .25);
}

/* Divider */
#login_t .halah-login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 25px 0;
  color: #98a3af;
  font-size: 11px;
  text-align: center;
}

#login_t .halah-login-divider::before,
#login_t .halah-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8edf2;
}

#login_t .halah-login-divider span {
  white-space: nowrap;
}

/* Google button */
#login_t .halah-google-login {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

#login_t .halah-google-login i {
  font-size: 19px;
  color: #4285f4;
}

#login_t .halah-google-login:hover {
  background: #fff;
  color: #102c38;
  border-color: #b39360;
  box-shadow: 0 5px 20px rgba(16, 44, 56, .07);
  transform: translateY(-1px);
}

/* Security footer */
#login_t .halah-login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 23px;
  font-size: 11px;
  color: #99a4af;
}

#login_t .halah-login-footer i {
  color: #7f9a8a;
}

/* Mobile */
@media (max-width: 576px) {
  #login_t .halah-login-heading h5 {
    font-size: 18px;
  }

  #login_t .halah-login-divider {
    gap: 9px;
  }
}


/* ============================================
   HALAH INVESTMENT - AUTH TABS
   ============================================ */

#authTabs.halah-auth-tabs {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  gap: 6px;
  padding: 6px;
  margin: 0 0 25px;
  list-style: none;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  direction: rtl;
}

#authTabs.halah-auth-tabs .nav-item {
  flex: 1 1 0;
  min-width: 0;
}

#authTabs.halah-auth-tabs .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-sm) - 5px);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

#authTabs.halah-auth-tabs .nav-link i {
  font-size: 15px;
  flex-shrink: 0;
}

#authTabs.halah-auth-tabs .nav-link:hover:not(.active) {
  background: var(--card);
  color: var(--brand);
}

#authTabs.halah-auth-tabs .nav-link.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-soft);
}

#authTabs.halah-auth-tabs .nav-link:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

@media (max-width: 400px) {
  #authTabs.halah-auth-tabs {
    gap: 4px;
    padding: 4px;
  }

  #authTabs.halah-auth-tabs .nav-link {
    gap: 6px;
    font-size: 12px;
    min-height: 44px;
  }

  #authTabs.halah-auth-tabs .nav-link i {
    font-size: 13px;
  }
}


/* ============================================
   HALAH INVESTMENT - FORGOT PASSWORD
   ============================================ */

.halah-forgot-card {
  background: var(--card);
  border-radius: var(--radius);
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

/* Header */
.halah-forgot-card .halah-forgot-heading {
  text-align: center;
  margin-bottom: 28px;
}

.halah-forgot-card .halah-forgot-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--brand);
  border: 1px solid var(--border);
  font-size: 26px;
  margin-bottom: 15px;
}

.halah-forgot-card .halah-forgot-heading h5 {
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}

.halah-forgot-card .halah-forgot-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  margin: 0;
}

/* Section */
.halah-forgot-card .halah-forgot-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.halah-forgot-card .halah-forgot-section-title i {
  color: var(--brand);
  font-size: 16px;
}

/* Field */
.halah-forgot-card .halah-forgot-field {
  margin-bottom: 24px;
}

.halah-forgot-card .auth-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.halah-forgot-card .auth-label i {
  color: var(--brand);
}

.halah-forgot-card .halah-required {
  color: #dc3545;
}

.halah-forgot-card .auth-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.halah-forgot-card .auth-input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: var(--ring);
}

.halah-forgot-card .auth-input::placeholder {
  color: var(--muted);
  opacity: .65;
}

.halah-forgot-card .auth-input[dir="ltr"] {
  text-align: left;
}

/* Hint */
.halah-forgot-card .halah-forgot-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.halah-forgot-card .halah-forgot-hint i {
  color: var(--brand);
  margin-top: 4px;
}

/* Submit */
.halah-forgot-card .halah-forgot-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.halah-forgot-card .halah-forgot-submit:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  opacity: .9;
  transform: translateY(-1px);
}

.halah-forgot-card .halah-forgot-submit:focus-visible {
  box-shadow: var(--ring);
}

/* Footer */
.halah-forgot-card .halah-forgot-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.halah-forgot-card .halah-forgot-footer i {
  color: var(--brand);
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 576px) {
  .halah-forgot-card .card-body {
    padding: 22px 16px !important;
  }

  .halah-forgot-card .halah-forgot-heading h5 {
    font-size: 18px;
  }

  .halah-forgot-card .halah-forgot-icon {
    width: 58px;
    height: 58px;
    font-size: 23px;
  }
}


/* ============================================
   HALAH INVESTMENT - VERIFY RECOVERY CODE
   ============================================ */

.halah-verify-card {
  background: var(--card);
  border-radius: var(--radius);
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

/* Heading */
.halah-verify-card .halah-verify-heading {
  text-align: center;
  margin-bottom: 28px;
}

.halah-verify-card .halah-verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 26px;
}

.halah-verify-card .halah-verify-heading h5 {
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}

.halah-verify-card .halah-verify-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  margin: 0;
}

/* Section title */
.halah-verify-card .halah-verify-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.halah-verify-card .halah-verify-section-title i {
  color: var(--brand);
  font-size: 16px;
}

/* Code field */
.halah-verify-card .halah-verify-field {
  margin-bottom: 24px;
}

.halah-verify-card .auth-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.halah-verify-card .halah-verify-required {
  color: #dc3545;
}

.halah-verify-card .halah-verify-input {
  width: 100%;
  min-height: 62px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 14px;
  text-align: center;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.halah-verify-card .halah-verify-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.halah-verify-card .halah-verify-input::placeholder {
  color: var(--muted);
  opacity: .45;
}

.halah-verify-card .halah-verify-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.halah-verify-card .halah-verify-hint i {
  color: var(--brand);
  margin-top: 4px;
}

/* Submit button */
.halah-verify-card .halah-verify-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.halah-verify-card .halah-verify-submit:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  opacity: .9;
  transform: translateY(-1px);
}

/* Resend */
.halah-verify-card .halah-verify-resend {
  margin-top: 24px;
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.halah-verify-card .halah-verify-resend p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
}

.halah-verify-card .halah-verify-resend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--brand);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.halah-verify-card .halah-verify-resend-btn:hover {
  background: var(--card);
  color: var(--brand);
  border-color: var(--brand);
}

/* Footer */
.halah-verify-card .halah-verify-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.halah-verify-card .halah-verify-footer i {
  color: var(--brand);
}

/* Mobile */
@media (max-width: 576px) {
  .halah-verify-card .card-body {
    padding: 22px 16px !important;
  }

  .halah-verify-card .halah-verify-icon {
    width: 58px;
    height: 58px;
    font-size: 23px;
  }

  .halah-verify-card .halah-verify-heading h5 {
    font-size: 18px;
  }

  .halah-verify-card .halah-verify-input {
    min-height: 58px;
    font-size: 25px;
    letter-spacing: 12px;
  }
}



/* ============================================
   HALAH INVESTMENT - RESET PASSWORD
   ============================================ */

.halah-reset-card {
  background: var(--card);
  border-radius: var(--radius);
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

/* Heading */
.halah-reset-card .halah-reset-heading {
  text-align: center;
  margin-bottom: 28px;
}

.halah-reset-card .halah-reset-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 26px;
}

.halah-reset-card .halah-reset-heading h5 {
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}

.halah-reset-card .halah-reset-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  margin: 0;
}

/* Section title */
.halah-reset-card .halah-reset-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.halah-reset-card .halah-reset-section-title i {
  color: var(--brand);
  font-size: 16px;
}

/* Password field */
.halah-reset-card .halah-reset-field {
  margin-bottom: 24px;
}

.halah-reset-card .auth-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.halah-reset-card .auth-label i {
  color: var(--brand);
}

.halah-reset-card .halah-reset-required {
  color: #dc3545;
}

.halah-reset-card .halah-reset-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.halah-reset-card .halah-reset-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.halah-reset-card .halah-reset-input::placeholder {
  color: var(--muted);
  opacity: .5;
}

/* Hint */
.halah-reset-card .halah-reset-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.halah-reset-card .halah-reset-hint i {
  color: var(--brand);
  margin-top: 4px;
}

/* Submit button */
.halah-reset-card .halah-reset-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.halah-reset-card .halah-reset-submit:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  opacity: .9;
  transform: translateY(-1px);
}

.halah-reset-card .halah-reset-submit:focus-visible {
  box-shadow: var(--ring);
}

/* Security notice */
.halah-reset-card .halah-reset-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 11px;
  line-height: 2;
}

.halah-reset-card .halah-reset-notice i {
  color: var(--brand);
  font-size: 15px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 576px) {
  .halah-reset-card .card-body {
    padding: 22px 16px !important;
  }

  .halah-reset-card .halah-reset-icon {
    width: 58px;
    height: 58px;
    font-size: 23px;
  }

  .halah-reset-card .halah-reset-heading h5 {
    font-size: 18px;
  }
}


/* Property types - availability */

.cats-type-item {
  min-width: 0;
}

.cats-type-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.cats-type-unavailable {
  opacity: .6;
  cursor: not-allowed;
}

.cats-type-disabled-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/************************************************************/


/* ============================================================
   HALAH INVESTMENT
   MAIN REAL ESTATE SEARCH HERO
   Full Width / Saudi Luxury / RTL / Responsive
   ============================================================ */


/* ============================================================
   01. MAIN HERO SECTION
   الصورة تغطي القسم كامل بدون تدرج أبيض بالأسفل
   ============================================================ */

.hi-property-finder {
  position: relative;
  isolation: isolate;
  display: flow-root;

  margin-top: 13px;

  width: 100vw;
  max-width: none;

  margin-inline: calc(50% - 50vw);

  min-height: 650px;

  padding: clamp(85px, 8vw, 135px) 0 clamp(80px, 7vw, 115px) !important;

  direction: rtl;
  text-align: right;

  color: #fff;

  /* الصورة + طبقة كحلية شفافة */
  background:
    linear-gradient(110deg,
      rgba(6, 20, 39, .82) 0%,
      rgba(8, 25, 45, .75) 45%,
      rgba(8, 25, 45, .68) 100%),
    linear-gradient(90deg,
      color-mix(in srgb,
        var(--brand) 19%,
        transparent),
      transparent 75%),
    url("https://halahinvestment.com/company/investment-about.webp"
    );

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  /*
      يمنع أي عناصر من الخلفية
      من الامتداد للقسم التالي
    */
  overflow: hidden;
}

/*
  إيقاف الخلفيات القديمة
  التي كانت تسبب التلاشي والتداخل
*/

.hi-property-finder::before,
.hi-property-finder::after {
  content: none !important;
  display: none !important;
}

/* Content container */

.hi-property-finder>.container {
  position: relative;
  z-index: 2;

  width: min(1390px, calc(100% - 48px));
  max-width: none;

  margin-inline: auto;
}

/* ============================================================
   02. HERO INTRO
   ============================================================ */

.hi-property-finder>.container>.text-center {
  position: relative;
  z-index: 2;

  display: block;

  max-width: 940px;
  margin: 0 auto 48px !important;

  text-align: center;
}

/* Small heading above title */

.hi-property-finder>.container>.text-center>.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 0;
  margin-bottom: 23px !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0;

  color: rgba(255, 255, 255, .88);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15px;

  box-shadow: none;
}

.hi-property-finder>.container>.text-center>.chip i {
  color: color-mix(in srgb,
      var(--brand) 48%,
      #fff);
  font-size: 15px;
}

/* Main hero title */

.hi-property-finder #hiSearchTitle {
  max-width: 900px;

  margin: 0 auto 20px;

  color: #fff !important;

  font-size: clamp(35px, 4.5vw, 66px);
  font-weight: 900;

  line-height: 1.32;
  letter-spacing: -.045em;

  text-shadow: 0 4px 22px rgba(0, 0, 0, .12);
}

/* No decorative divider */

.hi-property-finder #hiSearchTitle::before,
.hi-property-finder #hiSearchTitle::after {
  content: none !important;
  display: none !important;
}

/* Description */

.hi-property-finder>.container>.text-center>p {
  max-width: 730px;

  margin: 0 auto !important;

  color: rgba(255, 255, 255, .86) !important;

  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 500;

  line-height: 2;
}


/* ============================================================
   03. SEARCH PANEL
   بدون كارد - بدون بوردر - بدون خلفية
   ============================================================ */

.hi-property-finder .hi-search-panel {
  position: relative;
  z-index: 5;

  width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;

  box-shadow: none !important;

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  overflow: visible !important;
}

/* Remove old decorative layers */

.hi-property-finder .hi-search-panel::before,
.hi-property-finder .hi-search-panel::after {
  content: none !important;
  display: none !important;
}

.hi-property-finder #hiPropertySearchForm {
  position: relative;
  z-index: 1;
}

/* ============================================================
   04. FILTER HEADER
   ============================================================ */

.hi-property-finder #hiPropertySearchForm>.d-flex:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 30px !important;
  padding: 0 !important;

  border: 0 !important;
}

/* Header icon */

.hi-property-finder .hi-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 49px;
  height: 49px;
  flex: 0 0 49px;

  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;

  background: rgba(255, 255, 255, .12);
  color: #fff;

  font-size: 19px;

  box-shadow: none;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Search heading */

.hi-property-finder .hi-search-panel h5 {
  margin: 0 0 4px;

  color: #fff !important;

  font-size: 20px;
  font-weight: 800;

  line-height: 1.5;
}

.hi-property-finder .hi-search-panel .muted {
  color: rgba(255, 255, 255, .72) !important;

  font-size: 12px;
  line-height: 1.8;
}

/* Website display status */

.hi-property-finder .hi-search-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 9px 13px;

  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;

  background: rgba(255, 255, 255, .09);

  color: rgba(255, 255, 255, .90);

  font-size: 12px;
  font-weight: 700;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hi-property-finder .hi-search-status i {
  color: #a9e5bf;
  font-size: 14px;
}


/* ============================================================
   05. FILTER GRID
   ============================================================ */

.hi-property-finder #hiPropertySearchForm .row {
  margin-top: 0;
  row-gap: 19px;
}

.hi-property-finder #hiPropertySearchForm .row>[class*="col-"] {
  min-width: 0;
}

/* Labels over image */

.hi-property-finder #hiPropertySearchForm .form-label {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 12px;

  color: #fff !important;

  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.hi-property-finder #hiPropertySearchForm .form-label i {
  color: color-mix(in srgb,
      var(--brand) 48%,
      #fff);

  font-size: 15px;
}


/* ============================================================
   06. NATIVE SELECT FALLBACK
   ============================================================ */

.hi-property-finder #hiPropertySearchForm .form-select {
  width: 100%;

  height: 62px;
  min-height: 62px;

  padding: 12px 17px;
  padding-inline-end: 40px;

  border: 1px solid rgba(255, 255, 255, .50);
  border-radius: 11px;

  background-color: rgba(255, 255, 255, .96);

  color: #152536;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 7px 23px rgba(0, 0, 0, .08);

  transition:
    background-color .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.hi-property-finder #hiPropertySearchForm .form-select:hover {
  background-color: #fff;
}

.hi-property-finder #hiPropertySearchForm .form-select:focus {
  outline: none;

  border-color: var(--brand);

  box-shadow:
    0 0 0 4px rgba(255, 255, 255, .22);
}

.hi-property-finder #hiPropertySearchForm .form-select option {
  background: #fff;
  color: #152536;
}


/* ============================================================
   07. SELECT2
   ============================================================ */

.hi-property-finder .select2-container {
  width: 100% !important;
  max-width: 100%;

  min-width: 0;
}

/* Selection surface */

.hi-property-finder .select2-container--default .select2-selection--single {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;

  height: 62px !important;
  min-height: 62px;

  border: 1px solid rgba(255, 255, 255, .50);

  border-radius: 11px;

  background: rgba(255, 255, 255, .96);

  box-shadow: 0 7px 23px rgba(0, 0, 0, .08);

  cursor: pointer;

  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.hi-property-finder .select2-container--default .select2-selection--single:hover {
  background: #fff;
  border-color: rgba(255, 255, 255, .9);
}

/* Selected text */

.hi-property-finder .select2-container--default .select2-selection--single .select2-selection__rendered {
  display: block;

  width: 100%;
  height: 60px;

  padding-right: 17px;
  padding-left: 45px;

  color: #152536;

  font-size: 14px;
  font-weight: 800;

  line-height: 60px !important;

  text-align: right;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Arrow */

.hi-property-finder .select2-container--default .select2-selection--single .select2-selection__arrow {
  position: absolute;

  left: 13px;
  right: auto;
  top: 0;

  width: 25px;
  height: 100%;
}

.hi-property-finder .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-top-color: #607280;
  border-width: 5px 4px 0;
}

/* Active / Open */

.hi-property-finder .select2-container--default.select2-container--focus .select2-selection--single,
.hi-property-finder .select2-container--default.select2-container--open .select2-selection--single {
  background: #fff;

  border-color: color-mix(in srgb,
      var(--brand) 65%,
      #fff);

  box-shadow:
    0 0 0 4px rgba(255, 255, 255, .22),
    0 7px 23px rgba(0, 0, 0, .08);
}


/* ============================================================
   08. SELECT2 DROPDOWN
   Compatible with dropdownParent: body
   ============================================================ */

.hi-finder-dropdown.select2-dropdown {
  direction: rtl;

  overflow: hidden;

  border: 1px solid #e1e6eb;
  border-radius: 11px;

  background: #fff;

  box-shadow: 0 18px 45px rgba(0, 0, 0, .20);
}

.hi-finder-dropdown .select2-search--dropdown {
  padding: 11px;
}

.hi-finder-dropdown .select2-search__field {
  width: 100%;
  min-height: 44px;

  padding: 9px 13px;

  border: 1px solid #dce3e8 !important;
  border-radius: 8px;

  background: #f7f9fa;

  color: #152536;

  font-family: inherit;
  font-size: 13px;

  direction: rtl;
  text-align: right;

  outline: none;
}

.hi-finder-dropdown .select2-search__field:focus {
  border-color: var(--brand) !important;
  background: #fff;
}

.hi-finder-dropdown .select2-results__options {
  max-height: 285px !important;
}

.hi-finder-dropdown .select2-results__option {
  padding: 12px 15px;

  color: #152536;

  background: #fff;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;

  text-align: right;
}

.hi-finder-dropdown .select2-results__option--highlighted[aria-selected] {
  color: #fff !important;
  background: var(--brand) !important;
}

.hi-finder-dropdown .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
  background: color-mix(in srgb,
      var(--brand) 10%,
      #fff);

  color: #152536;
}

.hi-finder-dropdown .select2-results__message {
  padding: 18px;

  color: #6c7680;
  text-align: center;
}


/* ============================================================
   09. SEARCH ACTIONS
   مباشرة فوق الصورة
   ============================================================ */

.hi-property-finder .hi-search-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;

  flex-wrap: wrap;

  gap: 24px;

  margin-top: 29px !important;

  padding-top: 8px;

  border: 0 !important;

  background: transparent;
}

/* Help text */

.hi-property-finder .hi-search-help {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;

  max-width: 560px;

  color: rgba(255, 255, 255, .83);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.9;
}

.hi-property-finder .hi-search-help i {
  color: color-mix(in srgb,
      var(--brand) 40%,
      #fff);

  font-size: 15px;
  margin-top: 4px;

  flex-shrink: 0;
}

/* Common buttons */

.hi-property-finder .hi-search-submit,
.hi-property-finder .hi-search-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 55px;

  padding: 13px 26px;

  border-radius: 10px;

  font-size: 13px;
  font-weight: 900;

  white-space: nowrap;

  transition:
    transform .2s ease,
    background-color .2s ease,
    opacity .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

/* Main search button */

.hi-property-finder .hi-search-submit {
  border: 1px solid var(--brand);

  background: var(--brand);
  color: #fff;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, .17);
}

.hi-property-finder .hi-search-submit:hover {
  background: var(--brand);
  border-color: var(--brand);

  color: #fff;

  filter: brightness(1.12);

  transform: translateY(-2px);

  box-shadow:
    0 16px 32px rgba(0, 0, 0, .20);
}

/* Reset button */

.hi-property-finder .hi-search-reset {
  border: 1px solid rgba(255, 255, 255, .37);

  background: rgba(255, 255, 255, .10);
  color: #fff;

  box-shadow: none;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hi-property-finder .hi-search-reset:hover {
  background: rgba(255, 255, 255, .20);
  border-color: rgba(255, 255, 255, .65);

  color: #fff;

  transform: translateY(-1px);
}

/* Disabled */

.hi-property-finder .hi-search-submit:disabled,
.hi-property-finder .hi-search-reset:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* Keyboard accessibility */

.hi-property-finder .hi-search-submit:focus-visible,
.hi-property-finder .hi-search-reset:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .75);
  outline-offset: 3px;
}


/* ============================================================
   10. RESULTS AREA
   تظهر تحت المحرك - بتنسيق مستقل وواضح
   ============================================================ */

.hi-property-finder .hi-search-results {
  position: relative;
  z-index: 3;

  margin-top: 55px !important;

  padding: clamp(18px, 3vw, 32px);

  border-radius: 19px;

  background: var(--bg);

  color: var(--text);

  box-shadow:
    0 16px 45px rgba(0, 0, 0, .11);

  scroll-margin-top: 115px;

  animation: hiResultsAppear .35s ease both;
}

@keyframes hiResultsAppear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Results heading */

.hi-property-finder .hi-search-results .section-head {
  margin-bottom: 23px !important;

  padding-bottom: 16px;

  border-bottom: 1px solid var(--border);
}

.hi-property-finder .hi-search-results .section-head h2 {
  margin: 0;

  color: var(--text);

  font-size: clamp(21px, 2.5vw, 30px);
  font-weight: 900;
}

.hi-property-finder .hi-search-results .section-head p {
  color: var(--muted);
}

.hi-property-finder .hi-search-results .section-head .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 14px;

  border-radius: 8px;

  background: color-mix(in srgb,
      var(--brand) 9%,
      var(--card));

  border: 1px solid color-mix(in srgb,
      var(--brand) 20%,
      var(--border));

  color: var(--brand);

  font-weight: 800;
}

/* Loading */

.hi-property-finder #hiPropertyLoading {
  padding: 50px 20px !important;

  border: 1px solid var(--border);
  border-radius: 15px;

  background: var(--card);
}

.hi-property-finder #hiPropertyLoading .spinner-border {
  width: 37px;
  height: 37px;

  border-width: 3px;
}


/* ============================================================
   11. PROPERTY RESULT CARDS
   ============================================================ */

.hi-property-finder #hiPropertyResultsList>div {
  min-width: 0;
}

.hi-property-finder #hiPropertyResultsList .prod-card {
  position: relative;

  display: flex;
  flex-direction: column;

  height: 100%;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 15px;

  background: var(--card);

  box-shadow: var(--shadow-soft);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.hi-property-finder #hiPropertyResultsList .prod-card:hover {
  transform: translateY(-4px);

  border-color: color-mix(in srgb,
      var(--brand) 33%,
      var(--border));

  box-shadow:
    0 16px 36px rgba(0, 0, 0, .10);
}

/* Image */

.hi-property-finder #hiPropertyResultsList .prod-media {
  position: relative;

  height: 240px;
  aspect-ratio: auto;

  overflow: hidden;

  background: var(--bg-2);
}

.hi-property-finder .hi-card-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform .4s ease;
}

.hi-property-finder .prod-card:hover .hi-card-image {
  transform: scale(1.05);
}

/* Status labels */

.hi-property-finder .hi-card-status {
  position: absolute;
  z-index: 3;

  top: 13px;
  right: 13px;
  left: auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;

  padding: 6px 12px;

  border-radius: 7px;

  color: #fff;
  background: #182e42;

  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;

  white-space: nowrap;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, .13);
}

.hi-property-finder .hi-card-status.is-available {
  background: #188452;
}

.hi-property-finder .hi-card-status.is-rented {
  background: #b47b27;
}

.hi-property-finder .hi-card-status.is-sold {
  background: #687788;
}

.hi-property-finder .hi-card-status.is-reserved {
  background: #365da6;
}

/* Card body */

.hi-property-finder #hiPropertyResultsList .prod-body {
  display: flex;
  flex-direction: column;

  flex: 1;

  gap: 11px;

  padding: 19px 18px 14px;
}

.hi-property-finder .hi-card-title {
  display: -webkit-box;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;

  margin: 0;

  color: var(--text);

  font-size: 16px;
  font-weight: 900;

  line-height: 1.7;
}

.hi-property-finder .prod-meta {
  color: var(--muted);

  font-size: 12px;
  line-height: 1.7;
}

.hi-property-finder .prod-meta i {
  color: var(--brand);
}

/* Price */

.hi-property-finder .prod-price {
  margin-top: auto;

  padding-top: 14px;

  border-top: 1px solid var(--border);
}

.hi-property-finder .hi-card-price {
  color: var(--brand);

  font-size: 22px;
  font-weight: 900;

  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

/* Details button */

.hi-property-finder #hiPropertyResultsList .prod-actions {
  padding: 0 18px 18px;
}

.hi-property-finder .hi-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  min-height: 46px;

  padding: 10px 14px;

  border: 1px solid color-mix(in srgb,
      var(--brand) 22%,
      var(--border));

  border-radius: 9px;

  background: color-mix(in srgb,
      var(--brand) 9%,
      var(--card));

  color: var(--brand);

  font-size: 12px;
  font-weight: 800;

  box-shadow: none;
}

.hi-property-finder .hi-card-link:hover {
  color: #fff;

  background: var(--brand);
  border-color: var(--brand);
}


/* ============================================================
   12. EMPTY RESULTS
   ============================================================ */

.hi-property-finder #hiPropertyEmpty {
  padding: 45px 20px !important;

  border: 1px dashed var(--border);
  border-radius: 15px;

  background: var(--card);

  box-shadow: none;
}

.hi-property-finder #hiPropertyEmpty h5 {
  color: var(--text);
  font-weight: 800;
}

.hi-property-finder #hiPropertyEmpty .empty-text {
  color: var(--muted);

  font-size: 13px;
  line-height: 1.9;
}


/* ============================================================
   13. TABLET
   ============================================================ */

@media (max-width: 1199.98px) {

  .hi-property-finder {
    min-height: 630px;

    padding-top: 90px !important;
    padding-bottom: 95px !important;
  }

  .hi-property-finder #hiSearchTitle {
    font-size: clamp(34px, 4vw, 52px);
  }

  .hi-property-finder>.container>.text-center {
    margin-bottom: 40px !important;
  }
}

@media (max-width: 991.98px) {

  .hi-property-finder {
    padding-top: 75px !important;
    padding-bottom: 85px !important;

    background-position: center center;
  }

  .hi-property-finder .hi-search-actions {
    align-items: stretch;
  }

  .hi-property-finder .hi-search-actions>div:last-child {
    width: 100%;
    display: flex;
  }

  .hi-property-finder .hi-search-submit {
    flex: 1;
  }
}


/* ============================================================
   14. MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

  .hi-property-finder {
    min-height: auto;

    padding: 64px 0 75px !important;

    background-position: center center;
  }

  .hi-property-finder>.container {
    width: calc(100% - 34px);
  }

  .hi-property-finder>.container>.text-center {
    margin-bottom: 35px !important;
  }

  .hi-property-finder #hiSearchTitle {
    font-size: 34px;
    line-height: 1.4;
  }

  .hi-property-finder>.container>.text-center>p {
    font-size: 13px;
  }

  .hi-property-finder #hiPropertySearchForm>.d-flex:first-child {
    margin-bottom: 25px !important;
  }

  .hi-property-finder .hi-search-icon {
    width: 45px;
    height: 45px;
    flex-basis: 45px;

    font-size: 17px;
  }

  .hi-property-finder .hi-search-panel h5 {
    font-size: 17px;
  }

  .hi-property-finder .hi-search-status {
    width: 100%;
    justify-content: center;
  }

  .hi-property-finder .hi-search-results {
    margin-top: 40px !important;
  }
}

@media (max-width: 575.98px) {

  .hi-property-finder {
    padding-top: 48px !important;
    padding-bottom: 65px !important;
  }

  .hi-property-finder>.container {
    width: calc(100% - 28px);
  }

  .hi-property-finder #hiSearchTitle {
    font-size: 29px;
  }

  .hi-property-finder>.container>.text-center>.chip {
    font-size: 12px;
  }

  .hi-property-finder #hiPropertySearchForm .form-label {
    font-size: 12px;
  }

  .hi-property-finder #hiPropertySearchForm .form-select,
  .hi-property-finder .select2-container--default .select2-selection--single {
    height: 56px !important;
    min-height: 56px;
  }

  .hi-property-finder .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 54px;
    line-height: 54px !important;
  }

  .hi-property-finder .hi-search-actions {
    flex-direction: column;
    align-items: stretch;

    gap: 18px;

    margin-top: 25px !important;
  }

  .hi-property-finder .hi-search-actions>div:last-child {
    flex-direction: column-reverse;
  }

  .hi-property-finder .hi-search-submit,
  .hi-property-finder .hi-search-reset {
    width: 100%;
    min-height: 52px;
  }

  .hi-property-finder .hi-search-help {
    font-size: 11px;
  }

  .hi-property-finder .hi-search-results {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .hi-property-finder .hi-search-results .section-head {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hi-property-finder #hiPropertyResultsList .prod-media {
    height: 230px;
  }

  .hi-property-finder .hi-card-price {
    font-size: 20px;
  }
}


/* ============================================================
   15. ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  .hi-property-finder *,
  .hi-property-finder *::before,
  .hi-property-finder *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/********************************************************************************************************/

/* ============================================================
   HALAH INVESTMENT — SHARED PROPERTY CARD
   Add AFTER existing .prod-card and property finder styles.
   This file only styles the reusable PHP card, not the hero.
   ============================================================ */

.prod-card.hi-property-card {
  display: flex;
  flex-direction: column;
  direction: rtl;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Image + badges */
.prod-card.hi-property-card .prod-media,
.hi-property-finder #hiPropertyResultsList .hi-property-card .prod-media {
  position: relative;
  width: 100%;
  height: 248px;
  aspect-ratio: auto;
  background: var(--bg-2);
  overflow: hidden;
}

.hi-property-card .hi-card-image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--bg-2), var(--card));
  color: var(--muted);
  font-size: 46px;
}

.hi-property-card .hi-card-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.hi-property-card:hover .hi-card-photo {
  transform: scale(1.045);
}

.hi-property-card .hi-card-top-right {
  position: absolute;
  z-index: 5;
  right: 13px;
  left: auto;
  top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: calc(100% - 76px);
}

.hi-property-card .hi-card-top-right .hi-card-status,
.hi-property-finder .hi-property-card .hi-card-top-right .hi-card-status {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  background: #203347;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

.hi-property-card .hi-card-status.is-available {
  background: #148158 !important;
}

.hi-property-card .hi-card-status.is-rented {
  background: #a66d19 !important;
}

.hi-property-card .hi-card-status.is-reserved {
  background: #285caa !important;
}

.hi-property-card .hi-card-status.is-sold {
  background: #667482 !important;
}

.hi-property-card .hi-card-featured {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .94);
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
  background: var(--bs-warning);
}

/* Wishlist, share, compare: top LEFT, vertically */
.hi-property-card .hi-card-side-actions {
  position: absolute;
  z-index: 6;
  top: 13px;
  left: 13px;
  right: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hi-property-card .hi-card-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  padding: 0;

  border-radius: 11px;
  background: rgb(255 255 255 / 42%);
  color: #233545;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .13);
  backdrop-filter: blur(5px);
  transition: transform .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
}

.hi-property-card .hi-card-icon-btn:hover {
  transform: translateY(-2px);
  background: var(--brand);
  color: #fff;
}

.hi-property-card .hi-card-icon-btn.wish_remove,
.hi-property-card .hi-card-icon-btn.is-active {
  color: #df3f52;
  background: #fff2f4;
  border-color: #ffd0d8;
}

.hi-property-card .hi-card-icon-btn.wish_remove i {
  font-weight: 900;
}

.hi-property-card .hi-card-icon-btn:focus-visible,
.hi-property-card .hi-card-detail:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* Title / region / purpose / type */
.prod-card.hi-property-card .prod-body,
.hi-property-finder #hiPropertyResultsList .hi-property-card .prod-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 19px 12px;
}

.hi-property-card .hi-card-title,
.hi-property-finder .hi-property-card .hi-card-title {
  min-height: 28px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.7;
}

.hi-property-card .hi-card-title a {
  color: inherit;
  text-decoration: none;
}

.hi-property-card .hi-card-title a:hover {
  color: var(--brand);
}

.hi-property-card .hi-card-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 9px;
  min-height: 46px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.hi-property-card .hi-card-info span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.hi-property-card .hi-card-info i {
  color: var(--brand);
}

/* Price RIGHT, rating LEFT (RTL) */
.hi-property-card .hi-card-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--border);
}

.hi-property-card .hi-card-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hi-property-card .hi-card-price-label {
  color: var(--muted);
  font-size: 11px;
}

.hi-property-card .hi-card-price,
.hi-property-finder .hi-property-card .hi-card-price {
  color: var(--brand);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.hi-property-card .hi-card-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  direction: ltr;
}

.hi-property-card .hi-card-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #d5a23e;
  font-size: 11px;
  white-space: nowrap;
}

.hi-property-card .hi-card-rating-num {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.hi-property-card .hi-card-rating-num small {
  font-size: 11px;
}

/* Details link */
.prod-card.hi-property-card .prod-actions,
.hi-property-finder #hiPropertyResultsList .hi-property-card .prod-actions {
  display: flex;
  padding: 0 19px 19px;
  margin-top: auto;
}

.hi-property-card .hi-card-detail,
.hi-property-finder .hi-property-card .hi-card-detail {
  display: inline-flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity .18s ease;
}

.hi-property-card .hi-card-detail:hover {
  color: #fff;
  opacity: .90;
}

@media (max-width: 575.98px) {
  .prod-card.hi-property-card .prod-media {
    height: 235px;
  }

  .hi-property-card .hi-card-icon-btn {
    width: 35px;
    height: 35px;
  }

  .hi-property-card .hi-card-footer-meta {
    align-items: center;
  }

  .hi-property-card .hi-card-price {
    font-size: 19px;
  }
}

/* Property Cards - 2 Columns on Mobile */
@media (max-width: 575.98px) {

  #hiPropertyResultsList {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 12px;
  }

  #hiPropertyResultsList>.col-6 {
    min-width: 0;
  }

  #hiPropertyResultsList .prod-media {
    height: 160px !important;
  }

  #hiPropertyResultsList .prod-body {
    padding: 11px 10px 8px !important;
    gap: 7px !important;
  }

  #hiPropertyResultsList .hi-card-title {
    font-size: 12px !important;
    line-height: 1.6;
  }

  #hiPropertyResultsList .prod-meta {
    font-size: 10px;
    gap: 5px;
    flex-wrap: wrap;
  }

  #hiPropertyResultsList .hi-card-price {
    font-size: 16px !important;
  }

  #hiPropertyResultsList .prod-actions {
    padding: 0 9px 10px !important;
  }

  #hiPropertyResultsList .hi-card-link {
    min-height: 37px;
    padding: 8px 5px;
    font-size: 10px;
  }

  #hiPropertyResultsList .hi-card-status {
    font-size: 9px;
    padding: 4px 7px;
  }
}

/* Halah Investment — homepage sectors only; intentionally independent from company-page CSS */
.halah-home-sectors {
  --hhs-brand: var(--brand, #126b53);
  --hhs-text: var(--text, #172321);
  --hhs-muted: var(--muted, #64748b);
  --hhs-card: var(--card, #fff);
  --hhs-bg: var(--bg-2, #f6f7f8);
  --hhs-border: var(--border, rgba(17, 24, 39, .10));
  width: 100%;
  padding: clamp(64px, 7vw, 108px) 0;

  color: var(--hhs-text);
  direction: rtl;
}

.halah-home-sectors *,
.halah-home-sectors *::before,
.halah-home-sectors *::after {
  box-sizing: border-box;
}

.halah-home-sectors__container {
  width: min(calc(100% - 36px), var(--container-max, 1380px));
  margin-inline: auto;
}

.halah-home-sectors__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.halah-home-sectors__intro {
  max-width: 820px;
}

.halah-home-sectors__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--hhs-brand);
}

.halah-home-sectors__eyebrow-line {
  width: 25px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.halah-home-sectors__header h2 {
  margin: 0;
  font-size: clamp(29px, 3.3vw, 48px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.035em;
  color: var(--hhs-text);
}

.halah-home-sectors__header h2 span {
  color: var(--hhs-brand);
}

.halah-home-sectors__header p {
  max-width: 750px;
  margin: 14px 0 0;
  color: var(--hhs-muted);
  font-size: 14px;
  line-height: 2.05;
}

.halah-home-sectors__index {
  color: var(--hhs-muted);
  font: 500 clamp(24px, 3vw, 36px)/1.1 Georgia, serif;
  white-space: nowrap;
  opacity: .5;
  padding-bottom: 5px;
}

.halah-home-sectors__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.halah-home-sectors__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hhs-border);
  border-radius: 23px;
  background: var(--hhs-card);
  color: var(--hhs-text);
  text-decoration: none !important;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.halah-home-sectors__card:hover {
  color: var(--hhs-text);
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--hhs-brand) 30%, var(--hhs-border));
  box-shadow: 0 22px 45px rgba(0, 0, 0, .10);
}

.halah-home-sectors__card:focus-visible {
  outline: 3px solid var(--hhs-brand);
  outline-offset: 4px;
}

.halah-home-sectors__media {
  position: relative;
  height: clamp(210px, 19vw, 275px);
  overflow: hidden;
  isolation: isolate;
  background: var(--hhs-bg);
}

.halah-home-sectors__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 25, 31, .30), transparent 45%, rgba(7, 25, 31, .30));
  pointer-events: none;
}

.halah-home-sectors__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .55s ease;
}

.halah-home-sectors__card:hover .halah-home-sectors__media img {
  transform: scale(1.045);
}

.halah-home-sectors__number {
  position: absolute;
  z-index: 1;
  top: 18px;
  inset-inline-start: 21px;
  color: rgba(255, 255, 255, .87);
  font: 400 36px/1 Georgia, serif;
}

.halah-home-sectors__icon {
  position: absolute;
  z-index: 1;
  inset-inline-end: 22px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 14px;
  color: #fff;
  background: rgba(10, 32, 36, .4);
  border: 1px solid rgba(255, 255, 255, .36);
  backdrop-filter: blur(9px);
  font-size: 20px;
}

.halah-home-sectors__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(19px, 2.3vw, 28px);
}

.halah-home-sectors__content h3 {
  margin: 0 0 10px;
  color: var(--hhs-text);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 900;
  line-height: 1.5;
}

.halah-home-sectors__content p {
  margin: 0;
  color: var(--hhs-muted);
  font-size: 13px;
  line-height: 2;
}

.halah-home-sectors__foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.halah-home-sectors__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.halah-home-sectors__tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--hhs-border);
  background: var(--hhs-bg);
  color: var(--hhs-text);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.halah-home-sectors__arrow {
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--hhs-brand);
  background: color-mix(in srgb, var(--hhs-brand) 9%, var(--hhs-card));
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.halah-home-sectors__card:hover .halah-home-sectors__arrow {
  background: var(--hhs-brand);
  color: #fff;
  transform: translateX(-3px);
}

@media (max-width: 767.98px) {
  .halah-home-sectors__grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .halah-home-sectors__header {
    align-items: start;
  }

  .halah-home-sectors__index {
    display: none;
  }

  .halah-home-sectors__media {
    height: clamp(205px, 51vw, 275px);
  }
}

@media (max-width: 480px) {
  .halah-home-sectors__container {
    width: calc(100% - 28px);
  }

  .halah-home-sectors__content {
    padding: 18px;
  }

  .halah-home-sectors__foot {
    padding-top: 19px;
  }

  .halah-home-sectors__tags span {
    font-size: 10px;
    padding: 5px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .halah-home-sectors__card,
  .halah-home-sectors__media img,
  .halah-home-sectors__arrow {
    transition: none;
  }
}


/* ===============================================
   HALAH INVESTMENT - HOME PROPERTY TYPES SWIPER
   =============================================== */

.hi-home-types {
  background: var(--bg);
  color: var(--text);
}

.hi-home-types__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.hi-home-types__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.hi-home-types__head h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(23px, 2.7vw, 36px);
  font-weight: 900;
}

.hi-home-types__head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.hi-home-types__browse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--brand);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hi-home-types__browse:hover {
  color: var(--brand);
  opacity: .78;
}

/* Property type cards */

.hi-home-types .featured-cat-card {
  color: var(--text);
}

.hi-home-types .featured-cat-title {
  color: var(--text);
}

.hi-home-types .featured-cat-card:hover .featured-cat-title {
  color: var(--brand);
}

.hi-home-types .featured-cat-icon {
  background: color-mix(in srgb,
      var(--brand) 4%,
      var(--card));
  border-color: var(--border);
}

.hi-home-types .featured-cat-card:hover .featured-cat-icon {
  border-color: color-mix(in srgb,
      var(--brand) 38%,
      var(--border));
  box-shadow: var(--shadow-soft);
}

.hi-home-types .featured-cat-icon::before {
  border-color: color-mix(in srgb,
      var(--brand) 12%,
      transparent);
}

/* Font Awesome fallback */

.hi-home-types__icon-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 43px;
}

.hi-home-types .featured-cat-icon img {
  position: relative;
  z-index: 1;
  background: var(--card);
}

/* Property count / coming soon */

.hi-home-types__meta {
  margin-top: -5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.hi-home-types__meta--soon {
  color: var(--muted);
}

.hi-home-types__card--soon {
  cursor: default;
  opacity: .60;
}

.hi-home-types__card--soon:hover,
.hi-home-types__card--soon:hover .featured-cat-icon {
  transform: none;
}

/* Navigation arrows */

.hi-home-types .cat-swiper-prev:hover,
.hi-home-types .cat-swiper-next:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Mobile */

@media (max-width: 767.98px) {

  .hi-home-types__head {
    align-items: start;
  }

  .hi-home-types__head h2 {
    font-size: 24px;
  }

  .hi-home-types__browse {
    font-size: 11px;
  }

  .hi-home-types__icon-fallback {
    font-size: 29px;
  }

  .hi-home-types__meta {
    font-size: 10px;
  }
}

/*****************************************************/

/* HALAH - PROPERTY REQUEST OFFCANVAS */

.hi-request-canvas {
  --bs-offcanvas-width: min(480px, 100vw);
  background: var(--card);
  color: var(--text);
}

.hi-request-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.hi-request-header .offcanvas-title {
  color: var(--text);
  font-size: 18px;
}

.hi-request-header .small {
  color: var(--muted);
  font-size: 12px;
}

.hi-request-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
}

.hi-request-body {
  padding: 24px;
}

.hi-request-intro {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2);
}

.hi-request-intro h6 {
  color: var(--text);
}

.hi-request-intro p {
  color: var(--muted);
  line-height: 1.9;
}

/* GUEST */

.hi-request-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px 4px;
  text-align: center;
}

.hi-request-guest-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 25px;
  border-radius: 24px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--card));
  font-size: 32px;
}

.hi-request-guest h4 {
  color: var(--text);
  font-size: 22px;
}

.hi-request-guest-desc {
  max-width: 350px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.hi-request-guest-benefits {
  width: 100%;
  margin: 25px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--bg-2);
  text-align: right;
}

.hi-request-guest-benefits>div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  color: var(--text);
  font-size: 13px;
}

.hi-request-guest-benefits i {
  color: var(--brand);
}

.hi-request-login-btn,
.hi-request-submit {
  min-height: 54px;
  border-radius: 11px;
  font-weight: 800;
}

/* FORM */

.hi-request-canvas .form-label {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
}

.hi-request-canvas .form-control,
.hi-request-canvas .form-select {
  min-height: 47px;
  border-radius: 10px;
}

.hi-request-canvas textarea.form-control {
  min-height: 125px;
  resize: vertical;
}

.hi-request-canvas .form-control:focus,
.hi-request-canvas .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}

@media (max-width: 575.98px) {
  .hi-request-header {
    padding: 17px;
  }

  .hi-request-body {
    padding: 18px;
  }

  .hi-request-guest {
    padding-top: 25px;
  }
}


/* ==============================================
   GLOBAL SELECT2 STYLE
   Class: js-select2-global
   Pages / Offcanvas / Modals / RTL
   ============================================== */

/* Container */

select.js-select2-global+.select2-container {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: inherit;
}

/* Select box */

select.js-select2-global+.select2-container .select2-selection--single {
  display: flex !important;
  align-items: center;

  width: 100%;
  height: 48px !important;
  min-height: 48px;

  padding: 0 !important;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;

  box-shadow: none;
  cursor: pointer;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

/* Selected text */

select.js-select2-global+.select2-container .select2-selection--single .select2-selection__rendered {
  display: block;

  width: 100%;
  height: 46px;

  padding: 0 14px 0 38px !important;

  color: var(--text) !important;

  font-family: inherit;
  font-size: 13px !important;
  font-weight: 600;

  line-height: 46px !important;
  text-align: right;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Placeholder */

select.js-select2-global+.select2-container .select2-selection__placeholder {
  color: var(--muted) !important;
  font-weight: 400;
}

/* Arrow position - RTL */

select.js-select2-global+.select2-container .select2-selection--single .select2-selection__arrow {
  position: absolute;

  top: 0 !important;
  left: 10px !important;
  right: auto !important;

  width: 24px;
  height: 46px !important;
}

/* Arrow color */

select.js-select2-global+.select2-container .select2-selection--single .select2-selection__arrow b {
  border-top-color: var(--muted);
}

/* Hover */

select.js-select2-global+.select2-container .select2-selection--single:hover {
  border-color: color-mix(in srgb,
      var(--brand) 45%,
      var(--border));
}

/* Focus / Open */

select.js-select2-global+.select2-container--default.select2-container--focus .select2-selection--single,

select.js-select2-global+.select2-container--default.select2-container--open .select2-selection--single {
  background: var(--card);
  border-color: var(--brand) !important;

  box-shadow: 0 0 0 3px color-mix(in srgb,
      var(--brand) 12%,
      transparent);
}

/* Open arrow */

select.js-select2-global+.select2-container--open .select2-selection__arrow b {
  border-bottom-color: var(--brand) !important;
  border-top-color: transparent !important;
}

/* Disabled select */

select.js-select2-global:disabled+.select2-container .select2-selection--single {
  background: var(--bg-2);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: .65;
}

select.js-select2-global:disabled+.select2-container .select2-selection__rendered {
  color: var(--muted) !important;
}

/* Keep controls inside their columns */

.offcanvas select.js-select2-global+.select2-container,
.modal select.js-select2-global+.select2-container {
  max-width: 100% !important;
}

.offcanvas .row>[class*="col-"],
.modal .row>[class*="col-"] {
  min-width: 0;
}

/* Dropdown inside Offcanvas and Modal */

.offcanvas .hi-finder-dropdown,
.modal .hi-finder-dropdown {
  direction: rtl;
  overflow: hidden;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;

  box-shadow: 0 14px 35px rgba(0, 0, 0, .15);
}

.offcanvas .hi-finder-dropdown .select2-results__option,
.modal .hi-finder-dropdown .select2-results__option {
  padding: 11px 14px;
  color: var(--text);

  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.offcanvas .hi-finder-dropdown .select2-results__option--highlighted[aria-selected],
.modal .hi-finder-dropdown .select2-results__option--highlighted[aria-selected] {
  background: var(--brand) !important;
  color: #fff !important;
}

.offcanvas .hi-finder-dropdown .select2-search__field,
.modal .hi-finder-dropdown .select2-search__field {
  min-height: 42px;

  padding: 9px 12px;

  background: var(--bg);
  color: var(--text);

  border: 1px solid var(--border) !important;
  border-radius: 8px;

  font-family: inherit;
  font-size: 13px;

  direction: rtl;
  text-align: right;
}

.offcanvas .hi-finder-dropdown .select2-search__field:focus,
.modal .hi-finder-dropdown .select2-search__field:focus {
  outline: none;
  border-color: var(--brand) !important;
}

/* Mobile */

@media (max-width: 575.98px) {

  select.js-select2-global+.select2-container .select2-selection--single {
    height: 46px !important;
    min-height: 46px;
  }

  select.js-select2-global+.select2-container .select2-selection__rendered {
    height: 44px;
    line-height: 44px !important;
    font-size: 12px !important;
  }

  select.js-select2-global+.select2-container .select2-selection__arrow {
    height: 44px !important;
  }
}

/* =========================================================
   HALAH INVESTMENT - Reusable Listing / Filters
   All rules scoped to .hi-pl (except the page's empty 404 state)
   Existing property card CSS remains the single source of truth.
   ========================================================= */

.hi-pl-page,
.hi-pl {
  color: var(--text);
}

.hi-pl {
  --hi-pl-line: var(--border);
  --hi-pl-surface: var(--card);
  --hi-pl-muted: var(--muted);
  padding-bottom: 44px;
}

.hi-pl *,
.hi-pl *::before,
.hi-pl *::after {
  box-sizing: border-box;
}

.hi-pl-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 5px 0 25px;
}

.hi-pl-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hi-pl-intro h2 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.4;
}

.hi-pl-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.hi-pl-layout,
.hi-pl-results-column,
.hi-pl-filter-column {
  min-width: 0;
}

/* Filter panel is an ordinary sidebar on desktop, Bootstrap offcanvas on mobile. */
.hi-pl .hi-pl-sidebar {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
}

.hi-pl-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 19px 14px;
  border-bottom: 1px solid var(--border);
}

.hi-pl-filter-head h2 {
  color: var(--text);
  font-size: 16px;
  margin: 0 0 7px;
  font-weight: 900;
  display: flex;
  gap: 9px;
  align-items: center;
}

.hi-pl-filter-head h2 i {
  color: var(--brand);
  font-size: 15px;
}

.hi-pl-filter-head p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 11px;
  margin: 0;
}

.hi-pl-filter-body {
  display: block;
  padding: 18px 19px 20px;
  overflow-y: auto;
}

.hi-pl-filter-group {
  margin-bottom: 20px;
}

.hi-pl-label {
  display: block;
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.hi-pl .form-control-modern,
.hi-pl .form-select {
  min-height: 44px;
  width: 100%;
  font-size: 12px;
  border-radius: 10px;
  border-color: var(--border);
  background-color: var(--card);
  color: var(--text);
}

.hi-pl .form-control-modern:focus,
.hi-pl .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}

.hi-pl-input-icon {
  position: relative;
}

.hi-pl-input-icon>i {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 13px;
}

.hi-pl-input-icon .form-control {
  padding-right: 35px;
}

.hi-pl-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hi-pl-range-grid label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.hi-pl-range-grid input {
  margin-top: 7px;
  min-width: 0;
}

/* Details with searchable checkboxes */
.hi-pl-filter-fold {
  border-top: 1px solid var(--border);
  padding: 13px 0 15px;
}

.hi-pl-filter-fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  gap: 10px;
  user-select: none;
}

.hi-pl-filter-fold summary::-webkit-details-marker {
  display: none;
}

.hi-pl-filter-fold summary>span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hi-pl-filter-fold summary i {
  color: var(--brand);
}

.hi-pl-filter-fold summary::after {
  content: '+';
  font-weight: 800;
  color: var(--brand);
  font-size: 18px;
  margin-inline-start: auto;
}

.hi-pl-filter-fold[open] summary::after {
  content: '−';
}

.hi-pl-option-count {
  padding: 2px 7px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}

.hi-pl-option-search {
  margin: 13px 0 10px;
}

.hi-pl-check-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 218px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 3px;
  scrollbar-width: thin;
}

.hi-pl-check-option {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.7;
  padding: 7px;
  border-radius: 9px;
  color: var(--text);
}

.hi-pl-check-option:hover {
  background: var(--bg-2);
}

.hi-pl-check-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.hi-pl-filter-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.hi-pl-spec-label {
  margin-top: 12px;
}

.hi-pl-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 19px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.hi-pl-filter-actions .btn {
  flex: 1;
  min-height: 43px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
}

/* Results toolbar */
.hi-pl-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  min-height: 78px;
  padding: 14px 17px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 13px;
}

.hi-pl-toolbar-start {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hi-pl-total {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.hi-pl-total-number {
  color: var(--brand);
  font-size: 17px;
}

.hi-pl-sort-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hi-pl-sort-label span {
  white-space: nowrap;
}

.hi-pl-sort-label .hi-pl-sort {
  min-height: 43px;
  width: 190px;
  max-width: 100%;
  font-weight: 700;
}

.hi-pl-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.hi-pl-active-filters:empty {
  display: none;
}

.hi-pl-active-count {
  background: color-mix(in srgb, var(--brand) 9%, var(--card));
  color: var(--brand);
  padding: 7px 11px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
}

.hi-pl-clear-chips {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 6px;
  text-decoration: underline;
}

.hi-pl-mobile-trigger {
  min-height: 41px;
  font-size: 12px;
  border-radius: 10px;
}

/* Cards: use the existing #property_card.php CSS; only define grid behavior. */
.hi-pl-results {
  min-height: 180px;
  position: relative;
}

.hi-pl-cards {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}

.hi-pl .hi-property-item {
  min-width: 0;
}

.hi-pl-is-loading {
  opacity: .38;
  pointer-events: none;
  transition: opacity .16s ease;
}

.hi-pl-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 30px;
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
}

.hi-pl-empty {
  border: 1px dashed var(--border);
  background: var(--card);
  text-align: center;
  border-radius: 16px;
  padding: 48px 20px;
}

.hi-pl-empty>i {
  display: block;
  font-size: 35px;
  color: var(--brand);
  margin-bottom: 13px;
}

.hi-pl-empty h3 {
  font-size: 18px;
  color: var(--text);
  font-weight: 900;
  margin: 0 0 12px;
}

.hi-pl-empty p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}

.hi-pl-load-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px 0;
}

.hi-pl-more {
  min-height: 47px;
  border-radius: 12px;
  font-weight: 800;
  padding: 9px 24px;
  font-size: 12px;
}

.hi-pl-more.hi-pl-loading-more {
  opacity: .6;
}

/* Optional property request CTA: same shared offcanvas ID as the homepage. */
.hi-pl-request-cta {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 23px 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--card);
}

.hi-pl-request-cta strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 7px;
}

.hi-pl-request-cta p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}

.hi-pl-request-cta .btn {
  min-height: 45px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 11px;
  white-space: nowrap;
}

.hi-pl-not-found {
  background: var(--card);
  padding: 58px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
}

.hi-pl-not-found i {
  display: block;
  color: var(--brand);
  font-size: 40px;
  margin-bottom: 18px;
}

.hi-pl-not-found h1 {
  font-size: 25px;
  color: var(--text);
  font-weight: 900;
}

.hi-pl-not-found p {
  color: var(--muted);
  font-size: 13px;
}

@media (min-width:992px) {

  /* Bootstrap offcanvas becomes normal in-flow sidebar on desktop. */
  .hi-pl .hi-pl-sidebar.offcanvas {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
    height: auto !important;
    width: auto !important;
    max-width: 100%;
    z-index: auto;
    inset: auto;
    margin: 0;
    overflow: visible;
  }

  .hi-pl .hi-pl-filter-body {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width:991.98px) {
  .hi-pl .hi-pl-sidebar.offcanvas {
    --bs-offcanvas-width: min(420px, 100vw);
    border-radius: 0;
    border: 0;
  }

  .hi-pl .hi-pl-filter-body {
    height: auto;
    overflow-y: auto;
  }

  .hi-pl .hi-pl-filter-head {
    padding: 19px;
  }

  .hi-pl .hi-pl-filter-actions {
    position: sticky;
    bottom: 0;
    padding: 12px 0;
    background: var(--card);
    z-index: 2;
  }

  .hi-pl .hi-pl-toolbar {
    margin-top: 0;
  }
}

@media (max-width:575.98px) {
  .hi-pl-intro h2 {
    font-size: 24px;
  }

  .hi-pl-intro p {
    font-size: 12px;
  }

  .hi-pl-toolbar {
    padding: 12px;
    gap: 10px;
  }

  .hi-pl-sort-label {
    gap: 5px;
  }

  .hi-pl-sort-label>span {
    display: none;
  }

  .hi-pl-sort-label .hi-pl-sort {
    width: 150px;
    min-height: 42px;
    font-size: 11px;
  }

  .hi-pl-mobile-trigger {
    font-size: 11px;
    padding-inline: 12px;
  }

  .hi-pl-cards {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 12px;
  }

  .hi-pl .hi-pl-cards .prod-media {
    height: 160px;
  }

  .hi-pl .hi-pl-cards .hi-card-title {
    font-size: 12px;
  }

  .hi-pl .hi-pl-cards .hi-card-price {
    font-size: 15px;
  }

  .hi-pl-request-cta {
    padding: 17px;
  }

  .hi-pl-request-cta .btn {
    width: 100%;
  }
}


/* ========================================================
   HALAH INVESTMENT — REUSABLE SECTOR CTA
   Suitable for brokerage, property management, development,
   and hospitality. Uses the site's existing brand variables.
   ======================================================== */
.hi-sector-page {
  color: var(--text);
}

.hi-sector-cta,
.hi-sector-cta * {
  box-sizing: border-box;
}

.hi-sector-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(350px, .95fr);
  align-items: center;
  gap: clamp(22px, 3.5vw, 58px);
  padding: clamp(25px, 4vw, 48px);
  margin: 10px 0 36px;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, #28354b);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--brand) 50%, transparent), transparent 57%),
    linear-gradient(118deg, #112333 0%, #172941 48%, color-mix(in srgb, var(--brand) 44%, #0e1e31) 100%);
  box-shadow: 0 18px 42px rgba(9, 23, 45, .13);
  overflow: hidden;
}

.hi-sector-cta::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .3;
  background: repeating-linear-gradient(125deg, transparent 0, transparent 44px,
      rgba(255, 255, 255, .09) 45px, transparent 46px);
  mask-image: linear-gradient(90deg, transparent, #000);
}

.hi-sector-cta::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  left: -110px;
  top: -160px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
}

.hi-sector-cta__copy,
.hi-sector-cta__actions {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hi-sector-cta__eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .21);
  border-radius: 40px;
  background: rgba(255, 255, 255, .09);
  color: #e7effc;
  font-size: 12px;
  font-weight: 700;
}

.hi-sector-cta h1 {
  color: #fff;
  margin: 0 0 12px;
  font-size: clamp(23px, 2.5vw, 36px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -.25px;
}

.hi-sector-cta__copy>p {
  color: rgba(245, 248, 255, .79);
  line-height: 2;
  max-width: 650px;
  font-size: 14px;
  margin: 0;
}

.hi-sector-cta__points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 19px;
  margin-top: 22px;
}

.hi-sector-cta__points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #eaf0f9;
  font-size: 12px;
  font-weight: 700;
}

.hi-sector-cta__points i {
  font-size: 11px;
  color: #8ee0be;
}

.hi-sector-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
}

.hi-sector-cta__symbol {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .11);
  font-size: 24px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.hi-sector-cta__buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.hi-sector-cta__buttons .hi-sector-cta__add {
  flex: 1.45 1 0;
}

.hi-sector-cta__buttons .hi-sector-cta__whatsapp {
  flex: 1 1 0;
}

.hi-sector-cta__buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: normal;
  line-height: 1.6;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.hi-sector-cta__buttons .btn:hover {
  transform: translateY(-2px);
}

.hi-sector-cta__buttons .hi-sector-cta__add {
  background: #fff;
  color: #132841;
  border-color: #fff;
  box-shadow: 0 9px 25px rgba(0, 0, 0, .1);
}

.hi-sector-cta__buttons .hi-sector-cta__add:hover {
  background: #eff4fd;
  color: #132841;
  border-color: #eff4fd;
}

.hi-sector-cta__buttons .hi-sector-cta__whatsapp {
  color: #fff;
  background: #128653;
  border: 1px solid rgba(255, 255, 255, .17);
}

.hi-sector-cta__buttons .hi-sector-cta__whatsapp:hover {
  color: #fff;
  background: #0f7548;
}

.hi-sector-cta__buttons .hi-sector-cta__whatsapp i {
  font-size: 18px;
}

.hi-sector-cta__disabled {
  opacity: .55;
  cursor: not-allowed;
}

.hi-sector-cta__disabled:hover {
  transform: none !important;
}

.hi-sector-cta__hint {
  color: rgba(234, 240, 249, .7);
  text-align: center;
  font-size: 11px;
  line-height: 1.75;
  margin: 0;
}

/* Scoped: never affect other pages' cards, grids, or navbar. */
@media (max-width: 991.98px) {
  .hi-sector-cta {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 28px;
  }

  .hi-sector-cta__actions {
    max-width: 560px;
    width: 100%;
  }

  .hi-sector-cta__symbol {
    display: none;
  }

  .hi-sector-cta__buttons {
    flex-direction: row;
  }

  .hi-sector-cta__buttons .btn {
    flex: 1 1 0;
  }
}

@media (max-width: 575.98px) {
  .hi-sector-cta {
    margin: 4px 0 28px;
    border-radius: 17px;
    padding: 23px 18px;
    gap: 23px;
  }

  .hi-sector-cta__eyebrow {
    font-size: 11px;
  }

  .hi-sector-cta h1 {
    font-size: 23px;
  }

  .hi-sector-cta__copy>p {
    font-size: 12px;
  }

  .hi-sector-cta__points {
    gap: 9px 12px;
    margin-top: 15px;
  }

  .hi-sector-cta__points span {
    font-size: 10px;
  }

  .hi-sector-cta__buttons {
    flex-direction: column;
  }

  .hi-sector-cta__buttons .btn {
    min-height: 46px;
  }
}

/* ==========================================
   BROKERAGE PROPERTY SUBMISSION
   ========================================== */

.hi-broker-submit-canvas {
  --bs-offcanvas-width: min(510px, 100vw);
  background: var(--card);
  color: var(--text);
}

.hi-broker-submit-canvas .offcanvas-header {
  padding: 22px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.hi-broker-submit-canvas .offcanvas-title {
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
}

.hi-broker-submit-canvas .hi-bs-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.hi-bs-header-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
}

.hi-broker-submit-canvas .offcanvas-body {
  padding: 24px;
}

/* INTRO */

.hi-bs-intro {
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 25px;
}

.hi-bs-intro h6 {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 9px;
}

.hi-bs-intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin: 0;
}

/* FORM */

.hi-bs-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.hi-bs-section-title i {
  color: var(--brand);
}

.hi-broker-submit-canvas .form-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.hi-broker-submit-canvas .form-control {
  width: 100%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
}

.hi-broker-submit-canvas textarea.form-control {
  min-height: 180px;
  resize: vertical;
  line-height: 2;
}

.hi-broker-submit-canvas .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}

/* HELPER */

.hi-bs-helper {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin-top: 10px;
}

.hi-bs-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hi-bs-suggestions span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.hi-bs-suggestions i {
  color: var(--brand);
}

/* NOTICE */

.hi-bs-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  margin: 23px 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.hi-bs-notice i {
  color: var(--brand);
  margin-top: 4px;
  flex-shrink: 0;
}

/* BUTTONS */

.hi-bs-submit,
.hi-bs-login {
  width: 100%;
  min-height: 54px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
}

/* GUEST */

.hi-bs-guest {
  padding: 32px 0;
  text-align: center;
}

.hi-bs-guest-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: color-mix(in srgb,
      var(--brand) 10%,
      var(--card));
  color: var(--brand);
  font-size: 34px;
}

.hi-bs-guest h4 {
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 15px;
}

.hi-bs-guest p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin-bottom: 22px;
}

.hi-bs-benefits {
  padding: 17px;
  margin-bottom: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: right;
}

.hi-bs-benefits>div {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 9px 0;
  color: var(--text);
  font-size: 13px;
}

.hi-bs-benefits i {
  color: var(--brand);
}

@media (max-width: 575.98px) {

  .hi-broker-submit-canvas .offcanvas-header {
    padding: 18px 16px;
  }

  .hi-broker-submit-canvas .offcanvas-body {
    padding: 19px 16px 28px;
  }

  .hi-broker-submit-canvas .form-control {
    font-size: 16px;
  }

  .hi-bs-intro {
    padding: 16px;
  }
}

/* =======================================================
   HALAH INVESTMENT / INVESTMENT-DEVELOPMENT PUBLIC PAGE
   Scoped to .hi-dev-page. Reuses property_sector_cta.css.
   ======================================================= */
.hi-dev-page,
.hi-dev-page * {
  box-sizing: border-box;
}

.hi-dev-page {
  color: var(--text);
}

.hi-dev-page .hi-dev-contact .hi-sector-cta__actions {
  width: min(100%, 360px);
  justify-self: end;
}

.hi-dev-page .hi-dev-contact .hi-sector-cta__buttons {
  width: 100%;
}

.hi-dev-page .hi-dev-contact .hi-sector-cta__buttons .hi-sector-cta__whatsapp {
  flex: 1 1 100%;
}

.hi-dev-projects {
  padding: 5px 0 45px;
}

.hi-dev-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}

.hi-dev-kicker {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 12px;
}

.hi-dev-heading h2 {
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -.45px;
  font-weight: 900;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 8px;
}

.hi-dev-heading p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

.hi-dev-count {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--text);
  background: var(--card);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hi-dev-count i {
  color: var(--brand);
}

.hi-dev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hi-dev-card {
  min-width: 0;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hi-dev-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 27%, var(--border));
  box-shadow: 0 22px 44px rgba(13, 26, 42, .10);
}

.hi-dev-card__media {
  position: relative;
  padding: 10px 10px 0;
}

.hi-dev-card__media-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 15px;
  background: var(--bg-2);
  text-decoration: none;
}

.hi-dev-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,
      color-mix(in srgb, var(--brand) 11%, var(--bg-2)),
      var(--bg-2));
  color: color-mix(in srgb, var(--brand) 47%, var(--muted));
  font-size: 58px;
}

.hi-dev-card__media-link img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.hi-dev-card:hover .hi-dev-card__media-link img {
  transform: scale(1.035);
}

.hi-dev-card__tag {
  position: absolute;
  inset-inline-start: 23px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 29, 48, .82);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(9px);
}

.hi-dev-card__body {
  padding: 19px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.hi-dev-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  min-height: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 10px;
}

.hi-dev-card__meta>span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hi-dev-card__meta i {
  color: var(--brand);
}

.hi-dev-card__meta .hi-dev-card__phase {
  opacity: .9;
}

.hi-dev-card__title {
  color: var(--text);
  font-weight: 900;
  line-height: 1.6;
  font-size: 19px;
  margin: 0 0 11px;
}

.hi-dev-card__title a {
  color: inherit;
  text-decoration: none;
}

.hi-dev-card__title a:hover {
  color: var(--brand);
}

.hi-dev-card__description {
  color: var(--muted);
  line-height: 1.95;
  font-size: 12px;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hi-dev-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding-top: 16px;
}

.hi-dev-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
}

.hi-dev-card__link:hover {
  color: var(--brand);
  opacity: .8;
}

.hi-dev-card__link--muted {
  color: var(--muted);
  cursor: default;
}

.hi-dev-card__symbol {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.hi-dev-empty {
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: var(--card);
  padding: 58px 20px;
  text-align: center;
}

.hi-dev-empty>i {
  display: block;
  font-size: 36px;
  color: var(--brand);
  margin-bottom: 16px;
}

.hi-dev-empty h3 {
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  margin: 0 0 9px;
}

.hi-dev-empty p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.hi-dev-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 30px 0 5px;
}

.hi-dev-page-link {
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 800;
}

.hi-dev-page-link:hover,
.hi-dev-page-link.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.hi-dev-page-link.is-disabled {
  opacity: .35;
  pointer-events: none;
}

@media (max-width: 1199.98px) {
  .hi-dev-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hi-dev-page .hi-dev-contact .hi-sector-cta__actions {
    justify-self: start;
  }
}

@media (max-width: 575.98px) {
  .hi-dev-page .hi-dev-contact .hi-sector-cta__actions {
    width: 100%;
  }

  .hi-dev-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .hi-dev-card {
    border-radius: 17px;
  }

  .hi-dev-card__media {
    padding: 8px 8px 0;
  }

  .hi-dev-card__body {
    padding: 16px;
  }

  .hi-dev-card__title {
    font-size: 18px;
  }

  .hi-dev-heading {
    margin-bottom: 20px;
  }

  .hi-dev-projects {
    padding-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hi-dev-card,
  .hi-dev-card__media-link img {
    transition: none;
  }

  .hi-dev-card:hover,
  .hi-dev-card:hover .hi-dev-card__media-link img {
    transform: none;
  }
}

/* ==========================================
   MANAGEMENT REQUEST OFFCANVAS
   ========================================== */

.hi-mgmt-canvas {
  --bs-offcanvas-width: min(540px, 100vw);
  background: var(--card);
  color: var(--text);
}

.hi-mgmt-canvas .offcanvas-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.hi-mgmt-header-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 15px;
  font-size: 20px;
}

.hi-mgmt-canvas .offcanvas-title {
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
}

.hi-mgmt-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 4px;
}

.hi-mgmt-canvas .offcanvas-body {
  padding: 23px 24px 32px;
}

.hi-mgmt-intro {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px;
  margin-bottom: 25px;
}

.hi-mgmt-intro strong {
  color: var(--text);
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}

.hi-mgmt-intro p {
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  margin: 0;
}

.hi-mgmt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.hi-mgmt-section-title i {
  color: var(--brand);
}

.hi-mgmt-canvas .form-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 9px;
}

.hi-mgmt-canvas .form-control {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 11px;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 14px;
}

.hi-mgmt-canvas .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb,
      var(--brand) 12%,
      transparent);
}

.hi-mgmt-canvas textarea.form-control {
  min-height: 110px;
  resize: vertical;
  line-height: 1.9;
}

.hi-mgmt-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
  margin-top: 7px;
}

/* SERVICES */

.hi-mgmt-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hi-mgmt-service {
  position: relative;
  cursor: pointer;
}

.hi-mgmt-service input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hi-mgmt-service-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  transition: border-color .2s, background .2s;
}

.hi-mgmt-service-inner i {
  color: var(--brand);
  font-size: 17px;
  flex-shrink: 0;
}

.hi-mgmt-service input:checked+.hi-mgmt-service-inner {
  border-color: var(--brand);
  background: color-mix(in srgb,
      var(--brand) 9%,
      var(--card));
}

.hi-mgmt-service input:focus-visible+.hi-mgmt-service-inner {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* NOTICES & BUTTONS */

.hi-mgmt-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  margin: 22px 0;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.hi-mgmt-notice i {
  color: var(--brand);
  margin-top: 4px;
  flex-shrink: 0;
}

.hi-mgmt-submit,
.hi-mgmt-login {
  width: 100%;
  min-height: 52px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 900;
}

/* GUEST */

.hi-mgmt-guest {
  text-align: center;
  padding: 35px 5px;
}

.hi-mgmt-guest-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--bg-2);
  color: var(--brand);
  font-size: 32px;
}

.hi-mgmt-guest h4 {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
}

.hi-mgmt-guest p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin-bottom: 24px;
}

@media (max-width: 575.98px) {
  .hi-mgmt-canvas .offcanvas-header {
    padding: 17px 15px;
  }

  .hi-mgmt-canvas .offcanvas-body {
    padding: 18px 15px 30px;
  }

  .hi-mgmt-canvas .form-control {
    font-size: 16px;
  }

  .hi-mgmt-services {
    gap: 8px;
  }

  .hi-mgmt-service-inner {
    padding: 10px;
    font-size: 11px;
  }
}

/* ===========================================================
   HALAH INVESTMENT | INVESTMENT PROJECT DETAILS
   Scoped; does not override shared property cards/filters.
   =========================================================== */
.hi-ip-page {
  color: var(--text);
}

.hi-ip-page * {
  box-sizing: border-box;
}

.hi-ip-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: 330px;
  margin: 12px 0 38px;
  border-radius: 23px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hi-ip-hero__media {
  min-width: 0;
  min-height: 330px;
  position: relative;
  background: linear-gradient(145deg, #17283b, #415267);
}

.hi-ip-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  z-index: 1;
}

.hi-ip-hero__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 32%, #1b2f44), #17293c);
  color: rgba(255, 255, 255, .72);
  font-size: clamp(48px, 6vw, 85px);
  z-index: 0;
}

.hi-ip-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 22, 35, .27), transparent 55%);
  pointer-events: none;
  z-index: 2;
}

.hi-ip-hero__image-label {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 10px;
  background: rgba(14, 28, 44, .72);
  color: white;
  backdrop-filter: blur(7px);
  font-size: 12px;
  font-weight: 750;
}

.hi-ip-hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.2vw, 47px);
}

.hi-ip-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--border));
  border-radius: 50px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hi-ip-hero h1 {
  color: var(--text);
  font-weight: 900;
  font-size: clamp(25px, 2.8vw, 40px);
  line-height: 1.4;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.hi-ip-hero__summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

.hi-ip-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hi-ip-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-2);
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
}

.hi-ip-hero__meta i {
  color: var(--brand);
}

.hi-ip-hero__code {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
}

.hi-ip-hero__code strong {
  color: var(--text);
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.hi-ip-listing {
  margin: 0;
}

.hi-ip-listing .hi-pl-intro {
  margin-top: 4px;
}

.hi-ip-listing .hi-pl-kicker {
  color: var(--brand);
}

@media (max-width: 991.98px) {
  .hi-ip-hero {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }

  .hi-ip-hero__media {
    min-height: 275px;
  }

  .hi-ip-hero__media img {
    position: absolute;
  }

  .hi-ip-hero__copy {
    padding: 25px;
  }
}

@media (max-width: 575.98px) {
  .hi-ip-hero {
    border-radius: 16px;
    margin: 4px 0 27px;
  }

  .hi-ip-hero__media {
    min-height: 210px;
  }

  .hi-ip-hero__copy {
    padding: 21px 18px 24px;
  }

  .hi-ip-hero h1 {
    font-size: 24px;
  }

  .hi-ip-hero__summary {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .hi-ip-hero__meta {
    gap: 7px;
  }

  .hi-ip-hero__meta span {
    font-size: 11px;
    padding: 8px 9px;
  }

  .hi-ip-hero__image-label {
    right: 12px;
    bottom: 12px;
  }
}

/* Search visibility on mobile */
@media (max-width: 767.98px) {

  /* Hide search on all pages */
  .search-wrap {
    display: none !important;
  }

  /* Show search only on search page */
  .search-wrap.mobile-search-visible {
    display: block !important;
  }

}