/* ── Customer auth offcanvas ── */
.panel-auth,
.panel-profile,
.panel-cart,
.panel-quickview {
  will-change: transform;
}

.panel-auth.open,
.panel-profile.open,
.panel-cart.open,
.panel-quickview.open {
  animation: authPanelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.panel-auth:not(.open),
.panel-profile:not(.open),
.panel-cart:not(.open),
.panel-quickview:not(.open) {
  pointer-events: none;
}

@keyframes authPanelIn {
  from {
    transform: translateX(-105%);
    box-shadow: none;
  }
  to {
    transform: translateX(0);
    box-shadow: 4px 0 60px rgba(0, 0, 0, 0.15);
  }
}

#overlay.show {
  animation: authOverlayIn 0.35s ease both;
}

@keyframes authOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-scroll [data-auth-view],
.auth-scroll [data-auth-panel],
.auth-form {
  animation: authScreenIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authScreenIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-mode-switch {
  margin-bottom: 18px;
}

.auth-form-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
}

.auth-otp-lead {
  margin-top: -6px;
}

.auth-submit-primary {
  background: linear-gradient(135deg, var(--a1, #c67b4e), var(--a2, #a85f38));
  border: none;
  box-shadow: 0 8px 20px rgba(168, 95, 56, 0.2);
}

.auth-submit-primary:hover {
  filter: brightness(1.04);
}

.auth-alt-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--g3);
  background: var(--w);
  color: var(--dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.auth-alt-btn:hover {
  border-color: var(--a2);
  color: var(--a1);
  background: rgba(198, 123, 78, 0.06);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--g5);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--g3);
}

.auth-lock-banner {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid rgba(214, 162, 58, 0.25);
  color: #8a6418;
  font-size: 12px;
  line-height: 1.8;
}

.auth-lock-banner:not([hidden]) {
  display: flex;
}

.auth-lock-banner[hidden] {
  display: none !important;
}

.auth-lock-banner i {
  margin-top: 3px;
}

.auth-inline-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--a2);
  cursor: pointer;
  text-decoration: underline;
}

[data-auth-password-field].is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.auth-captcha-block {
  margin: 8px 0 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--g1, #faf8f6);
  border: 1px solid var(--g3);
}

.auth-captcha-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.auth-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-captcha-image {
  flex: 1;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #faf6f2;
  border: 1px solid var(--g3);
}

.auth-captcha-image svg {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 12px;
}

.auth-captcha-loading {
  color: var(--g5);
  letter-spacing: 2px;
}

.auth-captcha-refresh {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--g3);
  background: #fff;
  color: var(--g6);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.auth-captcha-refresh:hover {
  color: var(--a1);
  border-color: var(--a2);
}

.auth-captcha-input input,
.auth-captcha-input input[data-auth-captcha-input] {
  text-align: center;
  letter-spacing: 0.12em;
  font-weight: 700;
  background: #fff;
}

.auth-panel-header h3 i {
  color: var(--a1);
}

.auth-subtitle {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
}

.auth-hint {
  font-size: 13px;
  color: var(--g5);
  line-height: 1.8;
  margin-bottom: 16px;
}

.auth-hint strong {
  color: var(--dark);
  font-weight: 700;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--g6);
  margin: 4px 0 6px;
  cursor: pointer;
}

.auth-forgot-row {
  text-align: left;
  margin: 0 0 14px;
  font-size: 12px;
}

.auth-register-cta {
  text-align: center;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--g6);
  line-height: 1.8;
}

.auth-remember input {
  accent-color: var(--a1);
  width: 16px;
  height: 16px;
}

.auth-footnote {
  text-align: center;
  font-size: 12px;
  color: var(--g5);
  margin-top: 16px;
}

.auth-link-btn,
.auth-back-row {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--a2);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-link-btn:hover,
.auth-back-row:hover {
  color: var(--a1);
}

.auth-back-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.auth-optional {
  font-weight: 400;
  color: var(--g5);
  font-size: 11px;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 46px;
  text-align: left;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  left: auto;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: var(--g5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--a1);
  outline: none;
}

.auth-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
}

.auth-alert.is-error {
  background: #fdf0ee;
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.15);
}

.auth-alert.is-success {
  background: var(--success-bg, #eaf8f1);
  color: var(--success, #1e7e4a);
  border: 1px solid rgba(30, 126, 74, 0.15);
}

.auth-form.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.auth-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g2);
  color: var(--g4);
  font-size: 28px;
}

.auth-avatar-placeholder img {
  display: none;
}

.menu-link.auth-logout-btn {
  width: 100%;
  border: none;
  background: none;
  text-align: inherit;
  font: inherit;
  cursor: pointer;
}

.hbtn[data-auth-open] {
  position: relative;
}

.hbtn[data-auth-open].is-logged-in {
  color: var(--a1, #c67b4e);
  border-color: var(--a2, #a85f38);
  background: color-mix(in srgb, var(--a1, #c67b4e) 12%, var(--w, #fff));
}

.hbtn[data-auth-open].is-logged-in:hover {
  color: var(--a1, #c67b4e);
  border-color: var(--a1, #c67b4e);
  background: color-mix(in srgb, var(--a1, #c67b4e) 18%, var(--w, #fff));
}

.hdr-user-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.hdr-user-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hdr-user-name {
  max-width: 148px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  text-align: center;
  padding: 0 2px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hdr-user-name-heart {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--a1, #c67b4e);
}

.hdr-user-name-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdr-user-name:not([hidden]) {
  display: flex;
}

.hdr-user-name[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .hdr-user-name {
    max-width: 108px;
    font-size: 10px;
  }
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: rgba(192, 57, 43, 0.45);
}

.form-field input.auth-valid-mobile {
  border-color: var(--green);
}

.auth-required {
  color: #c0392b;
}

.auth-otp-digits {
  display: flex;
  gap: 8px;
  justify-content: center;
  direction: ltr;
  position: relative;
  margin: 8px 0 4px;
}

.auth-otp-autofill {
  position: absolute;
  inset: 0;
  opacity: 0.01;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  z-index: 2;
  caret-color: transparent;
}

.auth-otp-digit {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-otp-digit:focus {
  outline: none;
  border-color: var(--a1, #c67b4e);
  box-shadow: 0 0 0 3px rgba(198, 123, 78, 0.2);
}

.auth-resend-timer {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin: 4px 0 10px;
}

.auth-footnote [data-auth-resend]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.auth-resend-captcha {
  margin: 10px 0 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.auth-resend-captcha .auth-captcha-image {
  background: #faf6f2;
}

.auth-resend-captcha .auth-captcha-input input {
  background: #fff;
}

.auth-verify-banner {
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #7a5b00;
  font-size: 13px;
}

.auth-verify-banner:not([hidden]) {
  display: flex;
}

.auth-verify-banner[hidden] {
  display: none !important;
}

.auth-verify-banner i {
  margin-top: 2px;
  font-size: 18px;
}

.auth-verify-banner p {
  margin: 4px 0 10px;
  line-height: 1.6;
}

.auth-verify-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--a1, #c67b4e);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.auth-verify-btn:hover {
  filter: brightness(1.05);
}
