/* BEGIN SOURCE /assets/sarmad-v104-discounted-home-cta-current-state-lock.css sha256=578070a703a79313cb1af4ae32fca87be263d2a95aba1377af398cbaf364e31d */

/*
 * SARMAD V104
 * Scope ONLY: HOME product cards that contain .sarmad-v62-discount-row.
 * Current production baseline: V101 active, V102/V103 absent.
 * Fix ONLY the discount-specific CTA displacement. Card/image/body geometry,
 * pricing, discount content and all non-discount cards are intentionally untouched.
 */

/*
 * Legacy discount CSS contains adjacent-sibling rules such as
 * .sarmad-v62-discount-row + button { position:relative; top:-... }
 * that can win against the normal HOME CTA rule depending on cascade order.
 * V104 is loaded last and neutralizes ONLY that discount-specific displacement.
 */
html body .home-code-artboard .home-product-card .home-product-body:has(> .sarmad-v62-discount-row) > .sarmad-v62-discount-row + button,
html body .home-code-artboard .home-product-card .home-product-body:has(> .sarmad-v62-discount-row) > button {
  position: absolute !important;
  top: auto !important;
  bottom: 10px !important;
  left: 50% !important;
  right: auto !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  flex: none !important;
  z-index: 6 !important;
}

@media (max-width: 767px) {
  html body .home-code-mobile .home-product-card .home-product-body:has(> .sarmad-v62-discount-row) > .sarmad-v62-discount-row + button,
  html body .home-code-mobile .home-product-card .home-product-body:has(> .sarmad-v62-discount-row) > button,
  html body .home-code-artboard-mobile .home-product-card .home-product-body:has(> .sarmad-v62-discount-row) > .sarmad-v62-discount-row + button,
  html body .home-code-artboard-mobile .home-product-card .home-product-body:has(> .sarmad-v62-discount-row) > button {
    position: absolute !important;
    top: auto !important;
    bottom: 10px !important;
    left: 50% !important;
    right: auto !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
  }
}

/* Isolation sentinels: no /products or product-details selectors are modified. */


/* END SOURCE /assets/sarmad-v104-discounted-home-cta-current-state-lock.css */

/* BEGIN SOURCE /assets/sarmad-v126-home-offers-addon.css?v=126 sha256=19a7030462ddb7297cc2425b0fe7b3a6bd26cf52b803b916326d3dfa5d9ee937 */

/* SARMAD V126 — CTA position + commercial attention animation only.
   Offers/filter behavior is inherited from the V125 add-on logic.
   Main storefront runtime, product cards and backend are not replaced. */

.home-countdown-card .sarmad-v126-offers-cta {
  box-sizing: border-box;
  position: absolute;
  top: 176px;
  left: 50%;
  z-index: 14;
  width: 292px;
  height: 50px;
  padding: 0 24px;
  transform: translateX(-50%);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(233, 230, 225, 0.90);
  border-radius: 999px;
  background: linear-gradient(102deg, #e9e6e1 0%, #d6b85f 48%, #e9e6e1 100%);
  color: #18336e;
  font-family: var(--sarmad-font, var(--arabic-font));
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16), 0 0 0 0 rgba(205, 170, 74, 0);
  animation: sarmad-v126-offers-nudge 4.8s ease-in-out infinite,
             sarmad-v126-offers-pulse 4.8s ease-in-out infinite;
  transition: box-shadow 180ms ease, filter 180ms ease;
}

.home-countdown-card .sarmad-v126-offers-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  bottom: -35%;
  left: -38%;
  width: 28%;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.10) 28%,
    rgba(255,255,255,.72) 52%,
    rgba(255,255,255,.10) 76%,
    rgba(255,255,255,0) 100%
  );
  animation: sarmad-v126-offers-shine 4.8s ease-in-out infinite;
  pointer-events: none;
}

.home-countdown-card .sarmad-v126-offers-cta:hover,
.home-countdown-card .sarmad-v126-offers-cta:focus-visible {
  animation-play-state: paused;
  filter: brightness(1.035);
  box-shadow: 0 13px 31px rgba(0, 0, 0, 0.20), 0 0 0 4px rgba(205, 170, 74, 0.15);
}

.home-countdown-card .sarmad-v126-offers-cta:focus-visible {
  outline: 3px solid rgba(109, 151, 226, 0.60);
  outline-offset: 3px;
}

:root[data-theme="light"] .home-countdown-card .sarmad-v126-offers-cta {
  color: #fff;
  background: linear-gradient(104deg, #18336e 0%, #294a8a 52%, #18336e 100%);
  border-color: rgba(24, 51, 110, 0.88);
  box-shadow: 0 10px 24px rgba(24, 51, 110, 0.20), 0 0 0 0 rgba(24, 51, 110, 0);
}

/* V126 keeps the same timer visuals. Only the mobile timer is shifted down
   enough to create breathing room above and below the CTA. */
@media (max-width: 767px) {
  .home-code-mobile .home-countdown-card .sarmad-v126-offers-cta {
    top: 165px !important;
    width: 238px;
    height: 42px;
    padding: 0 18px;
    font-size: 16px;
  }

  .home-code-mobile .home-countdown-grid,
  :root[data-theme="light"] .home-code-mobile .home-countdown-grid {
    top: 225px !important;
  }

  .products-filter.sarmad-v126-offers-filter {
    width: 82px;
    flex-basis: 82px;
  }
}

@media (min-width: 768px) {
  .products-filter.sarmad-v126-offers-filter {
    width: 86px;
    flex: 0 0 86px;
  }
}

.products-filters[data-sarmad-v126-offers="1"]
  .products-filter.is-selected:not(.sarmad-v126-offers-filter) {
  color: #6d97e2;
  background: #f4f4f4;
}

:root[data-theme="light"]
  .products-filters[data-sarmad-v126-offers="1"]
  .products-filter.is-selected:not(.sarmad-v126-offers-filter) {
  color: #18336e;
  background: #e9e6e1;
}

@keyframes sarmad-v126-offers-nudge {
  0%, 68%, 100% {
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
  }
  72% {
    transform: translateX(-50%) translateY(-2px) rotate(-1.2deg) scale(1.018);
  }
  75% {
    transform: translateX(-50%) translateY(0) rotate(1.4deg) scale(1.025);
  }
  78% {
    transform: translateX(-50%) translateY(-1px) rotate(-0.9deg) scale(1.018);
  }
  81% {
    transform: translateX(-50%) translateY(0) rotate(0.6deg) scale(1.012);
  }
  85% {
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes sarmad-v126-offers-pulse {
  0%, 66%, 100% {
    box-shadow: 0 10px 26px rgba(0,0,0,.16), 0 0 0 0 rgba(205,170,74,0);
  }
  74% {
    box-shadow: 0 13px 30px rgba(0,0,0,.19), 0 0 0 7px rgba(205,170,74,.12);
  }
  84% {
    box-shadow: 0 10px 26px rgba(0,0,0,.16), 0 0 0 13px rgba(205,170,74,0);
  }
}

@keyframes sarmad-v126-offers-shine {
  0%, 69% { left: -38%; opacity: 0; }
  71% { opacity: .88; }
  84% { left: 112%; opacity: .65; }
  87%, 100% { left: 112%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-countdown-card .sarmad-v126-offers-cta,
  .home-countdown-card .sarmad-v126-offers-cta::before {
    animation: none !important;
  }
}


/* END SOURCE /assets/sarmad-v126-home-offers-addon.css?v=126 */
