/* ---- Blog post page (store theme) ---- */
.bp-article { padding: 26px 0 40px; }
.bp-wrap { max-width: 880px; }
.bp-crumbs { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
.bp-crumbs a { color: var(--ink-soft); text-decoration: none; }
.bp-crumbs a:hover { color: var(--blue); text-decoration: underline; }
.bp-head { margin-bottom: 18px; }
.bp-title { font-size: clamp(24px, 5.2vw, 38px); line-height: 1.18; margin: 0 0 12px; }
.bp-metas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bp-meta { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--bg-soft, #f1f5f9); border: 1px solid var(--line, #d0d5e0); border-radius: 999px; padding: 4px 10px; }
.bp-excerpt { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.bp-cover-wrap { margin: 0 0 22px; border-radius: var(--radius-lg, 18px); overflow: hidden; background: var(--bg-soft, #f1f5f9); }
.bp-cover { width: 100%; height: auto; display: block; }

.bp-body { font-size: 16px; line-height: 1.78; color: var(--ink); }
.bp-body h2 { font-family: var(--font-display); font-size: clamp(20px, 3.4vw, 26px); margin: 30px 0 12px; }
.bp-body h3 { font-family: var(--font-display); font-size: 18px; margin: 22px 0 8px; }
.bp-body p { margin: 0 0 14px; }
.bp-body ul, .bp-body ol { margin: 0 0 16px; padding-left: 22px; }
.bp-body li { margin-bottom: 7px; }
.bp-body img { max-width: 100%; height: auto; border-radius: 12px; }
.bp-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.bp-body th, .bp-body td { border: 1px solid var(--line, #d0d5e0); padding: 9px 11px; text-align: left; }
.bp-body th { background: var(--bg-soft, #f1f5f9); font-weight: 700; }
.bp-body blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--blue, #1E2A4A); background: var(--bg-soft, #f1f5f9); border-radius: 0 10px 10px 0; }
.bp-body a { color: var(--blue, #1E2A4A); }

.bp-section { margin: 34px 0; }
.pe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pe-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--card-bg); border: 1.5px solid var(--line, #d0d5e0);
  border-radius: var(--radius-md, 14px); padding: 12px;
  transition: transform .3s var(--ease-smooth), box-shadow .3s, border-color .3s;
}
.pe-card:hover { transform: translateY(-3px); border-color: var(--blue, #1E2A4A); box-shadow: 0 14px 28px -14px rgba(8, 12, 24, .35); }
.pe-img { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 10px; background: var(--bg-soft, #f1f5f9); display: grid; place-items: center; overflow: hidden; }
.pe-img img { width: 100%; height: 100%; object-fit: contain; }
.pe-noimg { font-size: 26px; opacity: .5; }
.pe-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pe-body h3 { margin: 0; font-size: 14.5px; line-height: 1.35; font-family: var(--font-display); }
.pe-body h3 a { color: var(--ink); text-decoration: none; }
.pe-body h3 a:hover { color: var(--blue, #1E2A4A); }
.pe-badge { align-self: flex-start; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--danger, #e11d48); border-radius: 999px; padding: 2px 8px; }
.pe-price { display: flex; align-items: baseline; gap: 8px; }
.pe-price strong { font-size: 17px; font-family: var(--font-display); }
.pe-price s { font-size: 12px; color: var(--ink-soft); }
.pe-stock { font-size: 12px; font-weight: 600; }
.pe-stock.in { color: #16a34a; }
.pe-stock.oos { color: #dc2626; }
.pe-add {
  min-height: 38px; border: 0; cursor: pointer; border-radius: 999px;
  background: var(--navy-gradient, linear-gradient(135deg, #1E2A4A, #2f4a86));
  color: #fff; font-size: 13.5px; font-weight: 700; font-family: inherit;
  padding: 0 16px; align-self: flex-start;
  transition: transform .2s var(--ease-smooth), opacity .2s;
}
.pe-add:hover { transform: translateY(-1px); }
.pe-add:disabled { cursor: not-allowed; opacity: .6; }

.trust-banner-mini {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: var(--navy-gradient, linear-gradient(135deg, #1E2A4A, #2b3f74));
  color: #fff; border-radius: var(--radius-lg, 18px); padding: 18px;
}
.tbm { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.tbm > span { font-size: 18px; }

.bp-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.bp-foot .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* "All guides" back button: the arrow glides on hover and the whole button
   breathes gently so it reads as tappable. */
.bp-foot .btn-outline {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--line, #d0d5e0);
  background: var(--card-bg, #fff);
  color: var(--ink, #0f172a);
  font-weight: 700;
  padding: 0 20px;
  transition: transform .22s var(--ease-smooth, ease),
              border-color .22s, box-shadow .22s, color .22s;
  animation: bpBreathe 3.4s ease-in-out infinite;
}
.bp-foot .btn-outline::before {
  content: "\2190";
  display: inline-block;
  margin-right: 8px;
  font-size: 17px;
  line-height: 1;
  transition: transform .28s var(--ease-smooth, ease);
}
.bp-foot .btn-outline::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(15,181,165,.22) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .6s var(--ease-smooth, ease);
}
.bp-foot .btn-outline:hover {
  transform: translateY(-2px);
  border-color: #0FB5A5;
  color: #0A8C81;
  box-shadow: 0 12px 26px -14px rgba(15,181,165,.9);
}
.bp-foot .btn-outline:hover::before { transform: translateX(-5px) rotate(-12deg); }
.bp-foot .btn-outline:hover::after  { transform: translateX(100%); }
.bp-foot .btn-outline:active { transform: translateY(0); }
.bp-foot .btn-outline:focus-visible { outline: 2px solid #0FB5A5; outline-offset: 3px; }

@keyframes bpBreathe {
  0%, 100% { box-shadow: 0 2px 10px -8px rgba(8,12,24,.35); }
  50%      { box-shadow: 0 8px 22px -12px rgba(15,181,165,.75); }
}

/* the primary CTA gets a matching lift so the pair feels like one set */
.bp-foot .btn-primary { transition: transform .22s var(--ease-smooth, ease), box-shadow .22s; }
.bp-foot .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(30,42,74,.95);
}
.bp-foot .btn-primary:focus-visible { outline: 2px solid #0FB5A5; outline-offset: 3px; }

/* ============================================================
   BLOG INDEX — post card base (the V2 skin lives in blog-inline.css)
   ============================================================ */
.bl-post { position: relative; }
.bl-post .bl-cover {
  width: 100%; height: 92px;
  object-fit: contain; object-position: center;
  background: var(--bg-soft, #f4f6fa);
  border-radius: 9px; margin-bottom: 4px;
}
.bl-date { font-size: 11.5px; color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   BLOG POST — V2
   Reading progress, sticky contents, calmer typography, reveals.
   ============================================================ */

/* slim reading progress bar pinned under the nav */
.bp-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 900;
  background: linear-gradient(90deg, #0FB5A5 0%, #1E88C7 100%);
  box-shadow: 0 0 12px rgba(15,181,165,.7);
  transition: width .1s linear;
}

/* table of contents, sticks beside the article on a wide screen */
.bp-toc {
  display: none;
  position: sticky; top: calc(var(--nav-h, 64px) + 22px);
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1.5px solid #E2E9F2; border-radius: 16px;
  background: linear-gradient(180deg, #FBFDFE 0%, #F6F9FD 100%);
  box-shadow: 0 4px 18px -12px rgba(11,18,32,.4);
  max-height: calc(100vh - var(--nav-h, 64px) - 60px);
  overflow: auto;
}
.bp-toc strong {
  display: block; font-size: 11.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #0A8C81;
  margin-bottom: 9px;
}
.bp-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.bp-toc li { counter-increment: toc; margin: 0; }
.bp-toc a {
  display: block; position: relative;
  padding: 6px 8px 6px 26px;
  font-size: 12.5px; line-height: 1.45; font-weight: 600;
  color: #5A6B80; text-decoration: none;
  border-radius: 8px;
  transition: color .18s, background .18s, transform .18s;
}
.bp-toc a::before {
  content: counter(toc);
  position: absolute; left: 6px; top: 6px;
  width: 15px; height: 15px; border-radius: 5px;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800;
  background: #E7EDF5; color: #64748B;
  transition: background .18s, color .18s;
}
.bp-toc a:hover { color: #0B1220; background: #fff; transform: translateX(2px); }
.bp-toc a.is-on { color: #0A8C81; background: rgba(15,181,165,.09); }
.bp-toc a.is-on::before { background: #0FB5A5; color: #fff; }

@media (min-width: 1100px) {
  .bp-toc { display: block; }
}

/* calmer, roomier reading column */
.bp-wrap { position: relative; }
.bp-body { font-size: 16.5px; line-height: 1.85; color: #1B2637; }
.bp-body h2 {
  scroll-margin-top: calc(var(--nav-h, 64px) + 20px);
  position: relative;
  padding-left: 14px;
  border-left: 4px solid var(--bl-accent, #0FB5A5);
}
.bp-body h2::before { content: none; }
.bp-body h3 { scroll-margin-top: calc(var(--nav-h, 64px) + 20px); color: #0B1220; }
.bp-body p { margin: 0 0 16px; }
.bp-body a { text-decoration: underline; text-underline-offset: 3px; }
.bp-body table { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px -10px rgba(11,18,32,.3); }
.bp-body th { background: #0B1220; color: #fff; border-color: #0B1220; }
.bp-body blockquote {
  border-left-color: var(--bl-accent, #0FB5A5);
  background: rgba(15,181,165,.06);
  font-style: italic;
}

/* cover gets a soft lift */
.bp-cover { transition: transform .5s var(--ease-smooth, ease); }
.bp-cover-wrap:hover .bp-cover { transform: scale(1.015); }

/* FAQ + product embeds get a subtle entrance */
.faq-item, .pe-card {
  transition: transform .25s var(--ease-smooth, ease), box-shadow .25s, border-color .25s;
}
.faq-item:hover, .pe-card:hover {
  transform: translateY(-2px);
  border-color: var(--bl-accent-line, rgba(15,181,165,.32));
  box-shadow: 0 14px 30px -18px rgba(15,181,165,.75);
}

/* body children reveal as you read */
.bp-rise { opacity: 0; transform: translateY(16px); }
.bp-rise.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease-smooth, ease), transform .55s var(--ease-smooth, ease);
}
@media (prefers-reduced-motion: reduce) {
  .bp-rise, .bl-reveal { opacity: 1; transform: none; }
  .bp-progress { transition: none; }
}


/* Safety net: an inline <svg> that only carries a viewBox has no intrinsic
   size, so it stretches to fill its container and can cover the whole page.
   Give those a sane default instead. */
svg:not([width]):not([height]) { width: 20px; height: 20px; flex: 0 0 auto; }

/* Real published posts sit in .bl-real. On a laptop the card image used to be
   a 92px strip inside a full-width stacked card, which looked tiny. Give the
   grid proper images and make the newest post a wide featured card.
   object-fit:contain so the whole product stays visible - "cover" cropped the
   top and bottom of tall product shots. */
.bl-real { margin-top: 4px; }

@media (min-width: 901px) {
  .bl-real { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .bl-real .bl-card { padding: 14px; }
  .bl-real .bl-post .bl-cover {
    height: 208px;
    object-fit: contain;
    object-position: center;
    background: var(--bg-soft, #f4f6fa);
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .bl-real .bl-post strong { font-size: 17px; }

  /* featured / front post */
  .bl-real > .bl-post:first-child {
    grid-column: span 2;
    padding: 16px;
  }
  .bl-real > .bl-post:first-child .bl-cover {
    height: 392px;
    object-fit: contain;
    object-position: center;
    background: var(--bg-soft, #f4f6fa);
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .bl-real > .bl-post:first-child strong { font-size: 25px; line-height: 1.22; }
  .bl-real > .bl-post:first-child .bl-sub { font-size: 14.5px; }
  .bl-real > .bl-post:first-child .bl-date { font-size: 12.5px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .bl-real > .bl-post:first-child .bl-cover { height: 300px; }
  .bl-real > .bl-post:first-child strong { font-size: 21px; }
}

@media (max-width: 900px) { .pe-grid { grid-template-columns: 1fr; } .trust-banner-mini { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .bp-article { padding: 18px 0 30px; }
  .bp-body { font-size: 15.5px; }
  .pe-img { flex: 0 0 68px; width: 68px; height: 68px; }
  .trust-banner-mini { grid-template-columns: 1fr; }
  .bp-foot { flex-direction: column; }
  .bp-foot .btn { justify-content: center; }
}

/* ============================================================
   BLOG POST PAGE - matching teal signature theme (same as /blog)
   ============================================================ */
:root {
  --bl-accent:      #0FB5A5;
  --bl-accent-dark: #0A8C81;
  --bl-accent-soft: rgba(15, 181, 165, 0.10);
  --bl-accent-line: rgba(15, 181, 165, 0.32);
  --bl-tint:        #F2FBFA;
  --bl-gradient:    linear-gradient(135deg, #0FB5A5 0%, #1E88C7 100%);
}

/* teal wash behind the article header */
.bp-head {
  background:
    radial-gradient(820px 260px at 50% -18%, rgba(15,181,165,.18), transparent 62%),
    linear-gradient(180deg, var(--bl-tint) 0%, rgba(242,251,250,0) 100%);
  border-radius: var(--radius-lg, 18px);
  padding: 26px 24px;
  border: 1px solid var(--bl-accent-line);
}
.bp-title { color: #0B1220; }

/* teal rule under the title */
.bp-title::after {
  content: "";
  display: block;
  width: 66px;
  height: 4px;
  margin-top: 14px;
  border-radius: 99px;
  background: var(--bl-gradient);
}

/* meta chips pick up the accent */
.bp-metas { color: var(--bl-accent-dark); font-weight: 700; }
.bp-metas a { color: var(--bl-accent-dark); }
.bp-metas a:hover { color: var(--bl-accent); }
.bp-excerpt { color: #46566B; }

/* breadcrumb */
.bp-crumbs a { color: var(--bl-accent-dark); }
.bp-crumbs a:hover { color: var(--bl-accent); }

/* body links + product embed cards */
.bp-body a { color: var(--bl-accent-dark); }
.bp-body a:hover { color: var(--bl-accent); }
.pe-card {
  border-color: var(--bl-accent-line);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.pe-card:hover {
  border-color: var(--bl-accent);
  box-shadow: 0 14px 32px -16px rgba(15,181,165,.45);
  transform: translateY(-2px);
}

/* FAQ + trust strip */
.faq-item, .trust-banner-mini { border-color: var(--bl-accent-line); }
.trust-banner-mini {
  background: linear-gradient(135deg, #0B1526 0%, #16294A 55%, #0A1120 100%);
  border: 1px solid rgba(15,181,165,.22);
}

/* index post-card date tag */
.bl-date { color: var(--bl-accent-dark); }
