﻿/* ===== Category Page ΓÇö Hero Banner + Products ===== */

.cat-page {
  padding-bottom: 70px;
}

/* ---------- Hero Banner ---------- */
.cat-hero {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f0f2f5;
}

.cat-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
}

.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
}

.cat-hero-content {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 16px;
  z-index: 2;
}

.cat-hero-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* ---------- Chips (mobile filters) ---------- */
.cat-chips {
  padding: 0 10px;
}

.cat-chip-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 8px;
  border: 1px solid #ede8e3;
  border-radius: 12px;
  background: #fff;
  color: #2d2a26;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 70px;
}
.cat-chip-btn img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}
.cat-chip-btn:hover {
  border-color: #6D28D9;
  background: #f5f3ff;
}
.cat-chip-btn.active {
  border-color: #6D28D9;
  background: #6D28D9;
  color: #fff;
}
.cat-chip-btn.active img {
  box-shadow: 0 0 0 2px #fff;
}
.cat-chip-btn span {
  line-height: 1.2;
  text-align: center;
}

/* Sidebar categories */
.sidebar-cat-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2d2a26;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition: all 0.15s;
}
.sidebar-cat-btn:hover {
  background: #f5f3ff;
  color: #6D28D9;
}
.sidebar-cat-btn.active {
  background: #6D28D9;
  color: #fff;
}

/* ---------- Products layout (reuse products.css) ---------- */
.cat-page .products-layout {
  padding: 0 10px;
}

.cat-page .products-main .noon-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

@media (min-width: 540px) {
  .cat-page .products-main .noon-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 768px) {
  .cat-hero {
    height: 220px;
    border-radius: 0;
  }

  .cat-hero-content {
    bottom: 24px;
    right: 32px;
  }

  .cat-hero-title {
    font-size: 2rem;
  }

  .cat-page .products-layout {
    padding: 0 16px;
  }

  .cat-page .products-main .noon-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
  }
}

@media (min-width: 1200px) {
  .cat-hero {
    height: 280px;
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 0;
  }

  .cat-hero-content {
    bottom: 32px;
    right: 48px;
  }

  .cat-hero-title {
    font-size: 2.4rem;
  }

  .cat-page .products-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .cat-page .products-main .noon-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
  }
}

