/* Marketplace-specific styles - Blueprint Improved Theme */

.mp-hero { padding: 100px 24px 40px; text-align: center; min-height: auto; }
.mp-hero .bp-hero__title { font-size: 2rem; margin-bottom: 8px; }
.mp-hero .bp-hero__subtitle { text-align: center; font-size: 0.9rem; margin-bottom: 12px; color: var(--bp-text-tertiary); }

/* Order Modal */
#orderModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  display: none;
}
#orderModal > div {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius-lg);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
#orderModal h2 {
  font-family: var(--bp-font-display);
  color: var(--bp-text-primary);
  margin-bottom: 8px;
}
#orderModal p {
  font-family: var(--bp-font-mono);
  color: var(--bp-cyan);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
#orderModal .modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
#orderModal .bp-input {
  width: 100%;
  margin-bottom: 12px;
}

/* Admin Create Product FAB */
.mp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bp-cyan);
  color: var(--bp-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
  transition: var(--bp-transition);
  z-index: 100;
}
.mp-fab:hover {
  background: #33ddff;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.5);
}
.mp-fab:active {
  transform: scale(0.98);
}
.mp-fab:focus-visible {
  outline: 2px solid var(--bp-cyan);
  outline-offset: 3px;
}
.mp-fab svg {
  width: 24px;
  height: 24px;
}
@media (max-width: 768px) {
  .mp-fab {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  .mp-fab svg {
    width: 20px;
    height: 20px;
  }
}

/* Skeleton loading */
.mp-skeleton {
  background: var(--bp-line-subtle);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.mp-skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.12) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.mp-prod__img.mp-skeleton { height: 100px !important; background: var(--bp-line-subtle) !important; margin-bottom: 14px; }
.mp-prod__meta.mp-skeleton { width: 80px; height: 12px; margin-bottom: 6px; }
.mp-prod__title.mp-skeleton { width: 90%; height: 18px; margin-bottom: 6px; }
.mp-prod__txt.mp-skeleton { width: 100%; height: 14px; margin-bottom: 8px; }
.mp-prod__txt.mp-skeleton:last-of-type { width: 70%; margin-bottom: 14px; }
.mp-prod__pr.mp-skeleton { width: 60px; height: 18px; }
.mp-prod__btn.mp-skeleton { width: 100px; height: 32px; border-radius: var(--bp-radius-md); }
.mp-hero__desc {
  font-size: 0.95rem;
  max-width: 480px;
  color: var(--bp-text-secondary);
  margin: 0 auto 20px;
  line-height: 1.6;
  text-align: center;
}
.mp-hero .bp-hero__subtitle { text-align: center; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .mp-skeleton {
    animation: none;
  }
}

.mp-search { position: relative; width: 100%; max-width: 480px; margin: 0 auto 24px; }
.mp-search .bp-input { width: 100%; padding: 12px 48px 12px 16px; font-size: 0.875rem; font-family: var(--bp-font-mono); }
.mp-search__btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--bp-radius-sm);
  color: var(--bp-text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.mp-search__btn:hover {
  color: var(--bp-cyan);
  background: var(--bp-cyan-dim);
  border-color: var(--bp-cyan);
}
.mp-search__btn:focus-visible {
  outline: 2px solid var(--bp-cyan);
  outline-offset: 2px;
}

.mp-cats {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.mp-cat {
  font-family: var(--bp-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-md);
  background: transparent;
  color: var(--bp-text-tertiary);
  cursor: pointer;
  transition: var(--bp-transition);
}
.mp-cat:hover, .mp-cat--active {
  border-color: var(--bp-cyan);
  background: var(--bp-cyan-dim);
  color: var(--bp-cyan);
}

/* Product grid */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.mp-prod {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-lg);
  padding: 20px;
  transition: var(--bp-transition);
}
.mp-prod:hover {
  border-color: var(--bp-cyan);
  box-shadow: 0 0 20px var(--bp-cyan-glow);
  transform: translateY(-2px);
}
.mp-prod__img {
  height: 100px;
  background: linear-gradient(135deg, var(--bp-cyan-dim), rgba(79, 135, 255, 0.08));
  border-radius: var(--bp-radius-md);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bp-font-mono);
  font-size: 0.72rem;
  color: var(--bp-text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mp-prod__meta {
  font-family: var(--bp-font-mono);
  font-size: 0.62rem;
  color: var(--bp-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mp-prod__title {
  font-family: var(--bp-font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--bp-text-primary);
  margin-bottom: 6px;
}
.mp-prod__txt {
  font-size: 0.86rem;
  color: var(--bp-text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}
.mp-prod__ft {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--bp-line-subtle);
}
.mp-prod__pr {
  font-family: var(--bp-font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--bp-cyan);
}
.mp-prod__ln {
  font-family: var(--bp-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bp-text-tertiary);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-md);
  transition: var(--bp-transition);
}
.mp-prod__ln:hover {
  border-color: var(--bp-cyan);
  color: var(--bp-cyan);
  background: var(--bp-cyan-dim);
}
.mp-prod__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bp-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bp-cyan);
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--bp-cyan);
  border-radius: var(--bp-radius-md);
  transition: var(--bp-transition);
}
.mp-prod__btn:hover {
  background: var(--bp-cyan);
  color: var(--bp-bg);
}
.mp-prod__btn svg {
  transition: transform 0.2s ease;
}
.mp-prod__btn:hover svg {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .mp-hero { padding: 90px 16px 32px; }
  .mp-hero__desc { font-size: 0.95rem; padding: 0 8px; }
  .mp-cats { gap: 8px; margin-bottom: 24px; }
  .mp-cat { font-size: 0.65rem; padding: 6px 14px; }
  .mp-grid { grid-template-columns: 1fr; gap: 16px; }
  .mp-prod { padding: 16px; }
  .mp-prod__img { height: 80px; }
}

@media (max-width: 480px) {
  .mp-hero { padding: 80px 12px 28px; }
  .mp-hero__desc { font-size: 0.9rem; }
  .mp-cats { flex-direction: column; align-items: stretch; }
  .mp-cat { text-align: center; }
  .mp-search { max-width: 100%; }
}
