/* ===== Page Title ===== */
.page-title {
  font-size: 28px;
  font-weight: 800;
  margin: 30px 0;
}

/* ===== Grid ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
}

/* ===== Card ===== */
.category-card {
  position: relative;
  background: #ffe1ec;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
  width: 259px;
  height: 287px;
}

// .category-card:hover {
//   transform: translateY(-5px);
//   height: 449px;
// }

/* ===== Image ===== */
.category-image {
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.category-title {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  z-index: 2;
  text-align: center;
}

/* Overlay خفيف */
.category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card .category-image::after {
  opacity: 1;
}

/* ===== Category List (Hidden by default) ===== */
.category-list {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  background: #ffe1ec;
  padding: 15px 18px;

  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;

  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
}

/* ===== Show on Hover ===== */
.category-card .category-list {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== List Items ===== */
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 17px;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: color 0.2s ease;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover {
  color: var(--primary-color);
}

.category-item i {
  font-size: 18px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 425px) {
  .category-card {
    height: 219px !important;
  }
}
