/* ─── POST LAYOUT ────────────────────────────────────────────── */
.post-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; padding: 28px 0 100px;
}
@media (min-width: 1000px) {
  .post-layout { grid-template-columns: 1fr 300px; align-items: start; }
}
article.post-main { min-width: 0; }

/* Category + meta */
.post-cat-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.post-cat {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--sage-bg); color: var(--sage-d);
  font-size: 12px; font-weight: 700; text-decoration: none;
  text-transform: uppercase; letter-spacing: .4px;
}
.post-updated { font-size: 12px; color: var(--muted); }

/* Title */
.post-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(24px, 5vw, 38px); font-weight: 800;
  color: var(--brown); line-height: 1.25; margin-bottom: 16px;
}

/* Intro */
.article-intro {
  font-size: 17px; color: var(--muted); line-height: 1.8;
  border-left: 4px solid var(--rose-d); padding-left: 16px;
  margin-bottom: 24px;
}

/* Author meta bar */
.author-meta {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--border);
  margin-bottom: 28px;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #F7C5CE, var(--rose-d));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-info { flex: 1; min-width: 0; }
.author-name { font-weight: 700; font-size: 14px; color: var(--brown); }
.author-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.post-share { display: flex; gap: 8px; }
.btn-share {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; text-decoration: none; transition: all .18s; color: var(--muted);
}
.btn-share:hover { background: var(--rose-bg); border-color: var(--rose); }

/* Featured image */
.post-featured-img {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--r);
  background: linear-gradient(135deg, #EBF5EC 0%, #D4EDD7 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; margin-bottom: 28px; overflow: hidden;
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* Rating box */
.rating-box {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 32px;
}
.rating-score { text-align: center; }
.rating-score .score { font-family: 'Nunito', sans-serif; font-size: 42px; font-weight: 800; color: var(--brown); line-height: 1; }
.rating-score .score-label { font-size: 11px; color: var(--muted); }
.rating-stars { color: #F5A623; font-size: 20px; letter-spacing: 2px; }
.rating-detail { flex: 1; min-width: 180px; }
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.rating-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #F5A623; border-radius: 3px; }
.rating-count { color: var(--muted); font-size: 12px; min-width: 28px; text-align: right; }

/* TOC */
.toc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 32px;
}
.toc summary {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--brown); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "▾"; font-size: 14px; color: var(--muted); transition: transform .2s; }
details[open] .toc summary::after { transform: rotate(-180deg); }
.toc ol { margin-top: 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.toc li { font-size: 14px; }
.toc a { color: var(--rose-d); text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }
.toc ol ol { margin-top: 4px; padding-left: 16px; }
.toc ol ol li { font-size: 13px; }
.toc ol ol a { color: var(--muted); font-weight: 400; }

/* Article body typography */
.post-body { font-size: 16.5px; line-height: 1.85; color: var(--text); }
@media (min-width: 600px) { .post-body { font-size: 17px; } }
.post-body h2 {
  font-family: 'Nunito', sans-serif; font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800; color: var(--brown); margin: 40px 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.post-body h3 {
  font-family: 'Nunito', sans-serif; font-size: clamp(17px, 3vw, 21px);
  font-weight: 700; color: var(--brown); margin: 28px 0 12px;
}
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.post-body li { padding-left: 4px; }
.post-body strong { font-weight: 700; color: var(--brown); }
.post-body em { font-style: italic; }
.post-body a { color: var(--rose-d); font-weight: 500; }
.post-body a:hover { text-decoration: underline; }
.post-body blockquote {
  margin: 24px 0; padding: 16px 20px;
  border-left: 4px solid var(--rose-d);
  background: var(--rose-bg); border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--brown);
}
.post-img {
  width: 100%; border-radius: var(--r); margin: 24px 0;
  aspect-ratio: 4/3; object-fit: cover;
  background: linear-gradient(135deg, #EBF5EC, #D4EDD7);
  display: flex; align-items: center; justify-content: center; font-size: 60px;
}
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-caption { text-align: center; font-size: 13px; color: var(--muted); margin-top: -16px; margin-bottom: 24px; font-style: italic; }

/* ─── AFFILIATE PRODUCTS ─────────────────────────────────────── */
.aff-section {
  margin: 40px 0; background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px;
}
.aff-section-title {
  font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800;
  color: var(--brown); margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.aff-section-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.aff-disclosure-inline {
  font-size: 12px; color: var(--muted); background: var(--cream);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 16px;
}
.aff-prod-list { display: flex; flex-direction: column; gap: 16px; }
.aff-prod-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--cream); border-radius: 14px;
  padding: 14px; border: 1px solid var(--border); transition: box-shadow .18s;
}
.aff-prod-card:hover { box-shadow: var(--shadow-m); }
.aff-prod-img {
  width: 80px; height: 80px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #FEEAEE, #FAD4DC);
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.aff-prod-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 600px) { .aff-prod-img { width: 100px; height: 100px; font-size: 44px; } }
.aff-prod-info { flex: 1; min-width: 0; }
.aff-prod-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.badge-pick { background: #FFF3CD; color: #92600A; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.badge-sale { background: var(--rose-bg); color: var(--rose-d); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.aff-prod-name { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 15px; color: var(--brown); margin-bottom: 4px; line-height: 1.3; }
.aff-prod-stars { color: #F5A623; font-size: 13px; margin-bottom: 4px; }
.aff-prod-stars span { color: var(--muted); font-size: 12px; }
.aff-prod-quote { font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 8px; line-height: 1.5; }
.aff-prod-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aff-price { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px; color: var(--rose-d); }
.aff-price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.btn-aff {
  margin-left: auto; padding: 8px 16px; border-radius: 20px;
  background: var(--rose-d); color: var(--white);
  font-size: 13px; font-weight: 700; text-decoration: none;
  white-space: nowrap; transition: background .18s;
  display: flex; align-items: center; gap: 5px;
}
.btn-aff:hover { background: #C0506A; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-section { margin: 40px 0; }
.faq-section h2 {
  font-family: 'Nunito', sans-serif; font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800; color: var(--brown); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; font-weight: 600; font-size: 15px; color: var(--brown);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; background: var(--white); gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 16px 20px; font-size: 15px; line-height: 1.75; background: var(--white); color: var(--text); }

/* ─── AUTHOR BIO ─────────────────────────────────────────────── */
.author-bio {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; margin: 40px 0;
  display: flex; gap: 18px;
}
.bio-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #F7C5CE, var(--rose-d));
  display: flex; align-items: center; justify-content: center; font-size: 34px; overflow: hidden;
}
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bio-content { flex: 1; min-width: 0; }
.bio-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.bio-name { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800; color: var(--brown); margin-bottom: 8px; }
.bio-text { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.bio-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.bio-social {
  padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--brown); text-decoration: none; transition: all .18s;
}
.bio-social:hover { background: var(--rose-bg); border-color: var(--rose); color: var(--rose-d); }

/* ─── RELATED POSTS ──────────────────────────────────────────── */
.related-section { margin: 40px 0; }
.related-section h2 { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800; color: var(--brown); margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { text-decoration: none; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--border); transition: box-shadow .18s; }
.related-card:hover { box-shadow: var(--shadow-m); }
.related-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #FEEAEE, #FAD4DC); display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-body { padding: 12px; }
.related-cat { font-size: 11px; font-weight: 700; color: var(--sage-d); margin-bottom: 6px; }
.related-title { font-size: 14px; font-weight: 600; color: var(--brown); line-height: 1.4; }

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.post-sidebar { display: none; }
@media (min-width: 1000px) { .post-sidebar { display: flex; flex-direction: column; gap: 20px; } }

.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.sidebar-card-title {
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800;
  color: var(--brown); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

/* Sidebar product CTA */
.sidebar-prod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.sidebar-prod-img {
  width: 100%; aspect-ratio: 1; border-radius: 14px;
  background: linear-gradient(135deg, #FEEAEE, #FAD4DC);
  display: flex; align-items: center; justify-content: center; font-size: 64px; overflow: hidden;
}
.sidebar-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-prod-name { font-weight: 700; font-size: 15px; color: var(--brown); line-height: 1.3; }
.sidebar-prod-stars { color: #F5A623; font-size: 14px; }
.sidebar-price { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800; color: var(--rose-d); }
.btn-buy-sidebar {
  width: 100%; padding: 12px; border-radius: 12px;
  background: var(--rose-d); color: var(--white);
  font-size: 15px; font-weight: 700; text-decoration: none;
  display: block; text-align: center; transition: opacity .18s;
}
.btn-buy-sidebar:hover { opacity: .85; }
.sidebar-disclaimer { font-size: 11px; color: var(--muted); font-style: italic; }

/* Sidebar TOC */
.sidebar-toc { display: flex; flex-direction: column; gap: 4px; }
.sidebar-toc a {
  display: block; padding: 7px 10px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: all .15s; border-left: 2px solid transparent;
}
.sidebar-toc a.toc-h3 { padding-left: 20px; font-size: 12px; }
.sidebar-toc a:hover { color: var(--rose-d); background: var(--rose-bg); }
.sidebar-toc a.active { color: var(--rose-d); font-weight: 600; border-left-color: var(--rose-d); background: var(--rose-bg); }

/* Sticky sidebar */
@media (min-width: 1000px) {
  .post-sidebar .sidebar-card:first-child { position: sticky; top: 86px; }
}
