:root {
  --black: #17110d;
  --text: #1d1d1d;
  --muted: #777;
  --line: #e8e8e8;
  --light: #f7f7f7;
  --white: #fff;
  --dusk: #2a1b14;
  --sunset: #d88a4a;
  --cream: #fff7ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Arial, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

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

img {
  display: block;
  width: 100%;
}

button {
  font: inherit;
}

.notice-bar {
  height: 38px;
  overflow: hidden;
  background: linear-gradient(90deg, #17110d, #2b1b13 55%, #17110d);
  color: #f5dccb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.notice-track {
  display: inline-block;
  min-width: 200%;
  padding-top: 11px;
  animation: marquee 34s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 120px 138px 1fr 210px;
  align-items: center;
  height: 90px;
  padding: 0 22px;
  border-bottom: 1px solid #eee;
  background: rgba(255, 255, 255, 0.96);
}

.menu-button {
  display: inline-grid;
  gap: 5px;
  width: 38px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--black);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 118px;
  height: 58px;
  color: var(--dusk);
}

.text-logo {
  font-family: "Times New Roman", Georgia, serif;
  isolation: isolate;
}

.logo-n {
  position: absolute;
  left: 2px;
  top: -8px;
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  transform: scaleX(0.84);
}

.logo-word {
  position: absolute;
  left: 35px;
  top: 17px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
}

.text-logo::before {
  position: absolute;
  left: 31px;
  top: 8px;
  width: 1px;
  height: 42px;
  background: linear-gradient(#f0c7a3, var(--sunset), #f0c7a3);
  content: "";
}

.text-logo::after {
  position: absolute;
  left: 49px;
  bottom: 8px;
  width: 54px;
  height: 18px;
  border-bottom: 1.5px solid var(--dusk);
  border-radius: 0 0 70% 70%;
  transform: rotate(-3deg);
  content: "";
  opacity: 0.82;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
}

.main-nav a:hover,
.quick-links a:hover {
  color: var(--sunset);
}

.quick-links {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  color: #555;
  font-size: 12px;
  font-weight: 700;
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 310px;
  padding: 28px 30px;
  transform: translateX(-100%);
  transition: transform 180ms ease;
  background: var(--white);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.12);
}

.menu-open .side-menu {
  transform: translateX(0);
}

.side-menu strong {
  display: block;
  margin-bottom: 28px;
  font-size: 18px;
}

.side-brand {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--dusk);
}

.side-menu a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.side-menu hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.side-menu span,
.side-menu small {
  display: block;
  color: var(--muted);
}

.side-menu b {
  display: block;
  margin: 6px 0;
  font-size: 18px;
}

.side-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.dim {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  background: rgba(0, 0, 0, 0.24);
}

.menu-open .dim {
  display: block;
}

.hero {
  max-width: 1480px;
  margin: 0 auto;
}

.hero img {
  aspect-ratio: 1480 / 800;
  object-fit: cover;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 44px auto 50px;
  font-size: 14px;
  font-weight: 800;
}

.product-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.section-title {
  margin-bottom: 28px;
  text-align: center;
}

.section-title::before {
  display: block;
  width: 42px;
  height: 1px;
  margin: 0 auto 14px;
  background: var(--sunset);
  content: "";
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 800;
}

.section-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.product-grid {
  display: grid;
  gap: 32px 22px;
}

.product-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-grid.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  min-width: 0;
}

.product-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--light);
}

.product-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.025);
}

.labels {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.labels span {
  padding: 5px 7px;
  background: rgba(17, 17, 17, 0.84);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.product-text {
  padding-top: 12px;
  color: #555;
  font-size: 12px;
}

.product-text .category {
  margin: 0 0 8px;
  color: #999;
  font-size: 11px;
}

.product-text h3 {
  min-height: 42px;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.line {
  margin: 3px 0;
}

del {
  color: #999;
}

.price strong {
  color: var(--black);
  font-size: 13px;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1320px;
  margin: 20px auto 0;
  padding: 52px 20px 70px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.site-footer strong,
.site-footer b,
.site-footer span {
  display: block;
}

.site-footer strong {
  margin-bottom: 12px;
  color: var(--black);
  font-size: 12px;
}

.site-footer b {
  margin-bottom: 8px;
  color: var(--black);
  font-size: 18px;
}

.account-page,
.cart-page,
.my-page,
.table-page,
.board-page,
.info-page,
.detail-page {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.account-page h1,
.cart-page h1,
.my-page h1,
.table-page h1,
.board-page h1,
.info-page h1 {
  margin: 0 0 56px;
  text-align: center;
  font-size: 28px;
  line-height: 1.2;
}

.login-panel,
.join-box {
  width: min(400px, 100%);
  margin: 0 auto;
}

.login-panel {
  display: grid;
  gap: 9px;
}

.login-panel input,
.join-table input,
.join-table select,
.detail-info select,
.board-tools input,
.board-tools select {
  width: 100%;
  height: 48px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0 16px;
  color: var(--text);
}

.check-line {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}

.check-line input {
  width: auto;
  height: auto;
}

.black-button,
.line-button,
.kakao-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--black);
  font-weight: 800;
  cursor: pointer;
}

.black-button {
  background: var(--black);
  color: #fff;
}

.line-button {
  background: #fff;
  color: var(--black);
}

.kakao-button {
  width: 100%;
  margin-top: 22px;
  border-color: #ffce2f;
  background: #ffce2f;
}

.kakao-button span {
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 10px;
  text-transform: uppercase;
}

.small-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 12px;
}

.join-box {
  margin-top: 30px;
  border: 1px solid var(--line);
  padding: 38px 28px;
  text-align: center;
}

.join-box h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.join-box p,
.page-note {
  color: var(--muted);
}

.wide-account {
  width: min(720px, calc(100% - 40px));
}

.agreement-form {
  display: grid;
  gap: 28px;
}

.agreement-form section,
.all-agree {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-weight: 800;
}

.terms-box {
  height: 150px;
  overflow: auto;
  margin-top: 18px;
  border: 1px solid #ddd;
  padding: 22px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.join-table {
  border-top: 2px solid var(--black);
}

.join-table label {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.join-table label > span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-left: 24px;
}

.join-table label > input,
.join-table .phone-row {
  width: calc(100% - 40px);
  margin-left: 20px;
}

.join-table small {
  grid-column: 2;
  margin: -14px 0 14px 20px;
  color: var(--muted);
}

.join-table em {
  margin-right: 8px;
  color: #e12222;
  font-style: normal;
}

.phone-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 12px;
}

.list-page {
  padding-top: 96px;
}

.list-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.list-tools button,
.period-tabs button,
.board-tools button,
.detail-actions button {
  min-height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0 16px;
  cursor: pointer;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 64px;
  align-items: start;
}

.detail-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 26px;
  font-size: 16px;
}

.detail-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px 20px;
  margin: 0 0 22px;
  color: var(--muted);
}

.detail-info dd {
  margin: 0;
  color: var(--text);
}

.detail-info select {
  margin-bottom: 10px;
}

.total-price {
  display: flex;
  justify-content: space-between;
  margin: 24px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.pay-box {
  margin-top: 14px;
  border: 1px solid #cde6c9;
  background: #f6fff3;
  padding: 14px;
  color: #377a2a;
  font-size: 12px;
}

.detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 76px 0 54px;
  border-bottom: 1px solid var(--black);
}

.detail-tabs a {
  display: grid;
  place-items: center;
  height: 48px;
  border: 1px solid var(--line);
  border-bottom: 0;
  font-weight: 800;
}

.detail-copy {
  min-height: 620px;
  text-align: center;
  color: var(--muted);
}

.detail-copy img {
  margin-top: 48px;
}

.guide-box {
  border: 1px solid var(--line);
  padding: 34px 38px;
  color: var(--muted);
  line-height: 1.8;
}

.guide-box h2 {
  margin: 0 0 12px;
  color: var(--black);
  font-size: 16px;
}

.board-lite {
  margin-top: 70px;
  text-align: center;
}

.cart-tabs,
.period-tabs,
.board-tabs {
  display: flex;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--black);
}

.cart-tabs button,
.period-tabs button,
.board-tabs a {
  min-width: 180px;
  height: 48px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fafafa;
}

.cart-tabs .active,
.period-tabs .active {
  background: #fff;
  border-color: var(--black);
  font-weight: 900;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 220px;
  color: #aaa;
}

.empty-state span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid #ddd;
  border-radius: 50%;
  font-size: 32px;
}

.member-summary {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  border-top: 2px solid var(--black);
  border-bottom: 1px solid var(--line);
  margin: 34px 0;
}

.member-summary > * {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.member-summary > *:last-child {
  border-right: 0;
}

.my-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.my-grid a {
  border: 1px solid var(--line);
  padding: 28px;
}

.my-grid strong,
.my-grid span {
  display: block;
}

.my-grid span {
  margin-top: 8px;
  color: var(--muted);
}

.data-table,
.board-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td,
.board-table td {
  border-bottom: 1px solid var(--line);
  padding: 20px 14px;
  text-align: left;
}

.data-table th {
  border-top: 2px solid var(--black);
  background: #fafafa;
}

.board-table img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.thumb-cell {
  width: 48px;
  height: 48px;
  background: #fafafa;
}

.new-badge,
.reply {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 6px;
  background: #1592ff;
  color: #fff;
  font-size: 10px;
}

.reply {
  background: #b8bec6;
}

.board-tools {
  display: grid;
  grid-template-columns: 130px 130px 1fr 80px 130px;
  gap: 8px;
  margin-top: 28px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 54px 0;
}

.info-page {
  width: min(900px, calc(100% - 40px));
}

.info-page .guide-box {
  min-height: 420px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 60px 1fr 180px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding: 0 0 12px;
  }

  .product-grid.compact,
  .product-grid.wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 44px 1fr 104px;
    height: 64px;
    padding: 0 14px;
  }

  .logo {
    width: 88px;
    height: 48px;
  }

  .logo-n {
    top: -4px;
    font-size: 42px;
  }

  .logo-word {
    left: 27px;
    top: 16px;
    font-size: 15px;
  }

  .text-logo::before {
    left: 24px;
    top: 8px;
    height: 32px;
  }

  .text-logo::after {
    left: 38px;
    bottom: 7px;
    width: 42px;
    height: 13px;
  }

  .quick-links {
    gap: 8px;
    font-size: 10px;
  }

  .main-nav {
    display: none;
  }

  .hero img {
    aspect-ratio: 390 / 520;
    object-position: center;
  }

  .category-tabs {
    gap: 18px;
    margin: 30px auto 38px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .product-section {
    padding-inline: 14px;
  }

  .product-grid.compact,
  .product-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .product-text h3 {
    min-height: 58px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-inline: 14px;
  }

  .side-menu {
    width: min(86vw, 310px);
  }

  .account-page,
  .cart-page,
  .my-page,
  .table-page,
  .board-page,
  .info-page,
  .detail-page {
    width: min(100% - 28px, 1320px);
    padding: 58px 0;
  }

  .account-page h1,
  .cart-page h1,
  .my-page h1,
  .table-page h1,
  .board-page h1,
  .info-page h1 {
    margin-bottom: 34px;
    font-size: 24px;
  }

  .wide-account {
    width: min(100% - 28px, 720px);
  }

  .join-table label {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }

  .join-table label > span,
  .join-table label > input,
  .join-table .phone-row,
  .join-table small {
    width: calc(100% - 28px);
    margin-left: 14px;
  }

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

  .split-actions,
  .detail-actions,
  .member-summary,
  .my-grid,
  .site-footer,
  .detail-top {
    grid-template-columns: 1fr;
  }

  .member-summary > * {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-copy {
    min-height: 360px;
  }

  .cart-tabs,
  .period-tabs,
  .board-tabs {
    overflow-x: auto;
  }

  .cart-tabs button,
  .period-tabs button,
  .board-tabs a {
    min-width: 140px;
  }

  .data-table,
  .board-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .board-tools {
    grid-template-columns: 1fr 1fr;
  }

  .board-tools .black-button {
    grid-column: 1 / -1;
  }

  .guide-box {
    padding: 24px 18px;
  }
}
