/* ====== Container Layout ====== */
.cba-container {
  display: flex;
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ====== Filter Sidebar ====== */
.cba-filter {
  width: 25%;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-height: 80vh;
  overflow-y: auto;
}

.cba-filter h3 {
  margin: 0 0 15px;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  font-family: "Rift", Sans-serif;
}

.cba-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #f9f9f9;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 18px;
  font-family: "Rift", Sans-serif;
}

.cba-filter label:hover {
  background: #eef5ff;
}

.cba-filter input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

.cba-brand-item.hidden {
  display: none;
}

#cba-load-more {
  display: block;
  width: 160px;
  margin: 20px auto 0;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 600;
  border: none;
  background-color: #ff6600;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  font-family: "Rift", Sans-serif;
}

#cba-load-more:hover {
  background-color: #d8671b;
}

#cba-load-more-products {
  display: block;
  margin: 20px auto;
  padding: 8px 20px;
  background: #ff6600;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  border-radius: 4px;
  font-family: "Rift", Sans-serif;
}
#cba-load-more-products:hover {
  background: #d8671b;
}
																																												
/* ====== Main Content ====== */
.cba-main {
  width: 75%;
}

.cba-archive-header {
  background: #fff;
  padding: 20px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  margin-bottom: 20px;
}

.cba-archive-header h1 {
  margin: 0 0 15px;
  font-weight: 700;
  color: #000000;
}

#cba-archive-title {
    font-family: "ss greyhood seven", Sans-serif !important;
}

.cba-archive-header #cba-archive-description {
  font-family: "Rift", Sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #201e21;
}

/* ====== Product Grid ====== */
#cba-product-list ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}
#cba-product-list ul.products::before {
  content: none !important;
  display: none !important;
}

/* Product Card Override */
#cba-product-list ul.products li.product {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100% !important;
  box-sizing: border-box;
  margin-bottom: 10px;
}

#cba-product-list ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

#cba-product-list ul.products li.product .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* ensure images fill card and keep aspect ratio; use object-fit to control cropping */
#cba-product-list ul.products li.product img {
    width: 100% !important;
    height: 300px !important; /* Equal height for all product images */
    object-fit: cover; /* Fill the box and crop if needed */
    display: block;
}

#cba-product-list ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 32px;
  font-weight: 600;
  color: #222;
  padding: 12px;
  font-family: "Rift", Sans-serif;
}

#cba-product-list ul.products li.product .price {
  padding: 0 12px 12px;
  font-size: 24px;
  font-weight: 500;
  color: #242424;
  font-family: "Rift", Sans-serif;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .cba-container {
    flex-direction: column;
  }
  .cba-filter, .cba-main {
    width: 100%;
  }
  #cba-product-list ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #cba-product-list ul.products {
    grid-template-columns: 1fr;
  }
   #cba-product-list ul.products li.product img {
        height: 220px !important;
    }
}