.mod-shop { margin-top: 28px; }
.mod-lede { max-width: 640px; color: #4b5563; margin: 0; }

/* Shop layout: filters left, grid right */
.mod-shop { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
.mod-filters { position: sticky; top: 90px; background: #fff; border: 1px solid #eadfcf; border-radius: 18px; padding: 16px; }
.mod-fh { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin: 0 0 8px; }
.mod-fh:not(:first-child) { margin-top: 18px; }
.mod-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mod-chips button { height: 42px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mod-chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.mod-chips .chip-count { margin-left: 4px; opacity: .6; font-size: 12px; }

.mod-search { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.mod-search .blog-search { width: 100%; }
.mod-search button { font: inherit; font-size: 14px; font-weight: 700; border: 0; border-radius: 999px; height: 42px; padding: 0 22px; background: var(--ink); color: #fff; cursor: pointer; }
.mod-search button:hover { opacity: .85; }
.mod-countrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.mod-count { color: #6b7280; font-size: .9rem; margin: 0 0 0 auto; white-space: nowrap; }
.mod-countrow .mod-note { order: -1; }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.mod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #eadfcf; border-radius: 18px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.mod-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27, 35, 64, .08); }
.mod-card[hidden] { display: none; }
.mod-cover { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; color: #fff; }
.mod-cover-no { font-family: "Fredoka", sans-serif; font-size: 3.4rem; font-weight: 700; line-height: 1; }
.mod-cover-sub { position: absolute; top: 10px; left: 12px; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.22); padding: 3px 9px; border-radius: 999px; }
.mod-cover-tag { position: absolute; bottom: 10px; left: 12px; font-size: .8rem; font-weight: 700; opacity: .9; }
.mc-blue { background: linear-gradient(135deg, #5866EF, #3B49DF); }
.mc-orange { background: linear-gradient(135deg, #F5A524, #F28B22); }
.mc-green { background: linear-gradient(135deg, #2BA36B, #14794A); }
.mc-pink { background: linear-gradient(135deg, #F0758C, #E5536F); }
.mc-purple { background: linear-gradient(135deg, #9B6CF0, #7344D6); }
.mc-dark { background: linear-gradient(135deg, #2C3558, #1B2340); }
.mc-dark .mod-cover-no { font-size: 2.6rem; }
.mod-body { display: flex; flex-direction: column; flex: 1; padding: 14px; gap: 6px; }
.mod-body h3 { font-size: .98rem; line-height: 1.35; margin: 0; }
.mod-meta { margin: 0; font-size: .82rem; color: #6b7280; }
.mod-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mod-price { font-weight: 800; color: #14794A; }
.mod-dl { font-weight: 700; font-size: .88rem; color: #fff; background: #F28B22; border-radius: 999px; padding: 7px 14px; text-decoration: none; white-space: nowrap; }
.mod-dl:hover { background: #d97512; }
.mod-empty { color: #6b7280; padding: 24px 0; }

.mod-cta { margin-top: 28px; background: #FFF4E0; border-radius: 18px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.mod-cta p { margin: 0; flex: 1 1 260px; }
.mod-cta a { background: #F28B22; color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.mod-note { margin: 0; padding: 5px 12px; border-radius: 999px; background: #e3f4ea; color: #2c7a52; font-size: .82rem; font-weight: 600; }

@media (max-width: 760px) {
  .mod-shop { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mod-shop > * { min-width: 0; }
  .mod-filters { position: static; padding: 12px; }
  .mod-chips { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mod-fh:not(:first-child) { margin-top: 12px; }
  .mod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mod-cover-no { font-size: 2.6rem; }
  .mod-body { padding: 10px; }
  .mod-body h3 { font-size: .88rem; }
  .mod-foot { flex-direction: column; align-items: stretch; text-align: center; }
}
.mod-paid { border-color: #1b2340; }
.mod-paid .mod-cover-no { font-size: 2.4rem; }
.mod-paid .mod-price { color: #1b2340; }
.mod-buy { background: #25D366; }
.mod-buy:hover { background: #1da851; }
.mod-bundle { border-width: 2px; border-color: #F28B22; }
.mod-bundle .mod-cover { background: linear-gradient(135deg, #F5A524, #F28B22); }

/* Collapsible filter headings (js/modul.js). */
.mod-fh[role="button"] { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.mod-fh[role="button"]::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(2px) rotate(-135deg); transition: transform .15s; }
.mod-fh[aria-expanded="false"] { margin-bottom: 0; }
.mod-fh[aria-expanded="false"]::after { transform: translateY(-2px) rotate(45deg); }
.mod-chips[hidden] { display: none; }

/* Rating badge on the card cover, bottom right (js/modul.js) */
.mod-rate { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.mod-badge { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: #1b2340; font: inherit; font-size: .8rem; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.mod-badge .st { color: #F5B301; font-size: .95rem; }
.mod-badge.is-mine .st { color: #F28B22; }
.mod-badge:hover { background: #fff; }
.mod-badge:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mod-pop { position: absolute; right: 0; bottom: 36px; display: none; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 14px; background: #fff; color: #1b2340; box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: nowrap; }
.mod-rate.open .mod-pop { display: flex; }
.mod-stars { display: inline-flex; }
.mod-stars button { padding: 0 1px; border: 0; background: none; color: #d9d3c7; font-size: 22px; line-height: 1.2; cursor: pointer; }
.mod-stars button.on { color: #F5B301; }
.mod-stars:hover button { color: #F28B22; }
.mod-stars button:hover ~ button { color: #d9d3c7; }
.mod-stars button:focus-visible { outline: 2px solid #1b2340; outline-offset: 1px; border-radius: 4px; }
.mod-pop-txt { color: #6b7280; font-size: .72rem; font-weight: 600; }
