





.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; }


.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 160; display: grid; gap: 8px; width: min(320px, calc(100vw - 32px)); pointer-events: none; }
.toasts .toast { position: static; transform: none; left: auto; bottom: auto; max-width: none; width: 100%; pointer-events: auto;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: #101318; color: #FFFFFF; font-size: 14px; font-weight: 400; line-height: 1.4; border-radius: 10px; padding: 12px 14px; }
.toasts .toast a, .toasts .toast button { color: #9DB8FF; font-weight: 700; background: none; border: 0; padding: 4px 0; margin: 0; font-size: 14px; white-space: nowrap; text-decoration: none; cursor: pointer; }
.toasts .toast a:hover, .toasts .toast button:hover { text-decoration: underline; }


body[data-page="login"], body[data-page="register"] { background: #F4F6F9; }
body[data-page="login"] .site-footer, body[data-page="register"] .site-footer { margin-top: 0; }
.auth { padding: 24px 0 48px; }
.auth__card { width: 100%; max-width: 420px; margin: 0 auto; background: #FFFFFF; padding: 20px; }
.auth__logo { display: block; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: #101318; text-decoration: none; margin-bottom: 20px; }
.auth__logo span { color: #1F5EFF; }
.auth h1 { font-size: 24px; font-weight: 700; color: #101318; margin: 0 0 6px; line-height: 1.25; }
.auth__sub { font-size: 14px; font-weight: 400; color: #6B7280; margin: 0 0 24px; }
@media (min-width: 480px) {
  .auth { padding: 48px 16px 64px; }
  .auth__card { padding: 32px; border: 1px solid #E6E9EF; border-radius: 12px; }
}
.af { display: grid; gap: 6px; margin-bottom: 16px; }
.af > label { font-size: 13px; font-weight: 500; color: #101318; }
.af__wrap { position: relative; }
.af input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #E6E9EF; border-radius: 10px; background: #FFFFFF; font-size: 15px; font-weight: 400; color: #101318; }
.af input:focus { outline: none; border-color: #1F5EFF; box-shadow: 0 0 0 3px rgba(31, 94, 255, .18); }
.af input[aria-invalid="true"] { border-color: #E5342A; }
.af input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(229, 52, 42, .15); }
.af__wrap input { padding-right: 48px; }
.af__eye { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #6B7280; border-radius: 8px; }
.af__eye:hover { color: #101318; background: #F4F6F9; }
.af__eye svg { width: 20px; height: 20px; }
.af__hint { font-size: 13px; font-weight: 400; color: #6B7280; }
.af__err { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 400; color: #E5342A; }
.af__err:empty { display: none; }
.af__err::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #E5342A; color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.af__meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 2px; }
.af__meter i { height: 4px; border-radius: 2px; background: #E6E9EF; transition: background .15s; }
.af__meter[data-level="1"] i:nth-child(-n+1) { background: #E5342A; }
.af__meter[data-level="2"] i:nth-child(-n+2) { background: #B45309; }
.af__meter[data-level="3"] i { background: #12A150; }
.af__meter-l { font-size: 13px; color: #6B7280; }
.form-alert { margin: 0 0 16px; padding: 12px; border-radius: 10px; border: 1px solid #FCA5A5; background: #FEF2F2; color: #E5342A; font-size: 13px; font-weight: 500; }
.form-alert:empty { display: none; }
.btn-primary { display: flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 10px;
  background: #1F5EFF; color: #FFFFFF; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary:hover { background: #1A4FD6; }
.btn-primary[disabled], .btn-primary.is-loading { background: #A9C0FF; cursor: default; }
.auth__alt { text-align: center; font-size: 14px; font-weight: 400; color: #6B7280; margin: 20px 0 0; }
.auth__alt a, .link { color: #1F5EFF; text-decoration: none; }
.auth__alt a:hover, .link:hover { text-decoration: underline; }
.auth__off { text-align: center; }
.auth__off .note { text-align: left; }

.hdr__acc { position: relative; grid-area: login; display: none; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .hdr__acc { display: flex; } }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px; border: 1px solid #E6E9EF; border-radius: 10px; background: #FFFFFF; color: #101318; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn-outline:hover { border-color: #1F5EFF; color: #1F5EFF; }
.btn-fill { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px; border-radius: 10px; background: #1F5EFF; color: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-fill:hover { background: #1A4FD6; }
.acc-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 500; color: #101318; max-width: 200px; }
.acc-btn:hover, .acc-btn[aria-expanded="true"] { background: #F4F6F9; }
.acc-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-btn svg { width: 16px; height: 16px; flex: none; transition: transform .15s; }
.acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: 220px; padding: 6px; background: #FFFFFF; border: 1px solid #E6E9EF; border-radius: 12px; box-shadow: 0 8px 24px rgba(16, 19, 24, .08); }
.acc-menu a, .acc-menu button { display: flex; align-items: center; width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font-size: 14px; color: #101318; text-decoration: none; text-align: left; }
.acc-menu a:hover, .acc-menu button:hover, .acc-menu a:focus-visible, .acc-menu button:focus-visible { background: #F4F6F9; }
.acc-menu .is-danger { color: #E5342A; }
.acc-menu hr { border: 0; border-top: 1px solid #E6E9EF; margin: 6px 0; }
.drawer__acc { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid #E6E9EF; }
.drawer__acc .who { font-weight: 700; padding: 4px; }
.drawer__acc a, .drawer__acc button { display: flex; align-items: center; height: 44px; padding: 0 4px; border: 0; background: none; font-size: 15px; color: #101318; text-decoration: none; text-align: left; }
.drawer__acc .is-danger { color: #E5342A; }
.drawer__acc .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__acc .row2 a { justify-content: center; }
.drawer__acc .row2 .btn-fill { color: #FFFFFF; }


.gallery { position: relative; }
.heart { position: absolute; z-index: 3; top: 12px; right: 12px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #FFFFFF; border: 1px solid #E6E9EF; border-radius: 10px; color: #6B7280; }
.heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill .15s, stroke .15s; }
.heart[aria-pressed="true"] { color: #E5342A; }
.heart[aria-pressed="true"] svg { fill: #E5342A; stroke: #E5342A; }
.heart:hover { border-color: #E5342A; }


.vmodal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16, 19, 24, .5); }
.vmodal__box { width: 100%; max-width: 440px; background: #FFFFFF; border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.vmodal__box h2 { font-size: 20px; margin: 0 0 8px; }
.vmodal__foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }


.auth-cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: #EFF4FF; border: 1px solid #BFD3FF; margin-bottom: 16px; font-size: 14px; text-align: left; }
.auth-cta .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.wish-del { position: relative; z-index: 2; margin-top: 8px; width: 100%; }

.acc-layout { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 20px 0 8px; align-items: start; }
.acc-nav { position: sticky; top: 0; z-index: 20; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter); background: #FFFFFF; border-bottom: 1px solid #E6E9EF; overflow-x: auto; scrollbar-width: none; }
.acc-nav::-webkit-scrollbar { display: none; }
.acc-nav ul { list-style: none; display: flex; gap: 8px; width: max-content; }
.acc-nav a, .acc-nav button { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #E6E9EF; background: #FFFFFF; font-size: 14px; font-weight: 500; color: #101318; text-decoration: none; white-space: nowrap; }
.acc-nav a[aria-current="page"] { background: #1F5EFF; border-color: #1F5EFF; color: #FFFFFF; }
.acc-nav .is-danger { color: #E5342A; }
@media (min-width: 1024px) {
  .acc-layout { grid-template-columns: 240px 1fr; gap: 32px; padding-top: 28px; }
  .acc-nav { top: 16px; margin: 0; padding: 8px 0; border: 1px solid #E6E9EF; border-radius: 12px; overflow: visible; }
  .acc-nav ul { display: grid; gap: 2px; width: auto; }
  .acc-nav a, .acc-nav button { display: flex; width: 100%; height: 44px; border: 0; border-left: 3px solid transparent; border-radius: 0; padding: 0 16px; font-weight: 400; background: none; }
  .acc-nav a:hover, .acc-nav button:hover { background: #F4F6F9; }
  .acc-nav a[aria-current="page"] { background: #EFF4FF; border-left-color: #1F5EFF; color: #101318; font-weight: 500; }
}
.acc-sec { display: grid; gap: 16px; min-width: 0; }
.acc-sec > h1 { font-size: 24px; margin: 0; }
.acc-box { border: 1px solid #E6E9EF; border-radius: 12px; padding: 20px; background: #FFFFFF; }
.acc-box h2 { font-size: 18px; margin: 0 0 14px; }
.acc-box .af { max-width: 460px; }
.acc-grid2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; max-width: 640px; }
@media (min-width: 768px) { .acc-grid2 { grid-template-columns: 1fr 1fr; } .acc-grid2 .af { max-width: none; } }
.acc-box .btn-primary { width: auto; padding: 0 24px; display: inline-flex; }
@media (max-width: 479.98px) { .acc-box { padding: 16px; } .acc-box .btn-primary { width: 100%; } }
.btn-danger-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid #FCA5A5; border-radius: 10px; background: #FFFFFF; color: #E5342A; font-size: 14px; font-weight: 700; }
.btn-danger-ghost:hover { background: #FEF2F2; }
.acc-loading { display: flex; align-items: center; gap: 10px; color: #6B7280; padding: 24px 0; }


.orders { display: grid; gap: 12px; list-style: none; }
.order { border: 1px solid #E6E9EF; border-radius: 12px; background: #FFFFFF; }
.order__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 0; }
.order__num { display: block; font-size: 15px; font-weight: 700; }
.order__date { font-size: 13px; color: #6B7280; }
.order__items { list-style: none; display: grid; gap: 10px; padding: 14px 16px; }
.order__items li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.order__items img { width: 40px; height: 40px; border-radius: 6px; background: #F4F6F9; }
.order__items .q { color: #6B7280; white-space: nowrap; }
.order__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid #E6E9EF; }
.order__total { font-size: 15px; font-weight: 700; }
.order__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.order__det { padding: 0 16px 16px; font-size: 14px; color: #585F6C; }
.order__det dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.order__det dd { margin: 0; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; border: 1px solid; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip--pending { color: #B45309; background: #FFF7ED; border-color: #FDBA74; }
.chip--confirmed { color: #1F5EFF; background: #EFF4FF; border-color: #BFD3FF; }
.chip--shipping { color: #6B7280; background: #F4F6F9; border-color: #E6E9EF; }
.chip--delivered { color: #12A150; background: #ECFDF3; border-color: #A7E8C4; }
.chip--cancelled { color: #E5342A; background: #FEF2F2; border-color: #FCA5A5; }


.addr { display: grid; gap: 10px; list-style: none; margin-bottom: 14px; }
.addr li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid #E6E9EF; border-radius: 12px; }
.addr li.is-main { border-color: #1F5EFF; background: #F7F9FF; }
.addr .t { flex: 1 1 240px; }
.addr .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.order__date { display: block; }
