/* ============================================
   CATEGORY PRODUCTS
   ============================================ */

/* ---------- Category First Card ---------- */
.category-first-card {
  aspect-ratio: 2/3;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}

.category-first-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.02) 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.category-first-card:hover .category-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.category-card-link {
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  position: relative;
  z-index: 2;
  gap: 0.5rem;
}

.category-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.category-card-title {
  font-size: 1.35rem;
  font-weight: var(--fw-bold, 700);
  margin: 0;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.category-card-description {
  font-size: var(--fs-xs, 0.8rem);
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card-cta {
  font-size: var(--fs-xs, 0.8rem);
  font-weight: var(--fw-semibold, 600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.category-first-card:hover .category-card-cta {
  color: #fff;
  transform: translateX(4px);
}

[dir="rtl"] .category-first-card:hover .category-card-cta {
  transform: translateX(-4px);
}

/* ---------- Responsive Grid ---------- */
.responsive-product-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols-desktop, 4), 1fr);
  gap: var(--spacing-md, 1rem);
  width: 100%;
}

@media (max-width: 1024px) {
  .responsive-product-grid {
    grid-template-columns: repeat(var(--grid-cols-tablet, 3), 1fr);
  }
}

@media (max-width: 768px) {
  .responsive-product-grid {
    grid-template-columns: repeat(var(--grid-cols-mobile, 2), 1fr);
  }
}

/* ---------- View All Button ---------- */

.view-all-wrapper {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-xl, 2rem);
  width: 100%;
}

.view-all-btn {
  cursor: pointer;
}

