:root {
  --nz-bg: #ffffff;
  --nz-panel: #ffffff;
  --nz-footer: #ffffff;
  --nz-ink: #111111;
  --nz-muted: #4b4b4b;
  --nz-accent: #610718;
  --nz-accent-dark: #450511;
  --nz-beige: #eedfcd;
  --nz-soft: #f8f5f0;
  --nz-on-accent: #ffffff;
  --nz-line: #e7e3df;
  --nz-radius: 18px;
  --nz-width: 1240px;
  --nz-space: clamp(32px, 4vw, 54px);
  --nz-ui-bg: var(--nz-bg);
  --nz-ui-panel: var(--nz-panel);
  --nz-ui-ink: var(--nz-ink);
  --nz-ui-accent: var(--nz-accent);
  --nz-ui-dark: var(--nz-accent-dark);
  --nz-ui-line: var(--nz-line);
  --nz-ui-shadow: 0 16px 48px rgba(17, 17, 17, .10);
  --bp-bg: var(--nz-bg);
  --bp-photo: var(--nz-bg);
  --bp-surface: var(--nz-panel);
  --bp-ink: var(--nz-ink);
  --bp-line: var(--nz-line);
  --color-primary: var(--nz-accent) !important;
  --color-primary-dark: var(--nz-accent-dark) !important;
  --color-primary-light: var(--nz-soft) !important;
  --color-primary-reverse: var(--nz-on-accent) !important;
  --color-main: var(--nz-ink) !important;
  --menu-links-color-final: var(--nz-ink) !important;
  --menu-links-color-default: var(--nz-ink) !important;
}

html, body, body#app, .app-inner {
  background-color: var(--nz-bg) !important;
  color: var(--nz-ink);
}

body {
  line-height: 1.7;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  max-width: var(--nz-width);
}

.app-inner > .s-block,
.app-inner > .section-spacing {
  margin-block: 0 !important;
}

.app-inner > .section-spacing {
  padding-block: var(--nz-space) !important;
  padding-inline: 24px;
}

.app-inner > [class*="s-block--bundle-"] {
  padding: 0 !important;
  background: var(--nz-bg) !important;
}

.s-block--bundle-premium-hero-banner {
  margin: 0 !important;
}

[component-name="premium-hero-banner"],
[component-name="luxury-categories"],
[component-name="luxury-products-grid"] {
  display: block;
}

/* الهيدر: نحافظ على خلفيته وشفافيته وفلتره الزجاجي الأصلي من الثيم. */

.store-header #classic-main-nav,
.store-header .navbarbg,
.store-header .inner {
  color: var(--nz-ink) !important;
}

.store-header #classic-main-nav {
  border-bottom: 1px solid var(--nz-line);
}

.store-header .inner,
.store-header .hidden.lg\:block {
  min-height: 0 !important;
}

.store-header .hidden.lg\:block > .flex {
  min-height: 80px;
}

.nazra-localization-ready .store-header:has(#classic-main-nav) {
  height: auto !important;
  min-height: 81px;
}

.store-header #top-nav {
  display: none !important;
}

.store-header .navbar-brand {
  padding: 0 !important;
}

.store-header .navbar-brand img {
  width: 112px !important;
  height: 64px !important;
  max-height: none !important;
  object-fit: contain;
  mix-blend-mode: normal;
}

.store-header .main-menu > li > a {
  color: var(--nz-ink) !important;
  font-size: 14px;
  font-weight: 500;
}

.store-header .main-menu > li > a:hover {
  color: var(--nz-accent) !important;
}

.store-header .hamburger-line {
  color: var(--nz-ink) !important;
}

/* الأسئلة الشائعة: الإجابات تبقى قابلة للفتح، مع لون واضح ومن دون قصّ النص. */

section.section-spacing:has(.faq_title) {
  gap: 26px !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

.faq_title {
  color: var(--nz-ink) !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: center;
}

section.section-spacing:has(.faq_title) > .w-full {
  max-width: 920px;
}

.faq_item {
  min-height: 0 !important;
  margin-bottom: 10px;
  border: 1px solid var(--nz-line) !important;
  border-radius: 14px;
  background: var(--nz-panel);
  overflow: hidden;
}

.faq_item:last-child {
  margin-bottom: 0;
}

.faq_question {
  margin: 0 !important;
  min-height: 68px;
  padding: 18px 22px !important;
  gap: 18px;
  color: var(--nz-ink) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
}

.faq_question span {
  color: inherit !important;
}

.faq_icon {
  color: var(--nz-accent);
  margin: 0 !important;
}

.faq_icon path {
  stroke: var(--nz-accent);
}

.faq_answer, .faq_answer p {
  color: var(--nz-muted) !important;
  font-size: 15px !important;
  line-height: 1.95 !important;
}

.faq_answer {
  padding-inline: 22px !important;
}

.faq_answer p {
  margin: 0 !important;
}

.faq_answer.expanded, .faq_item.expanded .faq_answer {
  max-height: none !important;
  opacity: 1 !important;
  padding: 0 22px 22px !important;
}

/* مميزات المتجر: ثلاث بطاقات متوازنة ونص داكن ظاهر دائمًا. */

section.section-spacing:has(.hvr-wobble-horizontal) > .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

section.section-spacing:has(.hvr-wobble-horizontal) > .grid > div {
  padding: 24px 20px !important;
  border: 1px solid var(--nz-line);
  border-radius: var(--nz-radius);
  background: var(--nz-panel);
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

section.section-spacing:has(.hvr-wobble-horizontal) h3 {
  color: var(--nz-ink) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

section.section-spacing:has(.hvr-wobble-horizontal) p {
  color: var(--nz-muted) !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
  opacity: 1 !important;
  margin: 0 !important;
}

section.section-spacing .hvr-wobble-horizontal {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  filter: none;
  opacity: 1 !important;
}

/* آراء العملاء: بطاقات مستقلة، والتقييمات والنصوص من بيانات المتجر الأصلية. */

.app-inner > .s-block--testimonials {
  width: 100%;
  max-width: var(--nz-width);
  padding: var(--nz-space) 24px !important;
  margin-inline: auto !important;
}

.s-block--testimonials .s-reviews-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.s-block--testimonials .s-reviews-header {
  color: var(--nz-ink) !important;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 !important;
}

.nazra-reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(97, 7, 24, .35) transparent;
  padding-block: 4px 14px;
}

.nazra-reviews-track > * {
  scroll-snap-align: start;
  min-width: 0;
}

.s-block--testimonials .s-reviews-testimonial {
  position: relative;
  height: 100% !important;
  min-height: 240px;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 24px !important;
  border: 1px solid var(--nz-line);
  border-radius: 20px !important;
  background: var(--nz-panel) !important;
  box-shadow: none !important;
  color: var(--nz-ink) !important;
  opacity: 1 !important;
}

.s-block--testimonials .s-reviews-testimonial__inner {
  width: 100%;
  display: block !important;
  text-align: start !important;
}

.s-block--testimonials .s-reviews-testimonial__avatar {
  display: none !important;
}

.s-block--testimonials .s-reviews-testimonial__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.s-block--testimonials .s-reviews-testimonial__name_wrapper {
  order: -1;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nz-line);
}

.s-block--testimonials .s-reviews-testimonial__info h2 {
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.7;
  color: var(--nz-ink) !important;
  margin: 0 !important;
}

.s-block--testimonials .s-reviews-testimonial__text p {
  display: block !important;
  margin: 0 !important;
  color: var(--nz-muted) !important;
  font-size: 14px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.s-block--testimonials .s-reviews-testimonial__text p:empty {
  display: none !important;
}

.s-block--testimonials .s-reviews-testimonial__rating {
  display: block !important;
  margin: 0 !important;
}

.s-block--testimonials .s-reviews-testimonial__icon svg {
  position: absolute !important;
  width: 26px !important;
  height: 26px !important;
  top: auto !important;
  bottom: 16px;
  inset-inline-start: auto !important;
  inset-inline-end: 18px !important;
  fill: var(--nz-accent) !important;
  opacity: .18;
  transform: none !important;
}

.nazra-reviews-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nazra-reviews-actions button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--nz-line);
  background: transparent;
  color: var(--nz-ink);
  cursor: pointer;
}

.nazra-reviews-actions button:hover {
  background: var(--nz-panel);
}

.nazra-reviews-actions button:disabled {
  opacity: .35;
  cursor: default;
}

.nazra-reviews-actions svg {
  width: 18px;
  height: 18px;
}

.nazra-original-reviews {
  display: none !important;
}

/* الفوتر: خلفيته البيج الأصلية، وثلاثة أعمدة وروابط التوثيق الأصلية. */

.store-footer, .store-footer .store-footer__inner {
  background: var(--nz-footer) !important;
  color: var(--nz-ink) !important;
}

.store-footer {
  width: calc(100% - 32px);
  margin: 28px 16px 16px;
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--nz-line);
}

.store-footer .store-footer__inner {
  padding-block: 44px 30px !important;
  border: 0 !important;
}

.store-footer__inner > .container {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 30px 48px !important;
  padding-inline: 24px;
}

.store-footer__inner > .container > * {
  min-width: 0;
  grid-column: auto !important;
}

.store-footer__inner > .container > div:first-child {
  padding: 0 !important;
}

.store-footer__inner > .container > div:first-child > a {
  margin-bottom: 12px !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.store-footer__inner > .container > div:first-child > a img {
  width: 150px !important;
  height: 62px !important;
  max-height: none !important;
  object-fit: contain;
  mix-blend-mode: normal;
}

.store-footer p, .store-footer a,
.store-footer .s-contacts-title, .store-footer .s-contacts-item,
.store-footer .s-trust-badges-label, .store-footer .s-trust-badges-number {
  color: var(--nz-ink) !important;
}

.store-footer p {
  font-size: 14px;
  line-height: 1.95;
}

.store-footer__inner > .container > div:first-child > p {
  max-width: 42ch;
  margin-block: 0 18px !important;
}

.store-footer__inner > .container > div:first-child > p:empty {
  display: none;
}

.store-footer h3, .store-footer .s-contacts-title {
  font-size: 17px !important;
  font-weight: 600;
  margin: 10px 0 18px !important;
}

.store-footer .s-menu-footer-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.store-footer .s-menu-footer-item {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.9;
}

.store-footer .s-menu-footer-item:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.store-footer .s-contacts-list {
  gap: 14px;
}

.store-footer .s-contacts-item {
  min-height: 36px;
  gap: 10px;
}

.store-footer .unicode {
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 14px;
}

.store-footer .s-social-list {
  gap: 8px;
  margin-block: 16px;
}

.store-footer .s-social-link a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nz-line);
  border-radius: 50%;
  background: transparent;
}

.store-footer .s-social-link a:hover {
  background: var(--nz-bg);
}

.store-footer .s-trust-badges-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.store-footer .s-trust-badges-label {
  font-size: 11px;
  line-height: 1.5;
}

.store-footer .s-trust-badges-number {
  font-size: 12px;
}

.store-footer__inner > .container > salla-apps-icons:empty {
  display: none;
}

.store-footer__inner > .container > salla-apps-icons:not(:empty) {
  grid-column: 1 / -1 !important;
}

.store-footer > .container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 24px !important;
  border-top: 1px solid var(--nz-line) !important;
}

.store-footer .copyright-text, .store-footer .copyright-text p {
  font-size: 12px;
  margin: 0 !important;
}

.store-footer .s-payments-list {
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.store-footer .s-payments-list-item {
  min-width: 36px;
}

.store-footer .s-payments-list-item:empty {
  display: none;
}

.store-footer:has(.nazra-footer-cert) .s-payments-list-item:has(a[href*="eauthenticate.saudibusiness.gov.sa"]) {
  display: none;
}

/* الهوية والتوثيق، ثم التواصل والروابط. */

.nazra-footer-brand {
  order: 1;
}

.nazra-footer-contact {
  order: 2;
}

.nazra-footer-links {
  order: 3;
}

.store-footer__inner > .container > salla-apps-icons {
  order: 4;
}

.nazra-footer-brand > p {
  font-size: 13px;
}

.nazra-footer-brand > .hidden.lg\:block {
  display: block !important;
}

.nazra-footer-contact .contact-social {
  display: none !important;
}

.nazra-footer-badges {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px !important;
  max-width: 330px;
  margin-top: 18px;
  padding: 16px;
  background: var(--nz-bg);
  border: 1px solid var(--nz-line);
  border-radius: 16px;
}

.nazra-footer-badges > * {
  display: flex;
  align-items: center !important;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}

.nazra-footer-badges img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain;
}

.nazra-footer-badges p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0 !important;
}

.nazra-footer-badges b {
  font-size: 12px;
}

.nazra-footer-cert {
  order: -1;
}

.nazra-footer-cert span {
  font-size: 12px;
}

.nazra-footer-links .s-menu-footer-item {
  min-height: 30px;
}

.nazra-mobile-nav {
  display: none;
}

.nazra-footer-localization {
  max-width: calc(var(--nz-width) - 48px);
  width: calc(100% - 48px);
  margin-inline: auto;
  padding-block: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--nz-line);
}

.nazra-footer-localization > span {
  font-size: 13px;
  color: var(--nz-muted);
}

.nazra-footer-localization-control > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--nz-bg);
  color: var(--nz-ink) !important;
  border: 1px solid var(--nz-line);
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
}

.nazra-footer-localization-control > button span {
  color: var(--nz-ink) !important;
}

.nazra-footer-localization-control svg {
  width: 17px;
  height: 17px;
  margin: 0 !important;
}

.nazra-footer-localization-control svg path {
  stroke: currentColor;
}

.nazra-footer-localization-control .links-divider {
  background: var(--nz-accent);
  margin-inline: 4px;
}

/* قائمة الجوال: درج أبيض، مع فتح القوائم الفرعية وإغلاقها كما في القالب. */

.mm-ocd {
  --mm-ocd-width: min(88vw, 360px);
  --mm-ocd-max-width: 360px;
  --mm-ocd-min-width: 240px;
}

.mm-ocd--open {
  background: rgba(49, 37, 26, .40) !important;
}

.mm-ocd__content {
  background: var(--nz-bg) !important;
  box-shadow: -12px 0 40px rgba(49, 37, 26, .16);
}

.mm-ocd--right .mm-ocd__content {
  border-radius: 22px 0 0 22px;
}

.mm-ocd--left .mm-ocd__content {
  border-radius: 0 22px 22px 0;
}

#mobile-menu {
  --mm-spn-item-height: 60px;
  --mm-spn-item-indent: 20px;
  background: var(--nz-bg) !important;
  color: var(--nz-ink) !important;
}

#mobile-menu.mm-spn--navbar::after {
  height: 78px;
  line-height: 78px;
  padding-inline: 24px 68px !important;
  color: var(--nz-ink);
  font-size: 18px;
  font-weight: 600;
  opacity: 1;
}

#mobile-menu.mm-spn--navbar::before {
  top: 38px;
  color: var(--nz-accent);
}

#mobile-menu.mm-spn--navbar ul {
  top: 79px;
}

#mobile-menu li a, #mobile-menu li > span {
  color: var(--nz-ink) !important;
  min-height: 58px;
  font-size: 15px;
  line-height: 1.8;
  padding: 16px 20px !important;
}

#mobile-menu li a span {
  padding: 0 !important;
}

#mobile-menu li a:hover {
  background: var(--nz-footer);
}

#mobile-menu li::after {
  border-color: var(--nz-line) !important;
  opacity: 1;
}

#mobile-menu li:not(:has(> ul))::before {
  display: none;
}

#mobile-menu .close-mobile-menu {
  position: absolute;
  top: 20px;
  inset-inline-end: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nz-line);
  border-radius: 50%;
  background: var(--nz-panel);
  color: var(--nz-ink);
  z-index: 5;
}

#mobile-menu .close-mobile-menu svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

:is(.store-header, .store-footer, #mobile-menu, .s-block--testimonials, .faq_item) :focus-visible {
  outline: 2px solid var(--nz-accent);
  outline-offset: 4px;
}

@media (max-width: 1023px) {
  .nazra-localization-ready .store-header:has(#classic-main-nav) {
    height: auto !important;
    min-height: 69px;
  }

  .store-header .lg\:hidden.flex {
    min-height: 68px;
  }

  .store-header .navbar-brand img {
    width: 98px !important;
    height: 58px !important;
  }

  .nazra-reviews-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .store-footer__inner > .container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px;
  }

  .store-footer__inner > .container > div:first-child {
    grid-column: 1 / -1 !important;
  }

  .store-footer__inner > .container > div:first-child > p {
    max-width: 62ch;
  }

  .nazra-footer-brand {
    text-align: center;
  }

  .nazra-footer-brand > a, .nazra-footer-brand .s-social-list {
    justify-content: center;
  }

  .nazra-footer-brand > p, .nazra-footer-badges {
    margin-inline: auto !important;
  }

  .nazra-footer-badges {
    text-align: start;
    width: min(100%, 290px);
  }

  .nazra-footer-contact, .nazra-footer-links {
    text-align: center;
  }

  .nazra-footer-contact .s-contacts-list {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .nazra-footer-contact .s-contacts-item {
    display: grid;
    place-items: center;
    width: 46px;
    min-height: 46px;
    padding: 0;
    border: 1px solid var(--nz-line);
    border-radius: 12px;
    background: var(--nz-bg);
  }

  .nazra-footer-contact .unicode {
    display: none;
  }

  .nazra-footer-contact .s-contacts-icon {
    padding: 0;
    border: 0;
    width: 24px;
    height: 24px;
  }

  .nazra-footer-contact .s-contacts-icon svg {
    width: 24px;
    height: 24px;
  }

  .nazra-footer-links .s-menu-footer-list {
    align-items: stretch;
    gap: 8px;
  }

  .nazra-footer-links .s-menu-footer-item {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 8px;
    border: 1px solid var(--nz-line);
    border-radius: 10px;
    background: var(--nz-bg);
    font-size: 12px;
  }

  .store-footer > .container {
    flex-direction: column-reverse;
    justify-content: center;
  }

  .store-footer .copyright-text {
    text-align: center;
  }

  /* شريط تنقل ثابت من خمس خانات، على طريقة بولا وبألوان نظرة. */

  body.nazra-has-mobile-nav {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .nazra-mobile-nav {
    position: fixed;
    inset-inline: 12px;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 8px 5px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--nz-bg);
    color: var(--nz-ink);
    border: 1px solid var(--nz-line);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -6px 24px rgba(97, 7, 24, .07);
  }

  .nazra-mobile-nav > a, .nazra-mobile-nav > button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 50px;
    padding: 5px 2px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--nz-ink) !important;
    font: inherit;
    font-size: 10px;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
  }

  .nazra-mobile-nav svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .nazra-mobile-nav [aria-current="page"],
  .nazra-mobile-nav > a:hover, .nazra-mobile-nav > button:hover {
    background: rgba(97, 7, 24, .07);
  }

  .nazra-mobile-nav :focus-visible {
    outline: 2px solid var(--nz-accent);
    outline-offset: 1px;
  }

  .nazra-mobile-cart-count {
    position: absolute;
    top: 0;
    inset-inline-end: calc(50% - 25px);
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
    border-radius: 20px;
    background: var(--nz-accent);
    color: var(--nz-bg);
    font-size: 10px;
    line-height: 18px;
    text-align: center;
  }

  .nazra-mobile-cart-count[hidden] {
    display: none;
  }

  body.nazra-has-mobile-nav .fixed.bottom-0:has(> a[href^="https://wa.me/"]) {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.nazra-has-mobile-nav .fake-sale-notification-wrapper {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* ارفع ملخص السلة الأصلي فوق شريط التنقل على الجوال. */
  body.cart.nazra-has-mobile-nav > salla-cart-summary-card.s-cart-summary-card--mobile[data-testid="store-cart-summary"] {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* اترك مساحة للملخص المثبت بين الشريط والعناصر العائمة. */
  body.cart.nazra-has-mobile-nav:has(> salla-cart-summary-card.s-cart-summary-card--mobile[data-testid="store-cart-summary"]) .fixed.bottom-0:has(> a[href^="https://wa.me/"]) {
    bottom: calc(186px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.cart.nazra-has-mobile-nav:has(> salla-cart-summary-card.s-cart-summary-card--mobile[data-testid="store-cart-summary"]) .fake-sale-notification-wrapper {
    bottom: calc(198px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.nazra-has-mobile-nav .sticky-product-bar {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.nazra-has-mobile-nav.product-single.is-sticky-product-bar {
    padding-bottom: calc(12rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 639px) {
  :root {
    --nz-space: 32px;
  }

  .app-inner > .section-spacing,
  .app-inner > .s-block--testimonials {
    padding-inline: 16px !important;
  }

  .faq_question {
    font-size: 14px !important;
    padding: 16px !important;
    min-height: 62px;
  }

  .faq_answer, .faq_answer p {
    font-size: 14px !important;
  }

  .faq_answer {
    padding-inline: 16px !important;
  }

  .faq_answer.expanded, .faq_item.expanded .faq_answer {
    padding: 0 16px 18px !important;
  }

  section.section-spacing:has(.hvr-wobble-horizontal) > .grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  section.section-spacing:has(.hvr-wobble-horizontal) > .grid > div {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 16px;
    text-align: start;
    padding: 18px !important;
  }

  section.section-spacing .hvr-wobble-horizontal {
    grid-row: 1 / span 2;
    margin: 0 !important;
  }

  section.section-spacing:has(.hvr-wobble-horizontal) h3 {
    font-size: 15px !important;
    margin: 0 !important;
  }

  section.section-spacing:has(.hvr-wobble-horizontal) p {
    grid-column: 2;
    font-size: 13px !important;
  }

  .nazra-reviews-track {
    grid-auto-columns: 88%;
    gap: 12px;
  }

  .s-block--testimonials .s-reviews-testimonial {
    padding: 22px !important;
    min-height: 230px;
  }

  .nazra-reviews-actions button {
    width: 36px;
    height: 36px;
  }

  .store-footer {
    border-radius: 24px 24px 0 0;
    margin-top: 20px;
  }

  .store-footer .store-footer__inner {
    padding-block: 28px 20px !important;
  }

  .store-footer__inner > .container {
    padding-inline: 20px;
    gap: 22px 16px !important;
  }

  .store-footer h3, .store-footer .s-contacts-title {
    font-size: 15px !important;
  }

  .store-footer .s-menu-footer-item, .store-footer .unicode {
    font-size: 12px;
  }

  .store-footer .s-contacts-item {
    gap: 5px;
  }

  .store-footer .s-contacts-icon {
    width: 20px;
    padding: 0;
    border: 0;
  }

  .store-footer > .container {
    justify-content: center;
    padding-inline: 20px !important;
  }

  .store-footer .copyright-text {
    width: 100%;
  }

  .nazra-footer-localization {
    width: calc(100% - 40px);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .nazra-footer-localization-control > button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nazra-reviews-track {
    scroll-behavior: auto;
  }

  .faq_answer, .faq_item, .mm-ocd, .mm-ocd__content {
    transition: none !important;
  }
}

/* إزالة الفراغ أعلى محتوى الرئيسية */

#main-content:has(section[component-id="292422979"]) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* إزالة مسافات الحاوية الخارجية */

#main-content > .container:has(section[component-id="292422979"]) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* البانر المحدد */

section[component-id="292422979"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* مكوّن البانر داخل القسم */

section[component-id="292422979"]
> [component-name="premium-hero-banner"] {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* إزالة المسافة فوق قسم التصنيفات */

section.s-block:has(.categories-grid),
.section-container:has(> .categories-grid) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* إزالة المسافة أسفل البانر السابق */

section[component-id="292422979"] {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ضبط مسافة العنوان */

.section-container:has(> .categories-grid) > .header {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 16px !important;
}

/* التصنيفات: عمودان للجوال، وأربعة للتابلت والكمبيوتر، بلا سلايدر. */
.categories-grid.nz-featured-categories,
.section-container > .categories-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  gap: 20px !important;
  align-items: start;
  justify-content: stretch !important;
  width: 100% !important;
  max-width: var(--nz-width, 1240px) !important;
  min-width: 0;
  margin-inline: auto !important;
  padding: 6px 4px 14px !important;
  box-sizing: border-box;
  overflow: visible !important;
  scroll-snap-type: none !important;
  transform: none !important;
}
.nz-featured-categories > .category-card,
.section-container > .categories-grid > .category-card {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  flex: none !important;
  color: var(--nz-ink, #111111) !important;
  text-decoration: none;
  transform: none !important;
}
.nz-featured-categories .image-container,
.section-container > .categories-grid .image-container {
  position: relative;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--nz-line, #e7e3df);
  border-radius: 18px !important;
  background: var(--nz-soft, #f8f5f0) !important;
}
.nz-featured-categories .category-image,
.section-container > .categories-grid .category-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}
.nz-featured-categories .category-name,
.section-container > .categories-grid .category-name {
  margin: 14px 0 0 !important;
  color: var(--nz-ink, #111111) !important;
  text-align: center;
  font-size: clamp(16px, 1.4vw, 19px) !important;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.nz-featured-categories .category-card:focus-visible,
.section-container > .categories-grid .category-card:focus-visible {
  outline: 2px solid var(--nz-accent, #610718);
  outline-offset: 3px;
  border-radius: 18px;
}
.nz-category-actions { display: none !important; }
@media (max-width: 767px) {
  .section-container:has(> .categories-grid.nz-featured-categories) {
    padding-block: 24px !important;
  }
  .section-container:has(> .categories-grid.nz-featured-categories) > .header {
    margin-bottom: 16px !important;
  }
  .categories-grid.nz-featured-categories,
  .section-container > .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 12px !important;
    max-width: 100% !important;
  }
  .nz-featured-categories .category-name,
  .section-container > .categories-grid .category-name {
    margin-top: 8px !important;
    font-size: 14px !important;
  }
  .nz-featured-categories .image-container,
  .section-container > .categories-grid .image-container {
    border-radius: 14px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nz-featured-categories .category-image,
  .section-container > .categories-grid .category-image {
    transition: none !important;
  }
}

/* صفحة المنتج وصور المنتج ونموذج الشراء. */

/* إطار الصور الرئيسي: الفستان كامل، بلا ميل أو تكبير عند المرور. */

body.product-single .product-page .details-slider {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 0 !important;
  transform: none !important;
  perspective: none !important;
}

body.product-single .product-page .details-slider > .s-slider-container {
  position: relative;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid var(--bp-line);
  border-radius: 22px !important;
  background: var(--bp-photo);
  overflow: hidden;
  transform: none !important;
}

body.product-single .product-page .details-slider > .s-slider-container > .swiper-wrapper {
  height: 100% !important;
  align-items: stretch;
}

body.product-single .product-page .details-slider > .s-slider-container > .swiper-wrapper > .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100% !important;
  min-height: 0 !important;
  background: var(--bp-photo);
  transform: none !important;
}

body.product-single .product-page .details-slider .magnify-wrapper > img {
  position: static !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  scale: none !important;
  rotate: none !important;
  translate: none !important;
  filter: none !important;
  animation: none !important;
  transition: none !important;
}

/* الصور المصغّرة أسفل الصورة في الكمبيوتر. تبقى روابطها الأصلية فعّالة. */

body.product-single .product-page .details-slider .s-slider-thumbs {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  margin-top: 12px;
  transform: none;
}

body.product-single .product-page .details-slider .s-slider-thumbs-container {
  padding-block: 3px;
}

body.product-single .product-page .details-slider .s-slider-thumbs .swiper-slide {
  height: 112px !important;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--bp-photo);
  overflow: hidden;
  opacity: .7;
  cursor: pointer;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

body.product-single .product-page .details-slider .s-slider-thumbs .swiper-slide-thumb-active {
  border-color: var(--nz-accent);
  opacity: 1;
}

body.product-single .product-page .details-slider .s-slider-thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
  transform: none !important;
  transition: none !important;
}

body.product-single .product-page .details-slider > .s-slider-container > salla-button.btn--wishlist {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 5;
}

body.product-single .product-page .details-slider button.btn--wishlist {
  position: static !important;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border: 1px solid var(--bp-line) !important;
  border-radius: 50% !important;
  background: var(--bp-surface) !important;
  color: var(--bp-ink);
  box-shadow: none !important;
}

/* الاسم والسعر والوصف: الاحتفاظ بنصوص المنتج والأسعار المتغيرة. */

body.product-single .product-page .main-content > h1 {
  margin: 0 0 14px !important;
  color: var(--bp-ink) !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
  overflow-wrap: anywhere;
}

body.product-single .product-page .main-content > .flex.gap-5:empty {
  margin: 0 !important;
  padding: 0 !important;
}

body.product-single .product-page .main-content > div.flex.whitespace-nowrap {
  flex-wrap: wrap;
  gap: 12px !important;
  padding: 0;
  margin-block: 12px 18px !important;
  border: 0;
}

body.product-single .product-page .main-content > div.flex.whitespace-nowrap :is(h2, h4) {
  color: var(--bp-ink) !important;
  font-size: 27px !important;
  font-weight: 700 !important;
  line-height: 1.4;
}

body.product-single .product-page .main-content > div.flex.whitespace-nowrap .line-through {
  color: var(--bp-ink) !important;
  font-size: 15px !important;
  opacity: .6;
}

body.product-single .product-page .side-socials {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 12px 18px !important;
}

body.product-single .product-page .side-socials > div {
  gap: 6px;
  margin-inline: 0 !important;
}

body.product-single .product-page .side-socials .text-sm {
  color: var(--bp-ink) !important;
  font-size: 12px;
}

body.product-single .product-page .side-socials .s-button-icon {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--bp-line) !important;
  border-radius: 50% !important;
  background: var(--bp-surface) !important;
  color: var(--bp-ink);
}

body.product-single .product-page .availability-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bp-ink);
  font-size: 12px;
}

body.product-single .product-page .availability-container > span {
  color: var(--bp-ink) !important;
}

body.product-single .product-page .availability-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

body.product-single .product-page .main-content > div.bg-white {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 14px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  background: var(--bp-surface) !important;
  color: var(--bp-ink);
  font-size: 12px;
}

body.product-single .product-page .product__description {
  padding: 0 !important;
  margin-block: 18px !important;
  background: transparent;
  color: var(--bp-ink);
}

body.product-single .product-page .product__description:not(:has(.article--main > *)) {
  margin-block: 0 !important;
}

body.product-single .product-page .article--main {
  color: var(--bp-ink);
  font-size: 14px;
  line-height: 2;
  overflow-wrap: anywhere;
}

body.product-single .product-page .article--main :is(p, li) {
  line-height: 2;
}

body.product-single .product-page .article--main :is(h2, h3, h4) {
  color: var(--bp-ink);
  margin-block: 16px 8px;
  font-size: 17px;
  line-height: 1.8;
}

body.product-single .product-page .article--main :is(img, video) {
  max-width: 100%;
  height: auto;
}

body.product-single .product-page .main-content > salla-installment {
  display: block;
  max-width: 100%;
  margin-block: 16px 22px;
}

body.product-single .product-page salla-installment > .mb-5 {
  margin-bottom: 10px;
}

/* المقاسات: تنسيق أزرار سلة الأصلية، وليس إنشاء بدائل بجافاسكربت. */

body.product-single .product-page .product-form {
  margin-top: 24px;
}

body.product-single .product-page .product-form > salla-product-options.s-product-options-wrapper {
  display: block;
  padding: 0 !important;
  margin: 0 0 18px !important;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body.product-single .product-page .product-form .s-product-options-option-container {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  background: var(--bp-surface);
}

body.product-single .product-page .product-form .s-product-options-option-container:last-child {
  margin-bottom: 0;
}

body.product-single .product-page .product-form .s-product-options-option-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--bp-ink) !important;
  font-size: 14px;
  line-height: 1.8;
}

body.product-single .product-page .product-form .s-product-options-option-label b {
  font-weight: 600;
}

body.product-single .product-page .product-form .s-product-options-option-label small {
  color: var(--bp-ink);
  font-size: 12px;
}

body.product-single .product-page .product-form .s-product-options-option-content {
  min-width: 0;
}

body.product-single .product-page .product-form .s-form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--bp-line) !important;
  border-radius: 10px !important;
  background-color: var(--bp-bg) !important;
  color: var(--bp-ink) !important;
  font: inherit;
  font-size: 16px;
}

body.product-single .product-page .product-form .s-product-options-grid-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
}

body.product-single .product-page .product-form .s-product-options-grid-mode > label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 46px;
  min-height: 46px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--bp-line);
  border-radius: 10px;
  background: var(--bp-bg);
  color: var(--bp-ink);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

/* الحقول الأصلية تحتفظ بالتحديد والإلزام والتحقق والتنقل بلوحة المفاتيح. */

body.product-single .product-page .product-form .s-product-options-grid-mode > label > input:is([type="radio"], [type="checkbox"]) {
  position: absolute !important;
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  overflow: hidden;
}

body.product-single .product-page .product-form .s-product-options-grid-mode-span {
  position: static;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit;
  line-height: inherit;
}

body.product-single .product-page .product-form .s-product-options-grid-mode > label:has(input:checked) {
  border-color: var(--nz-accent);
  background: var(--nz-accent);
  color: var(--nz-on-accent);
}

body.product-single .product-page .product-form .s-product-options-grid-mode > label:has(input:focus-visible) {
  outline: 2px solid var(--nz-accent);
  outline-offset: 3px;
}

body.product-single .product-page .product-form .s-product-options-grid-mode > label:has(input:disabled) {
  opacity: .4;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* دليل المقاسات والسعر والكمية: نفس ترتيب بولا مع ألوان نظرة. */

body.product-single .product-page .product-form > section.bg-white:not(.sticky-product-bar) {
  margin: 0 0 16px !important;
  padding: 16px !important;
  border: 1px solid var(--bp-line);
  border-radius: 14px !important;
  background: var(--bp-surface) !important;
  color: var(--bp-ink);
}

body.product-single .product-page .product-form > section .center-between {
  gap: 12px;
}

body.product-single .product-page .product-form .form-label {
  color: var(--bp-ink);
  font-size: 13px;
}

body.product-single .product-page .product-form .with-arrow.s-button-element {
  min-height: 44px;
  padding: 8px 0 !important;
  border: 0;
  background: transparent;
  color: var(--bp-ink) !important;
  font-size: 12px;
}

body.product-single .product-page .product-form .price-wrapper {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.product-single .product-page .product-form .total-price {
  color: var(--bp-ink) !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

body.product-single .product-page .product-form .before-price {
  color: var(--bp-ink) !important;
  font-size: 14px;
  opacity: .6;
}

/* تبقى أزرار الشراء داخل الصفحة حتى لا تحجب الفستان فوق شريط التنقل. */

body.product-single .product-page .product-form > .sticky-product-bar,
body.product-single.is-sticky-product-bar .product-page .product-form > .sticky-product-bar {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 18px !important;
  border: 1px solid var(--bp-line);
  border-radius: 14px !important;
  background: var(--bp-surface) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body.product-single.is-sticky-product-bar .product-page .sticky-product-bar > :is(salla-add-product-button, .sticky-product-bar__quantity) {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body.product-single .product-page .sticky-product-bar__quantity {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100% !important;
  margin: 0 !important;
}

body.product-single.is-sticky-product-bar .product-page .sticky-product-bar__quantity .form-label {
  display: block !important;
}

body.product-single .product-page .sticky-product-bar__quantity salla-quantity-input {
  width: 138px !important;
  flex: 0 0 138px;
}

body.product-single .product-page .sticky-product-bar__quantity .s-quantity-input-container {
  width: 138px !important;
  height: 46px;
  border: 1px solid var(--bp-line) !important;
  border-radius: 10px;
  background: var(--bp-bg);
  overflow: hidden;
}

body.product-single .product-page .sticky-product-bar__quantity .s-quantity-input-button {
  width: 44px !important;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
  color: var(--bp-ink);
}

body.product-single .product-page .sticky-product-bar__quantity .s-quantity-input-input {
  width: 48px !important;
  min-width: 0;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--bp-ink);
  font-size: 16px;
  text-align: center;
}

body.product-single .product-page .product-form .sticky-product-bar__btn {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
}

body.product-single .product-page .product-form .s-add-product-button-main {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

body.product-single .product-page .product-form .s-add-product-button-main > salla-button {
  flex: 1 1 130px;
  width: auto !important;
  min-width: 0;
}

body.product-single .product-page .product-form .s-add-product-button-main .s-button-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--nz-accent) !important;
  border-radius: 10px !important;
  background: var(--nz-accent) !important;
  color: var(--nz-on-accent) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

body.product-single .product-page .product-form .s-add-product-button-mini-checkout {
  --salla-fast-checkout-button-border-radius: 10px;
  flex: 1 1 130px;
  width: auto !important;
  min-width: 0;
  min-height: 48px;
  border-radius: 10px;
}

body.product-single .product-page .product-form .s-add-product-button-mini-checkout-content {
  font-size: 13px;
  white-space: nowrap;
}

body.product-single .product-page .product-form .s-payments-list {
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

/* خلفية التقييمات متصلة بلون المتجر. لا إضافة لمعلومات أو تقييمات وهمية. */

body.product-single .s-comments-product {
  margin-block: 12px 20px !important;
  padding-block: 24px !important;
  background: transparent !important;
}

body.product-single .s-before-related,
body.product-single .s-before-related > .s-block {
  margin-block: 0 !important;
}

/* إيقاف تأثيرات البطاقة والصور فقط؛ عدم تعطيل مسار السحب في Swiper. */

body.product-single .s-products-slider-wrapper :is(.athena-card-wrapper, .athena-card, .athena-image-container, .athena-image),
body.product-single .s-products-slider-wrapper :is(.athena-card-wrapper, .athena-card, .athena-image-container):hover .athena-image {
  transform: none !important;
  scale: none !important;
  rotate: none !important;
  translate: none !important;
  perspective: none !important;
  animation: none !important;
  transition: none !important;
}

body.product-single .product-page :is(a, button, select, input, textarea):focus-visible {
  outline: 2px solid var(--nz-accent);
  outline-offset: 3px;
}

body.product-single .product-page .magnify-wrapper:focus-visible {
  outline-offset: -4px;
}

body.product-single .product-page :is(button, select, input):disabled {
  cursor: not-allowed;
}

@media (min-width: 768px) {
  body.product-single .product-page > div[id^="product-"] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
  }

  body.product-single .product-page > div[id^="product-"] > .sidebar {
    position: sticky !important;
    top: 104px !important;
  }
}

/* الجوال: صور مصغّرة رأسية يسار الصورة، مثل بولا، من دون الحركة ثلاثية الأبعاد. */

@media (max-width: 767px) {
  body.product-single .product-page {
    max-width: 640px;
    padding: 0 15px 24px;
  }

  body.product-single .product-page .breadcrumbs {
    padding-block: 14px !important;
  }

  body.product-single .product-page .s-breadcrumb-wrapper {
    font-size: 11px;
    line-height: 1.7;
  }

  body.product-single .product-page > div[id^="product-"] {
    gap: 24px;
  }

  body.product-single .product-page .details-slider > .s-slider-container {
    border-radius: 20px !important;
  }

  body.product-single .product-page .details-slider .s-slider-thumbs {
    position: absolute !important;
    top: 50%;
    left: 8px;
    right: auto;
    bottom: auto;
    z-index: 3;
    width: 56px;
    height: min(350px, calc(100% - 28px));
    margin: 0 !important;
    transform: translateY(-50%);
  }

  body.product-single .product-page .details-slider .s-slider-thumbs-container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--bp-line) transparent;
  }

  /* تغيير اتجاه شريط المصغّرات وحده. المسار الرئيسي للصور يظل أصليًا. */

  body.product-single .product-page .details-slider .s-slider-thumbs-container > .swiper-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
  }

  body.product-single .product-page .details-slider .s-slider-thumbs .swiper-slide {
    flex: 0 0 56px;
    width: 44px !important;
    height: 56px !important;
    margin: 0 !important;
    border-radius: 7px;
    background: var(--bp-bg);
    opacity: .85;
  }

  body.product-single .product-page .details-slider .s-slider-thumbs .swiper-slide-thumb-active {
    opacity: 1;
  }

  body.product-single .product-page .details-slider .s-slider-thumbs img {
    border-radius: 4px;
  }

  body.product-single .product-page .main-content > h1 {
    font-size: 20px !important;
    line-height: 1.8 !important;
  }

  body.product-single .product-page .main-content > div.flex.whitespace-nowrap :is(h2, h4) {
    font-size: 25px !important;
  }

  body.product-single .product-page .product-form {
    margin-top: 20px;
  }

  body.product-single .product-page .product-form .s-product-options-option-container,
  body.product-single .product-page .product-form > section.bg-white:not(.sticky-product-bar) {
    padding: 14px !important;
  }

  body.product-single .product-page .product-form > .sticky-product-bar {
    padding: 14px !important;
  }

  body.product-single .s-comments-product {
    margin-block: 4px 12px !important;
    padding-block: 16px !important;
  }
}

@media (max-width: 1023px) {
  body.product-single.nazra-has-mobile-nav,
  body.product-single.nazra-has-mobile-nav.is-sticky-product-bar {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.product-single.nazra-has-mobile-nav .fixed.bottom-0:has(> a[href^="https://wa.me/"]) {
    bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.product-single.nazra-has-mobile-nav .fake-sale-notification-wrapper {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* نموذج الشراء الموحد والمقاسات: مع الاحتفاظ بالحقول الأصلية. */

body#app.product-single {
  --nazra-product-ui: 2;
}

/* بطاقة واحدة تجمع خيارات الشراء بدل العناصر المتناثرة. */

body#app.product-single form.product-form {
  display: block !important;
  min-width: 0;
  margin-top: 24px !important;
  padding: 22px !important;
  border: 1px solid rgba(97, 7, 24, .18) !important;
  border-radius: 20px !important;
  background: var(--nz-bg) !important;
  color: var(--nz-ink) !important;
  box-shadow: none !important;
}

body#app.product-single form.product-form > salla-product-options {
  display: block !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body#app.product-single form.product-form .s-product-options-option-container {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body#app.product-single form.product-form .s-product-options-option-container:last-child {
  margin-bottom: 0 !important;
}

body#app.product-single form.product-form .s-product-options-option-label {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px !important;
  color: var(--nz-ink) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

body#app.product-single form.product-form .s-product-options-option-label small {
  color: var(--nz-ink) !important;
  font-size: 12px !important;
}

body#app.product-single form.product-form .s-product-options-option-content {
  min-width: 0;
  overflow: visible !important;
}

/* تنسيق الأزرار التي أنشأتها الإضافة الموجودة في JavaScript الحالي. */

body#app.product-single form.product-form .np2-size-control {
  position: relative !important;
}

body#app.product-single form.product-form .np2-size-group {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  direction: ltr !important;
}

body#app.product-single form.product-form button.np2-size-button {
  appearance: none !important;
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 6px !important;
  border: 1px solid rgba(97, 7, 24, .22) !important;
  border-radius: 11px !important;
  background: var(--nz-bg) !important;
  color: var(--nz-ink) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  touch-action: manipulation;
}

body#app.product-single form.product-form button.np2-size-button[aria-checked="true"] {
  border-color: var(--nz-accent) !important;
  background: var(--nz-accent) !important;
  color: var(--nz-on-accent) !important;
}

body#app.product-single form.product-form button.np2-size-button > * {
  color: inherit !important;
}

body#app.product-single form.product-form button.np2-size-button:disabled {
  opacity: .4 !important;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* إخفاء القائمة بصريًا عندما توجد أزرارها فعلاً، مع بقاء حقل سلة الأصلي. */

body#app.product-single form.product-form .np2-size-control:has(> .np2-size-group > .np2-size-button) > select.np2-size-source {
  position: absolute !important;
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

body#app.product-single form.product-form .np2-size-error {
  display: block !important;
  margin: 12px 0 0 !important;
  color: var(--nz-ink) !important;
  font-size: 12px !important;
  line-height: 1.8 !important;
}

body#app.product-single form.product-form .np2-size-error[hidden] {
  display: none !important;
}

body#app.product-single form.product-form .np2-options-invalid .np2-size-group {
  outline: 1px solid var(--nz-accent);
  outline-offset: 4px;
  border-radius: 12px;
}

/* دعم أزرار سلة الأصلية كذلك. */

body#app.product-single form.product-form .s-product-options-grid-mode {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

body#app.product-single form.product-form .s-product-options-grid-mode > label {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(97, 7, 24, .22) !important;
  border-radius: 11px !important;
  background: var(--nz-bg) !important;
  color: var(--nz-ink) !important;
  font-size: 14px !important;
  cursor: pointer;
}

body#app.product-single form.product-form .s-product-options-grid-mode > label:has(input:checked) {
  background: var(--nz-accent) !important;
  border-color: var(--nz-accent) !important;
  color: var(--nz-on-accent) !important;
}

body#app.product-single form.product-form .s-product-options-grid-mode > label:has(input:disabled) {
  opacity: .4 !important;
  text-decoration: line-through;
  cursor: not-allowed;
}

body#app.product-single form.product-form .s-product-options-grid-mode-span {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
}

/* دليل المقاسات ثم السعر بفواصل هادئة داخل البطاقة. */

body#app.product-single form.product-form > section.bg-white:not(.sticky-product-bar) {
  margin: 0 0 16px !important;
  padding: 14px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(97, 7, 24, .14) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--nz-ink) !important;
}

body#app.product-single form.product-form > section .center-between {
  align-items: center;
  gap: 12px;
}

body#app.product-single form.product-form .form-label {
  color: var(--nz-ink) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

body#app.product-single form.product-form .with-arrow.s-button-element {
  min-height: 44px !important;
  padding: 8px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--nz-ink) !important;
  font-size: 12px !important;
}

body#app.product-single form.product-form .with-arrow .s-button-text {
  color: var(--nz-ink) !important;
}

body#app.product-single form.product-form .total-price {
  color: var(--nz-ink) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

body#app.product-single form.product-form .before-price {
  color: var(--nz-ink) !important;
  font-size: 14px !important;
  opacity: .6;
}

/* شراء واضح بعرض كامل، مع إبقاء حالات السعر والتعطيل الأصلية. */

body#app.product-single form.product-form > .sticky-product-bar {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body#app.product-single form.product-form .sticky-product-bar__quantity {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

body#app.product-single form.product-form .sticky-product-bar__quantity .form-label {
  display: block !important;
  margin: 0 !important;
}

body#app.product-single form.product-form .sticky-product-bar__quantity salla-quantity-input {
  width: 138px !important;
  flex: 0 0 138px !important;
}

body#app.product-single form.product-form .s-quantity-input-container {
  width: 138px !important;
  height: 46px !important;
  border: 1px solid rgba(97, 7, 24, .22) !important;
  border-radius: 11px !important;
  background: var(--nz-bg) !important;
  overflow: hidden !important;
}

body#app.product-single form.product-form .s-quantity-input-button {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--nz-ink) !important;
}

body#app.product-single form.product-form .s-quantity-input-input {
  width: 48px !important;
  min-width: 0 !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--nz-ink) !important;
  font-size: 16px !important;
  text-align: center !important;
}

body#app.product-single form.product-form salla-add-product-button.sticky-product-bar__btn {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

body#app.product-single form.product-form salla-add-product-button > .s-add-product-button-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
}

body#app.product-single form.product-form .s-add-product-button-main > salla-button {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body#app.product-single form.product-form .s-add-product-button-main > salla-button > button.s-button-element {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 52px !important;
  height: auto !important;
  padding: 12px 16px !important;
  border: 1px solid var(--nz-accent) !important;
  border-radius: 12px !important;
  background: var(--nz-accent) !important;
  background-image: none !important;
  color: var(--nz-on-accent) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  text-align: center !important;
  box-shadow: none !important;
}

body#app.product-single form.product-form .s-add-product-button-main > salla-button > button.s-button-element .s-button-text {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--nz-on-accent) !important;
  line-height: inherit !important;
}

body#app.product-single form.product-form .s-add-product-button-main > salla-button > button.s-button-element:disabled {
  opacity: .5 !important;
  cursor: not-allowed;
}

/* خصائص الشراء السريع التالية مدعومة في مكوّن سلة المعزول. */

body#app.product-single form.product-form salla-mini-checkout-widget.s-add-product-button-mini-checkout {
  --color-primary: var(--nz-accent) !important;
  --color-primary-reverse: var(--nz-on-accent) !important;
  --salla-fast-checkout-button-height: 48px !important;
  --salla-fast-checkout-button-width: 100% !important;
  --salla-fast-checkout-button-border-radius: 12px !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--nz-bg) !important;
  color: var(--nz-ink) !important;
}

body#app.product-single form.product-form .s-add-product-button-mini-checkout-content {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  color: var(--nz-ink) !important;
  font-size: 14px !important;
  white-space: nowrap;
}

body#app.product-single form.product-form .s-payments-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
}

body#app.product-single form.product-form :is(button, select, input):focus-visible,
body#app.product-single form.product-form salla-mini-checkout-widget:focus-within {
  outline: 2px solid var(--nz-accent) !important;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  body#app.product-single form.product-form {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  body#app.product-single form.product-form .np2-size-group {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body#app.product-single form.product-form .total-price {
    font-size: 24px !important;
  }
}

/* البحث والسلة والإشعارات والتصنيفات وشكر الطلب وتقييمات المنتج. */

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) salla-product-options {
  display: block;
  margin-top: 18px;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) :is(select.s-form-control, input.form-input) {
  min-height: 44px;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 10px !important;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink) !important;
  font-family: inherit;
  font-size: 16px;
}

/* 1 — البحث: حقل واضح، تصنيفات مرتبة، ونتائج متناسقة. */

.s-search-modal .s-modal-body {
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink) !important;
  border: 1px solid var(--nz-ui-line);
  border-radius: 22px !important;
  box-shadow: var(--nz-ui-shadow) !important;
}

.s-search-modal.s-search-modal-new .s-modal-body {
  width: 960px !important;
  max-width: calc(100% - 32px) !important;
  height: min(740px, calc(100dvh - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  margin: 16px auto !important;
  padding: 0 !important;
}

.s-search-panel {
  min-width: 0;
  min-height: 0;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink) !important;
  font-family: inherit;
}

.s-search-panel .s-search-input-row {
  flex-shrink: 0;
  gap: 10px;
  margin: 0 !important;
  padding: 16px !important;
  border-bottom: 1px solid var(--nz-ui-line);
  background: var(--nz-ui-bg);
}

.s-search-panel .s-search-back-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 50%;
  background: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink) !important;
  cursor: pointer;
}

.s-search-panel .s-search-back-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.s-search-panel .s-search-input-wrapper {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 14px;
  background: var(--nz-ui-panel) !important;
}

.s-search-panel .s-search-input-wrapper:focus-within {
  border-color: var(--nz-accent) !important;
  box-shadow: 0 0 0 3px rgba(97, 7, 24, .08);
}

.s-search-panel .s-search-icon-wrap {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  margin: 0 !important;
  color: var(--nz-ui-ink) !important;
}

.s-search-panel .s-search-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.s-search-panel .s-search-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 52px !important;
  padding: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nz-ui-ink) !important;
  font: inherit;
  font-size: 16px !important;
}

.s-search-panel .s-search-input:focus {
  outline: none;
}

.s-search-panel .s-search-input::placeholder {
  color: var(--nz-ui-ink);
  opacity: .65;
}

.s-search-panel .s-search-idle-panel {
  padding: 20px !important;
  box-shadow: none !important;
}

.s-search-panel .s-search-idle-panel-empty {
  padding: 0 !important;
}

.s-search-panel .s-search-idle-section-title {
  margin: 0 0 12px;
  color: var(--nz-ui-ink) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.s-search-panel .s-search-idle-categories-list,
.s-search-panel .s-search-history-list {
  gap: 8px;
}

.s-search-panel .s-search-idle-category-chip,
.s-search-panel .s-search-history-chip {
  padding: 8px 12px !important;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 30px !important;
  background: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink) !important;
  font-size: 12px;
  line-height: 1.8;
  text-decoration: none;
}

.s-search-panel .s-search-idle-category-chip:hover,
.s-search-panel .s-search-history-chip:hover {
  background: var(--nz-accent) !important;
  color: var(--nz-ui-bg) !important;
}

.s-search-panel .s-search-history-chip-term {
  color: inherit !important;
}

.s-search-panel .s-search-most-searched-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.s-search-panel .s-search-most-searched-list > li + li {
  margin-top: 8px;
}

.s-search-panel .s-search-most-searched-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px !important;
  border: 1px solid var(--nz-ui-line);
  border-radius: 12px;
  background: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink) !important;
  font-size: 13px;
  line-height: 1.8;
  text-decoration: none;
}

.s-search-panel .s-search-most-searched-item:hover {
  border-color: var(--nz-accent);
}

.s-search-panel .s-search-most-searched-icon {
  flex-shrink: 0;
}

.s-search-panel .s-search-most-searched-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.s-search-panel .s-search-most-searched-item > span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s-search-panel .s-search-results-body {
  box-shadow: none !important;
  gap: 14px;
}

.s-search-panel .s-search-sidebar {
  background: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink);
}

.s-search-panel .s-search-results-grid {
  gap: 12px !important;
}

.s-search-panel .s-search-product-card-entry,
.s-search-panel .s-search-product {
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 14px !important;
  background: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink) !important;
  overflow: hidden;
}

.s-search-panel .s-search-product-card-image {
  border-radius: 12px !important;
}

.s-search-panel .s-search-product-card-content {
  padding: 12px;
}

.s-search-panel .s-search-product-card-content-title,
.s-search-panel .s-search-product-title {
  color: var(--nz-ui-ink) !important;
  font-size: 14px;
  line-height: 1.8;
}

.s-search-panel .s-search-product-card-price-value,
.s-search-panel .s-search-product-price {
  color: var(--nz-ui-ink) !important;
  font-weight: 600;
}

.s-search-panel .s-search-view-all {
  border: 1px solid var(--nz-accent);
  border-radius: 12px;
  background: var(--nz-accent) !important;
  color: var(--nz-ui-bg) !important;
  padding: 12px !important;
  min-height: 44px;
}

/* 2 — تنسيق الإشعارات الوهمية الموجودة في الثيم. */

fake-sale-notification .sale-notification-card {
  position: relative;
  width: min(340px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  border: 1px solid var(--nz-ui-line);
  border-radius: 16px;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink);
  box-shadow: 0 8px 30px rgba(65, 24, 25, .12) !important;
}

fake-sale-notification .sale-notification-card > div:first-child {
  padding: 14px !important;
  gap: 12px !important;
  background: var(--nz-ui-bg) !important;
}

fake-sale-notification .sale-notification-card > div:first-child > div:first-child {
  width: 62px !important;
  height: 80px !important;
  border-radius: 10px !important;
  background: var(--nz-ui-panel) !important;
  box-shadow: none !important;
}

fake-sale-notification .sale-notification-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

fake-sale-notification .sale-notification-card > div:first-child > div:nth-child(2) > div {
  color: var(--nz-ui-ink) !important;
  line-height: 1.8 !important;
}

fake-sale-notification .sale-notification-card > div:first-child > div:nth-child(2) > div:first-child {
  font-size: 12px !important;
  font-weight: 600 !important;
}

fake-sale-notification .sale-notification-card > div:first-child > div:last-child {
  width: 28px !important;
  height: 28px !important;
  background: var(--nz-accent) !important;
  color: var(--nz-ui-bg);
}

fake-sale-notification .sale-notification-card > div:first-child > div:last-child svg {
  stroke: var(--nz-ui-bg) !important;
}

fake-sale-notification .sale-notification-card > div:last-child {
  height: 3px !important;
  background: var(--nz-accent) !important;
}

/* 3 — إشعار الإضافة للسلة؛ حالة الظهور والمؤقت يتولاها الثيم. */

salla-add-product-toast.s-add-product-toast {
  width: min(430px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px);
  padding: 18px !important;
  gap: 14px !important;
  border: 1px solid var(--nz-ui-line);
  border-radius: 20px !important;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink) !important;
  box-shadow: var(--nz-ui-shadow) !important;
  overflow-y: auto;
  overscroll-behavior: contain;
}

salla-add-product-toast:not(.s-add-product-toast--visible) {
  pointer-events: none;
}

salla-add-product-toast .s-add-product-toast__progress {
  height: 3px;
  border-radius: 4px;
  background: var(--nz-ui-line);
  overflow: hidden;
}

salla-add-product-toast .s-add-product-toast__progress-bar {
  background: var(--nz-accent) !important;
}

salla-add-product-toast .s-add-product-toast__header-content {
  gap: 8px;
}

salla-add-product-toast .s-add-product-toast__title {
  color: var(--nz-ui-ink) !important;
  font-size: 14px;
  line-height: 1.8;
}

salla-add-product-toast .s-add-product-toast__close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 50%;
  background: var(--nz-ui-panel);
  color: var(--nz-ui-ink);
}

salla-add-product-toast .s-add-product-toast__close i {
  color: inherit !important;
}

salla-add-product-toast .s-add-product-toast__divider {
  background: var(--nz-ui-line);
}

salla-add-product-toast .s-add-product-toast__body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

salla-add-product-toast .s-add-product-toast__image {
  width: 72px;
  height: 96px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 12px;
  background: var(--nz-ui-panel);
}

salla-add-product-toast .s-add-product-toast__image img {
  object-fit: cover;
}

salla-add-product-toast .s-add-product-toast__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--nz-ui-ink) !important;
  font-size: 13px;
  line-height: 1.85;
}

salla-add-product-toast .s-add-product-toast__options span,
salla-add-product-toast .s-add-product-toast__show-more {
  color: var(--nz-ui-ink) !important;
  font-size: 12px;
  line-height: 1.8;
}

salla-add-product-toast .s-add-product-toast__price {
  color: var(--nz-ui-ink) !important;
  font-size: 15px;
  line-height: 1.8;
}

salla-add-product-toast .s-add-product-toast__price-sale,
salla-add-product-toast .s-add-product-toast__price-original {
  color: var(--nz-ui-ink) !important;
}

salla-add-product-toast .s-add-product-toast__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* أزرار المكونات التالية فقط؛ تنسيق الهيدر والفوتر مستقل. */

:is(.s-search-panel, salla-add-product-toast, #cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .s-button-btn {
  min-height: 44px;
  border-radius: 12px !important;
  font-family: inherit;
  font-size: 13px;
}

:is(.s-search-panel, salla-add-product-toast, #cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .s-button-solid.s-button-primary {
  background: var(--nz-accent) !important;
  border-color: var(--nz-accent) !important;
  color: var(--nz-on-accent) !important;
}

:is(.s-search-panel, salla-add-product-toast, #cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .s-button-outline {
  border-color: var(--nz-ui-line) !important;
  background: transparent !important;
  color: var(--nz-ui-ink) !important;
}

/* 4 — السلة الجانبية وزر الإغلاق. */

#cart-summary-panel {
  width: min(460px, calc(100vw - 12px)) !important;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink) !important;
  border-radius: 0 22px 22px 0;
  box-shadow: var(--nz-ui-shadow);
}

[dir="ltr"] #cart-summary-panel {
  border-radius: 22px 0 0 22px;
}

#cart-summary-panel .side-panel__top {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  z-index: 10;
}

#cart-summary-panel .cart-close-btn {
  position: static !important;
  transform: none !important;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  background: transparent;
  color: var(--nz-ui-ink);
  cursor: pointer;
}

#cart-summary-panel .cart-close-btn > div {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nz-ui-line);
  border-radius: 12px !important;
  background: var(--nz-ui-panel) !important;
  box-shadow: none !important;
}

#cart-summary-panel .cart-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

#cart-summary-panel .side-panel__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 18px !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--nz-ui-ink) var(--nz-ui-bg);
}

#cart-summary-panel .side-panel__content > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 0 20px !important;
  padding-inline-end: 48px;
  color: var(--nz-ui-ink);
  font-size: 21px;
  font-weight: 600;
}

#cart-summary-panel .cart-products-count {
  font-size: 13px;
  font-weight: 500;
}

#cart-summary-panel .side-panel__bottom {
  flex-shrink: 0;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid var(--nz-ui-line);
  background: var(--nz-ui-bg);
  gap: 14px;
}

#cart-summary-panel .side-panel__bottom .text-gray-500,
#cart-summary-panel .side-panel__bottom small {
  color: var(--nz-ui-ink) !important;
}

#cart-summary-panel .cart-subtotal {
  border-color: var(--nz-ui-line) !important;
}

#cart-summary-panel .cart-subtotal h5 {
  color: var(--nz-ui-ink);
  font-size: 15px;
  font-weight: 600;
}

#cart-summary-panel .total-value {
  color: var(--nz-ui-ink);
  font-size: 21px;
}

#cart-summary-panel .cart-submit-btn > a,
#cart-summary-panel .close-side-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px !important;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 12px !important;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
}

#cart-summary-panel .cart-submit-btn > a {
  background: var(--nz-accent) !important;
  color: var(--nz-ui-bg) !important;
}

#cart-summary-panel .close-side-panel {
  background: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink) !important;
}

/* بطاقات المنتجات والتحكم بالكمية في السلتين. */

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item {
  padding: 20px !important;
  margin-bottom: 16px !important;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 18px !important;
  background: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink);
  box-shadow: none !important;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item > .md\:flex {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  padding-inline-end: 24px;
  margin: 0 !important;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item > .md\:flex > .flex:first-child {
  min-width: 0;
  gap: 14px;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item .space-y-1 {
  min-width: 0;
  margin-inline: 0 !important;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item > .md\:flex > .flex:first-child > a > img {
  width: 88px;
  height: 118px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 12px;
  object-fit: cover;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item :is(h1, h2) a {
  color: var(--nz-ui-ink) !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item :is(.item-price, .item-total) {
  color: var(--nz-ui-ink) !important;
  font-size: 15px;
  font-weight: 600;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item > .md\:flex > .border-t {
  position: static !important;
  inset: auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px !important;
  width: 100%;
  margin: 0 !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid var(--nz-ui-line) !important;
  border-bottom: 0 !important;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .s-quantity-input-container {
  width: 130px;
  max-width: 100%;
  height: 40px;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 10px;
  background: var(--nz-ui-bg);
  overflow: hidden;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .s-quantity-input-button {
  width: 40px;
  height: 38px;
  flex-shrink: 0;
  background: transparent;
  color: var(--nz-ui-ink);
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .s-quantity-input-input {
  min-width: 0;
  width: 48px;
  height: 38px;
  background: transparent;
  color: var(--nz-ui-ink);
  font-size: 16px;
  text-align: center;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item :is(button.btn--delete, .btn--delete .s-button-element) {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 !important;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 50% !important;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink) !important;
}

/* 5 — صفحة السلة: المنتجات والخيارات والكوبون في تخطيط متجاوب. */

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) {
  max-width: 1240px;
  padding-inline: 24px;
  padding-bottom: 40px;
  color: var(--nz-ui-ink);
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) .s-breadcrumb-wrapper {
  color: var(--nz-ui-ink);
  font-size: 13px;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) .s-breadcrumb-item a {
  color: var(--nz-ui-ink) !important;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) > h1.sr-only {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 24px;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  color: var(--nz-ui-ink);
  font-size: 28px;
  font-weight: 600;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) > .pt-5.flex {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 28px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) > .pt-5.flex > .main-content {
  width: 100% !important;
  min-width: 0;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) > .pt-5.flex > .sticky {
  width: 100% !important;
  min-width: 0;
  margin-inline: 0 !important;
  top: 104px;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) > .pt-5.flex > .sticky > .bg-white {
  padding: 20px !important;
  margin-top: 0 !important;
  border: 1px solid var(--nz-ui-line);
  border-radius: 18px;
  background: var(--nz-ui-panel) !important;
  box-shadow: none !important;
}

/* خيارات المنتج داخل السلة فقط، بما فيها خلفية المكوّن الخارجية. */

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item > salla-product-options {
  display: block;
  margin: 16px 0 0 !important;
  padding: 14px !important;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 12px !important;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink) !important;
  box-shadow: none !important;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item salla-product-options .s-product-options-option-container {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item salla-product-options .s-product-options-option-container:last-child {
  margin-bottom: 0 !important;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item .s-product-options-option-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--nz-ui-ink) !important;
  font-size: 14px;
  line-height: 1.8;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item .s-product-options-option-label small {
  color: var(--nz-ui-ink);
  font-size: 12px;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item select.s-form-control {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 10px !important;
  background-color: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink) !important;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item .s-product-options-grid-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item .s-product-options-grid-mode > label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 10px;
  background: var(--nz-ui-panel);
  color: var(--nz-ui-ink);
  font-size: 14px;
  cursor: pointer;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item .s-product-options-grid-mode > label:has(input:checked) {
  border-color: var(--nz-accent);
  background: var(--nz-accent);
  color: var(--nz-on-accent);
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item .s-product-options-grid-mode > label:has(input:disabled) {
  opacity: .4;
  text-decoration: line-through;
  cursor: not-allowed;
}

:is(#cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item .s-product-options-grid-mode-span {
  border: 0 !important;
  padding: 0;
  background: transparent !important;
  color: inherit !important;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) input.form-input {
  min-height: 44px;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 10px !important;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink) !important;
  font-family: inherit;
  font-size: 16px;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) .s-cart-coupons-coupon-label {
  color: var(--nz-ui-ink);
  font-size: 14px;
  font-weight: 600;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) .s-cart-coupons-coupon-input-container {
  gap: 8px;
  margin-top: 12px;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) #coupon-input {
  width: 100%;
  min-width: 0;
  padding-inline: 12px;
}

/* التركيز وحالات التعطيل تظل واضحة. */

:is(.s-search-panel, salla-add-product-toast, #cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) :focus-visible {
  outline: 2px solid var(--nz-accent);
  outline-offset: 3px;
}

.s-search-panel .s-search-input:focus-visible {
  outline: none;
}

:is(.s-search-panel, salla-add-product-toast, #cart-summary-panel,
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) :is(button:disabled, input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 1023px) {
  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) > .pt-5.flex {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) > .pt-5.flex > .sticky {
    position: static !important;
  }
}

@media (max-width: 639px) {
  .s-search-modal.s-search-modal-new .s-modal-body {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    height: calc(100dvh - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    margin: 8px auto !important;
    border-radius: 18px !important;
  }

  .s-search-panel .s-search-input-row {
    padding: 12px !important;
    gap: 8px;
  }

  .s-search-panel .s-search-back-btn {
    width: 36px;
    height: 36px;
  }

  .s-search-panel .s-search-input {
    height: 48px !important;
  }

  .s-search-panel .s-search-icon-wrap {
    flex-basis: 36px;
  }

  .s-search-panel .s-search-idle-panel {
    padding: 16px !important;
  }

  .s-search-panel .s-search-idle-panel-empty {
    padding: 0 !important;
  }

  .s-search-panel .s-search-most-searched-item {
    font-size: 12px;
    padding: 10px !important;
  }

  salla-add-product-toast.s-add-product-toast {
    left: 12px !important;
    right: 12px !important;
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    width: auto !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  salla-add-product-toast .s-add-product-toast__body {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px 12px;
  }

  salla-add-product-toast .s-add-product-toast__image {
    grid-row: 1 / span 2;
    width: 64px;
    height: 88px;
  }

  salla-add-product-toast .s-add-product-toast__details {
    grid-column: 2;
  }

  salla-add-product-toast .s-add-product-toast__price {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  salla-add-product-toast .s-add-product-toast__actions .s-button-btn {
    font-size: 12px;
    padding-inline: 8px;
  }

  #cart-summary-panel .side-panel__content {
    padding: 20px 14px !important;
  }

  #cart-summary-panel .side-panel__bottom {
    padding-inline: 16px !important;
  }

  :is(#cart-summary-panel,
    .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item {
    padding: 16px !important;
  }

  :is(#cart-summary-panel,
    .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item > .md\:flex > .flex:first-child > a > img {
    width: 72px;
    height: 98px;
  }

  :is(#cart-summary-panel,
    .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])) .cart-item :is(h1, h2) a {
    font-size: 13px !important;
  }

  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) {
    padding-inline: 16px;
  }

  .container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"]) > h1.sr-only {
    font-size: 24px;
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  salla-add-product-toast.s-add-product-toast {
    transition-duration: .01ms;
  }

  fake-sale-notification .sale-notification-card {
    animation-duration: .01ms !important;
  }
}

/* 6 — صفحات التصنيفات ونتائج البحث. لا تنطبق هذه المحددات على سلايدر الصفحة الرئيسية أو تفاصيل المنتج. */

.main-content:has(> div > #page-main-title):has(salla-products-list:is([source="product.index"], [source="product.index.search"])) {
  min-width: 0;
}

.main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) > div:has(> #page-main-title) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px !important;
}

.main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) #page-main-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-inline: 0 !important;
  color: var(--nz-ui-ink) !important;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.7;
}

.main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) #page-main-title > span {
  font-size: .65em;
  font-weight: 400;
}

.main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) label[for="product-filter"] {
  color: var(--nz-ui-ink);
  font-size: 13px;
}

.main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) #product-filter {
  min-width: 172px;
  min-height: 46px;
  margin: 0;
  padding-block: 10px !important;
  padding-inline: 12px 36px !important;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 12px;
  background-color: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink) !important;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.main-content > div:has(> salla-products-list:is([source="product.index"], [source="product.index.search"])) {
  min-height: 0 !important;
}

salla-products-list:is([source="product.index"], [source="product.index.search"]) {
  display: block;
  min-width: 0;
  width: 100%;
  overflow: visible !important;
}

salla-products-list:is([source="product.index"], [source="product.index.search"]) > .s-products-list-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 24px 18px !important;
}

salla-products-list:is([source="product.index"], [source="product.index.search"]) > .s-products-list-wrapper > custom-salla-product-card {
  display: block;
  min-width: 0;
  height: 100%;
}

/* شكل واحد لبطاقات التصنيفات والبحث والمنتجات المقترحة داخل صفحة المنتج. */

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible;
  transform: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "photo" "details" "buy";
  align-content: start;
  width: 100%;
  min-width: 0 !important;
  height: 100%;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 16px !important;
  background: var(--nz-ui-panel) !important;
  box-shadow: none !important;
  overflow: hidden;
  transform: none !important;
  transition: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card:not(.hidden):not(.s-hidden):not([hidden]) {
  display: grid !important;
}

/* الغلاف عادي بلا دور دلالي: تبقى روابط الصور وأزرار سلة نفسها في DOM. */

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-image-container {
  display: contents !important;
  height: auto !important;
  aspect-ratio: auto !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-image-container > a {
  grid-area: photo;
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto !important;
  aspect-ratio: 3 / 4;
  background: var(--nz-ui-bg);
  overflow: hidden;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-image,
:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card:hover .athena-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
  scale: none !important;
  rotate: none !important;
  translate: none !important;
  transition: none !important;
  animation: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card-content {
  grid-area: details;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  gap: 7px;
  padding: 12px 12px 10px;
  background: var(--nz-ui-panel) !important;
  text-align: start;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-product-title {
  display: -webkit-box;
  min-height: 3.5em;
  margin: 0 !important;
  color: var(--nz-ui-ink) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75 !important;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-product-title a {
  color: var(--nz-ui-ink) !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card-content > .flex {
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card-content :is(h4, .text-red-600, .text-green-600) {
  color: var(--nz-ui-ink) !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card-content h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card-content .line-through {
  color: var(--nz-ui-ink) !important;
  font-size: 12px;
  opacity: .6;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-action-buttons {
  position: absolute !important;
  top: 9px !important;
  right: 9px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-action-buttons :is(.s-button-icon, .athena-action-btn) {
  display: grid;
  place-items: center;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  margin: 0;
  padding: 0 !important;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 50% !important;
  background: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink) !important;
  box-shadow: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-action-btn svg {
  width: 18px;
  height: 18px;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-action-btn svg path {
  stroke: currentColor;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-action-buttons :is(button.s-product-card-wishlist-added, salla-button.s-product-card-wishlist-added > button.s-button-element) {
  border-color: var(--nz-accent) !important;
  background: var(--nz-accent) !important;
  color: var(--nz-ui-bg) !important;
  animation: none !important;
  transform: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-action-buttons .s-product-card-wishlist-added :is(.s-button-text, i) {
  color: var(--nz-ui-bg) !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn {
  grid-area: buy;
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  width: 100% !important;
  min-width: 0;
  height: auto !important;
  margin: 0 !important;
  padding: 0 12px 12px !important;
  background: var(--nz-ui-panel);
  transform: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn salla-add-product-button,
:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn salla-button {
  display: block;
  width: 100%;
  min-width: 0;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn salla-add-product-button salla-button > button.s-button-element {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 46px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 8px !important;
  border: 1px solid var(--nz-accent) !important;
  border-radius: 10px !important;
  background: var(--nz-accent) !important;
  color: var(--nz-ui-bg) !important;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6 !important;
  box-shadow: none !important;
  transform: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn .s-button-text {
  position: relative !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--nz-ui-bg) !important;
  line-height: 1.6 !important;
  overflow: visible !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn .s-button-text span {
  position: static !important;
  display: block !important;
  height: auto !important;
  margin: 0 !important;
  color: var(--nz-ui-bg) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn .s-button-text .cart-svg {
  position: static !important;
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn .cart-svg path {
  stroke: var(--nz-ui-bg) !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn .s-button-disabled {
  opacity: .5 !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn .s-button-disabled .cart-svg {
  display: none !important;
}

/* شارات نفاد الكمية والعد التنازلي تبقى في مساحة الصورة وبحالتهما الأصلية. */

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-sold-out-container {
  grid-area: photo;
  position: relative !important;
  inset: auto !important;
  place-self: center;
  z-index: 2;
  transform: none !important;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-sale-count-down-container {
  grid-area: photo;
  position: relative !important;
  inset: auto !important;
  align-self: end;
  justify-self: stretch;
  z-index: 2;
  width: 100%;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) :is(a, button):focus-visible {
  outline: 2px solid var(--nz-accent);
  outline-offset: 3px;
}

:is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-image-container > a:focus-visible {
  outline-offset: -4px;
}

/* تصفح المنتجات المقترحة يظل بالسلايدر الأصلي، بلا تغيير عرضه أو إزاحته. */

body.product-single salla-products-slider.s-products-slider-wrapper {
  display: block;
  margin-block: 32px 24px;
}

body.product-single salla-products-slider.s-products-slider-wrapper .s-products-slider-card {
  height: auto;
}

body.product-single salla-products-slider.s-products-slider-wrapper .s-slider-block__title {
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

body.product-single salla-products-slider.s-products-slider-wrapper .s-slider-block__title h2 {
  color: var(--nz-ui-ink);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.7;
}

body.product-single salla-products-slider.s-products-slider-wrapper .s-slider-nav-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 50%;
  background: var(--nz-ui-panel);
  color: var(--nz-ui-ink);
  box-shadow: none;
}

@media (max-width: 639px) {
  :is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card {
    border-radius: 13px !important;
  }

  :is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card-content {
    gap: 6px;
    padding: 10px 10px 9px;
  }

  :is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-product-title {
    font-size: 13px;
  }

  :is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-card-content h4 {
    font-size: 15px;
  }

  :is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn {
    padding: 0 10px 10px !important;
  }

  :is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn .s-button-text {
    gap: 4px !important;
  }

  :is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-desktop-add-btn .s-button-text span {
    font-size: 12px !important;
  }

  :is(salla-products-list:is([source="product.index"], [source="product.index.search"]), body.product-single salla-products-slider.s-products-slider-wrapper) .athena-action-buttons {
    top: 7px !important;
    right: 7px !important;
    gap: 6px;
  }
}

salla-products-list:is([source="product.index"], [source="product.index.search"]) .s-infinite-scroll-wrapper {
  padding-top: 24px;
  text-align: center;
}

salla-products-list:is([source="product.index"], [source="product.index.search"]) .s-infinite-scroll-btn {
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 12px;
  background: var(--nz-accent) !important;
  color: var(--nz-ui-bg) !important;
  font-family: inherit;
  font-size: 14px;
}

salla-products-list:is([source="product.index"], [source="product.index.search"]) .s-infinite-scroll-status {
  color: var(--nz-ui-ink);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

/* الزر الأصلي ظاهر كخيار يدوي وآمن عند توقف التحميل التلقائي. */

salla-products-list:is([source="product.index"], [source="product.index.search"]).nz-catalog-loading .s-infinite-scroll-btn {
  cursor: progress;
}

salla-products-list:is([source="product.index"], [source="product.index.search"]) :is(a, button):focus-visible,
.main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) #product-filter:focus-visible {
  outline: 2px solid var(--nz-accent);
  outline-offset: 3px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  salla-products-list:is([source="product.index"], [source="product.index.search"]) > .s-products-list-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px 14px !important;
  }
}

@media (max-width: 639px) {
  .main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) > div:has(> #page-main-title) {
    gap: 12px;
    margin-bottom: 20px !important;
  }

  .main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) #page-main-title {
    flex-basis: 100%;
    font-size: 22px;
  }

  .main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) > div:has(> #page-main-title) > .flex,
  .main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) > div:has(> #page-main-title) > .flex > .flex {
    width: 100%;
  }

  .main-content:has(salla-products-list:is([source="product.index"], [source="product.index.search"])) #product-filter {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  salla-products-list:is([source="product.index"], [source="product.index.search"]) > .s-products-list-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 10px !important;
  }
}

/* 7 — صفحة شكرًا لطلبك فقط؛ المحتوى ورقم الطلب والكوبون من سلة. */

.app-inner:has([data-testid="store-thankyou-title"]) > div.h-52 {
  height: 0 !important;
  margin-bottom: 0 !important;
  background: transparent !important;
}

.container:has([data-testid="store-thankyou-title"]) {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  margin-bottom: 40px !important;
  padding: 0 24px;
  color: var(--nz-ui-ink);
}

.container:has([data-testid="store-thankyou-title"]) > nav {
  padding-block: 20px !important;
}

.container:has([data-testid="store-thankyou-title"]) > nav :is(ol, a, span, i) {
  color: var(--nz-ui-ink) !important;
  font-size: 12px;
  line-height: 1.8;
}

.container:has([data-testid="store-thankyou-title"]) > div:has([data-testid="store-thankyou-title"]) {
  margin-bottom: 24px !important;
  padding: 30px !important;
  border: 1px solid var(--nz-ui-line);
  border-radius: 24px !important;
  background: var(--nz-ui-panel) !important;
  box-shadow: 0 10px 36px rgba(97, 7, 24, .04);
}

.container:has([data-testid="store-thankyou-title"]) > div > div:has(> [data-testid="store-thankyou-title"]) {
  padding: 20px 10px 24px !important;
  gap: 0;
  text-align: center;
}

.container:has([data-testid="store-thankyou-title"]) .thanks-item {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

.container:has([data-testid="store-thankyou-title"]) img.thanks-item {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 22px !important;
  object-fit: contain;
}

.container:has([data-testid="store-thankyou-title"]) [data-testid="store-thankyou-title"] {
  margin: 0 0 14px !important;
  color: var(--nz-ui-ink) !important;
  font-size: clamp(25px, 3vw, 34px) !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
}

.container:has([data-testid="store-thankyou-title"]) p.thanks-item {
  width: 100%;
  max-width: 480px !important;
  margin: 0 auto 24px !important;
  color: var(--nz-ui-ink) !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

.container:has([data-testid="store-thankyou-title"]) button[data-testid="store-thankyou-order-id"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-inline: 4px;
  padding: 6px 12px !important;
  border: 1px solid var(--nz-ui-line);
  border-radius: 10px !important;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink) !important;
  font-size: 15px;
}

.container:has([data-testid="store-thankyou-title"]) salla-button[data-testid="store-thankyou-order-details-btn"] {
  display: block;
  width: min(100%, 320px);
}

.container:has([data-testid="store-thankyou-title"]) button[data-testid="store-thankyou-order-details-btn"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px !important;
  border: 1px solid var(--nz-accent) !important;
  border-radius: 13px !important;
  background: var(--nz-accent) !important;
  color: var(--nz-ui-bg) !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.container:has([data-testid="store-thankyou-title"]) button[data-testid="store-thankyou-order-details-btn"] .s-button-text {
  color: var(--nz-ui-bg) !important;
}

/* كوبون سلة الأصلي: لا تغيير لقيمته أو شروطه أو آلية نسخه. */

.container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-wrapper {
  margin-block: 0 24px;
  padding: 0;
  background: transparent !important;
  color: var(--nz-ui-ink);
}

.container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-heading {
  margin-bottom: 14px;
  color: var(--nz-ui-ink) !important;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
}

.container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

.container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px dashed var(--nz-accent);
  border-radius: 18px;
  background: var(--nz-ui-panel) !important;
  box-shadow: none;
}

.container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-details {
  flex: 1;
  min-width: 160px;
}

.container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-title {
  color: var(--nz-ui-ink) !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
}

.container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-title span {
  color: inherit !important;
}

.container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-desc {
  color: var(--nz-ui-ink) !important;
  font-size: 13px;
  line-height: 1.9;
}

.container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--nz-accent);
  border-radius: 12px;
  background: var(--nz-accent) !important;
  color: var(--nz-ui-bg) !important;
  font-family: inherit;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-code > span {
  color: inherit !important;
}

/* الفاتورة والتواصل: عمودان على الكمبيوتر، وبطاقتان متتاليتان على الجوال. */

.container:has([data-testid="store-thankyou-title"]) > div:has(> .thankyou-block) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.container:has([data-testid="store-thankyou-title"]) .thankyou-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 22px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 18px;
  background: var(--nz-ui-panel) !important;
  color: var(--nz-ui-ink);
  text-align: start;
}

.container:has([data-testid="store-thankyou-title"]) .thankyou-block > .rounded-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 14px;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink);
}

.container:has([data-testid="store-thankyou-title"]) .thankyou-block > p {
  margin-bottom: 16px;
  color: var(--nz-ui-ink) !important;
  font-size: 14px;
  line-height: 1.9;
}

.container:has([data-testid="store-thankyou-title"]) #invoice-form form {
  width: 100%;
}

.container:has([data-testid="store-thankyou-title"]) #invoice-form form > .flex {
  width: 100%;
  gap: 8px;
}

.container:has([data-testid="store-thankyou-title"]) input[data-testid="store-thankyou-email-input"] {
  flex: 1;
  width: 100% !important;
  min-width: 0;
  min-height: 48px;
  height: auto !important;
  padding: 10px 12px;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 11px !important;
  background: var(--nz-ui-bg) !important;
  color: var(--nz-ui-ink) !important;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.container:has([data-testid="store-thankyou-title"]) salla-button[data-testid="store-thankyou-email-submit"] {
  flex: 0 0 86px;
  width: 86px !important;
  height: auto !important;
}

.container:has([data-testid="store-thankyou-title"]) button[data-testid="store-thankyou-email-submit"] {
  width: 100% !important;
  min-height: 48px;
  height: auto !important;
  padding: 10px !important;
  border: 1px solid var(--nz-accent) !important;
  border-radius: 11px !important;
  background: var(--nz-accent) !important;
  color: var(--nz-ui-bg) !important;
  font-family: inherit;
  font-size: 14px;
}

.container:has([data-testid="store-thankyou-title"]) button[data-testid="store-thankyou-email-submit"] :is(.s-button-text, .btn__text) {
  color: var(--nz-ui-bg) !important;
}

.container:has([data-testid="store-thankyou-title"]) .thankyou-block > .flex {
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0;
}

.container:has([data-testid="store-thankyou-title"]) .thankyou-block > .flex > .unicode {
  min-width: 0;
  margin-inline: 0 !important;
  gap: 5px;
  font-size: 14px;
}

.container:has([data-testid="store-thankyou-title"]) .thankyou-block a {
  color: var(--nz-ui-ink) !important;
  overflow-wrap: anywhere;
}

.container:has([data-testid="store-thankyou-title"]) :is(a, button, input):focus-visible {
  outline: 2px solid var(--nz-accent);
  outline-offset: 3px;
}

.container:has([data-testid="store-thankyou-title"]) :is(button, input):disabled {
  opacity: .5;
  cursor: not-allowed;
}

.app-inner:has([data-testid="store-thankyou-title"]) > #viewed-section {
  margin-top: 28px !important;
}

.app-inner:has([data-testid="store-thankyou-title"]) > #viewed-section .s-block__title h2 {
  color: var(--nz-ui-ink);
  font-size: 23px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .container:has([data-testid="store-thankyou-title"]) {
    padding-inline: 16px;
    margin-bottom: 28px !important;
  }

  .container:has([data-testid="store-thankyou-title"]) > div:has([data-testid="store-thankyou-title"]) {
    padding: 22px 16px !important;
    border-radius: 20px !important;
  }

  .container:has([data-testid="store-thankyou-title"]) > div > div:has(> [data-testid="store-thankyou-title"]) {
    padding: 10px 0 14px !important;
  }

  .container:has([data-testid="store-thankyou-title"]) img.thanks-item {
    width: 96px;
    height: 96px;
    margin-bottom: 18px !important;
  }

  .container:has([data-testid="store-thankyou-title"]) p.thanks-item {
    font-size: 14px !important;
  }

  .container:has([data-testid="store-thankyou-title"]) > div:has(> .thankyou-block) {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .container:has([data-testid="store-thankyou-title"]) .thankyou-block {
    padding: 18px;
  }

  .container:has([data-testid="store-thankyou-title"]) .s-next-order-coupon-card {
    padding: 16px;
  }
}

/* 8 — تقييمات صفحة المنتج فقط. تقييمات الرئيسية مستقلة عن هذه المحددات. */

body.product-single salla-comments[type="product"] .s-comments-product {
  margin-block: 20px 24px !important;
  padding-block: 24px !important;
  background: transparent !important;
  color: var(--nz-ui-ink);
}

body.product-single salla-comments[type="product"] .s-comments-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
  color: var(--nz-ui-ink);
}

body.product-single salla-comments[type="product"] .s-comments-header {
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 24px 18px;
}

body.product-single salla-comments[type="product"] .s-comments-header:empty {
  margin: 0 !important;
  padding: 0;
}

body.product-single salla-comments[type="product"] .s-comments-title {
  color: var(--nz-ui-ink) !important;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.7;
}

body.product-single salla-comments[type="product"] .s-comments-count-label {
  color: var(--nz-ui-ink) !important;
  font-size: 18px;
  line-height: 1.7;
}

body.product-single salla-comments[type="product"] .s-comments-filter-wrapper {
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

body.product-single salla-comments[type="product"] .s-comments-filter-label {
  color: var(--nz-ui-ink);
  font-size: 13px;
}

body.product-single salla-comments[type="product"] :is(select.s-comments-sort-input, .s-comments-sort-input select) {
  width: 180px;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 11px;
  background-color: var(--nz-ui-panel);
  color: var(--nz-ui-ink);
  font-family: inherit;
  font-size: 14px;
}

/* ملخص التقييم: الأرقام والنسب وعرض الأشرطة تتولاها سلة. */

body.product-single salla-comments[type="product"] .s-reviews-summary-wrapper:not(.s-hidden):not(.hidden):not([hidden]) {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 18px;
  background: var(--nz-ui-panel);
}

body.product-single salla-comments[type="product"] .s-reviews-summary-header {
  min-width: 0;
  align-content: center;
  gap: 20px;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-header-section {
  flex-wrap: wrap;
  gap: 14px;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-average {
  color: var(--nz-ui-ink) !important;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-count {
  color: var(--nz-ui-ink) !important;
  font-size: 13px;
  line-height: 1.8;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-rows {
  width: 100% !important;
  min-width: 0;
  gap: 12px;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-row {
  min-width: 0;
  gap: 10px;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-row-rate {
  flex-shrink: 0;
  color: var(--nz-ui-ink);
  font-size: 13px;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-progress {
  min-width: 0;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-progress .s-progress-bar-wrapper {
  height: 8px;
  border-radius: 999px;
  background: rgba(97, 7, 24, .12);
  overflow: hidden;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-progress .s-progress-bar-progress {
  border-radius: 999px;
  background-color: var(--nz-accent);
}

body.product-single salla-comments[type="product"] .s-reviews-summary-percentage {
  width: 38px;
  min-width: 38px;
  color: var(--nz-ui-ink);
  font-size: 13px;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-recommendation-percentage {
  color: var(--nz-ui-ink);
  font-size: 30px;
  line-height: 1.4;
}

body.product-single salla-comments[type="product"] .s-reviews-summary-header-section.s-reviews-summary-recommendation-only p {
  color: var(--nz-ui-ink);
  font-size: 14px;
  line-height: 1.8;
}

/* يتغير لون النجوم المحددة فقط؛ تبقى النجوم غير المحددة وحالات الاختيار أصلية. */

body.product-single salla-comments[type="product"] :is(.s-rating-stars-selected, .s-rating-stars-hovered) {
  fill: var(--nz-accent);
}

body.product-single salla-comments[type="product"] .s-rating-stars-label {
  background: var(--nz-ui-bg);
  color: var(--nz-ui-ink);
}

body.product-single salla-comments[type="product"] .s-rating-stars-reviews {
  color: var(--nz-ui-ink);
}

/* كل تقييم في بطاقة واضحة مع الاسم والمحتوى والوسائط الأصلية. */

body.product-single salla-comments[type="product"] .s-comments-item {
  margin-bottom: 14px;
  padding: 20px !important;
  border: 1px solid var(--nz-ui-line) !important;
  border-radius: 16px;
  background: var(--nz-ui-panel);
  color: var(--nz-ui-ink);
}

body.product-single salla-comments[type="product"] .s-comments-item-inner {
  gap: 12px;
}

body.product-single salla-comments[type="product"] .s-comments-item-inner > :not([hidden]) ~ :not([hidden]) {
  margin-inline: 0 !important;
}

body.product-single salla-comments[type="product"] .s-comments-flex-1 {
  min-width: 0;
}

body.product-single salla-comments[type="product"] .s-comments-item-avatar-img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 50%;
  object-fit: cover;
}

body.product-single salla-comments[type="product"] .s-comments-item-user-wrapper {
  align-items: flex-start;
  gap: 8px;
}

body.product-single salla-comments[type="product"] .s-comments-item-user-info {
  flex-wrap: wrap;
  gap: 6px;
}

body.product-single salla-comments[type="product"] :is(.s-comments-item-user-info-name, .s-comments-item-user-info-name-with-margin) {
  color: var(--nz-ui-ink) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}

body.product-single salla-comments[type="product"] .s-comments-item-user-info-name {
  margin-inline: 0;
}

body.product-single salla-comments[type="product"] :is(.s-comments-item-timestamp, .s-comments-item-time, .s-comments-item-has-order-check-text, .s-comments-item-rated-widget) {
  color: var(--nz-ui-ink) !important;
  font-size: 12px;
  line-height: 1.8;
}

body.product-single salla-comments[type="product"] .s-comments-item-stars {
  margin-block: 8px 10px;
}

body.product-single salla-comments[type="product"] .s-comments-item-content {
  color: var(--nz-ui-ink) !important;
  font-size: 14px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

body.product-single salla-comments[type="product"] .s-comments-item-content :is(p, li) {
  color: inherit !important;
  line-height: 1.95;
}

body.product-single salla-comments[type="product"] .s-comments-item-content a {
  color: var(--nz-ui-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.product-single salla-comments[type="product"] .s-comments-item-pending-text {
  border: 1px solid var(--nz-ui-line);
  background: var(--nz-ui-bg);
  color: var(--nz-ui-ink);
  font-size: 12px;
}

body.product-single salla-comments[type="product"] .s-comments-item-admin-wrapper {
  gap: 10px;
  margin-top: 16px;
  padding-inline-start: 16px !important;
  border-inline-start: 2px solid var(--nz-ui-line);
}

body.product-single salla-comments[type="product"] .s-comments-item-images {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.product-single salla-comments[type="product"] :is(.s-comments-item-images > img, .s-comments-item-images > a > img) {
  width: 80px;
  height: 100px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 10px;
  background: var(--nz-ui-bg);
  object-fit: contain;
}

body.product-single salla-comments[type="product"] :is(button.s-comments-item-like-btn, .s-comments-item-like-btn > button.s-button-element) {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 10px !important;
  background: transparent;
  color: var(--nz-ui-ink);
  font-size: 12px;
}

/* نموذج كتابة التقييم: الحقول والتحقق والإرسال كما هي من سلة. */

body.product-single salla-comments[type="product"] .s-comment-form-wrapper {
  gap: 12px;
  margin-bottom: 22px;
}

body.product-single salla-comments[type="product"] .s-comment-form-avatar {
  width: 44px;
  height: 44px;
  margin-inline: 0 !important;
  border-radius: 50%;
}

body.product-single salla-comments[type="product"] .s-comment-form-content {
  min-width: 0;
}

body.product-single salla-comments[type="product"] .s-comment-form-input {
  min-height: 120px;
  height: auto;
  padding: 14px;
  border: 1px solid var(--nz-ui-line);
  border-radius: 13px !important;
  background: var(--nz-ui-panel);
  color: var(--nz-ui-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
}

body.product-single salla-comments[type="product"] .s-comment-form-input:focus {
  border-color: var(--nz-accent);
}

body.product-single salla-comments[type="product"] .s-comment-form-action {
  margin-top: 10px;
}

body.product-single salla-comments[type="product"] .s-comment-form-action salla-button > button.s-button-element {
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid var(--nz-accent);
  border-radius: 12px !important;
  background: var(--nz-accent);
  color: var(--nz-ui-bg);
  font-family: inherit;
  font-size: 14px;
}

body.product-single salla-comments[type="product"] .s-comment-form-action .s-button-text {
  color: var(--nz-ui-bg);
}

body.product-single salla-comments[type="product"] .s-comments-placeholder {
  margin-block: 12px;
  padding: 28px 18px;
  border: 1px dashed var(--nz-ui-line);
  border-radius: 18px;
  background: var(--nz-ui-panel);
  color: var(--nz-ui-ink);
}

body.product-single salla-comments[type="product"] .s-comments-placeholder p {
  color: var(--nz-ui-ink);
  font-size: 14px;
  line-height: 1.9;
}

body.product-single salla-comments[type="product"] .s-comments-placeholder > span {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  background: var(--nz-ui-bg);
  color: var(--nz-ui-ink);
}

body.product-single salla-comments[type="product"] .s-comments-placeholder > span svg {
  width: 30px;
  height: 30px;
  fill: var(--nz-accent);
}

body.product-single salla-comments[type="product"] .s-comments-product:has(> .s-comments-container > .s-comments-header:empty):not(:has(.s-comments-item, .s-comments-placeholder, .s-comment-form-wrapper, .s-reviews-summary-wrapper)) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}

body.product-single salla-comments[type="product"] :is(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--nz-accent);
  outline-offset: 3px;
}

body.product-single salla-comments[type="product"] :is(button, input, textarea, select):disabled {
  cursor: not-allowed;
}

@media (max-width: 767px) {
  body.product-single salla-comments[type="product"] .s-comments-product {
    padding-block: 16px !important;
    margin-block: 12px 18px !important;
  }

  body.product-single salla-comments[type="product"] .s-comments-container {
    padding-inline: 16px;
  }

  body.product-single salla-comments[type="product"] .s-reviews-summary-wrapper:not(.s-hidden):not(.hidden):not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  body.product-single salla-comments[type="product"] .s-reviews-summary-average {
    font-size: 42px;
  }

  body.product-single salla-comments[type="product"] .s-comments-item {
    padding: 16px !important;
  }

  body.product-single salla-comments[type="product"] .s-comments-item-inner {
    gap: 10px;
  }

  body.product-single salla-comments[type="product"] .s-comments-item-avatar-img {
    width: 36px;
    height: 36px;
  }

  body.product-single salla-comments[type="product"] .s-comments-item-user-wrapper {
    flex-direction: column;
    gap: 2px;
  }

  body.product-single salla-comments[type="product"] .s-comments-title {
    font-size: 22px;
  }

  body.product-single salla-comments[type="product"] .s-comments-count-label {
    font-size: 16px;
  }

  body.product-single salla-comments[type="product"] .s-comment-form-avatar {
    width: 36px;
    height: 36px;
  }

  body.product-single salla-comments[type="product"] :is(select.s-comments-sort-input, .s-comments-sort-input select) {
    font-size: 16px;
  }
}

/* تفاصيل الهوية وإصلاحات محددة النطاق. */

.store-footer {
  --nz-footer: #e4d1b9;
  border-top: 3px solid var(--nz-beige);
}

.nazra-footer-badges {
  background: var(--nz-soft);
}

.section-container > .categories-grid > .category-card {
  color: var(--nz-ink) !important;
  text-decoration: none;
}

.section-container > .categories-grid .category-name {
  color: var(--nz-ink) !important;
}

.nazra-mobile-nav [aria-current="page"] {
  color: var(--nz-accent) !important;
  background: var(--nz-soft);
}

body.product-single .product-page .details-slider .magnify-wrapper {
  width: 100%;
  height: 100%;
  min-height: 0;
}

body#app.product-single form.product-form button.np2-size-button {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.nazra-reviews-track, .nazra-mobile-nav, .store-footer, .store-footer *, .s-comments-container,
.product-page, .product-page *, .s-search-panel, .s-search-panel *, #cart-summary-panel,
#cart-summary-panel *, .categories-grid, .category-card {
  box-sizing: border-box;
}
footer.store-footer {
  border-radius: 24px 24px 0 0 !important;
  overflow: hidden !important;
}

footer.store-footer .store-footer__inner {
  border-radius: 0 !important;
}
.store-header,
.store-header #classic-main-nav,
.store-header #classic-main-nav .inner {
  border-bottom-width: 0 !important;
}

/* إعادة تفعيل رابط سلة الأصلي؛ لا تُنشأ روابط أو بطاقات بديلة. */
.s-search-panel .s-search-grid-item salla-search-product-card.s-search-product-card-entry {
  position: relative !important;
  pointer-events: auto !important;
}
.s-search-panel .s-search-grid-item .s-search-product-card-overlay-link {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
  pointer-events: auto !important;
}
.s-search-panel .s-search-product-card-overlay-link:focus-visible {
  outline: 2px solid var(--nz-accent, #610718) !important;
  outline-offset: -3px;
  border-radius: inherit;
}

/* تصغير إشعار الشراء على الجوال فقط؛ لا يغيّر مؤقته أو بياناته أو زر الإغلاق. */
@media (max-width: 639px) {
  fake-sale-notification .sale-notification-card {
    width: min(300px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 12px !important;
  }
  fake-sale-notification .sale-notification-card > div:first-child {
    padding: 10px !important;
    gap: 8px !important;
    align-items: center !important;
  }
  fake-sale-notification .sale-notification-card > div:first-child > div:first-child {
    flex-shrink: 0 !important;
    width: 44px !important;
    height: 58px !important;
    border-radius: 8px !important;
  }
  fake-sale-notification .sale-notification-card > div:first-child > div:nth-child(2) {
    min-width: 0 !important;
    gap: 3px !important;
  }
  fake-sale-notification .sale-notification-card > div:first-child > div:nth-child(2) > div {
    font-size: 11px !important;
    line-height: 1.5 !important;
    gap: 4px !important;
  }
  fake-sale-notification .sale-notification-card > div:first-child > div:nth-child(2) > div:first-child {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-height: 3em;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  fake-sale-notification .sale-notification-card > div:first-child > div:nth-child(2) svg {
    flex-shrink: 0;
    width: 12px !important;
    height: 12px !important;
  }
  fake-sale-notification .sale-notification-card > div:last-child { height: 2px !important; }
}

@media (max-width: 767px) {
  #coupon-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "content";
  }

  #coupon-stage .c-half-image {
    min-height: 220px;
  }
}
@media (max-width: 767px) {
  #coupon-stage {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "content";
    direction: ltr;
  }

  #coupon-stage .c-half-image {
    grid-area: image;
    min-height: 220px;
    filter: none !important;
    backdrop-filter: none !important;
  }

  #coupon-stage .c-half-image img,
  #coupon-stage .c-half-image::before,
  #coupon-stage .c-half-image::after {
    filter: none !important;
    backdrop-filter: none !important;
  }

  #coupon-stage .c-half-content {
    grid-area: content;
    direction: rtl;
  }
}
.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])
.cart-submit-btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.container:has(> salla-conditional-offer[data-testid="store-cart-conditional-offer"])
.cart-submit-btn > a {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-height: 48px !important;
  align-items: center;
  justify-content: center;
  background: var(--nz-accent, #610718) !important;
  color: #fff !important;
}