/* Page-level styles for Lists, Editorial, Gift Cards, Search, Profile, Saved drawer */

/* ─── Page header ─── */
.page {
  padding: 56px var(--pad-page) 96px;
  max-width: 1280px;
  margin: 0 auto;
}
.page-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.page-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--kicker-color);
  margin-bottom: 12px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1; letter-spacing: -0.03em;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
.page-title em { font-style: italic; color: var(--accent); }
.page-sub {
  font-size: 16px; line-height: 1.55; color: var(--ink-2);
  max-width: 48ch; margin: 16px 0 0;
}
.page-head-action { display: flex; gap: 8px; flex-shrink: 0; }

/* ─── Lists / My Hub ─── */
.lists-tabs {
  display: flex; gap: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.lists-tab {
  appearance: none; background: transparent; border: none;
  padding: 14px 0;
  font-family: inherit; font-size: 14px;
  color: var(--ink-3); cursor: pointer;
  border-bottom: 1.5px solid transparent;
  transition: all .15s ease;
  margin-bottom: -1px;
}
.lists-tab:hover { color: var(--ink-2); }
.lists-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.lists-tab .count {
  display: inline-block; margin-left: 8px;
  font-size: 11px; color: var(--ink-3);
  background: var(--chip);
  padding: 2px 8px; border-radius: 100px;
  font-variant-numeric: tabular-nums;
}

.lists-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.list-card {
  cursor: pointer;
  transition: transform .25s ease;
}
.list-card:hover { transform: translateY(-2px); }
.list-cover {
  aspect-ratio: 5 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.list-cover img {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--bg-2);
}
.list-cover img:first-child { grid-row: 1 / 3; }
.list-cover-empty {
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px; color: var(--ink-3);
  font-style: italic;
}
.list-name { font-family: var(--serif); font-size: 22px; letter-spacing: -0.015em; margin: 0 0 4px; }
.list-meta {
  font-size: 12.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.list-meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.list-desc { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; line-height: 1.5; }

.list-create {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  aspect-ratio: 5 / 4;
  border: 1.5px dashed var(--rule);
  border-radius: var(--r-md);
  color: var(--ink-3); cursor: pointer;
  transition: all .15s ease;
  background: transparent;
  font-family: inherit;
  margin-bottom: 16px;
  padding: 20px;
}
.list-create:hover { border-color: var(--ink-3); color: var(--ink); background: var(--paper); }
.list-create-plus { font-size: 32px; margin-bottom: 8px; font-family: var(--serif); }

/* List detail */
.list-detail-head {
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: end;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.list-owner {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-2);
  margin-top: 16px;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}

/* ─── Editorial ─── */
.editorial-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.editorial-hero-l {
  display: flex; flex-direction: column; justify-content: end;
}
.editorial-hero-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden; background: var(--bg-2);
}
.editorial-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.editorial-kicker {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--kicker-color);
  margin-bottom: 14px;
}
.editorial-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 400;
  text-wrap: balance;
}
.editorial-dek {
  font-size: 17px; line-height: 1.6; color: var(--ink-2);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.editorial-byline {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-3);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
@media (max-width: 1080px) {
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-hero { grid-template-columns: 1fr; }
}
.editorial-card { cursor: pointer; transition: transform .25s ease; }
.editorial-card:hover { transform: translateY(-2px); }
.editorial-card-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden; background: var(--bg-2);
  margin-bottom: 16px;
}
.editorial-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.editorial-card:hover .editorial-card-img img { transform: scale(1.04); }
.editorial-card-kicker {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--kicker-color);
  margin-bottom: 6px;
}
.editorial-card-title {
  font-family: var(--serif); font-size: 22px; line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 6px; font-weight: 400;
}
.editorial-card-meta { font-size: 12.5px; color: var(--ink-3); }

/* ─── Gift Cards ─── */
.gift-stage {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1000px) { .gift-stage { grid-template-columns: 1fr; } }
.gift-preview-wrap {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; align-items: center;
}
.gift-card {
  width: 100%; max-width: 440px;
  aspect-ratio: 1.586 / 1;
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
  transition: transform .35s ease;
}
.gift-card:hover { transform: translateY(-4px); }
.gift-card-mark { font-family: var(--serif); font-size: 18px; letter-spacing: -0.01em; }
.gift-card-amount {
  font-family: var(--serif); font-size: 56px; line-height: 1;
  letter-spacing: -0.03em; font-weight: 400;
}
.gift-card-foot { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.gift-card-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  pointer-events: none;
}
.gift-form { display: flex; flex-direction: column; gap: 24px; }
.gift-h {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 12px;
}
.gift-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gift-amount {
  appearance: none; background: var(--paper); border: 1px solid var(--rule);
  padding: 16px 12px;
  border-radius: var(--r-md);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all .15s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.gift-amount:hover { border-color: var(--ink-3); }
.gift-amount.is-current { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.gift-amount-num { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.gift-amount-lbl { font-size: 11px; opacity: 0.7; }
.gift-designs { display: flex; gap: 10px; flex-wrap: wrap; }
.gift-design {
  width: 60px; height: 38px; border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  outline: 1px solid var(--rule);
  transition: all .15s ease;
}
.gift-design.is-current { border-color: var(--ink); }
.gift-input {
  appearance: none; border: 1px solid var(--rule); background: var(--paper);
  padding: 12px 14px; border-radius: var(--r-md);
  font-family: inherit; font-size: 14px; color: var(--ink);
  width: 100%;
}
.gift-input:focus { outline: none; border-color: var(--ink); }
.gift-textarea { min-height: 90px; resize: vertical; line-height: 1.5; }

/* ─── Search overlay ─── */
.search-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15,12,10,0.32);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.search-scrim.is-open { opacity: 1; pointer-events: auto; }
.search-modal {
  position: fixed; left: 50%; top: 80px; z-index: 91;
  width: min(720px, 92vw);
  transform: translate(-50%, -16px);
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-height: calc(100vh - 160px);
  display: flex; flex-direction: column;
}
.search-modal.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.search-input-wrap {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
}
.search-input {
  flex: 1; appearance: none; border: none; background: transparent;
  font-family: inherit; font-size: 18px; color: var(--ink);
  letter-spacing: -0.01em;
}
.search-input:focus { outline: none; }
.search-input::placeholder { color: var(--ink-3); }
.search-results {
  overflow-y: auto;
  flex: 1;
}
.search-section { padding: 14px 22px 8px; }
.search-section-h {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.search-result {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .12s ease;
  border: none; background: transparent; width: 100%;
  text-align: left; font-family: inherit;
  color: var(--ink);
}
.search-result:hover, .search-result.is-focus { background: var(--chip); }
.search-result-img {
  width: 44px; height: 44px; border-radius: 8px;
  object-fit: cover;
  background: var(--bg-2);
  flex-shrink: 0;
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-name { font-size: 14px; font-weight: 500; margin: 0; }
.search-result-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.search-empty {
  padding: 40px 22px; text-align: center; color: var(--ink-3); font-size: 14px;
}
.search-foot {
  display: flex; gap: 18px; padding: 12px 22px;
  border-top: 1px solid var(--rule); font-size: 11.5px; color: var(--ink-3);
}
.search-foot kbd {
  background: var(--chip); padding: 2px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 11px; margin-right: 4px;
  color: var(--ink-2);
}

/* ─── Saved drawer ─── */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15,12,10,0.32);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(440px, 92vw);
  background: var(--paper);
  box-shadow: var(--shadow-panel);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-h { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-empty {
  padding: 60px 30px; text-align: center; color: var(--ink-3);
}
.drawer-empty-h { font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 0 0 6px; }
.drawer-item {
  display: flex; gap: 14px; padding: 14px 24px;
  cursor: pointer;
  transition: background .12s ease;
  width: 100%; border: none; background: transparent;
  text-align: left; font-family: inherit; color: inherit;
}
.drawer-item:hover { background: var(--chip); }
.drawer-item-img {
  width: 64px; height: 64px; border-radius: 8px;
  object-fit: cover; background: var(--bg-2); flex-shrink: 0;
}
.drawer-item-body { flex: 1; min-width: 0; }
.drawer-item-name { font-size: 14px; font-weight: 500; margin: 0 0 3px; }
.drawer-item-brand { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.drawer-item-price { font-size: 13px; color: var(--ink-2); }
.drawer-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
}

/* ─── Profile menu ─── */
.profile-menu {
  position: absolute; top: 50px; right: 0;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-panel);
  padding: 8px;
  z-index: 50;
  opacity: 0; transform: translateY(-8px);
  pointer-events: none;
  transition: all .2s ease;
}
.profile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.profile-menu-head {
  padding: 14px 14px 14px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 6px;
}
.profile-menu-name { font-size: 14px; font-weight: 500; margin: 0; }
.profile-menu-email { font-size: 12px; color: var(--ink-3); margin: 2px 0 0; }
.profile-menu a, .profile-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; border: none; background: transparent;
  padding: 10px 14px; border-radius: 8px;
  font-family: inherit; font-size: 13.5px;
  color: var(--ink); cursor: pointer;
  text-align: left;
}
.profile-menu a:hover, .profile-menu button:hover { background: var(--chip); }
.profile-menu .menu-divider { height: 1px; background: var(--rule); margin: 6px 0; }

/* ─── Share modal ─── */
.share-scrim {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(15,12,10,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(2px);
}
.share-scrim.is-open { opacity: 1; pointer-events: auto; }
.share-modal {
  position: fixed; left: 50%; top: 50%; z-index: 96;
  transform: translate(-50%, calc(-50% + 12px));
  width: min(480px, 92vw);
  background: var(--paper);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-panel);
  opacity: 0; pointer-events: none;
  transition: all .25s ease;
}
.share-modal.is-open {
  opacity: 1; transform: translate(-50%, -50%); pointer-events: auto;
}
.share-h { font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; }
.share-sub { font-size: 14px; color: var(--ink-2); margin: 0 0 24px; }
.share-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--chip);
  border-radius: var(--r-md);
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 16px;
  word-break: break-all;
}
.share-channels {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 8px;
}
.share-channel {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  background: transparent;
  font-family: inherit; font-size: 12px;
  color: var(--ink-2);
  transition: all .15s ease;
}
.share-channel:hover { border-color: var(--ink-3); color: var(--ink); }
.share-channel-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}

/* clickable nav */
.topnav a { cursor: pointer; }

/* form helpers */
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
