/* The arrow used by the catalog and Atelier Elementor buttons. */
:root {
  --schobert-arrow: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20448%20512%22%3E%3Cpath%20d%3D%22M257.5%20445.1l-22.2%2022.2c-9.4%209.4-24.6%209.4-33.9%200L7%20273c-9.4-9.4-9.4-24.6%200-33.9L201.4%2044.7c9.4-9.4%2024.6-9.4%2033.9%200l22.2%2022.2c9.5%209.5%209.3%2025-.4%2034.3L136.6%20216H424c13.3%200%2024%2010.7%2024%2024v32c0%2013.3-10.7%2024-24%2024H136.6l120.5%20114.8c9.8%209.3%2010%2024.8.4%2034.3z%22%2F%3E%3C%2Fsvg%3E");
}

/* Homepage and archive links. */
html body.home .elementor .schobert-view-all a::after,
html body .elementor .schobert-blog-cards a.elementor-post__read-more::after,
html body.woocommerce-shop .elementor .sch-collection-card .elementor-cta__button::before,
html body :is(.elementor-pagination, nav.woocommerce-pagination, .navigation.pagination .nav-links, .page-links):not(.sch-pagination-ready) :is(a.page-numbers:is(.prev, .next), a[rel="prev"], a[rel="next"])::before,
html body :is(.elementor-pagination, .woocommerce-pagination, .nav-links, .page-links).sch-pagination-ready[data-sch-pagination="compact"] .sch-pagination-controls > .sch-pagination-control::before,
html body.single-post .elementor .schobert-related-controls button:is([aria-label="مقاله قبلی"], [aria-label="مقاله بعدی"])::before {
  content: "" !important;
  display: inline-block !important;
  width: 14px !important;
  min-width: 0 !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: currentColor !important;
  -webkit-mask: var(--schobert-arrow) center / contain no-repeat !important;
  mask: var(--schobert-arrow) center / contain no-repeat !important;
}

html body.home .elementor .schobert-view-all a::after {
  color: inherit !important;
}

/* Center the mobile arrow independently of the link's text. */
@media (max-width: 767px) {
  html body.home .elementor.elementor-46 .elementor-element.schobert-view-all .elementor-heading-title > a {
    position: relative;
    box-sizing: border-box;
    background: transparent !important;
    border: 1px solid #086854 !important;
    color: #086854 !important;
  }

  html body.home .elementor.elementor-46 .elementor-element.schobert-view-all .elementor-heading-title > a::after {
    position: absolute !important;
    inset: 0 !important;
    margin: auto !important;
    width: 16px !important;
    min-width: 0 !important;
    height: 16px !important;
    background: currentColor !important;
  }
}

html body .elementor .schobert-blog-cards a.elementor-post__read-more::after {
  margin: 0 !important;
  margin-inline-start: 7px !important;
}

/* Each compact or native pagination control renders the shared arrow once. */
html body :is(.elementor-pagination, .woocommerce-pagination, .nav-links, .page-links).sch-pagination-ready[data-sch-pagination="compact"] .sch-pagination-controls > .sch-pagination-control svg,
html body :is(.elementor-pagination, nav.woocommerce-pagination, .navigation.pagination .nav-links, .page-links):not(.sch-pagination-ready) :is(a.page-numbers:is(.prev, .next), a[rel="prev"], a[rel="next"]) > :is(svg, i),
html body :is(.elementor-pagination, nav.woocommerce-pagination, .navigation.pagination .nav-links, .page-links):not(.sch-pagination-ready) :is(a.page-numbers:is(.prev, .next), a[rel="prev"], a[rel="next"])::after {
  display: none !important;
}

html body :is(.elementor-pagination, nav.woocommerce-pagination, .navigation.pagination .nav-links, .page-links):not(.sch-pagination-ready) :is(a.page-numbers:is(.prev, .next), a[rel="prev"], a[rel="next"]) {
  font-size: 0 !important;
}

html body :is(.elementor-pagination, nav.woocommerce-pagination, .navigation.pagination .nav-links, .page-links):not(.sch-pagination-ready) :is(a.page-numbers:is(.prev, .next), a[rel="prev"], a[rel="next"]):is(.prev, [rel="prev"])::before,
html body :is(.elementor-pagination, .woocommerce-pagination, .nav-links, .page-links).sch-pagination-ready[data-sch-pagination="compact"] .sch-pagination-controls > .sch-pagination-control.sch-pagination-previous::before,
html body.single-post .elementor .schobert-related-controls button[aria-label="مقاله قبلی"]::before {
  rotate: 180deg;
}

/* Compact controls inherit the magazine treatment even when WooCommerce supplies the links. */
html body :is(.elementor-pagination, .woocommerce-pagination, .nav-links, .page-links).sch-pagination-ready[data-sch-pagination="compact"] > .sch-pagination-controls[dir="rtl"] > .sch-pagination-control:is(.sch-pagination-previous, .sch-pagination-next) {
  color: #004c3f !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transform: none !important;
  translate: none !important;
  transition: color .2s ease, background-color .2s ease !important;
}

html body :is(.elementor-pagination, .woocommerce-pagination, .nav-links, .page-links).sch-pagination-ready[data-sch-pagination="compact"] > .sch-pagination-controls[dir="rtl"] > a.sch-pagination-control:is(.sch-pagination-previous, .sch-pagination-next):is(:hover, :focus-visible) {
  color: #806936 !important;
  background: #f1eee5 !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body :is(.elementor-pagination, .woocommerce-pagination, .nav-links, .page-links).sch-pagination-ready[data-sch-pagination="compact"] > .sch-pagination-controls[dir="rtl"] > .sch-pagination-control:is(.sch-pagination-previous, .sch-pagination-next)[aria-disabled="true"] {
  color: #aaa99f !important;
}

@media (prefers-reduced-motion: reduce) {
  html body :is(.elementor-pagination, .woocommerce-pagination, .nav-links, .page-links).sch-pagination-ready[data-sch-pagination="compact"] > .sch-pagination-controls[dir="rtl"] > .sch-pagination-control:is(.sch-pagination-previous, .sch-pagination-next) {
    transition: none !important;
  }
}

html body.single-post:not(.home) .elementor .schobert-related-controls button:is([aria-label="مقاله قبلی"], [aria-label="مقاله بعدی"]) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
}

@property --sch-mega-logo-invert {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* Reveal the desktop panel as a solid surface below the header. */
@media (min-width: 1025px) {
  body {
    --sch-mega-duration: .23s;
    --sch-mega-ease: cubic-bezier(.28, .4, .32, 1);
    --sch-mega-ink-duration: .12s;
    --sch-mega-ink-delay: .035s;
  }

  html body .elementor-13 .schobert-header {
    transition: background-color var(--sch-mega-duration) var(--sch-mega-ease),
      box-shadow var(--sch-mega-duration) var(--sch-mega-ease) !important;
  }

  html body.home .elementor-13 .schobert-header.za-mega-closing:not(.elementor-sticky--effects) {
    --za-header-ink: #fff;
    background-color: transparent !important;
    box-shadow: none !important;
    /* Clear the wide header band before the last few pixels of the panel retract. */
    transition-duration: calc(var(--sch-mega-duration) * .78) !important;
  }

  html body.home .elementor-13 .schobert-header.za-mega-closing:not(.elementor-sticky--effects)
  :is(.elementor-nav-menu--main > ul > li > a, .za-mega-toggle, .schobert-search .elementor-icon) {
    color: var(--za-header-ink) !important;
    fill: var(--za-header-ink) !important;
  }

  html body.home .elementor-13 .schobert-header:not(.elementor-sticky--effects) .schobert-header-logo img {
    --sch-mega-logo-invert: 1;
    filter: url("#schobert-logo-edge-alpha") brightness(0) invert(var(--sch-mega-logo-invert)) !important;
    transition: --sch-mega-logo-invert var(--sch-mega-ink-duration) ease var(--sch-mega-ink-delay) !important;
  }

  html body.home .elementor-13 .schobert-header.za-mega-open:not(.elementor-sticky--effects) .schobert-header-logo img {
    --sch-mega-logo-invert: 0;
  }

  html body.home .elementor-13 .schobert-header:not(.elementor-sticky--effects)
  :is(.elementor-nav-menu--main > ul > li > a, .za-mega-toggle, .schobert-search .elementor-icon, .schobert-search .elementor-icon svg, .schobert-search .elementor-icon svg path) {
    transition: opacity .2s,
      color var(--sch-mega-ink-duration) ease var(--sch-mega-ink-delay),
      fill var(--sch-mega-ink-duration) ease var(--sch-mega-ink-delay) !important;
  }

  .elementor-13 .schobert-header .za-mega-toggle svg {
    transition: transform var(--sch-mega-duration) var(--sch-mega-ease) !important;
  }

  /* Elementor can clone an open panel when it creates the sticky header spacer. */
  .elementor-13 .schobert-header.elementor-sticky__spacer #za-schobert-desktop-mega {
    display: none !important;
  }

  .elementor-13 .schobert-header #za-schobert-desktop-mega {
    opacity: 1;
    clip-path: inset(0 0 100% 0);
    transition: clip-path var(--sch-mega-duration) var(--sch-mega-ease),
      visibility 0s var(--sch-mega-duration) !important;
  }

  .elementor-13 .schobert-header.za-mega-open #za-schobert-desktop-mega {
    clip-path: inset(0);
    transition-delay: 0s !important;
  }

  body .za-schobert-desktop-backdrop {
    transition: opacity var(--sch-mega-duration) var(--sch-mega-ease),
      visibility 0s var(--sch-mega-duration) !important;
  }

  body .za-schobert-desktop-backdrop.za-mega-backdrop-visible {
    transition-delay: 0s !important;
  }
}

@media (min-width: 1025px) and (prefers-reduced-motion: reduce) {
  body {
    --sch-mega-duration: 0s;
    --sch-mega-ink-duration: 0s;
    --sch-mega-ink-delay: 0s;
  }
}

/* Existing icons in the menu and live search, including generated result rows. */
#za-schobert-desktop-mega :is(.za-mega-card, .za-mega-all) [aria-hidden="true"]:is(b, span),
#sch-search-dialog :is(.sch-search-all, .sch-search-categories a, .sch-search-footer a) > span[aria-hidden="true"],
#sch-search-dialog .sch-search-result-arrow,
.sch-catalog-tools a .sch-catalog-external-arrow {
  display: inline-block !important;
  font-size: 0 !important;
  line-height: 1 !important;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  vertical-align: middle;
  background: currentColor;
  -webkit-mask: var(--schobert-arrow) center / contain no-repeat;
  mask: var(--schobert-arrow) center / contain no-repeat;
}

.sch-catalog-tools a .sch-catalog-external-arrow {
  margin-inline-start: 5px;
  rotate: 135deg;
}

/* Match the arrow shape while retaining the article controls' directions. */
html body.single-post:not(.home) .elementor .schobert-post-nav .post-navigation__arrow-wrapper::before,
html body.single-post:not(.home) .elementor .za-products .za-products__control:is([data-za-prev], [data-za-next])::before {
  -webkit-mask: var(--schobert-arrow) center / contain no-repeat !important;
  mask: var(--schobert-arrow) center / contain no-repeat !important;
}

/* Keep both article navigation icons fixed on hover and keyboard focus. */
html body.single-post:not(.home) .elementor .schobert-post-nav .elementor-post-navigation__link:hover,
html body.single-post:not(.home) .elementor .schobert-post-nav .elementor-post-navigation__link:focus-within {
  transform: none !important;
  translate: none !important;
}

html body.single-post:not(.home) .elementor .schobert-post-nav .elementor-post-navigation__link .post-navigation__arrow-wrapper::before,
html body.single-post:not(.home) .elementor .schobert-post-nav .elementor-post-navigation__link:is(:hover, :focus-within) .post-navigation__arrow-wrapper::before {
  transform: none !important;
  transition: none !important;
}

html body.single-post:not(.home) .elementor .schobert-post-nav .post-navigation__arrow-prev::before {
  rotate: 180deg;
}

/* Keep the filled-hover controls still while their colors change. */
html body .elementor :is(.schobert-home-catalog-button, .sch-catalog-open, .sch-collection-discover, .schobert-contact-form) .elementor-button,
html body .elementor :is(.schobert-home-catalog-button, .sch-catalog-open, .sch-collection-discover) .elementor-button .elementor-button-icon,
html body .elementor .schobert-view-all a,
html body .elementor .schobert-view-all a::after,
html body .elementor .schobert-blog-cards a.elementor-post__read-more,
html body .elementor .schobert-blog-cards a.elementor-post__read-more::after,
html body .elementor .elementor-pagination a.page-numbers,
html body :is(.sa-promo a, .sa-atelier .sa-product),
html body :is(.sa-promo a, .sa-atelier .sa-product) .sa-cta-icon {
  transform: none !important;
  translate: none !important;
  scale: none !important;
}

html body.single-post:not(.home) .elementor .za-products .za-products__controls .za-products__control:is([data-za-prev], [data-za-next])::before {
  transform: none !important;
  transition: none !important;
}

html body.single-post:not(.home) .elementor .za-products .za-products__control[data-za-next]::before {
  rotate: 180deg;
}
