/* Add custom CSS styles below */

/* Hide the guest-wishlist app's extra heart in the header (the theme already has a wishlist link) */
.palace-header-user [data-external-guest-wishlist-btn] { display: none !important; }

/* Only one floating WhatsApp button when the WhatsApp app adds its own */
body:has(.wa-s-n) .whatsappWrapper { display: none !important; }

/* Footer: show the menu links in two columns under "روابط مهمة" */
@media (min-width: 768px) {
  [data-palace-footer-column="0"] { flex: 2 1 0% !important; max-width: none !important; }
  [data-palace-footer-column="0"] .footer-list { column-count: 2; column-gap: 40px; }
  [data-palace-footer-column="0"] .footer-list li { break-inside: avoid; }
}
[data-palace-footer-column="0"] .widget-title { font-size: 0 !important; }
[data-palace-footer-column="0"] .widget-title::before { content: "روابط مهمة"; font-size: 20px; }
/* Product sliders (e.g. similar products on the product page): equal-height cards,
   titles clamped to 2 lines, price and add-to-cart button aligned at the bottom */
salla-products-slider .swiper-wrapper { align-items: stretch !important; }
salla-products-slider .swiper-slide { height: auto !important; display: flex !important; }
salla-products-slider custom-salla-product-card { display: flex !important; width: 100%; }
salla-products-slider custom-salla-product-card .product-cart-wrap { display: flex !important; flex-direction: column; width: 100%; height: 100%; margin-bottom: 0; }
salla-products-slider custom-salla-product-card .product-content-wrap { flex: 1 1 auto; display: flex !important; flex-direction: column; }
salla-products-slider custom-salla-product-card .product-content-wrap h2 { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
salla-products-slider custom-salla-product-card .product-card-bottom { margin-top: auto !important; }
/* Product slider cards: discount badge, tags, sale price and struck-through original price */
salla-products-slider custom-salla-product-card .product-badges span { display: inline-block; font-size: 12px; line-height: 1; border-radius: 15px 0 20px; color: #fff; padding: 9px 20px 10px; }
salla-products-slider custom-salla-product-card .product-badges span.best { background-color: #f59758; }
salla-products-slider custom-salla-product-card .product-tags span { width: fit-content; background: var(--main-color); color: #fff; padding: 1px 5px; border-radius: 5px; font-size: 12px; }
salla-products-slider custom-salla-product-card .product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
salla-products-slider custom-salla-product-card .product-price > span:not(.old-price) { color: rgb(222, 53, 11); font-weight: 700; }
salla-products-slider custom-salla-product-card .product-price span.old-price { font-size: 14px; color: #adadad; text-decoration: line-through; font-weight: 400; }