/* New Arrivals Section Styles */
.new-arrivals-section {
    padding: 2rem 1rem;
    background-color: #f5f5f5;
}
  
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
  
.section-header h2 {
    font-size: 1.8rem;
    margin: 0;
}
  
.view-all {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: color 0.3s;
}
  
.view-all:hover {
    color: #000;
}
  
.album {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: auto;  /* Make all albums the same height */
    padding-bottom: 20px;
}
  
.album:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
  
.album img {
    width: 100%;
    height: 250px;  /* Fixed height for album covers */
    object-fit: cover;
}
  
.album-info {
    padding-top: 1rem;
    padding-right: 1rem;
    padding-left: 1rem;
    flex-grow: 1;  /* Allow this to take remaining space */
    position: relative;  /* For absolute positioning of button */

}
  
.album h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    text-align: left;
}
  
.album-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #555;
    text-align: left;
}
  
.album-format {
    font-size: 0.9rem;
    color: #888;
    margin: 0 0 0.5rem 0;
    text-align: left;
}
  
.album-price {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0.5rem 0;
    text-align: left;
}
  
.album-entry {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 1rem 0;
    text-align: left;
}
  
.album-info-content {
    flex-grow: 1;  /* This pushes the button to the bottom */
}
  
.album button {
    width: 100%;
    padding: 0.5rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;  /* Push button to bottom */
}

.album button:hover {
    background-color: #555;
}

@media screen and (max-width: 555px) {
    .album-grid {
        justify-items: center;
    }
}

/* Tabs styling */
.arrivals-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  /* Add smooth scrolling */
  scroll-behavior: smooth;
  /* Hide scrollbar on webkit browsers but keep functionality */
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep scroll functionality */
.arrivals-tabs::-webkit-scrollbar {
  height: 4px;
}

.arrivals-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.arrivals-tabs::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.arrivals-tabs::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: fit-content;
}

.tab-btn:hover {
  color: #1a1a1a;
  background-color: #f8f8f8;
}

.tab-btn.active {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
  font-weight: 600;
}

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel .album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  row-gap: 2.5rem;
  column-gap: 1.5rem;
  justify-items: center;
  padding: 1rem 0;
}

/* Mobile responsiveness for tabs */
@media (max-width: 768px) {
  .arrivals-tabs {
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    /* Remove negative margins that cause overflow */
    /* Ensure tabs don't wrap */
    flex-wrap: nowrap;
    /* Ensure it stays within viewport */
    width: 100%;
    box-sizing: border-box;
  }
  
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    /* Prevent shrinking */
    flex-shrink: 0;
  }
  
  .tab-panel .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}
