/* ==========================================================================
   Homeocore Editorial Journal & Article Styles
   Blends Milamend editorial layout/animations with Homeocore brand tokens.
   Loaded ONLY on blog archive, category/tag archive, and single post pages.
   ========================================================================== */

:root {
  --ml-bg: #FFFBEA;
  --ml-sand: #F5EDD8;
  --ml-sage: #EAF0DC;
  --ml-accent: #B5451E;
  --ml-accent-dark: #8E3314;
  --ml-accent-10: rgba(181, 69, 30, 0.10);
  --ml-accent-20: rgba(181, 69, 30, 0.22);
  --ml-accent-35: rgba(181, 69, 30, 0.35);
  --ml-forest: #1E3D1E;
  --ml-forest-dark: #1a3d35;
  --ml-forest-10: rgba(30, 61, 30, 0.08);
  --ml-forest-20: rgba(30, 61, 30, 0.18);
  --ml-ink: #1A0F00;
  --ml-muted: rgba(26, 15, 0, 0.72);
  --ml-excerpt: rgba(26, 15, 0, 0.56);
  --ml-cream: #FFFBEA;
  --ml-font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ml-font-mono: 'DM Mono', monospace;
}

/* ── Shared Wrapper & Typography Resets (override theme.css !important rules cleanly) ── */
.ml-blog-scope,
.ml-article-scope {
  background-color: var(--ml-bg);
  color: var(--ml-ink);
  font-family: var(--ml-font-body);
  padding-top: calc(var(--header-total, 106px) + 32px);
  padding-bottom: 96px;
  overflow-x: hidden;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .ml-blog-scope,
  .ml-article-scope {
    padding-top: calc(var(--header-total, 106px) + 48px);
    padding-bottom: 112px;
  }
}

.ml-blog-scope *,
.ml-article-scope * {
  box-sizing: border-box;
}

.ml-caption {
  font-family: var(--ml-font-mono);
}

.ml-eyebrow {
  display: inline-block;
  font-family: var(--ml-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ml-accent);
  margin-bottom: 14px;
}

.ml-dot-pill {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background-color: var(--ml-accent);
  flex-shrink: 0;
}

.ml-dot-pill--lg {
  width: 6px;
  height: 6px;
  background-color: var(--ml-sage);
}

/* ── Heading Scale ── */
.ml-blog-scope h1.ml-h1 {
  font-family: var(--ml-font-body) !important;
  font-size: 36px !important;
  line-height: 1.08 !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  color: var(--ml-forest) !important;
  margin: 0 auto !important;
}
.ml-blog-scope h1.ml-h1 span.ml-accent-word {
  color: var(--ml-accent);
}
@media (min-width: 640px) { .ml-blog-scope h1.ml-h1 { font-size: 42px !important; } }
@media (min-width: 768px) { .ml-blog-scope h1.ml-h1 { font-size: 48px !important; } }
@media (min-width: 1024px) { .ml-blog-scope h1.ml-h1 { font-size: 54px !important; max-width: 780px; } }
@media (min-width: 1280px) { .ml-blog-scope h1.ml-h1 { font-size: 58px !important; max-width: 860px; } }

.ml-blog-scope .ml-section-desc {
  font-family: var(--ml-font-body) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
  color: var(--ml-muted) !important;
  max-width: 38rem;
  margin: 18px auto 0 !important;
}
@media (min-width: 768px) { .ml-blog-scope .ml-section-desc { font-size: 18px !important; } }
@media (min-width: 1024px) { .ml-blog-scope .ml-section-desc { font-size: 19px !important; margin-top: 22px !important; } }

.ml-h4 {
  font-family: var(--ml-font-body) !important;
  font-size: clamp(20px, 1.8vw, 26px) !important;
  line-height: 1.22 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  color: var(--ml-forest) !important;
}

.ml-h5 {
  font-family: var(--ml-font-body) !important;
  font-size: clamp(16px, 1.2vw, 19px) !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em !important;
  color: var(--ml-forest) !important;
}

/* ── Archive Container ── */
.ml-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 1024px) { .ml-container { padding: 0 64px; } }
@media (min-width: 1280px) { .ml-container { padding: 0 96px; } }

.ml-blog-hero {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 12px;
}
@media (min-width: 1024px) {
  .ml-blog-hero { margin-bottom: 48px; padding: 0; }
}

/* ── Category Filter Pills ── */
.ml-filter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}
@media (min-width: 1024px) {
  .ml-filter-block { margin-bottom: 48px; }
}

.ml-cat-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  width: 100%;
  justify-content: flex-start;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ml-cat-nav::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
  .ml-cat-nav {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.ml-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: 9999px;
  border: 1px solid var(--ml-forest-20);
  color: var(--ml-forest);
  padding: 0 22px;
  flex-shrink: 0;
  height: 48px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
@media (min-width: 1024px) {
  .ml-cat-pill {
    padding: 0 24px;
    height: 48px;
    font-size: 15px;
  }
}
.ml-cat-pill:hover {
  border-color: var(--ml-accent);
  color: var(--ml-accent);
  background-color: var(--ml-accent-10);
}
.ml-cat-pill.is-active {
  border-color: var(--ml-accent);
  background-color: var(--ml-accent);
  color: var(--ml-cream);
}

/* ── Blog Articles Grid ── */
.ml-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 12px;
  row-gap: 32px;
}
@media (min-width: 768px) {
  .ml-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }
}
@media (min-width: 1024px) {
  .ml-articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 44px;
  }
}

.ml-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 1024px) {
  .ml-card--featured {
    grid-column: span 2 / span 2;
  }
}

.ml-featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  height: 24px;
  background-color: rgba(255, 251, 234, 0.94);
  border: 1px solid var(--ml-forest-20);
  color: var(--ml-forest);
  font-family: var(--ml-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 0 11px;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.ml-card-img-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--ml-sand);
  aspect-ratio: 3 / 2;
}
@media (min-width: 1024px) {
  .ml-card--featured .ml-card-img-link,
  .ml-card--row1-side .ml-card-img-link {
    aspect-ratio: auto;
    height: 390px;
  }
}
@media (min-width: 1280px) {
  .ml-card--featured .ml-card-img-link,
  .ml-card--row1-side .ml-card-img-link {
    height: 430px;
  }
}
.ml-card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.ml-card:hover .ml-card-img-link img {
  transform: scale(1.04);
}

.ml-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
}
.ml-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  font-family: var(--ml-font-mono);
  letter-spacing: 0.1em;
  color: var(--ml-accent);
}
.ml-card-title {
  display: block;
  text-decoration: none;
  color: var(--ml-forest);
  transition: color 0.25s ease;
}
.ml-card:hover .ml-card-title {
  color: var(--ml-accent);
}
@media (min-width: 1024px) {
  .ml-card:not(.ml-card--featured) .ml-card-title {
    max-width: 95%;
  }
}

/* ── Pagination ── */
.ml-pagination-wrap {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ml-articles-count {
  font-family: var(--ml-font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4 !important;
  color: var(--ml-excerpt) !important;
  margin: 0 !important;
}
.ml-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ml-pagination ul.page-numbers li a,
.ml-pagination ul.page-numbers li span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--ml-forest-20);
  font-size: 15px;
  font-weight: 600;
  color: var(--ml-forest);
  text-decoration: none;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.ml-pagination ul.page-numbers li span.current {
  border-color: var(--ml-accent);
  background-color: var(--ml-accent);
  color: var(--ml-cream);
}
.ml-pagination ul.page-numbers li a:hover {
  border-color: var(--ml-accent);
  color: var(--ml-accent);
  background-color: var(--ml-accent-10);
}
.ml-pagination ul.page-numbers li span.dots {
  border-color: transparent;
  opacity: 0.5;
}

/* ── Scroll Reveal Animation ── */
.ml-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.ml-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .ml-reveal { opacity: 1; transform: none; transition: none; }
  .ml-card-img-link img { transition: none; }
}

/* ==========================================================================
   Single Article Page (.ml-article-scope)
   ========================================================================== */
.ml-article-inner {
  padding: 0 20px;
}
@media (min-width: 1024px) { .ml-article-inner { padding: 0 64px; } }
@media (min-width: 1280px) { .ml-article-inner { padding: 0 96px; } }

.ml-article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 24px;
}
@media (min-width: 1024px) {
  .ml-article-topbar { padding-bottom: 32px; }
}

.ml-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ml-font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ml-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.ml-back-link svg {
  transition: transform 0.25s ease;
}
.ml-back-link:hover svg {
  transform: translateX(-4px);
}

.ml-cat-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--ml-sage);
  border: 1px solid var(--ml-forest-20);
  color: var(--ml-forest);
  font-family: var(--ml-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ml-cat-chip-link:hover {
  background: var(--ml-forest);
  border-color: var(--ml-forest);
  color: var(--ml-cream);
}

.ml-article-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0 auto 40px;
  max-width: 960px;
}
@media (min-width: 768px) {
  .ml-article-header { margin-bottom: 52px; }
}

.ml-article-scope h1.ml-h2 {
  font-family: var(--ml-font-body) !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: 1.12 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
  color: var(--ml-forest) !important;
  margin: 0 !important;
}

.ml-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  font-family: var(--ml-font-mono);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--ml-accent);
}

.ml-hero-img {
  display: block;
  width: calc(100% + 24px);
  margin: 0 -12px;
  max-width: none;
  object-fit: cover;
  border-radius: 24px;
  aspect-ratio: 23 / 20;
  background-color: var(--ml-sand);
}
@media (min-width: 768px) {
  .ml-hero-img {
    width: 100%;
    margin: 0 auto;
    max-width: 1240px;
    aspect-ratio: 69 / 40;
  }
}
@media (min-width: 1024px) {
  .ml-hero-img {
    border-radius: 40px;
    aspect-ratio: 23 / 10;
  }
}

/* ── Editorial Body Column (740px) ── */
.ml-article-body-wrap {
  max-width: 740px;
  margin: 36px auto 0;
  color: var(--ml-muted);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .ml-article-body-wrap { margin-top: 52px; }
}

.ml-article-body-wrap p {
  margin: 0 0 1.25rem 0 !important;
  font-family: var(--ml-font-body) !important;
  font-size: 1.03rem !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
  color: var(--ml-muted) !important;
}
.ml-article-body-wrap p:empty { display: none; }

.ml-article-body-wrap a {
  color: var(--ml-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ml-article-body-wrap h1 {
  margin-top: 3rem !important;
  margin-bottom: 1.25rem !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  color: var(--ml-forest) !important;
}
@media (min-width: 768px) { .ml-article-body-wrap h1 { font-size: 34px !important; } }
@media (min-width: 1024px) { .ml-article-body-wrap h1 { font-size: 38px !important; } }

.ml-article-body-wrap h2 {
  margin-top: 3.5rem !important;
  margin-bottom: 1.25rem !important;
  font-size: 22px !important;
  line-height: 1.18 !important;
  font-weight: 600 !important;
  color: var(--ml-forest) !important;
}
@media (min-width: 768px) { .ml-article-body-wrap h2 { font-size: 28px !important; } }
@media (min-width: 1024px) { .ml-article-body-wrap h2 { font-size: 32px !important; } }

.ml-article-body-wrap h3 {
  margin-top: 2rem !important;
  margin-bottom: 0.9rem !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  color: var(--ml-accent) !important;
}
@media (min-width: 1024px) { .ml-article-body-wrap h3 { font-size: 21px !important; } }

.ml-article-body-wrap h4 {
  margin-top: 1.5rem !important;
  margin-bottom: 0.65rem !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  color: var(--ml-forest) !important;
}
@media (min-width: 768px) { .ml-article-body-wrap h4 { font-size: 19px !important; } }

/* Intro TOC list (clean terracotta pill bullets, no white box) */
.ml-article-sections .ml-article-intro ul,
.ml-article-intro ul,
.ml-article-body-wrap > ul:first-of-type {
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
  background: transparent;
  border: none;
  border-radius: 0;
}
.ml-article-sections .ml-article-intro ul > li + li,
.ml-article-intro ul > li + li,
.ml-article-body-wrap > ul:first-of-type > li + li {
  margin-top: 0.55rem;
}
.ml-article-sections .ml-article-intro ul li,
.ml-article-intro ul li,
.ml-article-body-wrap > ul:first-of-type li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ml-accent);
  border-bottom: none;
  padding-bottom: 0;
}
.ml-article-sections .ml-article-intro ul li::before,
.ml-article-intro ul li::before,
.ml-article-body-wrap > ul:first-of-type li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  height: 7px;
  width: 4px;
  border-radius: 9999px;
  background-color: var(--ml-accent);
}

/* Section Lists (White rounded card boxes, subtle Homeocore border, bold lead-in term) */
.ml-article-sections ul,
.ml-article-sections ol,
.ml-article-references ul {
  margin: 0 0 1.5rem 0;
  list-style: none;
  border-radius: 1rem;
  background-color: #ffffff;
  border: 1px solid var(--ml-forest-10);
  padding: 1.25rem;
}
@media (min-width: 768px) {
  .ml-article-sections ul,
  .ml-article-sections ol,
  .ml-article-references ul {
    padding: 1.5rem;
  }
}
.ml-article-sections ul > li + li,
.ml-article-sections ol > li + li,
.ml-article-references ul > li + li {
  margin-top: 0.85rem;
}
.ml-article-sections li,
.ml-article-references li {
  position: relative;
  border-bottom: 1px solid var(--ml-forest-10);
  padding-left: 1.25rem;
  padding-bottom: 0.85rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ml-muted);
}
.ml-article-sections li:last-child,
.ml-article-references li:last-child {
  border-bottom-width: 0;
  padding-bottom: 0;
}
.ml-article-sections li::before,
.ml-article-references li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  height: 5px;
  width: 5px;
  border-radius: 9999px;
  background-color: var(--ml-accent);
}
.ml-article-sections li p,
.ml-article-references li p {
  margin-bottom: 0 !important;
}
.ml-article-sections li strong,
.ml-article-sections li b {
  margin-bottom: 0.25rem;
  display: block;
  font-weight: 600;
  color: var(--ml-forest);
  font-family: inherit;
}

/* Highlighted Content Block / Blockquote */
.ml-article-body-wrap blockquote,
.ml-article-body-wrap .article-template__highlighted-content,
.ml-article-body-wrap .ml-highlighted-block {
  margin: 36px 0 !important;
  padding: 18px 24px !important;
  background: rgba(245, 237, 216, 0.55);
  border-radius: 0 16px 16px 0;
  color: var(--ml-forest) !important;
  font-size: 20px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  border-left: 3px solid var(--ml-accent) !important;
}
@media screen and (max-width: 768px) {
  .ml-article-body-wrap blockquote,
  .ml-article-body-wrap .article-template__highlighted-content,
  .ml-article-body-wrap .ml-highlighted-block {
    margin: 28px 0 !important;
    padding: 14px 18px !important;
    font-size: 18px !important;
  }
}

/* Inline Figures / Images */
.ml-article-body-wrap figure,
.ml-article-body-wrap .ml-article-figure {
  margin: 2rem 0;
}
@media (min-width: 1024px) {
  .ml-article-body-wrap figure,
  .ml-article-body-wrap .ml-article-figure {
    margin: 2.75rem 0;
  }
}
.ml-article-body-wrap img {
  margin-top: 2rem;
  border-radius: 1rem;
  width: 100%;
  height: auto;
  display: block;
}
.ml-article-body-wrap figure img,
.ml-article-body-wrap .ml-article-figure img {
  margin-top: 0;
}
@media (min-width: 1024px) {
  .ml-article-body-wrap img {
    margin-top: 2.75rem;
    border-radius: 1.5rem;
  }
  .ml-article-body-wrap figure img,
  .ml-article-body-wrap .ml-article-figure img {
    margin-top: 0;
  }
}

/* ── About the Author Box (Connected Homeocore Emblem) ── */
.ml-author-box {
  margin: 48px 0;
  border-top: 1px solid var(--ml-forest-20);
  padding-top: 28px;
  color: var(--ml-forest);
}
.ml-author-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ml-author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ml-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.ml-author-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  margin-top: 0 !important;
  border-radius: 0 !important;
}
.ml-author-title {
  font-size: 11px !important;
  font-family: var(--ml-font-mono) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500 !important;
  margin: 0 0 4px !important;
  color: var(--ml-accent) !important;
}
.ml-author-name {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--ml-forest) !important;
  margin: 0 0 4px !important;
}
.ml-author-role {
  font-size: 0.9rem !important;
  color: var(--ml-excerpt) !important;
  margin: 0 !important;
}
.ml-author-links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-family: var(--ml-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ml-author-links a {
  color: var(--ml-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--ml-accent-35);
  padding-bottom: 1px;
}
.ml-author-links a:hover {
  border-color: var(--ml-accent);
}

/* ── Connected "Shop the Story" WooCommerce Strip ── */
.ml-shop-strip {
  margin-top: 64px;
  background: var(--ml-sand);
  padding: 64px 20px;
  border-top: 1px solid var(--ml-forest-10);
  border-bottom: 1px solid var(--ml-forest-10);
}
@media (min-width: 1024px) {
  .ml-shop-strip { padding: 84px 64px; }
}
.ml-shop-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.ml-shop-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
@media (min-width: 768px) {
  .ml-shop-header {
    flex-direction: row;
    align-items: flex-end;
  }
}
.ml-shop-header h2 {
  font-family: var(--ml-font-body) !important;
  font-size: clamp(24px, 3vw, 38px) !important;
  color: var(--ml-forest) !important;
  margin: 0 !important;
}
.ml-shop-viewall {
  font-family: var(--ml-font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ml-accent);
  text-decoration: none;
  border-bottom: 2px solid var(--ml-accent);
  padding-bottom: 2px;
}
.ml-shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .ml-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ml-shop-card {
  background: var(--ml-bg);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--ml-forest-10);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ml-shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(30, 61, 30, 0.08);
}
.ml-shop-img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ml-sand);
}
.ml-shop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.ml-shop-card:hover .ml-shop-img img {
  transform: scale(1.06);
}
.ml-shop-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.ml-shop-meta h3 {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--ml-forest) !important;
  margin: 0 !important;
}
.ml-shop-meta h3 a {
  color: inherit;
  text-decoration: none;
}
.ml-shop-price {
  font-weight: 700;
  color: var(--ml-accent);
  white-space: nowrap;
}
.ml-shop-atc {
  width: 100%;
  padding: 13px 20px;
  background: var(--ml-accent);
  color: var(--ml-cream);
  border-radius: 9999px;
  font-family: var(--ml-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  margin-top: auto;
  transition: background-color 0.25s ease;
}
.ml-shop-atc:hover { background: var(--ml-accent-dark); }

/* ── Related Articles ── */
.ml-related-section {
  padding: 0 16px;
}
@media (min-width: 1024px) { .ml-related-section { padding: 0 64px; } }
@media (min-width: 1280px) { .ml-related-section { padding: 0 96px; } }

.ml-related-inner {
  margin-top: 64px;
  max-width: 1240px;
  color: var(--ml-forest);
}
@media (min-width: 1024px) {
  .ml-related-inner {
    margin: 76px auto 0;
  }
}
.ml-related-heading {
  font-family: var(--ml-font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600 !important;
  color: var(--ml-accent) !important;
  margin: 0 !important;
}
.ml-related-hr {
  border: 0;
  border-top: 1px solid var(--ml-forest-20);
  margin: 14px 0 24px;
}
@media (min-width: 1024px) {
  .ml-related-hr { margin-bottom: 32px; }
}

.ml-related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ml-related-card {
  display: block;
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ml-forest-10);
  border-radius: 18px;
  padding: 12px;
  text-decoration: none;
  color: var(--ml-forest);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
@media (min-width: 1024px) {
  .ml-related-card { padding: 22px; }
}
.ml-related-card:hover {
  background-color: #ffffff;
  border-color: var(--ml-accent-35);
}
.ml-related-card-top {
  display: flex;
  gap: 16px;
  align-items: center;
}
@media (min-width: 1024px) {
  .ml-related-card-top {
    gap: 28px;
    align-items: flex-start;
  }
}
.ml-related-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .ml-related-thumb {
    width: 220px;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
.ml-related-title {
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: var(--ml-forest) !important;
  margin: 0 !important;
  transition: color 0.25s ease;
}
.ml-related-card:hover .ml-related-title {
  color: var(--ml-accent) !important;
}
@media (min-width: 1024px) {
  .ml-related-title { font-size: 20px !important; }
}
.ml-related-excerpt {
  color: var(--ml-excerpt) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 10px 0 0 !important;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ml-related-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  border: 1px solid var(--ml-accent);
  height: 38px;
  padding: 0 12px 0 16px;
  margin-top: 20px;
  font-size: 12px;
  font-family: var(--ml-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ml-accent);
  transition: background-color 0.35s ease, color 0.35s ease;
}
.ml-related-card:hover .ml-related-readmore {
  background-color: var(--ml-accent);
  color: var(--ml-cream);
}
.ml-related-mobile-btn {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.ml-related-mobile-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid var(--ml-accent);
  color: var(--ml-accent);
}
.ml-desktop-only { display: none; }
.ml-mobile-only { display: block; }
@media (min-width: 1024px) {
  .ml-desktop-only { display: block; }
  .ml-desktop-inline { display: inline-flex; }
  .ml-mobile-only { display: none; }
}
@media (max-width: 1023px) {
  .ml-desktop-inline { display: none; }
}

.ml-view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.ml-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  height: 48px;
  padding: 0 22px 0 26px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--ml-font-mono);
  background-color: var(--ml-accent);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.35s ease, transform 0.15s ease;
}
@media (min-width: 1024px) {
  .ml-view-all-btn { height: 52px; }
}
.ml-view-all-btn:hover { background-color: var(--ml-accent-dark); }
.ml-view-all-btn:active { transform: scale(0.95); }

/* ── Bottom Sticky Product Bar ── */
.ml-product-sticky-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 100;
  width: calc(100% - 24px);
  max-width: 780px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.ml-product-sticky-bar.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.ml-product-sticky-bar--container {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--ml-forest-10);
  border-radius: 20px;
  padding: 8px 14px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 28px rgba(30, 61, 30, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ml-product-sticky-bar--content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.ml-product-sticky-bar--image {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ml-sand);
}
.ml-product-sticky-bar--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ml-product-sticky-bar--info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.ml-product-sticky-bar--title {
  font-family: var(--ml-font-body) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  color: var(--ml-forest) !important;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ml-product-sticky-bar--reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ml-accent);
  text-decoration: none;
  font-family: var(--ml-font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.ml-product-sticky-bar--button {
  flex-shrink: 0;
  padding: 12px 26px;
  border-radius: 9999px;
  background: var(--ml-forest);
  color: var(--ml-cream);
  font-family: var(--ml-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.ml-product-sticky-bar--button:hover { background: var(--ml-accent); }
.ml-product-sticky-bar--button:active { transform: scale(0.98); }

@media (max-width: 1023px) {
  .ml-product-sticky-bar {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 16px);
  }
  .ml-product-sticky-bar--container {
    border-radius: 16px;
    padding: 8px;
    gap: 10px;
  }
  .ml-product-sticky-bar--content { gap: 10px; }
  .ml-product-sticky-bar--image { width: 52px; height: 52px; border-radius: 10px; }
  .ml-product-sticky-bar--title { font-size: 14px !important; white-space: normal; }
  .ml-product-sticky-bar--button { padding: 10px 16px; font-size: 12px; }
  .ml-sticky-desktop-only { display: none; }
}
