/* yens-ux cards.css (Hermes 26 Nov 2026): Stok Habis overlay, Favorit + Bagikan buttons, share sheet. Nothing here changes card height. */
.yens-card-img-wrap .yux-oos { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.62); pointer-events: none; }
.yux-oos b { background: #1e293b; color: #fff; font: 800 12px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; padding: 8px 12px; border-radius: 99px; text-transform: uppercase; box-shadow: 0 4px 14px #0f172a33; }
.yens-card-img-wrap .yux-acts, .ym-card > .yux-acts { position: absolute; top: 8px; right: 8px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.ym-card { position: relative; }
.ym-card > .yux-acts { top: 14px; right: 14px; }
/* Flash Deal cards: small thumbnail, so the two buttons sit side by side in its bottom corner */
#yens-fd .fd-img { position: relative; }
#yens-fd .fd-img .yux-acts { position: absolute; z-index: 4; display: flex; flex-direction: row; gap: 6px; top: auto; bottom: 6px; right: 6px; }
#yens-fd .fd-img .yux-acts button { width: 32px; height: 32px; }
.yux-acts .yux-fav, .yux-acts .yux-share { position: relative; width: 36px; height: 36px; padding: 0; margin: 0; border: 1px solid #e2e8f0; border-radius: 50%; background: rgba(255,255,255,.94); color: #475569;
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px #0f172a1a; -webkit-tap-highlight-color: transparent; }
.yux-acts button::after { content: ""; position: absolute; inset: -4px; }
.yux-fav.on { color: #e11d48; border-color: #fda4af; background: #fff1f2; }
.yux-fav.on svg path { fill: currentColor; }
.yux-fav.busy { opacity: .6; }
.yux-acts button:focus-visible, .yux-share-lg:focus-visible { outline: 3px solid #16638b; outline-offset: 2px; }
button.yens-card-add-btn.yux-oos-btn { font-family: inherit; background: #e2e8f0 !important; color: #64748b !important; border: 0; cursor: not-allowed; opacity: 1; }
button.yens-card-add-btn.yux-oos-btn:hover { background: #e2e8f0 !important; color: #64748b !important; }
.yux-share-row { margin: 8px 0 0; }
.yux-share-lg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #cfeaf8; border-radius: 8px; background: #fff; color: #1e78b5;
  font: 600 14px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.yux-share-lg:hover { background: #f2faff; }
/* toast + share sheet */
.yux-c-toast { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 99999; max-width: 480px; margin: 0 auto; padding: 12px 14px; border-radius: 14px; background: #0f172a; color: #fff;
  font: 600 14px/1.4 Inter, system-ui, sans-serif; box-shadow: 0 10px 30px #0003; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.yux-c-toast[hidden] { display: none; }
.yux-c-toast a { color: #fff; background: #0984e3; border-radius: 8px; padding: 8px 12px; text-decoration: none; white-space: nowrap; min-height: 20px; }
.yux-sheet-bg { position: fixed; inset: 0; z-index: 99998; background: #0f172a66; display: flex; align-items: flex-end; justify-content: center; }
.yux-sheet-bg[hidden] { display: none; }
.yux-sheet { width: 100%; max-width: 420px; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); font-family: Inter, system-ui, sans-serif; }
.yux-sheet h4 { margin: 0 0 4px; font-size: 15px; color: #0f172a; }
.yux-sheet p { margin: 0 0 12px !important; padding: 0 !important; background: none !important; border: 0 !important; font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yux-sheet a, .yux-sheet button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin: 0 0 8px; border: 1px solid #cfeaf8; border-radius: 10px; background: #fff; color: #1e78b5; font: 600 15px/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.yux-sheet a.wa { background: #16a34a; border-color: #16a34a; color: #fff; }
@media (min-width: 769px) { .yux-sheet-bg { align-items: center; } .yux-sheet { border-radius: 18px; } .yux-c-toast { bottom: 24px; } }
/* header Favorit link: phones keep the old two-item header (Akun Saya, Bag); Favorit is in Akun Saya and on every card */
@media (max-width: 768px) { .yens-header-actions a.yens-action-item[title="Favorit"] { display: none !important; } }
