/* Wishlist heart, wishlist page, recently viewed row and Google reviews. */

/* ---------- heart ---------- */
.heart { display: none; position: absolute; z-index: 2; width: 44px; height: 44px; place-items: center; color: var(--ink); }
.has-wishlist .heart { display: grid; }
.heart svg { width: 32px; height: 32px; padding: 5px; border-radius: 50%; background: var(--glass); transition: color 200ms, transform 300ms var(--ease); }
.heart:hover svg { color: var(--gold-text); }
.heart[aria-pressed="true"] svg { color: var(--danger); fill: currentColor; }
.heart.is-popped svg { animation: heart-pop 350ms var(--ease); }
@keyframes heart-pop { 40% { transform: scale(1.3); } }

.card-wrap { position: relative; }
.card-wrap > .heart { top: 4px; inset-inline-end: 4px; }
/* The heart takes the top corner, so the sold-out tag moves to the bottom. */
.card-wrap .badge-out { top: auto; bottom: 10px; }

.buy-row { display: flex; gap: 8px; align-items: center; }
.buy-row .button { flex: 1; width: auto; }
.buy-row .heart { position: static; flex: none; border: 1px solid var(--line); width: 52px; height: 52px; }
.buy-row .heart svg { background: none; }

/* ---------- wishlist page and recently viewed ---------- */
.wishlist-empty { display: grid; justify-items: center; gap: 12px; padding-block: 48px; text-align: center; color: var(--ink-soft); }
.wishlist-empty h2 { font-size: 22px; font-weight: 400; color: var(--ink); }
.wishlist-empty .button { margin-top: 12px; }
.wishlist-empty[hidden] { display: none; }
.wishlist-grid { margin-top: 24px; }

.recent-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(44vw, 240px); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.recent-rail > * { scroll-snap-align: start; }

/* ---------- Google reviews ---------- */
.google-reviews { background: rgba(212, 175, 55, 0.04); border-block: 1px solid var(--line); max-width: none; }
.google-reviews > * { max-width: 1320px; margin-inline: auto; }
.gr-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .gr-layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; } }
.gr-summary { display: grid; justify-items: center; gap: 8px; padding: 24px; background: var(--page); border: 1px solid var(--line); text-align: center; }
.gr-maps { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--sand); }
.gr-score { font-size: 56px; line-height: 1.1; color: var(--gold-text); }
.gr-stars { position: relative; display: inline-block; font-size: 20px; direction: ltr; white-space: nowrap; }
.gr-stars .gr-on { position: absolute; top: 0; left: 0; overflow: hidden; }
.gr-on { color: var(--gold-text); }
.gr-off { color: var(--line-strong); }
.gr-summary .button { margin-top: 8px; width: 100%; border: 1px solid var(--gold-text); color: var(--gold-text); }
.gr-list { display: grid; gap: 16px; list-style: none; }
@media (min-width: 700px) { .gr-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.gr-card { display: grid; gap: 10px; align-content: start; padding: 18px; background: var(--page); border: 1px solid var(--line); }
.gr-author { display: flex; align-items: center; gap: 12px; }
.gr-author > div { flex: 1; min-width: 0; display: grid; }
.gr-author a, .gr-author strong { display: flex; align-items: center; min-height: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.gr-author img, .gr-initial { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.gr-initial { display: grid; place-items: center; background: var(--sand); color: var(--gold-text); font-weight: 700; }
.gr-author small, .gr-source, .gr-foot small, .gr-note { color: var(--ink-soft); font-size: 13px; }
.gr-source { font-weight: 700; }
.gr-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.7; }
.gr-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.gr-foot a { color: var(--gold-text); display: inline-flex; align-items: center; min-height: 44px; }
.gr-note { text-align: center; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) { .heart svg, .heart.is-popped svg { animation: none; transition: none; } }
