@media (max-width: 767px) {
  .soku-mobile-thumbs,
  .soku-mobile-thumbs > .swiper-wrapper {
    height: auto !important;
    max-height: none !important;
  }

  .soku-mobile-thumbs > .swiper-wrapper {
    align-items: flex-start !important;
  }

  .soku-mobile-thumbs .slide--one-fifth {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .soku-mobile-thumbs .slide--one-fifth > img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
}



/* Product Wishlist - Hide */
button.btn--wishlist.s-button-link {
  display: none !important;
}

/* Product Sharing Section - Hide */
ul.product-metadata:has(salla-social-share) {
  display: none !important;
}




/* Product Sticky Cart - Mobile Layout */
@media (max-width: 767px) {
  .addtocart-bar {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) 76px !important;
    align-items: center !important;
    gap: 8px !important;
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
  }

  /* Quantity - Right */
  .addtocart-bar > .center-between {
    grid-column: 1;
    grid-row: 1;
    width: 84px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .addtocart-bar salla-quantity-input {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .addtocart-bar .s-quantity-input-container {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    width: 100% !important;
    height: 48px !important;
    min-width: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    box-sizing: border-box;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    background: #fff;
  }

  .addtocart-bar .s-quantity-input-button,
  .addtocart-bar .s-quantity-input-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
    color: #222 !important;
    box-sizing: border-box;
  }

  .addtocart-bar .s-quantity-input-button svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Add to Cart - Center */
  .addtocart-bar > salla-add-product-button,
  .addtocart-bar .s-add-product-button-main {
    display: contents !important;
  }

  .addtocart-bar .s-add-product-button-main > salla-button {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    min-width: 0 !important;
  }

  .addtocart-bar .s-add-product-button-main > salla-button > button {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap;
  }

  .addtocart-bar [product-status="sale"]
  .s-add-product-button-main > salla-button > button {
    background: #176fc1 !important;
    border-color: #176fc1 !important;
    color: #fff !important;
  }

  /* Add to Cart - Visible Label and Price */
  .addtocart-bar [product-status="sale"]
  .s-add-product-button-main > salla-button > button:not(:disabled)
  .s-button-text {
    display: block !important;
    font-size: 0 !important;
    color: inherit !important;
  }

  .addtocart-bar [product-status="sale"]
  .s-add-product-button-main > salla-button > button:not(:disabled)
  .s-button-text > * {
    display: none !important;
  }

  .addtocart-bar [product-status="sale"]
  .s-add-product-button-main > salla-button > button:not(:disabled)
  .s-button-text::before {
    content: "أضف للسلة";
    font-size: 13px;
  }

  .addtocart-bar [product-status="sale"]
  .s-add-product-button-main > salla-button > button:not(:disabled)
  .s-button-text[data-soku-price]::after {
    content: " · " attr(data-soku-price);
    font-size: 12px;
  }

  /* Apple Pay / Quick Checkout - Left */
  .addtocart-bar salla-quick-buy,
  .addtocart-bar salla-mini-checkout-widget {
    grid-column: 3;
    grid-row: 1;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;

    --salla-fast-checkout-button-height: 48px;
    --salla-fast-checkout-button-width: 100%;
    --salla-fast-checkout-button-border-radius: 8px;

    --apple-pay-button-width: 100%;
    --apple-pay-button-height: 48px;
    --apple-pay-button-border-radius: 8px;
  }

  .addtocart-bar .s-add-product-button-with-apple-pay
  salla-mini-checkout-widget {
    display: none !important;
  }

  .addtocart-bar .s-add-product-button-mini-checkout-content {
    font-size: 12px !important;
    white-space: nowrap;
  }

  .addtocart-bar .s-add-product-button-mini-checkout-content > span {
    display: none !important;
  }
}

/* Small Phones - Price Below Button Label */
@media (max-width: 359px) {
  .addtocart-bar [product-status="sale"]
  .s-add-product-button-main > salla-button > button:not(:disabled)
  .s-button-text[data-soku-price]::after {
    display: block;
    margin-top: 3px;
    content: attr(data-soku-price);
  }
}
/* Product Sticky Cart - Button Color */
@media (max-width: 767px) {
  .addtocart-bar [product-status="sale"]
  .s-add-product-button-main > salla-button > button {
    background: #9DCAAF !important;
    border-color: #9DCAAF !important;
    color: #163D29 !important;
  }

  /* Product Quantity - Persistent Plus and Minus */
  .addtocart-bar .s-quantity-input-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
    color: #26352D !important;
    font-size: 0 !important;
  }

  .addtocart-bar .s-quantity-input-button > span,
  .addtocart-bar .s-quantity-input-button > svg {
    display: none !important;
  }

  .addtocart-bar .s-quantity-input-button::before {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 21px !important;
    font-weight: 500;
    line-height: 1;
    color: inherit;
  }

  .addtocart-bar .s-quantity-input-increase-button::before {
    content: "+";
  }

  .addtocart-bar .s-quantity-input-decrease-button::before {
    content: "−";
  }

  .addtocart-bar .s-quantity-input-button:disabled {
    opacity: 0.35 !important;
  }

  /* Product Apple Pay - Show Existing Button */
  .addtocart-bar salla-quick-buy {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0 !important;
  }

  .addtocart-bar salla-quick-buy apple-pay-button {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    --apple-pay-button-width: 100%;
    --apple-pay-button-height: 48px;
    --apple-pay-button-border-radius: 8px;
  }

  /* Product Quick Checkout - Restore When Apple Pay Element Is Missing */
  .addtocart-bar
  .s-add-product-button-with-apple-pay:not(:has(salla-quick-buy))
  salla-mini-checkout-widget {
    display: block !important;
  }
}
/* Product Sticky Cart - Payment Methods */
.addtocart-bar > .soku-cart-payments {
  display: none !important;
}

@media (max-width: 767px) {
  .addtocart-bar {
    height: auto !important;
  }

  .addtocart-bar > .soku-cart-payments {
    grid-column: 1 / -1;
    grid-row: 2;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    width: 100% !important;
    min-width: 0;
    margin: 2px 0 0 !important;
    padding: 7px 0 0 !important;

    list-style: none;
    border-top: 1px solid #E8EEE9;
    box-sizing: border-box;
    direction: rtl;
  }

  .addtocart-bar > .soku-cart-payments > li {
    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 44px;
    height: 32px !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
  }

  .addtocart-bar > .soku-cart-payments > li > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
}
/* Product Payment Methods - Compact Row */
@media (max-width: 767px) {
  .addtocart-bar > .soku-cart-payments {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    gap: 3px !important;
  }

  .addtocart-bar > .soku-cart-payments > li {
    flex: 0 1 36px !important;
    max-width: 36px !important;
    height: 26px !important;
  }

  /* Product Payment Methods - Hide Bank Transfer */
  .addtocart-bar > .soku-cart-payments > li:has(img[alt="bank"]) {
    display: none !important;
  }
}