/* Featured Sellers Enhanced Styles */

/* Hero Section Enhanced */
.sellers-hero {
  position: relative;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #06b6d4 100%);
  min-height: 50vh;
  max-height: 50vh;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden !important;
  padding: 50px 20px;
}

/* Animated background shapes */
.sellers-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: floatSellers 20s ease-in-out infinite;
  z-index: 1;
}

.sellers-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: floatSellers 15s ease-in-out infinite reverse;
  z-index: 1;
}

@keyframes floatSellers {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -50px;
  animation-delay: 5s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

.hero-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 20px;
  height: auto;
  max-height: calc(50vh - 100px);
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* Category Icon - Enhanced */
.category-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 32px;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Title - Enhanced */
.sellers-hero h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
  line-height: 1.1;
  flex-shrink: 0;
}

.sellers-hero h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.category-hero h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.sellers-hero p {
  font-size: clamp(12px, 1.2vw, 14px);
  margin: 0;
  opacity: 0.9;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  max-width: 450px;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 769px) {
  .sellers-hero p {
    display: block;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats - Enhanced */
.category-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 80px;
  flex: 1;
  max-width: 150px;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.stat-item strong {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.stat-item span {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  flex-wrap: wrap;
  font-size: 14px;
  color: #64748b;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
}

.breadcrumb-item:hover {
  color: #2563eb;
  background: #f1f5f9;
}

.breadcrumb-item.active {
  color: #2563eb;
  font-weight: 600;
  background: #eff6ff;
}

.breadcrumb-item i {
  font-size: 13px;
}

.breadcrumb-separator {
  color: #cbd5e1;
  font-size: 11px;
  display: flex;
  align-items: center;
}

/* Search and Filter Section */
.search-filter-section {
  background: #f8fafc;
}

.search-filter-wrapper {
  display: grid;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Toast parity with ads page (scoped to this page) */
#toast-container .toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 12px;
  min-width: 280px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-left: 4px solid var(--primary, #2563eb);
  animation: slideIn 0.3s ease;
}

#toast-container .toast.success { border-left-color: var(--success, #10b981); }
#toast-container .toast.error { border-left-color: var(--danger, #ef4444); }
#toast-container .toast.warning { border-left-color: #f59e0b; }

#toast-container .toast i {
  font-size: 20px;
  color: var(--primary, #2563eb);
}
#toast-container .toast.success i { color: var(--success, #10b981); }
#toast-container .toast.error i { color: var(--danger, #ef4444); }
#toast-container .toast.warning i { color: #f59e0b; }

#toast-container .toast .toast-content {
  font-weight: 600;
  color: #0f172a;
}

.search-box-featured {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 18px;
}

.search-input-featured {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
}

.search-input-featured:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
}

.filter-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.filter-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
  color: white;
}

.filter-count {
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 12px;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
}

.sort-dropdown {
  position: relative;
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
}

.sort-btn:hover {
  border-color: #2563eb;
}

.sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 200px;
  display: none;
  z-index: 100;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sort-menu.active {
  display: block;
}

.sort-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.sort-option:hover {
  background: #f8fafc;
}

.sort-option.active {
  background: #eff6ff;
  color: #2563eb;
}

/* Sellers Grid Section */
.sellers-grid-section {
  padding: 60px 20px;
  background: #f8fafc;
}

.sellers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.seller-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.seller-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.seller-card:hover::before {
  transform: scaleX(1);
}

.seller-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.seller-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.seller-header {
  text-align: center;
  margin-bottom: 20px;
}

.seller-avatar {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.seller-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  transition: all 0.3s ease;
}

.seller-card:hover .seller-avatar img {
  border-color: #2563eb;
  transform: scale(1.05);
}

.verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.seller-name {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.seller-location {
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.seller-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: #fef3c7;
  border-radius: 12px;
}

.stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  font-size: 16px;
}

.rating-value {
  font-size: 18px;
  font-weight: 800;
  color: #78350f;
}

.rating-count {
  font-size: 13px;
  color: #92400e;
}

.seller-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat i {
  font-size: 20px;
  color: #2563eb;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.stat-label {
  font-size: 12px;
  color: #64748b;
}

.seller-description {
  margin-bottom: 20px;
}

.seller-description p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.seller-actions {
  display: flex;
  gap: 12px;
}

.btn-view-store,
.btn-contact {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-view-store {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
}

.btn-view-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-contact {
  background: white;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-contact:hover {
  background: #2563eb;
  color: white;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 40px;
}

.btn-load-more {
  padding: 16px 40px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

/* Why Featured Section */
.why-featured-section {
  padding: 80px 20px;
  background: white;
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header-center h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.section-header-center p {
  font-size: 18px;
  color: #64748b;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: #f8fafc;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.feature-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .sellers-hero {
    min-height: 40vh;
    max-height: 40vh;
    height: 40vh;
    padding: 32px 16px;
  }

  .hero-content {
    max-height: calc(40vh - 64px);
    gap: 16px;
    padding: 0 16px;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .category-stats {
    gap: 10px;
  }

  .stat-item {
    padding: 8px 12px;
    min-width: 70px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .stat-number {
    font-size: 24px;
  }

  .search-filter-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box-featured {
    min-width: 100%;
  }

  .filter-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .filter-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

  .sellers-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .sellers-hero {
    min-height: 35vh;
    max-height: 35vh;
    height: 35vh;
    padding: 24px 12px;
  }

  .hero-content {
    max-height: calc(35vh - 48px);
    gap: 12px;
    padding: 0 12px;
  }

  .hero-badge {
    padding: 8px 16px;
    font-size: 13px;
  }

  .category-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .sellers-hero h1 {
    font-size: 20px !important;
  }

  .category-stats {
    gap: 6px;
  }

  .stat-item {
    padding: 6px 10px;
    min-width: 65px;
  }

  .stat-item strong {
    font-size: 16px !important;
  }

  .stat-item span {
    font-size: 10px !important;
  }
}
