/* Add custom CSS styles below */ 
/* ===== iMooie product card style ===== */

/* Brand color for button */
:root {
    --imooie-primary: #7b2bd9; /* change if you have another brand color */
}

/* Card container */
.products-grid .product,
salla-product-card,
.product-card,
.custom-salla-product-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border: none;
}

/* Image area */
.products-grid .product .product-image,
.products-grid .product .product-img,
.products-grid .product .image,
.products-grid .product .product-thumbnail,
salla-product-card .product-image,
salla-product-card .product-img,
salla-product-card .image,
salla-product-card .product-thumbnail,
.product-card .product-image,
.product-card .product-img,
.custom-salla-product-card .product-image,
.custom-salla-product-card .product-img {
    padding: 24px 26px 10px;
    margin: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product image itself */
.products-grid .product img,
salla-product-card img,
.product-card img,
.custom-salla-product-card img {
    max-height: 190px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Content area (title, rating, price) */
.products-grid .product .product-info,
.products-grid .product .details,
salla-product-card .product-info,
.product-card .product-info,
.custom-salla-product-card .product-info {
    padding: 6px 22px 16px;
    text-align: center;
}

/* Title */
.products-grid .product .product-title,
.products-grid .product .title,
salla-product-card .product-title,
.product-card .product-title,
.custom-salla-product-card .product-title {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    margin: 4px 0 6px;
    line-height: 1.5;
}

/* Rating */
.products-grid .product .rating,
salla-product-card .rating,
.product-card .rating,
.custom-salla-product-card .rating {
    margin: 4px auto 8px;
    font-size: 12px;
    color: #f7a800;
}

/* Price container */
.products-grid .product .price,
salla-product-card .price,
.product-card .price,
.custom-salla-product-card .price {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

/* Current price */
.products-grid .product .price .current,
.products-grid .product .price ins,
salla-product-card .price .current,
.salla-product-card .price ins,
.product-card .price .current,
.custom-salla-product-card .price .current {
    color: var(--imooie-primary);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

/* Old price */
.products-grid .product .price .old,
.products-grid .product .price del,
salla-product-card .price .old,
.salla-product-card .price del,
.product-card .price .old,
.custom-salla-product-card .price .old {
    color: #a0a0a0;
    font-size: 13px;
}

/* Add to cart button */
.products-grid .product .btn,
.products-grid .product .add-to-cart-btn,
.products-grid .product .btn-primary,
salla-product-card .btn,
.product-card .btn,
.custom-salla-product-card .btn {
    display: block;
    width: 100%;
    border-radius: 0 0 22px 22px;
    background: var(--imooie-primary);
    color: #ffffff;
    text-align: center;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Remove inner button spacing if wrapped */
.products-grid .product .product-actions,
salla-product-card .product-actions,
.product-card .product-actions,
.custom-salla-product-card .product-actions {
    margin: 0;
}

/* Hover state */
.products-grid .product:hover,
salla-product-card:hover,
.product-card:hover,
.custom-salla-product-card:hover {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

.products-grid .product .btn:hover,
.products-grid .product .add-to-cart-btn:hover,
.products-grid .product .btn-primary:hover,
salla-product-card .btn:hover,
.product-card .btn:hover,
.custom-salla-product-card .btn:hover {
    background: #5e20a9;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

/* Wishlist and badges keep on top */
.products-grid .product .wishlist,
.products-grid .product .badge,
salla-product-card .wishlist,
.salla-product-card .badge,
.product-card .wishlist,
.product-card .badge,
.custom-salla-product-card .wishlist,
.custom-salla-product-card .badge {
    z-index: 3;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .products-grid .product,
    salla-product-card,
    .product-card,
    .custom-salla-product-card {
        border-radius: 18px;
    }

    .products-grid .product .product-image,
    .products-grid .product .product-img,
    salla-product-card .product-image,
    .product-card .product-image,
    .custom-salla-product-card .product-image {
        padding: 18px 18px 8px;
    }

    .products-grid .product .product-title,
    salla-product-card .product-title,
    .product-card .product-title,
    .custom-salla-product-card .product-title {
        font-size: 14px;
    }

    .products-grid .product .price .current,
    salla-product-card .price .current,
    .product-card .price .current,
    .custom-salla-product-card .price .current {
        font-size: 17px;
    }

    .products-grid .product .btn,
    .products-grid .product .add-to-cart-btn,
    .products-grid .product .btn-primary,
    salla-product-card .btn,
    .product-card .btn,
    .custom-salla-product-card .btn {
        font-size: 14px;
        padding: 10px 14px;
    }--imooie-primary: #7b2bd9;

}
/* center timer like a banner */
.imooie-timer-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px auto 30px auto;
  max-width: 1200px;
}

/* card style similar to product cards */
.imooie-timer-box {
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e3d3a0; /* gold-ish like product border */
  box-shadow: 0 10px 35px rgba(0,0,0,0.10);
  padding: 16px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* headings */
.imooie-timer-title {
  font-size: 18px;
  font-weight: 800;
  color: #7b2bd9;  /* iMooie purple */
}

.imooie-timer-sub {
  font-size: 13px;
  opacity: 0.8;
}

/* countdown row */
.imooie-countdown {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

/* each time block like mini watch */
.imooie-unit {
  flex: 0 0 100px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e3d3a0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
  padding: 6px 4px 8px;
}

/* number */
.imooie-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #7b2bd9;
}

/* label */
.imooie-label {
  display: block;
  font-size: 11px;
  opacity: 0.85;
}

/* mobile tweaks */
@media (max-width: 768px) {
  .imooie-timer-wrapper {
    padding: 0 10px;
    margin: 16px auto 22px auto;
  }

  .imooie-timer-box {
    padding: 12px 12px 14px;
    border-radius: 18px;
  }

  .imooie-countdown {
    gap: 8px;
    flex-wrap: wrap;
  }

  .imooie-unit {
    flex: 1 1 70px;
    border-radius: 14px;
  }

  .imooie-num {
    font-size: 17px;
  }

  .imooie-label {
    font-size: 10px;
  }
}
.imooie-timer-box {
    box-shadow: none !important;
}

.product-card [class*="badge"],
.product-card [class*="label"],
.product-card [class*="tag"],
.product [class*="badge"],
.product [class*="label"],
.product [class*="tag"],
.s-product-card [class*="badge"],
.s-product-card [class*="label"],
.s-product-card [class*="tag"],
.s-block--products [class*="badge"],
.s-block--products [class*="label"],
.s-block--products [class*="tag"] {

    background-color: #a31919 !important;  /* لون أحمر أنيق */
    color: #fff !important;

    padding: 6px 18px !important;
    border-radius: 40px !important;  /* يجعلها بيضاوية */
    font-size: 14px !important;
    font-weight: 700 !important;

    position: absolute !important;
    top: 12px !important;
    right: 12px !important;

    z-index: 50 !important;
    line-height: 1 !important;

    display: inline-block !important;
}

/* في حال كان الليبول داخل div أو span آخر */
.product-card .product-label,
.product .product-label,
.s-product-card .product-label {
    border-radius: 40px !important;
}
/* 1. خلي صورة المنتج في نص الكارت بالظبط */
.s-block--products .product,
.s-block--products .product-card {
    text-align: center !important;
}

.s-block--products .product img,
.s-block--products .product-card img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* لو فيه ديف حاضن الصورة نخليه سنتر برضه */
.s-block--products .product .product-media,
.s-block--products .product-card .product-media,
.s-block--products .product .product-image,
.s-block--products .product-card .product-image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
/* ===== وسطنة قسم المنتجات على الديسكتوب فقط ===== */
@media (min-width: 992px) {

    /* وسطنة بلوك المنتجات بالكامل */
    .s-block--products {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    /* ضبط عرض المحتوى ليكون مقيد في المنتصف */
    .s-block--products .container,
    .s-block--products .s-container,
    .s-block--products .products-grid {
        max-width: 1200px !important; /* يمكنك تغييرها إذا أردت */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* جعل عناصر المنتجات نفسها في المنتصف */
    .s-block--products .products-grid {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
    }

}


}