:root {
  --bg-dark: #111111;
  --bg-card: #2a2a2a;
  --orange: #ff7a00;
  --orange-hover: #ff9a33;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--orange);
}

/* ===== HEADER ===== */
header {
  background-color: #000000;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--orange);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--orange-hover);
}

/* ===== CATEGORIES ===== */
.categories {
  max-width: 1200px;
  margin: 40px auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.category {
  background-color: var(--bg-card);
  width: 220px;
  padding: 18px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  color: var(--orange);
}

.category:hover {
  background-color: #333333;
}

/* ===== SUBCATEGORIES (HOVER) ===== */
.subcategories {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #2f2f2f;
  border-radius: 0 0 8px 8px;
  z-index: 100;
}

.subcategories div {
  padding: 10px;
  border-top: 1px solid #444444;
  font-weight: normal;
  color: var(--orange);
}

.subcategories div:hover {
  background-color: #1f1f1f;
  color: var(--orange-hover);
}

.category:hover .subcategories {
  display: block;
}

/* ===== SEARCH ===== */
.search-wrap {
  display: flex;
  justify-content: center;
  margin: 30px 0 50px;
}

.search-wrap input {
  width: 320px;
  padding: 10px;
  border-radius: 6px;
  border: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    text-align: center;
  }

  .logo {
    font-size: 28px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .nav a {
    font-size: 14px;
  }

  .categories {
    padding: 0 15px;
    gap: 12px;
  }

  .category {
    width: 100%;
    max-width: 400px;
  }

  .subcategories {
    position: static;
    border-radius: 8px;
    margin-top: 10px;
  }

  .search-wrap {
    padding: 0 15px;
  }

  .search-wrap input {
    width: 100%;
    max-width: 500px;
    font-size: 16px;
  }

  #listings {
    grid-template-columns: 1fr !important;
    justify-content: center !important;
    padding: 0 15px !important;
  }

  #listings > div {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }

  main {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* ===== SENDIT Scrollbars ===== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1f1f1f;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ff7a00;
    border-radius: 10px;
    border: 2px solid #1f1f1f;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff922b;
}

::-webkit-scrollbar-corner {
    background: #1f1f1f;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff7a00 #1f1f1f;
}