/**
 * Molly Bracken Journal (PrestaBlog theme integration)
 *
 * PrestaBlog registers modules/prestablog/views/css/blog{id_shop}.css; the file
 * does not exist in the module, so PrestaShop serves this theme copy instead.
 * Styles only target .mbj* classes rendered by the theme template overrides
 * (themes/mollybracken/modules/prestablog/views/templates/).
 */

.mbj {
  --mbj-black: #000;
  --mbj-text: #282828;
  --mbj-grey: #8b8b8b;
  --mbj-line: #e5e5e5;
  --mbj-gap: 32px;
  color: var(--mbj-text);
  font-family: Jost, sans-serif;
}

.mbj a { color: inherit; text-decoration: none; }
/* The theme forces p { font-size: 15px; color: #666 }: paragraphs follow their block here */
.mbj p:not([class]) { font-size: inherit; line-height: inherit; color: inherit; }
.mbj img { display: block; width: 100%; height: auto; }

/* ---------- Shared ---------- */

.mbj-meta {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mbj-grey);
}
.mbj-meta a:hover { color: var(--mbj-black); }
.mbj-meta__sep { margin: 0 8px; }

.mbj-section-title {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: var(--mbj-black);
}

.mbj-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
}

/* ---------- Card ---------- */

.mbj-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 12px;
  background: #f6f6f6;
}
.mbj-card__media img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.mbj-card:hover .mbj-card__media img { transform: scale(1.03); }
.mbj-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--mbj-black);
}
.mbj-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- List ---------- */

.mbj-list { max-width: 1140px; margin: 0 auto; padding: 16px 0 56px; }

.mbj-head { margin-bottom: 40px; text-align: center; }
.mbj-head__title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--mbj-black);
  text-transform: none;
}
.mbj-head__intro { max-width: 620px; margin: 0 auto; font-size: 15px; line-height: 1.625; color: var(--mbj-text); }
.mbj-head__intro p:last-child { margin-bottom: 0; }

.mbj-filters { margin-top: 20px; }
.mbj-filters ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin: 0; padding: 0; list-style: none; }
.mbj-filters a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mbj-grey);
}
.mbj-filters a:hover,
.mbj-filters a.is-active { color: var(--mbj-black); border-bottom-color: var(--mbj-black); }

.mbj-empty { text-align: center; color: var(--mbj-grey); }

.mbj-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; font-size: 14px; }
.mbj-pagination a,
.mbj-pagination span { min-width: 32px; padding: 6px 4px; text-align: center; color: var(--mbj-grey); }
.mbj-pagination a:hover { color: var(--mbj-black); }
.mbj-pagination .is-current { color: var(--mbj-black); border-bottom: 1px solid var(--mbj-black); }
.mbj-pagination__arrow { font-size: 20px; line-height: 1; }

/* ---------- Article ---------- */

.mbj-article { max-width: 1000px; margin: 0 auto; padding: 16px 0 0; }

.mbj-article__head {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--mbj-line);
}
.mbj-article__head--noimg { grid-template-columns: 1fr; }
.mbj-article__media { overflow: hidden; aspect-ratio: 4 / 5; background: #f6f6f6; }
.mbj-article__media img { height: 100%; object-fit: cover; }
.mbj-article__intro { max-width: 520px; margin: 0 auto; text-align: center; }
.mbj-article__title { margin: 0 0 16px; font-size: 30px; font-weight: 400; line-height: 1.2; color: var(--mbj-black); text-transform: none; }
.mbj-article__lead { font-size: 16px; line-height: 1.6; }
.mbj-article__lead p:last-child { margin-bottom: 0; }

.mbj-article__body { max-width: 680px; margin: 0 auto 56px; }
.mbj-content { font-size: 16px; line-height: 1.75; color: var(--mbj-text); }
/* #prestablogfont: beats the module's "#prestablogfont p { margin: 0 0 15px }" */
#prestablogfont.mbj-content p,
#prestablogfont.mbj-content ul,
#prestablogfont.mbj-content ol { margin: 0 0 20px; }
.mbj .mbj-content ul,
.mbj .mbj-content ol { padding-left: 20px; }
.mbj .mbj-content li { font-size: inherit; color: inherit; }
.mbj .mbj-content h2 { margin: 40px 0 14px; padding: 0; font-size: 22px; font-weight: 400; line-height: 1.25; color: var(--mbj-black); text-align: left; }
.mbj .mbj-content h3 { margin: 28px 0 10px; padding: 0; font-size: 18px; font-weight: 400; line-height: 1.3; color: var(--mbj-black); text-align: left; }
.mbj .mbj-content a { text-decoration: underline; text-underline-offset: 3px; }
#prestablogfont.mbj-content img { max-width: 360px; margin: 0 auto; }
#prestablogfont.mbj-content p:has(> img) { margin: 32px 0; }
/* The module's fancybox.js wraps every content image in a zoom link: images stay static here */
#prestablogfont.mbj-content a.fancybox { pointer-events: none; cursor: default; }
.mbj .mbj-content blockquote {
  margin: 40px 0;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid var(--mbj-line);
  border-bottom: 1px solid var(--mbj-line);
  font-size: 20px;
  line-height: 1.45;
  text-align: center;
  color: var(--mbj-black);
}
#prestablogfont.mbj-content blockquote p { margin: 0; }

/* Linked products */
.mbj-shop { margin: 0 0 56px; padding-top: 56px; border-top: 1px solid var(--mbj-line); }
.mbj-shop__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.mbj-product { display: block; text-align: center; }
.mbj-product__media { display: block; overflow: hidden; aspect-ratio: 2 / 3; margin-bottom: 12px; background: #f6f6f6; }
.mbj-product__media img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.mbj-product:hover .mbj-product__media img { transform: scale(1.03); }
.mbj-product__name { display: block; margin-bottom: 4px; font-size: 14px; line-height: 1.4; color: var(--mbj-black); }
.mbj-product__price { display: block; font-size: 14px; color: var(--mbj-text); }
.mbj-product__price s { margin-right: 6px; color: var(--mbj-grey); }

/* Share */
.mbj-share { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 0 auto 48px; }
.mbj-share__label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--mbj-grey); }
.mbj-share ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.mbj-share a { display: flex; color: var(--mbj-black); transition: opacity .2s ease; }
.mbj-share a:hover { opacity: .6; }
.mbj-share svg { fill: currentColor; }

/* Previous / next */
.mbj-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 0 0 72px;
  padding: 32px 0;
  border-top: 1px solid var(--mbj-line);
  border-bottom: 1px solid var(--mbj-line);
}
.mbj-prevnext__next { text-align: right; }
.mbj-prevnext__label { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--mbj-grey); }
.mbj-prevnext__title { font-size: 16px; color: var(--mbj-black); }
.mbj-prevnext a:hover .mbj-prevnext__title { text-decoration: underline; text-underline-offset: 4px; }

.mbj-related { max-width: 1000px; margin: 0 auto 64px; }

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .mbj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mbj-shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mbj-article__head { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 32px; }
  .mbj-article__title,
  .mbj-head__title { font-size: 26px; }
}

@media (max-width: 767px) {
  .mbj-grid,
  .mbj-shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .mbj-article__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; padding-bottom: 40px; }
  .mbj-article__media { width: 100%; max-width: 280px; margin: 0 auto; }
  .mbj-article__intro { max-width: none; }
  .mbj-head { margin-bottom: 28px; }
  .mbj-filters ul { gap: 8px 20px; }
  .mbj-card__title { font-size: 15px; }
  .mbj-card .mbj-meta { font-size: 10px; letter-spacing: 1px; }
  .mbj-card .mbj-meta__sep { margin: 0 4px; }
  #prestablogfont.mbj-content img { max-width: 100%; }
  .mbj-prevnext { grid-template-columns: 1fr; gap: 20px; }
  .mbj-prevnext__next { text-align: left; }
}
