/* ============================================
   Slider 2: عرض المنتجات ثلاثي الأبعاد (3D Coverflow)
   Vanilla CSS - قابل لإعادة الاستخدام
   ============================================ */

.cf-slider {
  position: relative;
  width: 100%;
  padding: 10px 0 56px;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.cf-stage {
  position: relative;
  height: 230px;
  perspective: 1100px;
}

.cf-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 148px;
  height: 100%;
  margin-left: -74px;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.5s ease, filter 0.5s ease;
  cursor: pointer;
  transform-style: preserve-3d;
}

.cf-card-inner {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
}

.cf-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f9fafb;
  margin-bottom: 8px;
}

.cf-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cf-name {
  font-size: 12px;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Cairo', sans-serif;
}

.cf-price {
  font-size: 14px;
  font-weight: 900;
  color: #dc2626;
  text-align: center;
  margin-top: 4px;
  font-family: 'Cairo', sans-serif;
}

.cf-nav {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.cf-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  font-size: 18px;
  font-weight: 900;
  color: #dc2626;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.cf-arrow:active {
  transform: scale(0.9);
}

@media (max-width: 380px) {
  .cf-card { width: 128px; margin-left: -64px; }
}
