/* ===== Filter UI ===== */
.filter,
.sort {
    width: min(980px, 92vw);
    margin: 12px auto;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* sort 안의 p */
.sort>p {
    margin: 0 6px 0 0;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.2px;
}

/* select 공통 */
.filter select,
.sort select {
    appearance: none;
    /* 기본 화살표 제거 */
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 10px 38px 10px 12px;
    /* 오른쪽 화살표 공간 확보 */
    min-width: 140px;
    height: 40px;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background: #f8f9fb;

    font-size: 14px;
    line-height: 1;
    cursor: pointer;

    transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

/* hover / focus */
.filter select:hover,
.sort select:hover {
    border-color: rgba(0, 0, 0, 0.28);
}

.filter select:focus,
.sort select:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

/* 눌림 */
.filter select:active,
.sort select:active {
    transform: translateY(1px);
}

/* select 화살표 커스텀 (배경으로) */
.filter select,
.sort select {
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(0, 0, 0, 0.55) 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.55) 50%, transparent 50%),
        linear-gradient(to right, transparent, transparent);
    background-position:
        calc(100% - 18px) 16px,
        calc(100% - 12px) 16px,
        100% 0;
    background-size:
        6px 6px,
        6px 6px,
        2.6em 2.6em;
    background-repeat: no-repeat;
}

/* 옵션 텍스트 가독성 */
.filter option,
.sort option {
    background: #fff;
    color: #111;
}

/* 모바일 대응: 좁아지면 꽉 차게 */
@media (max-width: 520px) {

    .filter select,
    .sort select {
        flex: 1;
        min-width: 0;
    }

    .sort>p {
        width: 100%;
        margin-bottom: 4px;
    }
}




/* ===== Device Table ===== */
table {
  width: min(1200px, 95vw);
  margin: 20px auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden; /* 둥근 모서리 유지 */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  font-size: 14px;
}

/* 헤더 */
table th {
  background: linear-gradient(180deg, #f2f4f7, #e6e9ee);
  color: #222;
  font-weight: 700;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  text-align: center;
  white-space: nowrap;
}

/* 바디 셀 */
table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  color: #333;
}

/* 줄무늬 */
table tr:nth-child(even) td {
  background: #fafbfc;
}

/* hover */
table tbody tr:hover td {
  background: #eef3ff;
  transition: background .15s ease;
}

/* 브랜드 컬럼 강조 */
table td:nth-child(1) {
  font-weight: 700;
}

/* 모델명 컬럼 */
table td:nth-child(3) {
  text-align: left;
  padding-left: 14px;
}

/* 램 / 스토리지 pill 느낌 */
table td:nth-child(5),
table td:nth-child(6) {
  font-weight: 600;
  color: #1a3cff;
}

/* 색상 컬럼 살짝 연하게 */
table td:nth-child(7) {
  color: #666;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  table {
    font-size: 12px;
  }

  table th,
  table td {
    padding: 8px 6px;
  }

  /* 모델코드 숨기기 (모바일에선 잘 안봄) */
  table th:nth-child(4),
  table td:nth-child(4) {
    display: none;
  }
}
