/* Shared news ticker (dark strip) */
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/almarai-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/almarai-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/almarai-800.ttf') format('truetype');
}

html {
  font-family: 'Almarai', 'Segoe UI', Tahoma, Arial, sans-serif;
}

@keyframes ps-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.ps-ticker {
  background: #000;
  color: #fff;
  font-family: 'Almarai', 'Segoe UI', Tahoma, Arial, sans-serif;
  position: relative;
  z-index: 260;
}

.ps-ticker__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 40px;
}

.ps-ticker__marquee {
  width: 60%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ps-ticker__track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 34px;
  width: max-content;
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
  animation: ps-ticker 28s linear infinite;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
}

.ps-ticker__item {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
}

.ps-ticker__dot {
  color: rgba(255, 255, 255, .4);
  flex: 0 0 auto;
  line-height: 40px;
}

.ps-ticker__tools {
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 16px;
  border-inline-start: 1px solid rgba(255, 255, 255, .14);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .ps-ticker__marquee { width: 50%; }
  .ps-ticker__tools {
    width: 50%;
    padding: 0 10px;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .ps-ticker__inner { flex-direction: column; min-height: 0; }
  .ps-ticker__marquee,
  .ps-ticker__tools { width: 100%; }
  .ps-ticker__tools {
    justify-content: center;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 8px 10px;
    gap: 8px;
  }
  .ps-ticker__track {
    font-size: 11.5px;
    gap: 24px;
  }
  .ps-ticker__track,
  .ps-ticker__dot { line-height: 36px; }
}

/* Shared topbar currency/lang selectors (dark strip) */
.ps-tb-sel {
  position: relative;
  display: flex;
  align-items: center;
}
.ps-tb-sel__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  white-space: nowrap;
}
.ps-tb-sel__btn:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22);
}
.ps-tb-sel__btn svg {
  transition: transform .2s;
  flex-shrink: 0;
}
.ps-tb-sel__btn[aria-expanded="true"] svg:last-child {
  transform: rotate(180deg);
}
.ps-tb-dd {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  inset-inline-end: auto;
  min-width: 200px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .55);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, visibility .18s, transform .18s;
  pointer-events: none;
}
.ps-tb-dd.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.ps-tb-dd__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.ps-tb-dd__item:hover,
.ps-tb-dd__item.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.ps-tb-dd__item.active::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a227;
  margin-inline-start: auto;
  flex-shrink: 0;
}
.ps-tb-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, .14);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .ps-tb-sel__btn {
    padding: 5px 8px;
    font-size: 11.5px;
    gap: 5px;
  }
  #currencyLabel {
    max-width: 7.5em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ps-ticker__tools {
    position: relative;
    overflow: visible;
  }
  .ps-tb-sel {
    position: static;
  }
  .ps-tb-dd,
  #currencySelector .ps-tb-dd,
  #langSelector .ps-tb-dd {
    left: 10px !important;
    right: 10px !important;
    inset-inline: 10px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    transform: translateY(-6px) !important;
    box-sizing: border-box;
  }
  .ps-tb-dd.open,
  #currencySelector .ps-tb-dd.open,
  #langSelector .ps-tb-dd.open {
    transform: translateY(0) !important;
  }
  .ps-tb-dd__item {
    padding: 10px 12px;
    border-radius: 10px;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .ps-tb-dd,
  #currencySelector .ps-tb-dd,
  #langSelector .ps-tb-dd {
    left: 12px !important;
    right: 12px !important;
    inset-inline: 12px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    transform: translateY(-6px) !important;
  }
  .ps-tb-dd.open,
  #currencySelector .ps-tb-dd.open,
  #langSelector .ps-tb-dd.open {
    transform: translateY(0) !important;
  }
}

/* Shared white main header */
.ps-site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  position: sticky;
  top: 0;
  z-index: 200;
  font-family: 'Almarai', 'Segoe UI', Tahoma, Arial, sans-serif;
}
.ps-site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ps-site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.ps-site-header__logo img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1.5px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.ps-site-header__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ps-site-header__name {
  font-size: 22px;
  font-weight: 800;
  color: #000;
  letter-spacing: -.5px;
}
.ps-site-header__sub {
  font-size: 11px;
  font-weight: 700;
  color: #6b6b6b;
  letter-spacing: 3.5px;
  margin-top: 4px;
}
.ps-site-header__nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 700;
}
.ps-site-header__nav a {
  color: #0a0a0a;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.ps-site-header__nav a:hover,
.ps-site-header__nav a.is-active {
  border-bottom-color: #000;
}
.ps-site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ps-site-header__icon {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  color: #0a0a0a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ps-site-header__icon:hover {
  border-color: #000;
  background: #0a0a0a;
  color: #fff;
}
.ps-site-header__icon:active {
  transform: scale(.96);
}
.ps-site-header__icon--search {
  display: none;
}
.ps-site-header__badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #0a0a0a;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .ps-site-header {
    background: rgba(255, 255, 255, .94);
  }
  .ps-site-header__nav { display: none; }
  .ps-site-header__inner {
    padding: 10px 14px;
    gap: 12px;
    max-width: 100%;
  }
  .ps-site-header__logo {
    gap: 10px;
  }
  .ps-site-header__logo img {
    width: 42px;
    height: 42px;
    border-width: 1.5px;
  }
  .ps-site-header__name {
    font-size: 16.5px;
    letter-spacing: -.3px;
  }
  .ps-site-header__sub {
    letter-spacing: 2.2px;
    font-size: 9.5px;
    margin-top: 3px;
  }
  .ps-site-header__actions {
    gap: 6px;
    margin-inline-start: auto;
    padding: 4px;
    border-radius: 999px;
    background: #f4f4f4;
    border: 1px solid #ebebeb;
  }
  .ps-site-header .ps-search { display: none; }
  .ps-site-header__icon--search {
    display: flex;
  }
  .ps-site-header__icon {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1a1a1a;
  }
  .ps-site-header__icon:hover {
    background: #fff;
    color: #000;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  }
  .ps-site-header__icon--cart {
    background: #0a0a0a;
    color: #fff;
  }
  .ps-site-header__icon--cart:hover {
    background: #222;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  }
  .ps-site-header__badge {
    top: -3px;
    left: -3px;
    min-width: 17px;
    height: 17px;
    border-width: 1.5px;
    background: #fff;
    color: #0a0a0a;
    border-color: #0a0a0a;
    font-size: 9px;
  }
}

@keyframes ps-msearch-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.ps-msearch {
  display: none;
}
.ps-msearch__form {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 4px 4px 4px 12px;
  background: #f4f4f4;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ps-msearch__form:focus-within {
  background: #fff;
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}
.ps-msearch__ico {
  flex-shrink: 0;
  color: #8a8a8a;
}
.ps-msearch__form input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
}
.ps-msearch__form input::placeholder {
  color: #9a9a9a;
  font-weight: 700;
}
.ps-msearch__go {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.ps-msearch__go:active { background: #222; }
.ps-msearch__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b6b6b;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.ps-msearch__close:hover {
  background: #ebebeb;
  color: #0a0a0a;
}

@media (max-width: 900px) {
  .ps-msearch:not([hidden]) {
    display: block;
    border-top: 1px solid #eee;
    padding: 10px 14px 12px;
    background: rgba(255, 255, 255, .98);
    animation: ps-msearch-in .22s ease;
  }
}

@media (max-width: 560px) {
  .ps-site-header__inner {
    padding: 8px 12px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .ps-site-header__brand { min-width: 0; }
  .ps-site-header__sub { display: none; }
  .ps-site-header__name {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 38vw;
  }
  .ps-site-header__logo { gap: 9px; min-width: 0; }
  .ps-site-header__logo img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .ps-site-header__actions {
    gap: 4px;
    padding: 3px;
  }
  .ps-site-header__icon {
    width: 36px;
    height: 36px;
  }
  #currencyLabel,
  #langLabel {
    max-width: 4.8em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Shared cart drawer */
.ps-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s, visibility .28s;
}
.ps-scrim.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ps-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(420px, 92vw);
  background: #fff;
  z-index: 410;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 40px rgba(0, 0, 0, .18);
  transform: translateX(-105%);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
  font-family: 'Almarai', 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #0a0a0a;
}
.ps-drawer.is-on { transform: translateX(0); }
.ps-drawer__head,
.ps-drawer__foot {
  padding: 18px 20px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ps-drawer__foot {
  border-bottom: 0;
  border-top: 1px solid #e8e8e8;
  flex-direction: column;
  align-items: stretch;
}
.ps-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 16px 20px;
}
.ps-drawer__empty {
  text-align: center;
  padding: 48px 12px;
  color: #6b6b6b;
}
.ps-cart-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
}
.ps-cart-line img {
  width: 72px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #f0f0f0;
}
.ps-cart-line__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}
.ps-cart-line__meta {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #6b6b6b;
  font-weight: 700;
}
.ps-cart-line__row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ps-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
}
.ps-qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
}
.ps-qty span {
  width: 34px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
}
.ps-btn {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
}
.ps-btn-primary {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 16px;
  font-size: 15px;
}
.ps-btn-primary:hover { background: #222; }
.ps-btn-ghost {
  width: 100%;
  margin-top: 10px;
  background: #fff;
  color: #000;
  border: 1px solid #e8e8e8;
  padding: 14px;
  font-size: 14px;
}
.ps-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-site-header__badge[hidden] { display: none !important; }
