/* ==========================================================================
   Orbit Dock — Mobile-first bottom navigation (signature system)
   ========================================================================== */

body.mx-bn-sheet-open {
  overflow: hidden;
}

.mx-bn {
  --mx-bn-h: 60px;
  --mx-bn-radius: 30px;
  --mx-bn-inset: 14px;
  position: fixed;
  z-index: var(--mx-z-bottom-nav, 550);
  inset-inline: var(--mx-bn-inset);
  bottom: calc(var(--mx-bn-inset) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  display: none;
}

body.has-mx-bnav.mx-bn-mq .mx-bn {
  display: block;
}

.mx-bn__shell {
  pointer-events: auto;
  height: var(--mx-bn-h);
  border-radius: var(--mx-bn-radius);
  background: color-mix(in srgb, var(--mx-bn-surface, #F7F4EE) 92%, transparent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 10px 28px rgba(28, 26, 23, .12),
    0 2px 6px rgba(28, 26, 23, .06);
  border: 1px solid color-mix(in srgb, var(--mx-bn-ink, #1C1A17) 8%, transparent);
  transition:
    height .28s cubic-bezier(.22, 1, .36, 1),
    transform .28s cubic-bezier(.22, 1, .36, 1),
    border-radius .28s ease,
    box-shadow .28s ease;
  overflow: visible;
}

.mx-bn--blur .mx-bn__shell {
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.mx-bn--ink_bar {
  --mx-bn-radius: 18px;
  inset-inline: 0;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mx-bn--ink_bar .mx-bn__shell {
  border-radius: 18px 18px 0 0;
  border-bottom: 0;
  box-shadow: 0 -8px 24px rgba(28, 26, 23, .08);
}

.mx-bn__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  height: 100%;
  padding: 6px;
  gap: 2px;
}

.mx-bn__orbit {
  position: absolute;
  top: auto;
  bottom: 8px;
  left: 0;
  height: 3px;
  width: 18px;
  border-radius: 999px;
  background: var(--mx-bn-accent, #C4A574);
  box-shadow: 0 0 10px color-mix(in srgb, var(--mx-bn-accent, #C4A574) 55%, transparent);
  transition: left .34s cubic-bezier(.22, 1, .36, 1), width .28s ease, opacity .2s ease;
  pointer-events: none;
  z-index: 0;
}

.mx-bn__item {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mx-bn-muted, #8A847A);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: auto;
  min-width: auto;
  padding: 4px 2px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  transition: color .2s ease, transform .18s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}

.mx-bn__item:hover,
.mx-bn__item:focus-visible {
  color: var(--mx-bn-ink, #1C1A17);
  outline: none;
}

.mx-bn__item:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mx-bn-accent, #C4A574) 70%, transparent);
}

.mx-bn__item:active {
  transform: scale(.94);
}

.mx-bn__item.is-active {
  color: var(--mx-bn-ink, #1C1A17);
}

.mx-bn__icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: inherit;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.mx-bn__icon .mx-icon,
.mx-bn__icon svg {
  width: 27px;
  height: 27px;
  display: block;
  overflow: visible;
  color: inherit;
}

.mx-bn__icon svg [stroke],
.mx-bn__icon svg circle {
  stroke: currentColor;
}

.mx-bn__icon svg [fill="none"] path,
.mx-bn__icon svg [fill="none"] circle {
  stroke: currentColor;
  fill: none;
}

.mx-bn__icon svg [fill="currentColor"],
.mx-bn__icon svg [fill="currentColor"] path {
  fill: currentColor;
  stroke: none;
}

.mx-bn__item.is-active .mx-bn__icon {
  transform: none;
}

.mx-bn__badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mx-bn-badge, #2F6B4F);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--mx-bn-surface, #F7F4EE);
  z-index: 2;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}

.mx-bn__badge.is-empty {
  display: none;
}

.mx-bn__badge.is-bump {
  transform: scale(1.18);
}

/* Compact / partial scroll modes */
body.is-mx-bnav-compact .mx-bn {
  --mx-bn-h: 54px;
  --mx-bn-radius: 26px;
}
body.is-mx-bnav-partial .mx-bn {
  transform: translateY(42%);
}
body.is-mx-bnav-partial .mx-bn:hover,
body.is-mx-bnav-partial .mx-bn:focus-within {
  transform: translateY(0);
}

/* Sheets */
.mx-bn-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--mx-z-sheet, 900);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mx-bn-sheet[hidden] { display: none !important; }

.mx-bn-sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 23, .42);
  backdrop-filter: blur(2px);
}

.mx-bn-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(95%, 100%);
  max-height: min(92vh, 860px);
  background: #fbfaf7;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -16px 48px rgba(28, 26, 23, .18);
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.mx-bn-sheet.is-open .mx-bn-sheet__panel {
  transform: none;
  opacity: 1;
}

.mx-bn-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  padding:7px 16px;
}

.mx-bn-sheet__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9a9286;
}

.mx-bn-sheet__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #1c1a17;
  line-height: 1.15;
}

.mx-bn-sheet__sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6f6a62;
  line-height: 1.35;
}

.mx-bn-sheet__close {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 0;
  background: #efece5;
  color: #1c1a17;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}
.mx-bn-sheet__close .mx-icon { width: 12px; height: 12px; }

.mx-bn-sheet__body {
  overflow: auto;
  padding: 0px 16px;
  -webkit-overflow-scrolling: touch;
}

.mx-bn-explore__section { margin-top: 8px; }
.mx-bn-explore__heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a847a;
}
.mx-bn-explore__row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.mx-bn-explore__row-head .mx-bn-explore__heading { margin: 0; }

@media (min-width: 992px) {
  .mx-bn-sheet__title { font-size: 16px; }
  .mx-bn-sheet__sub,
  .mx-bn-explore__heading,
  .mx-bn-search__visual-status { font-size: 14.4px; }
}
.mx-bn-explore__more {
  border: 0;
  background: none;
  color:inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.mx-bn-explore__tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  height: 100%;
  align-items: stretch;
  @media (max-width: 450px) {
    gap: 7px;
  }
}
.mx-bn-explore__tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88px;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #1c1a17;
  overflow: hidden;
  transition: transform .2s ease;
}
.mx-bn-explore__tile:active { transform: scale(.98); }
.mx-bn-explore__tile--ink { background: linear-gradient(145deg, #1c1a17, #35312c); color: #f7f4ee; }
.mx-bn-explore__tile--sand { background: linear-gradient(145deg, #e8dfd0, #d7c8b0); }
.mx-bn-explore__tile--leaf { background: linear-gradient(145deg, #dce9e1, #b7d0c2); }
.mx-bn-explore__tile--blush { background: linear-gradient(145deg, #f0e2df, #e4c8c2); }
.mx-bn-explore__tile--image {
  display: block;
  min-height: 0;
  padding: 0;
  aspect-ratio: auto;
  background: transparent;
  height: auto;
  max-height: 170px;
}
.mx-bn-explore__tile--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mx-bn-explore__tile.has-media {
  background-size: cover;
  background-position: center;
  color: #f7f4ee;
}
.mx-bn-explore__tile.has-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,26,23,.78), rgba(28,26,23,.12));
}
.mx-bn-explore__tile-title {
  position: relative;
  z-index: 1;
  font-size:13px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.mx-bn-explore__tile.has-media .mx-bn-explore__tile-title {
  color: #f7f4ee;
}
.mx-bn-explore__tile-badge {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: #1c1a17;
}

.mx-bn-explore__cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 380px) {
  .mx-bn-explore__cats { gap:6px ; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mx-bn-explore__cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1c1a17;
  text-align: center;
}
.mx-bn-explore__cat-media {
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #efece5;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
}
.mx-bn-explore__cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mx-bn-explore__cat-fallback {
  font-weight: 700;
  color: #8a847a;
}
.mx-bn-explore__cat-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Search */
.mx-bn-search__head { padding-bottom: 8px; }
.mx-bn-search__form {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  background: #efece5;
  border-radius: 12px;
  padding: 6px;
}
.mx-bn-search__icon {
  color: #8a847a;
  display: grid;
  place-items: center;
}
.mx-bn-search__icon .mx-icon,
.mx-bn-search__icon svg { width: 18px; height: 18px; }
.mx-bn-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
  color: #1c1a17;
  outline: none;
  padding: 10px 0;
}
.mx-bn-search__input::placeholder { color: #9a9286; }
.mx-bn-search__form .mx-bn-sheet__close {
  width: 27px;
  height: 27px;
  background: #fff;
}
.mx-bn-search__tool {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1c1a17;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}
.mx-bn-search__tool svg { width: 16px; height: 16px; display: block; }
.mx-bn-search__tool.is-busy { opacity: .55; pointer-events: none; }
.mx-bn-search__tool.is-listening {
  color: #fff;
  background: #1c1a17;
}
.mx-bn-search__tool.is-disabled {
  opacity: .4;
  cursor: default;
}
.mx-bn-scan {
  position: relative;
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  background: #1c1a17;
  min-height: 220px;
}
.mx-bn-scan__video {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #1c1a17;
}
.mx-bn-scan__frame {
  position: absolute;
  inset: 36px 18% 64px;
  border: 1.5px solid rgba(247, 244, 238, .9);
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(28, 26, 23, .28);
  pointer-events: none;
}
.mx-bn-scan .mx-bn-search__visual-status {
  position: absolute;
  left: 12px;
  right: 52px;
  bottom: 12px;
  margin: 0;
  color: #f7f4ee;
}
.mx-bn-scan .mx-bn-search__tool {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
}
.mx-bn-search__file { display: none; }
.mx-bn-search__visual-status {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6f6a62;
  line-height: 1.4;
}
[data-mx-bn-intent] {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1c1a17;
}

.mx-bn-search__block { margin-top: 10px; }
.mx-bn-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mx-bn-chip {
  appearance: none;
  border: 1px solid #e4dfd5;
  background: #fff;
  color: #1c1a17;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.mx-bn-chip--trend {
  border-color: color-mix(in srgb, var(--mx-bn-accent, #C4A574) 45%, #e4dfd5);
  background: color-mix(in srgb, var(--mx-bn-accent, #C4A574) 16%, #fff);
}

.mx-bn-search__list,
.mx-bn-search__products {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mx-bn-search__list a,
.mx-bn-search__list button {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  padding: 12px 0;
  border-bottom: 1px solid #efece5;
  color: #1c1a17;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.mx-bn-search__products li + li { margin-top: 8px; }
.mx-bn-search__product {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #efece5;
}
.mx-bn-search__product img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #efece5;
}
.mx-bn-search__product-meta { min-width: 0; flex: 1; }
.mx-bn-search__product-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mx-bn-search__product-price {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
}
.mx-bn-search__empty {
  margin: 28px 0 0;
  text-align: center;
  color: #8a847a;
  font-size: .92rem;
}

.mx-bn-account__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.mx-bn-account__tab {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #efece5;
  color: #1c1a17;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.mx-bn-account__tab.is-active,
.mx-bn-account__method.is-active {
  background: #1c1a17;
  color: #f7f4ee;
}
.mx-bn-account__methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mx-bn-account__method {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: #efece5;
  color: #1c1a17;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.mx-bn-account__form,
.mx-bn-account__card {
  display: grid;
  gap: 10px;
}
.mx-bn-account__field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #6f6a62;
}
.mx-bn-account__field input,
.mx-bn-account__field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e4dfd5;
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  color: #1c1a17;
  font: inherit;
  font-size: 15px;
}
.mx-bn-account__turnstile {
  min-height: 0;
}
.mx-bn-account__submit,
.mx-bn-account__row button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: #1c1a17;
  color: #f7f4ee;
  font-weight: 700;
  cursor: pointer;
}
.mx-bn-account__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mx-bn-account__danger {
  background: transparent;
  color: #9a3b32;
  border: 1px solid #e4cfcb;
}
.mx-bn-account__note,
.mx-bn-account__empty {
  margin: 0;
  font-size: 13px;
  color: #6f6a62;
  line-height: 1.4;
}
.mx-bn-account__dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.mx-bn-account__dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #efece5;
  font-size: 15px;
}
.mx-bn-account__dl dt { color: #8a847a; font-weight: 600; }
.mx-bn-account__dl dd { margin: 0; font-weight: 500; text-align: end;border: unset !important; }
.mx-bn-order {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #efece5;
  border-radius: 16px;
  background: #fff;
}
.mx-bn-order + .mx-bn-order {
  margin-top: 10px;
}
.mx-bn-order__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.mx-bn-order__code {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}
.mx-bn-order__status {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  color: #2f6b4f;
  background: #e7f0ea;
  border-radius: 999px;
  padding: 4px 10px;
}
.mx-bn-order__date,
.mx-bn-order__items {
  margin: 0;
  font-size: 13px;
  color: #8a847a;
}
.mx-bn-order__total {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #1c1a17;
}
.mx-bn-order__total .riyal-svg {
  width: 14px;
  height: 15px;
  display: inline-block;
  vertical-align: -0.12em;
}
.mx-bn-account__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mx-bn-account__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 4px;
  border-bottom: 1px solid #efece5;
  text-decoration: none;
  color: #1c1a17;
  font-size: 1rem;
  font-weight: 600;
}
.mx-bn-account__link--primary {
  background: #1c1a17;
  color: #f7f4ee;
  border-radius: 16px;
  border: 0;
  justify-content: center;
  margin-bottom: 12px;
}

.mx-bn-toast {
  position: fixed;
  z-index: var(--mx-z-toast, 450);
  left: 50%;
  bottom: calc(var(--mx-bnav-offset, 80px) + 12px);
  transform: translateX(-50%) translateY(8px);
  background: #1c1a17;
  color: #f7f4ee;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(28, 26, 23, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  white-space: nowrap;
}
.mx-bn-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Stack sticky CTAs above the dock */
body.has-mx-bnav.mx-bn-mq .mx-pdp__sticky-atc {
  bottom: calc(10px + var(--mx-bnav-offset, 0px));
}
@media (min-width: 992px) {
  body.has-mx-bnav.mx-bn-mq .mx-pdp__sticky-atc {
    bottom: calc(20px + var(--mx-bnav-offset, 0px));
  }
}
body.has-mx-bnav.mx-bn-mq .mx-plp-sticky-cart {
  bottom: calc(12px + var(--mx-bnav-offset, 0px));
}
body.has-mx-bnav.mx-bn-mq .mx-footer__back-top {
  bottom: calc(16px + var(--mx-bnav-offset, 72px));
}
.loyalty_button_footer,
body.has-mx-bnav .loyalty_button_footer,
body.has-mx-bnav.mx-bn-mq .loyalty_button_footer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mx-bn-account__rewards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--primary-color, #111) 18%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary-color, #111) 6%, #fff);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.mx-bn-account__rewards:hover {
  background: color-mix(in srgb, var(--primary-color, #111) 10%, #fff);
}

@media (prefers-reduced-motion: reduce) {
  .mx-bn__shell,
  .mx-bn__orbit,
  .mx-bn__item,
  .mx-bn__icon,
  .mx-bn-sheet__panel,
  .mx-bn-toast {
    transition: none !important;
  }
}
