.offer-shell-body {
  background: #f9fcfb;
}

.offer-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #dde6e1;
  box-shadow: 0 16px 42px rgba(var(--brand-rgb,15,90,69), .07);
  transition: box-shadow .24s ease, border-color .24s ease;
}

.offer-header.is-mobile-stuck {
  border-color: rgba(var(--brand-rgb,15,90,69), .16);
  box-shadow: 0 18px 38px rgba(8,42,32, .14);
  animation: mobileHeaderDrop .34s cubic-bezier(.2, .8, .2, 1);
}

@keyframes mobileHeaderDrop {
  from {
    opacity: .72;
    transform: translateY(-18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.offer-header__bar {
  min-height: 38px;
  display: flex;
  justify-content: center;
  gap: 34px;
  align-items: center;
  padding: 8px 22px;
  color: #fff;
  background: var(--brand,#0f5a45);
  font-size: 13px;
  font-weight: 600;
}

.offer-nav {
  width: min(100% - 40px, 1200px);
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(180px, 1fr);
  gap: 20px;
  align-items: center;
  margin: 0 auto;
}

.offer-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #14231d;
  text-decoration: none;
}


.offer-brand .brand-logo { height: 44px; }

.offer-brand span,
.offer-brand strong,
.offer-brand small {
  display: block;
}

.offer-brand strong {
  font-size: 26px;
  line-height: 1.35;
}

.offer-brand small {
  margin-top: 4px;
  color: #6b7a72;
  font-size: 12px;
  font-weight: 600;
}

.offer-nav__links {
  display: inline-flex;
  justify-content: center;
  justify-self: center;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 8px;
  padding: 6px;
  border: 1px solid #dde6e1;
  border-radius: 999px;
  /* تلاشٍ عند حافتي التمرير (تقنية local/scroll): يظهر ظلّ خفيف عند الحافة التي فيها
     روابط مخفية، ويختفي حين يبلغ التمرير نهايته — إشارة بصرية بلا جافاسكربت. */
  background:
    linear-gradient(to right, #f9fcfb 30%, rgba(249, 252, 251, 0)) left center / 32px 100% no-repeat local,
    linear-gradient(to left, #f9fcfb 30%, rgba(249, 252, 251, 0)) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(var(--brand-rgb,15,90,69), .3), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(var(--brand-rgb,15,90,69), .3), transparent) right center / 14px 100% no-repeat scroll,
    #f9fcfb;
}

.offer-nav__links::-webkit-scrollbar {
  display: none;
}

.offer-nav__links a,
.offer-nav__store {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #34463e;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.offer-nav__links a.is-active {
  color: #fff;
  background: var(--brand,#0f5a45);
}

.offer-nav__actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.offer-cart {
  position: relative;
}

.offer-cart__icon {
  width: 44px;
  height: 44px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--brand,#0f5a45);
  border: 1px solid #dde6e1;
  border-radius: 50%;
  background: #fff;
}

.offer-cart__icon svg {
  width: 19px;
  height: 19px;
}

.offer-cart__icon span {
  position: absolute;
  top: -7px;
  inset-inline-start: -4px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: #c99a3e;
  font-size: 11px;
  font-weight: 600;
}

.offer-header .cart-popover__checkout {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--brand,#0f5a45);
  border: 1px solid var(--brand,#0f5a45);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.offer-header .cart-popover__checkout:hover {
  color: #fff;
  background: var(--brand-600,#0a4534);
  border-color: var(--brand-600,#0a4534);
}

.offer-footer {
  width: min(100% - 40px, 1200px);
  display: grid;
  grid-template-columns: auto minmax(260px, 680px);
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 32px;
  padding: 24px;
  color: #34463e;
  border: 1px solid #dde6e1;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #fff 55%, var(--brand-50,#e6f2ed) 100%);
  box-shadow: 0 18px 42px rgba(var(--brand-rgb,15,90,69), .07);
}

.offer-footer--simple {
  min-height: 112px;
}

.offer-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}


.offer-footer__brand .brand-logo { height: 40px; }

.offer-footer__brand strong,
.offer-footer__brand span {
  display: block;
}

.offer-footer__brand strong {
  color: #14231d;
  font-size: 23px;
  line-height: 1;
}

.offer-footer__brand span {
  margin-top: 4px;
  color: #6b7a72;
  font-size: 12px;
  font-weight: 600;
}

.offer-footer__copy p {
  margin: 0;
  color: #5b6b63;
  font-size: 13px;
  line-height: 1.9;
  text-align: start;
}

.offer-footer__links {
  justify-self: end;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-footer__links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--brand,#0f5a45);
  border: 1px solid #dde6e1;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.designs-access-timer {
  /* فوق زر «مساعد العالمية» (44px عند 24px من الحافة نفسها) لا فوقه تراكبًا */
  position: fixed;
  inset-block-end: 80px;
  inset-inline-end: 24px;
  inset-inline-start: auto;
  z-index: 30;
  min-width: 132px;
  padding: 10px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: linear-gradient(135deg, #0a2a20 0%, var(--brand,#0f5a45) 100%);
  box-shadow: 0 18px 42px rgba(10,30,22, .24);
}

.designs-access-timer span,
.designs-access-timer strong {
  display: block;
}

.designs-access-timer span {
  opacity: .82;
  font-size: 11px;
  font-weight: 600;
}

.designs-access-timer strong {
  margin-top: 2px;
  direction: ltr;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.designs-access-timer.is-expired {
  background: #34463e;
}

html[dir="ltr"] .offer-brand {
  justify-self: start;
}

html[dir="ltr"] .offer-nav__actions,
html[dir="ltr"] .offer-footer__links {
  justify-self: end;
}

@media (max-width: 900px) {
  .offer-shell-body {
    padding-top: 62px;
  }

  .offer-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 90;
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
  }

  .offer-header__bar {
    display: none;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .offer-nav {
    width: min(100% - 28px, 1200px);
    min-height: 74px;
    margin-block: 0;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "links links";
    gap: 8px 12px;
    justify-items: stretch;
    text-align: start;
    padding: 8px 0;
  }

  .offer-brand {
    grid-area: brand;
  }

  .offer-nav__links {
    grid-area: links;
    justify-self: stretch;
    justify-content: flex-start;
    padding: 5px;
    border-radius: 14px;
  }

  .offer-nav__links a {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .offer-brand .brand-logo {
    height: 36px;
  }

  .offer-brand strong {
    font-size: 21px;
  }

  .offer-brand small {
    margin-top: 2px;
    font-size: 10px;
  }

  .offer-cart__icon {
    width: 38px;
    height: 38px;
  }

  .offer-header .cart-popover.cart-popover--mobile .cart-popover__checkout {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand,#0f5a45), var(--brand-600,#0a4534));
    border: 1px solid rgba(var(--brand-rgb,15,90,69), .9);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(165, 22, 70, .18);
  }

  .offer-footer {
    width: min(100% - 28px, 1200px);
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .offer-brand,
  .offer-footer__links {
    justify-self: center;
  }

  .offer-footer__copy p {
    text-align: center;
  }

  .offer-brand {
    justify-self: start;
  }

  .offer-nav__actions {
    grid-area: actions;
    justify-self: end;
  }

  .designs-access-timer {
    inset-block-end: 66px;
    inset-inline-end: 14px;
    min-width: 96px;
    padding: 7px 11px;
    border-radius: 11px;
  }

  .designs-access-timer span {
    font-size: 10px;
    line-height: 1.3;
  }

  .designs-access-timer strong {
    margin-top: 1px;
    font-size: 15px;
  }
}
