/* Modern Financial Marketplace CSS */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #64748b;
  --accent: #10b981;
  --accent-hover: #059669;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --white: #ffffff;
  --black: #000000;

  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --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-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Marketplace Section Full Width */
.marketplace-section .container {
  max-width: none;
  padding: 0 40px;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  padding: 80px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  opacity: 0.1;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-showcase {
  width: 100%;
  max-width: 380px;
}

.showcase-header {
  text-align: center;
  margin-bottom: 24px;
}

.showcase-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.showcase-header p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

.showcase-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.showcase-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.showcase-card {
  min-width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0.8;
  transform: scale(0.98);
  display: flex;
  flex-direction: column;
  height: 320px;
  max-height: 320px;
  min-height: 320px;
  overflow: hidden;
}

.showcase-card.active {
  opacity: 1;
  transform: scale(1);
}

.showcase-card:hover {
  transform: scale(1) translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.5);
}

.showcase-image {
  position: relative;
  /* height: 180px; */
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-image img {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.showcase-type {
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-700);
  padding: 6px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.showcase-verified {
  background: var(--accent);
  color: white;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.showcase-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
  background: #fff;
}

.showcase-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.showcase-card:hover .showcase-title {
  color: var(--primary);
}

.showcase-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.showcase-rating .stars {
  display: flex;
  gap: 1px;
}

.showcase-rating i {
  color: #fbbf24;
  font-size: 0.75rem;
}

.showcase-rating-text {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.showcase-review-count {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 400;
}

/* Hide author and price sections */
.showcase-meta {
  display: none;
}

.showcase-author {
  display: none;
}

.showcase-price {
  display: none;
}

.showcase-controls {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding: 0 20px;
  gap: 24px;
}

.showcase-indicators {
  display: flex;
  gap: 12px;
  align-items: center;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.indicator-dot.active {
  background: white;
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.indicator-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.showcase-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.showcase-btn {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.showcase-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.showcase-btn:active {
  transform: scale(0.95);
}

.showcase-footer {
  text-align: center;
  margin-top: 20px;
}

.showcase-view-all {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.showcase-view-all:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.showcase-view-all:active {
  transform: translateY(0);
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-title i {
  color: var(--accent);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.featured-content {
  padding: 24px;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.featured-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.featured-type {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.stat.verified {
  color: var(--accent);
}

.featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-free {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.price-value {
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-add-to-cart {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease;
}

.btn-add-to-cart:hover {
  background: var(--primary-hover);
}

/* Authors Section */
.authors-section {
  padding: 80px 0;
  background: var(--gray-100);
}

.authors-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.authors-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.authors-track::-webkit-scrollbar {
  display: none;
}

.author-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  min-width: 180px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.author-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.author-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.author-avatar img,
.author-avatar i {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.author-avatar i {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 2rem;
}

.author-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
}

.author-status.online {
  background: var(--success);
}

.author-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.author-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.author-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.author-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--primary);
  font-size: 1.2rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.carousel-prev {
  left: -24px;
}

.carousel-next {
  right: -24px;
}

/* Marketplace Section */
.marketplace-section {
  padding: 80px 0;
  background: white;
}

.marketplace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.marketplace-title-section {
  flex: 1;
}

.marketplace-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-toggle {
  background: var(--gray-100);
  border: none;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gray-600);
}

.view-toggle.active {
  background: var(--primary);
  color: white;
}

.results-count {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.marketplace-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.filter-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-reset {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.3s ease;
}

.filter-reset:hover {
  background: var(--gray-100);
}

.filter-section {
  margin-bottom: 32px;
}

.filter-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.filter-option:hover {
  background: var(--gray-100);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gray-300);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.filter-option input[type="radio"] + .checkmark {
  border-radius: 50%;
}

.filter-option input[type="radio"]:checked + .checkmark,
.filter-option input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.filter-option input[type="radio"]:checked + .checkmark::after {
  content: "";
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: white;
  font-size: 10px;
  font-weight: bold;
}

.filter-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-count {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rating-display i {
  color: #fbbf24;
  font-size: 0.8rem;
}

.sort-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  background: white;
  color: var(--gray-700);
  font-size: 0.9rem;
}

/* Products Main */
.products-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.products-toolbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-bar {
  position: relative;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-300);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow);
  z-index: 10;
  display: none;
}

.search-suggestions.show {
  display: block;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.suggestion-item:hover {
  background: var(--gray-50);
}

.suggestion-item small {
  margin-left: auto;
  color: var(--gray-500);
}

.quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-filter {
  background: var(--gray-100);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gray-700);
}

.quick-filter.active {
  background: var(--primary);
  color: white;
}

.quick-filter:hover:not(.active) {
  background: var(--gray-200);
}

/* Products Grid */
.products-container {
  display: grid;
  gap: 24px;
}

.products-container.grid-view {
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.products-container.list-view {
  grid-template-columns: 1fr;
}

.products-container.list-view .product-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  height: 150px;
  min-height: 150px;
  max-height: 150px;
}

.products-container.list-view .product-image-container {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
}

.products-container.list-view .product-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* List view header with title, rating, and price in one row */
.products-container.list-view .product-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.products-container.list-view .product-title {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.products-container.list-view .product-rating {
  margin: 0;
}

/* Move footer content inline in list view */
.products-container.list-view .product-footer {
  display: none; /* Hide the separate footer */
}

.products-container.list-view .product-price-inline {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Product Cards - MQL5 Style */
.product-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 280px;
  max-height: 280px;
  min-height: 280px;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  z-index: 10;
  height: 280px;
  max-height: 280px;
  min-height: 280px;
}

.product-image-container {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.product-card:hover .product-image {
  transform: scale(1.02);
}

/* Remove overlay and unused elements */

.product-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px 0;
  line-height: 1.3;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.product-card:hover .product-title {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: auto;
}

.stars {
  display: flex;
  gap: 1px;
}

.stars i {
  color: #fbbf24;
  font-size: 0.75rem;
}

.rating-text {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.review-count {
  font-size: 0.7rem !important;
  color: var(--gray-500) !important;
  font-weight: 400 !important;
  margin-top: 0.25rem;
  display: block;
}

.product-type {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 3px 6px;
  border-radius: var(--border-radius-sm);
  font-size: 0.7rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
}

/* Hide elements not needed in default state */
.product-type,
.product-description,
.product-author,
.product-downloads,
.product-hover-actions {
  display: none;
}

/* Hide inline price and header rating in grid view */
.product-price-inline,
.product-header .product-rating {
  display: none;
}

/* Show description in list view only */
.products-container.list-view .product-description {
  display: block;
  color: var(--gray-600);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 8px 0;
  flex-grow: 1;
}

/* Show inline elements in list view */
.products-container.list-view .product-price-inline,
.products-container.list-view .product-header .product-rating {
  display: flex;
}

/* Hide grid rating in list view */
.products-container.list-view .product-rating-grid {
  display: none;
}

.product-card:hover .product-image-container {
  display: none;
}

/* Don't hide image container in list view on hover */
.products-container.list-view .product-card:hover .product-image-container {
  display: flex;
}

.product-card:hover .product-content {
  display: none;
}

/* Don't hide content in list view on hover */
.products-container.list-view .product-card:hover .product-content {
  display: flex;
}

.product-card:hover .product-hover-layout {
  display: flex;
  flex-direction: column;
  height: calc(100% - 44px); /* Subtract footer height */
  padding: 0;
}

/* Don't show hover layout in list view */
.products-container.list-view .product-card:hover .product-hover-layout {
  display: none;
}

.product-hover-header {
  display: none;
  border-bottom: 1px solid var(--gray-200);
  padding: 12px;
  background: var(--gray-50);
  flex-shrink: 0;
}

.product-card:hover .product-hover-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-hover-image {
  width: 60px;
  height: 45px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--gray-200);
}

.product-hover-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-hover-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  overflow: hidden;
}

.product-hover-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-hover-description {
  display: none;
  flex: 1;
  padding: 12px;
  color: var(--gray-600);
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-y: auto;
}

.product-card:hover .product-hover-description {
  display: block;
}

/* Don't show hover description in list view */
.products-container.list-view .product-card:hover .product-hover-description {
  display: none;
}

/* Clean simple design - no extra elements */

/* Badges for product cards */
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

/* Product Footer with Price */
.product-footer {
  border-top: 1px solid var(--gray-200);
  padding: 10px 12px;
  background: var(--gray-50);
  margin-top: auto;
}

.product-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
}

.price-free {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.price-currency {
  color: var(--gray-600);
  font-size: 0.8rem;
  font-weight: 500;
}

.price-value {
  color: var(--gray-900);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Clean simple design - no extra elements */

/* Pagination */
.pagination-section {
  text-align: center;
  padding: 40px 0;
}

.load-more-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.load-more-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.pagination-info {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
  background: var(--gradient-dark);
  color: white;
  padding: 60px 0;
}

.newsletter-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-text h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.newsletter-text p {
  opacity: 0.9;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  min-width: 300px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
  background: var(--accent-hover);
}

/* Responsive Design */
@media (max-width: 1400px) {
  .products-container.grid-view {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .products-container.grid-view {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .marketplace-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filter-sidebar {
    position: static;
    max-height: none;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-showcase {
    max-width: 480px;
  }

  .showcase-carousel {
    max-width: 400px;
    margin: 0 auto 24px;
  }

  .products-container.grid-view {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .marketplace-section .container {
    padding: 0 30px;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    gap: 40px;
  }

  .hero-showcase {
    max-width: 350px;
  }

  .showcase-card {
    height: 300px;
    max-height: 300px;
    min-height: 300px;
  }

  .showcase-image {
    height: 170px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .marketplace-section .container {
    padding: 0 20px;
  }

  .hero-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .authors-track {
    gap: 16px;
  }

  .author-card {
    min-width: 160px;
  }

  .products-container.grid-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .marketplace-header {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .products-container.grid-view {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }

  .product-card {
    min-height: 260px;
  }

  .product-image-container {
    height: 140px;
  }

  .products-container.list-view .product-card {
    flex-direction: column;
  }

  .products-container.list-view .product-image-container {
    width: 100%;
    height: 140px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-content {
    flex-direction: column;
    gap: 40px;
  }

  .product-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .showcase-card {
    height: 280px;
    max-height: 280px;
    min-height: 280px;
  }

  .showcase-content {
    padding: 12px;
  }

  .showcase-image {
    height: 140px;
  }

  .showcase-title {
    font-size: 0.85rem;
  }

  .showcase-rating {
    margin-bottom: 2px;
  }

  .showcase-rating i {
    font-size: 0.7rem;
  }

  .showcase-rating-text {
    font-size: 0.7rem;
  }

  .showcase-review-count {
    font-size: 0.65rem;
  }

  .showcase-controls {
    margin-top: 16px;
    padding: 0 12px;
    gap: 20px;
  }

  .showcase-indicators {
    gap: 10px;
  }

  .indicator-dot {
    width: 10px;
    height: 10px;
  }

  .indicator-dot.active {
    width: 28px;
    border-radius: 5px;
  }

  .showcase-nav {
    gap: 10px;
  }

  .showcase-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .quick-filters {
    justify-content: center;
  }

  .hero-showcase {
    max-width: 100%;
  }

  .showcase-carousel {
    max-width: 100%;
  }

  .showcase-card {
    height: 260px;
    max-height: 260px;
    min-height: 260px;
  }

  .showcase-image {
    height: 120px;
  }

  .showcase-content {
    padding: 14px;
  }

  .showcase-title {
    font-size: 0.8rem;
  }

  .showcase-rating i {
    font-size: 0.65rem;
  }

  .showcase-rating-text {
    font-size: 0.65rem;
  }

  .showcase-review-count {
    font-size: 0.6rem;
  }

  .showcase-controls {
    margin-top: 12px;
    padding: 0 10px;
    gap: 16px;
  }

  .showcase-indicators {
    gap: 8px;
  }

  .indicator-dot {
    width: 8px;
    height: 8px;
  }

  .indicator-dot.active {
    width: 24px;
    border-radius: 4px;
  }

  .showcase-nav {
    gap: 8px;
  }

  .showcase-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    border-width: 1.5px;
  }
}

/* Custom scrollbar for webkit browsers */
.filter-sidebar::-webkit-scrollbar,
.authors-track::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.filter-sidebar::-webkit-scrollbar-track,
.authors-track::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb,
.authors-track::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover,
.authors-track::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Loading states */
.product-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.product-card.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeIn 0.5s ease-out;
}

.featured-card {
  animation: fadeIn 0.5s ease-out;
}

.author-card {
  animation: fadeIn 0.5s ease-out;
}
