/* Bawani — product page: description beside images */
@media (min-width: 1024px) {
  .container--product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  .container--product-details > .s-block:first-child {
    position: sticky;
    top: 6rem;
    min-width: 0;
  }
  .container--product-details > .product-form { min-width: 0; }
  .product-form .main-content > .grid { display: block !important; }
  .product-form .main-content-data { width: 100%; }
  .product-form .main-content > .grid > div:last-child {
    position: static !important;
    width: 100%;
    margin-top: 1.5rem;
  }
}

/* image frame follows image size, no grey box */
.details-slider > .s-slider-container { background: #fff !important; height: auto !important; margin: 0 auto; }
.details-slider > .s-slider-container > .swiper-wrapper { height: auto !important; align-items: center; }
.details-slider > .s-slider-container > .swiper-wrapper > .swiper-slide { height: auto !important; background: #fff; }
.details-slider > .s-slider-container > .swiper-wrapper > .swiper-slide:not(.swiper-slide-active) { opacity: 0; pointer-events: none; }
.details-slider > .s-slider-container img.object-contain {
  max-height: 520px;
  height: auto !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

/* description clamp + read more (works with the JS snippet) */
.product__description.bw-clamped { max-height: 400px; overflow: hidden; position: relative; }
.product__description.bw-clamped::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.bw-readmore-btn {
  display: block;
  margin: 8px auto 16px;
  background: none;
  border: none;
  color: #0f3d2e;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

/* options section ("تخصيص المنتج") open by default — JS adds the .active class */
.accordion.details-accordion.active + .panel { grid-template-rows: 1fr !important; }

/* Apple Pay button — full width, matches cart button shape */
salla-quick-buy { width: 100% !important; }
apple-pay-button.s-quick-buy-apple-pay {
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 40px;
  --apple-pay-button-border-radius: 15px;
  width: 100% !important;
  margin-top: 10px;
}