* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --brand: #E84646;
  --brand-dark: #C03030;
  --brand-light: #FFF5F5;
  --brand-mid: #FECACA;
  --navy: #111827;
  --navy2: #1F2937;
  --navy3: #374151;
  --surf: #fff;
  --surf2: #F9FAFB;
  --surf3: #F3F4F6;
  --bdr: #E5E7EB;
  --bdr2: #D1D5DB;
  --t1: #111827;
  --t2: #6B7280;
  --t3: #9CA3AF;
  --green: #059669;
  --green-bg: #F0FAF6;
  --green-bdr: #D1FAE5;
  --amber: #D97706;
  --amber-bg: #FFFBEB;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .07);
}

html {
  font-size: 16px;
  scroll-behavior: smooth
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--surf3);
  color: var(--t1);
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

/* ─── NAV ─── */
.nav {
  background: var(--surf);
  border-bottom: 1px solid var(--bdr);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm)
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.25rem
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--t1);
  text-decoration: none;
  letter-spacing: -.5px;
  flex-shrink: 0
}

.logo span {
  color: var(--brand)
}

.nav-search {
  flex: 1;
  max-width: 440px;
  position: relative;
  margin-top: 20px;
}

.nav-search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--bdr2);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--t1);
  background: var(--surf2);
  outline: none;
  transition: all .15s;
  margin: 0px;
}

.nav-search input:focus {
  border-color: var(--brand);
  background: var(--surf);
  box-shadow: 0 0 0 3px rgba(232, 70, 70, .09)
}

.nav-search i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--t3)
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem
}

.nav-link {
  font-size: 14px;
  color: var(--t2);
  text-decoration: none;
  transition: color .15s
}

.nav-link:hover {
  color: var(--t1)
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--bdr)
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

/* ─── CATEGORY HERO STRIP ─── */
.cat-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy2) 55%, #1e3a5f 100%);
  border-bottom: 1px solid var(--navy3);
  padding: 1.4rem 1.5rem;
}

.cat-hero-inner {
  max-width: 1200px;
  margin: 0 auto
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  margin-bottom: .75rem;
  flex-wrap: wrap
}

.breadcrumb a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: color .15s
}

.breadcrumb a:hover {
  color: #fff
}

.breadcrumb i {
  font-size: 12px;
  color: rgba(255, 255, 255, .25)
}

.cat-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  margin-bottom: .35rem
}

.cat-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  max-width: 640px;
  line-height: 1.6
}

.cat-pills {
  display: flex;
  gap: 8px;
  margin-top: .75rem;
  flex-wrap: wrap
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .1);
  border: 0.5px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 20px
}

.cat-pill i {
  font-size: 12px;
  color: rgba(255, 255, 255, .5)
}

/* ─── SORT BAR ─── */
.sort-bar {
  background: var(--surf);
  border-bottom: 1px solid var(--bdr)
}

.sort-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap
}

.results-count {
  font-size: 14px;
  color: var(--t2)
}

.results-count strong {
  color: var(--t1)
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: .75rem
}

.sort-label {
  font-size: 13px;
  color: var(--t2);
  white-space: nowrap
}

.sort-select {
  padding: 6px 28px 6px 11px;
  border: 1px solid var(--bdr2);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--t1);
  background: var(--surf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 9px center;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .15s
}

.sort-select:focus {
  border-color: var(--brand)
}

.view-toggle {
  display: flex;
  border: 1px solid var(--bdr2);
  border-radius: var(--r-sm);
  overflow: hidden
}

.vt-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background: var(--surf);
  color: var(--t3);
  transition: all .15s
}

.vt-btn.active {
  background: var(--brand);
  color: #fff
}

.vt-btn:hover:not(.active) {
  background: var(--surf2)
}

/* ─── BODY GRID ─── */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start
}

/* ─── SIDEBAR ─── */
.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.filter-card {
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm)
}

.fc-head {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--bdr);
  background: var(--surf2);
  display: flex;
  align-items: center;
  justify-content: space-between
}

.fc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  display: flex;
  align-items: center;
  gap: 6px
}

.fc-title i {
  font-size: 16px;
  color: var(--brand)
}

.fc-clear {
  font-size: 11px;
  color: var(--brand);
  cursor: pointer;
  font-weight: 500
}

.fc-body {
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem
}

.filter-group {}

.fg-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .45rem
}

.filter-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  cursor: pointer
}

.fo-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--t2)
}

.fo-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--bdr2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s
}

.fo-check.checked {
  background: var(--brand);
  border-color: var(--brand)
}

.fo-check.checked i {
  font-size: 10px;
  color: #fff
}

.fo-count {
  font-size: 11px;
  color: var(--t3);
  background: var(--surf2);
  padding: 1px 6px;
  border-radius: 4px;
  border: 0.5px solid var(--bdr)
}

.fg-divider {
  height: 0.5px;
  background: var(--bdr);
  margin: .7rem 0
}

/* Rating filter */
.rating-stars {
  display: flex;
  gap: 1px;
  font-size: 13px;
  color: #F59E0B
}

.rating-star-empty {
  color: var(--bdr2)
}

/* Range slider */
.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .35rem;
  font-size: 12px;
  color: var(--t2)
}

input[type=range] {
  width: 100%;
  accent-color: var(--brand);
  height: 3px;
  border-radius: 2px;
  cursor: pointer
}

/* ─── SELLER CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.cards-grid.list-view {
  grid-template-columns: 1fr
}

.seller-card {
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.seller-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px)
}

/* Card top cover strip */
.sc-cover {
  height: 56px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sc-body {
  padding: .9rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem
}

/* Avatar overlapping cover */
.sc-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -26px;
  margin-bottom: .3rem;
}

.sc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border: 2.5px solid var(--surf);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .1);
  flex-shrink: 0;
}

.sc-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--surf);
  border: 0.5px solid var(--bdr);
  border-radius: 6px;
  padding: 3px 8px;
}

.sc-rating-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--t1)
}

.sc-rating-star {
  font-size: 12px;
  color: #F59E0B
}

.sc-rating-ct {
  font-size: 10px;
  color: var(--t3)
}

.sc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.3
}

.sc-bio {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical
}

.sc-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: .5rem 0;
  border-top: 0.5px solid var(--bdr);
  border-bottom: 0.5px solid var(--bdr)
}

.sc-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--t2)
}

.sc-meta-item i {
  font-size: 13px;
  color: var(--t3)
}

.sc-meta-item strong {
  color: var(--t1);
  font-weight: 600
}

.sc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px
}

.badge.verified {
  background: var(--green-bg);
  color: var(--green);
  border: 0.5px solid var(--green-bdr)
}

.badge.verified i {
  font-size: 11px
}

.sc-footer {
  padding: .7rem 1rem;
  border-top: 0.5px solid var(--bdr);
  background: var(--surf2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px
}

.sc-footer-info {
  font-size: 11px;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 4px
}

.sc-footer-info i {
  font-size: 13px;
  color: var(--t3)
}

.btn-pay-card {
  padding: 6px 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-pay-card:hover {
  background: var(--brand-dark)
}

.btn-pay-card i {
  font-size: 13px
}

/* List view card */
.cards-grid.list-view .seller-card {
  flex-direction: row
}

.cards-grid.list-view .sc-cover {
  width: 6px;
  height: auto;
  border-radius: 0
}

.cards-grid.list-view .sc-body {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem
}

.cards-grid.list-view .sc-avatar-row {
  margin-top: 0;
  margin-bottom: 0;
  align-items: center;
}

.cards-grid.list-view .sc-bio {
  display: none
}

.cards-grid.list-view .sc-meta {
  border: none;
  padding: 0
}

.cards-grid.list-view .sc-footer {
  border-top: none;
  background: transparent;
  padding: .9rem .9rem .9rem .4rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  flex-shrink: 0
}

/* ─── EMPTY / LOAD MORE ─── */
.load-more-wrap {
  text-align: center;
  padding: 1.5rem 0
}

.btn-load {
  padding: 10px 28px;
  background: var(--surf);
  border: 1px solid var(--bdr2);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 7px
}

.btn-load:hover {
  border-color: var(--brand);
  color: var(--brand)
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  margin-top: auto
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 260px 1fr 1fr 200px;
  gap: 2.5rem
}

.f-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  margin-bottom: .6rem
}

.f-logo span {
  color: var(--brand)
}

.f-desc {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.7
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: .75rem
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem
}

.footer-col ul li a {
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 4px
}

.footer-col ul li a::before {
  content: '›';
  color: var(--brand)
}

.footer-col ul li a:hover {
  color: #fff
}

.f-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .55rem;
  font-size: 13px;
  color: #9CA3AF
}

.f-contact i {
  font-size: 14px;
  color: var(--brand);
  flex-shrink: 0
}

.footer-bottom {
  border-top: 1px solid var(--navy3);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem
}

.footer-copy {
  font-size: 12px;
  color: #6B7280
}

.footer-legal {
  display: flex;
  gap: 1rem
}

.footer-legal a {
  font-size: 12px;
  color: #6B7280;
  text-decoration: none
}

.footer-legal a:hover {
  color: #fff
}

.footer-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6B7280
}

.footer-secure i {
  color: var(--green);
  font-size: 13px
}

/* Active filter pill */
#cardsGrid {
  width: 930px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: .75rem
}

.af-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-light);
  border: 0.5px solid var(--brand-mid);
  color: var(--brand);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px
}

.af-pill i {
  font-size: 12px;
  cursor: pointer
}

/* Responsive */
@media(max-width:1000px) {
  .page-body {
    grid-template-columns: 210px 1fr
  }
}

@media(max-width:780px) {
  .page-body {
    grid-template-columns: 1fr
  }

  .sidebar {
    position: static;
    display: none
  }

  .sidebar.open {
    display: flex
  }

  .cards-grid {
    grid-template-columns: 1fr
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem
  }

  .footer-brand {
    grid-column: 1/-1
  }
}

@media(max-width:520px) {
  .cat-hero {
    padding: 1rem
  }

  .footer-inner {
    grid-template-columns: 1fr
  }
}