/* Made for You (for-you.html), its Gift Finder sheet and the render lab. */

/* ── page ── */
.fy-page { max-width: 1080px; margin: 0 auto; padding: 8px 14px 28px; }
.fy-hero { text-align: center; padding: 18px 4px 6px; }
.fy-eyebrow { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary, #FF1E36); }
.fy-title { margin: 6px 0 8px; font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.8rem); line-height: 1.08; color: var(--text-main, #172B35); }
.fy-names { color: var(--primary, #FF1E36); background: linear-gradient(transparent 72%, rgba(0, 181, 200, .28) 72%); padding: 0 .1em; word-break: break-word; }
.fy-sub { margin: 0 auto 12px; max-width: 34rem; color: var(--text-muted, #4F6874); font-size: .95rem; line-height: 1.45; }
.fy-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fy-chip { border: 1.5px solid var(--text-main, #172B35); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .82rem; font-weight: 700; color: var(--text-main, #172B35); cursor: pointer; }
.fy-chip:hover { background: #F4F8F9; }
.fy-section { margin-top: 22px; }
.fy-deadline { margin: 12px auto 0; max-width: 34rem; padding: 8px 12px; border-radius: 12px; background: #E9F7EF; color: #14532D; font-size: .86rem; font-weight: 700; line-height: 1.35; }
.fy-deadline[data-mood="tight"] { background: #FFF6E0; color: #7A4B00; }
.fy-deadline[data-mood="late"] { background: #FFECEC; color: #8A1C1C; }
.fy-h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.3rem; color: var(--text-main, #172B35); }

/* until the page has filled in: no "your name", empty lists or share box */
.fy-loading .fy-hero { visibility: hidden; }
.fy-waiting .fy-section, .fy-waiting .fy-share, .fy-waiting .fy-trust { display: none; }

/* ── cards ── */
.fy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .fy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .fy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fy-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text-main, #172B35); background: var(--bg-panel, #fff); border: 2px solid var(--text-main, #172B35); border-radius: 18px; overflow: hidden; box-shadow: 3px 3px 0 var(--text-main, #172B35); transition: transform .15s, box-shadow .15s; }
.fy-card:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--text-main, #172B35); }
.fy-card-hero { grid-column: 1 / -1; }
@media (min-width: 760px) { .fy-card-hero { grid-column: span 2; grid-row: span 2; } }
.fy-shot { position: relative; aspect-ratio: 1; background: #F4F8F9; overflow: hidden; }
.fy-card-hero .fy-shot { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .fy-card-hero .fy-shot { aspect-ratio: auto; flex: 1; min-height: 300px; } }
.fy-shot img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fy-photo { object-fit: cover; opacity: .6; filter: blur(7px) saturate(.75); transform: scale(1.1); transition: opacity .35s; }
.fy-render { object-fit: contain; opacity: 0; transition: opacity .35s; touch-action: pan-y; }
.fy-render:not([src]) { visibility: hidden; }
.fy-ready .fy-photo { opacity: 0; }
.fy-ready .fy-render { opacity: 1; cursor: grab; }
.fy-still .fy-photo { opacity: 1; filter: none; transform: none; }
/* shimmer while the design is being made */
.fy-shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); background-size: 220% 100%; animation: fy-shimmer 1.3s linear infinite; pointer-events: none; }
.fy-ready::after, .fy-still::after, .fy-tap::after { display: none; }
@keyframes fy-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .fy-shot::after { animation: none; } }
.fy-with { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); background: #fff; border: 1.5px solid var(--text-main, #172B35); border-radius: 999px; padding: 3px 9px; font-size: .74rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-with:empty { display: none; }
.fy-ready .fy-with { opacity: 0; transition: opacity .3s .6s; }
.fy-badge { position: absolute; left: 8px; top: 8px; background: var(--primary, #FF1E36); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.fy-hint { position: absolute; right: 8px; bottom: 8px; background: rgba(23, 43, 53, .78); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 700; animation: fy-fade 4s 1.2s forwards; }
@keyframes fy-fade { to { opacity: 0; visibility: hidden; } }
.fy-see { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 2px solid var(--text-main, #172B35); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .8rem; font-weight: 800; color: var(--text-main, #172B35); box-shadow: 2px 2px 0 var(--text-main, #172B35); cursor: pointer; white-space: nowrap; }
.fy-body { padding: 9px 10px 10px; display: grid; gap: 3px; }
/* a card's other looks (page.js variantStrip) */
.fy-variants { display: flex; gap: 6px; margin-bottom: 2px; }
.fy-variants[hidden] { display: none; }
.fy-var { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 2px solid #E2EAED; background: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; font: inherit; color: var(--text-main, #172B35); }
.fy-var[aria-pressed="true"] { border-color: var(--primary, #FF1E36); box-shadow: 0 0 0 2px rgba(255, 30, 54, .18); }
.fy-var-dot { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.fy-var-font { font-size: 14px; line-height: 1; }
.fy-var-emoji { font-size: 17px; line-height: 1; }
.fy-switching .fy-render { opacity: .4; transition: opacity .2s; }
/* the gift reveal (reveal.js) */
.fy-send { position: absolute; right: 8px; top: 8px; border: 2px solid var(--text-main, #172B35); background: #25D366; color: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; box-shadow: 2px 2px 0 var(--text-main, #172B35); }
.fy-send[hidden] { display: none; }
.fy-reveal-stage { display: grid; place-items: center; min-height: 200px; margin: 8px 0; border-radius: 14px; background: #F4F8F9; overflow: hidden; }
.fy-reveal-stage video, .fy-reveal-stage img { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 12px; }
.fy-reveal-stage:empty::after { content: ''; width: 34px; height: 34px; border-radius: 50%; border: 4px solid #D7E3E7; border-top-color: var(--primary, #FF1E36); animation: fy-spin .8s linear infinite; }
@keyframes fy-spin { to { transform: rotate(360deg); } }
.fy-reveal .gf-skip[hidden] { display: none; }
.fy-switching::after { display: block !important; }
.fy-chip-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 3px; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.fy-label { margin: 0; font-weight: 800; font-size: .92rem; line-height: 1.2; }
.fy-why { margin: 0; font-size: .76rem; line-height: 1.35; color: var(--text-muted, #4F6874); }
.fy-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.fy-price { font-weight: 800; font-size: .84rem; }
.fy-cta { color: var(--primary, #FF1E36); font-weight: 800; font-size: .84rem; white-space: nowrap; }
.fy-card-hero .fy-label { font-size: 1.1rem; }
.fy-card-hero .fy-why { font-size: .86rem; }

/* ── share and trust ── */
.fy-share { margin-top: 26px; text-align: center; background: #fff; border: 2px solid var(--text-main, #172B35); border-radius: 18px; padding: 16px; box-shadow: 3px 3px 0 var(--text-main, #172B35); }
.fy-share p { margin: 0 0 10px; }
.fy-share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fy-share #fyWhatsApp { background: #25D366; color: #fff; border-color: var(--text-main, #172B35); }
.fy-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 18px 0 0; padding: 0; font-size: .8rem; color: var(--text-muted, #4F6874); font-weight: 700; }

/* ── Gift Finder sheet (js/for-you/finder.js) ── */
.gf-sheet { margin: auto; inset: 0; height: fit-content; max-height: calc(100dvh - 24px); width: min(460px, calc(100vw - 24px)); box-sizing: border-box; overflow-y: auto; overflow-x: hidden; border: 2px solid var(--text-main, #172B35); border-radius: 20px; padding: 20px 18px 16px; background: #fff; color: var(--text-main, #172B35); box-shadow: 0 24px 64px rgba(0, 0, 0, .35); font-family: var(--font-family, inherit); }
.gf-sheet:focus { outline: none; }
.gf-sheet::backdrop { background: rgba(10, 14, 28, .55); }
.gf-sheet button, .gf-sheet input { font-family: inherit; }
.gf-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text-muted, #667); }
.gf-progress { display: flex; gap: 5px; margin: 0 28px 12px 0; }
.gf-progress i { flex: 1; height: 5px; border-radius: 5px; background: #E2EAED; }
.gf-progress i.on { background: var(--primary, #FF1E36); }
.gf-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; }
.gf-lead { margin: 0 0 12px; font-size: .88rem; color: var(--text-muted, #4F6874); }
.gf-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gf-option { display: flex; align-items: center; gap: 8px; border: 2px solid var(--text-main, #172B35); background: #fff; border-radius: 14px; padding: 11px 10px; font-size: .95rem; font-weight: 800; color: var(--text-main, #172B35); cursor: pointer; text-align: left; box-shadow: 2px 2px 0 var(--text-main, #172B35); }
.gf-option span { font-size: 1.35rem; }
.gf-option[aria-pressed="true"] { background: #FFF0F2; border-color: var(--primary, #FF1E36); box-shadow: 2px 2px 0 var(--primary, #FF1E36); }
.gf-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.gf-fields label { display: grid; gap: 4px; font-size: .82rem; font-weight: 800; }
.gf-fields input { width: 100%; min-width: 0; box-sizing: border-box; border: 2px solid var(--text-main, #172B35); border-radius: 12px; padding: 11px 12px; font-size: 16px; font-weight: 700; color: var(--text-main, #172B35); }
.gf-fields input:focus-visible { outline: none; border-color: var(--primary, #FF1E36); box-shadow: 0 0 0 3px rgba(255, 30, 54, .16); }
.gf-add { justify-self: start; border: 0; background: none; padding: 2px 0; color: var(--primary, #FF1E36); font-weight: 800; font-size: .86rem; cursor: pointer; }
.gf-preview { margin: 12px 0 2px; display: flex; justify-content: center; }
.gf-tag { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: #1D7D8D; color: #F1ECE1; border: 3px solid #0E0E10; border-radius: 999px; padding: 8px 18px 8px 10px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; box-shadow: 3px 3px 0 #0E0E10; overflow: hidden; }
.gf-tag::before { content: ''; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #F1ECE1; }
.gf-tag b { font-weight: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gf-swatches button { position: relative; aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--text-main, #172B35); background: var(--swatch); cursor: pointer; padding: 0; }
.gf-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--primary, #FF1E36); transform: scale(1.06); }
.gf-swatches button[data-order]:not([data-order=""])::after { content: attr(data-order); position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary, #FF1E36); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.gf-picked { margin: 10px 0 0; text-align: center; font-size: .86rem; font-weight: 700; color: var(--text-muted, #4F6874); }
.gf-date { display: grid; gap: 4px; margin-top: 12px; font-size: .82rem; font-weight: 800; }
.gf-date input { width: 100%; min-width: 0; box-sizing: border-box; border: 2px solid var(--text-main, #172B35); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; }
.gf-search { width: 100%; min-width: 0; box-sizing: border-box; margin-bottom: 10px; border: 2px solid var(--text-main, #172B35); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; }
.gf-emoji { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-height: 46vh; overflow-y: auto; }
.gf-emoji button { aspect-ratio: 1; border: 2px solid #E2EAED; background: #fff; border-radius: 12px; font-size: 1.5rem; cursor: pointer; padding: 0; }
.gf-emoji button[aria-pressed="true"] { border-color: var(--primary, #FF1E36); background: #FFF0F2; }
.gf-actions { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 14px; }
.gf-next { flex: 1; border: 2px solid var(--text-main, #172B35); background: var(--primary, #FF1E36); color: #fff; border-radius: 14px; padding: 12px; font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: 2px 2px 0 var(--text-main, #172B35); }
.gf-next:disabled { opacity: .45; cursor: default; }
.gf-skip { border: 0; background: none; color: var(--text-muted, #4F6874); font-weight: 700; font-size: .88rem; cursor: pointer; padding: 8px 4px; }
@media (max-width: 600px) {
    .gf-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; inset: auto 0 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; padding: 16px 14px calc(14px + env(safe-area-inset-bottom)); max-height: 100dvh; }
}

/* ── render lab (for-you-lab.html) ── */
.fy-lab { max-width: 980px; margin: 0 auto; padding: 16px; }
.fy-lab .fy-shot img { object-fit: contain; }
.fy-name { margin: 8px 10px 0; font-weight: 800; font-size: .9rem; }
.fy-time { margin: 2px 10px 10px; font-size: .75rem; color: var(--text-muted, #4F6874); }

/* ── the finder's live 3D model (home page: js/for-you/finder.js liveModel) ── */
.gf-model { position: relative; height: 185px; margin: -4px 0 10px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #FFFFFF, #E4F2F5 75%); border: 2px solid var(--text-main, #172B35); overflow: hidden; }
.gf-model[hidden] { display: none; }
.gf-model-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; touch-action: pan-y; cursor: grab; }
.gf-model-ready .gf-model-img { opacity: 1; }
.gf-model-busy.gf-model-ready .gf-model-img { opacity: .55; }
.gf-model-img:not([src]) { visibility: hidden; }
.gf-model-note { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: .72rem; font-weight: 800; color: var(--text-muted, #4F6874); white-space: nowrap; pointer-events: none; }
.gf-model-busy:not(.gf-model-ready)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); background-size: 220% 100%; animation: gf-model-shine 1.2s linear infinite; }
@keyframes gf-model-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (min-width: 601px) { .gf-model { height: 215px; } }
@media (prefers-reduced-motion: reduce) { .gf-model-busy::after { animation: none; } }

/* ── a card’s "Buy now" (Standard pieces) and "or Customize" ── */
.fy-buyable .fy-cta { display: none; }
.fy-buyrow { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 8px; }
.fy-buyrow[hidden] { display: none; }
.fy-buy { border: 2px solid var(--text-main, #172B35); background: var(--primary, #FF1E36); color: #fff; border-radius: 12px; padding: 9px 10px; font: inherit; font-weight: 800; font-size: .95rem; white-space: nowrap; cursor: pointer; box-shadow: 2px 2px 0 var(--text-main, #172B35); }
.fy-buy:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--text-main, #172B35); }
.fy-customize { text-align: center; padding: 4px; font-weight: 800; font-size: .84rem; color: var(--text-main, #172B35); text-decoration: underline; text-underline-offset: 3px; }
.fy-buynote { display: block; text-align: center; font-size: .74rem; line-height: 1.3; color: var(--text-muted, #4F6874); }
.fy-buynote[hidden] { display: none; }
