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

body {
  font-family: Arial, sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 30px;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333333;
}

.search-and-login {
  display: flex;
  align-items: center;
}

.search-and-login select {
  margin-right: 10px;
  padding: 5px 10px;
}

.search-and-login input {
  padding: 5px 10px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.search-and-login button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.login-register {
  margin-left: 20px;
  text-decoration: none;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 5px 10px;
  border-radius: 3px;
}

.promotion-link {
  margin-left: 10px;
  color: #ff0000;
  text-decoration: none;
}

aside {
  width: 200px;
  background-color: #f4f4f4;
  padding: 10px;
  height: 100vh;
  overflow-y: auto;
}

aside ul {
  list-style: none;
}

aside ul li {
  margin-bottom: 5px;
  cursor: pointer;
}

aside ul li a {
  text-decoration: none;
  color: #333333;
}

.selected {
  font-weight: bold;
  color: #007bff;
}

.category-section {
  margin-bottom: 15px;
}

.category-section h3 {
  margin-bottom: 10px;
}

.other-links h3 {
  margin-bottom: 10px;
}

main {
  flex: 1;
  padding: 20px;
}

.filter-bar {
  margin-bottom: 20px;
}

.filter-bar a {
  margin-right: 10px;
  text-decoration: none;
  color: #333333;
}

.custom-design-link {
  float: right;
  color: #007bff;
  text-decoration: none;
}

.template-gallery {
  display: flex;
  flex-wrap: wrap;
}

.template-item {
  width: 180px;
  margin: 10px;
  position: relative;
}

.template-item img {
  width: 100%;
  height: auto;
}

.new-label {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: #ff0000;
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 2px;
}

.type-label {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 2px;
}