/* Shop page: every edition of Scarlet Ray in one place */
.sh { flex-grow: 1; }

/* hero */
.sh-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(60% 90% at 85% 0%, rgba(200,50,58,.20), transparent 70%),
  radial-gradient(40% 70% at 0% 100%, rgba(200,50,58,.08), transparent 70%); }
.sh-hero-in { padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(56px, 7vw, 90px); }
.sh-h1 { margin: 18px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 6.4vw, 84px); line-height: 1.02; color: var(--ink); }
.sh-h1 i { display: block; color: var(--ink); text-shadow: 0 0 40px rgba(226,71,79,.45); }
.sh-lede { margin: 22px 0 0; max-width: 540px; font-family: var(--font-display); font-style: italic; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--ink-dim); }
.sh-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.sh-jump a { padding: 9px 16px; border: 1px solid rgba(244,234,210,.22); border-radius: 999px; font-family: var(--font-sans); font-size: 12px; letter-spacing: .06em; color: var(--ink); }
.sh-jump a:hover { opacity: 1; border-color: var(--ink); background: rgba(244,234,210,.05); }

/* sections */
.sh-sec { padding: clamp(64px, 8vw, 100px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 10px; }
.sh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sh-h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; color: var(--ink); }
.sh-grid { display: grid; gap: 22px; }
.sh-grid-e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-grid-p { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* cards */
.sh-card { position: relative; display: flex; border: 1px solid var(--line); background: #070605; scroll-margin-top: 24px; transition: border-color .3s ease; }
.sh-card:hover { border-color: rgba(244,234,210,.3); }
.sh-card-e { flex-direction: row; }
.sh-card-p { flex-direction: column; }
.sh-cover { position: relative; display: flex; align-items: center; justify-content: center; background: radial-gradient(80% 75% at 50% 42%, #fbf6ea, #ebe1c9 78%, #e0d4b8); }
/* the cover photos sit on white, so multiply melts them into the paper backdrop */
.sh-cover img { display: block; height: auto; mix-blend-mode: multiply; }
.sh-card-e .sh-cover { flex: 0 0 42%; padding: 20px 12px; border-right: 1px solid var(--line); }
.sh-card-e .sh-cover img { width: 100%; max-width: 250px; }
.sh-card-p .sh-cover { height: 330px; padding: 34px 20px 28px; border-bottom: 1px solid var(--line); }
.sh-card-p .sh-cover img { width: auto; max-width: 86%; max-height: 100%; }
.sh-card-p .sh-cover-plate { padding: 30px 20px; }
.sh-card-p .sh-cover-plate img { max-width: 62%; box-shadow: 0 16px 30px -14px rgba(60,40,20,.55); mix-blend-mode: normal; }
.sh-badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 10px; border-radius: 999px; font-family: var(--font-sans); font-weight: 600; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.sh-badge-po { background: #c8323a; color: #fff6ee; }
.sh-badge-now { background: #0a0908; color: var(--ink); }
.sh-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 28px 28px 26px; min-width: 0; }
.sh-tag { font-family: var(--font-sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #f0b8b0; }
.sh-title { margin: 14px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.05; color: var(--ink); }
.sh-title.sh-th { font-family: 'Trirong', var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.3; }
.sh-sub { margin-top: 4px; font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink-dim); }
.sh-desc { margin: 16px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-dim); }
.sh-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: auto; padding-top: 26px; }
.sh-price b { font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.sh-buy .pv-btn { padding: 14px 22px; }
.sh-buy .pv-btn:hover { opacity: .86; }
.sh-alt { align-self: flex-start; margin-top: 16px; font-size: 13px; color: var(--ink-dim); border-bottom: 1px solid rgba(244,234,210,.25); }
.sh-alt:hover { color: var(--ink); opacity: 1; }

/* the eBook: no picture, just words and two buttons */
.sh-eb { position: relative; padding: clamp(46px, 6vw, 72px) clamp(24px, 5vw, 64px); border: 1px solid var(--line); text-align: center;
  background: radial-gradient(55% 80% at 50% 0%, rgba(200,50,58,.16), transparent 70%), #070605; }
.sh-eb-line { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; color: var(--ink); }
.sh-eb-line i { color: var(--ink); text-shadow: 0 0 36px rgba(226,71,79,.5); }
.sh-eb-note { max-width: 520px; margin: 18px auto 0; font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1.55; color: var(--ink-dim); }
.sh-eb-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.sh-eb-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 260px; padding: 26px 34px 22px; border: 1px solid rgba(244,234,210,.32); border-radius: 2px;
  transition: border-color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease; }
.sh-eb-btn::before, .sh-eb-btn::after { content: ''; position: absolute; width: 9px; height: 9px; background: #e2474f; clip-path: path('M4.5 0C4.9 2.7 6.3 4.1 9 4.5C6.3 4.9 4.9 6.3 4.5 9C4.1 6.3 2.7 4.9 0 4.5C2.7 4.1 4.1 2.7 4.5 0Z'); opacity: 0; transition: opacity .3s ease; }
.sh-eb-btn::before { top: -5px; left: -5px; } .sh-eb-btn::after { bottom: -5px; right: -5px; }
.sh-eb-btn:hover, .sh-eb-btn:focus-visible { opacity: 1; border-color: var(--ink); background: rgba(244,234,210,.05); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(226,71,79,.7); outline: none; }
.sh-eb-btn:hover::before, .sh-eb-btn:hover::after, .sh-eb-btn:focus-visible::before, .sh-eb-btn:focus-visible::after { opacity: 1; }
.sh-eb-ed { font-family: var(--font-display); font-style: italic; font-size: 30px; line-height: 1.1; color: var(--ink); }
.sh-eb-ed.sh-th { font-family: 'Trirong', var(--font-display); font-style: normal; font-size: 26px; line-height: 1.3; }
.sh-eb-meta { display: flex; align-items: baseline; gap: 16px; }
.sh-eb-price { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--ink); font-variant-numeric: lining-nums; }
.sh-eb-price b { font-weight: 500; }
.sh-eb-go { font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #f0b8b0; }
.sh-eb-alts { margin: 26px 0 0; font-size: 13px; color: rgba(244,234,210,.35); }
.sh-eb-alts a { color: var(--ink-dim); border-bottom: 1px solid rgba(244,234,210,.22); }
.sh-eb-alts a:hover { color: var(--ink); opacity: 1; }
.lang-th .sh-eb-line { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.35; }
.lang-th .sh-eb-note { font-family: var(--font-sans); font-style: normal; font-size: 16px; line-height: 1.8; }
.lang-th .sh-eb-go { letter-spacing: .02em; font-size: 13px; }

/* region options (price.js marks the visitor's own region with .is-you) */
.sh-opts { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 22px; }
.sh-opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "r go" "p go"; align-items: center; gap: 2px 14px; padding: 13px 14px; border: 1px solid rgba(244,234,210,.16); border-radius: 2px; transition: border-color .25s ease, background .25s ease; }
.sh-opt:hover, .sh-opt:focus-visible { opacity: 1; border-color: var(--ink); background: rgba(244,234,210,.05); outline: none; }
.sh-opt-r { grid-area: r; font-family: var(--font-sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.sh-opt-p { grid-area: p; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.15; color: var(--ink); font-variant-numeric: lining-nums; }
.sh-opt-amz .sh-opt-p small { display: block; margin: 2px 0 0; }
.sh-opt-p small { margin-left: 8px; font-style: italic; font-weight: 400; font-size: 14px; color: var(--ink-dim); }
.sh-opt-go { grid-area: go; font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.sh-opt.is-you { border-color: rgba(226,71,79,.75); box-shadow: 0 0 0 1px rgba(226,71,79,.3), 0 12px 30px -16px rgba(226,71,79,.6); }
.sh-opt.is-you::before { content: 'Your region'; position: absolute; top: -8px; right: 12px; padding: 0 6px; background: #070605; font-family: var(--font-sans); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #f0b8b0; }
.sh-note { margin: 34px 0 0; font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--ink-dim); }
.sh-note a { color: var(--ink); border-bottom: 1px solid rgba(244,234,210,.35); }

/* Thai page */
.lang-th .pv-kicker, .lang-th .mc-nav-link, .lang-th .mc-nav-cta { letter-spacing: .04em; }
.lang-th .sh-h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.25; }
.lang-th .sh-h2 { line-height: 1.25; }
.lang-th .sh-lede, .lang-th .sh-sub, .lang-th .sh-note, .lang-th .sh-opt-p small { font-style: normal; }
.lang-th .sh-lede { font-family: var(--font-sans); font-size: 18px; line-height: 1.8; }
.lang-th .sh-desc { font-size: 15px; line-height: 1.8; }
.lang-th .sh-tag, .lang-th .sh-opt-r, .lang-th .sh-badge { letter-spacing: .06em; font-size: 11px; }
.lang-th .sh-opt-go { letter-spacing: .02em; font-size: 13px; }
.lang-th .sh-opt.is-you::before { content: 'แนะนำ'; letter-spacing: .04em; font-size: 11px; }

/* language switch (same as the other pages) */
.mc-lang { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 12px; letter-spacing: .1em; color: rgba(244,234,210,.35); }
.mc-lang a { padding: 6px 2px; color: var(--ink-dim); border-bottom: 1px solid transparent; }
.mc-lang a[aria-current="page"] { color: var(--ink); border-bottom-color: #e2474f; }
.mc-lang a:hover { color: var(--ink); }

@media (max-width: 1080px) {
  .sh-grid-p { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mc-lang { position: absolute; top: 14px; right: 16px; gap: 6px; }
  .mc-lang a { padding: 6px 4px; }
}
@media (max-width: 680px) {
  .sh-eb-btn { min-width: 0; width: 100%; box-sizing: border-box; }
  .sh-grid-p { grid-template-columns: 1fr; }
  .sh-card-e { flex-direction: column; }
  .sh-card-e .sh-cover { flex: none; padding: 30px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sh-card-e .sh-cover { padding: 10px 20px; }
  .sh-card-e .sh-cover img { max-width: 190px; }
  .sh-card-p .sh-cover { height: 250px; padding: 22px 20px; }
  .sh-body { padding: 24px 20px 22px; }
  .sh-head { margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) { .sh-card, .sh-opt, .sh-eb-btn { transition: none; } }
