:root {
  --bg: #ffffff;
  --text: #111111;
  --text-light: #666666;

  --border: #e5e7eb;

  --blue: #6bb8ff;
  --green: #8de2b3;
  --red: #ff8f8f;

  --shadow:
    0 10px 30px rgba(0,0,0,0.06);

  --radius: 22px;

  --transition: 0.3s ease;
}

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

body{
  font-family:"Inter",sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  width:100%;
  display:block;
}

.container{
  width:min(1200px, calc(100% - 40px));
  margin-inline:auto;
}

/* HEADER */

.header{
  position:sticky;
  top:0;
  z-index:1000;

  background:rgba(255,255,255,0.9);

  backdrop-filter:blur(12px);

  border-bottom:1px solid var(--border);
}

.nav-container{
  height:82px;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  font-size:1.6rem;
  font-weight:800;
}

.logo span{
  color:var(--blue);
}

.nav{
  display:flex;
  gap:24px;
}

.nav a{
  color:var(--text-light);
  font-weight:500;
}

.nav a:hover{
  color:var(--text);
}

/* HERO */

.profile-hero{
  padding:80px 0 50px;
}

.profile-box{
  background:#fafafa;

  border:1px solid var(--border);

  border-radius:36px;

  padding:48px;

  display:flex;
  gap:36px;
  align-items:center;
}

.profile-avatar{
  width:110px;
  height:110px;

  border-radius:50%;

  background:linear-gradient(
    135deg,
    var(--blue),
    var(--green)
  );

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:2.5rem;
  font-weight:800;
}

.profile-info h1{
  font-size:3rem;
  margin:16px 0;
}

.profile-info p{
  color:var(--text-light);
}

.tag{
  display:inline-flex;

  background:white;

  border:1px solid var(--border);

  padding:10px 16px;

  border-radius:999px;

  font-size:0.9rem;
  font-weight:600;
}

.profile-stats{
  display:flex;
  gap:18px;

  margin-top:28px;
}

.stat-card{
  background:white;

  border:1px solid var(--border);

  border-radius:20px;

  padding:20px 26px;
}

.stat-card h3{
  font-size:1.4rem;
  margin-bottom:6px;
}

.stat-card p{
  color:var(--text-light);
}

/* FILTERS */

.filters{
  padding:0 0 30px;
}

.filter-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.filter-grid input,
.filter-grid select{
  height:56px;

  border:1px solid var(--border);

  border-radius:16px;

  padding:0 18px;

  font-family:inherit;
  font-size:1rem;

  background:white;
}

/* LISTINGS */

.listings{
  padding:20px 0 80px;
}

.listing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.listing-card{
  background:#fafafa;

  border:1px solid var(--border);

  border-radius:28px;

  overflow:hidden;

  transition:var(--transition);
}

.listing-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow);
}

.listing-card img{
  height:240px;
  object-fit:cover;
}

.listing-content{
  padding:24px;
}

.listing-top{
  display:flex;
  gap:10px;

  flex-wrap:wrap;

  margin-bottom:16px;
}

.marketplace,
.condition{
  background:white;

  border:1px solid var(--border);

  border-radius:999px;

  padding:8px 12px;

  font-size:0.85rem;
  font-weight:600;
}

.listing-content h3{
  font-size:1.2rem;
  margin-bottom:14px;
}

.price{
  font-size:1.4rem;
  font-weight:700;

  margin-bottom:8px;
}

.shipping{
  color:var(--text-light);
  margin-bottom:20px;
}

.view-btn{
  display:flex;
  align-items:center;
  justify-content:center;

  height:50px;

  background:var(--blue);

  border-radius:16px;

  font-weight:700;
}

.loading{
  text-align:center;
  padding:60px 20px;
  color:var(--text-light);

  grid-column:1/-1;
}

/* HAMBURGER */

.hamburger{
  display:none;

  width:50px;
  height:50px;

  border:none;
  background:none;

  flex-direction:column;
  justify-content:center;

  gap:5px;
}

.hamburger span{
  width:24px;
  height:2px;

  background:black;
}

/* MOBILE */

@media (max-width:980px){

  .profile-box{
    flex-direction:column;
    align-items:flex-start;
  }

  .listing-grid{
    grid-template-columns:1fr 1fr;
  }

  .filter-grid{
    grid-template-columns:1fr;
  }

  .hamburger{
    display:flex;
  }

  .nav{
    position:absolute;

    top:82px;
    left:0;

    width:100%;

    background:white;

    border-bottom:1px solid var(--border);

    flex-direction:column;

    padding:24px;

    opacity:0;
    visibility:hidden;

    transition:var(--transition);
  }

  .nav.active{
    opacity:1;
    visibility:visible;
  }

}

@media (max-width:700px){

  .listing-grid{
    grid-template-columns:1fr;
  }

  .profile-info h1{
    font-size:2.2rem;
  }

  .profile-stats{
    flex-direction:column;
    width:100%;
  }

  .stat-card{
    width:100%;
  }

}