/* Beautiful Premium UI - eAuction 5.0 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Dynamic Professional Palette */
  --primary: #0f172a;
  /* Navy Blue */
  --primary-hover: #1e293b;
  /* Slate/Navy Lighter */
  --primary-soft: #f1f5f9;

  --secondary: #d4af37;
  /* Gold Accent */
  --secondary-hover: #b8962e;

  --accent: #16a34a;
  /* Bid Green */
  --accent-hover: #15803d;

  /* Neutrals */
  --bg-page: #f8fafc;
  /* Light Gray BG */
  --bg-card: #ffffff;
  --text-main: #1f2933;
  /* Dark Text */
  --text-body: #475569;
  --text-muted: #64748b;
  --border-light: #e2e8f0;

  /* Radius */
  --radius-xl: 1.5rem;
  /* 24px */
  --radius-lg: 1rem;
  /* 16px */
  --radius-md: 0.75rem;
  /* 12px */
  --radius-sm: 0.5rem;
  /* 8px */

  /* Shadows (The "Aura") */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-float: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 15px rgba(22, 163, 74, 0.2);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.status-badge.active {
  background: #f0fdf4;
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.1);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.015em;
  line-height: 1.6;
}

/* === Hero Section (New) === */
.hero-section {
  position: relative;
  background: #ffffff;
  /* Clean White */
  color: var(--text-main);
  padding: 8rem 0 4rem;
  /* More top padding for air */
  margin-bottom: 2rem;
  text-align: center;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 120%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% -20%, rgba(244, 63, 94, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.05);
  /* Very subtle blue tint */
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(37, 99, 235, 0.1);
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: 5rem;
  /* Massive Typography */
  font-weight: 300;
  /* Light weight for elegance */
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-body);
  margin-bottom: 3rem;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-hero-primary {
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  color: var(--primary-hover);
}

/* === Navbar (Glassmorphism) === */
.sticky-top {
  z-index: 1050;
}

.main-header {
  background: rgba(255, 255, 255, 0.85);
  /* More transparency */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  z-index: 1055;
  /* Ensure header sits above nav */
}

.brand-icon {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.brand-icon i {
  color: var(--secondary);
}

.dropdown-menu {
  z-index: 1060;
  /* Higher than sticky nav */
}

.search-form .form-control {
  background-color: rgba(241, 245, 249, 0.8) !important;
  border: 1px solid transparent !important;
  border-radius: 100px;
  padding-left: 1.5rem;
  transition: all 0.2s ease;
}

.search-form .form-control:focus {
  background-color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
}

.sticky-nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1050;
}

.sticky-nav .nav-link {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1.5rem;
  position: relative;
}

.sticky-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.sticky-nav .nav-link:hover::after,
.sticky-nav .nav-link.active::after {
  width: 24px;
}

.sticky-nav .nav-link.active {
  color: var(--primary);
}

/* Page Spacing for Sticky Header */
main {
  min-height: 70vh;
}

/* Horizontal Slider System */
.slider-wrapper {
  margin: 0 -0.5rem;
}

/* Closed Result Cards (Inline Trust Layout) */
.closed-result-card {
  transition: all 0.3s ease;
  border: 1px solid var(--border-light) !important;
}

.closed-result-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
}

.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.stats-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 100%;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.mini-bid-history {
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
}

.history-row {
  border-bottom: 1px dashed #f1f5f9;
  padding: 2px 0;
}

.history-row:last-child {
  border-bottom: none;
}

.mini-avatar {
  width: 18px;
  height: 18px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 9px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.text-emerald {
  color: #059669;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.smallest {
  font-size: 0.7rem;
}

.closed-slider-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Remove mask-image to prevent "overlapping" fade effect */
}

.closed-slider-container::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.slider-item {
  flex: 0 0 calc(20% - 1.2rem);
  /* Exactly 5 items for 1.5rem gap */
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.slider-item:hover {
  transform: translateY(-5px);
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-control:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.slider-control.prev {
  left: -25px;
}

.slider-control.next {
  right: -25px;
}

@media (max-width: 991.98px) {
  .slider-item {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

@media (max-width: 767.98px) {
  .slider-item {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .slider-control {
    display: none !important;
  }
}

/* Pagination Custom Styling */
.pagination-custom .page-link {
  background: white;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light) !important;
}

.pagination-custom .page-item.active .page-link {
  background: var(--primary);
  color: white;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.15);
}

.pagination-custom .page-link:hover:not(.active) {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.pagination-custom .page-item.disabled .page-link {
  background: #f8fafc;
  color: #cbd5e1;
  opacity: 0.6;
}

/* Ensure consistent card spacing in 5-column grid */
.row-cols-lg-5.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 2.5rem;
}

@media (max-width: 991.98px) {
  main {
    margin-top: 2rem !important;
  }
}

/* === Product Card (Aura Design) === */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  border: none;
  /* Floating style */
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  height: 100%;
  padding: 1rem;
  /* Inner padding for gallery feel */
  display: flex;
  flex-direction: column;
  overflow: visible;
  /* Allow shadow to spill */
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
  /* Soft spread shadow */
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  /* Rounded image inside card */
  aspect-ratio: 1;
  /* Square for clean look */
  background: var(--bg-page);
  margin-bottom: 1rem;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Slower elegant zoom */
}

.product-card:hover .card-img {
  transform: scale(1.1);
}

/* Glass Badges */
.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.badge-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.badge-glass.live {
  color: var(--accent);
  border-color: rgba(244, 63, 94, 0.2);
}

.badge-glass.upcoming {
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.2);
}

/* Card Content */
.card-info {
  padding: 0;
  /* Remove separate padding as card has it */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-description {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 1rem;
  line-height: 1.5;
  height: 3em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-description {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 1rem;
  line-height: 1.5;
  height: 3em;
  /* Exact 2 lines at 1.5 line-height */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.price-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.price-value {
  font-size: 1.35rem;
  /* Reduced from 1.5rem for better fit */
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Modern Compact Pill Button */
.btn-bid {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  width: 100%;
}

.btn-bid:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(22, 163, 74, 0.4);
}

/* Section Styling */
/* === Shop Filters Sidebar === */
aside .card {
  background: white;
  border: 1px solid var(--border-light) !important;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.custom-check {
  margin-bottom: 0.5rem;
  padding-left: 2rem;
}

.custom-check .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: -2rem;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-check .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.custom-check .form-check-label {
  cursor: pointer;
  color: var(--text-body);
  transition: color 0.2s ease;
}

.custom-check .form-check-input:checked+.form-check-label {
  color: var(--primary);
  font-weight: 600;
}

.filter-group::-webkit-scrollbar {
  width: 4px;
}

.filter-group::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 10px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-body);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  /* Highly reduced to bring cards up */
  max-width: 600px;
}

/* Animations */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(244, 63, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

.live-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
  display: inline-block;
  margin-right: 6px;
}

/* Footer (Simplified) */
.footer-clean {
  background: white;
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--border-light);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}