/* Shared account / cart / toast styling. Warm-black surfaces, hairline borders, ember accent. */
:root {
  --pf-surface: linear-gradient(180deg, rgba(255, 244, 232, 0.045), rgba(255, 244, 232, 0.015));
  --pf-border: rgba(255, 226, 200, 0.1);
  --pf-border-hot: rgba(255, 138, 76, 0.5);
  --pf-ember: #ff8a4c;
}

/* ---------- Header icons ---------- */
.pf-header-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pf-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--pf-border);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 244, 232, 0.03);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-out), color 0.25s ease;
}

.pf-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pf-icon-btn:hover {
  border-color: var(--pf-border-hot);
  background: rgba(255, 138, 76, 0.08);
  color: #ffd2b0;
  transform: translateY(-1px);
}

.pf-icon-btn:focus-visible {
  outline: 2px solid var(--pf-ember);
  outline-offset: 3px;
}

.pf-icon-btn.is-signed-in {
  border-color: rgba(255, 138, 76, 0.45);
  background: radial-gradient(circle at 30% 20%, rgba(255, 160, 100, 0.35), rgba(255, 94, 58, 0.12));
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffe6d2;
}

.pf-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  animation: pf-pop 0.4s var(--ease-spring);
}

.pf-badge[hidden] {
  display: none;
}

@keyframes pf-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Toast ---------- */
.pf-toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(460px, calc(100vw - 32px));
  padding: 11px 16px 11px 12px;
  border: 1px solid rgba(255, 226, 200, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 244, 232, 0.07), rgba(255, 244, 232, 0.02)),
    rgba(14, 12, 12, 0.82);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}

.pf-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.pf-toast-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 138, 76, 0.16);
  color: var(--pf-ember);
}

.pf-toast[data-type="success"] .pf-toast-icon { background: rgba(95, 224, 163, 0.14); color: var(--green); }
.pf-toast[data-type="error"] .pf-toast-icon { background: rgba(255, 93, 77, 0.15); color: #ff8a7c; }

.pf-toast-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pf-toast-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pf-toast-action {
  flex: none;
  padding-left: 12px;
  border-left: 1px solid var(--pf-border);
  color: #ffb27a;
  font-weight: 600;
  cursor: pointer;
}

.pf-toast-action:hover {
  color: #ffd2b0;
}

/* ---------- Page scaffolding ---------- */
.pf-body {
  background:
    radial-gradient(900px 480px at 85% -8%, rgba(255, 110, 56, 0.1), transparent 70%),
    radial-gradient(700px 420px at 0% 30%, rgba(255, 170, 110, 0.05), transparent 70%),
    var(--bg);
}

.pf-main {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 96px;
  min-height: 72vh;
}

.auth-eyebrow {
  margin: 0 0 10px;
  color: var(--pf-ember);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- Fields & buttons ---------- */
.pf-field {
  display: grid;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-2);
}

.pf-field span em,
.pf-grid em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.72rem;
  margin-left: 4px;
}

.pf-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pf-field input::placeholder {
  color: rgba(196, 201, 213, 0.32);
}

.pf-field input:hover {
  border-color: rgba(255, 226, 200, 0.22);
}

.pf-field input:focus {
  outline: none;
  border-color: rgba(214, 184, 140, 0.65);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(214, 184, 140, 0.1);
}

.pf-field input[readonly] {
  color: var(--muted);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pf-wide {
  grid-column: 1 / -1;
}

.pf-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 22px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 12px;
  --face: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 55%), linear-gradient(145deg, #25262c 0%, #14151a 100%);
  background:
    var(--face) padding-box,
    conic-gradient(from var(--btn-angle), rgba(214, 184, 140, 0.85), rgba(214, 184, 140, 0.18) 25%, rgba(240, 232, 220, 0.8) 50%, rgba(214, 184, 140, 0.18) 75%, rgba(214, 184, 140, 0.85)) border-box;
  animation: btn-rim 6s linear infinite;
  color: #f3e7d3;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 240, 220, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 10px 26px -14px rgba(0, 0, 0, 0.9), 0 0 22px -10px rgba(214, 184, 140, 0.35);
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s var(--ease-out), color 0.25s ease;
}

.pf-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 226, 190, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}

.pf-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #fffaf0;
  --face: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0) 55%), linear-gradient(145deg, #2d2e35 0%, #191a20 100%);
  animation-duration: 2.4s;
  box-shadow: inset 0 1px 0 rgba(255, 240, 220, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 14px 32px -14px rgba(0, 0, 0, 0.9), 0 0 30px -8px rgba(214, 184, 140, 0.5);
}

.pf-submit:hover:not(:disabled)::after {
  transform: translateX(120%);
}

.pf-submit:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 6px 16px -12px rgba(255, 138, 76, 0.5);
}

.pf-submit:focus-visible,
.pf-ghost:focus-visible {
  outline: 1px solid rgba(255, 200, 150, 0.8);
  outline-offset: 3px;
}

.pf-submit:disabled {
  cursor: progress;
  color: rgba(246, 228, 200, 0.7);
  animation: none;
  --face: linear-gradient(145deg, #202127, #181920);
  box-shadow: inset 0 1px 0 rgba(255, 240, 220, 0.08);
}

.pf-submit.is-waiting {
  cursor: not-allowed;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  --face: linear-gradient(145deg, #1c1511, #130e0b);
  color: var(--muted);
}

.pf-submit.is-busy::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(246, 228, 200, 0.3);
  border-top-color: #f6e4c8;
  border-radius: 50%;
  animation: pf-spin 0.7s linear infinite;
}

@keyframes pf-spin { to { transform: rotate(360deg); } }

.pf-inline {
  width: auto;
}

a.pf-submit {
  text-decoration: none;
}

.pf-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  background: rgba(255, 244, 232, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.pf-ghost:hover {
  border-color: var(--pf-border-hot);
  background: rgba(255, 138, 76, 0.07);
}

.pf-link {
  align-self: flex-start;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pf-link:hover:not(:disabled) {
  color: #ffb27a;
}

.pf-link:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.pf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pf-lead b {
  color: var(--text);
  font-weight: 500;
}

.pf-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pf-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 93, 77, 0.28);
  border-radius: 10px;
  background: rgba(255, 93, 77, 0.08);
  color: #ffa699;
  font-size: 0.82rem;
}

.pf-error[hidden] {
  display: none;
}

.pf-hint,
.pf-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.pf-lead b {
  color: var(--text);
  font-weight: 600;
}

.pf-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 0.82rem;
  cursor: pointer;
}

.pf-check input {
  width: 16px;
  height: 16px;
  accent-color: #ff6a3d;
}

/* ---------- Auth ---------- */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--pf-border);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(10, 9, 10, 0.7);
  box-shadow: var(--shadow-lg);
  animation: pf-rise 0.7s var(--ease-out) both;
}

.auth-shell[hidden],
.acct-shell[hidden] {
  display: none;
}

@keyframes pf-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 40px;
  overflow: hidden;
  background:
    radial-gradient(420px 320px at 0% 0%, rgba(255, 122, 69, 0.2), transparent 70%),
    radial-gradient(360px 280px at 100% 100%, rgba(255, 183, 102, 0.1), transparent 70%),
    #0c0a0a;
  border-right: 1px solid var(--pf-border);
}

.auth-aside::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 226, 200, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 226, 200, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 20% 10%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 20% 10%, #000, transparent 75%);
  pointer-events: none;
}

.auth-aside > * {
  position: relative;
  z-index: 1;
}

.auth-emblem {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
}

.auth-aside h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.auth-perks {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-perks li {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.auth-perks i {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--pf-ember);
  box-shadow: 0 0 12px var(--pf-ember);
}

.auth-perks strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-foot {
  margin: 0;
  color: rgba(255, 226, 200, 0.45);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.auth-panel {
  padding: 40px 40px 44px;
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 26px;
  padding: 4px;
  border: 1px solid var(--pf-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}

.auth-tabs[hidden] {
  display: none;
}

.auth-tabs button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s ease;
}

.auth-tabs button[aria-selected="true"] {
  color: #fff;
}

.auth-tab-ink {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(145deg, #2d2e35, #1b1c22);
  box-shadow: inset 0 0 0 1px rgba(214, 184, 140, 0.55), 0 8px 20px -12px rgba(0, 0, 0, 0.9);
  transition: transform 0.4s var(--ease-out);
}

.auth-tabs[data-active="register"] .auth-tab-ink {
  transform: translateX(100%);
}

.auth-reason {
  margin: -6px 0 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 138, 76, 0.25);
  border-radius: 12px;
  background: rgba(255, 138, 76, 0.07);
  color: #ffc9a3;
  font-size: 0.8rem;
}

.auth-reason[hidden] {
  display: none;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.auth-form.is-entering {
  animation: pf-rise 0.45s var(--ease-out) both;
}

.auth-form.is-shaking,
.acct-card.is-shaking,
.cart-card.is-shaking {
  animation: pf-shake 0.4s ease;
}

@keyframes pf-shake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.otp-boxes input {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  max-height: 60px;
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffd2b0;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  caret-color: var(--pf-ember);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.otp-boxes input:focus {
  outline: none;
  border-color: var(--pf-border-hot);
  box-shadow: 0 0 0 4px rgba(255, 138, 76, 0.12);
}

/* ---------- Account ---------- */
.acct-shell {
  max-width: 1040px;
  margin: 0 auto;
  animation: pf-rise 0.6s var(--ease-out) both;
}

.acct-head {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(214, 184, 140, 0.4), rgba(214, 184, 140, 0.06) 60%, transparent) 1;
}

.acct-avatar-wrap {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
}

.acct-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #34353d, #15161b 70%) padding-box,
    conic-gradient(from var(--btn-angle, 0deg), rgba(214, 184, 140, 0.9), rgba(214, 184, 140, 0.15) 30%, rgba(240, 232, 220, 0.8) 55%, rgba(214, 184, 140, 0.15) 80%, rgba(214, 184, 140, 0.9)) border-box;
  color: #f3e7d3;
  font-size: 2.2rem;
  font-weight: 300;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9), 0 0 36px -14px rgba(214, 184, 140, 0.4);
  animation: btn-rim 10s linear infinite;
}

.acct-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acct-avatar.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.6) radial-gradient(circle, transparent 14px, transparent 15px);
  animation: pf-pulse 1s ease-in-out infinite;
}

@keyframes pf-pulse { 50% { opacity: 0.4; } }

.acct-avatar-add {
  position: absolute;
  right: 0;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(214, 184, 140, 0.7);
  border-radius: 50%;
  background: linear-gradient(145deg, #2d2e35, #15161b);
  color: #e9d6b4;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--bg), 0 6px 14px -4px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s var(--ease-spring), color 0.2s ease, border-color 0.2s ease;
}

.acct-avatar-add svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s var(--ease-out);
}

.acct-avatar-add:hover {
  transform: scale(1.12);
  color: #fffaf0;
  border-color: #e9d6b4;
}

.acct-avatar-add:hover svg {
  transform: rotate(90deg);
}

.acct-avatar-add:focus-visible {
  outline: 1px solid rgba(255, 240, 220, 0.8);
  outline-offset: 3px;
}

.acct-head h1 {
  margin: 2px 0 0;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.acct-head .auth-eyebrow {
  color: #d6b88c;
  letter-spacing: 0.24em;
}

.acct-email {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.acct-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.acct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.acct-card,
.cart-card {
  position: relative;
  padding: 34px 34px 32px;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 38%) padding-box,
    linear-gradient(160deg, rgba(22, 22, 27, 0.96), rgba(12, 12, 15, 0.96)) padding-box,
    linear-gradient(160deg, rgba(214, 184, 140, 0.34), rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0.03) 70%, rgba(214, 184, 140, 0.16)) border-box;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.acct-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.acct-index {
  padding-top: 5px;
  color: #d6b88c;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.85;
}

.acct-index::after {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, #d6b88c, transparent);
}

.acct-card h2,
.cart-card h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.acct-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.acct-group {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.acct-group legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  color: rgba(243, 231, 211, 0.72);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

.acct-group legend::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 184, 140, 0.28), transparent);
}

.acct-group legend em {
  order: 2;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.08em;
}

.pf-suggest {
  position: relative;
}

.pf-suggest > label {
  display: block;
}

.pf-search {
  position: relative;
}

.pf-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.pf-search input {
  padding-left: 38px;
}

.pf-suggest-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(214, 184, 140, 0.28);
  border-radius: 14px;
  background: rgba(17, 17, 21, 0.92);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.95);
  animation: pf-rise 0.25s var(--ease-out) both;
}

.pf-suggest-list[hidden] {
  display: none;
}

.pf-suggest-list li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.pf-suggest-list li strong {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.pf-suggest-list li span {
  color: var(--muted);
  font-size: 0.74rem;
}

.pf-suggest-list li.is-active {
  background: rgba(214, 184, 140, 0.12);
  box-shadow: inset 2px 0 0 #d6b88c;
}

.acct-card form,
.acct-card .pf-submit {
  margin-top: 18px;
}

.acct-orders {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acct-orders li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--pf-border);
}

.acct-orders li:first-child {
  border-top: 0;
}

.acct-orders strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.acct-orders span {
  color: var(--muted);
  font-size: 0.76rem;
}

.acct-orders b {
  color: #e9d6b4;
  font-variant-numeric: tabular-nums;
}

.acct-orders .acct-empty {
  display: block;
  padding: 34px 0 14px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- Cart ---------- */
.cart-head h1 {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
}

.cart-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid var(--pf-border);
  border-left: 3px solid var(--pf-ember);
  border-radius: 14px;
  background: var(--pf-surface), rgba(10, 9, 10, 0.6);
}

.cart-status[hidden] {
  display: none;
}

.cart-status[data-status="paid"] { border-left-color: var(--green); }
.cart-status[data-status="failed"], .cart-status[data-status="error"] { border-left-color: var(--red); }

.cart-status strong {
  display: block;
  margin-bottom: 4px;
}

.cart-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cart-layout[hidden],
.cart-empty[hidden] {
  display: none;
}

.cart-lines {
  display: grid;
  gap: 14px;
  transition: opacity 0.2s ease;
}

.cart-lines.is-working {
  opacity: 0.6;
  pointer-events: none;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid var(--pf-border);
  border-radius: 20px;
  background: var(--pf-surface), rgba(10, 9, 10, 0.6);
  transition: border-color 0.3s ease;
  animation: pf-rise 0.45s var(--ease-out) both;
}

.cart-line:hover {
  border-color: rgba(255, 226, 200, 0.2);
}

.cart-thumb {
  flex: none;
  width: 84px;
  height: 84px;
  padding: 6px;
  border-radius: 12px;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255, 255, 255, 0.1), transparent 70%), #18181a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  object-fit: contain;
}

.cart-line-main {
  flex: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}

.cart-kind {
  margin: 0;
  color: var(--pf-ember);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.cart-line h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.cart-line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex: none;
}

.cart-price {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.cart-remove {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cart-remove:hover {
  color: #ff8a7c;
}

.cart-chip {
  margin: 0;
}

.pf-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pf-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}

.pf-stepper button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pf-stepper button:hover:not(:disabled) {
  background: rgba(255, 138, 76, 0.14);
  color: #ffd2b0;
}

.pf-stepper button:disabled {
  opacity: 0.3;
  cursor: default;
}

.pf-stepper output {
  min-width: 28px;
  text-align: center;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.cart-opts {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.cart-opt {
  display: grid;
  grid-template-columns: 74px auto;
  align-items: center;
  gap: 4px 12px;
  color: var(--text-2);
  font-size: 0.8rem;
}

.cart-opt small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.pf-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--pf-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  justify-self: start;
}

.pf-seg button {
  min-width: 38px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.pf-seg button[aria-pressed="true"] {
  background: linear-gradient(145deg, #2d2e35, #1b1c22);
  box-shadow: inset 0 0 0 1px rgba(214, 184, 140, 0.55);
  color: #fff6e8;
}

.cart-parts {
  margin-top: 4px;
  font-size: 0.78rem;
}

.cart-parts summary {
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.cart-parts summary::-webkit-details-marker { display: none; }
.cart-parts summary::after { content: ' ▾'; font-size: 0.7em; }
.cart-parts[open] summary::after { content: ' ▴'; }
.cart-parts summary:hover { color: #ffb27a; }

.cart-parts ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--pf-border);
  list-style: none;
}

.cart-parts li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
}

.cart-parts em {
  color: var(--text-2);
  font-style: normal;
}

.cart-side {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.cart-total {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--pf-border);
  font-size: 0.86rem;
  color: var(--text-2);
}

.cart-total > div {
  display: flex;
  justify-content: space-between;
}

.cart-total b {
  color: var(--green);
  font-weight: 500;
}

.cart-grand {
  align-items: baseline;
  padding-top: 10px;
  font-size: 0.9rem;
}

.cart-grand strong {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.cart-card .pf-error {
  margin-top: 14px;
}

.cart-card .pf-hint {
  margin-top: 12px;
  text-align: center;
}

.cart-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 460px;
  margin: 40px auto;
  padding: 56px 32px;
  border: 1px dashed var(--pf-border);
  border-radius: 28px;
  text-align: center;
  animation: pf-rise 0.5s var(--ease-out) both;
}

.cart-empty-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 138, 76, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 76, 0.2), transparent 70%);
}

.cart-empty h2 {
  margin: 0;
  font-weight: 600;
}

.cart-empty p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-empty-actions {
  display: flex;
  gap: 10px;
}

/* ---------- Wizard additions (index) ---------- */
.tier-specs li .wiz-qty,
.tier-specs li .wiz-hint {
  grid-column: 2;
}

.wiz-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0 4px;
}

.wiz-qty .pf-seg {
  padding: 2px;
  gap: 2px;
}

.wiz-qty .pf-seg button {
  min-width: 34px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.wiz-qty-label {
  color: var(--muted);
  font-size: 0.74rem;
}

.wiz-hint {
  display: block;
  margin: -2px 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.wiz-hint[data-lcd="true"] {
  color: rgba(232, 201, 160, 0.9);
}

.wiz-hint[data-lcd="true"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e8c9a0;
  box-shadow: 0 0 8px rgba(232, 201, 160, 0.7);
  vertical-align: 1px;
}

.wizard-cart-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--pf-border);
  border-radius: 999px;
  background: rgba(255, 244, 232, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.wizard-cart-btn:hover {
  border-color: var(--pf-border-hot);
  background: rgba(255, 138, 76, 0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth-shell,
  .acct-grid,
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-aside {
    padding: 28px;
    border-right: 0;
    border-bottom: 1px solid var(--pf-border);
  }

  .auth-perks,
  .auth-foot {
    display: none;
  }

  .auth-aside h1 br {
    display: none;
  }

  .cart-side {
    position: static;
  }

  .acct-head {
    flex-wrap: wrap;
  }

  .acct-actions {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .pf-main {
    padding-top: calc(var(--header-height) + 24px);
  }

  .auth-panel {
    padding: 24px 20px 28px;
  }

  .pf-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-line {
    flex-direction: column;
    gap: 14px;
  }

  .cart-thumb {
    width: 72px;
    height: 72px;
  }

  .cart-line-side {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  .acct-card,
  .cart-card {
    padding: 22px 18px;
  }

  .pf-header-icons {
    gap: 4px;
  }

  .pf-icon-btn {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell, .acct-shell, .auth-form.is-entering, .cart-line, .cart-empty, .pf-badge {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-submit::after { display: none; }
  .pf-submit { animation: none; }
  .pf-submit { transition: none; }
}

.pf-icon-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.pf-icon-btn:has(img) {
  overflow: hidden;
  padding: 0;
}

@media (max-width: 720px) {
  .acct-head { flex-wrap: wrap; gap: 18px; }
  .acct-actions { margin-left: 0; width: 100%; }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-card, .cart-card { padding: 26px 22px; }
}

/* ---------- Mobile navigation: slim bar + full-screen drawer ---------- */
.pf-menu-btn { display: none; }

@media (max-width: 720px) {
  :root { --header-height: 64px; }

  .site-header .main-nav,
  .site-header .main-nav.contact-nav { display: none; }

  .site-header .nav-wrap,
  .site-header .contact-nav-wrap {
    flex-wrap: nowrap;
    min-height: 64px;
    padding: 0;
    gap: 8px;
  }

  .site-header .brand-block small { display: none; }
  .site-header .brand-name { font-size: 1rem; letter-spacing: 0.02em; }

  .site-header .nav-actions { gap: 8px; margin-left: auto; }
  .site-header .pf-header-icons [data-pf-account] { display: none; }

  .pf-menu-btn {
    position: relative;
    display: block;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(214, 184, 140, 0.35);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.3s, background 0.3s;
  }

  .pf-menu-btn i {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1.5px;
    border-radius: 2px;
    background: #e6d3b3;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), top 0.4s cubic-bezier(0.22, 1, 0.36, 1), left 0.4s, right 0.4s;
  }

  .pf-menu-btn i:first-child { top: 15px; }
  .pf-menu-btn i:last-child { top: 23px; left: 17px; }
  .pf-menu-btn[aria-expanded='true'] { border-color: rgba(214, 184, 140, 0.7); }
  .pf-menu-btn[aria-expanded='true'] i:first-child { top: 19px; transform: rotate(45deg); }
  .pf-menu-btn[aria-expanded='true'] i:last-child { top: 19px; left: 12px; transform: rotate(-45deg); }

  .pf-drawer {
    position: fixed;
    inset: 0;
    z-index: 39;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 96px 28px max(32px, env(safe-area-inset-bottom));
    background:
      radial-gradient(80% 50% at 85% 0%, rgba(214, 184, 140, 0.12), transparent 70%),
      rgba(7, 7, 9, 0.94);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: opacity 0.35s ease, clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pf-drawer[hidden] { display: none; }
  .pf-drawer.is-open { opacity: 1; clip-path: inset(0 0 0 0); }

  .pf-drawer-nav { display: grid; }

  .pf-drawer-nav a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(214, 184, 140, 0.12);
    color: #d9d4ca;
    font-size: 1.28rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s;
  }

  .pf-drawer.is-open .pf-drawer-nav a,
  .pf-drawer.is-open .pf-drawer-foot {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.08s + var(--i, 7) * 0.045s);
  }

  .pf-drawer-nav a em {
    min-width: 22px;
    color: rgba(214, 184, 140, 0.65);
    font: 400 0.7rem/1 var(--font-mono);
    font-style: normal;
    letter-spacing: 0.12em;
  }

  .pf-drawer-nav a[aria-current='page'] { color: #e8cf9f; }
  .pf-drawer-nav a:active { color: #fff; }

  .pf-drawer-foot {
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pf-drawer-foot a {
    flex: 1;
    padding: 13px 0;
    border: 1px solid rgba(214, 184, 140, 0.35);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    color: #ecdcc0;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-align: center;
  }

  html.pf-menu-open { overflow: hidden; }
  html.pf-menu-open .pf-chat { display: none; }
  html.pf-menu-open .site-header { background: rgba(7, 7, 9, 0.94); border-bottom-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-drawer, .pf-drawer-nav a, .pf-drawer-foot, .pf-menu-btn i { transition: none; }
}

/* ---------- Drawer refinements ---------- */
@media (max-width: 720px) {
  .pf-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border-color: rgba(214, 184, 140, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 0 rgba(214, 184, 140, 0);
  }

  .pf-menu-btn i { left: 13px; right: 13px; }
  .pf-menu-btn i:last-child { left: 18px; }
  .pf-menu-btn[aria-expanded='true'] {
    border-color: rgba(214, 184, 140, 0.8);
    box-shadow: 0 0 0 5px rgba(214, 184, 140, 0.08), 0 0 24px -4px rgba(214, 184, 140, 0.45);
    transform: rotate(90deg);
  }
  .pf-menu-btn { transition: border-color 0.3s, box-shadow 0.4s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
  .pf-menu-btn[aria-expanded='true'] i:first-child { top: 20px; left: 13px; }
  .pf-menu-btn[aria-expanded='true'] i:last-child { top: 20px; left: 13px; }

  .pf-drawer {
    padding: 84px 22px max(26px, env(safe-area-inset-bottom));
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    background:
      radial-gradient(70% 38% at 100% 0%, rgba(214, 184, 140, 0.16), transparent 70%),
      radial-gradient(60% 40% at 0% 100%, rgba(214, 184, 140, 0.08), transparent 70%),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 44px),
      rgba(8, 8, 10, 0.96);
  }

  .pf-d-eyebrow {
    margin: 0 0 14px 4px;
    color: rgba(214, 184, 140, 0.7);
    font: 400 0.62rem/1 var(--font-mono);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.6s ease 0.1s;
  }
  .pf-drawer.is-open .pf-d-eyebrow { opacity: 1; }

  .pf-drawer-nav { gap: 6px; }

  .pf-drawer-nav a {
    position: relative;
    align-items: center;
    gap: 14px;
    padding: 11px 14px 11px 12px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-radius: 16px;
    font-size: 1rem;
    letter-spacing: 0.04em;
  }

  .pf-drawer-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, #d6b88c, transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .pf-drawer-nav a[aria-current='page'] {
    border-color: rgba(214, 184, 140, 0.22);
    background: linear-gradient(100deg, rgba(214, 184, 140, 0.12), rgba(214, 184, 140, 0.02));
    color: #f1dfbd;
  }
  .pf-drawer-nav a[aria-current='page']::before { opacity: 1; }
  .pf-drawer-nav a:active { background: rgba(255, 255, 255, 0.05); }

  .pf-d-ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(214, 184, 140, 0.2);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    color: #d6b88c;
  }

  .pf-drawer svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .pf-d-ico svg { width: 19px; height: 19px; }

  .pf-d-txt { display: grid; flex: 1; min-width: 0; gap: 3px; }
  .pf-d-txt b { font-weight: 500; font-size: 1.02rem; letter-spacing: 0.06em; }
  .pf-d-txt small {
    color: #77736b;
    font: 400 0.64rem/1 var(--font-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .pf-d-go { flex: none; width: 16px; height: 16px; color: rgba(214, 184, 140, 0.45); }
  .pf-drawer-nav a[aria-current='page'] .pf-d-go { color: #d6b88c; }

  .pf-drawer-foot {
    margin-top: auto;
    padding-top: 22px;
    gap: 10px;
  }

  .pf-drawer-foot a { padding: 0; }

  .pf-d-user {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 14px 10px 10px !important;
    border: 1px solid rgba(214, 184, 140, 0.38);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(214, 184, 140, 0.14), rgba(214, 184, 140, 0.03));
    text-align: left;
  }

  .pf-d-user .pf-d-txt small { color: #9a8e78; letter-spacing: 0.04em; text-transform: none; font-family: inherit; font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .pf-d-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(214, 184, 140, 0.55);
    border-radius: 50%;
    background: linear-gradient(145deg, #2c2a27, #151412);
    color: #e8cf9f;
    font-size: 0.95rem;
    font-weight: 600;
  }
  .pf-d-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .pf-d-avatar svg { width: 20px; height: 20px; }

  .pf-d-cart {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 62px;
    border: 1px solid rgba(214, 184, 140, 0.3) !important;
    border-radius: 16px !important;
    color: #e6d3b3 !important;
  }
  .pf-d-cart svg { width: 22px; height: 22px; }
  .pf-d-cart b {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #d6b88c;
    color: #17130c;
    font: 600 0.66rem/18px var(--font-mono);
    text-align: center;
  }

  .pf-d-sign {
    margin: 18px 0 0;
    color: #55524c;
    font: 400 0.58rem/1 var(--font-mono);
    letter-spacing: 0.26em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.8s ease 0.7s;
  }
  .pf-drawer.is-open .pf-d-sign { opacity: 1; }
}

@media (max-width: 720px) {
  .pf-drawer-foot a.pf-d-cart { flex: none; width: 62px; }
  .pf-drawer-foot .pf-d-txt { text-align: left; }
  .pf-d-user .pf-d-txt b { font-size: 0.96rem; white-space: nowrap; }
  .pf-d-user .pf-d-txt small { white-space: nowrap; }
}

.pf-menu-btn:focus-visible { outline: 2px solid rgba(214, 184, 140, 0.8); outline-offset: 3px; }
.pf-menu-btn:focus:not(:focus-visible) { outline: none; }

/* Menu button: balanced two-line mark, no heavy focus ring on touch */
@media (max-width: 720px) {
  .site-header .nav-actions .primary-btn { display: none; }

  .pf-menu-btn i { left: 14px; right: 14px; height: 1.4px; background: linear-gradient(90deg, #cdb083, #f1e2c4); }
  .pf-menu-btn i:first-child { top: 16px; }
  .pf-menu-btn i:last-child { top: 24px; left: 20px; right: 14px; }
  .pf-menu-btn[aria-expanded='true'] i:first-child,
  .pf-menu-btn[aria-expanded='true'] i:last-child { top: 20.3px; left: 14px; right: 14px; }
  .pf-menu-btn:focus-visible,
  .pf-menu-btn:focus { outline: none; }
  .pf-menu-btn:focus-visible { box-shadow: 0 0 0 3px rgba(214, 184, 140, 0.18); }
}

/* Menu mark: two equal, centred hairlines */
@media (max-width: 720px) {
  .pf-menu-btn i,
  .pf-menu-btn i:last-child { left: 13px; right: 13px; }
  .pf-menu-btn i:first-child { top: 17px; }
  .pf-menu-btn i:last-child { top: 23px; }
  .pf-menu-btn[aria-expanded='true'] i:first-child,
  .pf-menu-btn[aria-expanded='true'] i:last-child { top: 20px; }
}
