.fabric-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 30px;
}

.fabric-card {
  width: calc(33.333% - 20px);
  border: 1px solid #ccc;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  background: #fdfdfd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.fabric-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.fabric-card h3 {
  font-size: 16px;
  margin: 10px 0 5px;
  color: #333;
}

.fabric-card .price {
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  margin-top: 5px;
}

.card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.card-link:hover {
  opacity: 0.85;
}

.fabric-cards,
#fabric-latest,
#canclini-latest {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 30px;
}

.fabric-design-image figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}


.cloth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  margin-top: 2em;
}

.cloth-card {
  border: 1px solid #ccc;
  padding: 1em;
  border-radius: 10px;
  background: #fff;
}

.cloth-card h2 {
  font-size: 1.2em;
  margin-bottom: 0.8em;
}

.latest-fabric img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5em;
}

.fabric-section {
  margin: 40px 0;
}

.fabric-section h2 {
  font-size: 1.4rem;
  color: #2a2a2a;
  margin-bottom: 10px;
  border-left: 5px solid #2a7f5f;
  padding-left: 10px;
}

.fabric-latest {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.fabric-card {
  width: 240px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

.fabric-card img {
  width: 100%;
  height: auto;
}

.fabric-card h3 {
  font-size: 1rem;
  margin: 0.5em 0;
  color: #333;
}

.fabric-card .price {
  color: #2a7f5f;
  font-weight: bold;
  margin-bottom: 0.8em;
}

@media screen and (max-width: 768px) {
  .fabric-card {
    width: 100%;
  }
}

.back-to-category-index {
  margin-top: 40px;
  text-align: center;
}

.back-to-category-index a {
  display: inline-block;
  padding: 12px 20px;
  background: #f2f2f2;
  color: #006600;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: background 0.3s;
}

.back-to-category-index a:hover {
  background: #e0ffe0;
  text-decoration: underline;
}


#fabric-latest.fabric-cards {
  display: flex !important;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 30px;
}

#fabric-latest .fabric-card {
  width: 240px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

#fabric-latest .fabric-card img {
  width: 100%;
  height: auto;
}

#fabric-latest .fabric-card h3 {
  font-size: 1rem;
  margin: 0.5em 0;
  color: #333;
}

#fabric-latest .fabric-card .price {
  color: #2a7f5f;
  font-weight: bold;
  margin-bottom: 0.8em;
}

