/* ==========================================================================
   DJ THULARA - STORE PAGE & MUSIC CATALOG STYLES
   ========================================================================== */

/* Store Hero */
.store-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.store-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.store-hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Category Filter System */
.category-filter-wrapper {
  margin: 2.5rem 0 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--border-blue);
  color: var(--text-white);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--electric));
  border-color: var(--electric);
  color: #FFFFFF;
  box-shadow: var(--glow-sm);
}

.filter-pill-count {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.25);
  font-weight: 700;
}

.filter-pill.active .filter-pill-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Search & Sort Controls Bar */
.store-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.store-search-input {
  width: 100%;
  padding: 0.75rem 2.8rem 0.75rem 2.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.store-search-input:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.search-clear-btn:hover {
  color: var(--text-white);
}

.store-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.custom-select {
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.custom-select:focus {
  border-color: var(--electric);
}

.results-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Song Catalog Table (Desktop) */
.table-responsive-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.songs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.songs-table th {
  background: rgba(8, 13, 24, 0.6);
  padding: 1.1rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.songs-table td {
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.song-table-row {
  transition: background var(--transition-fast);
  cursor: pointer;
}

.song-table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.song-table-row.row-selected {
  background: rgba(37, 99, 235, 0.12);
}

.song-table-row.row-selected td:first-child {
  border-left: 3px solid var(--electric);
}

.col-checkbox { width: 50px; text-align: center; }
.col-name { min-width: 280px; }
.col-bpm { width: 120px; }
.col-category { width: 140px; }
.col-price { width: 130px; }
.col-action { width: 130px; text-align: right; }

.song-name-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.song-table-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #080D18;
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--electric);
  flex-shrink: 0;
}

.song-title-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.song-title-text {
  font-weight: 600;
  color: var(--text-white);
  font-size: 0.98rem;
}

.song-price-bold {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--electric-light);
  font-size: 1.05rem;
}

/* Mobile Songs Container (Cards layout) */
.mobile-songs-container {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.mobile-song-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-fast);
}

.mobile-song-card.mobile-song-selected {
  border-color: var(--electric);
  background: rgba(30, 45, 74, 0.65);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.mobile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-card-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mobile-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-white);
  line-height: 1.35;
}

.mobile-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.mobile-card-price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--electric-light);
  font-size: 1.15rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
}

.empty-state-title {
  font-size: 1.35rem;
  color: var(--text-white);
  margin: 1rem 0 0.5rem;
}

/* ==========================================================================
   STICKY BOTTOM SELECTION BAR
   ========================================================================== */
.sticky-selection-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid var(--border-blue);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
  padding: 1.1rem 0;
  z-index: 95;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-selection-bar.visible {
  transform: translateY(0);
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.sticky-selected-count {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

.sticky-total-box {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.sticky-total-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sticky-total-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #60A5FA;
}

.sticky-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-buy-selected {
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   ORDER CONFIRMATION MODAL
   ========================================================================== */
.modal-selected-songs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
}

.modal-song-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 1rem;
}

.modal-song-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.modal-song-index {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding-top: 2px;
}

.modal-song-name {
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.modal-song-sub {
  display: flex;
  gap: 0.4rem;
}

.modal-song-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-song-price {
  font-weight: 700;
  color: var(--electric-light);
  font-size: 0.95rem;
}

.btn-icon-danger {
  color: #EF4444;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

.modal-order-summary {
  background: rgba(8, 13, 24, 0.7);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.modal-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.modal-summary-row.total-row {
  margin-bottom: 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.modal-summary-row.total-row span:last-child {
  color: var(--electric-light);
  font-family: var(--font-display);
}

.modal-whatsapp-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(37, 211, 102, 0.08);
  border-left: 3px solid #25D366;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ==========================================================================
   FIXED "SAMPLES HERE" FLOATING POPUP BUTTON
   ========================================================================== */
.samples-popup-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 98;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.3rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), var(--glow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), bottom var(--transition-smooth);
}

.samples-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), var(--glow-md);
  color: #FFFFFF;
}

.samples-popup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60A5FA;
  box-shadow: 0 0 8px #93C5FD;
  flex-shrink: 0;
}

/* Shift above sticky selection bar when tracks are selected */
.sticky-selection-bar.visible ~ .samples-popup-btn {
  bottom: 96px;
}
