/* ── Grid Layout ── */
.archive-listing {
  display: grid;
  grid-template-columns: 1fr;        /* Mobile: 1 column */
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .archive-listing {
    grid-template-columns: repeat(2, 1fr);  /* Tablet: 2 columns */
  }
}

@media (min-width: 1024px) {
  .archive-listing {
    grid-template-columns: repeat(4, 1fr);  /* Desktop: 4 columns */
  }
}

/* ── Card Container ── */
.archive-listing .product-single {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.archive-listing .product-single:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

/* ── Image Area ── */
.archive-listing .product-single > a:first-of-type {
  display: block;
  position: relative;
  overflow: hidden;
}

.archive-listing .product-single > a:first-of-type img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.archive-listing .product-single:hover > a:first-of-type img {
  transform: scale(1.08);
}

/* Articles that have no image (e.g. Rimless Letters) */
.archive-listing .product-single:not(:has(> a:first-of-type)) {
  padding-top: 24px;
}

/* ── Content Area ── */
.archive-listing .product-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Title */
.archive-listing .entry-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.archive-listing .entry-title a {
  color: inherit;
  text-decoration: none;
}

/* Description text (add this to your HTML if you want it) */
/*
.archive-listing .product-details p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}
*/

/* ── Explore / Arrow ── */
.archive-listing .product-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0d9488;               /* Teal */
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: auto;
  padding-top: 0px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Adds the word "Explore" before the arrow */
.archive-listing .product-arrow::before {
  content: "Explore";
}

.archive-listing .product-arrow svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.archive-listing .product-single:hover .product-arrow svg {
  transform: translateX(5px);
}