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);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.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: color-mix(in srgb, var(--bg-2, #f6f7fb) 85%, transparent);
  overflow: hidden;
}

.prod-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  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;
}