/* Add custom CSS styles below */
.mw-cart-booster {
  margin: 0 0 20px;
  padding: 20px;
  direction: rtl;
  color: #050f2c;
  background: #fff;
  border: 1px solid rgba(5, 15, 44, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(5, 15, 44, 0.06);
}

.mw-cart-booster__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mw-cart-booster__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
}

.mw-cart-booster__text {
  margin: 0;
  font-size: 13px;
  color: #596170;
  line-height: 1.7;
}

.mw-cart-booster__badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #fff;
  background: #050f2c;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.mw-cart-booster__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mw-cart-booster__slider {
  margin: 4px 0 16px;
}

.mw-cart-booster__slider salla-products-slider {
  display: block;
}

.mw-cart-booster__slider .s-slider-block__title {
  display: none;
}

.mw-cart-booster__subhead {
  margin: 2px 0 10px;
}

.mw-cart-booster__subhead h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 800;
}

.mw-cart-booster__subhead p {
  margin: 0;
  color: #596170;
  font-size: 12px;
  line-height: 1.6;
}

.mw-cart-booster__item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid rgba(5, 15, 44, 0.1);
  border-radius: 8px;
  background: #fafafa;
}

.mw-cart-booster__img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f2f2;
}

.mw-cart-booster__name {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.mw-cart-booster__btn,
.mw-cart-booster__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: #050f2c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mw-cart-booster__btn:hover,
.mw-cart-booster__link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.mw-cart-booster__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(5, 15, 44, 0.08);
}

.mw-cart-booster__link {
  color: #050f2c;
  background: #eef1f6;
}

@media (max-width: 767px) {
  .mw-cart-booster {
    padding: 16px;
  }

  .mw-cart-booster__head {
    display: block;
  }

  .mw-cart-booster__badge {
    display: inline-flex;
    margin-top: 10px;
  }

  .mw-cart-booster__grid {
    grid-template-columns: 1fr;
  }
}



















/* Custom Products - Popup */

/* Section */
.mawasm-showcase {
  position: relative;
  overflow: hidden;
  margin: 30px auto;
  padding: 70px 18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 15%, rgba(191, 145, 66, 0.20), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(191, 145, 66, 0.15), transparent 34%),
    linear-gradient(135deg, #050505 0%, #13100b 50%, #050505 100%);
  color: #fff;
  isolation: isolate;
}

.mawasm-showcase * {
  box-sizing: border-box;
}

.mawasm-showcase__glow {
  position: absolute;
  inset: -40%;
  z-index: 0;
  background:
    linear-gradient(120deg, transparent, rgba(255, 220, 145, 0.10), transparent),
    radial-gradient(circle, rgba(255, 220, 145, 0.10), transparent 40%);
  filter: blur(20px);
  animation: mawasmGlowMove 12s ease-in-out infinite alternate;
}

.mawasm-showcase__container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 28px;
  align-items: stretch;
}

.mawasm-showcase__intro {
  position: relative;
  min-height: 500px;
  padding: 36px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(220, 179, 95, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mawasm-showcase__tag {
  width: fit-content;
  padding: 9px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #f6d98b;
  background: rgba(220, 179, 95, 0.10);
  border: 1px solid rgba(220, 179, 95, 0.24);
  font-size: 14px;
  font-weight: 900;
}

.mawasm-showcase__intro h2 {
  margin: 0;
  color: #fff1c4;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.25;
}

.mawasm-showcase__intro p {
  margin: 18px 0 28px;
  color: rgba(255, 245, 218, 0.72);
  font-size: 17px;
  line-height: 1.9;
  font-weight: 600;
}

/* الزر محذوف / مخفي احتياطًا */
.mawasm-showcase__main-btn {
  display: none !important;
}

.mawasm-showcase__products-wrap {
  scroll-margin-top: 120px;
}

.mawasm-showcase__products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Product Line */
.mawasm-product-line {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 156px;
  padding: 16px;
  overflow: hidden;
  border-radius: 26px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(220, 179, 95, 0.20);
  box-shadow: 0 22px 60px rgba(0,0,0,0.25);
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 0.55s ease,
    opacity 0.55s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.mawasm-product-line.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.mawasm-product-line:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 217, 139, 0.45);
  background:
    linear-gradient(90deg, rgba(220,179,95,0.13), rgba(255,255,255,0.04)),
    rgba(255, 255, 255, 0.055);
}

.mawasm-product-line__image {
  height: 130px;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
}

.mawasm-product-line__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.4s ease;
}

.mawasm-product-line:hover .mawasm-product-line__image img {
  transform: scale(1.06);
}

.mawasm-product-line__content {
  min-width: 0;
}

.mawasm-product-line__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 9px;
}

.mawasm-product-line__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 58px;
  height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  color: #0b0b0b;
  background: linear-gradient(135deg, #fff0bd, #c6953d);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}

.mawasm-product-line__badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #f6d98b;
  background: rgba(220,179,95,0.10);
  border: 1px solid rgba(220,179,95,0.18);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mawasm-product-line__title {
  margin: 0 0 7px;
  color: #fff3cf;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
}

.mawasm-product-line__option {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #f8d979;
  background: rgba(220, 179, 95, 0.10);
  border: 1px solid rgba(220, 179, 95, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.mawasm-product-line__desc {
  margin: 0;
  color: rgba(255, 245, 218, 0.64);
  font-size: 14px;
  line-height: 1.8;
}

.mawasm-product-line__side {
  min-width: 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.mawasm-product-line__price {
  color: #f8d979;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.mawasm-product-line__tax {
  color: rgba(255, 245, 218, 0.56);
  font-size: 12px;
  font-weight: 700;
}

.mawasm-product-line__btn {
  padding: 11px 18px;
  border-radius: 999px;
  color: #0b0b0b;
  background: linear-gradient(135deg, #fff0bd, #c6953d);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

/* Popup */
.mawasm-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
}

.mawasm-popup.is-active {
  opacity: 1;
  visibility: visible;
}

.mawasm-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
}

.mawasm-popup__box {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(220,179,95,0.20), transparent 36%),
    linear-gradient(135deg, #0a0a0a, #17120a);
  border: 1px solid rgba(220,179,95,0.28);
  box-shadow: 0 34px 100px rgba(0,0,0,0.55);
  transform: translateY(20px) scale(0.96);
  transition: 0.35s ease;
}

.mawasm-popup.is-active .mawasm-popup__box {
  transform: translateY(0) scale(1);
}

.mawasm-popup__close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff3cf;
  background: rgba(255,255,255,0.08);
  font-size: 28px;
  line-height: 1;
}

.mawasm-popup__content {
  padding: 34px;
}

.mawasm-popup__head {
  text-align: center;
  margin-bottom: 22px;
}

.mawasm-popup__label {
  display: inline-flex;
  padding: 8px 16px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: #f6d98b;
  background: rgba(220,179,95,0.10);
  border: 1px solid rgba(220,179,95,0.20);
  font-size: 13px;
  font-weight: 900;
}

.mawasm-popup__head h3 {
  margin: 0;
  color: #fff1c4;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
}

.mawasm-popup__head p {
  margin: 10px 0 0;
  color: rgba(255,245,218,0.66);
  font-size: 15px;
}

.mawasm-popup__products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.mawasm-popup-product {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(220,179,95,0.18);
}

.mawasm-popup-product__image {
  height: 150px;
  overflow: hidden;
}

.mawasm-popup-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mawasm-popup-product__body {
  padding: 13px;
}

.mawasm-popup-product__body h4 {
  margin: 0 0 8px;
  color: #fff3cf;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.mawasm-popup-product__option {
  display: block;
  margin: 0 0 6px;
  color: #f8d979;
  font-size: 12px;
  font-weight: 900;
}

.mawasm-popup-product__body span {
  color: #f8d979;
  font-size: 15px;
  font-weight: 900;
}

.mawasm-popup__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.mawasm-popup__continue,
.mawasm-popup__skip {
  border: 0;
  cursor: pointer;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.mawasm-popup__continue {
  color: #0b0b0b;
  background: linear-gradient(135deg, #fff0bd, #c6953d);
}

.mawasm-popup__skip {
  color: #fff3cf;
  background: rgba(255,255,255,0.08);
}

/* Animation */
@keyframes mawasmGlowMove {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  to {
    transform: translate3d(40px, -30px, 0) rotate(8deg);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .mawasm-showcase {
    padding: 44px 12px;
    border-radius: 24px;
  }

  .mawasm-showcase__container {
    grid-template-columns: 1fr;
  }

  .mawasm-showcase__intro {
    min-height: auto;
    padding: 28px;
  }

  .mawasm-product-line {
    grid-template-columns: 120px 1fr;
  }

  .mawasm-product-line__side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mawasm-popup__products {
    grid-template-columns: 1fr;
  }

  .mawasm-popup-product {
    display: grid;
    grid-template-columns: 110px 1fr;
  }

  .mawasm-popup-product__image {
    height: 110px;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .mawasm-product-line {
    grid-template-columns: 1fr;
  }

  .mawasm-product-line__image {
    height: 220px;
  }

  .mawasm-product-line__side {
    flex-direction: column;
    align-items: stretch;
  }

  .mawasm-product-line__btn {
    text-align: center;
  }

  .mawasm-popup__content {
    padding: 28px 18px;
  }

  .mawasm-popup__actions {
    flex-direction: column;
  }

  .mawasm-popup__continue,
  .mawasm-popup__skip {
    width: 100%;
  }
}











/* ================================
   STAR - Cart Button Variables
================================ */
:root {
  --star-cart-bg: #050505;
  /* #838f91  befroe */
  --star-cart-text: #ffffff;
  --star-cart-border: #050505;

  --star-cart-hover-bg: #c89b45;
  --star-cart-hover-text: #ffffff;
  --star-cart-hover-border: #c89b45;

  --star-cart-radius: 10px;
  --star-cart-icon-size: 18px;
  --star-cart-font-size: 14px;
}

/* ================================
   STAR - Prevent Old Cart Flash
================================ */
custom-salla-product-card salla-add-product-button button,
.s-product-card-entry salla-add-product-button button,
.product-card salla-add-product-button button {
  background: var(--star-cart-bg) !important;
  color: var(--star-cart-text) !important;
  border-color: var(--star-cart-border) !important;
  border-radius: var(--star-cart-radius) !important;
}

/* Hide old icons before JS runs */
custom-salla-product-card salla-add-product-button button i[class*="sicon-"],
.s-product-card-entry salla-add-product-button button i[class*="sicon-"],
.product-card salla-add-product-button button i[class*="sicon-"] {
  display: none !important;
}

/* Hide old text before JS replaces it */
custom-salla-product-card salla-add-product-button button .s-button-text,
.s-product-card-entry salla-add-product-button button .s-button-text,
.product-card salla-add-product-button button .s-button-text {
  font-size: 0 !important;
}

/* Show temporary text immediately before JS runs */
custom-salla-product-card salla-add-product-button button .s-button-text::after,
.s-product-card-entry salla-add-product-button button .s-button-text::after,
.product-card salla-add-product-button button .s-button-text::after {
  content: "اشتري الآن";
  font-size: var(--star-cart-font-size) !important;
  font-weight: 700 !important;
  color: var(--star-cart-text) !important;
  white-space: nowrap !important;
}

/* Remove temporary CSS text after JS runs */
.star-cart-icon-btn .s-button-text::after {
  content: none !important;
}

/* ================================
   STAR - Cart Button Layout
================================ */
.star-cart-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  background: var(--star-cart-bg) !important;
  color: var(--star-cart-text) !important;
  border-color: var(--star-cart-border) !important;
  border-radius: var(--star-cart-radius) !important;
  transition: all 0.25s ease !important;
}

/* ================================
   STAR - Cart Button Label
================================ */
.star-cart-label {
  display: inline-flex !important;
  align-items: center !important;
  font-size: var(--star-cart-font-size) !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* ================================
   STAR - New Cart Icon
================================ */
.star-cart-icon {
  width: var(--star-cart-icon-size) !important;
  height: var(--star-cart-icon-size) !important;
  min-width: var(--star-cart-icon-size) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: currentColor !important;
}

.star-cart-icon svg {
  width: var(--star-cart-icon-size) !important;
  height: var(--star-cart-icon-size) !important;
  display: block !important;
  fill: currentColor !important;
}

/* ================================
   STAR - Hide Old Cart Icons
================================ */
.star-cart-icon-btn .s-button-text i,
.star-cart-icon-btn .s-button-text svg,
.star-cart-icon-btn i[class*="sicon-"],
.star-cart-icon-btn .enhanced-icon {
  display: none !important;
}

/* ================================
   STAR - Keep Button Text Visible
================================ */
.star-cart-icon-btn .s-button-text,
.star-cart-icon-btn .product-card__enhanced-mini-cart__btn--inner,
.star-cart-icon-btn .enhanced-label {
  display: inline-flex !important;
  align-items: center !important;
  font-size: var(--star-cart-font-size) !important;
}

/* ================================
   STAR - Force New Icon Visibility
================================ */
.star-cart-icon-btn .star-cart-icon,
.star-cart-icon-btn .star-cart-icon svg {
  display: inline-flex !important;
}

/* ================================
   STAR - Button Text and Icon Color
================================ */
.star-cart-icon-btn,
.star-cart-icon-btn .s-button-text,
.star-cart-icon-btn .star-cart-label,
.star-cart-icon-btn .star-cart-icon,
.star-cart-icon-btn svg {
  color: var(--star-cart-text) !important;
  fill: var(--star-cart-text) !important;
}

/* ================================
   STAR - Button Hover Effect
================================ */
.star-cart-icon-btn:hover {
  background: var(--star-cart-hover-bg) !important;
  color: var(--star-cart-hover-text) !important;
  border-color: var(--star-cart-hover-border) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

.star-cart-icon-btn:hover .s-button-text,
.star-cart-icon-btn:hover .star-cart-label,
.star-cart-icon-btn:hover .star-cart-icon,
.star-cart-icon-btn:hover svg {
  color: var(--star-cart-hover-text) !important;
  fill: var(--star-cart-hover-text) !important;
}

/* ================================
   STAR - Button Active Click Effect
================================ */
.star-cart-icon-btn:active {
  transform: translateY(0);
  box-shadow: none !important;
}