/* Hide the main page scrollbar without disabling scrolling. */
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ================================================================
   Square category grid
   Scoped to this component so other Salla banners remain unchanged.
   ================================================================ */

.square-grid .banner-square {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 280ms ease;
  will-change: transform;
}

.square-grid .banner-square .box-img {
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: filter 280ms ease;
}

.square-grid .banner-square .box-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgb(255 255 255 / 62%) 46%,
    transparent 64%
  );
  transform: translateX(-135%);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.square-grid .banner-square .box-img img {
  display: block;
  transition:
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 300ms ease;
  will-change: transform;
}

.square-grid .banner-square .text-wrapper,
.square-grid .banner-square .text-wrapper p {
  color: var(--color-primary, #7a5132) !important;
}

.square-grid .banner-square .text-wrapper {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.square-grid .banner-square .text-wrapper p {
  margin-top: 0.45rem;
  line-height: 1.5;
  font-weight: 600;
  transition:
    color 220ms ease,
    text-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .square-grid .banner-square:hover {
    z-index: 2;
    transform: translateY(-7px);
  }

  .square-grid .banner-square:hover .box-img {
    filter: brightness(1.05);
  }

  .square-grid .banner-square:hover .box-img::after {
    transform: translateX(135%);
  }

  .square-grid .banner-square:hover .box-img img {
    transform: scale(1.085);
    filter: saturate(1.08) contrast(1.02);
  }

  .square-grid .banner-square:hover .text-wrapper {
    transform: translateY(2px);
  }

  .square-grid .banner-square:hover .text-wrapper p {
    text-shadow: 0 5px 14px rgb(0 0 0 / 12%);
  }
}

.square-grid .banner-square:focus-within {
  z-index: 2;
  transform: translateY(-5px);
}

.square-grid .banner-square a:focus-visible {
  outline: 3px solid var(--color-primary, #7a5132);
  outline-offset: 4px;
}

.square-grid .banner-square:active {
  transform: translateY(-2px) scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
  .square-grid .banner-square,
  .square-grid .banner-square .box-img,
  .square-grid .banner-square .box-img::after,
  .square-grid .banner-square .box-img img,
  .square-grid .banner-square .text-wrapper,
  .square-grid .banner-square .text-wrapper p {
    transition-duration: 0.01ms !important;
  }

  .square-grid .banner-square:hover,
  .square-grid .banner-square:focus-within,
  .square-grid .banner-square:hover .box-img img,
  .square-grid .banner-square:hover .text-wrapper,
  .square-grid .banner-square:active {
    transform: none;
  }

  .square-grid .banner-square .box-img::after {
    display: none;
  }
}

/* ================================================================
   Unified section titles
   Covers regular Salla blocks and slider-block title structures.
   ================================================================ */

:is(.s-block__title, .s-slider-block__title) {
  position: relative;
  width: 100%;
  margin-bottom: clamp(1.35rem, 2.5vw, 2.15rem);
}

/* Remove Salla's empty block subtitle so it reserves no space. */
.s-block__title p.da-ts {
  display: none !important;
}

:is(.s-block__title, .s-slider-block__title) h2 {
  position: relative;
  isolation: isolate;
  width: fit-content !important;
  max-width: 100%;
  margin: 0;
  padding-inline-start: 1rem;
  padding-bottom: 0.65rem;
  color: #3d3d3d !important;
  font-family: inherit;
  font-size: clamp(1.55rem, 1.15rem + 1.25vw, 2.15rem) !important;
  font-weight: 800 !important;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 4px 16px rgb(0 0 0 / 7%);
}

/* Dark neutral vertical accent beside every heading. */
:is(.s-block__title, .s-slider-block__title) h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 46%;
  width: 5px;
  height: 68%;
  border-radius: 999px;
  background: #3d3d3d;
  box-shadow: 0 5px 14px rgb(61 61 61 / 22%);
  transform: translateY(-50%);
}



/* Keep title-side actions vertically aligned with the larger heading. */
.s-slider-block__title {
  align-items: center;
  gap: 0.75rem;
}

.s-slider-block__title-right {
  min-width: 0;
}

.s-slider-block__title-left {
  align-items: center;
  gap: 0.65rem;
}

@media (max-width: 639px) {
  :is(.s-block__title, .s-slider-block__title) {
    margin-bottom: 1.25rem;
  }

  :is(.s-block__title, .s-slider-block__title) h2 {
    padding-inline-start: 0.8rem;
  }

  :is(.s-block__title, .s-slider-block__title) h2::before {
    width: 4px;
  }

 
}

/* ================================================================
   Professional mobile navigation drawer
   CSS-only overrides for Salla's mm-spn menu structure.
   ================================================================ */

#mobile-menu {
  --vanilla-menu-text: #303030;
  --vanilla-menu-muted: #737373;
  --vanilla-menu-surface: #ffffff;
  --vanilla-menu-canvas: #f6f6f5;
  --vanilla-menu-border: #e9e8e6;
  --vanilla-menu-accent: var(--color-primary, #7a5132);

  color: var(--vanilla-menu-text) !important;
  background: var(--vanilla-menu-canvas) !important;
  overscroll-behavior: contain;
}

/* Cleaner, stronger drawer header. */
#mobile-menu.mm-spn--navbar::after {
  height: 52px;
  padding-inline: 3.75rem 1rem;
  color: #3d3d3d;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 52px;
  text-align: start;
  background: rgb(255 255 255 / 98%);
  border-bottom: 1px solid var(--vanilla-menu-border);
  box-shadow: 0 1px 0 rgb(0 0 0 / 3%);
}

#mobile-menu .close-mobile-menu {
  top: 4px;
  width: 44px;
  height: 44px;
  color: #3d3d3d;
  font-size: 1.1rem;
  border-radius: 12px;
  background: transparent;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

#mobile-menu .close-mobile-menu:hover,
#mobile-menu .close-mobile-menu:focus-visible {
  color: #111;
  background: #f0efed;
}

/* The supplied slider is empty and was creating a large blank gap. */
#mobile-menu .mobile-menu-slider {
  display: none !important;
}

/* Preserve Salla's sliding panels while improving their surfaces. */
#mobile-menu ul {
  padding-block: 0.5rem 1.25rem;
  background: var(--vanilla-menu-canvas) !important;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

#mobile-menu ul::-webkit-scrollbar {
  display: none;
  width: 0;
}

#mobile-menu ul > li {
  padding: 0.25rem 0.75rem;
  background: transparent !important;
}

/* Remove the old full-width separators; spacing and cards form the groups. */
#mobile-menu ul > li::after {
  display: none !important;
}

#mobile-menu ul > li > :is(a, span, button),
#mobile-menu .lang-menu {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0.65rem 1rem !important;
  gap: 0.7rem;
  color: var(--vanilla-menu-text) !important;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: start;
  border: 1px solid var(--vanilla-menu-border);
  border-radius: 12px;
  background: var(--vanilla-menu-surface) !important;
  box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
  touch-action: manipulation;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 140ms ease;
}

#mobile-menu ul > li > :is(a, span, button):hover,
#mobile-menu ul > li > :is(a, span, button):focus-visible,
#mobile-menu .lang-menu:hover,
#mobile-menu .lang-menu:focus-visible {
  color: #171717 !important;
  border-color: color-mix(in srgb, var(--vanilla-menu-accent), transparent 62%);
  background: var(--vanilla-menu-surface) !important;
}

#mobile-menu ul > li > :is(a, button):active,
#mobile-menu .lang-menu:active {
  transform: scale(0.985);
}

#mobile-menu ul > li > :is(a, span, button):focus-visible,
#mobile-menu .lang-menu:focus-visible,
#mobile-menu .close-mobile-menu:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--vanilla-menu-accent), transparent 35%);
  outline-offset: 2px;
}

/* Expandable categories carry stronger hierarchy and a clear chevron. */
#mobile-menu a.has-max {
  padding-inline-end: 3rem !important;
  font-weight: 750 !important;
  border-inline-start: 4px solid var(--vanilla-menu-accent);
  background: var(--vanilla-menu-surface) !important;
}

#mobile-menu ul > li:has(> ul)::before {
  z-index: 3;
  width: 7px;
  height: 7px;
  border-width: 0 0 2px 2px;
  border-color: #999;
  pointer-events: none;
}

#mobile-menu .menu_title {
  min-width: 0;
  color: inherit;
  line-height: 1.45;
  white-space: normal;
}

/* The repeated thumbnail does not identify destinations, so remove the noise. */
#mobile-menu .menu-img {
  display: none !important;
}

/* Subcategory panels are visually lighter than the main destinations. */
#mobile-menu ul ul > li > :is(a, span, button) {
  min-height: 48px;
  font-size: 0.9rem;
  font-weight: 550;
  border-color: transparent;
  box-shadow: none;
}

#mobile-menu ul ul .display-all-category {
  color: var(--vanilla-menu-accent) !important;
  font-weight: 750 !important;
  border: 1px dashed color-mix(in srgb, var(--vanilla-menu-accent), transparent 42%);
  background: var(--vanilla-menu-surface) !important;
}

#mobile-menu ul ul .display-all-category:hover,
#mobile-menu ul ul .display-all-category:focus-visible {
  color: var(--vanilla-menu-accent) !important;
  border-color: var(--vanilla-menu-accent);
  background: var(--vanilla-menu-surface) !important;
}

#mobile-menu ul ul .display-all-category > * {
  color: inherit !important;
}

/* One intentional badge only: National Day in Arabic or English. */
#mobile-menu :is(
  a[aria-label*="اليوم الوطني"],
  a[aria-label*="national day" i]
)::after {
  content: "عرض";
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 22px;
  margin-inline-start: 0.5rem;
  padding: 0.15rem 0.5rem;
  color: #fff;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: var(--vanilla-menu-accent);
  box-shadow: none;
  transform: none;
}

#mobile-menu a[aria-label*="national day" i]::after {
  content: "Offer";
}

/* Avoid duplicating the badge on the generic "view all" submenu row. */
#mobile-menu .display-all-category::after {
  content: none !important;
  display: none !important;
}

/* Utility groups: important links, contacts, social, and language. */
#mobile-menu li.links,
#mobile-menu li.social,
#mobile-menu li.language {
  margin-top: 0.35rem;
}

#mobile-menu li.links > span,
#mobile-menu li.social > span,
#mobile-menu li.language > button {
  color: #3d3d3d !important;
  font-weight: 750;
  border-style: dashed;
  background: var(--vanilla-menu-surface) !important;
}

#mobile-menu li.links > span i,
#mobile-menu li.social > span i,
#mobile-menu li.language > button i {
  color: var(--vanilla-menu-accent);
  font-size: 1.15rem;
}

#mobile-menu .menu-list {
  padding: 0.25rem 0.75rem 1rem;
}

#mobile-menu .menu-list .footer-title {
  display: none;
}

#mobile-menu .store-links-items {
  display: grid;
  gap: 0.25rem;
}

#mobile-menu .store-links-items > a {
  display: flex !important;
  align-items: center;
  min-height: 48px;
  margin: 0 !important;
  padding: 0.65rem 1rem;
  color: var(--vanilla-menu-text) !important;
  line-height: 1.45 !important;
  border-bottom: 1px solid var(--vanilla-menu-border);
  background: var(--vanilla-menu-surface);
}

#mobile-menu .store-links-items > a:last-child {
  border-bottom: 0;
}

#mobile-menu .s-contacts-list-vertical {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
}

#mobile-menu .s-contacts-item {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.65rem 0.85rem;
  gap: 0.75rem;
  color: var(--vanilla-menu-text) !important;
  border: 1px solid var(--vanilla-menu-border);
  border-radius: 12px;
  background: #fff;
}

#mobile-menu .s-contacts-icon,
#mobile-menu .s-contacts-icon svg {
  width: 22px;
  height: 22px;
  color: var(--vanilla-menu-accent);
  fill: currentColor;
  flex: 0 0 22px;
}

#mobile-menu .s-contacts-item .unicode {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  direction: ltr;
  text-align: start;
}

@media (prefers-reduced-motion: reduce) {
  #mobile-menu .close-mobile-menu,
  #mobile-menu ul > li > :is(a, span, button),
  #mobile-menu .lang-menu {
    transition-duration: 0.01ms !important;
  }

  #mobile-menu ul > li > :is(a, button):active,
  #mobile-menu .lang-menu:active {
    transform: none;
  }
}