:root {
  --xh-black: #111111;
  --xh-ink: #1a1a1a;
  --xh-muted: #6b7280;
  --xh-line: #e5e7eb;
  --xh-bg: #ffffff;
  --xh-soft: #f5f5f5;
  --xh-hero: #d9ebf7;
  --xh-price: #7a1f2b;
  --xh-badge: #8b1e2d;
  --xh-hot: #e11d2e;
  --xh-chat: #25d366;
  --xh-lime: #b2f35f;
  --xh-lime-dark: #9de046;
  --xh-container: 1200px;
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
  max-width: 100%;
}

body.xhawi-body {
  margin: 0;
  background: var(--xh-bg);
  color: var(--xh-ink);
  font-family: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.xh-container {
  width: min(100% - 2rem, var(--xh-container));
  max-width: 100%;
  margin-inline: auto;
}

/* Top promo bar */
.xh-topbar {
  background: var(--xh-black);
  color: #fff;
  font-size: .85rem;
  text-align: center;
  padding: .55rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .35rem;
}

/* Header */
.xh-header {
  background: #fff;
  border-bottom: 1px solid var(--xh-line);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.xh-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 1.1rem;
  /* Fixed physical sides so Arabic page text can stay RTL without flipping chrome */
  direction: ltr;
}

.xh-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  transition: opacity .2s ease;
  justify-self: center;
  max-width: min(100%, 400px);
  padding: .1rem 0;
}

.xh-logo:hover { opacity: .88; }

.xh-logo-img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.xh-logo-img--sm {
  width: min(100%, 260px);
  max-height: 50px;
}

.xh-logo-mark {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: .12em;
  color: #0f0f0f;
}

.xh-logo-tag {
  margin-top: .35rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: #6b7280;
}

.xh-tools {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  direction: ltr;
}

.xh-tools-left { justify-content: flex-start; }
.xh-tools-right { justify-content: flex-end; }

.xh-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--xh-ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.xh-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.xh-icon-btn:hover .xh-icon-circle,
.xh-account-chip:hover .xh-icon-circle {
  background: var(--xh-soft);
  border-color: #ececec;
  transform: translateY(-1px);
}

.xh-icon-circle svg,
.xh-icon-btn svg { width: 22px; height: 22px; }

.xh-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--xh-hot);
  color: #fff;
  font-size: .68rem;
  display: grid;
  place-items: center;
  padding: 0 .28rem;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(225, 29, 46, .25);
}

.xh-badge-muted {
  background: #9ca3af;
  box-shadow: none;
}

.xh-account {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.xh-account-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .2rem .7rem .2rem .2rem;
  border-radius: 999px;
  border: 1px solid var(--xh-line);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  max-width: 230px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  direction: ltr;
}

.xh-account-chip:hover,
.xh-account.is-open .xh-account-chip {
  border-color: #d1d5db;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
  background: #fafafa;
}

.xh-account-guest { padding-right: .9rem; }

.xh-account-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  text-align: left;
}

html[dir="rtl"] .xh-account-meta { text-align: right; }

.xh-account-label {
  font-size: .68rem;
  color: var(--xh-muted);
  font-weight: 600;
}

.xh-account-name {
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.xh-account-caret {
  font-size: .7rem;
  color: var(--xh-muted);
  transition: transform .2s ease;
}

.xh-account.is-open .xh-account-caret {
  transform: rotate(180deg);
}

.xh-account-menu {
  position: absolute;
  top: calc(100% + .45rem);
  inset-inline-start: 0;
  min-width: 200px;
  max-width: min(260px, calc(100vw - 1.5rem));
  background: #fff;
  border: 1px solid var(--xh-line);
  border-radius: .85rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .1);
  padding: .4rem;
  z-index: 40;
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .xh-account-menu {
  direction: ltr;
  text-align: left;
}

.xh-account-menu[hidden],
.xh-account:not(.is-open) .xh-account-menu,
.xh-lang-dropdown[hidden],
.xh-lang-menu:not(.is-open) .xh-lang-dropdown {
  display: none !important;
}

.xh-account-menu a {
  display: block;
  padding: .7rem .85rem;
  border-radius: .6rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--xh-ink);
  transition: background .15s ease;
}

.xh-account-menu a:hover { background: var(--xh-soft); }

.xh-account-logout {
  color: var(--xh-hot) !important;
  border-top: 1px solid var(--xh-line);
  margin-top: .25rem;
}

.xh-account-logout:hover { background: #fef2f2 !important; }

.xh-search {
  display: flex;
  align-items: center;
  direction: ltr;
  width: min(280px, 100%);
  background: #f7f7f8;
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: .2rem .25rem .2rem .95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.xh-search:focus-within {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, .04);
}

.xh-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: .92rem;
  color: var(--xh-ink);
  padding: .45rem 0;
}

.xh-search input::placeholder { color: #9ca3af; }

.xh-search button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .2s ease, transform .2s ease;
}

.xh-search button:hover {
  background: #333;
  transform: scale(1.03);
}

.xh-search button svg { width: 18px; height: 18px; }

.xh-lang-menu {
  position: relative;
}

.xh-lang {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .86rem;
  font-weight: 700;
  padding: .55rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--xh-line);
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.xh-lang:hover,
.xh-lang-menu.is-open .xh-lang {
  background: var(--xh-soft);
  border-color: #d1d5db;
}

.xh-lang-caret {
  font-size: .68rem;
  color: var(--xh-muted);
  transition: transform .2s ease;
}

.xh-lang-menu.is-open .xh-lang-caret {
  transform: rotate(180deg);
}

.xh-lang-dropdown {
  position: absolute;
  top: calc(100% + .4rem);
  inset-inline-end: 0;
  min-width: 150px;
  max-width: min(220px, calc(100vw - 1.5rem));
  background: #fff;
  border: 1px solid var(--xh-line);
  border-radius: .85rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
  padding: .35rem;
  z-index: 45;
}

.xh-lang-dropdown a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .75rem;
  border-radius: .6rem;
  font-size: .9rem;
  font-weight: 700;
}

.xh-lang-dropdown a:hover,
.xh-lang-dropdown a.is-active {
  background: var(--xh-soft);
}

.xh-flag {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid #ddd;
  flex: 0 0 auto;
  display: inline-block;
}

/* Oman flag for Arabic: red hoist + white / red / green stripes */
.xh-flag-oman {
  background: linear-gradient(
    to bottom,
    #ffffff 0 33.33%,
    #c8102e 33.33% 66.66%,
    #00843d 66.66% 100%
  );
  box-shadow: inset 6px 0 0 #c8102e;
}

/* English marker (UK-inspired) */
.xh-flag-en {
  background: #012169;
  position: relative;
  box-shadow:
    inset 0 0 0 1px #ddd,
    inset 0 -5px 0 -3px #c8102e,
    inset 0 5px 0 -3px #c8102e,
    inset -8px 0 0 -5px #c8102e,
    inset 8px 0 0 -5px #c8102e;
}

/* Category nav — no horizontal scrollbar; overflow goes into "More" */
.xh-nav {
  border-top: 1px solid var(--xh-line);
  background: #fff;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.xh-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: .65rem 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.xh-nav-list > li {
  position: relative;
  flex: 0 0 auto;
}

.xh-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .1rem;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 800;
  color: #111;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.xh-nav-link:hover,
.xh-nav-link.is-active {
  color: #111;
  border-bottom-color: #111;
}

.xh-nav-hot {
  color: #c0102e !important;
}

.xh-nav-hot:hover,
.xh-nav-hot.is-active {
  border-bottom-color: #c0102e;
}

.xh-nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  margin-top: 2px;
}

.xh-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .35rem);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(92vw, 280px);
  background: #fff;
  border: 1px solid var(--xh-line);
  border-radius: .75rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
  padding: .4rem;
  z-index: 40;
  text-align: start;
}

html[dir="rtl"] .xh-dropdown {
  transform: translateX(50%);
}

.xh-dropdown-more {
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.xh-nav-list > li.has-dropdown:hover .xh-dropdown,
.xh-nav-list > li.has-dropdown:focus-within .xh-dropdown,
.xh-nav-more.is-open .xh-dropdown,
.xh-nav-more .xh-dropdown:not([hidden]) {
  display: block;
}

.xh-nav-more .xh-dropdown[hidden] {
  display: none !important;
}

.xh-dropdown a {
  display: block;
  padding: .65rem .8rem;
  border-radius: .55rem;
  font-size: .9rem;
  font-weight: 600;
  white-space: normal;
  line-height: 1.35;
}

.xh-dropdown a:hover { background: var(--xh-soft); }

@media (max-width: 900px) {
  .xh-nav-primary {
    display: none;
  }

  .xh-nav-list {
    justify-content: space-evenly;
    flex-wrap: nowrap;
    gap: .5rem;
    padding: .55rem 0;
  }

  .xh-nav-link {
    font-size: .9rem;
    font-weight: 800;
  }

  .xh-dropdown {
    inset-inline-start: 0;
    inset-inline-end: auto;
    transform: none;
  }

  html[dir="rtl"] .xh-dropdown {
    inset-inline-start: auto;
    inset-inline-end: 0;
    transform: none;
  }
}

/* Hero */
.xh-hero {
  margin: 1.25rem auto 2rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0f172a;
  min-height: clamp(220px, 38vw, 420px);
  position: relative;
}

.xh-hero-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.xh-hero-slide {
  display: block;
  width: 100%;
  min-height: inherit;
  animation: xh-hero-fade .35s ease;
  color: inherit;
  text-decoration: none;
}

.xh-hero-slide--full {
  position: relative;
  padding: 0;
  background: #0f172a;
}

.xh-hero-slide--full .xh-hero-img {
  display: block;
  width: 100%;
  height: clamp(220px, 38vw, 420px);
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.xh-hero-slide--fallback {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  align-items: center;
  min-height: 340px;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(135deg, #cfe8f8 0%, #eaf5fc 55%, #f7fbfe 100%);
}

.xh-hero-copy h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 .5rem;
  line-height: 1.25;
}

.xh-hero-pct {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  margin: .25rem 0 .5rem;
}

.xh-hero-slide[hidden] {
  display: none !important;
}

@keyframes xh-hero-fade {
  from { opacity: .35; }
  to { opacity: 1; }
}

.xh-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .92);
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
  transition: background .15s ease, transform .15s ease, opacity .15s ease;
}

.xh-hero-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
}

.xh-hero-prev { left: .85rem; }
.xh-hero-next { right: .85rem; }

.xh-hero-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

[dir="rtl"] .xh-hero-prev { left: auto; right: .85rem; }
[dir="rtl"] .xh-hero-next { right: auto; left: .85rem; }
[dir="rtl"] .xh-hero-prev svg,
[dir="rtl"] .xh-hero-next svg {
  transform: scaleX(-1);
}

.xh-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  z-index: 2;
  padding: .35rem .5rem;
  direction: ltr;
}

.xh-hero-dot {
  width: .55rem;
  height: .55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  transition: background .2s ease, transform .2s ease;
}

.xh-hero-dot.is-active {
  width: 1.05rem;
  height: 1.05rem;
  background: transparent;
  border: 1.5px solid #fff;
  box-shadow: none;
}

.xh-hero-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.xh-hero-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, .8);
}

.xh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: 999px;
  padding: .75rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

.xh-btn-dark {
  background: #1e3a5f;
  color: #fff;
}

.xh-btn-dark:hover { background: #152a45; color: #fff; }

.xh-btn-black {
  background: #111;
  color: #fff;
}

.xh-btn-outline {
  background: #fff;
  border: 1px solid var(--xh-line);
  color: var(--xh-ink);
}

/* Circular categories */
.xh-cats-section {
  margin-top: .5rem;
}

.xh-cats-wrap {
  width: 100%;
  max-width: 100%;
}

.xh-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.75rem 2.25rem;
  padding: 1rem 0 1.25rem;
}

.xh-cat {
  flex: 0 0 auto;
  width: 132px;
  text-align: center;
}

.xh-cat-circle {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  margin-inline: auto;
  font-weight: 800;
  font-size: 1.55rem;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, .06),
    0 8px 20px rgba(15, 23, 42, .1);
  color: #111;
}

.xh-cat-circle.is-letter,
.xh-cat-circle:not(:has(img)) {
  background: #f0f1f3;
}

.xh-cat-letter {
  font-family: Manrope, "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-weight: 800;
  font-size: 2.35rem;
  line-height: 1;
  color: #111;
  letter-spacing: -.02em;
  user-select: none;
}

.xh-cat-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xh-cat.hot .xh-cat-circle {
  background: var(--xh-hot);
  color: #fff;
  font-size: 1.25rem;
}

.xh-cat.season .xh-cat-circle {
  border-color: #2f9e44;
  box-shadow: 0 0 0 4px #ffe066;
  font-size: 2rem;
}

.xh-cat span {
  display: block;
  margin-top: .7rem;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.xh-cats-dots {
  display: none;
}

@media (max-width: 760px) {
  .xh-cats-section {
    margin: .25rem 0 1.25rem;
  }

  .xh-cats {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .15rem;
    padding: .85rem 0 .35rem;
    scrollbar-width: none;
  }

  .xh-cats::-webkit-scrollbar { display: none; }

  .xh-cat {
    width: 25%;
    min-width: 25%;
    max-width: 25%;
    padding: 0 .2rem;
    scroll-snap-align: start;
  }

  .xh-cat-circle {
    width: min(78px, 18vw);
    height: min(78px, 18vw);
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .1);
  }

  .xh-cat-letter {
    font-size: 1.55rem;
  }

  .xh-cat span {
    margin-top: .55rem;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.3;
    padding: 0 .1rem;
  }

  .xh-cats-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .55rem;
    padding: .85rem 0 .15rem;
    min-height: 1.5rem;
  }
}

/* Shared pager dots (category carousel + product gallery) */
.xh-pager-dot {
  width: .4rem;
  height: .4rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #c4c4c4;
  cursor: pointer;
  position: relative;
  transition: background .15s ease, box-shadow .15s ease;
}

.xh-pager-dot.is-active {
  background: #111;
  box-shadow: 0 0 0 3.5px #fff, 0 0 0 4.75px #111;
}

.xh-cats-dot {
  /* legacy alias kept for safety */
  width: .4rem;
  height: .4rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #c4c4c4;
  cursor: pointer;
}

.xh-cats-dot.is-active {
  background: #111;
  box-shadow: 0 0 0 3.5px #fff, 0 0 0 4.75px #111;
}

/* Sections */
.xh-section { margin: 2rem 0 2.5rem; }

.xh-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.xh-section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}

.xh-tabs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--xh-line);
  margin-bottom: 1.25rem;
  padding-bottom: 0;
}

.xh-tabs a {
  padding: .75rem .15rem;
  font-weight: 600;
  color: var(--xh-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.xh-tabs a.active {
  color: var(--xh-ink);
  border-bottom-color: var(--xh-ink);
}

/* Product grid/cards */
.xh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .xh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
}

@media (min-width: 1100px) {
  .xh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .xh-grid.dense { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.xh-card {
  border: 1px solid var(--xh-line);
  border-radius: 1.15rem;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.xh-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,.09);
  transform: translateY(-3px);
}

.xh-card-media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  min-height: 220px;
  background: #f3f4f6;
  display: block;
  padding: 0;
  overflow: hidden;
}

.xh-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.xh-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.xh-no-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  background: #f3f4f6;
  color: #9ca3af;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}

.xh-no-image-icon {
  width: clamp(48px, 28%, 72px);
  height: auto;
  opacity: .95;
}

.xh-no-image span {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #9ca3af;
}

.xh-no-image.is-compact {
  min-height: 0;
  gap: .2rem;
  padding: .35rem;
}

.xh-no-image.is-compact .xh-no-image-icon {
  width: 28px;
}

.xh-no-image.is-compact span {
  font-size: .55rem;
}

.xh-card-cart {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 8px);
  width: calc(100% - 1.75rem);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.xh-card:hover .xh-card-cart,
.xh-card:focus-within .xh-card-cart {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

@media (hover: none) {
  .xh-card-cart {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }
}

.xh-card-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  padding: .7rem 1rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.xh-card-cart-btn:hover { background: #000; }

.xh-card-cart-btn.is-disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.xh-discount {
  position: absolute;
  top: .85rem;
  inset-inline-start: .85rem;
  z-index: 2;
  background: var(--xh-badge);
  color: #fff;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  padding: .28rem .7rem;
}

.xh-in-cart-badge {
  position: absolute;
  top: .85rem;
  inset-inline-start: .85rem;
  z-index: 2;
  background: #0f766e;
  color: #fff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  padding: .28rem .7rem;
  box-shadow: 0 4px 12px rgba(15, 118, 110, .25);
  white-space: nowrap;
}

.xh-discount + .xh-in-cart-badge {
  top: 2.85rem;
}

.xh-card-cart-btn.is-in-cart {
  background: #0f766e;
}

.xh-card-cart-btn.is-in-cart:hover {
  background: #0d6660;
}

.xh-pdp-in-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .85rem;
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border-radius: .85rem;
  background: #ecfdf5;
  color: #0f766e;
  font-weight: 700;
  font-size: .95rem;
}

.xh-pdp-in-cart a {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 800;
}

.xh-heart {
  position: absolute;
  top: .85rem;
  inset-inline-end: .85rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--xh-line);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.xh-heart.active { color: var(--xh-hot); }

/* Home product rail / carousel */
.xh-product-rail {
  position: relative;
  margin-top: .5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.xh-product-track {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .35rem .15rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.xh-product-track::-webkit-scrollbar { display: none; }

.xh-product-slide {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 900px) {
  .xh-product-slide { flex-basis: calc((100% - 3rem) / 4); }
}

.xh-rail-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 4;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--xh-line);
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
  transition: opacity .15s ease, background .15s ease;
}

.xh-rail-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.xh-rail-prev { left: .35rem; }
.xh-rail-next { right: .35rem; }

.xh-rail-btn:hover { background: #f8fafc; }
.xh-rail-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

[dir="rtl"] .xh-rail-prev { left: auto; right: .35rem; }
[dir="rtl"] .xh-rail-next { right: auto; left: .35rem; }
[dir="rtl"] .xh-rail-prev svg,
[dir="rtl"] .xh-rail-next svg {
  transform: scaleX(-1);
}

.xh-card-body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}

.xh-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.xh-price {
  color: var(--xh-price);
  font-weight: 800;
  font-size: 1.15rem;
}

.xh-money {
  display: inline-flex;
  align-items: center;
  gap: .28em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.xh-omr-icon {
  display: inline-block;
  width: 1.15em;
  height: .78em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("../img/omr.png") center / contain no-repeat;
  mask: url("../img/omr.png") center / contain no-repeat;
  vertical-align: middle;
}

.xh-money-amount {
  line-height: 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.xh-tag {
  display: inline-flex;
  width: fit-content;
  font-size: .72rem;
  font-weight: 700;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 999px;
  padding: .15rem .5rem;
}

/* Listing layout */
.xh-listing-hero {
  margin: 1.15rem 0 1rem;
}

.xh-listing-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-bottom: .65rem;
  color: #6b7280;
  font-size: .88rem;
  font-weight: 600;
}

.xh-listing-crumbs a {
  color: #374151;
  font-weight: 700;
}

.xh-listing-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .75rem 1rem;
}

.xh-listing-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
}

.xh-listing-sub {
  margin: .3rem 0 0;
  color: var(--xh-muted);
  font-weight: 600;
}

.xh-listing-count {
  margin: 0;
  color: #6b7280;
  font-weight: 700;
}

.xh-listing-count strong {
  color: #111;
  font-weight: 800;
}

.xh-chip-row {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: .15rem 0 1rem;
  margin-bottom: .25rem;
  scrollbar-width: none;
}

.xh-chip-row::-webkit-scrollbar { display: none; }

.xh-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.xh-chip:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.xh-chip.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.xh-listing {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.xh-listing-main {
  min-width: 0;
}

.xh-filters {
  border: 1px solid var(--xh-line);
  border-radius: 1rem;
  padding: 1rem .9rem;
  background: #fff;
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: .35rem;
}

.xh-filters-title {
  margin: .55rem 0 .35rem;
  color: #9ca3af;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.xh-filters-title:first-child { margin-top: 0; }

.xh-filter-links {
  display: grid;
  gap: .15rem;
}

.xh-filter-links a {
  display: block;
  padding: .55rem .65rem;
  border-radius: .7rem;
  color: #4b5563;
  font-size: .92rem;
  font-weight: 700;
}

.xh-filter-links a:hover {
  background: #f5f5f5;
  color: #111;
}

.xh-filter-links a.is-active {
  background: #111;
  color: #fff;
}

.xh-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  margin-bottom: 1.15rem;
  padding: .85rem 1rem;
  border: 1px solid var(--xh-line);
  border-radius: 1rem;
  background: #fff;
}

.xh-toolbar-count {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  color: #374151;
  font-weight: 600;
}

.xh-toolbar-count strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
}

.xh-sort {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.xh-sort-label {
  color: var(--xh-muted);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

.xh-sort-control {
  position: relative;
  min-width: 12.5rem;
}

.xh-sort-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 2.7rem;
  padding: .55rem 2.4rem .55rem 1rem;
  border: 1px solid #d7dbe2;
  border-radius: .85rem;
  background: #f8fafc;
  color: #111827;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

html[dir="rtl"] .xh-sort-select {
  padding: .55rem 1rem .55rem 2.4rem;
}

.xh-sort-select:hover {
  background: #fff;
  border-color: #c5cbd6;
}

.xh-sort-select:focus {
  outline: none;
  background: #fff;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .06);
}

.xh-sort-caret {
  position: absolute;
  top: 50%;
  inset-inline-end: .8rem;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
  display: grid;
  place-items: center;
}

/* Product detail */
.xh-pdp {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: start;
}

.xh-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .75rem;
}

.xh-thumbs {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.xh-thumb {
  border: 1px solid var(--xh-line);
  border-radius: .65rem;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.xh-thumb.is-active {
  border-color: #9ca3af;
  box-shadow: 0 0 0 1px #9ca3af;
}

.xh-thumb img { width: 100%; height: 100%; object-fit: contain; padding: .25rem; display: block; }

.xh-main-image {
  border: 1px solid var(--xh-line);
  border-radius: 1rem;
  aspect-ratio: 1;
  width: 100%;
  max-width: 100%;
  background: #f6f7f9;
  position: relative;
  overflow: hidden;
}

.xh-main-image-frame {
  position: absolute;
  inset: 0;
}

.xh-main-image-frame.is-empty {
  display: flex;
}

.xh-main-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  transition: opacity .18s ease;
}

.xh-main-image-frame img.is-switching {
  opacity: 0;
}

.xh-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: .85rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .35rem .55rem;
}

.xh-gallery-tools {
  position: absolute;
  top: .75rem;
  inset-inline-end: .75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .4rem;
  pointer-events: none;
}

.xh-gallery-tools > * {
  pointer-events: auto;
}

.xh-gallery-tool {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid #d7dbe2;
  background: rgba(255, 255, 255, .92);
  color: #8b93a1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.xh-gallery-tool:hover {
  color: #4b5563;
  border-color: #c5cbd6;
}

.xh-gallery-count {
  font-size: .72rem;
  color: #8b93a1;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #d7dbe2;
  border-radius: 999px;
  padding: .2rem .55rem;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.xh-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid #d0d5dd;
  background: rgba(255, 255, 255, .96);
  color: #8b93a1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  transition: color .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease;
}

.xh-gallery-arrow:hover:not(:disabled) {
  color: #374151;
  border-color: #b8c0cc;
  background: #fff;
}

.xh-gallery-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.xh-gallery-prev { inset-inline-start: .55rem; }
.xh-gallery-next { inset-inline-end: .55rem; }

.xh-specs {
  margin: 1.75rem 0 2rem;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--xh-line);
}

.xh-specs h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #111827;
}

.xh-specs-list {
  margin: 0;
  display: grid;
  gap: .55rem;
  max-width: 36rem;
}

.xh-spec-row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: .75rem 1.25rem;
  align-items: baseline;
  font-size: .92rem;
  line-height: 1.5;
}

.xh-spec-row dt {
  margin: 0;
  color: #6b7280;
  font-weight: 500;
}

.xh-spec-row dd {
  margin: 0;
  color: #111827;
}

.xh-lightbox {
  position: relative;
  border: none;
  border-radius: 1rem;
  padding: 0;
  max-width: min(92vw, 900px);
  width: 100%;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.xh-lightbox::backdrop {
  background: rgba(15, 23, 42, .55);
}

.xh-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  padding: 1.5rem;
}

.xh-lightbox-close {
  position: absolute;
  top: .55rem;
  inset-inline-end: .7rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #374151;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.xh-lightbox[open] {
  position: fixed;
}

.xh-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  color: var(--xh-muted);
  font-size: .88rem;
  margin: 1rem 0 1.25rem;
}

.xh-breadcrumbs a:hover { text-decoration: underline; }

.xh-pdp-title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  margin: .35rem 0 1rem;
  line-height: 1.3;
}

.xh-pdp-price {
  color: var(--xh-price);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: .35rem;
}

.xh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0 1.25rem;
}

.xh-pill {
  border: 1px solid var(--xh-line);
  background: var(--xh-soft);
  border-radius: .55rem;
  padding: .55rem .9rem;
  font-weight: 600;
  font-size: .9rem;
}

.xh-pill.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.xh-qty {
  width: 5.5rem;
  border: 1px solid var(--xh-line);
  border-radius: .65rem;
  padding: .65rem .75rem;
  font: inherit;
}

/* PDP buy box — qty / add / wish / share + OPay / buy now */
.xh-buybox {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;
  margin-top: 1.5rem;
}

.xh-buybox-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .55rem;
}

.xh-buybox-row--pay {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  align-items: stretch;
}

.xh-buybox-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  direction: ltr;
  min-height: 3rem;
  padding: 0 .35rem;
  background: #f3f4f6;
  border-radius: .9rem;
  flex: 0 0 auto;
}

.xh-buybox-step {
  width: 2.1rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.xh-buybox-step:disabled {
  color: #c4c4c4;
  cursor: not-allowed;
}

.xh-buybox-count {
  width: 2rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.xh-buybox-count::-webkit-outer-spin-button,
.xh-buybox-count::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.xh-buybox-add,
.xh-buybox-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 1.6rem;
  transition: background .15s ease, opacity .15s ease;
}

.xh-buybox-add {
  flex: 1 1 auto;
  min-width: 7rem;
}

.xh-buybox-buy {
  width: 100%;
  min-height: 3.15rem;
  font-size: 1.05rem;
}

.xh-buybox-add:hover:not(:disabled),
.xh-buybox-buy:hover:not(:disabled) { background: #000; }

.xh-buybox-add:disabled,
.xh-buybox-buy:disabled,
.xh-buybox-opay:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.xh-buybox-heart {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, color .15s ease;
}

.xh-buybox-heart:hover { background: #fafafa; }
.xh-buybox-heart.is-active { color: var(--xh-hot); }

.xh-buybox-share {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  padding: .35rem .2rem;
  margin-inline-start: auto;
}

.xh-buybox-share:hover { opacity: .75; }
.xh-buybox-share.is-copied { color: #0f766e; }

.xh-buybox-opay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 3.15rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: .9rem;
  background: #0d7377;
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}

.xh-buybox-opay:hover:not(:disabled) { background: #0a5f62; }

.xh-opay-mark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
  font-family: Manrope, "IBM Plex Sans Arabic", sans-serif;
}

@media (max-width: 720px) {
  .xh-buybox-row {
    flex-wrap: wrap;
  }

  .xh-buybox-row--pay {
    grid-template-columns: 1fr;
  }

  .xh-buybox-share {
    margin-inline-start: auto;
  }

  .xh-buybox-add {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Cart page */
.xh-cart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
}

.xh-cart-head h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 800;
}

.xh-cart-head p {
  margin: 0;
  color: var(--xh-muted);
  font-weight: 600;
}

.xh-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.xh-cart-items {
  display: grid;
  gap: .85rem;
  min-width: 0;
}

.xh-cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--xh-line);
  border-radius: 1.1rem;
  background: #fff;
}

.xh-cart-item-media {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: .85rem;
  overflow: hidden;
  border: 1px solid var(--xh-line);
  background: #fafafa;
  flex: 0 0 auto;
}

.xh-cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.xh-cart-item-media .xh-no-image {
  min-height: 100%;
}

.xh-cart-item-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #f3f4f6;
}

.xh-cart-item-body {
  min-width: 0;
  display: grid;
  gap: .65rem;
}

.xh-cart-item-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .75rem;
}

.xh-cart-item-name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.4;
  color: #111;
}

.xh-cart-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  padding: .15rem 0;
  white-space: nowrap;
}

.xh-cart-item-price,
.xh-cart-item-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .65rem;
  font-weight: 700;
}

.xh-cart-item-label {
  color: var(--xh-muted);
  font-size: .78rem;
  font-weight: 700;
}

.xh-cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.xh-cart-item-total strong {
  font-size: 1.05rem;
  color: var(--xh-price);
}

.xh-cart-summary {
  border: 1px solid var(--xh-line);
  border-radius: 1.1rem;
  background: #fff;
  padding: 1.15rem 1.1rem 1.2rem;
  position: sticky;
  top: 7rem;
}

.xh-cart-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.xh-cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: .65rem 0;
  color: var(--xh-muted);
  font-weight: 600;
}

.xh-cart-summary-total {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--xh-line);
  color: var(--xh-ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.xh-cart-summary-note {
  margin: .85rem 0 1rem;
  color: var(--xh-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.xh-cart-checkout {
  width: 100%;
  background: #111 !important;
  color: #fff !important;
  justify-content: center;
}

@media (max-width: 900px) {
  .xh-cart-layout {
    grid-template-columns: 1fr;
  }

  .xh-cart-summary {
    position: static;
    order: -1;
  }

  .xh-cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: .9rem;
  }

  .xh-cart-item-media {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 560px) {
  .xh-cart-item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .xh-cart-item-total {
    justify-content: space-between;
    padding-top: .35rem;
    border-top: 1px dashed #ececec;
  }
}

.xh-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  direction: ltr;
}

.xh-qty-stepper .xh-qty {
  width: 3.6rem;
  text-align: center;
  padding: .55rem .35rem;
  border-radius: .85rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.xh-qty-stepper .xh-qty::-webkit-outer-spin-button,
.xh-qty-stepper .xh-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.xh-qty-btn {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--xh-line);
  border-radius: 999px;
  background: #fff;
  color: var(--xh-ink);
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

.xh-qty-btn svg {
  width: 1rem;
  height: 1rem;
}

.xh-qty-btn:hover:not(:disabled) {
  background: var(--xh-soft);
  border-color: #cbd5e1;
}

.xh-qty-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.xh-alert {
  border-radius: .75rem;
  padding: .85rem 1rem;
  margin-bottom: .75rem;
  border: 1px solid var(--xh-line);
  background: #f8fafc;
}

.xh-alert-success { background: #ecfdf5; border-color: #a7f3d0; }
.xh-alert-danger { background: #fef2f2; border-color: #fecaca; }
.xh-alert-warning { background: #fffbeb; border-color: #fde68a; }
.xh-alert-info { background: #eff6ff; border-color: #bfdbfe; }

/* FAQ page */
.xh-faq-page {
  padding: 1.5rem 0 3rem;
  min-height: 55vh;
}

.xh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  color: var(--xh-muted);
  font-size: .9rem;
  margin-bottom: 1.75rem;
}

.xh-breadcrumb a {
  color: var(--xh-muted);
  text-decoration: none;
}

.xh-breadcrumb a:hover { color: var(--xh-ink); }

.xh-faq-title {
  text-align: center;
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #1e293b;
}

.xh-faq-list {
  display: grid;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}

.xh-faq-item {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  overflow: hidden;
}

.xh-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.55;
}

.xh-faq-item summary::-webkit-details-marker { display: none; }

.xh-faq-question {
  flex: 1;
  text-align: start;
}

.xh-faq-chevron {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  color: #334155;
  transition: transform .2s ease;
}

.xh-faq-chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.xh-faq-item[open] .xh-faq-chevron {
  transform: rotate(180deg);
}

.xh-faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--xh-muted);
  line-height: 1.7;
  white-space: pre-line;
  border-top: 1px solid transparent;
}

.xh-faq-item[open] .xh-faq-answer {
  border-top-color: #f1f5f9;
  padding-top: 1rem;
}

body.xh-page-faq {
  background: #f5f6f8;
}

body.xh-page-faq .xh-header {
  background: #fff;
}

/* Footer + floaters */
.xh-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--xh-line);
  padding: 2rem 0;
  color: var(--xh-muted);
  font-size: .9rem;
}

.xh-chat {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--xh-chat);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(37,211,102,.35);
  z-index: 50;
}

.xh-chat svg { width: 28px; height: 28px; }

.xh-empty {
  border: 1px dashed var(--xh-line);
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--xh-muted);
}

.xh-panel {
  border: 1px solid var(--xh-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
}

.xh-auth-wrap {
  max-width: 460px;
  margin: 2rem auto;
}

/* Standalone login / auth pages (Duqm-style) */
.xh-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.xh-auth-top {
  display: flex;
  justify-content: flex-start;
  padding: 1rem 1.25rem;
}

.xh-auth-shell {
  width: min(100% - 1.5rem, 420px);
  max-width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: .5rem 0 2rem;
}

@media (min-width: 720px) {
  .xh-auth-shell {
    justify-content: center;
    padding: 1rem 0 2rem;
  }
}

.xh-auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.xh-auth-logo .xh-logo-img {
  width: min(100%, 340px);
  max-height: 70px;
}

.xh-auth-messages { margin-bottom: 1rem; }

.xh-login-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.xh-login-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  text-align: start;
}

.xh-login-sub {
  margin: -.35rem 0 .25rem;
  color: var(--xh-muted);
  font-size: .95rem;
  line-height: 1.5;
  text-align: start;
}

.xh-login-or {
  display: grid;
  place-items: center;
  color: var(--xh-muted);
  font-weight: 700;
  position: relative;
}

.xh-login-or::before,
.xh-login-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--xh-line);
}

.xh-login-or::before { inset-inline-start: 0; }
.xh-login-or::after { inset-inline-end: 0; }

.xh-login-or span {
  background: #fff;
  padding: 0 .75rem;
  position: relative;
  z-index: 1;
}

.xh-login-form {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.xh-login-label {
  font-size: .9rem;
  font-weight: 700;
  text-align: start;
}

.xh-login-input {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: .65rem;
  padding: .85rem 1rem;
  font: inherit;
  background: #fff;
  outline: none;
}

.xh-login-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.xh-login-input.is-invalid,
.xh-phone-field.is-invalid {
  border-color: #b91c1c;
}

.xh-field-hint {
  margin: -.15rem 0 .15rem;
  color: var(--xh-muted);
  font-size: .8rem;
  line-height: 1.45;
  text-align: start;
}

.xh-field-errors {
  list-style: none;
  margin: -.25rem 0 .35rem;
  padding: 0;
  color: #b91c1c;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: start;
}

.xh-field-errors li + li { margin-top: .2rem; }

.xh-alert {
  border-radius: .75rem;
  padding: .75rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
}

.xh-alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.xh-alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.xh-alert-info {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.xh-login-otp {
  text-align: center;
  letter-spacing: .35em;
  font-size: 1.25rem;
  font-weight: 700;
}

.xh-phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid #d7d7d7;
  border-radius: .65rem;
  overflow: hidden;
  background: #fff;
}

.xh-phone-field:focus-within {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.xh-phone-code {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .85rem .85rem;
  border-inline-end: 1px solid #e5e7eb;
  font-weight: 700;
  white-space: nowrap;
  background: #fafafa;
}

.xh-phone-caret {
  font-size: .7rem;
  color: var(--xh-muted);
}

.xh-phone-input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.xh-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  min-height: 52px;
  border-radius: .65rem;
  font-weight: 700;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  padding: .85rem 1rem;
}

.xh-login-btn-dark {
  background: #111;
  color: #fff;
  border-color: #111;
}

.xh-login-btn-dark:hover { background: #222; color: #fff; }

.xh-login-btn-ghost {
  background: #fff;
  color: #111;
  border-color: #d7d7d7;
}

.xh-login-btn-ghost:hover {
  background: #fafafa;
  color: #111;
}

.xh-login-register {
  text-align: center;
  color: var(--xh-muted);
  font-size: .92rem;
  margin: .5rem 0 0;
}

.xh-login-register a { font-weight: 700; color: #111; }

.xh-auth-footer {
  text-align: center;
  color: var(--xh-muted);
  font-size: .82rem;
  padding: 1.25rem;
}

/* Wishlist page (Xhawi-style empty state) */
.xh-wishlist-page {
  padding: 2rem 0 1rem;
  text-align: center;
}

.xh-wishlist-crumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  color: #9ca3af;
  font-size: .92rem;
  margin-bottom: 1.25rem;
}

.xh-wishlist-crumbs a {
  color: #9ca3af;
}

.xh-wishlist-crumbs a:hover {
  color: var(--xh-ink);
  text-decoration: underline;
}

.xh-wishlist-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--xh-ink);
}

.xh-wishlist-empty {
  max-width: 560px;
  margin: 0 auto 1rem;
  padding: 1rem 0 2.5rem;
}

.xh-wishlist-empty-text {
  margin: 0 0 1.75rem;
  color: #8b919a;
  font-size: 1.05rem;
  line-height: 1.7;
}

.xh-wishlist-empty-hint {
  margin: -1rem 0 1.5rem;
  color: #9ca3af;
  font-size: .92rem;
}

.xh-btn-black,
.xh-btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 420px);
  padding: 1rem 2rem;
  border-radius: .7rem;
  background: #111 !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.05rem;
  border: 0;
  transition: background .2s ease, transform .2s ease;
}

.xh-btn-black:hover,
.xh-btn-lime:hover {
  background: #000 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.xh-recent-section {
  border-top: 1px solid var(--xh-line);
  margin-top: 2rem;
  padding: 2.5rem 0 1rem;
  text-align: center;
}

.xh-recent-title {
  margin: 0 0 .65rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.xh-recent-sub {
  margin: 0 auto 1.75rem;
  max-width: 520px;
  color: #8b919a;
  font-size: .98rem;
  line-height: 1.6;
}

.xh-recent-section .xh-grid {
  text-align: start;
}

.xh-wishlist-page .xh-grid {
  text-align: start;
  margin-top: 1rem;
}

/* Checkout page (Duqm-style) */
.xh-checkout-page {
  min-height: 100vh;
  background: #f3f4f6;
}

.xh-checkout-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--xh-line);
  direction: ltr;
}

.xh-checkout-bag {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--xh-line);
  justify-self: start;
}

.xh-checkout-logo {
  text-align: center;
  line-height: 1.1;
  justify-self: center;
  display: flex;
  justify-content: center;
}

.xh-checkout-top .xh-lang-menu { justify-self: end; }

.xh-checkout-shell {
  width: min(1100px, 100% - 2rem);
  margin: 1.25rem auto 2rem;
}

.xh-checkout-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.25rem;
  align-items: start;
}

html[dir="rtl"] .xh-checkout-grid {
  direction: rtl;
}

.xh-checkout-steps,
.xh-checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.xh-step-card,
.xh-summary-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e7e7e7;
  padding: 1rem 1.1rem;
}

.xh-step-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  width: 100%;
}

.xh-step-head small {
  margin-inline-start: auto;
  color: var(--xh-muted);
  font-weight: 600;
}

.xh-step-edit {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--xh-line);
  display: grid;
  place-items: center;
  color: #666;
  flex: 0 0 auto;
}

.xh-step-edit:hover { background: #f5f5f5; color: #111; }

.xh-step-num,
.xh-step-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: #666;
  flex: 0 0 auto;
}

.xh-step-check {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
  font-weight: 800;
}

.xh-step-card.is-open .xh-step-num {
  background: #111;
  border-color: #111;
  color: #fff;
}

.xh-ship-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: .35rem;
}

.xh-ship-option {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid #d7d7d7;
  border-radius: .75rem;
  padding: .85rem 1rem;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}

.xh-ship-option:has(input:checked) {
  border-color: #111;
  box-shadow: 0 0 0 1px #111 inset;
}

.xh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.xh-form-grid .xh-login-label { margin-bottom: .35rem; display: block; }

@media (max-width: 700px) {
  .xh-ship-options,
  .xh-form-grid { grid-template-columns: 1fr; }
}

.xh-step-body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.xh-checkout-pay-note {
  margin: 0;
  color: var(--xh-muted);
}

.xh-pay-method {
  border: 1px solid var(--xh-line);
  border-radius: .75rem;
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  background: #fafafa;
}

.xh-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.xh-summary-head h2,
.xh-summary-card > h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.xh-summary-head a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--xh-line);
  font-size: 1.1rem;
}

.xh-summary-items {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 1rem;
}

.xh-summary-item {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.xh-summary-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: .85rem;
  border: 1px solid var(--xh-line);
  overflow: hidden;
  background: #f8f8f8;
  flex: 0 0 auto;
}

.xh-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.xh-summary-qty {
  position: absolute;
  top: -6px;
  inset-inline-start: -6px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 .3rem;
}

.xh-summary-meta {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.xh-summary-meta strong {
  font-size: .95rem;
  line-height: 1.35;
}

.xh-summary-meta span {
  color: var(--xh-price);
  font-weight: 800;
}

.xh-note-toggle {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  margin: .5rem 0;
  cursor: pointer;
}

.xh-note-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.xh-switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  flex: 0 0 auto;
  transition: background .2s ease;
}

.xh-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: inset-inline-start .2s ease, left .2s ease, right .2s ease;
}

.xh-note-toggle input:checked + .xh-switch {
  background: #22c55e;
}

.xh-note-toggle input:checked + .xh-switch::after {
  inset-inline-start: 21px;
}

.xh-coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
}

.xh-coupon-row button {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: .65rem;
  padding: 0 1rem;
  font-weight: 700;
  cursor: pointer;
}

.xh-coupon-row button:hover { background: #f5f5f5; }

.xh-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .65rem 0;
  color: #444;
}

.xh-summary-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
  border-top: 1px solid var(--xh-line);
  padding-top: .85rem;
  margin-top: .85rem;
}

.xh-vat-note,
.xh-policy-link {
  color: var(--xh-muted);
  font-size: .85rem;
}

.xh-policy-link {
  display: inline-block;
  margin-top: .5rem;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .xh-checkout-grid { grid-template-columns: 1fr; }
}

.xh-auth-wrap input,
.xh-panel input,
.xh-panel select {
  width: 100%;
  border: 1px solid var(--xh-line);
  border-radius: .65rem;
  padding: .7rem .85rem;
  font: inherit;
  margin-top: .35rem;
  margin-bottom: .85rem;
}

.xh-table { width: 100%; border-collapse: collapse; }
.xh-table th, .xh-table td {
  padding: .85rem .5rem;
  border-bottom: 1px solid var(--xh-line);
  text-align: start;
  vertical-align: middle;
}

.xh-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.5rem;
  margin: 1.75rem 0 2.5rem;
  padding: 1.35rem 1.5rem;
  background: #f3f4f6;
  border: 1px solid #e8eaed;
  border-radius: 1rem;
}

.xh-trust-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  min-width: 0;
}

.xh-trust-icon {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: #e9ebef;
  border-radius: .7rem;
  color: #222;
}

.xh-trust-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.xh-trust-copy h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--xh-ink);
  line-height: 1.35;
}

.xh-trust-copy p {
  margin: 0;
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.55;
}

.xh-social-contact {
  margin: 0 0 2.5rem;
  padding: .25rem 0 0;
  text-align: start;
}

.xh-social-label {
  margin: 0 0 .85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--xh-ink);
}

.xh-social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.35rem;
}

[dir="rtl"] .xh-social-icons {
  justify-content: flex-end;
}

.xh-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  color: var(--xh-ink);
  transition: opacity .15s ease, transform .15s ease;
}

.xh-social-link:hover {
  opacity: .7;
  transform: translateY(-1px);
}

.xh-social-link svg {
  width: 1.55rem;
  height: 1.55rem;
}

@media (max-width: 900px) {
  html, body.xhawi-body {
    overflow-x: hidden;
  }

  .xh-header,
  .xh-header .xh-container,
  main,
  main > .xh-container,
  .xh-footer,
  .xh-orders-page,
  .xh-track-panel {
    max-width: 100%;
    min-width: 0;
  }

  .xh-header-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: .75rem;
    padding: .8rem 0 .7rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .xh-logo { order: -1; justify-self: center; max-width: min(100%, 280px); }

  .xh-logo-img {
    width: min(100%, 240px);
    max-height: 52px;
  }

  .xh-tools-left,
  .xh-tools-right {
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .xh-tools-right {
    gap: .45rem;
  }

  .xh-search {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }

  .xh-section,
  .xh-hero,
  main {
    max-width: 100%;
    min-width: 0;
  }

  .xh-account-label { display: none; }
  .xh-account-name { max-width: 110px; }

  /* Category submenus stay hover-only on desktop; More uses click (.is-open) */
  .xh-nav-list > li.has-dropdown:not(.xh-nav-more):hover .xh-dropdown,
  .xh-nav-list > li.has-dropdown:not(.xh-nav-more):focus-within .xh-dropdown {
    display: none;
  }

  .xh-nav-more.is-open .xh-dropdown,
  .xh-nav-more .xh-dropdown:not([hidden]) {
    display: block !important;
  }

  .xh-hero-slide--fallback { grid-template-columns: 1fr; text-align: center; }
  .xh-listing { grid-template-columns: 1fr; }
  .xh-filters { display: none; }
  .xh-toolbar-count { display: none; }
  .xh-pdp { grid-template-columns: 1fr; }
  .xh-gallery { grid-template-columns: 1fr; }
  .xh-thumbs { flex-direction: row; overflow-x: auto; }
  .xh-thumb { width: 64px; flex: 0 0 64px; }
  .xh-spec-row { grid-template-columns: 1fr; gap: .15rem; }
  .xh-cart-layout { grid-template-columns: 1fr !important; }
  .xh-trust-bar { grid-template-columns: 1fr; padding: 1.1rem 1.15rem; }
}

@media (max-width: 560px) {
  .xh-account-chip { padding-inline-end: .35rem; }
  .xh-account-meta { display: none; }
  .xh-account-caret { display: none; }
  .xh-lang { padding: .5rem .65rem; }
}

/* Customer order tracking */
.xh-orders-page {
  padding: 1rem 0 2.5rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.xh-orders-page .xh-wishlist-crumbs {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: #6b7280;
  font-weight: 600;
}

.xh-orders-page .xh-wishlist-crumbs a {
  color: #374151;
  font-weight: 700;
}

.xh-orders-title {
  margin: 0 0 .35rem;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 800;
}

.xh-orders-sub {
  margin: 0;
  color: var(--xh-muted);
  font-weight: 600;
}

.xh-orders-list {
  display: grid;
  gap: 1rem;
}

.xh-order-card,
.xh-track-panel {
  border: 1px solid var(--xh-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.15rem 1.25rem;
}

.xh-order-card-top,
.xh-track-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.xh-track-head > div {
  min-width: 0;
}

.xh-track-head .xh-orders-sub {
  margin-bottom: 0;
}

.xh-order-id {
  font-weight: 800;
  font-size: 1.05rem;
}

.xh-order-date {
  color: var(--xh-muted);
  font-size: .9rem;
  margin-top: .2rem;
}

.xh-order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  color: #374151;
  font-weight: 600;
  margin-bottom: 1rem;
}

.xh-order-card-actions,
.xh-track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.xh-order-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  background: #f3f4f6;
  color: #374151;
}

.xh-order-status--pending { background: #fff7ed; color: #c2410c; }
.xh-order-status--paid,
.xh-order-status--processing { background: #ecfeff; color: #0e7490; }
.xh-order-status--shipped { background: #eef2ff; color: #4338ca; }
.xh-order-status--delivered { background: #ecfdf5; color: #047857; }
.xh-order-status--failed,
.xh-order-status--cancelled { background: #fef2f2; color: #b91c1c; }

.xh-track-panel {
  margin-bottom: 1rem;
}

.xh-track-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.xh-track-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.xh-track-step {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: .85rem;
  align-items: start;
  position: relative;
  padding-bottom: 1.15rem;
}

.xh-track-step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: .52rem;
  top: 1.15rem;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.xh-track-step.is-done:not(:last-child)::before,
.xh-track-step.is-current:not(:last-child)::before {
  background: #0f766e;
}

.xh-track-dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  margin-top: .1rem;
}

.xh-track-step.is-done .xh-track-dot,
.xh-track-step.is-current .xh-track-dot {
  border-color: #0f766e;
  background: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.xh-track-step.is-upcoming .xh-track-label {
  color: #9ca3af;
}

.xh-track-step.is-current .xh-track-label {
  color: #0f766e;
  font-weight: 800;
}

.xh-track-step.is-done .xh-track-label {
  color: #111827;
  font-weight: 700;
}

.xh-track-copy {
  display: grid;
  gap: .2rem;
  padding-top: .05rem;
}

.xh-track-label {
  font-size: .98rem;
  font-weight: 600;
}

.xh-track-time {
  font-size: .82rem;
  font-weight: 600;
  color: #6b7280;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.xh-track-step.is-upcoming .xh-track-time {
  display: none;
}

.xh-track-step.is-current .xh-track-time {
  color: #0f766e;
}

.xh-track-items {
  display: grid;
  gap: .75rem;
}

.xh-track-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f3f4f6;
}

.xh-track-item:last-child { border-bottom: 0; padding-bottom: 0; }

.xh-track-item-name { font-weight: 700; }

.xh-track-item-meta {
  display: flex;
  gap: 1rem;
  color: #4b5563;
  font-weight: 600;
  white-space: nowrap;
}

.xh-track-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--xh-line);
  font-size: 1.05rem;
}

.xh-track-alert {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: .85rem;
  font-weight: 700;
}

.xh-track-alert--failed,
.xh-track-alert--cancelled {
  background: #fef2f2;
  color: #b91c1c;
}
