/* ==========================================================================
   OVER MAXIMUM RECORDS - MERCHANDISE STORE & CART
   T-Shirts, CDs, Size/Format Selection, Sliding Cart Drawer & Checkout
   ========================================================================== */

.merch-section {
  background: 
    radial-gradient(circle at 80% 20%, rgba(255, 42, 133, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(176, 38, 255, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, #150828 50%, var(--bg-deep) 100%);
  position: relative;
}

/* Category Filter Tabs */
.merch-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.merch-filter-btn {
  background: rgba(18, 8, 36, 0.8);
  border: 1px solid rgba(176, 38, 255, 0.35);
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.merch-filter-btn:hover {
  color: #fff;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.merch-filter-btn.active {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.6);
}

/* Product Cards Grid */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.merch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
  overflow: hidden;
}

.merch-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-cyan);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.25);
}

.merch-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  background: rgba(255, 42, 133, 0.9);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.7);
  letter-spacing: 1px;
}

.merch-img-container {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090314;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.merch-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.merch-card:hover .merch-img {
  transform: scale(1.08);
}

.merch-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.merch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.merch-category {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 1.5px;
}

.merch-rating {
  font-size: 0.85rem;
  color: var(--neon-yellow);
}

.merch-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.merch-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

/* Size / Format Pills */
.merch-options {
  margin-bottom: 20px;
}

.options-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.options-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.option-pill {
  background: rgba(8, 3, 18, 0.8);
  border: 1px solid #374151;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.option-pill:hover {
  border-color: var(--neon-purple);
  color: #fff;
}

.option-pill.selected {
  background: var(--neon-purple);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 10px var(--neon-purple);
}

/* Price & Add to Cart Footer */
.merch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.merch-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px var(--neon-magenta);
}

.btn-add-cart {
  background: linear-gradient(135deg, var(--neon-purple) 0%, #7e22ce 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--neon-magenta) 0%, var(--neon-purple) 100%);
  box-shadow: 0 0 25px var(--neon-magenta);
  transform: translateY(-2px);
}

.btn-add-cart.added {
  background: #059669;
  border-color: #34d399;
  box-shadow: 0 0 20px #059669;
}

/* ==========================================================================
   SLIDE-OUT SHOPPING CART DRAWER
   ========================================================================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background: #0f061c;
  border-left: 2px solid var(--neon-purple);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid rgba(176, 38, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #150928;
}

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 1.5px;
}

.btn-close-cart {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.btn-close-cart:hover {
  color: var(--neon-magenta);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty-message .empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.cart-empty-message p {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cart-item-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}

.cart-item-thumb {
  width: 65px;
  height: 65px;
  object-fit: contain;
  background: #080312;
  border-radius: 6px;
  border: 1px solid rgba(176, 38, 255, 0.25);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 4px;
}

.cart-item-option {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  display: block;
}

.cart-item-unit-price {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  background: #1f2937;
  border: 1px solid #374151;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.qty-btn:hover {
  background: var(--neon-purple);
}

.qty-count {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
  min-width: 18px;
  text-align: center;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-item-subtotal {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--neon-magenta);
  font-weight: bold;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-item-remove:hover {
  color: #ef4444;
}

.cart-drawer-footer {
  padding: 24px;
  background: #150928;
  border-top: 1px solid rgba(176, 38, 255, 0.3);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cart-summary-line.total {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  margin-top: 12px;
}

.cart-subtotal-price {
  color: var(--neon-cyan);
}

.btn-checkout {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  font-size: 1rem;
}

/* ==========================================================================
   CHECKOUT MODAL
   ========================================================================== */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.checkout-modal.open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-card {
  background: #130724;
  border: 2px solid var(--neon-cyan);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.35);
  overflow: hidden;
}

.modal-card-header {
  padding: 20px 24px;
  background: #1c0c36;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-card-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
}

.checkout-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-body-content {
  padding: 24px;
}

.modal-order-total-bar {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.modal-total-amount {
  font-size: 1.4rem;
  color: var(--neon-yellow);
}

.checkout-success {
  text-align: center;
  padding: 20px 0;
}

.checkout-success .success-neon-icon {
  font-size: 3.5rem;
  color: var(--neon-yellow);
  margin-bottom: 10px;
}

.checkout-success h2 {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 10px;
}

.checkout-success .order-id {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: 20px;
}

.checkout-success .success-box {
  background: rgba(176, 38, 255, 0.15);
  border: 1px solid var(--neon-purple);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.bonus-tag {
  color: var(--neon-yellow);
  font-weight: bold;
  margin-top: 10px;
  font-family: var(--font-tech);
}

@media (max-width: 1024px) {
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .merch-grid {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    width: 100vw;
  }
}
