html[data-maya-home-route] .app_container main {
  inline-size: 100%;
  max-inline-size: none;
  padding-inline: 0;
  padding-block-start: 0;
}

html[data-maya-home-route] .app_container main:not(:has(> [data-maya-home]))::before {
  content: '';
  display: block;
  block-size: calc(100vw * 844 / 1800);
  background: #e8c6ca;
}

@media (min-width: 901px) {
  html[data-maya-home-route] .app_container nav.default_header_container {
    inline-size: min(1720px, calc(100% - clamp(28px, 3.2vw, 64px) * 2));
    max-inline-size: none;
    padding-inline: 0;
  }

  html[data-maya-home-route] .app_container main:not(:has(> [data-maya-home]))::before {
    block-size: calc(min(100vw, clamp(900px, 76vw, 1060px)) * 844 / 1800);
  }
}

@media (min-width: 1024px) {
  html[data-maya-home-route] .app_container .default_header,
  html[data-maya-home-route] .app_container nav.default_header_container > .lg\:block {
    transition-property: none;
  }

  html[data-maya-home-route] .app_container nav.default_header_container {
    min-block-size: calc(var(--maya-logo-height) + 46px);
  }

  html[data-maya-home-loading] .app_container:not(:has(.default_header_top_text)) .default_header::before {
    content: '';
    display: block;
    block-size: 34px;
  }
}

html[data-maya-home-loading] .app_container main:not(:has([data-maya-rail-grid])) > .maya-story {
  display: none;
}

html[data-maya-home-loading] .app_container main:has(> [data-maya-home]):not(:has([data-maya-rail-grid])) > .content_container:has(.home_products_grid_container) {
  visibility: hidden;
}

html[data-maya-home-loading] .app_container:not(:has([data-maya-rail-grid])) footer {
  visibility: hidden;
}

@media (max-width: 620px) {
  html[data-maya-home-route] .app_container main:not(:has(> [data-maya-home]))::before {
    block-size: calc(100vw * 1.25);
  }
}

[data-maya-product-shelf] .home_section_top_title,
[data-maya-product-shelf] .home_section_top_title span {
  color: #30202b;
  background-color: #fdfbf7;
}

[data-maya-home-carousel] div:has(> .home_section_top_container) {
  opacity: 1 !important;
  transform: none !important;
}

[data-maya-home-carousel][data-maya-product-shelf] [data-maya-rail-grid] > * {
  opacity: 1 !important;
}

[data-maya-home-carousel] [data-maya-rail-grid] > :not([data-maya-rail-focused]) div.group[title] > div:first-child img.opacity-100 {
  filter: saturate(.85) contrast(.96);
}

[data-maya-home-carousel] .cursor-pointer:has(> .maya-product-link) > div:first-child,
[data-maya-home-carousel] [aria-label="عرض جميع المنتجات"] {
  display: none !important;
}

[data-maya-home-carousel] .cursor-pointer:has(> .maya-product-link) h3 {
  margin-block-start: 9px;
}

[data-maya-home-carousel] .cursor-pointer:has(> .maya-product-link) h3 + div {
  margin-block-start: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  main [data-maya-home-carousel] button.maya-carousel-pause:not([hidden]) {
    display: grid;
  }
}

div.group[title]:has(.maya-card-stock),
.cursor-pointer:has(> .maya-product-link) {
  position: relative;
}

.maya-product-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  border-radius: 6px;
}

.maya-product-link:focus-visible,
[data-maya-quick-view]:focus-visible {
  outline: 2px solid #833a55;
  outline-offset: 2px;
}

[data-maya-quick-view] {
  min-inline-size: 44px;
  min-block-size: 44px;
  display: inline-grid;
  place-items: center;
}

.maya-card-stock {
  position: absolute;
  z-index: 2;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  padding: 4px 9px;
  border: 1px solid #d8c2c6;
  border-radius: 999px;
  color: #5e3043;
  background-color: #fff8f8;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

[data-maya-stock-hidden],
#product-id .p_details_container[data-maya-stock-unavailable] :is(.checkout_btn, .add_to_cart_btn) {
  display: none !important;
}

#maya-product-stock {
  margin-block: 10px 0;
  padding: 7px 12px;
  border: 1px solid #e1cdd0;
  border-radius: 8px;
  color: #5e3043;
  background: #fbf1f2;
  font-weight: 700;
}

#product-id .p_details_container [data-maya-unavailable-option] {
  border-style: dashed;
}

#product-id .p_details_container [data-maya-unavailable-option]:not([data-maya-color]) {
  text-decoration: line-through;
}

#product-id .p_details_container [data-maya-color][data-maya-unavailable-option]::after {
  content: '';
  position: absolute;
  inline-size: 25px;
  block-size: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px #3e2b3a;
  transform: rotate(-42deg);
  pointer-events: none;
}
