/* Fuel One Product Recommendations — Slider Layout */

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

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

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

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

.fuelone-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;
}

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

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

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

/* ── Arrow buttons ── */
.fuelone-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;
}

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

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

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

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

  /* merged duplicate */
  padding: 12px;
  gap: 16px;
}

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

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

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

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

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

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

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

/* Text */
.fuelone-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;
}

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

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

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

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

.fuelone-product-discount {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  color: #646464;
  line-height: 20px;
}

/* Button */
.fuelone-product-btn {
  display: block;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border-radius: 40px;
  padding: 12px 24px;
  text-decoration: none !important;
  background: #FF5C23;
  color: #FFEFE9 !important;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.fuelone-product-btn:hover {
  text-decoration: none !important;
}

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

  .fuelone-product-card {
    flex: 0 0 240px;
    width: 240px;
  }
}

@media (max-width: 767px) {
  .fuelone-product-card {
    flex: 0 0 240px;
    width: 240px;

  }

  .fuelone-product-rec-title {
    font-size: 24px;
    margin: 0 0 16px;
  }

  .fuelone-arrow {
    display: none;
  }
}

/* Additional product attributes */
.fuelone-product-img-wrap {
  position: relative;
}

.fuelone-product-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-block;
  padding: 5px 9px;
  border-radius: 4px;
  background: #fff0e6;
  color: #e66a00;
  font-size: 12px;
  font-weight: 600;
}

.fuelone-veg-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid #009b55;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.fuelone-veg-mark i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: #009b55;
}

.fuelone-product-rating {
  align-self: flex-start;
  margin-top: -8px;
  padding: 2px 4px;
  border-radius: 5px;
  background: #EEE;
  color: #444;
  font-size: 12px;
  line-height: 18px;
}

.fuelone-product-rating strong {
  font-weight: 600;
}

.fuelone-product-rating span {
  color: #888;
}

.fuelone-product-coupon {
  color: #039855;
  font-size: 14px;
  font-weight: 600;
}

/* Hide navigation completely when all product cards fit. */
.fuelone-arrow[hidden] { display: none !important; }
