/* Wishlist, gift cards and the checkout gift option (js/wishlist.js, js/gift-card.js). */

/* ── wishlist heart ───────────────────────────────────────── */
.card__end { display: inline-flex; align-items: center; gap: .35rem; }
.browse .card__row .card__end { width: 100%; justify-content: space-between; }
.wish-heart {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -10px -10px -10px 0;
  border-radius: 50%; color: var(--ink); cursor: pointer; transition: background-color .2s, transform .2s var(--ease-silk);
}
[dir="rtl"] .wish-heart { margin: -10px 0 -10px -10px; }
.wish-heart svg { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; transition: fill .2s; }
.wish-heart.is-saved { color: var(--accent, var(--gold)); }
.wish-heart.is-saved svg { fill: currentColor; }
.wish-heart:active { transform: scale(.88); }
@media (hover: hover) { .wish-heart:hover { background: rgba(162, 59, 122, .08); } }
.qv__price { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.qv__wish { margin: -6px 0; }

/* ── side panels (wishlist, gift card) ────────────────────── */
.gx {
  position: fixed; inset: 0 0 0 auto; width: min(480px, 100%); height: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--ivory); color: var(--text); overscroll-behavior: contain;
}
[dir="rtl"] .gx { inset: 0 auto 0 0; }
.gx[open] { display: flex; flex-direction: column; animation: gx-in .45s var(--ease-drape); }
[dir="rtl"] .gx[open] { animation-name: gx-in-rtl; }
@keyframes gx-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes gx-in-rtl { from { transform: translateX(-40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gx[open] { animation: none; } }
.gx::backdrop { background: rgba(46, 27, 46, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.gx__head { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.6rem; border-bottom: 1px solid var(--hairline); }
.gx__title { font-family: var(--f-display); font-size: 1.4rem; font-weight: 400; }
.gx__close { width: 44px; height: 44px; margin: -10px; font-size: 1rem; cursor: pointer; }
.gx__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.6rem 2rem; }

/* ── wishlist panel ───────────────────────────────────────── */
.wish__list { list-style: none; margin: 0; padding: 0; }
.wish__item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .5rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
.wish__item img { grid-row: span 2; width: 76px; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; background: var(--sand); }
.wish__text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.wish__name { font-family: var(--f-display); font-size: 1.05rem; overflow-wrap: anywhere; }
.wish__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wish__view { padding: .55rem 1.2rem; min-height: 40px; font-size: .8rem; }
.wish__empty { color: var(--muted, var(--camel-text)); padding: 2rem 0; text-align: center; }
.wish__alerts { margin-top: 1.6rem; padding: 1.3rem; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface, var(--sand)); display: flex; flex-direction: column; gap: .7rem; }
.wish__alerts h4 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 400; }
.wish__alerts-b { font-size: .85rem; line-height: 1.55; color: var(--muted, var(--camel-text)); }
.wish__alerts .btn { justify-content: center; }
.wish__status { font-size: .8rem; min-height: 1em; color: var(--muted, var(--camel-text)); }
.wish__status[data-error="1"] { color: var(--terra-text); }

/* ── gift card ────────────────────────────────────────────── */
.gc__form { display: flex; flex-direction: column; gap: 1rem; }
.gc__card {
  position: relative; aspect-ratio: 1.6; border-radius: 14px; padding: 1.3rem 1.4rem; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #c06e93 0%, #7c3a62 45%, #2e1b2e 100%); color: #faeef2;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px -22px rgba(46, 27, 46, .8);
}
.gc__card::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(250, 238, 242, .28); border-radius: 9px; pointer-events: none; }
.gc__brand { font-family: "Bodoni Moda", serif; letter-spacing: .3em; font-size: 1rem; direction: ltr; }
.gc__ar { position: absolute; inset-inline-end: 1.4rem; top: 1rem; font-family: var(--f-ar-display); font-size: 2rem; opacity: .85; }
.gc__value { font-family: var(--f-display); font-size: 2rem; }
.gc__lead { font-size: .88rem; line-height: 1.6; color: var(--muted, var(--camel-text)); }
.gc__amounts { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.gc__amounts legend { margin-bottom: .5rem; }
.gc__amount { position: relative; }
.gc__amount input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.gc__amount span { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--hairline); border-radius: 8px; font-size: .95rem; transition: border-color .2s, background-color .2s; }
.gc__amount input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.gc__amount input:focus-visible + span { outline: 2px solid var(--accent, var(--gold)); outline-offset: 2px; }
.gc__h { font-family: var(--f-display); font-size: 1.1rem; font-weight: 400; margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--hairline); }
.gc__message { resize: vertical; min-height: 64px; font: inherit; }
.gc__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 2rem 0; }
.gc__done h4 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; }
.gc__done p { line-height: 1.6; }
.gc__code { font-family: "Albert Sans", monospace; font-size: 1.5rem; letter-spacing: .12em; padding: .8rem 1.2rem; border: 1px dashed var(--ink); border-radius: 8px; }

/* ── checkout: this is a gift ─────────────────────────────── */
.co__gift { margin-top: .4rem; padding: 1rem; border: 1px solid var(--hairline); border-radius: 10px; }
.co__check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; }
.co__check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.co__check-text { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.co__check-text strong { font-weight: 500; font-size: .92rem; }
.co__check-text span { color: var(--muted, var(--camel-text)); }
.co__gift-box { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.co__gift-message { resize: vertical; min-height: 64px; font: inherit; }
.co__order-note { margin-top: 1rem; }
