@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');

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

:root {
  --background-color: #e5e5e5;
  --primary-color: #5b00d8;
  --white: #ffffff;
  --black: #000000;
  --light-gray: #c2cad0;
  --skyblue: #54c2f0;
  --footer-background-color: #7e7e7e;
  --footer-links-background-color: #e8e8e8;
  --text: #333333;
}

html,
body {
  height: 100%;
  background-color: var(--background-color);
}

body {
  font-family: 'Noto Sans KR';
  font-size: 14px;
  color: var(--text);
}

button {
  border: none;
  background-color: transparent;
}

a {
  text-decoration: none;
  color: var(--text);
}

.flex {
  display: flex;
}

/* header */
header {
  justify-content: space-between;
  align-items: center;
  height: 75px;
  background-color: var(--white);
  padding: 0 24px;
}

.header-logo {
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.header-logo img {
  width: 30px;
  height: 30px;
}

.header-logo h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1%;
}

.header-menus {
  gap: 14px;
  pointer-events: auto;
}

.header-menu-buttons {
  width: 21px;
  height: 24px;
}

/* main */
main {
  flex-direction: column;
}

/* 검색창 */
.search-container {
  background-color: var(--white);
  padding: 0 10px;
}

.search-form {
  width: 100%;
  height: 40px;
  padding: 0 6px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background-color: var(--white);
}

.search-form select,
.search-form input {
  height: 100%;
  border: none;
  outline: none;
  background-color: transparent;
}

.search-form select {
  border-right: 1px solid gray;
  width: 94px;
  color: var(--primary-color);
  font-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.search-form input {
  font-size: 14px;
  padding-left: 8px;
}

.searchbar {
  flex-grow: 1;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
}

#search-button {
  width: 22px;
  height: 22px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('./images/icons/search.svg');
}

/* 메인 버튼 */
.main-buttons-wrapper {
  background-color: white;
  justify-content: center;
  padding-top: 10px;
}

.main-buttons {
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.main-buttons-row {
  gap: 10px;
}

.main-button {
  align-items: center;
  justify-content: center;
  max-width: 195px;
  min-width: 165px;
  width: 100%;
  height: 100%;
}

.main-buttons img {
  display: block;
  width: 100%;
}

/* 베스트 컬렉션, 인기상품 */
.best-collection,
.best-items,
.most-popular,
.most-popular-items {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.best-collection {
  padding: 30px 0;
}

.most-popular {
  padding: 0 0 30px;
}

.best-items,
.most-popular-items {
  width: 95%;
  margin: 0 auto;
  padding: 4px;
  text-align: center;
}

.best-collection h2,
.most-popular h2 {
  font-size: 22px;
  font-weight: 400;
}

.best-items,
.most-popular-items {
  background-color: var(--white);
}

.best-items-title,
.most-popular-items-title {
  font-size: 22px;
  font-weight: 500;
}

.best-items-description,
.most-popular-items-description {
  font-size: 16px;
  font-weight: 400;
}

.most-popular-pagination {
  padding-top: 10px;
  align-items: center;
  gap: 8px;
}

.most-popular-pagination-dots {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: #666666;
}

.most-popular-pagination-dots:first-child {
  background-color: #333333;
}

/* FAQ */
.faq-wrapper {
  background-color: var(--white);
  margin-bottom: 50px;
}

.faq-container {
  padding: 36px 0 48px;
  flex-direction: column;
  width: 100%;
}

#faq-title {
  font-size: 16px;
  font-weight: 500;
  padding: 0 0 5px 20px;
}

#faqs {
  width: 95%;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  margin: 10px auto;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
}

#faqs a {
  width: 100%;
  height: 40px;
  text-align: center;
  align-content: center;
  border-bottom: 1px solid var(--light-gray);
  font-size: 14px;
}

#faqs a:last-child {
  border: none;
}

#faqs-button {
  align-self: center;
  width: 60px;
  height: 28px;
  border-radius: 25px;
  background-color: var(--skyblue);
  color: var(--white);
  font-size: 12px;
  margin-top: 12px;
}

/* footer */
footer {
  height: 340px;
  flex-direction: column;
  padding: 6px 8px 66px;
  gap: 10px;
  background-color: var(--footer-background-color);
}

#footer-links {
  width: 100%;
  height: 30px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  background-color: var(--footer-links-background-color);
  border-radius: 20px;
}

#footer-links p,
#footer-links a {
  display: inline-block;
  line-height: 30px;
}

#privacy-policy {
  font-weight: 700;
}

#footer-info {
  flex-direction: column;
  height: 100%;
  gap: 16px;
  color: var(--white);
  padding: 6px 12px;
}

#footer-account {
  font-size: 14px;
}

#deposit-button {
  font-size: 13px;
  font-weight: 600;
  background-color: var(--black);
  color: var(--white);
  padding: 3px 2px;
  border-radius: 3px;
}

#footer-company-name {
  font-size: 11px;
  font-weight: 600;
}

#footer-company-info,
#footer-copyright {
  font-size: 10px;
}

#footer-copyright {
  flex-grow: 1;
  align-items: center;
}

/* navbar */
nav {
  position: fixed;
  bottom: 0px;
  width: 100%;
  height: 60px;
  background-color: var(--white);
  justify-content: space-around;
  border-top: 1px solid var(--light-gray);
}

@media screen and (max-width: 480px) {
  .main-buttons img {
    width: 100%;
  }

  #faqs {
    margin: 10px auto;
  }
}
