/* COLLECTION GRID CSS - RESPONSIVE */
#collectionContainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 0px;
  box-sizing: border-box;
}

.cgrid-block {
  margin-bottom: 8px;
}

.cgrid-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  border-left: 4px solid #000;
  padding-left: 8px;
  display: flex;
  align-items: center;
}

.cgrid-tag-shopee {
  background: #EE4D2D;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-block;
  text-transform: uppercase;
}

/* Group title - màu đen, bỏ viền cam */
.cgrid-group-title {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cgrid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  justify-content: start;
}

@media (min-width: 600px) {
  .cgrid-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 900px) {
  .cgrid-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .cgrid-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
}

.cgrid-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cgrid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Khung ảnh - giữ tỷ lệ vuông, ảnh hiển thị toàn bộ không bị cắt */
.cgrid-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cgrid-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.cgrid-card:hover .cgrid-thumb img {
  transform: scale(1.02);
}

.cgrid-name {
  font-size: 14px;
  font-weight: 600;
  margin: 10px 8px 4px;
  text-align: center;
  line-height: 1.3;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-height: 36px;
}

.cgrid-price-wrap {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  margin: 4px 8px 12px;
  flex-wrap: wrap;
}

.cgrid-price {
  font-size: 15px;
  font-weight: 700;
  color: #d32f2f;
}

.cgrid-original {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.cgrid-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 24px 0 16px;
}
