@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');

.switcher { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.switcher__pill { width: calc((100% - 10px) / 5); }
body[data-section="wishlist"] .switcher__pill { transform: translateX(300%); }
.switcher__btn[data-section="wishlist"]::before { background: #d95d7c; }
.switcher__btn--on[data-section="wishlist"]::before { box-shadow: 0 0 9px #d95d7c66; }

body[data-section="wishlist"] {
  --text: #321c24;
  --muted: #6e545b;
  --line: #e6d5d1;
  --surface: #fffaf5;
  --surface-2: #fffdf9;
  --bg-soft: #f4e7e3;
  --danger: #9c3250;
  --accent: #ab3b5b;
  --accent-ink: #8c2744;
  --accent-rgb: 171, 59, 91;
  color-scheme: light;
  background: radial-gradient(ellipse at 85% 10%, #f5e5df, transparent 58%), #faf5ee;
}

body[data-section="wishlist"] .topbar { background: #fcf6efeb; }
body[data-section="wishlist"] .switcher,
body[data-section="wishlist"] .menu-btn { background: #f1e5e1; }
body[data-section="wishlist"] .switcher__pill { box-shadow: 0 1px 5px #59303a21; }
body[data-section="wishlist"] .menu { box-shadow: 0 12px 40px #59303a26; }

.wish {
  --wish-ink: #331b25;
  --wish-muted: #6e535b;
  --wish-accent: #9c3152;
  --wish-border: #e9d8d3;
  --wish-paper: #fffaf5;
  --wish-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--wish-ink);
}

.wish button, .wish input, .wish select, .wish textarea { font: inherit; }
.wish :focus-visible { outline: 2px solid #ad4263; outline-offset: 3px; }
.wish [hidden] { display: none !important; }
.wish-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.wish-hero {
  position: relative;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  min-height: 410px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #edd7d0;
  border-radius: 30px;
  background: linear-gradient(145deg, #f6ddd8, #fff6e9 90%);
  box-shadow: 0 16px 55px #6e25351b;
}

.wish-hero__copy {
  z-index: 1;
  align-self: center;
  padding: clamp(28px, 5vw, 78px);
}

.wish-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--wish-serif);
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.062em;
}
.wish-hero h1 span { color: #a53856; }
.wish-hero p { margin: 24px 0; color: var(--wish-muted); font-size: clamp(14px, 1.65vw, 19px); }
.wish-hero__photo {
  position: relative;
  min-height: 100%;
  background: #674141 url('/wishlist-cover.jpg') center 52% / cover no-repeat;
}
.wish-hero__photo::after {
  content: '';
  position: absolute;
  inset: 13px;
  border: 1px solid #fff7e87a;
  border-radius: 2px 17px 17px 2px;
  pointer-events: none;
}

.wish .wish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 17px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wish .wish-btn:hover:not(:disabled) { transform: translateY(-1px); }
.wish .wish-btn:disabled { opacity: .6; cursor: wait; }
.wish .wish-btn--primary { background: #8a2949; color: #fff9f0; box-shadow: 0 5px 15px #872e4a33; }
.wish .wish-btn--primary:hover:not(:disabled) { background: #711b39; }
.wish .wish-btn--secondary { background: #fff9f4; border-color: var(--wish-border); color: var(--wish-ink); }
.wish .wish-btn--secondary:hover:not(:disabled) { background: #f7eae4; }
.wish .wish-btn--danger { background: #fff1ef; color: #8c2943; border-color: #f0cfd3; }
.wish .wish-btn--danger:hover:not(:disabled) { background: #f9dddd; }

.wish-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 29px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--wish-border);
}
.wish-modes, .wish-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.wish-modes {
  padding: 4px;
  border: 1px solid var(--wish-border);
  border-radius: 999px;
  background: #f1e5df;
}
.wish .wish-modes button, .wish .wish-filters button {
  padding: 7px 13px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--wish-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.wish .wish-modes button[aria-pressed="true"] {
  background: #fffaf4;
  color: var(--wish-accent);
  box-shadow: 0 2px 5px #5829391a;
}
.wish-modes button span { margin-left: 3px; font-size: 11px; }
.wish .wish-filters button { border-color: var(--wish-border); }
.wish .wish-filters button[aria-pressed="true"] {
  color: #fff9f4;
  background: #512538;
  border-color: #512538;
}
.wish .wish-filters button:hover:not([aria-pressed="true"]) { background: #f0e1dc; }

.wish-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  width: min(100%, 260px);
  height: 43px;
  border: 1px solid var(--wish-border);
  border-radius: 12px;
  background: #fffaf4;
  color: var(--wish-muted);
}
.wish-search span { font: 24px/1 Georgia, serif; }
.wish .wish-search input { width: 100%; min-width: 0; background: none; border: 0; padding: 0; font-size: 13px; color: var(--wish-ink); }
.wish .wish-search input:focus { outline: none; }
.wish-search:focus-within { outline: 2px solid #ad4263; outline-offset: 2px; }

.wish-collection { margin-top: 23px; }
.wish-collection h2, .wish-empty h2, .wish-dialog h2 {
  margin: 0 0 14px;
  font-family: var(--wish-serif);
  letter-spacing: -.035em;
  font-size: clamp(24px, 3vw, 35px);
  line-height: 1.17;
}
.wish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wish-card {
  min-width: 0;
  border-radius: 22px;
  background: var(--wish-paper);
  border: 1px solid var(--wish-border);
  box-shadow: 0 4px 18px #5523330c;
  transition: box-shadow .22s ease, transform .22s ease;
}
.wish-card:hover { box-shadow: 0 12px 30px #55233320; transform: translateY(-3px); }
.wish .wish-card__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--wish-ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.wish-card__visual { position: relative; display: block; height: clamp(172px, 21vw, 258px); overflow: hidden; }
.wish-card--featured { grid-column: span 2; }
.wish-card--featured:only-child { grid-column: 1 / -1; }
.wish-card--featured .wish-card__visual { height: clamp(196px, 26vw, 320px); }
.wish-grid:has(.wish-card--featured) .wish-card:not(.wish-card--featured) .wish-card__visual { height: clamp(196px, 26vw, 320px); }
.wish-image {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 70% 18%, #fae9cb, transparent 66%), linear-gradient(125deg, #dca9b3, #f4ded6);
}
.wish-image__fallback { font: clamp(45px, 9vw, 112px)/1 Georgia, serif; color: #77394c94; }
.wish-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wish-card__open:hover img { transform: scale(1.04); }
.wish-card:nth-child(3n+2) .wish-image { background: radial-gradient(ellipse at 78% 16%, #f3e6cf, transparent 70%), #ccd3bd; }
.wish-card:nth-child(3n+3) .wish-image { background: radial-gradient(ellipse at 78% 16%, #f2d4bf, transparent 70%), #cbb4cb; }
.wish-card__badges { position: absolute; inset: 12px 12px auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.wish-owner, .wish-pin {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 2px 6px #3d252318;
}
.wish-owner--mine { background: #fff0eb; color: #84374d; }
.wish-owner--other { background: #f1ebfa; color: #5b3b72; }
.wish-owner--shared { background: #e9eedf; color: #3e593c; }
.wish-pin { background: #fff4cf; color: #775218; font-size: 12px; }
.wish-card__body { display: grid; gap: 4px; padding: 15px 17px 12px; }
.wish-card__category { color: var(--wish-accent); font-size: 11px; font-weight: 800; }
.wish-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-family: var(--wish-serif);
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 700;
  line-height: 1.18;
}
.wish-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 32px; color: var(--wish-muted); font-size: 12px; font-weight: 700; }
.wish-card__arrow { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; color: var(--wish-accent); background: #f3e4df; font-size: 16px; }

.wish-empty, .wish-loading {
  margin-top: 23px;
  padding: 35px 18px;
  border: 1px dashed #d6b9b3;
  border-radius: 22px;
  background: #fffaf591;
  text-align: center;
  color: var(--wish-muted);
}
.wish-empty h2 { margin: 8px 0; color: var(--wish-ink); }
.wish-empty p { margin: 0 0 16px; }
.wish-empty__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #f4dedb; color: #953c57; font: 27px/1 Georgia, serif; }

body:has(.wish-dialog[open]) { overflow: hidden; }
.wish-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--wish-border);
  border-radius: 24px;
  color: var(--wish-ink);
  background: var(--wish-paper);
  box-shadow: 0 24px 85px #2b132260;
  overscroll-behavior: contain;
  color-scheme: light;
}
.wish-dialog::backdrop { background: #2d1724a3; backdrop-filter: blur(4px); }
.wish .wish-dialog__close {
  position: absolute;
  z-index: 2;
  right: 11px;
  top: 11px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--wish-border);
  border-radius: 50%;
  background: #fff9f2;
  color: var(--wish-ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.wish-dialog__body { padding: 24px; }
.wish-dialog__body:first-of-type h2 { padding-right: 40px; }
.wish-dialog h2 { overflow-wrap: anywhere; }
.wish-detail-cover { position: relative; min-height: clamp(180px, 42vw, 320px); }
.wish-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; margin-bottom: 9px; color: var(--wish-muted); font-size: 12px; font-weight: 700; }
.wish-detail-price { margin: 0 0 12px; color: var(--wish-accent); font-size: 19px; font-weight: 800; }
.wish-detail-note { margin: 0 0 17px; color: var(--wish-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.wish-detail-links { display: grid; gap: 7px; margin: 0 0 17px; }
.wish-detail-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--wish-border);
  border-radius: 11px;
  background: #fffcf8;
  color: var(--wish-accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.wish-detail-link:hover { background: #f5e6e1; }
.wish-detail-link small { display: block; color: var(--wish-muted); }
.wish-dialog__actions { display: flex; flex-wrap: wrap; gap: 7px; }
.wish-error { margin: 0; color: #922d43; font-size: 13px; }
.wish-error:not(:empty) { margin-block: 8px; }

.wish-editor form { display: grid; gap: 12px; }
.wish-editor form > label, .wish-fields label { display: grid; gap: 5px; min-width: 0; }
.wish-editor label, .wish-editor legend { font-size: 13px; font-weight: 800; }
.wish-editor fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.wish-editor legend { padding: 0; margin-bottom: 6px; }
.wish-editor input:not([type="file"]), .wish-editor select, .wish-editor textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #d8c2bd;
  border-radius: 9px;
  color: var(--wish-ink);
  background: #fffdf9;
  font-size: 16px;
  font-weight: 500;
}
.wish-editor input::placeholder, .wish-editor textarea::placeholder { color: #80696d; }
.wish-editor textarea { resize: vertical; }
.wish-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.wish-photo-fields { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.wish-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  min-height: 44px;
  border: 1px solid var(--wish-border);
  border-radius: 11px;
  background: #f4e4de;
  color: var(--wish-accent);
  cursor: pointer;
}
.wish-file:focus-within { outline: 2px solid #ad4263; outline-offset: 3px; }
.wish-file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.wish-editor__preview {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 90px;
  overflow: hidden;
  border: 1px solid var(--wish-border);
  border-radius: 13px;
  background: #faece6;
}
#wish-preview-photo { position: relative; }
#wish-preview-photo .wish-image__fallback { font-size: 38px; }
.wish-editor__preview-copy { align-self: center; display: grid; gap: 4px; padding: 10px 12px; }
.wish-editor__preview-copy span { color: var(--wish-muted); font-size: 11px; }
.wish-editor__preview-copy strong { font: 700 19px/1.2 var(--wish-serif); overflow-wrap: anywhere; }
.wish-link-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 36px; align-items: center; gap: 6px; margin-bottom: 6px; }
.wish .wish-remove-link { height: 38px; padding: 0; border: 1px solid var(--wish-border); border-radius: 9px; background: #fff5f1; color: var(--wish-accent); font-size: 22px; cursor: pointer; }
.wish-editor__actions { position: sticky; bottom: -24px; background: var(--wish-paper); padding: 8px 0; }
.wish-editor__actions [data-wish-delete] { margin-left: auto; }

@media (max-width: 1250px) and (min-width: 761px) {
  .topbar .switcher__btn { padding-inline: 9px; font-size: 12px; }
  .topbar .tabs .tab { padding-inline: 9px; font-size: 12px; }
}
@media (max-width: 760px) {
  .wish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wish-hero { min-height: 365px; border-radius: 22px; }
  .wish-hero__copy { padding: 24px; }
}
@media (max-width: 560px) {
  .wish-hero { display: flex; align-items: flex-end; min-height: 410px; background: #442b30; }
  .wish-hero__photo { position: absolute; inset: 0; background-position: 50% 52%; }
  .wish-hero__photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #27101cfa, #2d141dba 32%, #2d141d00 75%); }
  .wish-hero__photo::after { border-radius: 13px; inset: 8px; }
  .wish-hero__copy { align-self: end; padding: 22px; color: #fff7ed; }
  .wish-hero h1 { font-size: clamp(41px, 11vw, 58px); }
  .wish-hero h1 span { color: #f1a9b5; }
  .wish-hero p { color: #f5e4e1; margin: 12px 0 17px; }
  .wish-hero .wish-btn { background: #fff4e9; color: #702b44; }
  .wish-hero .wish-btn:hover:not(:disabled) { background: #ffdedc; }
  .wish-toolbar { align-items: stretch; flex-direction: column; margin-top: 18px; gap: 9px; }
  .wish-modes { width: fit-content; }
  .wish-search { width: 100%; }
  .wish .wish-search input { font-size: 16px; }
  .wish-card { border-radius: 15px; }
  .wish-card__visual { height: clamp(118px, 38vw, 190px); }
  .wish-grid:has(.wish-card--featured) .wish-card:not(.wish-card--featured) .wish-card__visual { height: clamp(118px, 38vw, 190px); }
  .wish-card__body { padding: 10px; }
  .wish-card__badges { inset: 7px 7px auto; }
  .wish-dialog__body { padding: 17px; }
  .wish-editor__actions { bottom: -17px; }
}
@media (max-width: 760px), (min-width: 761px) and (max-width: 1150px) {
  .switcher__btn { min-width: 0; }
  .switcher__text, .switcher__btn::before { display: none; }
  .switcher__icon { display: block; }
  .switcher__btn[data-section="wishlist"] .switcher__icon { font-weight: 800; font-size: 22px; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wish, .wish *, .switcher__pill { animation: none !important; transition: none !important; }
}
