/* irfal lux module "kesif" 1.0.0 — recently viewed, saved items, shelves. Core cards/rails do the heavy lifting. */

/* shelves: the home page shelf rhythm */
body.irfal-lux .kesif-shelf { padding: var(--lux-6) 0; }
@media (min-width: 1000px) { body.irfal-lux .kesif-shelf { padding: var(--lux-7) 0; } }
body.irfal-lux .kesif-pdp, body.irfal-lux .kesif-cart { clear: both; }
body.irfal-lux .kesif-pdp > .kesif-shelf:first-child { border-top: 1px solid var(--lux-line); }
body.irfal-lux.kesif-pdp-on section.related.products { display: none !important; }
body.irfal-lux .kesif-shelf .lux-head { flex-wrap: wrap; }
body.irfal-lux .kesif-shelf .lux-head__sub { max-width: 60ch; }
body.irfal-lux .kesif-clear { min-height: 44px; padding: 0 var(--lux-1); border: 0; background: none; color: var(--lux-muted); font: 500 13px/1 var(--lux-sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--lux-line); cursor: pointer; }
body.irfal-lux .kesif-clear:hover { color: var(--lux-ink); text-decoration-color: var(--lux-ink); }
body.irfal-lux .kesif-clear:active { color: var(--lux-accent); }
body.irfal-lux .kesif-rv--404, body.irfal-lux .kesif-rv--cart { background: transparent; }

/* waiting shelf: reserves the space of one shelf (no jump when the cards arrive) */
body.irfal-lux .kesif-wait__h { width: 220px; max-width: 60%; height: 34px; margin: 0 0 var(--lux-5); border-radius: var(--lux-r1); background: var(--lux-skeleton); }
body.irfal-lux .kesif-wait .lux-rail__track { overflow: hidden; }
body.irfal-lux .kesif-sk { aspect-ratio: 4 / 6.1; border-radius: var(--lux-r2); background: var(--lux-skeleton); animation: kesifPulse 1.4s ease-in-out infinite alternate; }
@keyframes kesifPulse { to { opacity: .55; } }

/* heart button */
body.irfal-lux .kesif-heart { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--lux-2); min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--lux-r3); background: none; color: var(--lux-accent); cursor: pointer; -webkit-tap-highlight-color: transparent; }
body.irfal-lux .kesif-heart svg { width: 22px; height: 22px; fill: transparent; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: fill .2s var(--lux-ease), transform .25s var(--lux-ease); }
body.irfal-lux .kesif-heart.is-on svg { fill: var(--lux-accent); }
body.irfal-lux .kesif-heart:active svg { transform: scale(.82); }
body.irfal-lux .kesif-heart.is-pop svg { animation: kesifPop .45s var(--lux-ease); }
@keyframes kesifPop { 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
body.irfal-lux .kesif-heart__tip { position: absolute; top: calc(100% + 4px); right: 0; padding: 4px 10px; border-radius: var(--lux-r3); background: var(--lux-ink); color: var(--lux-paper); font: 600 11px/1.3 var(--lux-sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s var(--lux-ease), transform .2s var(--lux-ease); z-index: 4; }
body.irfal-lux .kesif-heart.is-pop .kesif-heart__tip { opacity: 1; transform: none; }
/* on cards: top-right corner of the picture */
body.irfal-lux .lux-card, body.irfal-lux .kesif-hhost { position: relative; }
body.irfal-lux .kesif-heart--card { position: absolute; top: 6px; right: 6px; z-index: 3; }
body.irfal-lux .kesif-heart--card::before { content: ""; position: absolute; inset: 5px; border-radius: var(--lux-r3); background: rgba(255, 255, 255, .92); box-shadow: 0 1px 2px rgba(28, 26, 23, .08); transition: background .2s var(--lux-ease); }
body.irfal-lux .kesif-heart--card svg { position: relative; width: 19px; height: 19px; }
body.irfal-lux .kesif-heart--card:hover::before { background: #fff; box-shadow: 0 0 0 1px var(--lux-line); }
/* product page: beside the title */
/* the summary column is a flex column: the button sits in its top-right corner, the title keeps clear of it */
body.irfal-lux .summary.entry-summary:has(> .kesif-heart--pdp) { position: relative; }
body.irfal-lux .summary.entry-summary:has(> .kesif-heart--pdp) > h1.product_title { padding-right: 128px; }
@media (max-width: 689.98px) { body.irfal-lux .summary.entry-summary:has(> .kesif-heart--pdp) > h1.product_title { padding-right: 56px; } }
body.irfal-lux .kesif-heart--pdp { position: absolute; top: 4px; right: 0; z-index: 2; height: 44px; margin: 0; padding: 0 var(--lux-3) 0 12px; border: 1px solid var(--lux-line); background: var(--lux-white); color: var(--lux-ink); font: 600 12px/1 var(--lux-sans); letter-spacing: .12em; text-transform: uppercase; }
body.irfal-lux .kesif-heart--pdp svg { color: var(--lux-accent); }
body.irfal-lux .kesif-heart--pdp:hover { border-color: var(--lux-ink); }
body.irfal-lux .kesif-heart--pdp:active { background: var(--lux-stone); }
body.irfal-lux .kesif-heart--pdp.is-on { border-color: var(--lux-accent); background: var(--lux-warm, #FBF8F2); }
@media (max-width: 689.98px) { body.irfal-lux .kesif-heart--pdp { padding: 0; width: 44px; } body.irfal-lux .kesif-heart__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* header: heart + count */
body.irfal-lux .kesif-hdr { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin-right: var(--lux-1); border-radius: var(--lux-r3); color: var(--lux-ink); }
@media (min-width: 1000px) { body.irfal-lux .kesif-hdr { width: 48px; height: 48px; } }
body.irfal-lux .kesif-hdr:hover { background: var(--lux-white); color: var(--lux-ink); }
body.irfal-lux .kesif-hdr:active { background: var(--lux-stone); }
body.irfal-lux .kesif-hdr svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
body.irfal-lux .kesif-hdr__n { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: var(--lux-r3); background: var(--lux-accent); color: #fff; font: 600 11px/18px var(--lux-sans); text-align: center; font-variant-numeric: tabular-nums; }
body.irfal-lux .kesif-hdr__n[hidden] { display: none; }

/* status line ("Saved", "Removed · Undo") */
body.irfal-lux .kesif-live { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 100003; display: flex; align-items: center; gap: var(--lux-3); max-width: calc(100vw - 32px); padding: 12px 20px; box-sizing: border-box; border-radius: var(--lux-r3); background: var(--lux-ink); color: var(--lux-paper); font: 500 14px/1.3 var(--lux-sans); box-shadow: var(--lux-shadow); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s var(--lux-ease), transform .25s var(--lux-ease); }
body.irfal-lux .kesif-live:empty { display: none; }
body.irfal-lux .kesif-live.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
body.irfal-lux.single-product .kesif-live { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
body.irfal-lux .kesif-undo { min-height: 36px; padding: 0 var(--lux-2); border: 0; background: none; color: var(--lux-accent-dark); font: 600 13px/1 var(--lux-sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* /saved/ */
body.irfal-lux .kesif-saved-main { padding: var(--lux-6) 0 var(--lux-7); }
@media (min-width: 1000px) { body.irfal-lux .kesif-saved-main { padding: var(--lux-7) 0 var(--lux-8); } }
body.irfal-lux .kesif-saved__head { margin: 0 0 var(--lux-5); text-align: center; }
body.irfal-lux .kesif-saved__h { margin: 0; font-family: var(--lux-serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; }
body.irfal-lux .kesif-saved__sub { margin: var(--lux-2) 0 0; color: var(--lux-muted); font-size: 14px; }
body.irfal-lux .kesif-saved__grid.is-wait .kesif-sk { min-height: 260px; }
@media (min-width: 690px) { body.irfal-lux .kesif-saved__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { body.irfal-lux .kesif-saved__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--lux-6) var(--lux-4); } }
body.irfal-lux .kesif-saved__grid > li { display: flex; flex-direction: column; transition: opacity .18s var(--lux-ease), transform .18s var(--lux-ease); }
body.irfal-lux .kesif-saved__grid > li.is-gone { opacity: 0; transform: scale(.97); }
body.irfal-lux .kesif-acts { display: flex; flex-direction: column; gap: var(--lux-1); margin-top: var(--lux-3); }
body.irfal-lux .kesif-acts .lux-btn { width: 100%; min-height: 44px; padding: 0 var(--lux-3); justify-content: center; font-size: 12px; box-sizing: border-box; }
body.irfal-lux .kesif-rm { align-self: center; min-height: 44px; padding: 0 var(--lux-3); border: 0; background: none; color: var(--lux-muted); font: 500 13px/1 var(--lux-sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--lux-line); cursor: pointer; }
body.irfal-lux .kesif-rm:hover { color: var(--lux-ink); text-decoration-color: var(--lux-ink); }
body.irfal-lux .kesif-rm:active { color: var(--lux-accent); }
body.irfal-lux .kesif-empty { max-width: 460px; margin: var(--lux-4) auto var(--lux-6); text-align: center; color: var(--lux-ink-2); }
body.irfal-lux .kesif-empty__ico { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border: 1px solid var(--lux-line); border-radius: var(--lux-r3); background: var(--lux-white); color: var(--lux-accent); }
body.irfal-lux .kesif-empty__ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
body.irfal-lux .kesif-empty__h { margin: var(--lux-4) 0 var(--lux-2); font-family: var(--lux-serif); font-weight: 500; font-size: 32px; line-height: 1.15; }
body.irfal-lux .kesif-empty p { margin: 0 0 var(--lux-5); font-size: 15px; line-height: 1.6; }
body.irfal-lux .kesif-rv--saved { margin-top: var(--lux-5); border-top: 1px solid var(--lux-line); }
body.irfal-lux .kesif-rv--saved .lux-wrap { padding: 0; }

/* cart drawer: one compact row */
body.irfal-lux .kesif-drawer { flex: none; padding: 12px 22px 16px; border-top: 1px solid var(--lux-line); background: var(--lux-paper); }
body.irfal-lux .kesif-drawer__h { margin: 0 0 10px; color: var(--lux-ink); font: 600 11.5px/1 var(--lux-sans); letter-spacing: .14em; text-transform: uppercase; }
body.irfal-lux .kesif-drawer .lux-rail__track { gap: 12px; padding-bottom: 2px; }
body.irfal-lux .kesif-drawer .lux-rail__track > li { flex: 0 0 104px; }
body.irfal-lux .kesif-drawer .lux-rail__btn { display: none !important; }
body.irfal-lux .kesif-drawer .lux-card__media { border-radius: var(--lux-r1); }
body.irfal-lux .kesif-drawer .lux-card__title { margin-top: 6px; font-size: 12px; }
body.irfal-lux .kesif-drawer .lux-card__price { font-size: 13px; }
body.irfal-lux .kesif-drawer .lux-card__ship { display: none; }

/* search panel: small recently viewed strip */
body.irfal-lux .kesif-sugg ul { display: flex; gap: var(--lux-2); margin: 0 0 var(--lux-2); padding: 0 var(--lux-3) var(--lux-1); list-style: none; overflow-x: auto; scrollbar-width: none; }
body.irfal-lux .kesif-sugg ul::-webkit-scrollbar { display: none; }
body.irfal-lux .kesif-sugg li { flex: 0 0 72px; }
body.irfal-lux .kesif-sugg a { display: block; color: var(--lux-ink); text-decoration: none; }
body.irfal-lux .kesif-sugg img { display: block; width: 72px; height: 90px; object-fit: contain; padding: 6%; box-sizing: border-box; border: 1px solid var(--lux-line); border-radius: var(--lux-r1); background: var(--lux-tile); }
body.irfal-lux .kesif-sugg a:hover img { border-color: var(--lux-ink); }
body.irfal-lux .kesif-sugg__n { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; font-size: 11.5px; line-height: 1.3; }

@media (prefers-reduced-motion: reduce) {
	body.irfal-lux .kesif-heart svg, body.irfal-lux .kesif-live, body.irfal-lux .kesif-heart__tip, body.irfal-lux .kesif-saved__grid > li { transition: none; }
	body.irfal-lux .kesif-heart.is-pop svg, body.irfal-lux .kesif-sk { animation: none; }
}
@media (min-width: 690px) { body.irfal-lux .kesif-heart--pdp .kesif-heart__tip { display: none; } }
@media (max-width: 689.98px) { body.irfal-lux .kesif-acts .lux-btn { padding: 0 var(--lux-2); letter-spacing: .06em; font-size: 11.5px; white-space: nowrap; } }
