/* Quick Fix for Shelf Collection Layout */
/* Add this to your flicks.css or create as separate file */

.shelf-collections-container {
  padding: 2rem 3.5vw;
}

.shelf-collection {
  margin-bottom: 3rem;
}

.shelf-collection__header {
  margin-bottom: 1.5rem;
}

.shelf-collection__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.shelf-collection__section {
  position: relative;
}

.shelf-collection__container {
  position: relative;
  display: flex;
  align-items: center;
}

/* CRITICAL: This makes items display horizontally */
.shelf-scroll-container {
  display: flex !important;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0;
  flex: 1;
}

.shelf-scroll-container::-webkit-scrollbar {
  display: none;
}

/* CRITICAL: Prevent items from wrapping */
.shelf-item-wrapper {
  flex: 0 0 auto !important;
  width: 280px;
  min-width: 200px;
  max-width: 320px;
}

.shelf-item {
  width: 100%;
  height: auto;
  position: relative;
}

.shelf-item__link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background: #2d2d34;
}

.shelf-item__link:hover {
  transform: scale(1.05);
}

.shelf-item__image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.shelf-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shelf-item__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-align: center;
  font-size: 0.875rem;
  padding: 1rem;
}

/* Navigation arrows */
.shelf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(42, 42, 42, 0.8);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.shelf-nav:hover {
  background: rgba(42, 42, 42, 0.95);
  transform: translateY(-50%) scale(1.1);
}

.shelf-nav--left {
  left: -1.5rem;
}

.shelf-nav--right {
  right: -1.5rem;
}

@media (max-width: 767px) {
  .shelf-collections-container {
    padding: 1rem 4vw;
  }
  
  .shelf-item-wrapper {
    width: 200px;
    min-width: 150px;
  }
  
  .shelf-nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}
