/* ============================================
   Suppliers List Page — Template 1
   카페24 미니멀 화이트 참고
   ============================================ */

.suppliers-page {
  max-width: 1300px;
  margin: 0 auto 80px;
  padding: 0 40px;
  min-height: calc(100vh - 200px);
}

/* ─── Title Area (replaces dark Hero) ─── */
.suppliers-hero {
  position: relative;
  background: #fff;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 40px;
  padding: 56px 0 36px;
  border-bottom: 1px solid #eee;
}

.hero-bg-pattern {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0;
}

.hero-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 13px;
  color: #aaa;
  margin: 0 0 32px;
  font-weight: 400;
}

/* ─── Search ─── */
.hero-search {
  max-width: 460px;
  margin: 0 auto;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.15s;
}

.search-input-wrap:focus-within {
  border-color: #111;
}

.search-icon {
  flex-shrink: 0;
  color: #ccc;
  margin-right: 10px;
}

.search-input-wrap input[type="text"] {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: #333;
  font-size: 13px;
  outline: none;
  min-width: 0;
}

.search-input-wrap input::placeholder {
  color: #ccc;
}

.search-input-wrap button {
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.search-input-wrap button:hover {
  background: #000;
}

.search-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: #bbb;
  font-size: 11px;
  text-decoration: none;
  transition: color 0.15s;
}

.search-reset:hover {
  color: #333;
}

/* ─── Stats ─── */
.suppliers-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stats-count {
  font-size: 12px;
  color: #aaa;
}

.stats-count strong {
  color: #111;
  font-weight: 700;
}

/* ─── Supplier Grid ─── */
.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ─── Supplier Card — 카페24 심플 ─── */
.s-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  text-decoration: none;
  color: #111;
  transition: border-color 0.15s;
}

.s-card::after {
  display: none;
}

.s-card:hover {
  border-color: #111;
}

/* Card Top */
.s-card-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.s-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #555;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.s-card:hover .s-card-avatar {
  transform: none;
}

.s-card-info {
  flex: 1;
  min-width: 0;
}

.s-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s-card-cate {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  color: #aaa;
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Card Description */
.s-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #aaa;
  margin: 0 0 14px;
  word-break: keep-all;
}

/* Card Bottom */
.s-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f5f5f5;
}

.s-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #ccc;
}

.meta-item svg {
  flex-shrink: 0;
  color: #ddd;
}

.s-card-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: color 0.15s;
}

.s-card:hover .s-card-arrow {
  color: #111;
  background: none;
  transform: none;
}

/* ─── Empty State ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  text-align: center;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}

.empty-state svg {
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* ─── Pagination ─── */
.tbl_pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.tbl_pagination > * {
  list-style: none;
}

.tbl_pagination li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 4px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.15s;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #999;
}

.tbl_pagination a {
  text-decoration: none;
}

.tbl_pagination a:hover li:not(.disabled):not(.active) {
  color: #111;
}

.tbl_pagination li.active {
  background: transparent;
  color: #111;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tbl_pagination li.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.tbl_pagination .arrow {
  position: relative;
  font-size: 0;
}

.tbl_pagination .arrow::before {
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1;
}

.tbl_pagination .arrow-prev-2::before { content: "\00AB"; }
.tbl_pagination .arrow-prev::before { content: "\2039"; font-size: 16px; }
.tbl_pagination .arrow-next::before { content: "\203A"; font-size: 16px; }
.tbl_pagination .arrow-next-2::before { content: "\00BB"; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .suppliers-page {
    padding: 0 24px;
  }

  .hero-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .suppliers-page {
    padding: 0 16px;
    min-height: calc(100vh - 150px);
  }

  .suppliers-hero {
    margin-bottom: 28px;
    padding: 40px 0 28px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 24px;
  }

  .search-input-wrap input[type="text"] {
    font-size: 12px;
  }

  .search-input-wrap button {
    padding: 8px 16px;
  }

  .suppliers-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .s-card {
    padding: 18px;
  }

  .s-card-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .s-card-name {
    font-size: 14px;
  }

  .tbl_pagination {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .suppliers-page {
    padding: 0 12px;
  }

  .suppliers-hero {
    padding: 28px 0 20px;
  }

  .hero-title {
    font-size: 18px;
  }

  .s-card {
    padding: 16px;
  }

  .s-card-name {
    font-size: 13px;
  }

  .s-card-desc {
    font-size: 12px;
  }
}