/* ═══════════════════════════════════════
   OOMUN — style.css  v=1
═══════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;           /* main scroll handled by .main-content */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #111;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════ */
.landing {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.landing.gone { display: none; }

/* Hero — takes the space left over above the footer, scrolls internally */
.landing-hero {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #fff;      /* shows through the gaps between stacked photos */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.landing-hero-img,
.landing-scroll-img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: fill;
  display: block;
}
/* First photo fills the screen — crops sides if it is shorter than the area */
.landing-hero-img {
  min-height: 100%;
  object-fit: cover;
}
/* Gap above each photo after the first */
.landing-scroll-img {
  margin-top: 40px;
}

/* Top nav — fixed so it stays visible while scrolling */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 510;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 32px 0;
}

.landing-nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.landing-link {
  font-size: 10pt;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  transition: opacity 0.15s, color 0.3s;
}
.landing-link:hover { opacity: 0.55; }

/* Nav turns dark when scrolled into footer area */
.landing-nav.dark .landing-link {
  color: #111;
}

/* Footer */
.landing-footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  padding: 10px 0;
  background: #fff;
  flex-shrink: 0;
}

.lf-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 10px 32px;
  min-height: 93px;
}

.lf-logo {
  font-family: 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 15pt;
  letter-spacing: 0.08em;
  color: #111;
  line-height: 1;
  margin-bottom: 6px;
}

.lf-policy {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}

.lf-policy-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 0 10px 300px;
}

.lf-policy-link {
  font-size: 11px;
  line-height: 1.2;
  color: #111;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.lf-policy-link:hover { color: #111; }

.lf-biz { margin-top: 4px; }

.lf-biz-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #111;
  cursor: pointer;
  white-space: nowrap;
}

.lf-biz-icon {
  font-size: 12px;
  line-height: 1;
}

.lf-biz-info {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  gap: 0 14px;
  padding: 0 32px;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #666;
}
.lf-biz-info[hidden] { display: none; }

/* ═══════════════════════════════════════
   CHAT WIDGET
═══════════════════════════════════════ */
.lf-chat-btn {
  justify-self: end;
  align-self: center;
  margin-right: 32px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: #4d4d4d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.lf-chat-btn:hover {
  background: #3a3a3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}
.lf-chat-btn svg { display: block; }
.lf-chat-btn .chat-ico-close { display: none; }
.lf-chat-btn.is-open .chat-ico-open { display: none; }
.lf-chat-btn.is-open .chat-ico-close { display: block; }

.chat-panel {
  position: fixed;
  right: 32px;
  bottom: 96px;
  z-index: 900;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  transform-origin: bottom right;
  animation: chatPanelIn 0.18s ease-out;
}
.chat-panel[hidden] { display: none; }

@keyframes chatPanelIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #111;
  color: #fff;
  flex-shrink: 0;
}
.chat-head-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.chat-head-sub {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
}
.chat-close {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.22); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  background: #f6f6f6;
}

.chat-msg {
  max-width: 82%;
  padding: 10px 13px;
  margin-bottom: 10px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
}
.chat-msg.bot {
  background: #fff;
  color: #111;
  border-top-left-radius: 4px;
}
.chat-msg.me {
  margin-left: auto;
  background: #111;
  color: #fff;
  border-top-right-radius: 4px;
}

.chat-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #e9e9e9;
  background: #fff;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 19px;
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  color: #111;
  outline: none;
}
.chat-input:focus { border-color: #111; }
.chat-send {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chat-send:hover { background: #333; }

/* ─── Landing mobile ─── */
@media (max-width: 768px) {
  .landing-nav { padding: 18px 20px 0; }
  .landing-nav-links { gap: 20px; }
  .landing-link { font-size: 10pt; }

  .landing-scroll-img { margin-top: 20px; }

  .landing-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 20px 20px;
  }
  .lf-left { min-height: 0; padding: 0; }
  .lf-policy { gap: 24px; order: 2; }
  .lf-policy-col { padding: 0; }
  .lf-biz-info { gap: 0 12px; order: 1; margin-top: 0; padding: 0; }

  .lf-chat-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 520;
    margin-right: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
  .chat-panel {
    right: 16px;
    left: 16px;
    bottom: 78px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 100px);
  }
}

/* ═══════════════════════════════════════
   TOP NAV BAR
═══════════════════════════════════════ */
/* Landing nav와 동일한 구성 — .landing-nav 규칙을 그대로 공유한다 */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 32px 0;
  z-index: 10;
}

/* shop 페이지는 배경이 흰색이므로 링크만 어둡게 */
.topbar .landing-link { color: #111; }

.cart-badge {
  display: none;
}

/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */
.main-content {
  margin-left: 0;
  padding-top: 44px;      /* 28px top padding + 16px 링크 line-height */
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.page { display: none; }
.page.active { display: block; }

/* ═══════════════════════════════════════
   SHOP PAGE — Filter Bar + Product Grid
═══════════════════════════════════════ */
.page-shop {}

/* Search Bar — 상단바 Search 링크 바로 옆 인라인 */
.search-bar { display: flex; align-items: center; }
.search-bar[hidden] { display: none; }
.search-input {
  width: 180px; max-width: 40vw;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10pt; font-weight: 300; letter-spacing: 0.04em;
  color: #111; background: none; border: none;
  border-bottom: 1px solid #111; padding: 0 0 3px; outline: none;
}
.search-input::placeholder { color: #111; opacity: 0.45; }

/* Search Results Header */
.shop-results { padding: 52px 32px 0; }
.shop-results[hidden] { display: none; }
.sr-label { font-size: 9pt; font-weight: 300; letter-spacing: 0.1em; color: #111; margin: 0 0 10px; }
.sr-line {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px;
}
.sr-form  { width: 50%; }
.sr-term  {
  width: 100%; padding: 0 0 8px;
  border: none; border-bottom: 1px solid #ccc;
  background: none; outline: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10pt; font-weight: 300; letter-spacing: 0.06em; color: #111;
}
.sr-count { font-size: 9pt; font-weight: 300; letter-spacing: 0.1em; color: #111; white-space: nowrap; }
.pg-empty { grid-column: 1 / -1; font-size: 9pt; font-weight: 300; letter-spacing: 0.06em; color: #888; }

/* Category Filter Bar */
.shop-filter-bar {
  display: flex;
  gap: 0;
  padding: 30px 32px 0;
}

.filter-btn {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  padding: 13px 10px;          /* 좌우 10px → 글씨 사이 20px */
  font-size: 9pt;              /* 상단바 링크(10pt)보다 1pt 작게 */
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #111;
  cursor: pointer;
  background: none;
  border: none;
  transition: opacity 0.15s;
}
.filter-btn:first-child { padding-left: 0; }
.filter-btn:hover { opacity: 0.5; }
.filter-btn.active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 32px 60px;
  column-gap: 20px;
  row-gap: 40px;
}

/* Product Card */
.product-card {
  background: #fff;
  cursor: pointer;
  position: relative;
}

.product-card:hover .pc-img-wrap img {
  transform: scale(1.03);
}

.pc-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f3f3f3;
  position: relative;
}
.pc-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.pc-info {
  padding: 12px 0 0;
  text-align: left;            /* 사진 왼쪽 끝에 맞춰 정렬 */
}
.pc-name {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 9pt;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #111;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-price {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 9pt;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.04em;
}

/* Shop Pagination */
.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 0 12px;
}
.page-num {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  color: #aaa;
  cursor: pointer;
  transition: color 0.15s;
}
.page-num.active {
  color: #111;
  font-weight: 400;
}
.page-num:hover { color: #111; }

/* Shop Footer — landing footer(.landing-footer) 규칙을 그대로 공유한다 */
.page-shop .landing-footer { margin-top: 16px; }

/* ═══════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════ */
.page-about.active {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.about-wrap {
  padding: 60px 40px;
  max-width: 520px;
}

.about-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.about-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #444;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   OVERLAY BASE
═══════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(0,0,0,0.4);
}
.overlay.open { display: flex; }

/* ═══════════════════════════════════════
   PRODUCT DETAIL PAGE
═══════════════════════════════════════ */
.pd-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 30px 32px 0;
  font-size: 9pt;
  font-weight: 300;
  color: #888;
}
.pd-crumb-link { color: #888; text-decoration: none; }
.pd-crumb-link:hover { color: #111; }
.pd-crumb-sep { color: #ccc; }
.pd-crumb-cur { color: #111; }

.pd-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 32px;
  padding: 20px 32px 60px;
  align-items: start;
}

/* Left — gallery (3/4) */
.pd-gallery { position: relative; min-width: 0; }
.pd-gal-track {
  --pd-cols: 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.pd-gal-track[data-count="1"] { --pd-cols: 1; }
.pd-gal-track[data-count="2"] { --pd-cols: 2; }
.pd-gal-item {
  flex: 0 0 calc((100% - (var(--pd-cols) - 1) * 8px) / var(--pd-cols));
  aspect-ratio: 3/4;
  background: #f3f3f3;
  overflow: hidden;
  scroll-snap-align: start;
}
.pd-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-gal-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #c4c4c4;
}
.pd-gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: #111;
  cursor: pointer;
  transition: background 0.15s;
}
.pd-gal-arrow.prev { left: 10px; }
.pd-gal-arrow.next { right: 10px; }
.pd-gal-arrow:hover { background: #fff; }
.pd-gal-arrow[hidden] { display: none; }

/* Right — info panel (1/4) */
.pd-panel {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.pd-name {
  font-size: 10pt;          /* 상단 배너(.landing-link)와 동일 */
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.pd-price { font-size: 10pt; font-weight: 300; letter-spacing: 0.04em; color: #111; }

.pd-opt { display: flex; flex-direction: column; gap: 8px; }
.pd-opt-label { font-size: 9pt; font-weight: 300; color: #888; }
.pd-opt-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-opt-btn {
  min-width: 42px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 9pt;
  font-weight: 300;
  color: #111;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pd-opt-btn:hover { border-color: #999; }
/* 선택 시 Add To Bag 버튼과 동일한 연한 회색 */
.pd-opt-btn.active { background: #e9e9e9; border-color: #e9e9e9; color: #111; }

.pd-btn {
  width: 100%;
  padding: 9px 13px;
  border-radius: 4px;
  font-size: 9pt;
  font-weight: 300;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
/* .pd-panel 의 gap:14px 을 두 버튼 사이에서만 좁힌다 */
.pd-btn + .pd-btn { margin-top: -8px; }
/* 연한 회색 — 옵션 선택 상태(.pd-opt-btn.active)와 동일 */
.pd-btn-primary { background: #e9e9e9; color: #111; border: 1px solid #e9e9e9; }
.pd-btn-primary:hover { background: #dedede; border-color: #dedede; }
.pd-btn-ghost { background: #fff; color: #111; border: 1px solid #ddd; }
.pd-btn-ghost:hover { border-color: #111; }

.pd-acc {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.pd-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* + 를 글씨 바로 옆에 */
  gap: 6px;
  padding: 5px 0;
  background: none;
  border: none;
  font-size: 9pt;
  font-weight: 300;
  color: #111;
  text-align: left;
  cursor: pointer;
}
.pd-acc-ico { font-size: 12px; color: #111; }
.pd-acc-body {
  padding: 0 0 14px;
  font-size: 8.5pt;
  font-weight: 300;
  line-height: 1.8;
  color: #666;
  white-space: pre-line;
}
.pd-acc-body h3 { display: none; }
.pd-acc-body p { margin-bottom: 8px; }
.pd-acc-body p:last-child { margin-bottom: 0; }

.page-product .landing-footer { margin-top: 16px; }

/* ═══════════════════════════════════════
   CART OVERLAY
═══════════════════════════════════════ */
.cart-overlay {
  align-items: stretch;
  justify-content: flex-end;
}

.cart-inner {
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e0e0e0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.cart-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.cart-close {
  font-size: 18px;
  color: #555;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.cart-close:hover { background: #f0f0f0; }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* Empty cart */
.cart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.04em;
}

/* Cart item */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item-img {
  width: 64px;
  height: 80px;
  flex-shrink: 0;
  background: #f5f5f5;
  overflow: hidden;
}
.cart-item-img img { width:100%; height:100%; object-fit:cover; }
.cart-item-info { flex: 1; }
.cart-item-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.cart-item-size {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.cart-item-price {
  font-size: 12px;
  color: #444;
}
.cart-item-remove {
  font-size: 16px;
  color: #bbb;
  align-self: flex-start;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
}
.cart-item-remove:hover { color: #111; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
#cartSubtotal { font-weight: 600; }

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: background 0.15s;
}
.cart-checkout-btn:hover { background: #333; }

/* ═══════════════════════════════════════
   CHECKOUT OVERLAY
═══════════════════════════════════════ */
.checkout-overlay {
  align-items: stretch;
  justify-content: flex-end;
}

.checkout-scroll {
  width: min(860px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  border-left: 1px solid #e0e0e0;
}

.checkout-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.checkout-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.checkout-back {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #666;
  transition: color 0.15s;
}
.checkout-back:hover { color: #111; }

.checkout-body {
  flex: 1;
  display: flex;
  gap: 0;
  padding: 0;
}

/* Co Left */
.co-left {
  flex: 1;
  padding: 32px 40px;
  border-right: 1px solid #e0e0e0;
}

.co-section { margin-bottom: 32px; }
.co-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

/* User row */
.co-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.co-user-email {
  font-size: 13px;
  color: #444;
}
.co-login-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 1px;
  transition: opacity 0.15s;
}
.co-login-link:hover { opacity: 0.6; }

/* Shipping */
.co-ship-text {
  font-size: 13px;
  color: #444;
}
.co-ship-addr {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px;
}
.co-ship-change {
  font-size: 11px;
  color: #666;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  cursor: pointer;
  display: inline-block;
}
.co-ship-change:hover { color: #111; border-color: #111; }

/* Payment box */
.co-pay-box {
  border: 1px solid #e0e0e0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.co-pay-provider {
  font-size: 13px;
  font-weight: 600;
}
.co-pay-note {
  font-size: 11px;
  color: #888;
  line-height: 1.5;
}

/* Pay button */
.co-pay-btn {
  width: 100%;
  padding: 16px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.co-pay-btn:hover { background: #333; }
.co-pay-btn:disabled { background: #ccc; cursor: default; }

/* Co Right */
.co-right {
  width: 320px;
  flex-shrink: 0;
  padding: 32px 32px;
}

/* Co Items */
.co-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.co-item-img {
  width: 52px;
  height: 64px;
  flex-shrink: 0;
  background: #f5f5f5;
  overflow: hidden;
}
.co-item-img img { width:100%; height:100%; object-fit:cover; }
.co-item-info { flex: 1; }
.co-item-name {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.co-item-meta {
  font-size: 10px;
  color: #999;
  margin-bottom: 4px;
}
.co-item-price {
  font-size: 11px;
  color: #444;
}

.co-summary-rows {
  margin-top: 16px;
  border-top: 1px solid #e0e0e0;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.co-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}
.co-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  font-weight: 700;
}
.co-total-currency {
  font-size: 10px;
  font-weight: 400;
  color: #999;
  margin-right: 4px;
}
.co-total-amount { font-size: 15px; }

/* ═══════════════════════════════════════
   AUTH PAGES (Login / Signup)
═══════════════════════════════════════ */
.page-login.active,
.page-signup.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 77px);
}

.page-signup .auth-wrap {
  padding-top: 90px;
}
.page-signup .auth-btn-primary {
  margin-top: 24px;
}
.page-signup .auth-label::after {
  content: ' *';
}

.auth-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 110px 20px 60px;
}

.auth-box {
  width: 100%;
  max-width: 380px;
  zoom: 0.9;
}

.auth-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #111;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.auth-field {
  margin-bottom: 16px;
}
.auth-label {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: #111;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.auth-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #111;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  border-radius: 4px;
  -webkit-appearance: none;
}

/* ── Signup row layout ───────────────── */
.auth-row {
  display: flex;
  gap: 10px;
}
.auth-field--half {
  flex: 1;
  min-width: 0;
}

/* ── Birth date selects ──────────────── */
.auth-date-row {
  display: flex;
  gap: 8px;
}
.auth-select {
  flex: 1;
  padding: 10px 28px 10px 10px;
  border: 1px solid #111;
  font-size: 13px;
  font-family: inherit;
  color: #111;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23111'/%3E%3C/svg%3E") no-repeat right 10px center;
  box-sizing: border-box;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}

/* ── Gender radio ────────────────────── */
.auth-radio-group {
  display: flex;
  gap: 20px;
  padding: 4px 0;
}
.auth-radio-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 300;
  color: #111;
  cursor: pointer;
}
.auth-radio-item input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: #111;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Address zip row ─────────────────── */
.auth-zip-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.auth-input--zip {
  flex: 1;
  min-width: 0;
}
.auth-zip-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 1px solid #111;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.auth-zip-btn:hover { background: #333; border-color: #333; }
.auth-input--detail { margin-top: 8px; }

/* ── Phone 3-field row ───────────────── */
.auth-phone-row {
  display: flex;
  align-items: center;
}
.auth-input--phone {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.auth-phone-sep {
  flex-shrink: 0;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 300;
  color: #111;
}

/* ── Consent sub-text ────────────────── */
.check-main {
  display: block;
  font-size: 12px;
  font-weight: 300;
  color: #111;
}
.check-sub {
  display: block;
  font-size: 11px;
  font-weight: 300;
  color: #111;
  margin-top: 3px;
  line-height: 1.5;
}

.login-error {
  font-size: 11px;
  color: #e44;
  min-height: 0;
  margin-bottom: 0;
}

.auth-sub-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 3px 0 45px;
}
.auth-sub-link {
  font-size: 14px;
  font-weight: 300;
  color: #111;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-sub-link:hover { color: #666; }

.auth-btn-primary {
  display: block;
  width: 65%;
  margin: 0 auto 10px;
  padding: 13px 20px;
  background: #111;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: 1px solid #111;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.auth-btn-primary:hover { background: #333; border-color: #333; }
.auth-btn-primary:disabled { background: #999; border-color: #999; color: #fff; cursor: default; }

.auth-btn-outline {
  display: block;
  width: 65%;
  margin: 0 auto;
  padding: 13px 20px;
  background: #fff;
  color: #111;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: 1px solid #bbb;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.auth-btn-outline:hover { border-color: #111; }

.auth-btn-text {
  background: none;
  border: none;
  color: #999;
  font-size: 12px;
  font-weight: 300;
  font-family: inherit;
  cursor: pointer;
  margin-top: 18px;
  padding: 0;
  display: block;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.auth-btn-text:hover { color: #111; }

/* ── Signup Consent ─────────────────── */
.signup-consent {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.signup-check-all {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 400;
  color: #111;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.signup-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 300;
  color: #111;
  cursor: pointer;
}
.signup-check-all input[type="checkbox"],
.signup-check-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: #111;
  cursor: pointer;
}

/* ═══════════════════════════════════════
   INFORMATION OVERLAY
═══════════════════════════════════════ */
.info-overlay {
  align-items: stretch;
  justify-content: flex-end;
}

.info-inner {
  width: min(520px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e0e0e0;
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.info-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.info-close {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #666;
  transition: color 0.15s;
}
.info-close:hover { color: #111; }

.info-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.info-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 28px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.info-nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #999;
  padding: 14px 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.info-nav-link:first-child { padding-left: 0; }
.info-nav-link:hover { color: #111; }
.info-nav-link.active { color: #111; border-bottom-color: #111; }

.info-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  font-size: 13px;
  line-height: 1.8;
  color: #444;
}
.info-content h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: #111;
}
.info-content p {
  margin-bottom: 14px;
}
.info-content a {
  color: #111;
  border-bottom: 1px solid #ccc;
}

/* ═══════════════════════════════════════
   ADDRESS MODAL (within checkout)
═══════════════════════════════════════ */
.addr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
}
.addr-modal.open { display: flex; }
.addr-inner {
  width: min(480px, 94%);
  background: #fff;
  padding: 28px;
}
.addr-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.addr-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: flex-end;
}
.addr-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: transparent;
}
.addr-input:focus { border-color: #111; }
.addr-input::placeholder { color: #bbb; }
.addr-search-btn {
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.addr-save-btn {
  width: 100%;
  padding: 14px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 8px;
  transition: background 0.15s;
}
.addr-save-btn:hover { background: #333; }

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #111;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════
   MOBILE (≤ 768px)
═══════════════════════════════════════ */
@media (max-width: 768px) {

  html, body {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* Topbar — landing nav 모바일 값과 동일 */
  .topbar { padding: 18px 20px 0; }

  /* Main content shifts below top bar */
  .main-content {
    margin-left: 0;
    height: 100%;
    padding-top: 44px; /* 18px top padding + 16px 링크 + 10px buffer */
    overflow-y: auto;
  }

  /* Filter bar on mobile — 6개 버튼이 안 들어가므로 가로 스크롤 */
  .shop-filter-bar {
    padding: 13px 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shop-filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { padding: 11px 7px; font-size: 10px; white-space: nowrap; }

  /* 2-column grid on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 20px 40px;
    column-gap: 10px;
    row-gap: 24px;
  }

  /* Product Detail Page – stacked */
  .pd-crumb { padding: 13px 20px 0; }
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 14px 20px 40px;
  }
  .pd-gal-item { flex: 0 0 100%; }
  .pd-gal-arrow { display: none; }
  .pd-panel { position: static; }

  /* Cart Overlay */
  .cart-inner { width: 100%; }

  /* Checkout Overlay */
  .checkout-scroll { width: 100%; }
  .checkout-inner {}
  .checkout-header { padding: 16px 20px; }
  .checkout-body { flex-direction: column; }
  .co-left { padding: 24px 20px; border-right: none; border-bottom: 1px solid #e0e0e0; }
  .co-right { width: 100%; padding: 24px 20px; }

  /* Login Overlay */
  .login-inner { width: 100%; position: absolute; bottom: 0; }
  .login-overlay { align-items: flex-end; }

  /* Info Overlay */
  .info-inner { width: 100%; }

  /* About */
  .about-wrap { padding: 32px 20px; }

}

/* ═══════════════════════════════════════
   SMALL MOBILE (≤ 480px)
═══════════════════════════════════════ */
@media (max-width: 480px) {
  .topbar-action:nth-child(3) { display: none; } /* hide INFO on very small screens */
}

/* ═══════════════════════════════════════
   MYPAGE (마이페이지)
═══════════════════════════════════════ */
.page-mypage {
  display: none;
  height: 100%;
}
.page-mypage.active { display: flex; }

.mypage-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0 170px 0 150px;
  box-sizing: border-box;
}

/* 왼쪽 사이드 */
.mypage-side {
  width: 50%;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 95px 80px 80px 100px;
}
.mypage-side::-webkit-scrollbar { display: none; }

.mypage-sections { width: 100%; }

.mp-section-title {
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #111;
}

.mp-section-body {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 오른쪽 콘텐츠 */
.mypage-content {
  width: 50%;
  overflow-y: auto;
  padding: 95px 0 80px 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mypage-content::-webkit-scrollbar { display: none; }

.mp-panel { display: none; width: 100%; max-width: 440px; }
.mp-panel.active { display: block; }

.mp-panel-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: #111;
}

/* 로그아웃 행 (회원정보 패널) */
.mp-logout-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.mp-btn-logout {
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  padding: 0;
  transition: color 0.15s;
}
.mp-btn-logout:hover { color: #111; }

.mp-empty {
  font-size: 16px;
  font-weight: 300;
  color: #111;
  letter-spacing: 0.02em;
}

/* 폼 — 회원가입 스타일과 동일 */
.mp-form {
  width: 100%;
}
.mp-form-row {
  margin-bottom: 16px;
}
.mp-form-label {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: #111;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.mp-form-input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #111;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
}
.mp-form-input:focus { border-color: #111; }
.mp-form-input[readonly] { background: #f7f7f7; color: #999; cursor: default; }
.mp-form-input::placeholder { color: #ccc; }
.mp-input-mt { margin-top: 8px; }

/* 우편번호 행 */
.mp-zip-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.mp-zip-row .mp-form-input { flex: 1; min-width: 0; }
.mp-zip-btn {
  flex-shrink: 0;
  padding: 14px 16px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.mp-zip-btn:hover { background: #333; }

/* 생년월일 */
.mp-birth-row { display: flex; gap: 8px; }
.mp-form-select {
  flex: 1;
  padding: 14px 28px 14px 10px;
  border: 1px solid #111;
  font-size: 13px;
  font-family: inherit;
  color: #111;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23111'/%3E%3C/svg%3E") no-repeat right 10px center;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}
.mp-form-select:focus { border-color: #111; }

/* 마케팅 체크박스 */
.mp-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 300;
  color: #111;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.mp-check-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #111;
}

/* 서브 버튼 행 */
.mp-form-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.mp-btn-sub {
  flex: 1;
  padding: 14px 10px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 1px solid #bbb;
  cursor: pointer;
  transition: border-color 0.15s;
}
.mp-btn-sub:hover { border-color: #111; }
.mp-btn-del { color: #b00; border-color: #e8c0c0; }
.mp-btn-del:hover { border-color: #b00; }

/* 저장 버튼 */
.mp-btn-save {
  display: block;
  width: 65%;
  margin: 0 auto;
  padding: 20px;
  background: #111;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.mp-btn-save:hover { background: #333; }
.mp-btn-save:disabled { background: #999; cursor: default; }

/* 반응형 */
@media (max-width: 768px) {
  .mypage-wrap { flex-direction: column; height: auto; }
  .mypage-side { width: 100%; padding: 40px 24px 20px; }
  .mypage-content { width: 100%; padding: 20px 24px 60px 24px; }
}
