/* Add custom CSS styles below */ 
/* =========================
   NAJD COVERS BUTTON STYLE
   ========================= */

/* زر إضافة للسلة */
.s-button-btn,
.s-button-element,
button[type="submit"] {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* زر اشتري الآن (mini checkout) */
.s-fast-checkout-button,
.s-add-product-button-mini-checkout button {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* النص داخل الزر */
.s-button-text {
    color: #000000 !important;
}

/* Hover Effect */
.s-button-btn:hover,
.s-button-element:hover,
button[type="submit"]:hover,
.s-fast-checkout-button:hover,
.s-add-product-button-mini-checkout button:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

/* إزالة أي ألوان افتراضية */
.s-button-primary,
.s-button-primary-outline {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

/* عند الضغط */
.s-button-btn:active,
.s-fast-checkout-button:active {
    transform: scale(0.97);
}

/* =========================
   NAJD COVERS BUTTON STYLE
   ========================= */

/* إضافة للسلة */
.s-button-btn,
.s-button-element,
button[type="submit"] {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600;
}

/* النص */
.s-button-text {
    color: #000000 !important;
}

/* Hover */
.s-button-btn:hover,
button[type="submit"]:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

/* =========================
   NAJD COVERS BUTTON STYLE
   ========================= */

/* الزر الأساسي */
.s-button-element.s-button-primary {
    background-color: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #000000 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* النص داخل الزر */
.s-button-element.s-button-primary * {
    color: #000000 !important;
    fill: #000000 !important;
}

/* عند مرور الماوس */
.s-button-element.s-button-primary:hover {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

/* النص عند الهوفر */
.s-button-element.s-button-primary:hover * {
    color: #ffffff !important;
    fill: #ffffff !important;
}


/* =========================
   BUY NOW BUTTON - NAJD STYLE
   ========================= */

/* الزر */
.s-add-product-button-mini-checkout-content {
    background-color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px !important;
    min-height: 45px !important;
    transition: all 0.3s ease !important;
}

/* النص */
.s-add-product-button-mini-checkout-content span {
    color: #000000 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    visibility: visible !important;
}

/* إخفاء الأيقونة */
.s-add-product-button-mini-checkout-content svg {
    display: none !important; 
}

/* عند الهوفر */
.s-add-product-button-mini-checkout-content:hover {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
}

/* النص عند الهوفر */
.s-add-product-button-mini-checkout-content:hover span {
    color: #ffffff !important;
}

.zoom-banner img {
    animation: smoothZoom 14s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
}

@keyframes smoothZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.07); }
    100% { transform: scale(1); }
}


.zoom-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.15),
        rgba(255,255,255,0.3),
        rgba(255,255,255,0.15),
        transparent
    );
    transform: skewX(-25deg);
    animation: shineMove 7s ease-in-out infinite;
}


/* =========================================
   NAJD COVERS - DESKTOP PRODUCT CARD ICONS
   ========================================= */

@media (min-width: 768px) {

  /* الحاوية العامة للأزرار */
  .product-card__buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin-top: 12px !important;
  }

  /* كل زر داخل الكرت */
  .product-card__buttons > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: auto !important;
  }

  /* إلغاء النصوص التوضيحية فوق الأزرار */
  .product-card__buttons > div::before,
  .product-card__buttons > div::after {
    display: none !important;
    content: none !important;
  }

  /* توحيد شكل أزرار الأيقونات */
  .product-card__buttons .wishlist button,
  .product-card__buttons .quickview-btn button,
  .product-card__buttons .btn--wishlist,
  .product-card__buttons .s-button-element[shape="icon"],
  .product-card__buttons .s-button-element.s-button-icon,
  .product-card__buttons .s-button-wrap[shape="icon"] .s-button-element {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
  }

  /* الأيقونات نفسها */
  .product-card__buttons .wishlist button i,
  .product-card__buttons .quickview-btn button i,
  .product-card__buttons .btn--wishlist i,
  .product-card__buttons .s-button-element[shape="icon"] i,
  .product-card__buttons .s-button-element.s-button-icon i,
  .product-card__buttons .wishlist button svg,
  .product-card__buttons .quickview-btn button svg,
  .product-card__buttons .btn--wishlist svg,
  .product-card__buttons .s-button-element[shape="icon"] svg,
  .product-card__buttons .s-button-element.s-button-icon svg {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  /* إزالة أي span نصي داخل أزرار الأيقونات */
  .product-card__buttons .wishlist button .s-button-text,
  .product-card__buttons .quickview-btn button .s-button-text,
  .product-card__buttons .btn--wishlist .s-button-text,
  .product-card__buttons .s-button-element[shape="icon"] .s-button-text,
  .product-card__buttons .s-button-element.s-button-icon .s-button-text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  /* زر السلة داخل الكرت */
  .product-card__buttons .addToCart,
  .product-card__buttons .addToCart .w-full,
  .product-card__buttons salla-add-product-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .product-card__buttons .addToCart button,
  .product-card__buttons salla-add-product-button button,
  .product-card__buttons .addToCart .s-button-element {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #000000 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
  }

  .product-card__buttons .addToCart button i,
  .product-card__buttons salla-add-product-button button i,
  .product-card__buttons .addToCart .s-button-element i,
  .product-card__buttons .addToCart button svg,
  .product-card__buttons salla-add-product-button button svg,
  .product-card__buttons .addToCart .s-button-element svg {
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }

  .product-card__buttons .addToCart button .s-button-text,
  .product-card__buttons salla-add-product-button button .s-button-text,
  .product-card__buttons .addToCart .s-button-element .s-button-text {
    color: #000000 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  /* الهوفر */
  .product-card__buttons .wishlist button:hover,
  .product-card__buttons .quickview-btn button:hover,
  .product-card__buttons .btn--wishlist:hover,
  .product-card__buttons .s-button-element[shape="icon"]:hover,
  .product-card__buttons .s-button-element.s-button-icon:hover,
  .product-card__buttons .addToCart button:hover,
  .product-card__buttons salla-add-product-button button:hover,
  .product-card__buttons .addToCart .s-button-element:hover {
    background: transparent !important;
    border-color: #ffffff !important;
  }

  .product-card__buttons .wishlist button:hover i,
  .product-card__buttons .quickview-btn button:hover i,
  .product-card__buttons .btn--wishlist:hover i,
  .product-card__buttons .s-button-element[shape="icon"]:hover i,
  .product-card__buttons .s-button-element.s-button-icon:hover i,
  .product-card__buttons .wishlist button:hover svg,
  .product-card__buttons .quickview-btn button:hover svg,
  .product-card__buttons .btn--wishlist:hover svg,
  .product-card__buttons .s-button-element[shape="icon"]:hover svg,
  .product-card__buttons .s-button-element.s-button-icon:hover svg,
  .product-card__buttons .addToCart button:hover i,
  .product-card__buttons salla-add-product-button button:hover i,
  .product-card__buttons .addToCart .s-button-element:hover i,
  .product-card__buttons .addToCart button:hover svg,
  .product-card__buttons salla-add-product-button button:hover svg,
  .product-card__buttons .addToCart .s-button-element:hover svg,
  .product-card__buttons .addToCart button:hover .s-button-text,
  .product-card__buttons salla-add-product-button button:hover .s-button-text,
  .product-card__buttons .addToCart .s-button-element:hover .s-button-text {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
  }
}

@media (min-width: 768px) {
  .wishlist,
  .quickview-btn,
  .addToCart {
    min-height: 54px !important;
  }

  .wishlist .s-button-wrap,
  .quickview-btn .s-button-wrap,
  .addToCart .s-button-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* =========================================
   FIX ADD TO CART BUTTON - DESKTOP ONLY
   ========================================= */

@media (min-width: 768px) {

  /* زر إضافة للسلة: لا تعامله كزر أيقونة */
  .product-card__buttons .addToCart,
  .product-card__buttons .addToCart .w-full,
  .product-card__buttons .addToCart salla-add-product-button,
  .product-card__buttons .addToCart .s-button-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: auto !important;
  }

  .product-card__buttons .addToCart button,
  .product-card__buttons .addToCart .s-button-element {
    width: auto !important;
    min-width: 150px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #000000 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  /* النص داخل زر السلة */
  .product-card__buttons .addToCart .s-button-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    white-space: nowrap !important;
  }

  /* أيقونة السلة */
  .product-card__buttons .addToCart .s-button-text i,
  .product-card__buttons .addToCart .s-button-text svg,
  .product-card__buttons .addToCart button i,
  .product-card__buttons .addToCart button svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
  }

  /* الهوفر */
  .product-card__buttons .addToCart button:hover,
  .product-card__buttons .addToCart .s-button-element:hover {
    background: transparent !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
  }

  .product-card__buttons .addToCart button:hover .s-button-text,
  .product-card__buttons .addToCart .s-button-element:hover .s-button-text,
  .product-card__buttons .addToCart button:hover i,
  .product-card__buttons .addToCart button:hover svg,
  .product-card__buttons .addToCart .s-button-element:hover i,
  .product-card__buttons .addToCart .s-button-element:hover svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
  }
}

@media (min-width: 768px) {
  .product-card__buttons .addToCart button,
  .product-card__buttons .addToCart .s-button-element {
    min-width: 150px !important;
    width: auto !important;
    background: #fff !important;
    border: 2px solid #fff !important;
    color: #000 !important;
  }

  .product-card__buttons .addToCart .s-button-text,
  .product-card__buttons .addToCart i,
  .product-card__buttons .addToCart svg {
    color: #000 !important;
    fill: #000 !important;
    stroke: #000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
  }
}