article.productContainer {
  width: 100%;
  margin: 20px auto;
  column-count: 4;
  column-gap: 20px;
  display: block;
}

/* Ensure cards don't split across columns */
.productItemContainer {
  break-inside: avoid; /*TO AVOID CARDS FROM BREAKING INTO HALF*/
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  margin: 10px 0 0;
  padding-bottom: 20px;
  border: 1px solid var(--color);
  border-radius: var(--radius);
}

/* Update your Media Queries */
@media (max-width: 1400px) {
  article.productContainer {
    column-count: 3;
  }
}
@media (max-width: 1000px) {
  article.productContainer {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  article.productContainer {
    column-count: 1;
  }
}
.productItemContaine:hover {
  opacity: 0.8;
}
article.productContainer a {
  text-decoration: none;
}
.productItemContainer h2,
.productItemContainer p {
  margin: 0 6px;
}
.productItemContainer h2 a:hover {
  text-decoration: underline;
}
a.buyBtn {
  color: #000000;
  background: #f98508;
  margin: 20px;
  min-width: 90%;
  display: block;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  bottom: 0;
}
a.buyBtn::after {
  content: "↗";
  opacity: 0;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 4px;
  transition:
    opacity 0.5s ease,
    margin 0.5s ease;
}
a.buyBtn:hover:after {
  opacity: 1;
  margin-left: 10px;
}
a.buyBtn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.productItemContainer img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
}
.imgContainer {
  border-radius: var(--radius);
  position: relative;
  width: 100%;
  overflow: hidden;
}
.imgContainer .textOverlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  font-weight: 700;
  bottom: 0;
  text-align: end;
  padding-left: 12px;
  color: #ffffff;
  margin: 0;
  opacity: 0;
  z-index: 5;
  background-color: #00000060;
  width: 100%;
  height: 100%;
  transition: all 0.5s ease;
}
.imgContainer p:hover {
  opacity: 1;
}

.productDetails {
  cursor: pointer;
  margin: 4px 20px 12px;
  background: var(--main-bg);
  border-radius: var(--radius);
  border-bottom: 2px solid;
  border-top: 1px solid;
}
.productDetails summary {
  font-size: 1.1rem;
  transition: background-color 0.5s ease;
}
.productDetails summary:hover {
  background-color: var(--bg);
}

.shopNotice {
  background: rgba(255, 157, 0, 0.08);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 157, 0, 0.18);
}
.shopNotice p {
  margin: 6px 0;
  line-height: 1.5;
}
.shopNotice a {
  font-weight: 600;
  text-decoration: underline;
}
.affiliateLabel {
  font-size: 0.8rem;
  background-color: var(--bg);
  position: absolute;
  top: 0;
  left: 0;
}

#filter option {
  background: var(--main-bg);
}
.tt-filter {
  display: flex;
  align-items: center;
  border: 1px solid #f98508;
  width: fit-content;
  padding: 5px 14px;
  margin-top: 4px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}

.tt-filter-icon {
  width: 20px;
  height: 20px;
  fill: var(--link-color); /* TryTasty accent */
}

.tt-filter select {
  background: var(--input-textarea-bg);
  color: var(--color);
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

/* Hover + focus */
.tt-filter:hover {
  border-color: #ff6a00;
}

.tt-filter select:focus {
  background: var(--bg);
}

.hide {
  display: none;
}
