* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #EFEBCE;
  padding: 10px;
  color: #111;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0;
  gap: 10px;
}

.logo {
  display: flex;
  margin-left: 10%;
  font-weight: 800;
  font-size: 1.8em;
}

.search-bar {  
  width: 500px;
  background-color: transparent; 
  border: 1px solid black;      
  padding: 8px 12px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s, background-color 0.3s;
}
.search-transparent:focus {
  outline: none;                 
  border-color: #333;           
  background-color: rgba(0, 0, 0, 0.05); 
}


.nav-links {
  display: flex;
  gap: 5px;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #862E38;
  font-weight: 600;
}


.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  cursor: pointer;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
  gap: 10px;
}

.categories a {
  text-decoration: none;
  color: #692D8B;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
}

.categories a:hover {
  background: #b6a2c2;
  border-radius: 5px;
}

.poster-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.poster-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.poster-item:hover {
  transform: scale(1.02);
}


.poster-item img {
  width: 100px;
  height: auto;
  border-radius: 6px;
}


.poster-info {
  flex: 1;
}

.poster-info h3 {
  font-size: 16px;
  margin: 0 0 5px;
  font-weight: 600;
}

.poster-info .author {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.poster-info .price {
  font-size: 15px;
  font-weight: bold;
  color: #692D8B;
}

.footer {
    background: #1C3A3E;
    color: #ddd;
    padding: 40px 20px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 10px;
    margin-top: 20px;
}

.footer a { color: white;}

@media screen and (max-width: 600px) {
    header {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  .search-bar {
    width: 90%;
    margin-top: 10px;
  }

  .nav-links {
    justify-content: center;
  }

  .categories {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
  }

  .categories a {
    flex: none;
    font-size: 13px;
  }

  .poster-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .poster-item img {
    width: 60%;
  }

  .poster-info h3 {
    font-size: 14px;
  }

  .poster-info .price {
    font-size: 14px;
  }
}
