:root {
  --brand: #8B5C2A;
  --main: #0babc7;;
  --line: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f8fafc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.brand {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #333;
  letter-spacing: -0.2px;
}
.hamburger {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000000;
  display: inline-flex;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-panel {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}
.menu-panel.show { display: block; }
.menu-panel a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 18px 18px;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}
.page-title {
  margin: 0 0 18px 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  letter-spacing: -0.2px;
}
.products-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-content: center;
  justify-content: center;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  min-height: 280px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link:hover .card {
  border-color: #d6c2aa;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.thumb {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #f3f4f6;
  margin-bottom: 12px;
}
.name {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  word-break: keep-all;
}
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}
.empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  margin: auto 0;
}
.detail-wrap {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}
.detail-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.detail-image {
  width: 100%;
  max-width: 420px;
  max-height: 260px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  text-align: center;
}
.detail-body {
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
  font-size: 16px;
  color: #1f2937;
  line-height: 1.6;
}
.detail-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.footer {
  margin-top: 24px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 18px 16px 26px;
}
.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 6px;
}
.footer-title {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}
.footer-text {
  margin: 0;
  font-size: 16px;
  color: #374151;
}

.order-fixed-inner {
  max-width: 1200px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0px 14px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.order-price {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}
.qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.qty-btn {
  width: 36px;
  height: 38px;
  border: none;
  background: #f8fafc;
  cursor: pointer;
  font-size: 18px;
  color: #374151;
}
.qty-input {
  width: 52px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}
.phone-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 800;
}
.order-submit {
    margin-top: 10px;
  /* height: 44px; */
  min-width: 120px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  /* background: #4b537e; */
  background: #7ea809;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;  
}

.account-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  z-index: 10000;
  padding: 14px;
}
.account-modal.show {
  display: flex;
}
.account-modal-box {
  width: min(500px, 100%);
  background: #fff;
  border: 1px solid rgba(139, 92, 42, 0.28);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
}
.account-modal-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}
.account-modal-line {
  margin: 0 0 12px;
  font-size: 16px;
  color: #1f2937;
}
.account-info-row {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-label {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
}
.account-value {
  font-size: 19px;
  font-weight: 800;
  color: #111827;
  text-align: right;
  line-height: 1.2;
}
.account-value-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mini-copy-btn {
  height: 28px;
  border: 1px solid #7ea809;
  border-radius: 6px;
  background: #7ea809;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 9px;
  cursor: pointer;
}
.order-result-thanks {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: red;
}
.account-bank-wrap,
.account-number-wrap {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}
.account-key {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}
.account-bank {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.2;
}
.account-bank-row {
  margin: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.account-number-row {
  margin: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.account-number {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: right;
}
.copy-account-btn {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 1px solid var(--main);
  border-radius: 10px;
  background: var(--main);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 0 12px;
  cursor: pointer;
}
.order-result-confirm-btn {
  height: 40px;
  min-width: 96px;
  border: 1px solid var(--main);
  border-radius: 8px;
  background: var(--main);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.account-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.account-close-btn {
  height: 38px;
  min-width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 768px) {
  .container {
    padding: 24px 20px 14px;
  }
  .detail-body img {
    width: 100% !important;
    display: block;
  }
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .thumb {
    width: 100px;
    height: 100px;
  }
  .card {
    min-height: 220px;
    padding: 12px;
  }
  .name {
    font-size: 18px;
  }
  .order-fixed-inner {
    grid-template-columns: auto 1fr;
    gap: 8px;
    min-height: 72px;
  }
  .order-price {
    grid-column: 1 / 2;
    justify-content: flex-start;
  }
  .qty-wrap {
    grid-column: 2 / 3;
    justify-self: end;
  }
  .phone-input {
    grid-column: 1 / -1;
  }
  .order-fixed-bar {
    border-top-width: 1px;
  }
  .order-submit {
    grid-column: 1 / -1;
    width: 100%;
    height: 60px;
    white-space: nowrap;
  }
}
