/* MuscleBlaze Product Recommendations — Slider Layout */

.mb-product-recommendations {
  background-color: #F4F5F9;
  margin-top: 24px;
  width: 100%;
  padding: 24px 16px;
  font-family: inherit;
}

.mb-product-rec-inner {
  max-width: 1140px;
  padding: 0 16px;
}

.mb-product-rec-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  font-style: normal;
  line-height: normal;
  margin: 0 0 20px;
}

/* ── Slider wrapper ── */
.mb-slider-outer {
  position: relative;
}

.mb-product-rec-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.mb-product-rec-grid::-webkit-scrollbar {
  display: none;
}

/* Loading / error states */
.mb-product-loading,
.mb-product-error {
  flex: 0 0 100%;
  text-align: center;
  padding: 48px;
  color: #aaa;
  font-size: 14px;
}

.mb-product-error {
  background: #fff3f3;
  color: #c0392b;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  padding: 16px 20px;
}

/* ── Arrow buttons ── */
.mb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s, box-shadow 0.15s;
  padding: 0;
}

.mb-arrow:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.mb-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #333;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mb-arrow-prev { left: -18px; }
.mb-arrow-next { right: -18px; }
.mb-arrow[disabled] { opacity: 0.35; pointer-events: none; }

/* ── Product Card ── */
.mb-product-card {
  flex: 0 0 calc(50% - 8px);
  min-width: 0;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  padding: 16px;
  gap: 16px;
}

.mb-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* Image */
.mb-product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
}

/* Rating badge */
.mb-product-rating-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
}

.mb-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f0f0f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.mb-star-icon {
  width: 12px;
  height: 12px;
  fill: #f5a623;
}

.mb-product-reviews {
  font-weight: 400;
  color: #8B8B8B;
}

/* Coupon line */
.mb-product-coupon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1a7f37;
  margin: -8px 0 0;
}

.mb-coupon-icon {
  width: 14px;
  height: 14px;
  fill: #1a7f37;
  flex-shrink: 0;
}

.mb-product-img-wrap img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Info */
.mb-product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.mb-product-info-top {
  display: flex;
  flex-direction: column;
}

.mb-product-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mb-product-info-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

/* Text */
.mb-product-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 24px;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mb-product-variant {
  font-size: 14px;
  color: #646464;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 0;
}

/* Price row */
.mb-product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mb-product-price {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  line-height: 28px;
}

.mb-product-mrp {
  font-size: 14px;
  color: #8B8B8B;
  font-weight: 500;
  font-style: normal;
  line-height: 20px;
  text-decoration: line-through;
}

.mb-product-discount {
  font-size: 14px;
  font-weight: 500;
  color: #646464;
}

/* Button */
.mb-product-btn {
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  border-radius: 40px;
  padding: 10px 16px;
  text-decoration: none !important;
  background: #272B60;
  color: #fff !important;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mb-product-btn:hover {
  background: #333 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ── Responsive ── */
@media (min-width: 1024px) {
  .mb-product-recommendations {
    margin-top: 60px;
    padding: 60px 0;
  }

  .mb-product-card {
    flex: 0 0 calc(20% - 10px);
  }
}

@media (max-width: 767px) {
  .mb-product-card {
    flex: 0 0 calc(63% - 8px);
  }

  .mb-product-rec-title {
    font-size: 24px !important;
    margin: 0 0 16px;
    line-height: normal;
  }

  .mb-arrow {
    display: none;
  }
}
