.header-actions { grid-column: 3; align-self: center; display: flex; align-items: center; gap: .55rem; }
.header-actions .header-store { grid-column: auto; }
.member-trigger, .member-nav-trigger { min-height: 44px; border: 0; background: transparent; cursor: pointer; font-size: .65rem; font-weight: 760; letter-spacing: .1em; }
.member-trigger { padding: 0 .75rem; border-bottom: 1px solid var(--ink); }
.member-trigger:hover { background: var(--ink); color: var(--cream); }
.member-nav-trigger { display: none; }

.member-dialog { width: min(92vw, 31rem); max-width: none; padding: 0; border: 1px solid var(--ink); background: var(--cream); color: var(--ink); box-shadow: 10px 10px 0 var(--moss); }
.member-dialog::backdrop { background: color-mix(in srgb, var(--ink) 78%, transparent); }
.member-panel { padding: clamp(1.4rem, 5vw, 2.4rem); }
.member-panel > header { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--ink); }
.member-panel > header p { margin: 0 0 .45rem; font-size: .62rem; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }
.member-panel > header h2 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 570; letter-spacing: -.04em; }
.member-panel > header button { align-self: start; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: .68rem; }
.member-dialog-status { min-height: 1.5em; margin: .8rem 0 0; font-size: .7rem; }
.member-signed-out > p { margin: 1.6rem 0; font-size: .9rem; line-height: 1.8; }
.member-provider-list { display: grid; gap: .65rem; }
.member-provider { min-height: 58px; display: grid; grid-template-columns: 4.4rem 1fr auto; gap: .75rem; align-items: center; padding: 0 1rem; border: 1px solid var(--ink); }
.member-provider strong { font-size: .58rem; letter-spacing: .08em; }
.member-provider span { font-size: .82rem; font-weight: 680; }
.member-provider b { font-weight: 500; }
.member-provider:hover { background: var(--ink); color: var(--cream); }
.member-provider--naver { border-color: var(--moss); background: var(--moss); color: var(--cream); }
.member-provider.is-disabled { opacity: .4; cursor: not-allowed; }
.member-signed-out > small { display: block; margin-top: 1.2rem; font-size: .65rem; line-height: 1.75; opacity: .72; }
.member-signed-out > small a { border-bottom: 1px solid currentColor; }
.member-profile { display: grid; grid-template-columns: 3.6rem 1fr; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.member-profile-image { width: 3.6rem; height: 3.6rem; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--moss) center / cover no-repeat; color: var(--cream); font-size: 1.3rem; }
.member-profile strong, .member-profile small { display: block; overflow-wrap: anywhere; }
.member-profile small { margin-top: .35rem; font-size: .68rem; opacity: .66; }
.member-account-link { min-height: 66px; display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center; margin-top: 1.5rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: .78rem; }
.member-account-link b { color: var(--moss); }
.member-account-link i { font-style: normal; }
.member-logout { min-height: 44px; margin-top: 1rem; padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: .68rem; }
.member-toast { position: fixed; z-index: 1200; right: var(--page-pad); bottom: 5.5rem; max-width: min(30rem, calc(100vw - 2rem)); margin: 0; padding: .9rem 1rem; border: 1px solid var(--cream); background: var(--ink); color: var(--cream); font-size: .72rem; opacity: 0; pointer-events: none; transform: translateY(.6rem); transition: opacity .16s ease, transform .16s ease; }
.member-toast.is-visible { opacity: 1; transform: none; }

.wishlist-button { min-height: 44px; padding: .7rem .8rem; border: 1px solid var(--ink); background: var(--cream); cursor: pointer; font-size: .66rem; font-weight: 700; }
.wishlist-button.is-selected { background: var(--moss); color: var(--cream); border-color: var(--moss); }
.store-product-actions, .featured-product-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-detail-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-detail-actions .wishlist-button { width: 100%; }

.account-main { min-height: 70svh; }
.account-hero { padding: clamp(7rem, 14vh, 11rem) var(--page-pad) clamp(4rem, 9vh, 7rem); border-bottom: 1px solid var(--ink); }
.account-hero > div, .account-content { width: min(100%, var(--max-width)); margin: 0 auto; }
.account-hero h1 { max-width: 12ch; margin: .8rem 0 0; font-size: clamp(3.3rem, 8vw, 8rem); font-weight: 540; letter-spacing: -.045em; line-height: 1.08; word-break: keep-all; }
.account-content { padding: clamp(4rem, 10vh, 8rem) var(--page-pad); }
.account-signed-out { max-width: 36rem; }
.account-signed-out h2, .account-profile h2, .account-delete h2 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); font-weight: 560; letter-spacing: -.04em; }
.account-signed-out p { margin: 1.25rem 0 2rem; line-height: 1.8; }
.account-login-button { min-height: 50px; display: inline-flex; align-items: center; gap: 3rem; padding: 0 1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); font-size: .78rem; font-weight: 680; }
.account-profile { display: flex; justify-content: space-between; gap: 2rem; align-items: end; padding-bottom: 2rem; border-bottom: 1px solid var(--ink); }
.account-profile p { margin: .5rem 0 0; overflow-wrap: anywhere; }
.account-profile a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid var(--ink); font-size: .72rem; }
.account-wishlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.account-product { border: 1px solid var(--ink); background: var(--cream); box-shadow: 6px 6px 0 var(--ink); }
.account-product__media { aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--cream) 82%, var(--moss)); }
.account-product__media img { width: 100%; height: 100%; object-fit: cover; }
.account-product > div { padding: 1rem; }
.account-product p { margin: 0; font-size: .6rem; font-weight: 760; letter-spacing: .12em; }
.account-product h3 { min-height: 3.4em; margin: .55rem 0 1rem; font-size: .95rem; line-height: 1.45; }
.account-product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.account-product__actions button { min-height: 44px; padding: .55rem; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); cursor: pointer; font-size: .62rem; }
.account-product__actions button:last-child { background: var(--cream); color: var(--ink); }
.account-product__actions button:last-child.is-selected { background: var(--moss); color: var(--cream); }
.account-empty { grid-column: 1 / -1; margin: 2rem 0; padding: 4rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 1rem; line-height: 1.8; }
.account-delete { margin-top: clamp(5rem, 12vh, 9rem); padding-top: 2.5rem; border-top: 1px solid var(--ink); }
.account-delete > p { margin: 1rem 0 2rem; line-height: 1.8; }
.account-delete form { max-width: 34rem; }
.account-delete label { display: block; font-size: .72rem; }
.account-delete input { width: 100%; min-height: 50px; margin-top: .55rem; padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; }
.account-delete button { min-height: 48px; margin-top: 1.25rem; padding: 0 1rem; border: 1px solid var(--danger, #9A352F); background: transparent; color: var(--danger, #9A352F); cursor: pointer; font-size: .72rem; font-weight: 700; }
.account-delete button:hover { background: var(--danger, #9A352F); color: var(--cream); }
.account-delete [data-delete-status] { min-height: 1.5em; margin-top: .8rem; font-size: .7rem; }

@media (max-width: 820px) {
  .header-actions { grid-column: 3; grid-row: 1; justify-self: end; gap: 0; }
  .member-trigger { display: none; }
  .member-nav-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; color: var(--cream); font-size: 1.35rem; font-weight: 620; letter-spacing: -.02em; border-bottom: 1px solid color-mix(in srgb, var(--cream) 28%, transparent); }
  .member-nav-trigger::after { content: "→"; font-size: .9rem; }
  .store-product-actions, .featured-product-actions { grid-template-columns: 1fr; }
  .product-detail-actions { grid-template-columns: 1fr; }
  .account-profile { align-items: start; flex-direction: column; }
  .account-wishlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.privacy-main { width: min(100%, 58rem); margin: 0 auto; padding: clamp(7rem, 14vh, 11rem) var(--page-pad); }
.privacy-main h1 { margin: .8rem 0 1.5rem; font-size: clamp(3.2rem, 8vw, 7rem); font-weight: 540; letter-spacing: -.045em; line-height: 1.08; word-break: keep-all; }
.privacy-lead { margin: 0 0 clamp(4rem, 9vh, 7rem); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.8; }
.privacy-section { padding: 2rem 0; border-top: 1px solid var(--ink); }
.privacy-section h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 580; letter-spacing: -.03em; }
.privacy-section p, .privacy-section li { line-height: 1.85; }
.privacy-section ul { margin: 0; padding-left: 1.2rem; }
.privacy-section a { border-bottom: 1px solid currentColor; }

@media (max-width: 520px) {
  .member-dialog { width: calc(100vw - 1.5rem); box-shadow: 6px 6px 0 var(--moss); }
  .member-panel { padding: 1.25rem; }
  .account-wishlist { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .member-toast { transition: none; }
}
