/* ========================================== */
/* CATEGORIES SECTION - Coverflow Effect */
/* ========================================== */
* {
  font-family: "Amazon Ember", Arial, sans-serif;

}

.categories-section {
  padding: 60px 0 100px;
  background-color: #f4f6f9;
}

.featured-products-section {
  background-color: #ffffff;
  padding: 40px 0 80px;
}

.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: 34px;
  font-weight: 900;
  color: #1a1a1a;
  position: relative;
  padding-inline-end: 20px;
  margin: 0;
}

.category-title::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 32px;
  background: #b42f4c;
  border-radius: 4px;
}

/* لون مميز لقسم المنتجات المميزة */
.featured-products-section .category-title::before {
  background: #fbbf24;
}

.category-more-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #b42f4c;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(180, 47, 76, 0.25);
}

.category-more-btn:hover {
  background: #8d2439;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(180, 47, 76, 0.35);
}

.featured-products-section .category-more-btn {
  background: #fbbf24;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.featured-products-section .category-more-btn:hover {
  background: #f59e0b;
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.35);
}

/* ========================================== */
/* SWIPER CONTAINER */
/* ========================================== */

.category-flat-swiper {
  width: 100%;
  padding: 40px 0 70px !important;
  overflow: hidden;
}

.category-flat-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

/* ========================================== */
/* SWIPER SLIDE */
/* ========================================== */

.category-flat-swiper .swiper-slide {
  width: 300px;
  height: auto;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* ========================================== */
/* PRODUCT CARD - نفس التنسيق */
/* ========================================== */

.product-3d-card {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.product-3d-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ========================================== */
/* PRODUCT BADGES */
/* ========================================== */

.product-badges {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sale {
  background: #b42f4c;
  color: #fff;
}

.badge-new {
  background: #15803d;
  color: #fff;
}

.badge-hot {
  background: #ea580c;
  color: #fff;
}

/* ========================================== */
/* CARD IMAGE */
/* ========================================== */

.card-image {
  position: relative;
  width: 100%;
  height: 320px;
  background: #f9f9f9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-3d-card:hover .card-image img {
  transform: scale(1.08);
}

/* ========================================== */
/* OVERLAY & BUTTON */
/* ========================================== */

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.product-3d-card:hover .product-overlay {
  opacity: 1;
  visibility: visible;
}

.quick-view-btn {
  padding: 12px 24px;
  background: #fff;
  color: #b42f4c;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.quick-view-btn:hover {
  background: #b42f4c;
  color: #fff;
}

/* ========================================== */
/* CARD CONTENT */
/* ========================================== */

.card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-category {
  font-size: 12px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card-title a {
  color: inherit;
  transition: color 0.3s ease;
  text-decoration: none;
}

.card-title a:hover {
  color: #b42f4c;
}

.card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================== */
/* CARD FOOTER */
/* ========================================== */

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.card-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-price {
  font-size: 20px;
  font-weight: 900;
  color: #b42f4c;
}

.old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.view-details-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f9f9f9;
  color: #b42f4c;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.view-details-btn:hover {
  background: #b42f4c;
  color: #fff;
}

.view-details-btn i {
  font-size: 11px;
}

/* ========================================== */
/* CALL BUTTON (البديل) - إذا كنت تفضل الزر الأخضر */
/* ========================================== */

.card-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.card-btn i {
  font-size: 14px;
  transition: transform 0.3s;
}

.card-btn:hover i {
  transform: translateX(-3px);
}

[dir="ltr"] .card-btn:hover i {
  transform: translateX(3px);
}

/* ========================================== */
/* PAGINATION */
/* ========================================== */

.swiper-pagination {
  bottom: 10px !important;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e0;
  opacity: 1;
  transition: all 0.3s;
}

.swiper-pagination-bullet-active {
  background: #b42f4c;
  width: 24px;
  border-radius: 5px;
}

/* ========================================== */
/* RESPONSIVE - الموبايل والتابلت */
/* ========================================== */

@media (max-width: 992px) {
  .categories-section {
    padding: 40px 0 60px;
  }

  .featured-products-section {
    padding: 30px 0 60px;
  }

  .category-block {
    margin-bottom: 60px;
  }

  .category-flat-swiper .swiper-slide {
    width: 280px;
  }

  .card-image {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .category-header {
    margin-bottom: 16px;
  }

  .category-title {
    font-size: 26px;
  }

  .category-title::before {
    height: 26px;
    width: 5px;
  }

  .category-more-btn {
    font-size: 14px;
    padding: 8px 22px;
  }

  .category-flat-swiper {
    padding: 30px 0 60px !important;
  }

  .category-flat-swiper .swiper-slide {
    width: 260px;
  }

  .card-image {
    height: 260px;
  }

  .card-content {
    padding: 16px;
  }

  .card-title {
    font-size: 14px;
  }

  .card-desc {
    font-size: 12px;
  }

  .current-price {
    font-size: 18px;
  }

  .view-details-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .card-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .category-title {
    font-size: 22px;
  }

  .category-title::before {
    height: 22px;
  }

  .category-flat-swiper .swiper-slide {
    width: 240px;
  }

  .card-image {
    height: 240px;
  }

  .card-content {
    padding: 14px;
  }

  .card-title {
    font-size: 13px;
  }

  .card-desc {
    font-size: 11px;
  }

  .current-price {
    font-size: 16px;
  }

  .old-price {
    font-size: 12px;
  }

  .card-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}