/* Store account entry and profile pages. */
.site-main-header__right { display: flex; align-items: center; gap: 1rem; }
.header-account-btn { display: inline-flex; align-items: center; gap: .45rem; color: #18181b; text-decoration: none; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.header-account-btn:hover, .header-account-btn:focus-visible { color: #74543f; }
.product-card__favorite { position: absolute; top: .75rem; right: .75rem; z-index: 6; }
.product-card__favorite button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: #42332b; cursor: pointer; }
.product-card__favorite button:hover { background: #f0e6df; }
.product-card__favorite.is-favorite button { background: #fff1f1; color: #bf2c45; }
.product-card__favorite.is-favorite svg { fill: currentColor; }
.product-card__favorite:not(form) { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); color: #42332b; }
.product-detail__favorite { margin: .75rem 0 1.25rem; }
.product-detail__favorite button { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border: 1px solid #d7d0c9; background: #fff; color: #3c3129; font: inherit; font-size: .82rem; cursor: pointer; }
.product-detail__favorite button:hover { background: #f4f0eb; }
.product-detail__favorite.is-favorite button { border-color: #e9b7c1; background: #fff1f1; color: #ae2540; }
.product-detail__favorite.is-favorite svg { fill: currentColor; }
.hold-modal__profile-notice { display: grid; gap: .85rem; font-size: .9rem; line-height: 1.5; }
.hold-modal__profile-notice p { margin: 0; }
.hold-modal__profile-notice .btn { justify-self: start; }
.hold-modal__account-info { margin: 0; font-size: .82rem; color: #665d56; }
.hold-modal__form[hidden] { display: none; }
.product-detail__favorite-link { display: inline-flex; align-items: center; gap: .5rem; margin: .75rem 0 1.25rem; padding: .55rem .8rem; border: 1px solid #d7d0c9; background: #fff; color: #3c3129; font-size: .82rem; }

/* Authentication pages */
.customer-auth #main { min-height: 70vh; }
.customer-auth__section { padding: clamp(2.5rem, 5vw, 5rem) 0; }
.customer-auth__shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); max-width: 960px; min-height: 560px; background: #fff; border: 1px solid #e5e0da; box-shadow: 0 22px 65px rgba(30, 24, 18, .07); }
.customer-auth__shell--single { display: block !important; max-width: 520px !important; min-height: auto !important; margin: 0 auto; border-radius: 8px; box-shadow: 0 16px 45px rgba(30, 24, 18, .07); }
.customer-auth__shell--single .customer-auth__panel { padding: clamp(1.75rem, 4vw, 2.75rem); }
.customer-auth__shell--single .customer-auth__heading { margin-bottom: 1.5rem; text-align: center; }
.customer-auth__shell--single .customer-auth__heading h1 { font-size: clamp(2rem, 3.2vw, 2.6rem); margin-bottom: 0.35rem; }
.customer-auth__shell--single .customer-auth__switch { text-align: center; margin-top: 1.5rem; }
.customer-auth__intro { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(2rem, 5vw, 4.5rem); background: #ece6df; }
.customer-auth__eyebrow, .customer-auth__step { color: #765b46; font-size: .7rem; font-weight: 800; letter-spacing: .17em; }
.customer-auth__intro h2 { max-width: 320px; margin: clamp(3.5rem, 8vw, 7rem) 0 1rem; font-family: var(--display); font-size: clamp(2.8rem, 4vw, 4.4rem); font-weight: 600; line-height: .98; letter-spacing: -.025em; }
.customer-auth__intro p { max-width: 320px; color: #625b53; line-height: 1.7; }
.customer-auth__intro-note { margin-top: auto; padding-top: 2rem; color: #625b53; font-size: .86rem; }
.customer-auth__intro-note a, .customer-auth__switch a { color: #1e1b19; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.customer-auth__panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(2rem, 5vw, 4.5rem); }
.customer-auth__heading { margin-bottom: 2rem; }
.customer-auth__heading h1 { margin: .65rem 0 .45rem; font-family: var(--display); font-size: clamp(2.6rem, 3.5vw, 3.7rem); font-weight: 600; line-height: 1.05; }
.customer-auth__heading p { color: #6b6661; font-size: .9rem; }
.customer-auth__form { display: grid; gap: 1.15rem; }
.customer-auth__field { display: grid; gap: .4rem; min-width: 0; }
.customer-auth__field label { font-size: .82rem; font-weight: 800; color: #282521; }
.customer-auth__field label span { font-weight: 500; color: #77716a; }
.customer-auth__field input { display: block; width: 100%; height: 48px; padding: 0 .9rem; border: 1px solid #d4cec7; border-radius: 2px; background: #fff; color: #201e1c; font: inherit; font-size: .9rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.customer-auth__field input::placeholder { color: #a49e97; }
.customer-auth__field input:hover { border-color: #9c8d80; }
.customer-auth__field input:focus-visible { border-color: #5f4938; box-shadow: 0 0 0 3px rgba(95, 73, 56, .12); }
.customer-auth__field input[aria-invalid='true'] { border-color: #b42318; }
.customer-auth__error { display: block; color: #a4241c; font-size: .77rem; line-height: 1.4; }
.customer-auth__remember { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; margin: .1rem 0; font-size: .82rem; cursor: pointer; }
.customer-auth__remember input { width: 16px; height: 16px; accent-color: #28231f; }
.customer-auth__submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: .8rem 1.1rem; border: 1px solid #18181b; border-radius: 6px; background: #18181b; color: #fff !important; font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.customer-auth__submit:hover, .customer-auth__submit:focus-visible { background: #27272a !important; border-color: #27272a !important; color: #fff !important; transform: translateY(-1px); }
.customer-auth__submit *, .customer-auth__submit:hover * { color: #fff !important; }
.customer-auth__submit span { font-size: 1.3rem; font-weight: 400; line-height: 1; }
.customer-auth__switch { margin-top: 1.65rem; color: #6b6661; font-size: .83rem; }

/* Profile page */
.account-page { min-height: 65vh; display: flex; justify-content: center; align-items: flex-start; padding: 4rem 0; }
.account-card { width: min(100%, 480px); padding: 2rem; background: #fff; border: 1px solid #e5e0da; box-shadow: 0 12px 38px rgba(0,0,0,.05); }
.account-card h1 { font-family: var(--display); font-size: 2.8rem; font-weight: 600; }
.account-card p { margin-top: .5rem; color: #666; }
.account-card form { margin-top: 1.5rem; }
.account-submit { width: 100%; min-height: 48px; border: 1px solid #18181b; border-radius: 6px; background: #18181b; color: #fff !important; font: inherit; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.account-submit:hover, .account-submit:focus-visible { background: #27272a !important; border-color: #27272a !important; color: #fff !important; transform: translateY(-1px); }
.account-submit *, .account-submit:hover * { color: #fff !important; }
.account-details { display: grid; grid-template-columns: 90px 1fr; gap: .65rem; margin: 1.5rem 0; }
.account-details dt { font-weight: 700; }
.account-details dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 991px) {
    .header-account-btn { order: 3; z-index: 2; margin-left: auto; width: 42px; height: 42px; justify-content: center; }
    .header-account-btn span { display: none; }
    .header-cart-btn { margin-left: 0 !important; }
    .customer-auth #main { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
    .account-page { padding-top: calc(var(--header-h) + 2rem); }
}
@media (max-width: 720px) {
    .customer-auth__section { padding: 1.2rem 0 2.5rem; }
    .customer-auth__shell { display: flex; flex-direction: column; min-height: 0; width: min(100% - 1.5rem, 520px); }
    .customer-auth__intro { padding: 1.45rem 1.55rem; }
    .customer-auth__intro h2 { margin: 1.1rem 0 .45rem; font-size: 2.6rem; }
    .customer-auth__intro p { font-size: .84rem; }
    .customer-auth__intro-note { display: none; }
    .customer-auth__panel { padding: 1.7rem 1.55rem 2rem; }
    .customer-auth__heading { margin-bottom: 1.5rem; }
    .customer-auth__heading h1 { font-size: 2.6rem; }
    .customer-auth__form { gap: 1rem; }
    .account-page { min-height: 0; padding-bottom: 2rem; }
}
@media (max-width: 380px) {
    .customer-auth__intro, .customer-auth__panel { padding-left: 1.1rem; padding-right: 1.1rem; }
    .customer-auth__intro h2 { font-size: 2.25rem; }
}
