/* ============================================================
   WISHLIST · scoped page styles
   Lifted from design-proposals/Wishlist/Wishlist Redesign.html.
   Every selector is wrapped in `.ae-wishlist-home` so nothing
   leaks into the global theme. Custom properties are scoped to
   the same root and prefixed `--ae-w-*`.
   The shell (header + footer) is not touched here.
   ============================================================ */

.ae-wishlist-home {
  /* ---------- COLOR · base palette ---------- */
  --ae-w-paper:        #f5f1ea;
  --ae-w-canvas:       #ffffff;
  --ae-w-ink:          #111111;
  --ae-w-ink-muted:    rgba(17,17,17,0.60);
  --ae-w-ink-faint:    rgba(17,17,17,0.40);
  --ae-w-line:         rgba(17,17,17,0.08);
  --ae-w-line-strong:  rgba(17,17,17,0.18);
  --ae-w-accent:       #8a6f4e;
  --ae-w-accent-deep:  #5e4a33;
  --ae-w-markdown:     #8b2e1f;

  /* ---------- TYPE · families ---------- */
  --ae-w-font-editorial: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ae-w-font-body:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ae-w-font-mono:      "SF Mono", Menlo, Consolas, monospace;

  /* ---------- LAYOUT ---------- */
  --ae-w-maxw-page: 1480px;
  --ae-w-gutter: 32px;
  --ae-w-gutter-mobile: 20px;

  /* ---------- MOTION ---------- */
  --ae-w-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ae-w-dur-fast: 120ms;
  --ae-w-dur-base: 160ms;
}

.ae-wishlist-home,
.ae-wishlist-home * { box-sizing: border-box; }

.ae-wishlist-home {
  background: var(--ae-w-canvas);
  color: var(--ae-w-ink);
  font-family: var(--ae-w-font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ae-wishlist-home a { color: inherit; }

/* -- page shell ----------------------------------------------------------- */
.ae-wishlist-home .ae-w-page {
  max-width: var(--ae-w-maxw-page);
  margin: 0 auto;
  padding: 56px var(--ae-w-gutter) 96px;
}

/* -- masthead ------------------------------------------------------------- */
.ae-wishlist-home .ae-w-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  padding-bottom: 6px;
}
.ae-wishlist-home .ae-w-head-title {
  font-family: var(--ae-w-font-editorial);
  font-weight: 300;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ae-w-ink);
}
.ae-wishlist-home .ae-w-head-title em {
  font-style: italic;
  font-weight: 400;
}

/* -- three-tab row -------------------------------------------------------- */
.ae-wishlist-home .ae-w-tabs-row {
  margin-top: 30px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--ae-w-line);
  display: flex;
  gap: 38px;
  align-items: flex-end;
}
.ae-wishlist-home .ae-w-tab-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 0 18px;
  font-family: var(--ae-w-font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ae-w-ink-muted);
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  position: relative;
  transition: color var(--ae-w-dur-base) var(--ae-w-ease);
}
.ae-wishlist-home .ae-w-tab-btn:hover { color: var(--ae-w-ink); }
.ae-wishlist-home .ae-w-tab-btn .ae-w-tab-n {
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--ae-w-ink-faint);
  letter-spacing: 0;
  text-transform: none;
}
.ae-wishlist-home .ae-w-tab-btn.is-on { color: var(--ae-w-ink); }
.ae-wishlist-home .ae-w-tab-btn.is-on .ae-w-tab-n { color: var(--ae-w-ink); }
.ae-wishlist-home .ae-w-tab-btn.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ae-w-ink);
}

/* -- sign-in nudge strip -------------------------------------------------- */
.ae-wishlist-home .ae-w-signin-strip {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: var(--ae-w-paper);
  border: 1px solid var(--ae-w-line);
}
.ae-wishlist-home .ae-w-signin-dot {
  width: 7px;
  height: 7px;
  background: var(--ae-w-accent);
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
  top: -1px;
}
.ae-wishlist-home .ae-w-signin-text {
  flex: 1;
  font-size: 13px;
  color: var(--ae-w-ink-muted);
  line-height: 1.5;
}
.ae-wishlist-home .ae-w-signin-text em {
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--ae-w-accent);
  font-size: 14px;
}
.ae-wishlist-home .ae-w-signin-link {
  font-family: var(--ae-w-font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ae-w-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ae-w-ink);
  padding-bottom: 1px;
  flex-shrink: 0;
}
.ae-wishlist-home .ae-w-signin-link:hover { opacity: 0.65; }

/* -- toolbar (sort + share) ---------------------------------------------- */
.ae-wishlist-home .ae-w-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--ae-w-line);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ae-w-ink-muted);
  font-weight: 600;
}
.ae-wishlist-home .ae-w-toolbar button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: var(--ae-w-ink-muted);
  letter-spacing: inherit;
  text-transform: inherit;
}
.ae-wishlist-home .ae-w-toolbar button:hover { color: var(--ae-w-ink); }
.ae-wishlist-home .ae-w-share-arr {
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

/* sort dropdown */
.ae-wishlist-home .ae-w-sort { position: relative; }
.ae-wishlist-home .ae-w-sort-trigger {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  font: inherit;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.ae-wishlist-home .ae-w-sort-label {
  font-family: var(--ae-w-font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ae-w-ink-muted);
}
.ae-wishlist-home .ae-w-sort-current {
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--ae-w-ink-muted);
  letter-spacing: 0;
  text-transform: none;
}
.ae-wishlist-home .ae-w-sort-trigger:hover .ae-w-sort-label,
.ae-wishlist-home .ae-w-sort-trigger:hover .ae-w-sort-current { color: var(--ae-w-ink); }
.ae-wishlist-home .ae-w-sort-veil {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: transparent;
}
.ae-wishlist-home .ae-w-sort-pop {
  position: absolute;
  top: calc(100% + 12px);
  left: -2px;
  background: var(--ae-w-canvas);
  border: 1px solid var(--ae-w-line);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.05);
  min-width: 240px;
  padding: 6px 0;
  z-index: 30;
}
.ae-wishlist-home .ae-w-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 100%;
  padding: 9px 22px;
  font: inherit;
  text-align: left;
  font-family: var(--ae-w-font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ae-w-ink-muted);
  transition: color var(--ae-w-dur-base) var(--ae-w-ease);
}
.ae-wishlist-home .ae-w-sort-row:hover { color: var(--ae-w-ink); }
.ae-wishlist-home .ae-w-sort-row.is-on {
  color: var(--ae-w-ink);
  font-weight: 700;
}
.ae-wishlist-home .ae-w-sort-check {
  color: var(--ae-w-ink);
  font-size: 11px;
  margin-left: 16px;
}

/* ===========================================================
   PRODUCT CARD — Editorial view (large, image-led, 2-up grid)
   =========================================================== */
.ae-wishlist-home .ae-w-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 28px;
  padding-top: 48px;
}

.ae-wishlist-home .ae-w-card {
  position: relative;
  background: var(--ae-w-canvas);
  display: flex;
  flex-direction: column;
}
.ae-wishlist-home .ae-w-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #faf7f2;
  overflow: hidden;
  border: 1px solid var(--ae-w-line);
}
.ae-wishlist-home .ae-w-card-media-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}
.ae-wishlist-home .ae-w-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ae-wishlist-home .ae-w-card-img--alt {
  opacity: 0;
  transition: opacity var(--ae-w-dur-base) var(--ae-w-ease);
}
.ae-wishlist-home .ae-w-card-media:hover .ae-w-card-img--alt { opacity: 1; }

/* drop tag — burgundy chip top-left */
.ae-wishlist-home .ae-w-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--ae-w-font-body);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ae-w-canvas);
  color: var(--ae-w-ink);
  padding: 7px 10px;
  border: 1px solid var(--ae-w-line-strong);
  display: inline-flex;
  gap: 7px;
  align-items: center;
  z-index: 2;
}
.ae-wishlist-home .ae-w-card-tag .ae-w-tag-dot {
  width: 5px;
  height: 5px;
  background: var(--ae-w-accent);
  display: inline-block;
}
.ae-wishlist-home .ae-w-card-tag.is-drop {
  background: var(--ae-w-markdown);
  color: var(--ae-w-canvas);
  border-color: var(--ae-w-markdown);
}
.ae-wishlist-home .ae-w-card-tag.is-drop .ae-w-tag-dot { background: var(--ae-w-canvas); }

/* heart + bell stack — top right */
.ae-wishlist-home .ae-w-card-icons {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
/* Override legacy `.remove-whistlist-icon` from shop-page.css (which sets
   position:absolute; top:0; right:0;). The class stays on the heart because
   account.js delegates the remove-from-saved click via that selector. */
.ae-wishlist-home .ae-w-card-icons .ae-w-icn,
.ae-wishlist-home .ae-w-card-icons .remove-whistlist-icon {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
}
.ae-wishlist-home .ae-w-icn {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ae-w-ink);
  transition: background var(--ae-w-dur-base) var(--ae-w-ease);
  padding: 0;
}
.ae-wishlist-home .ae-w-icn svg {
  width: 20px;
  height: 20px;
  display: block;
}
.ae-wishlist-home .ae-w-icn:hover { background: rgba(255, 255, 255, 0.92); }

/* card info row */
.ae-wishlist-home .ae-w-card-info {
  padding: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
}
.ae-wishlist-home .ae-w-card-brand {
  font-family: var(--ae-w-font-editorial);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  margin: 0 0 4px;
  color: var(--ae-w-ink);
}
.ae-wishlist-home .ae-w-card-name {
  font-size: 12px;
  color: var(--ae-w-ink-muted);
  margin: 0;
  line-height: 1.45;
}
.ae-wishlist-home .ae-w-card-price-block { text-align: right; }
.ae-wishlist-home .ae-w-card-price-from {
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--ae-w-ink-faint);
  margin-bottom: 2px;
}
.ae-wishlist-home .ae-w-card-price {
  font-family: var(--ae-w-font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--ae-w-ink);
  white-space: nowrap;
}
.ae-wishlist-home .ae-w-card-price--was {
  color: var(--ae-w-ink-faint);
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 6px;
}
.ae-wishlist-home .ae-w-card-price--drop { color: var(--ae-w-markdown); }

/* retailer ledger */
.ae-wishlist-home .ae-w-ledger {
  margin-top: 14px;
  border-top: 1px solid var(--ae-w-line);
}
.ae-wishlist-home .ae-w-ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ae-w-line);
  font-size: 11.5px;
  text-decoration: none;
  color: inherit;
}
.ae-wishlist-home .ae-w-ledger-row .ae-w-l-store {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ae-w-ink);
}
.ae-wishlist-home .ae-w-ledger-row .ae-w-l-price {
  font-family: var(--ae-w-font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--ae-w-ink);
  white-space: nowrap;
}
.ae-wishlist-home .ae-w-ledger-row.is-out .ae-w-l-store { color: var(--ae-w-ink-faint); }
.ae-wishlist-home .ae-w-ledger-row.is-out .ae-w-l-price {
  color: var(--ae-w-ink-faint);
  text-decoration: none;
  font-weight: 400;
}
.ae-wishlist-home .ae-w-ledger-row .ae-w-l-dash {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--ae-w-ink-faint);
  vertical-align: middle;
}
.ae-wishlist-home a.ae-w-ledger-row:not(.is-out):hover .ae-w-l-store {
  color: var(--ae-w-ink);
  font-weight: 700;
}
.ae-wishlist-home a.ae-w-ledger-row:not(.is-out):hover .ae-w-l-price {
  color: var(--ae-w-ink);
  font-weight: 700;
}
.ae-wishlist-home .ae-w-ledger-more {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 12px 0 0;
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ae-w-ink-muted);
  text-transform: none;
  letter-spacing: 0;
}
.ae-wishlist-home .ae-w-ledger-more:hover { color: var(--ae-w-ink); }

/* card foot */
.ae-wishlist-home .ae-w-card-foot {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 11px;
  color: var(--ae-w-ink-muted);
}
.ae-wishlist-home .ae-w-card-foot a {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ae-w-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ae-w-ink);
  padding-bottom: 1px;
}
.ae-wishlist-home .ae-w-card-foot a:hover { opacity: 0.7; }
.ae-wishlist-home .ae-w-card-foot .ae-w-arr {
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
}

/* out-of-stock overlay */
.ae-wishlist-home .ae-w-card.is-out .ae-w-card-img,
.ae-wishlist-home .ae-w-card.is-out .ae-w-card-img--alt { opacity: 0.55; }
.ae-wishlist-home .ae-w-card-out-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(250, 247, 242, 0.55);
  pointer-events: none;
  z-index: 2;
}
.ae-wishlist-home .ae-w-card-out-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ae-w-font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ae-w-ink);
  background: var(--ae-w-canvas);
  padding: 9px 14px;
  border: 1px solid var(--ae-w-line-strong);
}
.ae-wishlist-home .ae-w-card-out-dot {
  width: 5px;
  height: 5px;
  background: var(--ae-w-ink-muted);
  display: inline-block;
}
.ae-wishlist-home .ae-w-card-out-cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ae-w-font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ae-w-ink);
  color: var(--ae-w-canvas);
  padding: 14px 22px;
  text-decoration: none;
  border: 1px solid var(--ae-w-ink);
  transition: opacity var(--ae-w-dur-base) var(--ae-w-ease);
}
.ae-wishlist-home .ae-w-card-out-cta:hover { opacity: 0.85; }
.ae-wishlist-home .ae-w-card-out-cta .ae-w-arr {
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

/* footnote */
.ae-wishlist-home .ae-w-footnote {
  margin-top: 56px;
  padding: 22px 0 0;
  border-top: 1px solid var(--ae-w-line);
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ae-w-ink-muted);
  max-width: 64ch;
  line-height: 1.55;
}
.ae-wishlist-home .ae-w-footnote em { color: var(--ae-w-accent); }
.ae-wishlist-home .ae-w-footnote a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/* empty state */
.ae-wishlist-home .ae-w-empty {
  margin-top: 48px;
  border: 1px solid var(--ae-w-line);
  padding: 80px 40px;
  text-align: center;
  background: var(--ae-w-paper);
}
.ae-wishlist-home .ae-w-empty-eyebrow {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ae-w-ink-faint);
  font-weight: 600;
  margin: 0 0 14px;
}
.ae-wishlist-home .ae-w-empty-text {
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--ae-w-ink-muted);
  margin: 0;
  line-height: 1.4;
  max-width: 44ch;
  margin-inline: auto;
}
.ae-wishlist-home .ae-w-empty-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.ae-wishlist-home .ae-w-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ae-w-font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ae-w-ink);
  text-decoration: none;
  color: var(--ae-w-ink);
  background: var(--ae-w-canvas);
  transition: opacity var(--ae-w-dur-base) var(--ae-w-ease);
}
.ae-wishlist-home .ae-w-empty-action--primary {
  background: var(--ae-w-ink);
  color: var(--ae-w-canvas);
}
.ae-wishlist-home .ae-w-empty-action:hover { opacity: 0.85; }
.ae-wishlist-home .ae-w-empty-action .ae-w-arr {
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

/* status row beneath grid (used for loading / messages) */
.ae-wishlist-home .ae-w-status {
  margin: 32px 0 0;
  font-size: 12px;
  color: var(--ae-w-ink-faint);
  letter-spacing: 0.04em;
  text-align: center;
}
.ae-wishlist-home .ae-w-status:empty { display: none; }

/* share toast (lives on document.body, OUT of .ae-wishlist-home scope) */
.ae-w-share-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  background: #111111;
  color: #ffffff;
  padding: 12px 18px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 1;
  transition: opacity 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.ae-w-share-toast.is-fading { opacity: 0; }

/* hide the original aeSavedPage chrome (we provide our own masthead) */
.ae-wishlist-home .aeSavedPage__head,
.ae-wishlist-home .aeSavedTabs,
.ae-wishlist-home .aeSavedRibbon { display: none !important; }
.ae-wishlist-home .aeSavedDropHero { display: none !important; }
.ae-wishlist-home .ProductListingPage52__gutterWrapper { padding: 0; margin: 0; }
.ae-wishlist-home .ProductListingPage52__layoutGridWrappers { padding: 0; margin: 0; }
.ae-wishlist-home .ProductListingPage52__layoutGrid { padding: 0; margin: 0; }
.ae-wishlist-home .aeSavedPage { padding: 0; margin: 0; background: transparent; }

/* ===========================================================
   RESPONSIVE — iPad landscape and below tightens to 2-up;
   phone layout collapses masthead, two-card grid, smaller chrome.
   =========================================================== */

@media (max-width: 1100px) {
  .ae-wishlist-home .ae-w-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 24px;
  }
}

@media (max-width: 820px) {
  .ae-wishlist-home .ae-w-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
}

@media (max-width: 700px) {
  .ae-wishlist-home .ae-w-page {
    padding: 44px var(--ae-w-gutter-mobile) 64px;
  }
  .ae-wishlist-home .ae-w-head {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 6px;
  }
  .ae-wishlist-home .ae-w-head-title {
    font-size: 28px;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.012em;
  }

  .ae-wishlist-home .ae-w-tabs-row {
    margin-top: 14px;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ae-wishlist-home .ae-w-tabs-row::-webkit-scrollbar { display: none; }
  .ae-wishlist-home .ae-w-tab-btn {
    padding: 4px 0 14px;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }
  .ae-wishlist-home .ae-w-tab-btn .ae-w-tab-n { font-size: 12px; }

  .ae-wishlist-home .ae-w-signin-strip {
    margin-top: 18px;
    padding: 12px 14px;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
  }
  .ae-wishlist-home .ae-w-signin-text {
    font-size: 12px;
    flex: 1 1 auto;
    line-height: 1.5;
  }
  .ae-wishlist-home .ae-w-signin-text em { font-size: 13px; }
  .ae-wishlist-home .ae-w-signin-link {
    font-size: 10px;
    letter-spacing: 0.18em;
    align-self: center;
  }

  .ae-wishlist-home .ae-w-toolbar {
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 10px;
  }
  .ae-wishlist-home .ae-w-sort-label { font-size: 10px; letter-spacing: 0.18em; }
  .ae-wishlist-home .ae-w-sort-current { font-size: 12px; }
  .ae-wishlist-home .ae-w-sort-pop { min-width: 220px; }

  /* === 2-up grid like product catalogue === */
  .ae-wishlist-home .ae-w-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
    padding-top: 8px;
  }

  .ae-wishlist-home .ae-w-card-tag {
    top: 8px;
    left: 8px;
    padding: 5px 7px;
    font-size: 8px;
    letter-spacing: 0.16em;
  }
  .ae-wishlist-home .ae-w-card-tag .ae-w-tag-dot { width: 4px; height: 4px; }
  .ae-wishlist-home .ae-w-card-icons { top: 6px; right: 6px; gap: 4px; }
  .ae-wishlist-home .ae-w-icn { width: 30px; height: 30px; }
  .ae-wishlist-home .ae-w-icn svg { width: 14px; height: 14px; }

  .ae-wishlist-home .ae-w-card-info {
    padding-top: 10px;
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ae-wishlist-home .ae-w-card-brand { font-size: 13px; line-height: 1.15; }
  .ae-wishlist-home .ae-w-card-name { font-size: 11px; line-height: 1.35; }
  .ae-wishlist-home .ae-w-card-price-block { text-align: left; margin-top: 4px; }
  .ae-wishlist-home .ae-w-card-price-from {
    font-size: 10px;
    margin-bottom: 0;
    display: inline;
    margin-right: 6px;
  }
  .ae-wishlist-home .ae-w-card-price { font-size: 12px; display: inline; }

  .ae-wishlist-home .ae-w-ledger { margin-top: 12px; }
  .ae-wishlist-home .ae-w-ledger-row { padding: 8px 0; gap: 8px; }
  .ae-wishlist-home .ae-w-ledger-row .ae-w-l-store {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .ae-wishlist-home .ae-w-ledger-row .ae-w-l-price { font-size: 11px; }
  .ae-wishlist-home .ae-w-ledger-more { font-size: 11px; padding: 8px 0 0; }
  .ae-wishlist-home .ae-w-card-foot { margin-top: 10px; }
  .ae-wishlist-home .ae-w-card-foot a { font-size: 10px; letter-spacing: 0.16em; }

  .ae-wishlist-home .ae-w-card-out-eyebrow {
    font-size: 8.5px;
    letter-spacing: 0.18em;
    padding: 6px 9px;
  }
  .ae-wishlist-home .ae-w-card-out-cta {
    font-size: 9px;
    letter-spacing: 0.18em;
    padding: 9px 14px;
    gap: 8px;
  }
  .ae-wishlist-home .ae-w-card-out-overlay { gap: 10px; }

  .ae-wishlist-home .ae-w-footnote {
    font-size: 12px;
    margin-top: 36px;
    padding-top: 16px;
  }
  .ae-wishlist-home .ae-w-empty { padding: 48px 22px; }
  .ae-wishlist-home .ae-w-empty-text { font-size: 16px; }

  /* "Your edit" tab on mobile — drop the vertical rule, smaller scale */
  .ae-wishlist-home .ae-w-tab-edit {
    margin-left: auto;
    gap: 6px;
    padding: 4px 0 6px;
  }
  .ae-wishlist-home .ae-w-tab-edit-rule {
    height: 11px;
    margin-right: 8px;
  }
  .ae-wishlist-home .ae-w-tab-edit-label { font-size: 13px; padding-bottom: 1px; }
  .ae-wishlist-home .ae-w-tab-edit-arr { font-size: 13px; }
}

/* =============================================================
   "Your edit" tab — hairline-separated, italic display type
   ============================================================= */
.ae-wishlist-home .ae-w-tab-edit {
  margin-left: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0 18px;
  color: var(--ae-w-ink);
  position: relative;
  transition: color var(--ae-w-dur-base) var(--ae-w-ease);
}
.ae-wishlist-home .ae-w-tab-edit:hover { color: var(--ae-w-ink); }
.ae-wishlist-home .ae-w-tab-edit-rule {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--ae-w-line);
  margin-right: 14px;
  align-self: center;
}
.ae-wishlist-home .ae-w-tab-edit-label {
  font-family: var(--ae-w-font-editorial);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.005em;
  color: inherit;
  border-bottom: 1px solid color-mix(in oklch, var(--ae-w-accent) 55%, transparent);
  padding-bottom: 2px;
  transition: border-color var(--ae-w-dur-base) var(--ae-w-ease);
}
.ae-wishlist-home .ae-w-tab-edit-label em {
  font-style: italic;
  color: var(--ae-w-accent);
}
.ae-wishlist-home .ae-w-tab-edit:hover .ae-w-tab-edit-label,
.ae-wishlist-home .ae-w-tab-edit.is-on .ae-w-tab-edit-label { border-bottom-color: var(--ae-w-accent); }
.ae-wishlist-home .ae-w-tab-edit-arr {
  font-family: var(--ae-w-font-editorial);
  font-style: italic;
  font-size: 18px;
  color: var(--ae-w-accent);
  transform: translateY(-1px);
  transition: transform var(--ae-w-dur-base) var(--ae-w-ease), color var(--ae-w-dur-base) var(--ae-w-ease);
}
.ae-wishlist-home .ae-w-tab-edit:hover .ae-w-tab-edit-arr { transform: translate(2px, -1px); color: var(--ae-w-ink); }
.ae-wishlist-home .ae-w-tab-edit.is-on .ae-w-tab-edit-arr { color: var(--ae-w-ink); transform: translate(2px, -1px); }

/* =============================================================
   Edit pane wrapper + edit-mode visibility flips
   The pre-paint inline script in page-wishlist.php sets
   html[data-ae-edit] when location.hash === '#edit', so the grid
   stays hidden on direct deep links — no FOUC.
   ============================================================= */
.ae-wishlist-home .ae-w-edit-pane { display: none; }
html[data-ae-edit] .ae-wishlist-home .ae-w-edit-pane { display: block; }
html[data-ae-edit] .ae-wishlist-home .ae-w-grid,
html[data-ae-edit] .ae-wishlist-home .ae-w-status,
html[data-ae-edit] .ae-wishlist-home .ae-w-toolbar,
html[data-ae-edit] .ae-wishlist-home .ae-w-signin-strip,
html[data-ae-edit] .ae-wishlist-home .ae-w-footnote { display: none; }
.ae-wishlist-home.is-edit-active .ae-w-edit-pane { display: block; }
.ae-wishlist-home.is-edit-active .ae-w-grid,
.ae-wishlist-home.is-edit-active .ae-w-status,
.ae-wishlist-home.is-edit-active .ae-w-toolbar,
.ae-wishlist-home.is-edit-active .ae-w-signin-strip,
.ae-wishlist-home.is-edit-active .ae-w-footnote { display: none; }

/* =============================================================
   Mobile overrides for the 4-tab row (with 4th "Your edit").
   The original 3-tab spacing was authored before this 4th tab existed,
   so the wishlist tab labels need tightening to fit four columns on a
   phone. Matches the source-design mock.
   ============================================================= */
@media (max-width: 700px) {
  .ae-wishlist-home .ae-w-tabs-row {
    gap: 12px;
    flex-wrap: nowrap;
    align-items: flex-end;
    padding-top: 4px;
    overflow-x: visible;
  }
  .ae-wishlist-home .ae-w-tab-btn {
    padding: 4px 0 6px;
    font-size: 8.5px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .ae-wishlist-home .ae-w-tab-btn .ae-w-tab-n { font-size: 9.5px; }
  .ae-wishlist-home .ae-w-tab-btn.is-on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--ae-w-ink);
  }
  .ae-wishlist-home .ae-w-tab-edit {
    margin-left: auto;
    flex: 0 0 auto;
    gap: 6px;
    padding: 4px 0 6px;
    justify-content: flex-end;
    align-items: baseline;
  }
  .ae-wishlist-home .ae-w-tab-edit-rule {
    height: 11px;
    margin-right: 8px;
  }
  .ae-wishlist-home .ae-w-tab-edit-label {
    font-size: 13px;
    padding-bottom: 1px;
  }
  .ae-wishlist-home .ae-w-tab-edit-arr {
    font-size: 13px;
    transform: translateY(-1px);
  }
}
