/* =================================================================== */
/* CATEGORIES PAGE SPECIFIC STYLES                                    */
/* =================================================================== */


.App, .Categories {
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    direction: rtl;
}

.categoriesContent {
  padding: 60px 20px;
  background-color: #f5f5f5;
  margin-top: 20px;
}

.categoriesGrid {
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  max-width: calc(100% - 11vw);
}

/* Column Styles */
.categoriesColumn {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 588px;
  height: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.categoriesColumn.side {
  max-width: 588px;
  width: 33%;
}

.categoriesColumn.center {
  width: 30%;
}

/* Category Card Styles */
.categoryCard {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: block;
}

.categoryCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.categoryCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Height variations for side columns */
.categoryCard.tall {
  height: 632px;
  width: 100%;
  max-width: 588px;
}

.categoryCard.short {
  height: 331px;
}

/* Equal heights for center column */
.categoryCard.medium {
  height: 480px;
}

/* Category Label */
.categoryLabel {
  position: absolute;
  bottom: 0px;
  right: 0px;
  padding: 12px 24px;
  border-radius: 0px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.61);
}

.categoryCard:hover .categoryLabel {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.categoryLabel h3 {
  margin: 0;
  white-space: nowrap;
  color: #2B2A29;
  text-align: right;
  font-family: Heebo;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* Bottom Row Styles */
.categoriesBottomRow {
  margin: 30px auto 0 auto;
  display: flex;
  gap: 30px;
  justify-content: center;
  max-width: calc(100% - 11vw);
}

.categoryCard.bottom {
  width: 50%;
  height: 21vw;
  max-height: 100%;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .categoriesGrid {
    gap: 20px;
  }
  
  .categoryCard.tall {
    height: 340px;
  }
  
  .categoryCard.short {
    height: 240px;
  }
  
  .categoryCard.medium {
    height: 290px;
  }
  
  .categoryCard.bottom {
    height: 280px;
  }
}

@media (max-width: 992px) {
  .categoriesGrid {
    flex-direction: column;
    align-items: center;
  }
  
  .categoriesColumn.side,
  .categoriesColumn.center {
    width: 100%;
    max-width: 600px;
  }
  
  .categoriesColumn {
    flex-direction: row;
    gap: 20px;
  }
  
  .categoryCard {
    flex: 1;
  }
  
  .categoryCard.tall,
  .categoryCard.short,
  .categoryCard.medium {
    height: 300px;
  }
  
  .categoriesBottomRow {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .categoryCard.bottom {
    width: 100%;
    max-width: 400px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .categoriesContent {
    padding: 40px 15px;
  }
  
  .categoriesColumn {
    flex-direction: column;
  }
  
  .categoryCard.tall,
  .categoryCard.short,
  .categoryCard.medium,
  .categoryCard.bottom {
    height: 250px;
  }
  
  .categoryLabel {
    bottom: 15px;
    right: 15px;
    padding: 10px 20px;
  }
  
  .categoryLabel h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .categoryCard.tall,
  .categoryCard.short,
  .categoryCard.medium,
  .categoryCard.bottom {
    height: 200px;
  }
  
  .categoryLabel h3 {
    font-size: 14px;
  }
}