/* ========================================== */
/* CATEGORIES SECTION - Coverflow Effect */
/* ========================================== */

.categories-section {
  padding: 60px 0 100px;
  background-color: #f4f6f9;
}

.category-block {
  max-width: 1400px;
  margin: 0 auto 90px;
  padding: 0 20px;
  position: relative;
}

.category-block:last-child {
  margin-bottom: 0;
}

/* ========== HEADER ========== */
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 10px;
}

.category-title {
  font-size: 32px;
  font-weight: 900;
  color: #1a1a1a;
  position: relative;
  padding-right: 20px;
}

.category-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 32px;
  background: #d64e52;
  border-radius: 4px;
}

.category-more-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #555;
  text-decoration: none;
  background: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.category-more-btn:hover {
  color: #d64e52;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.category-more-btn i {
  font-size: 14px;
  transition: transform 0.3s;
}

.category-more-btn:hover i {
  transform: translateX(-4px);
}

/* ========== SWIPER CONTAINER ========== */
.category-flat-swiper {
  width: 100%;
  padding: 60px 0 80px !important;
  overflow: visible;
  direction: ltr;
}

.category-flat-swiper .swiper-wrapper {
  display: flex;
  align-items: center;
}

/* ========== SWIPER SLIDE ========== */
.category-flat-swiper .swiper-slide {
  width: 300px;
  height: auto;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

/* ========== PRODUCT CARD - شيلنا overflow: hidden ========== */
.product-3d-card {
  width: 100%;
  height: 420px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
  direction: rtl;
  /* شيلنا overflow: hidden عشان الزرار ما يتقصش */
}

/* ========== CARD IMAGE ========== */
.card-image {
  height: 240px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* ========== CARD CONTENT ========== */
.card-content {
  padding: 10px 20px 30px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* ========== CALL BUTTON - أخضر واضح ========== */
.card-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  padding: 16px 44px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.5);
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s;
  z-index: 20;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-btn:hover {
  transform: translateX(-50%) translateY(-5px) scale(1.1);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.6);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.card-btn i {
  font-size: 16px;
  transition: transform 0.3s;
}

.card-btn:hover i {
  transform: translateX(-4px);
}

/* ========== PAGINATION ========== */
.swiper-pagination {
  bottom: 0 !important;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e0;
  opacity: 1;
  transition: all 0.3s;
}

.swiper-pagination-bullet-active {
  background: #2c3e50;
  width: 24px;
  border-radius: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .category-flat-swiper .swiper-slide {
    width: 260px;
  }
  
  .product-3d-card {
    height: 380px;
  }
  
  .category-title {
    font-size: 24px;
  }
  
  .card-image {
    height: 200px;
  }
  
  .card-btn {
    padding: 14px 36px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .category-flat-swiper .swiper-slide {
    width: 240px;
  }
  
  .card-btn {
    padding: 12px 32px;
    font-size: 15px;
  }
}
