/* --------------------------------------------------------------------------
   Category Hero Banner (Image Background with Centered Title & Breadcrumbs)
   -------------------------------------------------------------------------- */
.category-banner-section {
  background-color: var(--primary-purple);
  background-image: url('../assets/image/category-banner.png'); /* fallback image path */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 28px 0 28px 0;
  color: #f8f9fa;
  position: relative;
  text-align: center;
}
.category-banner-title {
  color: #f8f9fa;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.category-banner-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
}
.category-banner-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.category-banner-breadcrumb .breadcrumb-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.category-banner-breadcrumb .breadcrumb-item.active {
  color: #ffffff;
  font-weight: 500;
}
.category-banner-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  line-height: 1;
  vertical-align: -1px;
  padding-left: 10px;
  padding-right: 10px;
}

/* --------------------------------------------------------------------------
   1. Listing Main Layout
   -------------------------------------------------------------------------- */
.listing-catalog-section {
  padding-top: 36px;
  padding-bottom: 60px;
  background-color: #f8f9fa;
}
/* --------------------------------------------------------------------------
   2. Left Sidebar (Browse by & Categories Tree)
   -------------------------------------------------------------------------- */
.sidebar-browse-wrapper {
  padding-right: 12px;
}
.sidebar-main-title {
  color: var(--primary-purple);
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.sidebar-section-divider {
  height: 1.5px;
  background-color: #d6cbdd;
  border: none;
  margin-bottom: 16px;
  opacity: 1;
}
.sidebar-all-products-link {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-purple);
  margin-bottom: 32px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.sidebar-all-products-link:hover {
  color: var(--brand-orange);
}
.sidebar-categories-title {
  color: var(--primary-purple);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
/* Category Navigation List */
.sidebar-category-tree {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.category-tree-item {
  position: relative;
}
.category-tree-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #2b1f33;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.category-tree-link:hover {
  color: var(--primary-purple);
  background-color: #fbf7fd;
}
.category-tree-link .tree-icon {
  color: var(--primary-purple);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 8px;
  flex-shrink: 0;
}
/* Active / Expanded Category (e.g., Cardboard Boxes) */
.category-tree-item.active-category > .category-tree-link,
.category-tree-item.highlighted-category > .category-tree-link {
  background-color: #f6f0f8;
  color: var(--primary-purple);
  font-weight: 700;
  padding: 9px 10px;
}
/* Subcategories Menu */
.tree-submenu {
  list-style: none;
  padding: 8px 12px 10px 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #fbf8fc;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}
.submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: #4a3e52;
  text-decoration: none;
  transition: color 0.2s ease;
}
.submenu-link:hover,
.submenu-link.active {
  color: var(--primary-purple);
  font-weight: 600;
}
.submenu-link .tree-icon {
  font-size: 0.9rem;
  font-weight: 600;
}
/* --------------------------------------------------------------------------
   3. Catalog Header Top Bar (Count & Sort By)
   -------------------------------------------------------------------------- */
.catalog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 8px;
}
.catalog-product-count {
  color: var(--brand-orange);
  font-size: 1.05rem;
  font-weight: 600;
}
.catalog-sort-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-orange);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.catalog-sort-dropdown select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--brand-orange);
  font-size: 1.02rem;
  font-weight: 600;
  padding-right: 20px;
  cursor: pointer;
  outline: none;
}
.catalog-sort-dropdown svg {
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-orange);
}
/* Mobile Filter Trigger */
.btn-mobile-sidebar-toggle {
  display: none;
  background-color: var(--primary-purple);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
/* --------------------------------------------------------------------------
   4. Exact Product Card (4-Col Grid, Corner Plus Button, Title & Price)
   -------------------------------------------------------------------------- */
.catalog-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.catalog-product-card:hover {
  transform: translateY(-4px);
}
/* Product Image Box */
.catalog-product-img-box {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.catalog-product-card:hover .catalog-product-img-box {
  border-color: #f8f9fa;
  box-shadow: 0 4px 14px rgba(82, 6, 104, 0.08);
}
.catalog-product-img-box img {
  max-width: 90%;
  max-height: 180px;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.catalog-product-card:hover .catalog-product-img-box img {
  transform: scale(1.04);
}
/* Plus Button (bottom-right of image) */
.product-card-plus-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background-color: var(--primary-purple);
  color: #ffffff;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 5;
}

/* .product-card-plus-btn {
  background-color: var(--brand-orange);
} */
.product-card-plus-btn:hover {
  background-color: var(--brand-orange-hover);
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Product Info Area */
.catalog-product-info {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.catalog-product-title {
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.38;
  color: #2b1f33;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.catalog-product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.catalog-product-title a:hover {
  color: var(--brand-orange);
}
.catalog-product-price {
  color: var(--primary-purple);
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: auto;
}
/* --------------------------------------------------------------------------
   5. Center "Load more" Pill Button
   -------------------------------------------------------------------------- */
.catalog-load-more-wrap {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 20px;
}
.btn-load-more {
  display: inline-block;
  background-color: #ffffff;
  color: var(--brand-orange) !important;
  border: 1.5px solid var(--brand-orange);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 54px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-load-more:hover {
  background-color: var(--brand-orange);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(224, 106, 38, 0.25);
  transform: translateY(-2px);
}
/* --------------------------------------------------------------------------
   6. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .btn-mobile-sidebar-toggle {
    display: inline-flex;
  }
  .sidebar-browse-wrapper {
    padding-right: 0;
  }
  .catalog-product-img-box {
    height: 190px;
  }
}
@media (max-width: 575.98px) {
  .catalog-top-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .catalog-product-img-box {
    height: 160px;
  }
  .btn-load-more {
    width: 100%;
    padding: 12px 24px;
  }
}