/* =====================================================================
 * st-0082-component-forge.css — Forge on the public site (component 82).
 * Attached to components 78 (commissions), 79 (press), 80 (merch) and
 * 81 (creators). Builds on st-entity.css (sliders, tags) and the overview CSS
 * (component 55). The CARDS (also merch/press cards outside the Forge) live in
 * st-global-styling.css (block "FORGE CARDS").
 * Fonts: headings / titles / prices / buttons in the heading family (Bookmania),
 * everything else in the text family (Franklin Gothic).
 * ===================================================================== */

.entry-content {
  overflow-x: unset !important;
}

/* ---------- fonts: every Forge front-end text in one of the two families ---------- */
.st-fitem, .st-fitem__info, .st-fitem__gallery, .st-freq, .st-freviews, .stf-cart__panel, .stf-cart__fab, .stf-cartpage {
  font-family: var(--main-text-font-family);
}
.st-fitem input, .st-fitem select, .st-fitem textarea, .st-fitem button,
.st-freq input, .st-freq select, .st-freq textarea, .stf-cart__panel button, .stf-cart__panel input { font-family: var(--main-text-font-family); }
.st-fitem__title, .st-fitem__price, .st-fitem__acc-head, .stf-cart__head h2, .stf-cart__sum, .st-fitem__checkout-title, .st-fitem__thanks h2,
.st-fitem__cta-btn, .stf-cartpage__title { font-family: var(--main-heading-font-family); }

/* ---------- item page ---------- */
.st-fitem { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 48px);
  max-width: var(--main-max-width, 1200px); margin: 0 auto var(--main-section-margin-bottom, 60px); padding: 0 var(--main-side-padding, 20px); align-items: start; }
.st-fitem__gallery { position: sticky; top: 20px; min-width: 0; }
.st-fitem__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; background: #f6f1ec; scrollbar-width: none; aspect-ratio: 0.9; }
.st-fitem__track::-webkit-scrollbar { display: none; }
.st-fitem__slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.st-fitem__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* thumbnails: a thin scrollbar like the overview's sidebar filters */
.st-fitem__thumbs { display: flex; gap: 8px; margin-top: 10px; padding-bottom: 6px; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: rgba(26,15,8,.22) transparent; }
.st-fitem__thumbs::-webkit-scrollbar { height: 6px; background: transparent; }
.st-fitem__thumbs::-webkit-scrollbar-track { background: transparent; border-radius: 10px; }
.st-fitem__thumbs::-webkit-scrollbar-thumb { background: rgba(26,15,8,.18); border-radius: 10px; }
.st-fitem__thumbs:hover::-webkit-scrollbar-thumb { background: rgba(26,15,8,.32); }
.st-fitem__thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 1px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .7; transition: opacity .15s, border-color .15s; }
.st-fitem__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-fitem__thumb.is-on, .st-fitem__thumb:hover { opacity: 1; border-color: #1f0f07; }
.st-fitem__info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
p.st-fitem__eyebrow { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.st-fitem__title { margin: 0; font-size: var(--main-heading-font-size, 40px); line-height: 1.05; }
p.st-fitem__by { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-fitem__by a { color: inherit; font-weight: 600; }
p.st-fitem__price { margin: 4px 0 0; font-size: 28px; font-weight: 700; }
.st-fitem__price small { font-family: var(--main-text-font-family); font-size: 13px; font-weight: 400; opacity: .7; margin-left: 6px; }
p.st-fitem__summary { margin: 0 0 15px 0; font-size: 17px; line-height: 1.5; }
.st-fitem__choice { display: grid; gap: 6px; }
.st-fitem__label { font-weight: 600; font-size: 14px; }
input.st-fitem__select, .st-fitem__select { height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid #d9d2cb; background: #fff; font-size: 15px; max-width: 360px; }
.st-fitem__note { padding: 10px 12px; border-radius: 10px; background: #f6f1ec; font-size: 14px; }
.st-fitem__off { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fbeeec; color: #9c2b20; font-weight: 600; }
ul.st-fitem__facts { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid #ece5df; display: grid; gap: 8px; font-size: 15px; }
.st-fitem__facts li { display: flex; align-items: center; gap: 8px; }
.st-fitem__fact-icon { width: 18px; height: 18px; flex: none; opacity: .75; }
.st-fitem__fact-note { font-size: 13px; opacity: .7; }
.st-fitem__about { max-width: 820px; margin-left: auto; margin-right: auto; }
.st-fitem__desc { font-size: 16px; line-height: 1.65; }
.st-fitem__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.st-fitem__tags .st-fitem__label { margin-right: 6px; }

/* ---------- creator block on a profile ---------- */
.st-creator-block { scroll-margin-top: 20px; }

@media (max-width: 899px) {
  .st-fitem { grid-template-columns: minmax(0, 1fr); }
  .st-fitem__gallery { position: static; }
  .st-fitem__title { font-size: var(--main-heading-font-size-mobile, 30px); }
}

/* ---------- call to action ---------- */
.st-fitem__cta-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; padding: 14px 28px; border: 2px solid var(--main-button-color, #1b4621);
  border-radius: 10px; background: var(--main-button-color, #1b4621); color: #fff !important; font-weight: 600; font-size: 22px; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s; }
.st-fitem__cta-btn:hover, .st-fitem__cta-btn:focus-visible { background: rgb(21 57 26); border-color: rgb(21 57 26); }
.st-fitem__cta-btn[disabled] { opacity: .6; cursor: default; }
p.st-fitem__error { margin: 0; padding: 9px 12px; border-radius: 8px; background: #fbeeec; color: #9c2b20; font-size: 14px; }
.st-fitem__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.st-fitem__select.is-error, .st-fitem__textarea.is-error, .st-booking-form__input.is-error { box-shadow: 0 0 0 2px #c0392b !important; }

/* ---------- personalisation (Etsy style) ---------- */
.st-fitem__pers { display: flex; flex-direction: column; gap: 10px; }
.st-fitem__pers-add { align-self: flex-start; padding: 0; border: 0; background: none !important; font: inherit; font-weight: 600; color: inherit !important; cursor: pointer; }
.st-fitem__pers-add span { font-weight: 400; opacity: .7; }
.st-fitem__pers-field { display: grid; gap: 6px; }
.st-fitem__pers-field[hidden] { display: none; }
.st-fitem__pers-prompt { opacity: .8; line-height: 1.4; }
.st-fitem__textarea { width: 100%; max-width: 480px; padding: 10px 12px; border: 1px solid #d9d2cb; border-radius: 8px; background: #fff; font: inherit; font-size: 15px; resize: vertical; }
.st-fitem__pers-add[aria-expanded="true"] { opacity: .75; }

/* ---------- after checkout (old inline thanks; kept for links still around) ---------- */
.st-fitem__thanks { padding: 16px 18px; border-radius: 14px; background: #f6f1ec; }
.st-fitem__thanks h2 { margin: 0 0 6px; font-weight: 400; font-size: 26px; }
.st-fitem__thanks h3 { margin: 12px 0 6px; font-size: 15px; }
.st-fitem__thanks p { margin: 0 0 8px; }
.st-fitem__files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-fitem__files span, .st-fitem__ref { font-size: 13px; opacity: .7; }
.st-fitem__file { font-weight: 600; }

/* ---------- commission request form (the booking-form look, its own form) ---------- */
.st-freq { scroll-margin-top: 20px; }
.st-freq[hidden] { display: none; }
.st-freq__intro { margin: 0 0 16px; }
.st-freq__form { display: flex; flex-direction: column; gap: 15px; }
.st-freq__form.is-busy { opacity: .6; pointer-events: none; }
.st-freq__form[hidden] { display: none; }
.st-freq__area { height: 150px; border-radius: 5px; }
.st-freq__summary { position: relative; padding: 14px 16px; border-radius: 10px; background: #fff; border: 1px dashed #d9d2cb; }
.st-freq__summary dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.st-freq__summary dt { opacity: .7; }
.st-freq__summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.st-freq__change { position: absolute; top: 12px; right: 14px; font-size: 13px; }
.st-freq__sent { padding: 30px 10px; text-align: center; }
.st-freq__sent[hidden] { display: none; }
.st-freq__sent .st-booking-form__sent-title { margin: 0 0 10px; }

@media (max-width: 767px) {
  .st-fitem__cta-btn { width: 100%; }
  .st-freq__summary dl { grid-template-columns: 1fr; gap: 0; }
  .st-freq__summary dd { margin-bottom: 6px; }
}

/* ---------- merch ---------- */
.st-fitem__qty .st-fitem__select { max-width: 110px; }
.st-fitem__colour { font-weight: 400; }
.st-fitem__specs { white-space: pre-line; }

/* ---------- cart: drawer, button ---------- */
html.stf-cart-open { overflow: hidden; }
.stf-cart[hidden] { display: none; }
.stf-cart__backdrop { position: fixed; inset: 0; z-index: 99990; background: rgba(31,15,7,.35); opacity: 0; transition: opacity .2s; }
.stf-cart__panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 99991; width: min(440px, 100vw); display: flex; flex-direction: column; gap: 12px;
  padding: 20px; background: #fff; box-shadow: -10px 0 40px rgba(31,15,7,.18); transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; }
.stf-cart.is-open .stf-cart__backdrop { opacity: 1; }
.stf-cart.is-open .stf-cart__panel { transform: none; }
.stf-cart__head { display: flex; align-items: center; justify-content: space-between; }
.stf-cart__head h2 { margin: 0; font-weight: 400; font-size: 28px; }
.stf-cart__x { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 8px 6px; color: inherit; border: 1px solid grey; }
.stf-cart__msg { margin: 0; padding: 9px 12px; border-radius: 8px; background: #f6f1ec; font-size: 14px; }
.stf-cart__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; margin-bottom: 15px; }
.stf-cart__line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: start; transition: opacity .15s; }
.stf-cart__line.is-busy { opacity: .45; pointer-events: none; }
.stf-cart__line img, .stf-cart__noimg { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #f6f1ec; display: block; }
.stf-cart__info { display: grid; gap: 3px; min-width: 0; font-size: 15px; }
.stf-cart__info a { color: inherit; font-weight: 600; text-decoration: none; }
.stf-cart__info small { opacity: .7; }
.stf-cart__warn { color: #9c2b20; opacity: 1 !important; }
.stf-cart__qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.stf-cart__qty button[data-q] { width: 28px; height: 28px; border: 1px solid #d9d2cb; border-radius: 50%; background: #fff; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 0px 2px; color: black; }
.stf-cart__rm { margin-left: 6px; border: 0; background: none !important; padding: 0; font-size: 13px; cursor: pointer; color: inherit !important; opacity: .7; }
.stf-cart__rm:hover { opacity: 1; }
.stf-cart__price { white-space: nowrap; }
.stf-cart__foot { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid #ece5df; }
.stf-cart__sum { display: flex; justify-content: space-between; margin: 0; font-size: 19px; margin-bottom: 10px;}
.stf-cart__note { margin: 0; font-size: 13px; opacity: .7; line-height: 1.5; }
.stf-cart__go { width: 100%; text-decoration: none; }
.stf-cart__empty { margin: 10px 0; opacity: .75; }
.stf-cart__fab { position: fixed; right: 18px; bottom: 18px; z-index: 9990; width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: var(--main-button-color, #1b4621); color: #fff; box-shadow: 0 10px 26px rgba(31,15,7,.25); }
.stf-cart__fab[hidden] { display: none; }
.stf-cart__fab b { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e8a317; color: #1f0f07; font-size: 12px; line-height: 20px; }
.stf-cart__skeleton { display: grid; gap: 12px; }
.stf-cart__skeleton span { height: 72px; border-radius: 10px; background: linear-gradient(90deg, #f6f1ec, #efe8e1, #f6f1ec); background-size: 200% 100%; animation: stfsk 1.2s infinite linear; }
@keyframes stfsk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .stf-cart__panel, .stf-cart__backdrop { transition: none; } .stf-cart__skeleton span { animation: none; } }

/* ---------- reviews ---------- */
.st-freviews__avg { margin-left: 10px; font-size: .5em; font-family: var(--main-text-font-family); vertical-align: middle; opacity: .8; }
ul.st-freviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.st-freviews__item { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #ece5df; }
.st-freviews__head { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-freviews__head strong { font-family: var(--main-heading-font-family); font-weight: 400; font-size: 17px; }
.st-freviews__head time { font-size: 13px; opacity: .6; }
.st-freviews__stars { color: #e8a317; letter-spacing: 1px; }
.st-freviews__stars span { color: #d9d2cb; }
.st-freviews__body { margin: 0; line-height: 1.55; }
.st-freviews__tr { margin-top: 6px; padding: 0; border: 0; background: none; font-size: 13px; text-decoration: underline; cursor: pointer; color: inherit; opacity: .7; }

/* ---------- video in the gallery (never the first item) ---------- */
.st-fitem__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #f6f1ec; }
.st-fitem__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.st-fitem__thumb--video { position: relative; }
.st-fitem__thumb--video::after { content: ''; position: absolute; left: 7px; bottom: 7px; width: 0; height: 0;
  border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; filter: drop-shadow(0 0 2px rgba(0,0,0,.65)); }

/* ---------- gallery buttons, by-line, version / colour tiles, collapsible info ---------- */
.st-fitem__stage { position: relative; }
.st-fitem__gnav { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 2; }
.st-fitem__gbtn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.94) !important; color: #1f0f07 !important; box-shadow: 0 2px 10px rgba(31,15,7,.16); transition: transform .12s, background .12s; }
.st-fitem__gbtn:hover, .st-fitem__gbtn:focus-visible { background: #fff !important; }
.st-fitem__gbtn-icon { width: 20px; height: 20px; }

.st-fitem__by { display: flex; align-items: center; gap: 12px; margin: 2px 0; }
.st-fitem__by-pic { display: inline-flex; border-radius: 50%; }
.st-fitem__avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #e2d9d0; }
.st-fitem__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-fitem__avatar--s { background: #1f0f07; color: #fff; font-family: var(--main-heading-font-family, bookmania, serif); font-size: 24px; line-height: 1; }
.st-fitem__by-text { display: grid; gap: 1px; min-width: 0; }
p.st-fitem__by-name { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-fitem__by-name a { color: inherit; font-weight: 600; }
p.st-fitem__by-place { margin: 0; font-size: 13.5px; opacity: .7; }

.st-ctiles { position: relative; }
.st-ctiles__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 3px; }
.st-ctiles__track::-webkit-scrollbar { display: none; }
.st-ctiles__tile { flex: 0 0 64px; aspect-ratio: .9; border-radius: 8px; overflow: hidden; scroll-snap-align: start; background: #ece5df; transition: box-shadow .12s; }
.st-ctiles__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-ctiles__sw { display: block; width: 100%; height: 100%; background: var(--sw, #888); }   /* only without a cover */
.st-ctiles__tile:hover { box-shadow: 0 0 0 1px rgba(31,15,7,.45); }
.st-ctiles__tile.is-on { box-shadow: 0 0 0 1px #1f0f07; }
.st-ctiles__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #fff; color: #1f0f07; box-shadow: 0 2px 10px rgba(31,15,7,.18); cursor: pointer; padding: 0; }
.st-ctiles__nav[hidden] { display: none; }
.st-ctiles__nav--prev { left: -8px; } .st-ctiles__nav--next { right: -8px; }
.st-ctiles__icon { width: 18px; height: 18px; }

/* collapsible info (like the FAQ: plus / minus), separator lines; the body slides (component-82 script) */
.st-fitem__accs { margin-top: 6px; border-top: 1px solid #e6ddd5; }
.st-fitem__acc { border-bottom: 1px solid #e6ddd5; }
.st-fitem__acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 22px; line-height: 1.15; }
.st-fitem__acc-head::-webkit-details-marker { display: none; }
.st-fitem__acc-icon { position: relative; width: 16px; height: 16px; flex: none; }
.st-fitem__acc-icon::before, .st-fitem__acc-icon::after { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
.st-fitem__acc-icon::after { transform: rotate(90deg); }
.st-fitem__acc.is-open .st-fitem__acc-icon::after { transform: rotate(0deg); }
.st-fitem__acc-body { padding: 0 0 20px; }
.st-fitem__acc-body .st-fitem__desc { font-size: 15.5px; }
.st-fitem__tagrow { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 8px 16px; align-items: start; padding: 6px 0; }
.st-fitem__tagrow .st-fitem__label { padding-top: 6px; }
.st-fitem__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.st-fitem__pills .st-ehero__pill { text-decoration: none; }
@media (max-width: 599px) { .st-fitem__tagrow { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- reviews: the last collapsible in the info column ---------- */
.st-fitem__acc-head .st-fitem__acc-stars { margin-left: auto; margin-right: 14px; font-size: 18px; }
.st-fitem__acc-head > span:first-child { font-family: var(--main-heading-font-family); }
#reviews .st-freviews__list { gap: 0; }
#reviews .st-freviews__item { padding: 16px 0; border: 0; border-top: 1px solid #ece5df; border-radius: 0; background: none; display: grid; gap: 8px; }
#reviews .st-freviews__item:first-child { border-top: 0; padding-top: 0; }
.st-freviews__item .st-stars { font-size: 16px; }
.st-freviews__body { margin: 0; font-family: var(--main-text-font-family); font-size: 15.5px; line-height: 1.55; }
p.st-freviews__meta { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--main-text-font-family); font-size: 14px; }
.st-freviews__name { font-weight: 600; }
.st-freviews__meta time { opacity: .6; white-space: nowrap; }
.st-freviews__tr { justify-self: start; font-family: var(--main-text-font-family); }
