/* JOIR'A Beauty blog — listing + detail */
.jb-blog-page { color: #3d3232; }

.jb-blog-hero {
  display: grid;
  gap: 28px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .jb-blog-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; }
}

.jb-blog-intro h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  color: #2c2424;
  font-family: var(--font-playfair, "Playfair Display"), Georgia, serif;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.jb-blog-intro .page-excerpt { margin-bottom: 22px; }
.jb-blog-stats {
  display: flex;
  gap: 28px;
}
.jb-blog-stats div { display: grid; gap: 2px; }
.jb-blog-stats strong {
  font-family: var(--font-playfair, "Playfair Display"), Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: #2c2424;
  line-height: 1;
}
.jb-blog-stats span {
  color: #8a7373;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.jb-blog-featured {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 2;
  background: #efe1df;
  color: #fff;
  text-decoration: none;
}
.jb-blog-featured img,
.jb-blog-featured-ph,
.jb-blog-featured-tint,
.jb-blog-featured-body {
  pointer-events: none;
}
.jb-blog-featured img,
.jb-blog-featured-ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.jb-blog-featured-ph {
  background: linear-gradient(135deg, #e8c9c6, #b5636c);
}
.jb-blog-featured-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 21, 22, .05) 20%, rgba(28, 21, 22, .72) 100%);
}
.jb-blog-featured-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 22px 24px;
  display: grid;
  gap: 8px;
}
.jb-blog-badge {
  justify-self: start;
  background: rgba(28, 21, 22, .72);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.jb-blog-featured-title {
  font-family: var(--font-playfair, "Playfair Display"), Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
}
.jb-blog-featured-meta {
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.jb-blog-featured:hover { color: #fff; }

.jb-blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 36px;
  padding: 8px;
  background: #fff;
  border: 1px solid #f0e4e2;
  border-radius: 999px;
}
@media (max-width: 700px) {
  .jb-blog-cats { border-radius: 18px; }
}
.jb-blog-cat {
  border-radius: 999px;
  padding: 8px 16px;
  color: #5c4f4f;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.jb-blog-cat:hover { color: #1c1516; background: #fbf6f4; }
.jb-blog-cat.is-on {
  background: #1c1516;
  color: #fff;
}

.jb-blog-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
}
.jb-blog-list-head h2 {
  margin: 0;
  color: #2c2424;
  font-family: var(--font-playfair, "Playfair Display"), Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 500;
}
.jb-blog-count {
  color: #8a7373;
  font-size: 13px;
  font-weight: 600;
}

.jb-blog-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .jb-blog-grid { grid-template-columns: 1fr 1fr; }
}

.jb-blog-card {
  background: #fff;
  border: 1px solid #f0e4e2;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.jb-blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f6ece8;
}
.jb-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.jb-blog-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  padding: 4px 10px;
  color: #1c1516;
  font-size: 11px;
  font-weight: 700;
}
.jb-blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  flex: 1;
}
.jb-blog-card-meta {
  margin: 0;
  color: #8a7373;
  font-size: 12px;
  font-weight: 600;
}
.jb-blog-card-body h3 {
  margin: 0;
  font-family: var(--font-playfair, "Playfair Display"), Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
}
.jb-blog-card-body h3 a { color: #2c2424; text-decoration: none; }
.jb-blog-card-body h3 a:hover { color: #b5636c; }
.jb-blog-card-body p {
  margin: 0;
  color: #6a5a5a;
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.jb-blog-more {
  margin-top: 6px;
  color: #b5636c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.jb-blog-more:hover { text-decoration: underline; }

.jb-blog-empty {
  background: #fff;
  border: 1px dashed #f0e4e2;
  border-radius: 16px;
  padding: 48px 20px;
  text-align: center;
  color: #6a5a5a;
}

.jb-blog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 32px 0 8px;
}
.jb-blog-pager a {
  color: #1c1516;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.jb-blog-pager a:hover { color: #b5636c; }
.jb-blog-pager span { color: #8a7373; font-size: 13px; }

.jb-blog-detail-hero h1 { max-width: 22ch; }
.jb-blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  color: #8a7373;
  font-size: 13px;
  font-weight: 600;
}
.jb-blog-detail-cover {
  aspect-ratio: 3 / 2;
  margin: 0 0 32px;
  overflow: hidden;
  border-radius: 22px;
  background: #efe1df;
}
.jb-blog-detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.jb-blog-summary {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 16px 18px;
  background: #fbf6f4;
  border-left: 4px solid #b5636c;
  border-radius: 0 12px 12px 0;
}
.jb-blog-summary span {
  display: block;
  margin-bottom: 6px;
  color: #b5636c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.jb-blog-summary p { margin: 0; color: #4a3d3d; font-size: 15px; line-height: 1.65; }

.jb-blog-content,
.jb-blog-body {
  max-width: 760px;
  margin: 0 auto 40px;
  color: #4a3d3d;
  font-size: 16px;
  line-height: 1.75;
}
.jb-blog-content h2,
.jb-blog-body h2 {
  margin: 1.7rem 0 .7rem;
  color: #2c2424;
  font-family: var(--font-playfair, "Playfair Display"), Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
}
.jb-blog-content h3,
.jb-blog-body h3 {
  margin: 1.3rem 0 .5rem;
  color: #2c2424;
  font-size: 1.08rem;
  font-weight: 650;
}
.jb-blog-content p,
.jb-blog-body p { margin: 0 0 1rem; }
.jb-blog-content ul, .jb-blog-content ol,
.jb-blog-body ul, .jb-blog-body ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.jb-blog-content li, .jb-blog-body li { margin-bottom: .4rem; }
.jb-blog-content a, .jb-blog-body a { color: #b5636c; font-weight: 600; text-decoration: none; }
.jb-blog-content a:hover, .jb-blog-body a:hover { text-decoration: underline; }
.jb-blog-content img, .jb-blog-body img {
  display: block; width: 100%; height: auto; border-radius: 12px; margin: 1.25rem 0;
}

.jb-blog-faq { max-width: 760px; margin: 0 auto 40px; }
.jb-blog-faq h2,
.jb-blog-related-title {
  margin: 0 0 16px;
  color: #2c2424;
  font-family: var(--font-playfair, "Playfair Display"), Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
}
.jb-blog-faq details {
  background: #fff;
  border: 1px solid #f0e4e2;
  border-radius: 12px;
  margin-bottom: 8px;
}
.jb-blog-faq summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 700;
  list-style: none;
}
.jb-blog-faq summary::-webkit-details-marker { display: none; }
.jb-blog-faq p {
  margin: 0;
  padding: 0 16px 14px;
  color: #5c4f4f;
  font-size: 14.5px;
  line-height: 1.65;
}

.jb-blog-content a.jb-prod-link,
.jb-blog-body a.jb-prod-link {
  color: #b5636c;
  font-weight: 700;
  border-bottom: 1px dashed rgba(181, 99, 108, .55);
  text-decoration: none;
  text-underline-offset: 3px;
}
.jb-blog-content a.jb-prod-link:hover,
.jb-blog-body a.jb-prod-link:hover {
  color: #8d3f4a;
  border-bottom-style: solid;
  text-decoration: none;
}

.jb-prod-hover {
  position: fixed;
  z-index: 80;
  width: 280px;
  background: #fff;
  border: 1px solid #f0e4e2;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(44, 36, 36, .16);
  overflow: hidden;
  pointer-events: auto;
}
.jb-prod-hover[hidden] { display: none !important; }
.jb-prod-hover a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}
.jb-prod-hover-media {
  display: block;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 10px;
  background: #f6ece8;
}
.jb-prod-hover-media img,
.jb-prod-hover-ph {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
}
.jb-prod-hover-ph {
  background: linear-gradient(135deg, #e8c9c6, #b5636c);
}
.jb-prod-hover-body {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}
.jb-prod-hover-brand {
  color: #b5636c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.jb-prod-hover-body strong {
  color: #2c2424;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jb-prod-hover-price {
  color: #1c1516;
  font-size: 13px;
  font-weight: 800;
}
.jb-prod-hover-price s {
  margin-left: 6px;
  color: #b7a3a3;
  font-weight: 500;
}
.jb-prod-hover-body em {
  color: #b5636c;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
