/* ============================================================
   sell-series.css  —  Swopsmart "Select a series" page
   (e.g. /sell/cell-phones/samsung). The step after choosing a brand.
   Page-specific layout. The breadcrumb (.crumbs), shared search
   input, section-header system, .reveal animation, and trust section
   live in main.css.

   Same 1440px-wide container as the brand page. Each card shows a
   product photo at its natural size, capped at 150px (matching the
   existing site), sitting directly on the white card.
   ============================================================ */

/* ---- Section wrapper ---- */
.series {
  padding: var(--section-py) 20px;
  background: var(--bg);
}
.series-inner { max-width: 1440px; margin: 0 auto; }
@media (max-width: 640px) {
  .series { padding-left: 16px; padding-right: 16px; }
}

/* ---- Page head (centered title + search) ---- */
.series-head { text-align: center; margin-bottom: 48px; }
.series-head .section-title { max-width: 100%; margin-left: auto; margin-right: auto; }

/* ---- Series grid ---- */
.series-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .series-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .series-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 540px)  { .series-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px)  { .series-grid { grid-template-columns: 1fr; } }

.series-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 28px 20px 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; text-align: center; gap: 18px;
  min-height: 230px;
  box-shadow: 0 1px 2px rgba(14,42,34,0.03), 0 2px 8px rgba(14,42,34,0.03);
  transition: transform 0.3s ease, border-color 0.2s, box-shadow 0.25s;
}
.series-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: 0 4px 14px rgba(14,42,34,0.06);
}

/* Photo well — natural-size image capped at 150px (matches existing
   site), centered on the white card with no tinted background. */
.series-photo {
  flex: 1;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.series-photo img {
  height: auto;
  max-width: 120px;   /* matches product cards (sell-product.css) */
  max-height: 120px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.series-card:hover .series-photo img { transform: scale(1.03); }

.series-name {
  font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--forest);
  line-height: 1.3; text-wrap: balance;
  margin-top: auto;
}

/* ---- Empty state ---- */
.no-results {
  text-align: center; padding: 60px 20px;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
}
.no-results h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.no-results p { color: var(--ink-2); font-size: 14px; }
