/* Shop listing. Builds on course.css (.cp base, buttons) and --eh-* tokens. */
.sh-hero { background: var(--eh-accent-soft); border-bottom: 1px solid var(--eh-border); }
.sh-hero .cp-wrap { padding-top: 36px; padding-bottom: 36px; }
.sh-hero h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.sh-hero p { margin-top: 10px; color: var(--eh-muted); font-size: 17px; max-width: 56ch; }
.sh-search { margin-top: 22px; display: flex; gap: 10px; max-width: 640px; }
.sh-search label { flex: 1; position: relative; display: block; }
.sh-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--eh-muted); pointer-events: none; }
.sh-search input { width: 100%; height: 48px; padding: 0 14px 0 44px; border: 1px solid var(--eh-border); border-radius: 10px; background: var(--eh-bg); color: var(--eh-text); font: inherit; }
.sh-search input:focus-visible { outline: 2px solid var(--eh-accent); outline-offset: 1px; }

.sh-bar { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.sh-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-cats a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--eh-border); background: var(--eh-bg); font-weight: 600; font-size: 14.5px; color: var(--eh-muted); transition: background-color .15s ease, color .15s ease; }
.sh-cats a:hover { background: var(--eh-bg-soft); color: var(--eh-text); }
.sh-cats a[aria-current="true"] { background: var(--eh-accent); border-color: var(--eh-accent); color: var(--eh-accent-ink); }
.sh-sort { display: flex; align-items: center; gap: 10px; color: var(--eh-muted); font-size: 14.5px; }
.sh-sort select { height: 42px; padding: 0 12px; border: 1px solid var(--eh-border); border-radius: 10px; background: var(--eh-bg); color: var(--eh-text); font: inherit; }
.sh-count { margin-top: 18px; color: var(--eh-muted); font-size: 14.5px; }

.sh-grid { margin: 16px 0 72px; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.sh-card { display: flex; flex-direction: column; border: 1px solid var(--eh-border); border-radius: 14px; background: var(--eh-bg); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.sh-card:hover { transform: translateY(-4px); border-color: var(--eh-accent); box-shadow: var(--eh-shadow); }
.sh-img { display: block; aspect-ratio: 16 / 10; background: var(--eh-bg-soft); overflow: hidden; }
.sh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sh-tag { font-size: 12.5px; font-weight: 700; color: var(--eh-accent); }
.sh-body h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; margin: 0; }
.sh-body h2 a:hover { color: var(--eh-accent); }
.sh-tagline { color: var(--eh-muted); font-size: 14.5px; margin: 0; }
.sh-feats { display: grid; gap: 6px; font-size: 14px; margin: 0; padding: 0; list-style: none; }
.sh-feats li { display: flex; gap: 8px; align-items: flex-start; }
.sh-feats i { color: var(--eh-accent); font-size: 17px; margin-top: 2px; flex-shrink: 0; }
.sh-foot { margin-top: auto; padding-top: 14px; display: grid; gap: 12px; }
.sh-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.sh-price b { font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.sh-price s { color: var(--eh-muted); }
.sh-price em { font-style: normal; font-weight: 700; font-size: 14px; color: #15803d; }
:root[data-theme="dark"] .sh-price em { color: #4ade80; }
.sh-gst { width: 100%; color: var(--eh-muted); font-size: 13px; }
.sh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.sh-actions .cp-btn { height: 44px; padding: 0 12px; }
.sh-empty { margin: 48px 0 96px; padding: 48px 24px; text-align: center; border: 1px dashed var(--eh-border); border-radius: 14px; }
.sh-empty i { font-size: 40px; color: var(--eh-muted); }
.sh-empty h2 { margin: 12px 0 6px; font-size: 20px; }
.sh-empty p { color: var(--eh-muted); margin: 0 0 18px; }
@media (max-width: 520px) { .sh-search { flex-direction: column; } .sh-search .cp-btn { width: 100%; } .sh-sort { width: 100%; } .sh-sort select { flex: 1; } }

/* cart */
.sh-cart { margin: 32px 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.sh-lines { margin: 0; padding: 0; list-style: none; border: 1px solid var(--eh-border); border-radius: 14px; overflow: hidden; }
.sh-line { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 20px; padding: 20px; align-items: start; }
.sh-line + .sh-line { border-top: 1px solid var(--eh-border); }
.sh-line-img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--eh-bg-soft); }
.sh-line-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-line-main { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.sh-line-name { font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.sh-line-name:hover { color: var(--eh-accent); }
.sh-line-main form { margin: 4px 0 0; }
.sh-remove { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; margin-left: -10px; border: 0; border-radius: 10px; background: none; color: var(--eh-muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.sh-remove:hover { background: var(--eh-bg-soft); color: #b91c1c; }
:root[data-theme="dark"] .sh-remove:hover { color: #f87171; }
.sh-line-price { text-align: right; display: grid; gap: 2px; }
.sh-line-price b { font-size: 20px; letter-spacing: -.02em; }
.sh-line-price span { font-size: 13px; color: var(--eh-muted); }
.sh-free { color: #15803d; }
:root[data-theme="dark"] .sh-free { color: #4ade80; }
.sh-summary { position: sticky; top: calc(var(--eh-h) + 20px); display: grid; gap: 12px; padding: 24px; border: 1px solid var(--eh-border); border-radius: 14px; box-shadow: var(--eh-shadow); }
.sh-summary h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
.sh-summary dl { margin: 0 0 6px; display: grid; gap: 10px; }
.sh-summary dl div { display: flex; justify-content: space-between; gap: 12px; color: var(--eh-muted); }
.sh-summary dd { margin: 0; color: var(--eh-text); font-weight: 600; }
.sh-total { padding-top: 14px; border-top: 1px solid var(--eh-border); color: var(--eh-text) !important; font-weight: 700; font-size: 18px; }
.sh-total dd { font-size: 22px; letter-spacing: -.02em; }
.sh-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--eh-muted); display: flex; gap: 8px; align-items: flex-start; justify-content: center; }
.sh-note i { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 960px) { .sh-cart { grid-template-columns: minmax(0, 1fr); } .sh-summary { position: static; } }
@media (max-width: 560px) { .sh-line { grid-template-columns: 96px minmax(0, 1fr); } .sh-line-price { grid-column: 2; text-align: left; } }

/* checkout, pay, orders, success */
.sh-page { padding-bottom: 72px; }
.sh-steps { display: grid; gap: 20px; min-width: 0; }
.sh-panel { padding: 24px; border: 1px solid var(--eh-border); border-radius: 14px; }
.sh-panel h2 { margin: 0 0 16px; font-size: 18px; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; }
.sh-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sh-field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.sh-field input { height: 46px; padding: 0 12px; border: 1px solid var(--eh-border); border-radius: 10px; background: var(--eh-bg); color: var(--eh-text); font: inherit; font-weight: 400; }
.sh-field input:focus-visible { outline: 2px solid var(--eh-accent); outline-offset: 1px; }
.sh-hint { margin: 0 0 14px; color: var(--eh-muted); font-size: 14.5px; }
.sh-hint a { color: var(--eh-accent); font-weight: 700; }
.sh-who { margin: 0; display: flex; gap: 12px; align-items: center; }
.sh-who i { font-size: 36px; color: var(--eh-accent); }
.sh-err { margin-top: 32px; display: flex; gap: 12px; padding: 14px 18px; border-radius: 10px; border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b; }
.sh-err ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-weight: 600; font-size: 14.5px; }
.sh-err i { font-size: 22px; flex-shrink: 0; }
:root[data-theme="dark"] .sh-err { background: #2a1517; border-color: #7f1d1d; color: #fca5a5; }
.sh-err + .sh-cart { margin-top: 20px; }
.sh-review { margin: 0; padding: 0; list-style: none; display: grid; }
.sh-review li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.sh-review li + li { border-top: 1px solid var(--eh-border); }
.sh-review--box { width: 100%; margin: 16px 0 8px; padding: 6px 18px; border: 1px solid var(--eh-border); border-radius: 14px; text-align: left; }
.sh-review .sh-total { font-weight: 700; font-size: 17px; }

.sh-center { max-width: 480px; margin: 40px auto 72px; padding: 32px; border: 1px solid var(--eh-border); border-radius: 14px; box-shadow: var(--eh-shadow); display: grid; gap: 12px; justify-items: center; text-align: center; }
.sh-center--wide { max-width: 600px; }
.sh-center h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.sh-center > .cp-btn, .sh-center .sh-note { width: 100%; }
.sh-center-icon { font-size: 44px; color: var(--eh-accent); }
.sh-center-icon.sh-ok { color: #15803d; }
:root[data-theme="dark"] .sh-center-icon.sh-ok { color: #4ade80; }
.sh-amount { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.sh-center .sh-hint { margin: 0; }
.sh-actions--center { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

.sh-orders { margin: 32px 0 72px; display: grid; gap: 20px; }
.sh-order { border: 1px solid var(--eh-border); border-radius: 14px; overflow: hidden; }
.sh-order header { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding: 14px 20px; background: var(--eh-bg-soft); }
.sh-order header div { display: grid; gap: 2px; }
.sh-order header span { font-size: 12.5px; color: var(--eh-muted); }
.sh-order .sh-review { padding: 6px 20px; }
.sh-badge { margin-left: auto; font-style: normal; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--eh-accent-soft); color: var(--eh-accent); }
@media (max-width: 640px) { .sh-fields { grid-template-columns: 1fr; } .sh-center { margin-inline: 0; padding: 24px 20px; } }

/* ownership + access */
.sh-owned { background: var(--eh-accent-soft); color: var(--eh-accent); gap: 6px; cursor: default; }
.sh-owned-note { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14.5px; }
.sh-owned-note i { color: var(--eh-accent); font-size: 20px; flex-shrink: 0; }
.sh-access { margin-top: 32px; }
.sh-access h2, .sh-sub { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.sh-access small { color: var(--eh-muted); font-size: 13.5px; }
.sh-access .sh-badge { margin-left: 0; align-self: center; flex-shrink: 0; }
.sh-badge--off { background: var(--eh-bg-hover); color: var(--eh-muted); }
.sh-sub { margin-top: 32px; }
.sh-sub + .sh-orders { margin-top: 14px; }

.sh-order header .sh-badge { margin-left: auto; }
.sh-receipt { height: 36px; padding: 0 14px; font-size: 14px; background: var(--eh-bg); }

/* profile */
.sh-profile { margin: 32px 0 72px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.sh-id { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 28px 24px; border: 1px solid var(--eh-border); border-radius: 14px; }
.sh-id h2 { margin: 8px 0 0; font-size: 20px; letter-spacing: -.01em; }
.sh-id p { margin: 0; color: var(--eh-muted); overflow-wrap: anywhere; }
.sh-id small { color: var(--eh-muted); font-size: 13.5px; }
.sh-id .sh-badge { margin-left: 0; }
.sh-avatar { width: 88px; height: 88px; border-radius: 999px; display: grid; place-items: center; background: var(--eh-accent-soft); color: var(--eh-accent); font-size: 36px; font-weight: 800; }
.sh-ok { margin-top: 32px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 10px; border: 1px solid #86efac; background: #f0fdf4; color: #166534; font-weight: 600; }
.sh-ok i { font-size: 22px; flex-shrink: 0; }
:root[data-theme="dark"] .sh-ok { background: #10241a; border-color: #166534; color: #86efac; }
.sh-wide { grid-column: 1 / -1; }
.sh-field textarea { padding: 10px 12px; border: 1px solid var(--eh-border); border-radius: 10px; background: var(--eh-bg); color: var(--eh-text); font: inherit; font-weight: 400; resize: vertical; }
.sh-field textarea:focus-visible { outline: 2px solid var(--eh-accent); outline-offset: 1px; }
.sh-save { margin-top: 20px; min-width: 160px; }
.sh-save:disabled { opacity: .6; cursor: progress; }
.sh-panel .sh-review li { align-items: center; }
.sh-cta { height: 40px; padding: 0 16px; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 860px) { .sh-profile { grid-template-columns: minmax(0, 1fr); } }
.sh-field select { height: 46px; padding: 0 12px; border: 1px solid var(--eh-border); border-radius: 10px; background: var(--eh-bg); color: var(--eh-text); font: inherit; font-weight: 400; }
.sh-field select:focus-visible { outline: 2px solid var(--eh-accent); outline-offset: 1px; }

/* Upgrade nudge box (free plan). Prefix: nd- */
.nd { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin: 0 0 24px; padding: 22px 24px; border: 1px solid var(--eh-border); border-radius: 14px; background: var(--eh-accent-soft); }
.nd[hidden] { display: none; }
.nd h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
.nd p { margin: 0 0 8px; color: var(--eh-muted); }
.nd-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; }
.nd-list li { display: flex; gap: 8px; align-items: center; }
.nd-list i { color: var(--eh-accent); font-size: 18px; }
.nd-buy { display: grid; gap: 6px; justify-items: start; min-width: 220px; }
.nd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.nd-price b { font-size: 28px; letter-spacing: -.02em; line-height: 1; }
.nd-price s { color: var(--eh-muted); }
.nd-price em { font-style: normal; font-weight: 700; font-size: 13px; color: #15803d; }
:root[data-theme="dark"] .nd-price em { color: #4ade80; }
.nd-buy small { color: var(--eh-muted); font-size: 12.5px; }
.nd-buy .cp-btn { height: 44px; }
.nd-x { position: absolute; top: 8px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--eh-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.nd-x:hover { background: var(--eh-bg-soft); color: var(--eh-text); }
@media (max-width: 720px) { .nd { grid-template-columns: 1fr; padding: 18px 16px; } }
.lc-stats + .nd { margin-top: 24px; }
