/* Catalog Page Styles */

/* Page Header */
.catalog-header {
  padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
  text-align: center;
}

.catalog-header__title {
  font-family: var(--font-serif);
  margin-bottom: var(--spacing-md);
}

.catalog-header__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Filters Section */
.catalog-filters {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--spacing-xl);
}

.catalog-filters__search {
  max-width: 500px;
  margin: 0 auto var(--spacing-xl);
  position: relative;
}

.catalog-filters__search-input {
  padding-left: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.catalog-filters__search-icon {
  position: absolute;
  left: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

/* Category Tabs */
.catalog-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--spacing-xs) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catalog-tabs::-webkit-scrollbar {
  display: none;
}

.catalog-tab {
  padding: calc(var(--spacing-xs) * 0.7) calc(var(--spacing-sm) * 0.9);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.catalog-tab:hover,
.catalog-tab--active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2), var(--shadow-glow);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2), var(--shadow-glow);
  }
  100% {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.3), var(--shadow-glow);
  }
}

/* Cards Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}


/* Surgence.io style scroll animation */
.gift-card {
  background: linear-gradient(135deg, #181824 60%, #2d1e4f 100%);
  border: 1.5px solid #3a2e5c;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: box-shadow 0.35s cubic-bezier(.4,1.4,.6,1), border 0.25s, transform 0.25s;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 32px 0 rgba(60, 30, 120, 0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  font-family: 'Montserrat', 'Segoe UI', 'Arial', sans-serif;
  opacity: 0;
  transform: scale(0.96) translateY(30px);
  pointer-events: none;
}

.gift-card.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  transition: opacity 0.7s cubic-bezier(.4,1.4,.6,1), transform 0.7s cubic-bezier(.4,1.4,.6,1);
}

@keyframes cardFadeIn {
  0% { opacity: 0; transform: scale(0.96) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.brand-card {
  cursor: default;
}

.gift-card:hover {
  transform: translateY(-12px) scale(1.025) rotate(-0.5deg);
  border-color: #7c3aed;
  box-shadow: 0 16px 48px 0 #7c3aed33, 0 2px 12px 0 rgba(60, 30, 120, 0.18);
}

.gift-card__image-container {
  position: relative;
  height: 180px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gift-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gift-card:hover .gift-card__image {
  transform: scale(1.05);
}

.gift-card__badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.gift-card__content {
  padding: 2.1rem 1.3rem 1.3rem 1.3rem;
}

.gift-card__brand {
  font-size: 1.22rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
  font-family: 'Montserrat', 'Segoe UI', 'Arial', sans-serif;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(80,60,120,0.10);
}

.gift-card__category {
  font-size: 0.93rem;
  color: #b3b3d1;
  margin-bottom: 1.1rem;
  font-family: 'Montserrat', 'Segoe UI', 'Arial', sans-serif;
}

.gift-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gift-card__price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.gift-card__buy-btn {
  padding: 0.85rem 1.5rem;
  font-size: 1.01rem;
  background: linear-gradient(90deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
  border: none;
  border-radius: 1.1rem;
  font-weight: 700;
  font-family: 'Montserrat', 'Segoe UI', 'Arial', sans-serif;
  box-shadow: 0 2px 8px 0 #7c3aed33;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(80,60,120,0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  animation: btnPopIn 0.7s cubic-bezier(.4,1.4,.6,1);
}
.gift-card__buy-btn:hover {
  background: linear-gradient(90deg, #6366f1 0%, #7c3aed 100%);
  box-shadow: 0 8px 32px 0 #7c3aed44;
  transform: translateY(-2px) scale(1.04);
}
@keyframes btnPopIn {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.gift-card__buy-btn:hover {
  background: var(--accent-blue);
  color: white;
}

/* Denominations */
.gift-card__denominations {
  margin: var(--spacing-md) 0;
}

.denominations-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.denominations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.denomination-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.denomination-btn:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: rgba(79, 70, 229, 0.1);
}

.denomination-btn.selected {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  border-color: var(--accent-blue);
  color: white;
}

.gift-card__price-range {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.gift-card__buy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.gift-card__buy-btn:disabled:hover {
  transform: none;
  background: var(--bg-secondary);
}

/* Empty State */
.catalog-empty {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-muted);
}

.catalog-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  opacity: 0.5;
}

.catalog-empty__title {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.catalog-empty__message {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

/* Loading State */
.catalog-loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.gift-card-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: pulse 1.5s ease-in-out infinite;
}

.gift-card-skeleton__image {
  height: 160px;
  background: var(--bg-secondary);
}

.gift-card-skeleton__content {
  padding: var(--spacing-lg);
}

.gift-card-skeleton__line {
  height: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
}

.gift-card-skeleton__line--short {
  width: 60%;
}

.gift-card-skeleton__line--long {
  width: 80%;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
  }
  
  .catalog-tabs {
    gap: var(--spacing-xs);
  }
  
  .catalog-tab {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
  }
  
  .catalog-filters__search {
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-tabs {
    gap: var(--spacing-xs);
  }
  
  .catalog-tab {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .gift-card__content {
    padding: var(--spacing-md);
  }
}