:root {
  --green: #28664b;
  --ink: #20392e;
  --muted: #7a837c;
  --line: #e6e9e2;
  --bg: #f8f9f5
}

[hidden] {
  display: none !important
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, 'Noto Sans KR', sans-serif;
  background: var(--bg)
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
input,
select {
  touch-action: manipulation
}

button {
  cursor: pointer
}

a {
  color: inherit;
  text-decoration: none
}

header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 24px
}

.logo {
  font-weight: 900;
  font-size: 27px;
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  gap: 9px
}

.logo span {
  background: var(--green);
  color: #fff;
  border-radius: 12px;
  font-size: 23px;
  padding: 6px 9px
}

nav {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 15px
}

nav .active {
  color: var(--green);
  font-weight: bold
}

.btn {
  border: 0;
  background: var(--green);
  color: white;
  padding: 13px 20px;
  border-radius: 9px;
  font-weight: bold
}

.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line)
}

main {
  max-width: 1380px;
  margin: auto;
  padding: 38px 5%
}

.hero {
  min-height: 270px;
  border-radius: 22px;
  overflow: hidden;
  background: #e9eee4;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  position: relative
}

.hero-copy {
  padding: 35px 40px;
  position: relative;
  z-index: 1
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: bold;
  color: var(--green)
}

h1 {
  font-size: 38px;
  letter-spacing: -1.8px;
  line-height: 1.35;
  margin: 15px 0
}

p {
  line-height: 1.65
}

.hero p {
  color: #657363;
  font-size: 14px
}

.hero-art {
  background: url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=1000&auto=format&fit=crop&q=85') center 55%/cover;
  position: relative
}

.hero-art:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e9eee4, transparent 40%)
}

.hero-note {
  position: absolute;
  right: 24px;
  bottom: 22px;
  background: #ffffffed;
  padding: 12px 17px;
  border-radius: 10px;
  font-size: 12px
}

.toolbar {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.search {
  flex: 1;
  display: flex;
  min-width: 220px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  align-items: center;
  gap: 8px
}

.search input {
  border: 0;
  outline: none;
  padding: 16px 0;
  width: 100%;
  background: none
}

.toolbar select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: white;
  color: var(--ink)
}

.chips {
  display: flex;
  gap: 9px;
  margin: 22px 0 29px;
  flex-wrap: wrap
}

.chip {
  background: white;
  border: 1px solid var(--line);
  padding: 10px 19px;
  border-radius: 25px;
  color: #667167
}

.chip.on {
  background: var(--green);
  color: white;
  border-color: var(--green)
}

.content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px
}

.sidebox {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 22px;
  margin-bottom: 18px
}

.sidebox h3 {
  font-size: 15px;
  margin: 0 0 20px
}

.region {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 7px;
  padding: 11px 10px;
  margin: 3px 0;
  background: none;
  color: #69746a
}

.region.on {
  background: #eef4ec;
  color: var(--green);
  font-weight: bold
}

.sidebox p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0
}

.tip {
  background: #eef1e7;
  border: 0
}

.tip b {
  font-size: 15px
}

.tip p {
  line-height: 1.8;
  color: #65705e
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 19px
}

.list-head h2 {
  font-size: 21px;
  margin: 0;
  letter-spacing: -.7px
}

.list-head small {
  font-weight: normal;
  color: var(--muted);
  font-size: 13px;
  margin-left: 7px
}

.list-head select {
  border: 0;
  background: none;
  color: #677468;
  font-size: 13px
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px 19px
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  transition: .2s;
  cursor: pointer
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px #20392e13
}

.photo {
  height: 173px;
  position: relative;
  background: #e9eee4
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fffef5;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: bold
}

.heart {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 0;
  background: #ffffffeb;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 21px;
  color: #355b46
}

.heart.saved {
  color: #d85a50
}

.card-body {
  padding: 18px
}

.type {
  font-size: 11px;
  color: var(--green);
  margin-bottom: 8px
}

.price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.6px
}

.card h3 {
  font-size: 14px;
  line-height: 1.5;
  font-weight: normal;
  margin: 9px 0 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.spec {
  font-size: 12px;
  color: #859084
}

.card-bottom {
  margin-top: 17px;
  border-top: 1px solid #f0f1ed;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #828a81
}

.notice {
  font-size: 12px;
  line-height: 1.8;
  color: #7b847b;
  margin-top: 27px;
  padding: 16px;
  background: #f0f2ec;
  border-radius: 9px
}

.notice a {
  text-decoration: underline
}

.empty {
  text-align: center;
  grid-column: 1/-1;
  padding: 70px 10px;
  color: var(--muted)
}

footer {
  margin-top: 55px;
  border-top: 1px solid var(--line);
  padding: 28px 5%;
  font-size: 12px;
  color: #8a9188;
  display: flex;
  justify-content: space-between
}

dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  max-width: 720px;
  width: 94%;
  max-height: 90vh;
  box-shadow: 0 20px 100px #0003;
  color: var(--ink)
}

dialog::backdrop {
  background: #12271c99;
  backdrop-filter: blur(4px)
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line)
}

.modal-head h2 {
  margin: 0;
  font-size: 20px
}

.close {
  border: 0;
  background: #f2f4ef;
  border-radius: 50%;
  width: 32px;
  height: 32px
}

.modal-body {
  padding: 25px
}

.detail-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 10px
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px;
  background: var(--bg);
  border-radius: 10px;
  margin: 20px 0
}

.detail-grid div {
  font-size: 14px;
  padding: 5px
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 13px
}

.field input,
.field select,
.field textarea {
  border: 1px solid #d9dfd4;
  padding: 12px;
  border-radius: 7px;
  width: 100%;
  background: white;
  color: var(--ink)
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px
}

.wide {
  width: 100%
}

.fine {
  font-size: 12px;
  color: #7c867a
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #20392e;
  color: white;
  padding: 15px 23px;
  border-radius: 10px;
  z-index: 5;
  box-shadow: 0 4px 24px #0002
}

.mobile-region {
  display: none !important
}

@media(min-width:1500px) {
  main {
    padding-left: 30px;
    padding-right: 30px
  }
}

@media(max-width:1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .content {
    grid-template-columns: 180px 1fr
  }

  .hero-copy {
    padding: 30px
  }

  h1 {
    font-size: 32px
  }
}

@media(max-width:700px) {
  header {
    height: 72px;
    padding: 0 5%;
    gap: 10px
  }

  nav {
    gap: 13px;
    font-size: 12px
  }

  nav a {
    display: none
  }

  nav {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end
  }

  #account {
    font-size: 11px;
    padding: 7px
  }

  #favorites {
    font-size: 11px;
    padding: 7px
  }

  .logo {
    font-size: 23px
  }

  header .btn {
    padding: 11px;
    font-size: 12px
  }

  main {
    padding-top: 20px
  }

  .hero {
    grid-template-columns: 1fr
  }

  .hero-copy {
    padding: 28px
  }

  .hero-art {
    height: 140px
  }

  .hero-art:before {
    background: linear-gradient(180deg, #e9eee4, transparent 55%)
  }

  h1 {
    font-size: 31px
  }

  .hero p {
    margin-bottom: 0
  }

  .hero-note {
    font-size: 10px;
    right: 12px;
    bottom: 12px
  }

  .content {
    grid-template-columns: 1fr
  }

  .sidebar {
    display: none
  }

  .mobile-region {
    display: block !important
  }

  .toolbar select {
    flex: 1;
    min-width: 100px
  }

  .search {
    flex-basis: 100%
  }

  .chips {
    gap: 6px
  }

  .chip {
    font-size: 12px;
    padding: 9px 14px
  }

  .grid {
    gap: 12px
  }

  .photo {
    height: 145px
  }

  .card-body {
    padding: 13px
  }

  .price {
    font-size: 19px
  }

  .card h3 {
    font-size: 12px
  }

  .spec {
    font-size: 10px
  }

  .card-bottom {
    font-size: 10px
  }

  .list-head h2 {
    font-size: 18px
  }

  .list-head small {
    display: block;
    margin: 7px 0 0
  }

  .detail-img {
    height: 210px
  }

  footer {
    gap: 20px;
    line-height: 1.7
  }

  .row {
    grid-template-columns: 1fr
  }

  .detail-grid {
    font-size: 12px
  }
}
