/* UpOnly Learning v289, Phase 2c Store: cleaner category pages (see store-2c.js). */
/* no testimonials above the products on a category page */
html.s2-kind .tst-mini { display: none !important; }

/* one compact filter bar: grade, subject and language as drop-downs */
#safilter .sa-grp.s2-done .chips, #safilter .sa-grp.s2-done .sgl, #safilter .sa-grp.s2-done #fsubj, #safilter .sa-grp.s2-done > .sa-gl { display: none !important; }
#safilter .s2fsel { display: grid; gap: 4px; }
#safilter .s2fsel > span, #sag-grade .fsel > span { font: 700 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#safilter .s2sel, #sag-grade select { min-width: 180px; min-height: 44px; border: 2px solid #d9e1ef; border-radius: 10px; padding: 0 12px; font: 600 15px var(--body); color: var(--ink); background: #fff; }
#sag-grade > .sa-gl { display: none !important; }

/* section bands: a plain heading instead of a dark banner */
.shop .sband { background: none !important; color: var(--ink) !important; padding: 8px 0 0 !important; border: 0 !important; box-shadow: none !important; grid-column: 1 / -1; }
.shop .sband h3 { color: var(--ink) !important; font: 800 24px/1.2 var(--display) !important; margin: 0 !important; }
.shop .sband p { color: var(--muted) !important; margin: 4px 0 0 !important; }
.shop .sband .sband-pill { display: none !important; }

/* product cards: same height, whole cover visible (never cut off), price and button at the bottom */
.shop .grid { align-items: stretch !important; }
.shop .item { display: flex !important; flex-direction: column !important; gap: 8px; border: 2px solid #d9e1ef !important; border-radius: 18px !important; background: #fff !important; box-shadow: none !important; padding: 0 0 16px !important; overflow: hidden; }
.shop .item > *:not(.covers) { margin-left: 16px !important; margin-right: 16px !important; }
.shop .item .covers { display: flex !important; justify-content: center; align-items: center; gap: 8px; background: #eef2f8; padding: 14px !important; margin: 0 0 4px !important; min-height: 230px; }
/* most workbook cover files are the top part of the cover (320x366); every cover gets that same frame so none looks cut off */
.shop .item .covers img { width: 175px !important; max-width: 100% !important; height: auto !important; aspect-ratio: 320 / 366; object-fit: cover !important; object-position: top center; border-radius: 6px; box-shadow: 0 8px 18px -8px rgba(21,35,60,.45); }
.shop .item .covers:has(img + img) img { width: 120px !important; }
.shop .item .cardh { font: 800 18px/1.25 var(--display) !important; margin-top: 4px !important; }
.shop .item .blurb, .shop .item .meta { font-size: 14px !important; color: var(--muted) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.shop .item .inside summary { font-size: 14.5px; font-weight: 700; }
.shop .item .s2look { font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.shop .item > .row { margin-top: auto !important; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.shop .item > .row .price { font: 800 22px/1 var(--display); color: var(--ink); }
@media (max-width: 700px) {
  .shop .item .covers { min-height: 0; padding: 10px !important; }
  .shop .item .covers img { width: 130px !important; }
  .shop .item > .row { flex-direction: column; align-items: stretch; }
}

/* inline filter rows on category pages: one bar of drop-downs */
.elx-chips.s2-hide { display: none !important; }
.cmp-filt:has(.s2in) { display: flex !important; flex-wrap: wrap; gap: 10px 14px; align-items: end; padding: 14px 16px; border: 2px solid #d9e1ef; border-radius: 14px; background: #f7f9fc; margin: 8px 0 14px; }
.cmp-filt:has(.s2in) .cmp-fl { display: contents !important; }
.cmp-filt .s2in { display: grid; gap: 4px; }
.cmp-filt .s2in > span { font: 700 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cmp-filt .s2in .s2sel { min-width: 170px; min-height: 44px; border: 2px solid #d9e1ef; border-radius: 10px; padding: 0 12px; font: 600 15px var(--body); color: var(--ink); background: #fff; }
@media (max-width: 700px) { .cmp-fl .s2in { flex: 1 1 140px; } .cmp-filt .s2in .s2sel { min-width: 0; width: 100%; } }

/* v290: complete Kindergarten covers (whole page, not cropped) */
.shop .item .covers img[src*="/books/covers/"] { width: auto !important; height: 200px !important; aspect-ratio: auto !important; object-fit: contain !important; }
@media (max-width: 700px) { .shop .item .covers img[src*="/books/covers/"] { height: 149px !important; } }
