@media (max-width: 768px) {
  /* Make the banner wrapper a positioning context */
  .banner-wrapper {
    position: relative;
  }

  /* Move the content box to the bottom on mobile */
  .py-6.md\:py-0.w-full.px-4.md\:px-16 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 2;
    margin-top: auto;
    margin-bottom: 0;
  }

  /* Center the inner container and its content */
  .py-6.md\:py-0.w-full.px-4.md\:px-16 .theme-container {
    margin-inline: auto;
    align-items: center !important;
    text-align: center !important;
  }

  /* Center the text block and the button row */
  .py-6.md\:py-0.w-full.px-4.md\:px-16 .theme-container > div {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  /* Center the headings and paragraph text */
  .py-6.md\:py-0.w-full.px-4.md\:px-16 h2,
  .py-6.md\:py-0.w-full.px-4.md\:px-16 p {
    text-align: center;
    width: 100%;
  }

  /* Center the "Shop Now" button horizontally */
  .py-6.md\:py-0.w-full.px-4.md\:px-16 .flex.gap-4 {
    justify-content: center;
    width: 100%;
  }

  /* تصغير صور قسم الأقسام في الصفحة الرئيسية */
.embla__slide .group.flex.flex-col.gap-4 > .overflow-hidden.rounded {
  max-width: 180px;
  margin-left: auto;
  margin-right: auto;
}

.embla__slide .group.flex.flex-col.gap-4 > .overflow-hidden.rounded img {
  width: 180px;
  height: 225px;
  object-fit: cover;
}

.embla__slide a.group.flex.flex-col.gap-4 {
  max-width: 140px;
}

.embla__slide a.group.flex.flex-col.gap-4 .overflow-hidden.rounded {
  max-width: 180px;
}

.embla__slide a.group.flex.flex-col.gap-4 img {
  width: 180px;
  height: 225px;
  object-fit: cover;
}

.embla__slide a.group.flex.flex-col.gap-4 h3 {
  text-align: center;
  font-size: 1rem;
}

[section-id="1e19c622-b5cb-4d9b-a6f8-b20de06e6cc0"] .embla__slide {
  flex: 0 0 155px !important;
}

footer#footer {
    text-align: center;
}

footer#footer * {
    justify-content: center;
}

footer img.block.md\:hidden {
    margin: auto;
}
}

@media (min-width: 768px) {
[section-id="1e19c622-b5cb-4d9b-a6f8-b20de06e6cc0"] .embla {
    --slide-size: 355px;
}
}

button[data-open-quick-view="true"] {
  font-size: 0; /* يخفي النص الأصلي */
}

button[data-open-quick-view="true"]::after {
  content: "أضف للسلة";
  font-size: 1rem; /* يعيد حجم الخط للنص الجديد */
  display: inline-block;
}

ul.mt-4.space-y-2 li.flex.items-center:nth-child(2) {
    display: none;
}

/* Prevent the cart row overflow on mobile */
@media (max-width: 1023px) {
  .cart-product-item .qty-input.qty-input-full {
    width: 65% !important;       /* don't force 100% on mobile */
    flex: 0 1 auto;    /* allow shrinking */
    min-width: 0;
  }

  /* Make sure the wrapper itself can shrink */
  .cart-product-item .flex.items-center.justify-between.gap-4 {
    min-width: 0;
    flex-wrap: wrap;   /* optional: wrap if still tight */
    gap: 0.5rem;
  }
}