/* Brand Affiliate CSS – used for brand.php and other CamoMatrix pages */

.ba-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.ba-heading {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  font-weight: 600;
  text-align: center;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.ba-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.ba-card:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.12);
}

.ba-card img {
  width: 100%;
  height: auto;
  display: block;
}

.ba-card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ba-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ba-price {
  font-size: 0.95rem;
  color: #333;
  margin-top: auto;
}

.ba-price .sale {
  color: #c62828;
  font-weight: 700;
  margin-right: 6px;
}

.ba-viewmore {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f9f9f9;
  border: 2px dashed #ccc;
  color: #555;
  font-weight: 500;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.ba-viewmore:hover {
  background: #efefef;
}

@media (max-width: 600px) {
  .ba-heading {
    font-size: 1.3rem;
  }
  .ba-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .ba-card-content {
    padding: 10px;
  }
  .ba-title {
    font-size: 0.95rem;
  }
  .ba-price {
    font-size: 0.9rem;
  }
}
