/* Clean, minimal grid layout for ZCWF results */
.zcwf-results {
  box-sizing: border-box;
  width: 100%;
}

/* Grid */
.post-grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Card - FIXED 300px WIDTH */
.post-item {
  background: #fff;
  width: 300px;
  max-width: 300px;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: 1px solid #e5e7eb;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* SQUARE Thumbnail - Fixed 300x300 */
.post-image {
  width: 300px;
  height: 300px;
  overflow: hidden;
  background: #f5f5f5;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-item:hover .post-image img {
  transform: scale(1.05);
}

/* Content */
.post-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Title */
.post-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #00356B;
}

.post-title a {
  color: #00356B;
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
}

/* Product Tags - Grid Filter Tags STYLING */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  min-height: 0;
}

.product-tags:not(:empty) {
  margin-bottom: 10px;
}

.product-tag {
  display: inline-block;
  padding: 1px 4px;
  background: #F0F8FF;
  color: #003262;
  font-size: 8px;
  font-weight: 400;
  border-radius: 2px;
  line-height: 1.2;
  border: 1px solid #003262;
  pointer-events: none;
  cursor: default;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.01);
}

/* Product Price */
.product-price {
  font-size: 11px;
  font-weight: 300;
  font-style: italic;
  color: #00356B;
  margin-bottom: 6px;
  line-height: 1.2;
}

.product-price .amount {
  color: #00356B;
  font-weight: 300;
  font-style: italic;
}

.product-price ins {
  text-decoration: none;
  background: transparent;
}

.product-price del {
  color: #999;
  font-weight: 200;
  margin-right: 3px;
  font-size: 10px;
  font-style: italic;
}

/* Description */
.post-description {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 12px;
  margin-top: 0;
  line-height: 1.5;
  flex: 1;
}

/* View Product Button */
.view-product-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  background: #00356B;
  color: #fff;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  box-sizing: border-box;
  margin-top: auto;
}

.view-product-btn:hover {
  background: #005450;
  color: #fff;
}

/* No results */
.zcwf-no-results {
  text-align: center;
  padding: 40px;
  color: #6b7280;
  font-size: 16px;
}

/* Pagination */
.zcwf-pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.zcwf-page {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #00356B;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  padding: 0 8px;
}

.zcwf-page:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.zcwf-page.active {
  background: #00356B;
  color: #fff;
  border-color: #00356B;
}

/* Mobile */
@media (max-width: 768px) {
  .post-grid-container {
    gap: 16px;
  }
  
  .post-item {
    width: 100%;
    max-width: 300px;
    min-width: auto;
  }
  
  .post-image {
    width: 100%;
    height: auto;
    padding-bottom: 100%;
    position: relative;
  }
  
  .post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .product-tags {
    gap: 2px;
  }
  
  .product-tag {
    font-size: 7px;
    padding: 1px 3px;
  }
  
  .product-price {
    font-size: 10px;
    margin-bottom: 4px;
  }
  
  .post-title {
    font-size: 15px;
  }
  
  .post-description {
    font-size: 11px;
  }
}