/**
 * Homepage trust strip + compact language toggle.
 */

/* —— Single premium trust bar (matches hero width) —— */
.sf-home-trust {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
.sf-home-trust-bar {
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px;
  height: 48px;
  max-height: 52px;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, var(--rt-ui-mist, #f7f6fb) 0%, var(--rt-ui-soft, #f3f1fa) 100%);
  border: 0;
  border-top: 1px solid var(--rt-ui-line, rgba(15, 23, 42, 0.08));
  overflow: visible !important;
}
.sf-home-trust-item {
  position: relative;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0b1220 !important;
  text-decoration: none !important;
  text-align: left;
  font: inherit;
  cursor: default;
}
button.sf-home-trust-item {
  cursor: pointer;
}
button.sf-home-trust-item:hover,
button.sf-home-trust-item:focus-visible {
  background: rgba(16, 27, 46, 0.04) !important;
  outline: none;
}
.sf-home-trust-item + .sf-home-trust-item {
  border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
}
html[dir="rtl"] .sf-home-trust-item + .sf-home-trust-item {
  border-left: 0 !important;
  border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
}
.sf-home-trust-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--rt-brand-dark, #101b2e);
}
.sf-home-trust-ico svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
}
.sf-home-trust-item strong {
  min-width: 0;
  margin: 0;
  font-size: clamp(0.62rem, 0.95vw, 0.76rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #0b1220;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sf-trust-short {
  display: none;
}
.sf-trust-ship-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 60;
  width: min(280px, 78vw);
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b1220;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  pointer-events: none;
  white-space: normal;
}
.sf-home-trust-ship .sf-trust-ship-tip {
  left: auto;
  right: 6px;
  transform: none;
}
.sf-trust-ship-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #0b1220;
}
.sf-home-trust-ship .sf-trust-ship-tip::after {
  left: auto;
  right: 28px;
  transform: none;
}
.sf-trust-ship-tip[hidden] {
  display: none !important;
}
.sf-home-trust-ship.is-open .sf-trust-ship-tip {
  display: block !important;
}

/* —— Compact language switch: flag + switch-to language (no AE / EN dual buttons) —— */
.sf-lang {
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  height: 32px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #0b1220;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box;
}
.sf-lang:hover,
.sf-lang:focus-visible {
  border-color: rgba(30, 58, 138, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
  outline: none;
}
.sf-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14px;
  height: 10px;
  border-radius: 1.5px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14);
  line-height: 0;
}
.sf-lang-flag svg {
  display: block;
  width: 14px;
  height: 10px;
}
.sf-lang-code {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}
.sf-lang-code.is-target-ar {
  font-family: "Noto Sans Arabic", Manrope, system-ui, sans-serif;
  letter-spacing: 0;
  font-size: 0.74rem;
  font-weight: 700;
}
.sf-lang-code.is-target-en {
  letter-spacing: 0.015em;
  font-weight: 750;
}

@media (max-width: 900px) {
  .sf-lang {
    height: 30px;
    padding: 0 8px 0 6px;
    gap: 4px;
  }
  .sf-lang-flag,
  .sf-lang-flag svg {
    width: 12px;
    height: 9px;
  }
  .sf-lang-code {
    font-size: 0.64rem;
  }
  .sf-lang-code.is-target-ar {
    font-size: 0.68rem;
  }
  .sf-home-trust-bar {
    height: 42px !important;
    min-height: 40px !important;
    max-height: 44px !important;
  }
  .sf-home-trust-item {
    flex-direction: row !important;
    gap: 4px !important;
    padding: 0 4px !important;
  }
  .sf-home-trust-ico {
    width: 16px;
    height: 16px;
  }
  .sf-home-trust-ico svg {
    width: 14px;
    height: 14px;
  }
  .sf-home-trust-item strong {
    font-size: 0.58rem;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
  }
  .sf-trust-full {
    display: none !important;
  }
  .sf-trust-short {
    display: inline !important;
  }
  .sf-trust-ship-tip {
    width: min(220px, 80vw);
    font-size: 0.66rem;
    bottom: calc(100% + 6px);
  }
}

@media (min-width: 1100px) {
  .sf-home-trust-item {
    padding: 0 12px !important;
    gap: 8px !important;
  }
  .sf-home-trust-item strong {
    font-size: 0.76rem;
  }
  .sf-home-trust-ico svg {
    width: 19px;
    height: 19px;
  }
}

/* Homepage stack order is owned by store-rhythm / premium-finish (Offers before Creator). */
.page-home .ix-home-top {
  overflow: visible !important;
}
.page-home .sf-home-trust {
  z-index: 5;
}

/* —— RTL —— */
html[dir="rtl"] body,
body.is-ar {
  font-family: "Noto Sans Arabic", Manrope, system-ui, sans-serif;
}
html[dir="rtl"] .sf-lang {
  font-family: Manrope, system-ui, sans-serif;
}
html[dir="rtl"] .sf-lang-code.is-target-en {
  font-family: Manrope, system-ui, sans-serif;
}
html[dir="rtl"] .sf-mainbar-pro {
  direction: rtl;
}
html[dir="rtl"] .sf-search-pro input {
  text-align: right;
}
html[dir="rtl"] .sf-profile-panel {
  left: 0 !important;
  right: auto !important;
}
html[dir="rtl"] .ix-certified-head,
html[dir="rtl"] .cu-mkt-card,
html[dir="rtl"] .rt-certified-collection-inner {
  text-align: right;
}
html[dir="rtl"] .sf-home-trust-item {
  text-align: right;
}
html[dir="rtl"] .rt-card-actions,
html[dir="rtl"] .pdp-cta-row,
html[dir="rtl"] .pdp-purchase-block {
  direction: rtl;
}
html[dir="rtl"] .pdp-buybox,
html[dir="rtl"] .pdp-trust-row,
html[dir="rtl"] .rt-card-body {
  text-align: right;
}
html[dir="rtl"] .pdp-qty {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .ck-actions {
  flex-direction: row-reverse;
}
html[dir="rtl"] .rt-cart-drawer {
  left: 0;
  right: auto;
}
html[dir="rtl"] .rt-cart-head,
html[dir="rtl"] .rt-cart-row,
html[dir="rtl"] .rt-cart-added-row {
  text-align: right;
}

/* Guard against language-switch overflow */
html {
  overflow-x: clip;
}
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Wishlist heart — alignment + stroke polish only */
.rt-tool svg,
.pdp-tool-ico svg,
.rt-icon-btn svg {
  display: block;
  margin: 0 auto;
  overflow: visible;
  vector-effect: non-scaling-stroke;
}
.rt-tool[data-wish-toggle] svg,
.pdp-tool[data-wish-toggle] .pdp-tool-ico svg,
.rt-icon-btn[data-wish-toggle] svg {
  width: 17px;
  height: 17px;
  transform: translateY(0.5px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rt-tool[data-wish-toggle].is-on svg,
.pdp-tool[data-wish-toggle].is-on .pdp-tool-ico svg,
.rt-icon-btn[data-wish-toggle].is-on svg {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.4;
}
