@import url('./main.css');

/* Catalog Header */
.catalog-header {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.breadcrumb a {
  color: var(--text-muted);
}
.catalog-title {
  font-weight: 800;
  font-size: 32px;
  margin: 0;
  letter-spacing: -1px;
}

/* Filters Sidebar */
.filter-section {
  margin-bottom: 30px;
}
.filter-title {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-list {
  list-style: none;
  padding: 0;
}
.filter-list li {
  margin-bottom: 8px;
}
.filter-list label {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.filter-list input {
  margin-right: 10px;
  accent-color: var(--primary);
}
.filter-list label:hover {
  color: var(--primary);
}

.category-tree {
    list-style: none;
    padding-left: 0;
}

.category-tree .cat-link {
    display: block;
    padding: 5px 0;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}
.category-tree .cat-link:hover, 
.category-tree .cat-link.active {
    color: #2ecc71; /* Brand color */
    font-weight: 600;
}

.child-list {
    list-style: none;
    padding-left: 20px; /* Indent children */
    border-left: 1px solid #eee;
    margin-bottom: 10px;
}

.child-list li {
    font-size: 0.9em;
}

/* Toolbar */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}
.results-count {
  font-size: 14px;
  color: var(--text-muted);
}
.sort-select {
  border: none;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* Product Cards */
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 30px;
  transition: all 0.3s;
  border: 1px solid transparent;
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  border-color: #eee;
}
.product-visual {
  background: #fcfcfc;
  height: 200px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.product-visual img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.product-meta h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 5px 0;
  height: 34px;
  overflow: hidden;
  line-height: 1.3;
}
.product-brand {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-price {
  font-weight: 800;
  font-size: 16px;
  margin-top: 10px;
}
.btn-cart {
  background: var(--dark-bg);
  color: #fff;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn-cart:hover {
  background: var(--primary);
  color: #fff;
}

/* Responsive Mobile Grid (2 Columns) */
@media (max-width: 767px) {
  .mobile-grid-2 {
    width: 50% !important;
    float: left;
    padding: 0 7px;
  }
  .product-visual {
    height: 140px;
  }
  .product-meta h4 {
    font-size: 12px;
    height: 32px;
  }
  .sidebar {
    display: none;
  } /* Hidden on mobile by default, usually a drawer */
  .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
