@font-face {
  font-family: "Inter";
  src: url(asset/font/Inter-VariableFont_opsz\,wght.ttf);
}

:root {
  --primary-color: #131921;
  --secondary-color: #ffb647;
  --Tertiary-color: #ffffff;
  --text-color: #111111;
}

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

body {
  font-family: "Inter";
  overflow-x: hidden;
}

.header-section {
  background-color: var(--primary-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-section > a {
  letter-spacing: 2px;
  font-size: 2.5rem;
  text-decoration: none;
  font-size: 1.25rem;
  color: var(--Tertiary-color);
}

.search {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 2.9rem;
  background-color: var(--secondary-color);
  border-radius: 0px 5px 5px 0px;
  cursor: pointer;
}

.search:hover {
  background-color: #ea9e2c;
}

.search:focus {
  filter: invert(100%);
}
.cart > img {
  width: 2.2rem;
  filter: invert(100%);
  cursor: pointer;
}

.cart sub {
  color: var(--Tertiary-color);
  font-weight: 800;
  font-size: 18px;
}

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-bar > input {
  border: none;
  width: 35rem;
  height: 2.9rem;
  padding: 0px 15px;
}

.search-bar > input:focus {
  border: none;
  outline: none;
}

.search-bar > input::placeholder {
  color: #a79c9c;
  font-size: 15px;
  font-weight: 550;
}
.header-section #allSelect {
  border: none;
  outline: none;
  width: 4rem;
  height: 2.9rem;
  border-radius: 5px 0px 0px 5px;
  padding-left: 5px;
  background-color: #dcdada;
  cursor: pointer;
}

.header-section #allSelect:hover {
  background-color: #b1afaf;
}

.header-section #allSelect:focus {
  border: 2px solid var(--secondary-color);
}

.return-section {
  color: var(--Tertiary-color);
  font-size: 14px;
  cursor: pointer;
}

.sign-in-section {
  color: var(--Tertiary-color);
  font-size: 14px;
  cursor: pointer;
}

.container {
  padding: 0rem 2rem;
  margin-top: 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.card {
  max-width: 20rem;
  height: auto;
  transition: all 0.4s ease-in-out;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  cursor: pointer;
}

.card img {
  object-fit: contain;
  width: 100%;
  height: auto;
  background-color: #f7f7f7;
}

.card p {
  margin-top: 1rem;
}

.card > h3 {
  margin-top: 0.5rem;
}

.error {
  margin: 0 auto;
  display: flex;
  width: 80%;
  flex-grow: 1;
  height: 12rem;
  padding: 2rem 5rem;
  margin-top: 3rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  background-color: #ff0008;
  box-shadow: 2px 2px 14px rgb(255 1 1 / 90%);
  transition: all 0.6s ease;
  border-radius: 2rem;
}

.error:hover {
  transform: scale(1.05, 1.05);
}

.search-bar > input {
  flex-grow: 1;
}

.menuBar {
  display: none;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 999;
  cursor: pointer;
}

.mobile-links {
  padding: 1rem;
  filter: invert(100%);
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  background-color: white;
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: self-start;
}

.mobile-links > img {
  cursor: pointer;
  filter: invert(100%);
}

.mobile-links a {
  text-decoration: none;
  color: black;
}

.mobile-links p {
  margin: 1.5rem auto;
}

.card .description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1400px) and (max-width: 5000px) {
  .search-bar {
    width: 65%;
    height: auto;
  }
}

@media (max-width: 1280px) {
  .header-section > a {
    font-size: 16px;
  }

  .header-section #allSelect,
  .search {
    width: 3rem;
  }

  .search-bar > input {
    width: 30rem;
  }

  .return-section,
  .sign-in-section {
    font-size: 12px;
  }

  .cart > img {
    width: 2rem;
  }

  .cart sub {
    font-size: 14px;
  }
}

@media (max-width: 1100px) {
  .return-section,
  .sign-in-section,
  .cart {
    display: none;
  }

  .menuBar {
    display: block;
  }

  .search-bar > input {
    width: 32rem;
  }
}

@media (max-width: 800px) {
  .header-section > a {
    font-size: 0.9rem;
  }

  .search-bar > input {
    width: 20rem;
    height: 2.5rem;
  }

  .header-section #allSelect,
  .search {
    height: 2.5rem;
  }
}

@media (max-width: 645px) {
  .header-section > a {
    font-size: 0.7rem;
  }

  .search-bar > input {
    width: 15rem;
    height: 2.2rem;
  }

  .header-section #allSelect,
  .search {
    height: 2.2rem;
  }
}

@media (max-width: 552px) {
  .header-section {
    width: 100%;
    min-height: 8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 15px;
  }

  .search-bar {
    margin-top: 0rem;
    width: 100%;
    display: flex;
    order: 1;
  }

  .search-bar > input {
    flex-grow: 1;
    width: auto;
  }

  .search img {
    width: 1.2rem;
    height: auto;
  }

  .card {
    margin: 0 auto;
    width: 100%;
    min-height: 40rem;
    max-width: 30rem;
  }
}

@media (min-width: 320px) and (max-width: 551px) {
  .card {
    height: auto;
    min-height: initial;
  }

  .card .description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 319px) {
  .card {
    height: auto;
    min-height: initial;
  }
}

@media (min-width: 553px) and (max-width: 680px) {
  .search img {
    width: 1rem;
  }

  .search-bar > input::placeholder {
    font-size: 0.75rem;
  }
}

@media (min-width: 300px) and (max-width: 400px) {
  .search-bar > input::placeholder {
    font-size: 0.7rem;
  }

  .error {
    font-size: 1rem;
  }
}

@media (max-width: 350px) {
  .search-bar > input::placeholder {
    font-size: 0.6rem;
  }
}
