.luvare-categories-page {
  padding-block: 8px 48px;
}

.luvare-categories-page__header {
  margin-bottom: 28px;
}

.luvare-categories-page__title {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 700;
  color: #0f0f0f;
}

.luvare-categories-page__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #454545;
}

.luvare-categories-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.luvare-categories-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.luvare-categories-card:hover {
  border-color: #d8d8d8;
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.08);
}

.luvare-categories-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
  background: #f4f4f4;
}

.luvare-categories-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.luvare-categories-card__media:hover .luvare-categories-card__image {
  transform: scale(1.04);
}

.luvare-categories-card__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0) 35%, rgba(15, 15, 15, 0.72) 100%);
  pointer-events: none;
}

.luvare-categories-card__media-content {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.luvare-categories-card__name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.luvare-categories-card__arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.rtl .luvare-categories-card__arrow svg {
  transform: rotate(180deg);
}

.luvare-categories-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 20px;
}

.luvare-categories-card__group + .luvare-categories-card__group {
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.luvare-categories-card__sub {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f0f0f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.luvare-categories-card__sub:hover {
  color: #1b8f4e;
  text-decoration: none;
}

.luvare-categories-card__children {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.luvare-categories-card__children a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.4;
  color: #454545;
  text-decoration: none;
  transition: color 0.2s ease;
}

.luvare-categories-card__children a:hover {
  color: #1b8f4e;
}

.luvare-categories-page__empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed #d8d8d8;
  border-radius: 16px;
  color: #454545;
  font-size: 16px;
}

@media (max-width: 991px) {
  .luvare-categories-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .luvare-categories-page {
    padding-block: 0 32px;
  }

  .luvare-categories-page__header {
    margin-bottom: 20px;
  }

  .luvare-categories-page__title {
    font-size: 22px;
  }

  .luvare-categories-page__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .luvare-categories-card__name {
    font-size: 18px;
  }

  .luvare-categories-card__body {
    padding: 14px 16px 18px;
  }
}
