.fc-view-harness{
  height: calc(100vh) !important
}

/* === Marketplace Premium Styles === */
.marketplace-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0;
}

/* Sidebar Filters Accordion */
.market-filters-card {
  padding-right: 1.5rem;
}

.filter-section-wrapper {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.filter-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  letter-spacing: 0.05em;
  padding: 0.4rem 0;
}

[data-bs-theme="light"] .filter-section-title {
  color: #4338ca !important; /* Indigo oscuro para modo claro */
}

.filter-section-title i.chevron {
  transition: transform 0.3s ease;
  font-size: 0.6rem;
  opacity: 0.5;
}

.filter-section-title[aria-expanded="true"] i.chevron {
  transform: rotate(180deg);
}

/* Premium Product Grid - Self-Adapting / No Overlap */
.market-product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 1.5rem; 
}

.fd-product-card {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fd-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
}

.product-image-wrapper {
  background: rgba(255, 255, 255, 0.03);
  width: 100%;
  aspect-ratio: 1 / 1; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

/* Placeholder Icon Adaptive Color */
.product-image-wrapper i {
  color: rgba(255,255,255,0.1);
}

[data-bs-theme="light"] .product-image-wrapper i {
  color: rgba(0,0,0,0.1) !important;
}

.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #4f46e5;
  color: white !important;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 10;
}

[data-bs-theme="light"] .product-badge {
  background: #4338ca !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.supplier-tag {
  color: #818cf8 !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

[data-bs-theme="light"] .supplier-tag {
  color: #6366f1 !important;
}

.product-name-link h5 {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  line-height: 1.2;
  color: #ffffff; /* Dark mode default */
}

.current-price {
  color: #ffffff !important;
  font-size: 1.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.old-price {
  color: #94a3b8 !important;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}

/* Light Mode Card Fixes */
[data-bs-theme="light"] .fd-product-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

[data-bs-theme="light"] .product-image-wrapper {
  background: #f8fafc;
}

[data-bs-theme="light"] .product-name-link h5 {
  color: #1e293b !important; /* Light mode contrast */
}

[data-bs-theme="light"] .current-price {
  color: #0f172a !important; /* Light mode contrast */
}

[data-bs-theme="light"] .old-price {
  color: #64748b !important;
}

/* Offcanvas mobile adjustments */
.product-filter-offcanvas {
  background-color: #0f172a !important;
  color: white !important;
}

[data-bs-theme="light"] .product-filter-offcanvas {
  background-color: white !important;
  color: #0f172a !important;
}

/* === Product Page Premium Styles === */
.product-hero-bg {
  background: radial-gradient(circle at center, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
  border-radius: 20px;
}

.product-price-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
}

[data-bs-theme="light"] .product-price-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.seller-row {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.seller-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(129, 140, 248, 0.3);
  transform: translateX(4px);
}

[data-bs-theme="light"] .seller-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(129, 140, 248, 0.1);
  color: #818cf8;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
}

[data-bs-theme="light"] .feature-pill {
  background: #eef2ff;
  color: #4338ca;
}

.manuals-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.manuals-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(129, 140, 248, 0.2);
}

[data-bs-theme="light"] .manuals-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* --- LIGHT MODE REINFORCEMENTS (Product Page) --- */
[data-bs-theme="light"] h1.display-5,
[data-bs-theme="light"] .product-price-box h1,
[data-bs-theme="light"] .seller-identity .text-white,
[data-bs-theme="light"] .sellers-container h5,
[data-bs-theme="light"] .manuals-item .text-white,
[data-bs-theme="light"] .tab-pane .text-white {
  color: #0f172a !important; /* Dark Slate for high contrast in light mode */
}

[data-bs-theme="light"] .product-price-box .text-secondary {
  color: #64748b !important; /* Steel gray for secondary texts */
}

[data-bs-theme="light"] .old-price-line {
  color: #94a3b8 !important;
}

/* Night Mode contrast fixes for tiny details */
.product-price-box .text-secondary {
  color: #94a3b8 !important; /* Lighten gray in dark mode for readability */
}

.old-price-line {
  color: #64748b !important;
  opacity: 1 !important;
}
