/* 휴대폰 한눈에 보기 (옆커폰 /phones 스타일) */
.phone-list-page {
  background: #f4f6f9;
  padding: 0 0 56px;
  min-height: 60vh;
}

.phone-list-inner {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.phone-list-hero {
  padding: 20px 0 8px;
}
.phone-list-hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
}
.phone-list-hero p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.phone-list-filters {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f4f6f9;
  padding: 12px 0 14px;
  margin-bottom: 8px;
}
.filter-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.filter-row:last-child {
  margin-bottom: 0;
}
.filter-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  color: #374151;
  min-width: 36px;
}

.cat-tabs {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.cat-tab {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.cat-tab.active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.chip-scroll::-webkit-scrollbar {
  height: 4px;
}
.filter-chip {
  flex: 0 0 auto;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.filter-chip:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
}
.filter-chip.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
}
.list-count {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}
.sort-tabs {
  display: flex;
  gap: 6px;
}
.sort-tab {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.sort-tab.active {
  border-color: #1d4ed8;
  color: #1d4ed8;
  background: #eff6ff;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) {
  .phone-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
@media (min-width: 1024px) {
  .phone-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.phone-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}
.phone-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.phone-card-thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}
.phone-card-thumb img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
}
.phone-card-thumb .placeholder {
  font-size: 42px;
  opacity: 0.35;
}
.phone-card-cap {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}
.phone-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.phone-card-name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.phone-card-samsung-badge {
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.45;
}
.phone-card-samsung-badge strong {
  display: block;
  color: #dc2626;
  font-size: 12px;
  margin-top: 2px;
}
.carrier-rows {
  display: grid;
  gap: 6px;
  margin-top: auto;
}
.carrier-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: baseline;
  font-size: 12px;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 10px;
}
.carrier-row-label {
  font-weight: 800;
  color: #374151;
  grid-column: 1 / -1;
  font-size: 11px;
}
.carrier-row-device {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 11px;
}
.carrier-row-price {
  font-weight: 900;
  color: #111827;
  font-size: 14px;
  text-align: right;
}
.carrier-row-refund {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 800;
  color: #dc2626;
}

.phone-list-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #9ca3af;
  font-size: 14px;
}

.phone-list-rec {
  margin-top: 32px;
}
.phone-list-rec h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.phone-list-loading {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 14px;
}
