﻿:root {
  --ex-bg: #f7f7f5;
  --ex-card: #ffffff;
  --ex-text: #1f1f1f;
  --ex-muted: #6a6a6a;
  --ex-border: #e8e6e0;
  --ex-accent: #111111;
}

* { box-sizing: border-box; }

body.explore-page {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--ex-bg);
  color: var(--ex-text);
}

.explore-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.explore-title {
  margin: 6px 0 14px;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 800;
}

.explore-category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}
.explore-category-row::-webkit-scrollbar { display: none; }

.explore-chip {
  border: 1px solid var(--ex-border);
  background: var(--ex-card);
  color: var(--ex-text);
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.explore-chip:hover,
.explore-chip.active {
  background: var(--ex-accent);
  color: #fff;
  border-color: var(--ex-accent);
}

.explore-type-toggle {
  margin: 16px 0;
  display: inline-flex;
  border: 1px solid var(--ex-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.explore-type-btn {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.explore-type-btn.active {
  background: var(--ex-accent);
  color: #fff;
}

.explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.explore-card {
  background: var(--ex-card);
  border: 1px solid var(--ex-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.explore-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.explore-card-media {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  background: #eceae3;
}

.explore-card-body {
  padding: 12px;
}
.explore-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.explore-card-meta {
  margin: 6px 0 0;
  font-size: .84rem;
  color: var(--ex-muted);
}
.explore-card-price {
  margin-top: 8px;
  font-weight: 800;
  font-size: 1rem;
}

.explore-loading,
.explore-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 10px;
  color: var(--ex-muted);
}

.explore-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #ddd;
  border-top-color: #111;
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: ex-spin .8s linear infinite;
}

@keyframes ex-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 640px) {
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .explore-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
