/* Curated Horizontal Shelves for Marketplace & Real Estate */

.curated-shelves-container {
  margin-bottom: 2rem;
}
.shelf-section {
  margin-bottom: 2.25rem;
  position: relative;
}
.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.shelf-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shelf-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.shelf-subtitle {
  font-size: 0.8rem;
  color: #64748b;
}
.shelf-view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.15s;
}
.shelf-view-all:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.shelf-wrapper {
  position: relative;
}
.shelf-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.shelf-track::-webkit-scrollbar {
  height: 5px;
}
.shelf-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.shelf-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shelf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
}
.shelf-card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.shelf-card-img-box {
  position: relative;
  width: 100%;
  height: 180px;
  background: #f1f5f9;
  overflow: hidden;
}
.shelf-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.shelf-card:hover .shelf-card-img {
  transform: scale(1.03);
}
.shelf-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.shelf-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 6px;
}
.shelf-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
}
.shelf-price .price-unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}
.frame-tag {
  font-size: 0.68rem;
  padding: 2px 6px;
  height: auto;
  font-weight: 600;
}
.shelf-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.shelf-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.shelf-card-meta {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s, transform 0.15s;
}
.shelf-arrow-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}
.shelf-arrow-prev { left: -14px; }
.shelf-arrow-next { right: -14px; }
@media (max-width: 768px) {
  .shelf-arrow-btn { display: none; }
  .shelf-card { flex: 0 0 200px; }
  .shelf-card-img-box { height: 150px; }
}
