/* Carousel container */
#merch-carousel {
    perspective: 1400px;
    opacity: 1;
    transform: scale(1);
    transition: opacity .22s ease, transform .22s ease;
  }
  
  #merch-carousel.carousel-fade {
    opacity: 0;
    transform: scale(0.98);
  }
  
  /* Merch card */
  .merch-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem 1.75rem;
    /* width: 260px; */
    max-width: 80vw;
    height: 450px;
  
    backdrop-filter: blur(12px);
    background: rgba(20,20,20,0.92);
    border: 1px solid rgba(255,255,255,0.07);
  
    border-radius: 0;
    overflow: hidden;
  
    box-shadow: 0 18px 60px rgba(0,0,0,0.9);
  
    transition: transform .26s ease-out, box-shadow .26s ease-out, opacity .26s ease-out;
    transform-origin: center center;
  }
  
  @media (min-width: 640px) {
    .merch-card { width: 300px; }
  }
  
  @media (min-width: 768px) {
    .merch-card { width: 320px; }
  }
  
  /* Floating merch image */
  .merch-image-shell {
    position: relative;
    width: 100%;
    height: 210px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
  
    background: rgba(255,255,255,0.04);
    border-radius: 0;
    overflow: hidden;
  }
  
  @media (min-width: 640px) {
    .merch-image-shell { height: 210px; }
  }
  
  .merch-image-float {
    position: relative;
    max-width: 88%;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
  
    filter: drop-shadow(0 14px 30px rgba(0,0,0,0.85));
    transform-origin: center bottom;
    transition: transform 260ms ease-out, filter 260ms ease-out;
  }
  
  .merch-card:hover .merch-image-float {
    transform: none;
  }
  
  /* Merch text */
  .merch-title {
    font-size:1.05rem;
    letter-spacing:0.05em;
  }
  .merch-price {
    font-size:.9rem;
    opacity:.78;
  }
  
  /* Buy / cart button */
  .merch-buy-btn {
    display:flex;
    width:100%;
    justify-content:center;
    padding:0.95rem 1.5rem;
    font-size:.72rem;
    letter-spacing:0.35em;
    text-transform:uppercase;
    background:#fff;
    color:#000;
    border:1px solid rgba(255,255,255,0.8);
    transition:.22s ease;
  }
  .merch-buy-btn:hover {
    background:black;
    color:white;
    border-color:white;
    transform:translateY(-2px);
    box-shadow:0 0 30px rgba(255,255,255,0.25);
  }
  .merch-buy-btn:active {
    transform:translateY(0);
    box-shadow:none;
  }

  /* Buy / cart button */
  .merch-buy-btn-sold-out {
    display:flex;
    width:100%;
    justify-content:center;
    padding:0.95rem 1.5rem;
    font-size:.72rem;
    letter-spacing:0.35em;
    text-transform:uppercase;
    background:black;
    color:white;
    border:1px solid rgba(255,255,255,0.8);
    transition:.22s ease;
  }
/* Stop sideways scroll site-wide */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Keep merch carousel from extending horizontally but allow vertical overflow */
#merch-carousel {
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100%;
  margin: 0 auto;
}


/* Mobile: resize cards so title + button fit */
@media (max-width: 640px) {
  #merch-carousel {
    position: relative;
    padding-top: 5rem;  /* space between cart + card */
  }
  .merch-card {
    width: 60vw;
    max-width: 360px;
    height: 480px;         /* let it grow */
    min-height: 430px;    /* keep your general size vibe */
    margin: 0 auto;
  }

  .merch-image-shell {
    height: 180px;
    margin-bottom: 0.75rem;
  }

  .merch-title {
    font-size: 0.95rem;
    line-height: 1.2;
    overflow-wrap: break-word;
  }

  .merch-price {
    font-size: 0.85rem;
  }

  .merch-buy-btn,
  .merch-buy-btn-sold-out {
    padding: 0.9rem 1.25rem;
    font-size: 0.68rem;
  }
}
/* Cart panel: dropdown anchored to cart button, not floating by itself */
#cart-panel {
  position: absolute;
  top: 100%;          /* directly below the button wrapper */
  right: 0;
  margin-top: 0.5rem;
  width: 18rem;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 50;
}


/* Force merch titles to stay on one line and show ellipsis */
.merch-title {
  word-wrap: break-word;
}
/* Fade edges for merch carousel */
#merch-carousel {
  position: relative;
  overflow: hidden;
}

#merch-carousel::before,
#merch-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;             /* how wide the fade is — adjust to taste */
  pointer-events: none;    /* clicks pass through to carousel */
  z-index: 40;             /* above ghost cards but below main UI */
}

/* Left fade */
#merch-carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Right fade */
#merch-carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
}

.cart-wrapper {
  position: static;
}

/* Mobile Menu */
#mobile-menu {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease-in-out;
  transform: translateY(-100%);
}

#mobile-menu.show {
  transform: translateY(0);
}

#mobile-menu a {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.2s ease;
}

#mobile-menu a:hover {
  color: #ccc;
}

/* Hide hamburger lines when menu is open */
#hamburger-toggle.open .fa-bars {
  display: none;
}

#mobile-menu-close {
  display: block;
}



