/* Modern Product Card Styles - Override for masonry grid */

.item {
  width: 18.4% !important;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

@media only screen and (max-width: 1024px) {
  .item { width: 23% !important; }
}
@media only screen and (max-width: 760px) {
  .item { width: 48% !important; }
}
@media only screen and (max-width: 546px) {
  .item { width: 100% !important; }
}

.item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08);
}

.item img {
  transition: transform 0.4s ease;
}

.item:hover img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

.item-content {
  padding: 14px 16px 16px;
}

.item-content h4.entry-title,
.item-content h5.entry-title {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 12px 0;
  font-weight: 600;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item .btn-danger {
  border-radius: 6px !important;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.item .btn-danger:hover {
  background-color: #027a64;
  border-color: #027a64;
  transform: translateY(-1px);
}

/* Dark theme overrides */
[data-theme="dark"] .item {
  background: #2a2a2a;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
}

[data-theme="dark"] .item:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.2);
}

[data-theme="dark"] .item-content h4.entry-title,
[data-theme="dark"] .item-content h5.entry-title {
  color: #e0e0e0;
}

/* Loading spinner for infinite scroll */
#infscr-loading {
  text-align: center;
  padding: 30px 0;
  color: #666;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
}
