/* ===== Wrapper ===== */
.tcp-wrapper {
  margin: 40px 0;
}

/* ===== Tabs ===== */
.tcp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.tcp-tab-btn {
  padding: 10px 18px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
  font-weight: 500;
}

.tcp-tab-btn.active,
.tcp-tab-btn:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* ===== Grid ===== */
.tcp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ===== Product Card ===== */
.tcp-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tcp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* ===== Same Size Image ===== */
.tcp-card img {
  width: 100%;
  height: 200px;        /* SAME HEIGHT for all */
  object-fit: contain;  /* show full product */
  background: #f7f7f7;
  padding: 10px;
}

/* ===== Content ===== */
.tcp-card a {
  text-decoration: none;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===== Title alignment ===== */
.tcp-card h4 {
  font-size: 15px;
  color: #222;
  margin: 8px 0;
  line-height: 1.4;
  min-height: 40px;     /* keeps cards equal */
  text-align: center;
}

/* ===== Price ===== */
.tcp-card .price {
  font-weight: 600;
  color: #e60023;
  text-align: center;
  margin-top: auto;
}

/* ===== Loading text ===== */
.tcp-loading {
  text-align: center;
  padding: 40px;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .tcp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tcp-card img {
    height: 160px;
  }
}
