/* GrindSpot — Shop (/shop). Scoped under .sh. Mockup: docs/shop-mockup.html */
.sh { --ink: #0B2D5C; --teal: #12A8A0; --teal-dk: #0E8A83; --teal-txt: #0E9C95; --body: #16324F; --grey: #5B6B7F;
      --cloud: #EEF5F9; --line: #DCE6EE; --mint: #E3F6F4; --sun: #FFF4D6; --sun-ink: #8A5A00;
      background: #fff; color: var(--body); font-family: 'Inter', sans-serif; }
.sh h1, .sh h2, .sh h3 { font-family: 'Poppins', sans-serif; color: var(--ink); margin: 0; letter-spacing: -0.3px; }
.sh a { color: var(--teal-dk); }
.sh .sh-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.sh .sh-preview { background: #FFF7E6; border-bottom: 1px solid #F3D9A4; color: #7A5300; font-size: 0.85rem; padding: 0.55rem 16px; text-align: center; }
.sh [hidden] { display: none !important; }

.sh-band { font-size: 0.9rem; border-bottom: 1px solid; }
.sh-band .sh-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.sh-band.on { background: var(--mint); border-color: #BFE7E3; color: var(--ink); }
.sh-band.on b { color: var(--teal-dk); }
.sh-band.off { background: var(--sun); border-color: #F0DDA6; color: var(--sun-ink); }
.sh-band .sh-cart-link { margin-left: auto; font-weight: 700; text-decoration: none; }

.sh-pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border-radius: 999px; padding: 0.6rem 1.25rem;
           font: 600 0.9rem 'Poppins', sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.sh-pill.teal { background: var(--teal); color: #fff !important; }
.sh-pill.line { background: #fff; color: var(--teal-dk) !important; border: 2px solid var(--teal); }
.sh-pill.ink { background: var(--ink); color: #fff !important; }
.sh-pill[disabled] { opacity: 0.55; cursor: not-allowed; }

/* home */
.sh-hero { background: var(--cloud); position: relative; overflow: hidden; }
.sh-hero::before { content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: rgba(18,168,160,0.14); }
.sh-hero .sh-wrap { position: relative; padding-top: 2.4rem; padding-bottom: 2rem; }
.sh-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; max-width: 760px; }
.sh-hero .sub { font: 600 1.05rem 'Poppins', sans-serif; color: var(--teal-txt); margin: 0.5rem 0 1.2rem; }
.sh-search { display: flex; max-width: 640px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 0.35rem 0.35rem 0.35rem 1.1rem; }
.sh-search input { flex: 1; border: 0; outline: 0; font: 500 0.98rem 'Inter', sans-serif; min-width: 0; background: transparent; }
.sh-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; padding: 1.8rem 0 3rem; }
.sh-layout > * { min-width: 0; }
@media (max-width: 900px) { .sh-layout { grid-template-columns: 1fr; } }
.sh-filters h3 { font: 700 0.78rem 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); margin: 1.2rem 0 0.4rem; }
.sh-filters h3:first-child { margin-top: 0; }
.sh-filters a { display: block; padding: 0.22rem 0.6rem; border-radius: 8px; font-size: 0.9rem; color: var(--body); text-decoration: none; }
.sh-filters a:hover { background: var(--cloud); }
.sh-filters a.on { background: var(--mint); color: var(--teal-dk); font-weight: 700; }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.sh-head select { border: 1.5px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem; font: 500 0.88rem 'Inter', sans-serif; background: #fff; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.sh-card { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column;
           text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.sh-card:hover { border-color: var(--teal); box-shadow: 0 8px 22px rgba(11,45,92,0.08); }
.sh-cover { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; position: relative; }
.sh-cover img { width: 46%; height: auto; }
.sh-chip { position: absolute; top: 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.55rem; }
.sh-chip.fmt { left: 10px; background: #fff; color: var(--ink); }
.sh-chip.src { right: 10px; }
.sh-chip.grindspot { background: var(--ink); color: #fff; }
.sh-chip.tutor { background: var(--teal); color: #fff; }
.sh-chip.owned { left: 10px; top: auto; bottom: 10px; background: var(--mint); color: var(--teal-dk); }
.sh-card .body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.sh-card .meta { font-size: 0.76rem; color: var(--grey); }
.sh-card b.t { font: 600 0.98rem 'Poppins', sans-serif; color: var(--ink); line-height: 1.3; }
.sh-price { margin-top: auto; padding-top: 0.5rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.sh-price .now { font: 700 1.15rem 'Poppins', sans-serif; color: var(--ink); }
.sh-price .was { text-decoration: line-through; color: var(--grey); font-size: 0.85rem; }
.sh-price .tag { background: var(--mint); color: var(--teal-dk); font-weight: 700; font-size: 0.72rem; border-radius: 999px; padding: 0.1rem 0.5rem; }
.sh-empty { border: 1.5px dashed var(--line); border-radius: 16px; padding: 2.4rem 1.2rem; text-align: center; color: var(--grey); }

/* product */
.sh-crumbs { font-size: 0.82rem; color: var(--grey); padding: 1.1rem 0 0; }
.sh-crumbs a { color: var(--grey); }
.sh-product { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 2.2rem; padding: 1.2rem 0 3rem; }
.sh-product > * { min-width: 0; }
@media (max-width: 920px) { .sh-product { grid-template-columns: 1fr; } }
.sh-gallery { border-radius: 18px; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.sh-gallery img { width: 26%; }
.sh-box { border: 1.5px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; margin-bottom: 1rem; background: #fff; }
.sh-box h2 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.sh-box ul { margin: 0; padding-left: 1.1rem; }
.sh-box li { margin: 0.25rem 0; }
.sh-box p { margin: 0 0 0.6rem; }
.sh-buy { position: sticky; top: calc(var(--nav-height, 70px) + 1rem); }
.sh-buy .p-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0.5rem 0 0.2rem; line-height: 1.15; }
.sh-buy .p-sub { color: var(--grey); margin: 0 0 1rem; font-size: 0.92rem; }
.sh-buy .now { font: 800 2rem 'Poppins', sans-serif; color: var(--ink); }
.sh-buy .was { text-decoration: line-through; color: var(--grey); margin-left: 0.4rem; }
.sh-buy .save { display: inline-block; background: var(--mint); color: var(--teal-dk); font-weight: 700; font-size: 0.82rem; border-radius: 999px; padding: 0.2rem 0.65rem; margin: 0.3rem 0 0.9rem; }
.sh-buy form, .sh-buy > .sh-pill { margin: 0.5rem 0 0; }
.sh-buy form .sh-pill, .sh-buy > .sh-pill { width: 100%; }
.sh-buy small { display: block; color: var(--grey); font-size: 0.8rem; margin-top: 0.8rem; line-height: 1.5; }
.sh-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.86rem; margin-top: 1rem; }
.sh-facts span { color: var(--grey); }
.sh-src-inline { display: inline-block; border-radius: 999px; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.55rem; }

/* cart */
.sh-cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; padding: 1.4rem 0 3rem; }
.sh-cart > * { min-width: 0; }
@media (max-width: 920px) { .sh-cart { grid-template-columns: 1fr; } }
.sh-line { display: flex; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.sh-line .ic { width: 64px; height: 52px; border-radius: 10px; background: var(--cloud); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sh-line .ic img { width: 34px; }
.sh-line .info { flex: 1; min-width: 0; }
.sh-line .info a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
.sh-line .info small { color: var(--grey); }
.sh-line .amt { text-align: right; white-space: nowrap; }
.sh-line .amt b { color: var(--ink); display: block; }
.sh-line .amt s { color: var(--grey); font-size: 0.82rem; }
.sh-line form { margin: 0; }
.sh-line .rm { background: none; border: 0; color: var(--grey); cursor: pointer; font-size: 0.82rem; text-decoration: underline; padding: 0; }
.sh-summary { border: 1.5px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; position: sticky; top: calc(var(--nav-height, 70px) + 1rem); }
.sh-summary .row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.93rem; }
.sh-summary .row.disc { color: var(--teal-dk); font-weight: 600; }
.sh-summary .row.total { border-top: 1.5px solid var(--line); margin-top: 0.4rem; padding-top: 0.7rem; font: 700 1.15rem 'Poppins', sans-serif; color: var(--ink); }
.sh-summary .sh-pill { width: 100%; margin-top: 0.9rem; }
.sh-summary small { display: block; color: var(--grey); font-size: 0.8rem; margin-top: 0.7rem; line-height: 1.5; }
.sh-waive { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.82rem; line-height: 1.45; margin-top: 0.9rem; color: var(--body); cursor: pointer; }
.sh-waive input { margin-top: 0.2rem; accent-color: var(--teal); flex-shrink: 0; }
.sh-thanks { max-width: 640px; margin: 3rem auto; text-align: center; }
.sh-thanks h1 { font-size: 2rem; margin-bottom: 0.6rem; }
.sh-thanks p { color: var(--grey); }

/* phones: filters as a horizontal strip, the buy box before the description */
@media (max-width: 900px) {
  .sh-filters { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.4rem; -webkit-overflow-scrolling: touch; }
  .sh-filters h3 { display: none; }
  .sh-filters a { white-space: nowrap; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; flex-shrink: 0; }
  .sh-filters a.on { border-color: var(--teal); }
  .sh-product > aside { order: -1; }
  .sh-buy { position: static; }
  .sh-gallery { aspect-ratio: 16/7; }
}
.sh { overflow-x: clip; }

/* purchases, tutor area, forms (v2) */
.sh-owned { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.sh-owned-item { margin: 0; }
.sh-owned-top { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.6rem; }
.sh-owned-top b { display: block; color: var(--ink); font-family: 'Poppins', sans-serif; }
.sh-owned-top small { color: var(--grey); font-size: 0.8rem; }
.sh-owned-ic { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sh-owned-ic img { width: 34px; }
.sh-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.sh-files li { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.9rem; }
.sh-files .sh-open { font-weight: 600; }
.sh-files .sh-dl { margin-left: auto; font-size: 0.8rem; color: var(--grey) !important; }
.sh-fkind { font-size: 0.66rem; font-weight: 800; border-radius: 6px; padding: 0.1rem 0.4rem; background: var(--cloud); color: var(--ink); }
.sh-fkind.audio { background: #ECE5FE; color: #5B3FB4; }
.sh-fkind.video { background: #FCE1EF; color: #A0306B; }
.sh-orders { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sh-orders th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey); padding: 0.5rem; border-bottom: 1.5px solid var(--line); }
.sh-orders td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sh-h2 { font-size: 1.15rem; margin: 1.8rem 0 0.8rem; }
.sh-stats { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0 0.4rem; }
.sh-stats > div { border: 1.5px solid var(--line); border-radius: 14px; padding: 0.8rem 1.2rem; min-width: 130px; }
.sh-stats b { display: block; font: 700 1.3rem 'Poppins', sans-serif; color: var(--ink); }
.sh-stats span { font-size: 0.78rem; color: var(--grey); font-weight: 600; }
.sh-st { display: inline-block; border-radius: 999px; font-size: 0.72rem; font-weight: 700; padding: 0.12rem 0.55rem; }
.sh-st.published { background: var(--mint); color: var(--teal-dk); }
.sh-st.draft { background: var(--sun); color: var(--sun-ink); }
.sh-st.review { background: #E4F1FA; color: #1F6E9A; }
.sh-st.rejected { background: #FDECEC; color: #991b1b; }
.sh-st.archived { background: #EEF2F6; color: var(--grey); }
.sh-pay { font-size: 0.8rem; font-weight: 700; }
.sh-pay.paid { color: var(--teal-dk); }
.sh-pay.pending, .sh-pay.none { color: var(--sun-ink); }
.sh-pay.failed { color: #991b1b; }
.sh-alert { background: var(--sun); border: 1px solid #F0DDA6; color: var(--sun-ink); border-radius: 12px; padding: 0.7rem 1rem; margin: 0.6rem 0; font-size: 0.9rem; }
.sh-err { background: #FDECEC; border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: 0.7rem 1rem; margin: 0.6rem 0; font-weight: 600; }
.sh-note-bad { background: #FDECEC; color: #991b1b; border-radius: 8px; padding: 0.35rem 0.6rem; font-size: 0.82rem; margin-top: 0.3rem; }
.sh-form-wrap { max-width: 980px; padding-top: 1.4rem; padding-bottom: 3rem; }
.sh-back { font-size: 0.85rem; color: var(--grey) !important; text-decoration: none; }
.sh-form fieldset { border: 0; padding: 0; margin: 1rem 0 0; }
.sh-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
.sh-grid2 .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .sh-grid2 { grid-template-columns: 1fr; } }
.sh-form label { display: block; font-weight: 700; font-size: 0.84rem; color: var(--body); margin-bottom: 0.3rem; }
.sh-form small { display: block; color: var(--grey); font-size: 0.78rem; margin-top: 0.25rem; }
.sh-form input[type=text], .sh-form input[type=number], .sh-form select, .sh-form textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.6rem 0.75rem; font: 500 0.92rem 'Inter', sans-serif; background: #fff; }
.sh-form textarea { min-height: 110px; resize: vertical; }
.sh-form .sh-check { font-weight: 500; display: flex; gap: 0.5rem; align-items: flex-start; }
.sh-form .sh-check input { margin-top: 0.2rem; accent-color: var(--teal); }
.sh-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.sh-linkbtn { background: none; border: 0; color: #B91C1C; cursor: pointer; font-size: 0.82rem; text-decoration: underline; padding: 0; }
.sh-for { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; background: var(--cloud); border-radius: 14px; padding: 0.8rem 1rem; margin: 0.8rem 0 0.4rem; }
.sh-for label { font-weight: 700; color: var(--ink); }
.sh-for select { border: 1.5px solid var(--line); border-radius: 10px; padding: 0.45rem 0.7rem; font: 500 0.92rem 'Inter', sans-serif; background: #fff; }
.sh-for small { flex-basis: 100%; color: var(--grey); font-size: 0.8rem; }
.sh-chip.partner { background: #fff; color: var(--ink); border: 1px solid var(--line); }
