/* OneAppleFall shop — scoped to #oaf-shop (rendered inside a shadow root) */
#oaf-shop { --ink: #18181b; --muted: #63636b; --line: #e4e4e7; --soft: #f6f6fb; --accent: var(--oaf-primary, #4f46e5);
  --accent2: var(--oaf-secondary, #7c3aed); --deal: #dc2626; color: var(--ink); font: 16px/1.5 inherit; margin: 0; }
#oaf-shop * { box-sizing: border-box; }
#oaf-shop img { max-width: 100%; height: auto; display: block; }
.oaf-shop__card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
#oaf-shop button { font: inherit; cursor: pointer; }
#oaf-shop button:disabled { opacity: .5; cursor: not-allowed; }

.oaf-shop__countdown { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: #111827; color: #fff; text-align: center; font-size: 15px; }
.oaf-shop__countdown.is-live { background: linear-gradient(90deg, #b91c1c, #dc2626); }
.oaf-shop__closed { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #fef9c3; color: #854d0e; font-size: 14px; }
.oaf-shop__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.oaf-shop__trust li::before { content: '✓ '; color: #16a34a; font-weight: 700; }

.oaf-shop__bundle { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; margin-bottom: 26px;
  background: #0d1226; color: #fff; box-shadow: 0 18px 40px -24px rgba(13,18,38,.6); }
.oaf-shop__bundle img { width: 100%; height: 100%; object-fit: cover; }
.oaf-shop__bundle .oaf-shop__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.oaf-shop__bundle h2 { margin: 0; font-size: 28px; line-height: 1.15; color: #fff; }
.oaf-shop__bundle p { margin: 0; color: #cbd5e1; }
.oaf-shop__bundle .oaf-shop__price { font-size: 30px; color: #fff; }
.oaf-shop__bundle .oaf-shop__price s { color: #94a3b8; font-size: 20px; }
.oaf-shop__bundle .oaf-shop__value { font-size: 14px; color: #fbbf24; font-weight: 700; }
.oaf-shop__bundle .oaf-shop__more { color: #c7d2fe; }

.oaf-shop__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.oaf-shop__card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff;
  transition: box-shadow .15s, transform .15s; }
.oaf-shop__card:hover { box-shadow: 0 14px 30px -20px rgba(24,24,27,.35); transform: translateY(-2px); }
.oaf-shop__card .oaf-shop__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.oaf-shop__fmt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.oaf-shop__card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.oaf-shop__card p { margin: 0; font-size: 14.5px; color: #3f3f46; flex: 1; }
.oaf-shop__price { font-size: 22px; }
.oaf-shop__price s { color: var(--muted); font-size: 16px; font-weight: 400; }
.oaf-shop__price b { font-weight: 800; }
.oaf-shop__card .oaf-shop__price s + b { color: var(--deal); }
.oaf-shop__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.oaf-shop__buy, .oaf-shop__checkout, .oaf-shop__mbuy { border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.oaf-shop__add, .oaf-shop__madd { border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; background: #fff; color: var(--ink); }
.oaf-shop__bundle .oaf-shop__add { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.oaf-shop__add.is-in { border-color: #16a34a; color: #15803d; }
.oaf-shop__more { font-size: 14px; color: var(--accent); text-decoration: underline; background: none; border: 0; padding: 0; }

.oaf-shop__fab { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: flex; align-items: center; gap: 8px; border: 0;
  border-radius: 999px; padding: 13px 20px; font-weight: 700; color: #fff; background: #111827; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.oaf-shop__fab.has-items { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.oaf-shop__count { background: #fff; color: #111827; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 13px; }
.oaf-shop__scrim { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 9991; }
.oaf-shop__drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 9992; background: #fff; transform: translateX(100%);
  transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.oaf-shop__drawer.is-open { transform: none; }
.oaf-shop__dhead { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.oaf-shop__dhead h3 { margin: 0; font-size: 20px; }
.oaf-shop__x { border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; }
.oaf-shop__lines { list-style: none; margin: 0; padding: 8px 20px; overflow: auto; flex: 1; }
.oaf-shop__lines li { display: grid; grid-template-columns: 56px 1fr auto 28px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.oaf-shop__lines img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.oaf-shop__lines .oaf-shop__lp s { color: var(--muted); font-size: 12.5px; }
.oaf-shop__lines button { border: 0; background: none; font-size: 20px; color: var(--muted); }
.oaf-shop__lines .oaf-shop__empty { display: block; color: var(--muted); text-align: center; padding: 30px 0; border: 0; }
.oaf-shop__dfoot { padding: 16px 20px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.oaf-shop__sum { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; }
.oaf-shop__hint { font-size: 13px; color: #92400e; }
.oaf-shop__hint:empty { display: none; }
.oaf-shop__small { font-size: 12.5px; color: var(--muted); text-align: center; }
.oaf-shop__checkout { width: 100%; padding: 14px; font-size: 16px; }

.oaf-shop__modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9993; width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.oaf-shop__modal .oaf-shop__x { position: absolute; right: 12px; top: 12px; }
.oaf-shop__mbody { padding: 0 24px 8px; }
.oaf-shop__mbody img { border-radius: 18px 18px 0 0; margin: 0 -24px 14px; width: calc(100% + 48px); max-width: none; }
.oaf-shop__mbody h3 { margin: 0 0 6px; font-size: 22px; }
.oaf-shop__mbody ul { padding-left: 20px; margin: 8px 0; }
.oaf-shop__mbody li { margin: 4px 0; font-size: 15px; }
.oaf-shop__mfoot { position: sticky; bottom: 0; background: #fff; padding: 14px 24px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.oaf-shop__mfoot [data-mprice] { margin-right: auto; font-size: 22px; }
.oaf-shop__mfoot [data-mprice] s { color: var(--muted); font-size: 16px; }

.oaf-shop__toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 9995;
  background: #111827; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; transition: .2s; max-width: calc(100vw - 30px); }
.oaf-shop__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.oaf-shop__toast.is-bad { background: #b91c1c; }

.oaf-shop__resend { margin-top: 30px; padding: 18px 20px; border-radius: 16px; background: var(--soft); scroll-margin-top: 90px; }
.oaf-shop__resend h3 { margin: 0 0 6px; font-size: 17px; }
.oaf-shop__resend p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.oaf-shop__resend .oaf-shop__row input { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.oaf-shop__resend output { display: block; margin-top: 8px; font-size: 14px; }

@media (max-width: 760px) {
  .oaf-shop__bundle { grid-template-columns: 1fr; }
  .oaf-shop__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .oaf-shop__drawer, .oaf-shop__card, .oaf-shop__toast { transition: none; } }
