

.slab-card, .series-card, .thumb {
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: transform .2s;
}
.slab-card:hover, .series-card:hover, .thumb:hover {
  transform: scale(1.03);
}

.slab-card img, .series-card img, .thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.back-btn {
  grid-column: 1 / -1;
  margin: .5rem 0;
  color: #0073aa;
  cursor: pointer;
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
}



.tile-card {
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  cursor:pointer;
  transition:transform .2s;
}
.tile-card:hover { transform:scale(1.03); }
.tile-card img { width:100%; display:block; }
.tile-info { padding:.75rem; }
.tile-info .subtitle span { margin-right:.3rem; color:#666; font-size:.9em; }
.tile-detail { display:flex; flex-wrap:wrap; gap:2rem; margin-top:1rem; }
.tile-detail .tile-image img { width:100%; max-width:480px; border-radius:8px; }
.tile-detail .tile-meta { flex:1; min-width:260px; }
.branch-list { margin-top:.5rem; padding-left:1.2rem; }
.branch-list li { line-height:1.6; }


.generic-card {
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  cursor:pointer;
  transition:transform .2s;
}
.generic-card:hover { transform:scale(1.03); }
.generic-card img { width:100%; display:block; }
.generic-info { padding:.75rem; }
.generic-info .subtitle span { margin-right:.3rem; color:#666; font-size:.9em; }

.generic-detail { display:flex; flex-wrap:wrap; gap:2rem; margin-top:1rem; }
.generic-detail .generic-image img { width:100%; max-width:480px; border-radius:8px; }
.generic-detail .generic-meta { flex:1; min-width:260px; }
.branch-list { margin-top:.5rem; padding-left:1.2rem; }
.branch-list li { line-height:1.6; }



/* ======= GRID LAYOUT ======= */
#opus-grid.opus-grid--cols-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1400px) {
  #opus-grid.opus-grid--cols-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1100px) {
  #opus-grid.opus-grid--cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  #opus-grid.opus-grid--cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  #opus-grid.opus-grid--cols-5 {
    grid-template-columns: 1fr;
  }
}

/* ======= PRODUCT CARD ======= */
.opus-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.opus-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.opus-image-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.opus-info {
  padding: 12px;
}
.opus-info h2 {
  font-size: 16px;
  margin: 0 0 4px;
  font-weight: 600;
}
.opus-info .subtitle {
  font-size: 13px;
  color: #666;
}

/* ======= PAGINATION ======= */
#opus-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}
#opus-pagination .page-btn {
  background: #f4f4f4;
  border: 1px solid #ccc;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}
#opus-pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
#opus-pagination .page-number {
  width: 40px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 4px;
  border-radius: 4px;
}
