/* GRID 6 kolona na desktopu */
.nw-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* Kartica – iste visine pomoću flex-a */
.nw-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  height: 100%;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

/* Thumbnail sa stabilnim odnosom stranica */
.nw-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;         /* stabilna visina slike */
  overflow: hidden;
  border-radius: 8px;
  background: #f7f7f7;
}
.nw-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Telo kartice raste, akcije ostaju pri dnu */
.nw-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  flex: 1 1 auto;
}

.nw-card__title {
  font-size: 0.95rem;
  line-height: 1.25rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* max 2 reda */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-card__title a { color: inherit; text-decoration: none; }

.nw-card__author {
  font-size: 0.875rem;
  color: #666;
  min-height: 1.25rem; /* da ne skače visina kad nema autora */
}
.nw-card__price {
  font-weight: 600;
  margin-top: 2px;
}

/* Dugme “Dodaj u korpu” pri dnu */
.nw-card__actions {
  margin-top: 10px;
}
.nw-card__actions .button {
  width: 100%;
  text-align: center;
  color:black;
}
/* Osnovni izgled dugmadi */
#nw-filter-reset,
#nw-filter-loadmore {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Hover i fokus efekti */
#nw-filter-reset:hover,
#nw-filter-loadmore:hover {
  background: linear-gradient(135deg, #e3e3e3 0%, #d5d5d5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#nw-filter-reset:active,
#nw-filter-loadmore:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Posebne boje za pojedina dugmad */
#nw-filter-reset {
  background: linear-gradient(135deg, #f7e2e2 0%, #f3caca 100%);
  color: #8b1a1a;
}
#nw-filter-reset:hover {
  background: linear-gradient(135deg, #f3caca 0%, #eeb5b5 100%);
  color: #721010;
}

#nw-filter-loadmore {
  background: linear-gradient(135deg, #2495de 0%, #1b7fc0 100%);
  color: #fff;
}
#nw-filter-loadmore:hover {
  background: linear-gradient(135deg, #1b7fc0 0%, #1369a3 100%);
}

/* Raspored */
.nw-wc-filters__row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.nw-wc-filters__pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Responsivnost */
@media (max-width: 768px) {
  #nw-filter-reset,
  #nw-filter-loadmore {
    width: 100%;
  }
}


