/* ============================================================
   sell-phone.css  —  Swopsmart "Select a brand" page (/sell/phone)
   Page-specific layout. The breadcrumb (.crumbs), the shared
   device-search input, the section-header system, the .reveal
   animation, and the trust section all live in main.css.

   This page's content container is intentionally WIDER than the
   site's standard sections (1440px vs the ~1200–1240 elsewhere).
   ============================================================ */

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

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

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

.brand-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 28px 20px 22px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  min-height: 200px;
  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;
}
.brand-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

/* Logo "well" — a fixed-height area so wordmarks and square marks
   of different proportions all sit on the same baseline. Logo files
   come from the existing asset library (assets/uploads/<brand>.svg). */
.brand-logo-well {
  flex: 1;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  min-height: 96px;
}
.brand-logo-well img {
  max-width: 70%;
  max-height: 56px;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.brand-card:hover .brand-logo-well img { transform: scale(1.04); }

.brand-name {
  font-size: 16px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--forest);
}

/* ---- 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; }
