/* Baddie Crush – Upgraded UI Components, Modals, Bag Drawer, Checkout & Dashboard */

/* Topbar refinement */
.topbar-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-msg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.persona-switch-link {
  background: rgba(13, 13, 13, 0.08);
  border: 1px solid rgba(13, 13, 13, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.persona-switch-link:hover {
  background: rgba(13, 13, 13, 0.16);
  transform: translateY(-1px);
}

/* Header Tools & Avatar */
.tools {
  gap: 14px;
}
.tools .persona-pill {
  background: #fff0f6;
  border: 1px solid #f0b6cf;
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6e1a43;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.tools .persona-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(214, 69, 127, 0.18);
}
.persona-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0407a;
  display: inline-block;
}
body[data-persona="male"] .tools .persona-pill {
  background: #141418;
  border-color: #c8923c;
  color: #f6e4bc;
}
body[data-persona="male"] .persona-dot {
  background: #c8923c;
}
body[data-persona="male"] .topbar {
  background-image: linear-gradient(100deg, #1b1b21, #2b2620 50%, #1b1b21);
  color: #f6e4bc;
}
body[data-persona="male"] .persona-switch-link {
  background: rgba(246, 228, 188, 0.12);
  border-color: rgba(200, 146, 60, 0.55);
  color: #f6e4bc;
}

.tools .account-btn {
  padding: 2px;
  gap: 7px;
}
.avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid #e9a9c6;
  background: #fff7fa;
  flex: none;
}
.avatar-mini img,
.avatar-mini svg.avatar-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-badge {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6e1a43;
  background: #ffe9f2;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
body[data-persona="male"] .account-badge {
  background: #17171a;
  color: #f2d492;
  border: 1px solid #c8923c;
}
@media (min-width: 861px) {
  .burger {
    display: none;
  }
  .logo {
    grid-column: 2;
    justify-self: center;
  }
  .tools {
    grid-column: 3;
    justify-self: end;
  }
  .nav-persona-btn {
    display: none !important;
  }
}
.nav-persona-btn {
  margin-top: 6px;
  padding: 8px 18px !important;
  border-radius: 999px;
  border: 1px solid #efacc9 !important;
  background: #fff0f6 !important;
  color: #6e1a43;
  font-family: var(--display);
  font-size: 11px !important;
  font-weight: 700;
}
body[data-persona="male"] .nav-persona-btn {
  background: #141418 !important;
  border-color: #c8923c !important;
  color: #f6e4bc;
}
@media (max-width: 860px) {
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border-radius: 999px;
    transition: background 0.2s ease;
  }
  .burger:hover {
    background: rgba(214, 69, 127, 0.08);
  }
  .burger i {
    width: 22px;
    height: 2px;
    margin: 0;
    border-radius: 2px;
    transform-origin: center;
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease;
  }
  .burger.open i:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger.open i:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .burger.open i:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  nav.main {
    display: flex !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 20px !important;
    border-top: 1px solid transparent;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.24s ease,
      padding 0.28s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.24s ease;
  }
  nav.main.open {
    max-height: 480px;
    opacity: 1;
    padding: 12px 20px 18px !important;
    border-top-color: #eed6e2;
    pointer-events: auto;
    transform: translateY(0);
  }
  .tools {
    gap: 8px;
  }
  .tools .persona-pill {
    padding: 5px 10px;
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
  .account-badge {
    display: none !important;
  }
}

/* Search Bar */
.search-bar {
  border-top: 1px solid #f4dbe6;
  border-bottom: 1px solid #f4dbe6;
  background: #fffafd;
  padding: 0 20px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    padding 0.24s ease;
}
.search-bar.is-open {
  max-height: 90px;
  opacity: 1;
  padding: 10px 20px;
}
.search-bar[hidden] {
  display: none;
}
.search-bar-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e9a9c6;
  border-radius: 999px;
  padding: 6px 14px;
}
.search-bar-inner svg {
  width: 18px;
  height: 18px;
  color: #a64d79;
  flex: none;
}
.search-bar-inner input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}
.search-clear {
  background: #fdf1f6;
  border: 1px solid #f0c0d6;
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* VIP / Active Perks Banner */
.vip-banner {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 14px 20px;
  background: linear-gradient(105deg, #fff1f7, #ffe0ee 55%, #fff7ea);
  border: 1px solid #f1bad3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.vip-banner[hidden] {
  display: none;
}
body[data-persona="male"] .vip-banner {
  background: linear-gradient(105deg, #17171b, #231e19 60%, #17171b);
  border-color: #c8923c;
  color: #f8eed7;
}
.vip-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vip-banner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #d6457f;
  overflow: hidden;
  background: #fff;
  flex: none;
}
body[data-persona="male"] .vip-banner-avatar {
  border-color: #c8923c;
}
.vip-banner-title {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vip-banner-sub {
  font-size: 15px;
  opacity: 0.9;
}
.vip-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vip-chip {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #7c1c49;
  border: 1px solid #e9a9c6;
}
body[data-persona="male"] .vip-chip {
  background: #24211c;
  color: #f4d692;
  border-color: #c8923c;
}
.vip-dash-btn {
  background: #0d0d0d;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body[data-persona="male"] .vip-dash-btn {
  background: linear-gradient(135deg, #d9a44b, #b67e28);
  color: #111;
}

/* Catalog Controls & Enhanced Cards */
.shop-controls {
  max-width: 1160px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.shop-controls .chips {
  margin: 0;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sort-wrap select {
  border: 1px solid #e5b8cd;
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}
.pbadge.men {
  background: #141418;
  color: #f3d28c;
  border: 1px solid #c8923c;
}
.pcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.prating {
  font-size: 13px;
  color: #b4781f;
  font-weight: 600;
  white-space: nowrap;
}
.pfinish-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: inline-block;
}
.swatch-dot.gold {
  background: linear-gradient(135deg, #f3d485, #b88227);
}
.swatch-dot.silver {
  background: linear-gradient(135deg, #f6f8fa, #9ea6b2);
}
.swatch-dot.rose {
  background: linear-gradient(135deg, #f8c6cf, #c9778b);
}
.swatch-dot.onyx {
  background: linear-gradient(135deg, #3a3a42, #0d0d10);
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 46px 20px;
  background: #fdf6f9;
  border: 1px dashed #e6b4ca;
}
.empty-state h3 {
  font-family: var(--display);
  margin: 0 0 8px;
}

/* Modal Backdrop & Shared Dialog Styles (Smooth Open & Close) */
.bc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}
.bc-modal[hidden] {
  display: none;
}
.bc-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 14, 0.68);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.26s ease;
}
.bc-modal.is-open .bc-modal-bg {
  opacity: 1;
}
.bc-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: min(92vh, 880px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #f0c4d7;
  box-shadow: 0 28px 70px rgba(20, 8, 16, 0.35);
  padding: clamp(22px, 3.6vw, 38px);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}
.bc-modal.is-open .bc-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Smooth Open & Close for Product Modal (#pm) */
.pm {
  transition: visibility 0.28s ease;
}
.pm-bg {
  opacity: 0;
  transition: opacity 0.26s ease;
}
.pm.is-open .pm-bg {
  opacity: 1;
}
.pm-card {
  animation: none !important;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}
.pm.is-open .pm-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.bc-dialog h2 {
  font-family: var(--display);
  font-size: clamp(21px, 3vw, 29px);
  margin: 10px 0 8px;
  line-height: 1.2;
}
.bc-lead {
  margin: 0 0 20px;
  font-size: 17px;
  color: #4a3a42;
  line-height: 1.45;
}
.bc-badge-pill {
  display: inline-block;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9e2258;
  background: #fff0f6;
  border: 1px solid #f4bfd6;
  border-radius: 999px;
  padding: 5px 14px;
}
.bc-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ecd3df;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.bc-close:hover {
  background: #fde8f1;
  transform: rotate(90deg);
}
.bc-close[hidden] {
  display: none;
}

/* Primary & Secondary Buttons */
.bc-primary-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #f06aa0, #d6457f 55%, #b8225f);
  color: #fff;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(214, 69, 127, 0.32);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bc-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(214, 69, 127, 0.42);
}
.bc-secondary-btn {
  width: 100%;
  border: 1.5px solid #0d0d0d;
  border-radius: 999px;
  padding: 12px 20px;
  background: #fff;
  color: #0d0d0d;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.bc-secondary-btn:hover {
  background: #fdf1f6;
}

/* Persona Gate Cards */
.persona-dialog {
  max-width: 760px;
  text-align: center;
  background: linear-gradient(180deg, #fffafd 0%, #ffffff 100%);
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }
}
.persona-card {
  text-align: left;
  padding: 24px 22px;
  border: 1.5px solid #efd2e0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.persona-card.female {
  background: linear-gradient(155deg, #fff5f9, #ffe8f2);
  border-color: #efacc9;
}
.persona-card.male {
  background: linear-gradient(155deg, #17171b, #23201b);
  border-color: #c8923c;
  color: #f9f3e6;
}
.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(20, 8, 16, 0.16);
}
.persona-card.is-active {
  box-shadow:
    0 0 0 2px #d6457f,
    0 18px 34px rgba(20, 8, 16, 0.14);
}
.persona-card.male.is-active {
  box-shadow:
    0 0 0 2px #e6ba65,
    0 18px 34px rgba(20, 8, 16, 0.28);
}
.persona-active-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(214, 69, 127, 0.14);
  color: #9e2258;
}
.persona-card.male .persona-active-tag {
  background: rgba(230, 186, 101, 0.18);
  color: #f6dc9c;
}
.persona-emoji {
  font-size: 28px;
  line-height: 1;
}
.persona-card.female .persona-emoji {
  color: #d6457f;
}
.persona-card.male .persona-emoji {
  color: #e2b058;
}
.persona-role {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
}
.persona-tag {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}
.persona-desc {
  font-size: 16px;
  line-height: 1.45;
  margin-top: 4px;
  flex: 1;
}
.persona-cta {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.persona-card.female .persona-cta {
  color: #b8225f;
}
.persona-card.male .persona-cta {
  color: #e6ba65;
}

/* Auth & Avatar Picker */
.auth-dialog {
  max-width: 650px;
}
.auth-tabs {
  display: inline-flex;
  border: 1px solid #ebd0dd;
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 14px;
  background: #fdf5f9;
}
.auth-tab {
  border: 0;
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-tab.active {
  background: #0d0d0d;
  color: #fff;
}
.avatar-picker-block {
  margin-bottom: 18px;
}
.avatar-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.avatar-picker-head > label {
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.upload-avatar-btn {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #d6457f;
  color: #b8225f;
  background: #fff5f9;
  cursor: pointer;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 520px) {
  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}
.avatar-option {
  border: 2px solid #ecd5df;
  background: #fffafd;
  padding: 8px 6px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.avatar-option:hover {
  transform: translateY(-2px);
}
.avatar-option.selected {
  border-color: #d6457f;
  background: #fff0f6;
  box-shadow: 0 8px 18px rgba(214, 69, 127, 0.22);
}
.avatar-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
}
.avatar-thumb img,
.avatar-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-label {
  font-family: var(--display);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.req {
  color: #d6457f;
}
.field input,
.field select {
  border: 1.5px solid #e6cbd8;
  padding: 10px 12px;
  font-family: var(--serif);
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus {
  border-color: #d6457f;
}
.form-error {
  color: #b81d48;
  font-size: 15px;
  font-weight: 600;
  min-height: 20px;
  margin-bottom: 10px;
}
.auth-footer-switch {
  text-align: center;
  margin-top: 14px;
  font-size: 15px;
  color: #5b4a52;
}
.auth-footer-switch button {
  background: none;
  border: 0;
  text-decoration: underline;
  font-weight: 700;
  color: #b8225f;
}

/* Reward Celebration View */
.reward-view {
  text-align: center;
}
.reward-avatar-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid #d6457f;
  box-shadow: 0 10px 24px rgba(214, 69, 127, 0.28);
  overflow: hidden;
  background: #fff;
}
.reward-avatar-ring img,
.reward-avatar-ring svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reward-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 22px;
}
.reward-box {
  padding: 18px 14px;
  background: linear-gradient(155deg, #fff5f9, #ffe7f1);
  border: 1px solid #efb7d0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.reward-val {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: #b8225f;
}
.reward-lbl {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.promo-pill {
  background: #0d0d0d;
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-top: 4px;
}
.reward-sub {
  font-size: 14px;
  color: #5a4450;
}
.reward-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 540px) {
  .reward-cards,
  .reward-actions {
    grid-template-columns: 1fr;
  }
}

/* Slide-Out Shopping Bag Drawer (Smooth Slide Open & Close) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  justify-content: flex-end;
}
.drawer[hidden] {
  display: none;
}
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 14, 0.56);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.drawer.is-open .drawer-bg {
  opacity: 1;
}
.drawer-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.22);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.is-open .drawer-panel {
  transform: translateX(0);
}
.drawer-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid #f2dce6;
  position: relative;
}
.drawer-head h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 20px;
}
.drawer-sub {
  margin: 0;
  font-size: 14.5px;
  color: #6b5560;
}
.ship-bar {
  height: 5px;
  background: #f9e6ef;
  width: 100%;
}
.ship-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f06aa0, #c8923c);
  transition: width 0.3s ease;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bag-empty {
  text-align: center;
  margin: auto 0;
  padding: 30px 14px;
}
.bag-empty h3 {
  font-family: var(--display);
  margin: 0 0 8px;
}
.bag-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f4e6ec;
}
.bag-thumb {
  width: 72px;
  height: 72px;
  background: #fdf2f6;
  display: grid;
  place-items: center;
  padding: 8px;
}
.bag-thumb svg {
  width: 100%;
  height: 100%;
}
.bag-meta h4 {
  margin: 0 0 3px;
  font-family: var(--display);
  font-size: 14px;
}
.bag-variant {
  font-size: 13.5px;
  color: #6d5863;
  margin-bottom: 6px;
}
.qty-row {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e7ccd8;
  border-radius: 999px;
  overflow: hidden;
}
.qty-row button {
  border: 0;
  background: #fff;
  width: 28px;
  height: 26px;
  font-weight: 700;
}
.qty-row span {
  padding: 0 8px;
  font-family: var(--display);
  font-size: 12px;
}
.bag-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.bag-line-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}
.bag-remove {
  background: none;
  border: 0;
  font-size: 12.5px;
  text-decoration: underline;
  color: #8f7280;
}
.drawer-foot {
  border-top: 1px solid #f0d7e3;
  padding: 16px 22px 22px;
  background: #fffafd;
}
.promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.promo-row input {
  flex: 1;
  border: 1.5px solid #e5c6d5;
  padding: 8px 12px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.promo-row button {
  border: 0;
  background: #0d0d0d;
  color: #fff;
  padding: 8px 16px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.points-redeem-row {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #fff0f6;
  border: 1px solid #f2bfd5;
  font-size: 14.5px;
}
.points-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.bag-totals {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  font-size: 15.5px;
}
.tot-line {
  display: flex;
  justify-content: space-between;
}
.tot-line.grand {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  padding-top: 6px;
  border-top: 1px solid #ebd2de;
}
.tot-line.discount {
  color: #b8225f;
}

/* Checkout & Payment Integration */
.checkout-dialog {
  max-width: 920px;
}
.checkout-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.checkout-steps .step {
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f5ebf0;
  color: #6b5862;
}
.checkout-steps .step.active {
  background: #0d0d0d;
  color: #fff;
}
.demo-note {
  margin: 0 0 18px;
  padding: 8px 12px;
  background: #fff9eb;
  border: 1px solid #ebd19a;
  font-size: 14px;
  color: #6b4e16;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}
.checkout-fields h3,
.checkout-summary h3 {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.pay-opt {
  border: 1.5px solid #e6cbd8;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.pay-opt.active {
  border-color: #d6457f;
  background: #fff2f7;
}
.card-panel,
.express-panel {
  padding: 14px;
  background: #fdf9fb;
  border: 1px solid #edd4df;
  margin-bottom: 12px;
}
.card-brand {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #0d0d0d;
  color: #fff;
}
.checkout-summary {
  background: #fdf5f9;
  border: 1px solid #efd3e0;
  padding: 18px;
  height: fit-content;
}
.summary-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  max-height: 210px;
  overflow-y: auto;
}
.sum-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14.5px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0dce5;
}
.order-receipt-card {
  text-align: left;
  background: #fdf7fa;
  border: 1px solid #eccfd9;
  padding: 16px 18px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Member Dashboard */
.dash-dialog {
  max-width: 860px;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1d8e4;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2.5px solid #d6457f;
  overflow: hidden;
  background: #fff;
  flex: none;
}
.dash-avatar img,
.dash-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-user h2 {
  margin: 0 0 2px;
  font-size: 22px;
}
.dash-user-meta {
  font-size: 15px;
  color: #6b5560;
}
.dash-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.dash-tab {
  border: 1px solid #e6c6d6;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dash-tab.active {
  background: #0d0d0d;
  color: #fff;
  border-color: #0d0d0d;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .dash-stats {
    grid-template-columns: 1fr;
  }
}
.stat-card {
  padding: 16px;
  background: linear-gradient(155deg, #fff5f9, #ffeef5);
  border: 1px solid #f1c7da;
}
.stat-val {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  color: #b8225f;
}
.stat-lbl {
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}
.perk-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .perk-list {
    grid-template-columns: 1fr;
  }
}
.perk-card {
  padding: 14px;
  border: 1px solid #ecd2de;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.perk-copy-btn {
  border: 1px solid #0d0d0d;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.perk-copy-btn:hover {
  background: #0d0d0d;
  color: #fff;
}
.order-card {
  border: 1px solid #ecd2de;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fffafd;
}
.order-card-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.order-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  background: #e9f8ef;
  color: #1c7c46;
  border: 1px solid #b8e6ca;
}
.dash-wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.dash-wish-card {
  border: 1px solid #ecd2de;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Info Modal */
.info-dialog {
  max-width: 560px;
}
.info-content p {
  font-size: 17px;
  line-height: 1.55;
}

/* Product Modal Upgrades */
.pm-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pm-finish-btn {
  border: 1px solid #e0c1cf;
  background: #fff;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pm-finish-btn.active {
  border-color: #0d0d0d;
  background: #0d0d0d;
  color: #fff;
}

/* Smooth Dropdown Open & Close */
@media (min-width: 861px) {
  .drop {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px) scale(0.98);
    transition:
      opacity 0.22s ease,
      transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.22s ease;
  }
  .drop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-modal-bg,
  .bc-dialog,
  .pm-bg,
  .pm-card,
  .drawer-bg,
  .drawer-panel,
  .search-bar,
  .burger i,
  nav.main,
  .drop {
    transition: none !important;
  }
}

/* Uploaded Product Photos & Admin Studio */
.pimg img.prod-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pcard:hover .pimg img.prod-photo {
  transform: scale(1.06);
}
.bag-thumb img.prod-photo,
.dash-wish-card img.prod-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-hint-box {
  background: #17171b;
  color: #f6e4bc;
  border: 1px solid #c8923c;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.admin-hint-box code {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}
.sandbox-fallback-row {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff4e5;
  border: 1px solid #e7c081;
  font-size: 14px;
}
.admin-pill {
  display: inline-block;
  background: #141418;
  color: #f4d692;
  border: 1px solid #c8923c;
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.img-dropzone {
  border: 1.5px dashed #dfadc4;
  background: #fff7fa;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  cursor: pointer;
}
.img-dropzone:hover {
  border-color: #d6457f;
}
.img-preview-box {
  width: 72px;
  height: 72px;
  border: 1px solid #e7ccd8;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  font-size: 12px;
  color: #8f7280;
}
.img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.finish-checks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.finish-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #e6cbd8;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 10.5px;
  text-transform: uppercase;
}
.field textarea {
  border: 1.5px solid #e6cbd8;
  padding: 10px 12px;
  font-family: var(--serif);
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
  resize: vertical;
  min-height: 76px;
}
.field textarea:focus {
  border-color: #d6457f;
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ecd2de;
  background: #fffafd;
}
.admin-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-mini-btn {
  border: 1px solid #d7b6c5;
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-mini-btn.danger {
  border-color: #d6457f;
  color: #b81d48;
}
.admin-mini-btn.active {
  background: #0d0d0d;
  color: #fff;
  border-color: #0d0d0d;
}
.admin-status-select {
  border: 1px solid #d7b6c5;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--display);
  font-size: 10.5px;
  background: #fff;
}

/* ===== Header tools fix (logged-in & logged-out) ===== */
header.site .head-row {
  max-width: 1280px;
  padding-left: 28px;
  padding-right: 28px;
  column-gap: 16px;
}
header.site .tools {
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}
header.site .tools button {
  flex: none;
}
header.site .tools button.persona-pill {
  width: auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  gap: 8px;
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
}
header.site .tools button.persona-pill:hover {
  transform: translateY(-1px);
}
header.site .tools button.account-btn {
  width: auto;
  height: 40px;
  padding: 3px 12px 3px 4px;
  border-radius: 999px;
  gap: 8px;
  border: 1px solid transparent;
}
header.site .tools button.account-btn:hover {
  border-color: #f0c0d6;
}
header.site .tools button.account-btn .avatar-mini {
  width: 32px;
  height: 32px;
}
header.site .tools button.account-btn .avatar-mini svg:not(.avatar-svg) {
  width: 20px;
  height: 20px;
}
header.site .tools button.account-btn .avatar-mini .avatar-svg {
  width: 100%;
  height: 100%;
}
header.site .tools .account-badge {
  display: inline-block;
  font-size: 10.5px;
  padding: 4px 10px;
  line-height: 1.1;
}
header.site .tools .account-badge[hidden] {
  display: none;
}
header.site .tools button.account-btn:not(:has(.account-badge:not([hidden]))) {
  width: 40px;
  padding: 3px;
  justify-content: center;
}
header.site .tools button#bagBtn {
  width: auto;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  gap: 4px;
}
header.site .tools button#bagBtn .count {
  margin-left: 0;
}
header.site .tools button#searchToggle {
  width: 40px;
  height: 40px;
  padding: 0;
}
@media (max-width: 1180px) {
  header.site .tools .account-badge {
    display: none !important;
  }
  header.site .tools button.account-btn {
    width: 40px;
    padding: 3px;
    justify-content: center;
  }
}
@media (max-width: 860px) {
  header.site .head-row {
    padding-left: 14px;
    padding-right: 14px;
  }
  header.site .tools {
    gap: 4px;
  }
  header.site .tools button.persona-pill {
    display: none;
  }
}

/* ===== Footer ===== */
footer.site-footer {
  padding: 56px 24px 0;
  background: linear-gradient(#150a0f, #0a0507);
  border-top: 3px solid #f4c6de;
}
footer.site-footer .foot {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
}
footer.site-footer .foot .brand {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
footer.site-footer .foot .brand p {
  margin: 0;
  max-width: 300px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
footer.site-footer .foot .soc {
  display: flex;
  gap: 10px;
  margin: 4px 0 0;
}
footer.site-footer .foot .soc a {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
footer.site-footer .foot .soc a svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
footer.site-footer .fcol {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer.site-footer .fcol h4 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f6b4d0;
}
footer.site-footer .fcol a {
  display: block;
  width: fit-content;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, transform 0.2s ease;
}
footer.site-footer .fcol a:hover {
  color: #f6b4d0;
  transform: translateX(3px);
}
footer.site-footer .fbot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}
footer.site-footer .fbot-links {
  display: inline-flex;
  gap: 20px;
}
footer.site-footer .fbot-links a:hover {
  color: #f6b4d0;
}
@media (max-width: 860px) {
  footer.site-footer {
    padding-top: 40px;
  }
  footer.site-footer .foot {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  footer.site-footer .foot .brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  footer.site-footer .fbot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Compact persona pill & clean avatar-only account button */
header.site .tools button.persona-pill {
  height: 28px;
  padding: 0 10px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  gap: 5px;
}
header.site .tools button.account-btn {
  width: 38px !important;
  height: 38px !important;
  padding: 2px !important;
  border-radius: 50% !important;
  justify-content: center;
}
header.site .tools button.account-btn .avatar-mini {
  width: 32px;
  height: 32px;
}
