/* Add custom CSS styles below */ 
/* خيارات سريعة: show the photo as it is, fitted inside the tile, with the name under it */
.s-block--main-links .link-tiles .category-tile {
  background-color: #fff !important;   /* replaces the tile colour */
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid #eee;
  aspect-ratio: auto;
}

.s-block--main-links .link-tiles .category-tile__image {
  position: static !important;
  mix-blend-mode: normal !important;   /* removes the darkening */
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;                 /* square image area */
  object-fit: contain !important;      /* whole image, no cropping */
  margin: 0 !important;
  background: #fff;
}

.s-block--main-links .link-tiles .category-tile__label {
  position: static;
  width: 100%;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #222 !important;
  padding: 10px 8px;
  min-height: 0;
  font-weight: 600;
  text-align: center;
}

/* no zoom on hover, so the fitted image doesn't overflow */
.s-block--main-links .link-tiles .category-tile:hover .category-tile__image {
  transform: none !important;
}
/* اختر مجموعتك / Choose your set */
.cys { border: 2px solid #e5e7eb; border-radius: 10px; background: #fff; color: #222; padding: 16px !important; margin: 16px 0; }
.cys.is-error { border-color: #ef4444; }
.cys__group + .cys__group { border-top: 1px solid #eee; margin-top: 16px; padding-top: 16px; }
.cys__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cys__title { font-size: 16px; font-weight: 700; margin: 0; }
.cys__hint, .cys__msg { font-size: 14px; color: #6b7280; margin: 4px 0 0; }
.cys__count { flex: none; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; background: #eef5f5; color: #287b79; }
.cys__group.is-full .cys__count { background: #287b79; color: #fff; }
.cys__list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 360px; overflow-y: auto; }
.cys__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.cys__row:last-child { border-bottom: 0; }
.cys__img { width: 56px; height: 56px; flex: none; object-fit: contain; border-radius: 6px; background: #fff; }
.cys__name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.cys__row.is-picked .cys__name { font-weight: 700; }
.cys__step { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.cys__btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #287b79; background: #fff; color: #287b79; font-size: 20px; line-height: 1; cursor: pointer; }
.cys__btn:disabled { border-color: #e5e7eb; color: #cbd5e1; cursor: not-allowed; }
.cys__n { width: 28px; text-align: center; }
.cys__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 14px; }
.cys__status { margin: 0; color: #4b5563; }
.cys.is-error .cys__status { color: #dc2626; font-weight: 700; }
.cys.is-done .cys__status { color: #287b79; font-weight: 700; }
.cys__link { border: 0; background: none; padding: 0; color: #287b79; text-decoration: underline; cursor: pointer; }
/* Buy-now would skip the choices. */
.cys-form salla-mini-checkout-widget, .cys-form salla-quick-buy { display: none !important; }
/* Loqma on phones: always show the add-to-cart bar. */
@media (max-width: 640px) {
  .is-sticky-product-bar .sticky-product-bar,
  .is-sticky-product-bar .sticky-product-bar__quantity,
  .is-sticky-product-bar .sticky-product-bar salla-add-product-button { transform: none !important; opacity: 1 !important; }
}