/* AUTOSTYLE SHOP — блог (blog.html + article.html).
   Канон: нуль hex — лише var(--c-* / --shop-* / --sf-*), відступи лише var(--shop-s-*).
   Підключення четвертим: tokens.css → storefront.css → pages/pages.css → pages/blog.css.
   Картки статей (.shop-blog-card) і сітка (.shop-blog-grid) — у storefront.css. */

/* ---------- blog.html: пагінація (канон каталогу) ---------- */
.blog-pagination {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--shop-s-2);
  margin-top: var(--shop-s-10);
}
.blog-pagination__item {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding-inline: var(--shop-s-2);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-sm);
  font-size: 14px; font-weight: 600;
  transition: border-color var(--shop-duration-base), color var(--shop-duration-base);
}
.blog-pagination__item:hover { border-color: var(--shop-accent); color: var(--shop-link); }
.blog-pagination__item.is-active {
  background: var(--shop-accent); color: var(--shop-accent-on);
  border-color: var(--shop-accent);
}
.blog-pagination__gap {
  min-width: var(--shop-s-6);
  text-align: center;
  color: var(--shop-text-muted);
}

/* ---------- article.html: мета у темній шапці ---------- */
.article-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--shop-s-2) var(--shop-s-5);
  margin: var(--shop-s-4) 0 0;
  font-size: 13px;
  color: var(--sf-frame-muted);
}
.article-hero__meta > * { display: inline-flex; align-items: center; gap: var(--shop-s-2); }
.article-hero__meta svg { flex: 0 0 auto; color: var(--sf-frame-accent); }

/* ---------- обкладинка 16:9 ---------- */
.article-cover {
  max-width: 860px;
  margin-inline: auto;
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
}
.article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- тіло статті: колонка ~720px ---------- */
.article-body {
  max-width: 720px;
  margin: var(--shop-s-10) auto 0;
}
.article-body > p {
  margin: var(--shop-s-4) 0 0;
  font-size: 16px;
  line-height: 1.75;
}
.article-body h2 {
  margin: var(--shop-s-12) 0 0;
  font-family: var(--shop-font-display); font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.35;
  text-transform: uppercase; letter-spacing: var(--shop-tracking-brand);
}
.article-body a { color: var(--shop-link); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
/* кнопки внутри тела статьи не наследуют цвет ссылок */
.article-body a.storefront-btn--primary { color: var(--shop-accent-on); }
.article-body a.storefront-btn--primary:hover { text-decoration: none; }

/* список з плоскими лініями-маркерами (канон beam-short) */
.article-body ul {
  list-style: none;
  margin: var(--shop-s-5) 0 0; padding: 0;
  display: grid; gap: var(--shop-s-3);
}
.article-body ul li {
  display: flex; align-items: flex-start;
  gap: var(--shop-s-3);
  font-size: 15px; line-height: 1.6;
}
.article-body ul li::before {
  content: '';
  flex: 0 0 auto;
  width: var(--shop-s-6); height: 2px;
  margin-top: var(--shop-s-2);
  border-radius: var(--shop-radius-full);
  background: var(--c-ice-deep);
}

/* ---------- цитата-порада в бренді ---------- */
.article-tip {
  margin: var(--shop-s-8) 0 0;
  padding: var(--shop-s-5) var(--shop-s-6);
  background: var(--c-bordo-pastel);
  border-left: 3px solid var(--c-bordo);
  border-radius: var(--shop-radius-md);
}
.article-tip p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}
.article-tip strong { color: var(--c-bordo); }

/* ---------- врізка-картка товару ---------- */
.article-product {
  margin: var(--shop-s-8) 0 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--shop-s-5);
  padding: var(--shop-s-5);
  background: var(--shop-bg-elevated);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-md);
}
.article-product__img {
  flex: 0 0 auto;
  width: 128px;
  border-radius: var(--shop-radius-sm);
  overflow: hidden;
  background: var(--shop-bg-alt);
}
.article-product__img img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.article-product__info { flex: 1 1 220px; min-width: 0; }
.article-product__eyebrow {
  margin: 0;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--shop-tracking-brand);
  color: var(--shop-text-muted);
}
.article-product__name {
  margin: var(--shop-s-1) 0 0;
  font-size: 16px; font-weight: 700; line-height: 1.35;
}
.article-product__name a { color: var(--shop-text); font-weight: 700; }
.article-product__name a:hover { color: var(--shop-link); text-decoration: none; }
.article-product__price {
  margin: var(--shop-s-2) 0 0;
  font-size: 18px; font-weight: 800;
  color: var(--c-ice-deep);
}
.article-product > .storefront-btn { flex: 0 0 auto; }

/* ---------- «Читайте також» — пастельна секція ---------- */
.article-related { background: var(--shop-bg-alt); }

/* ---- блок автора ---- */
.article-author {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--shop-s-4);
  margin-top: var(--shop-s-12);
  padding: var(--shop-s-5) var(--shop-s-6);
  background: var(--shop-bg-alt);
  border-radius: var(--shop-radius-md);
}
.article-author__avatar {
  flex: 0 0 auto;
  width: var(--shop-s-16); height: var(--shop-s-16);
  display: grid; place-items: center;
  border-radius: var(--shop-radius-full);
  background: var(--sf-frame-bg);
  color: var(--shop-bg);
  font-family: var(--shop-font-display); font-weight: 700; font-size: 20px;
}
.article-author__avatar em { font-style: normal; color: var(--sf-frame-accent); }
.article-author__info { flex: 1 1 260px; min-width: 0; }
.article-author__label {
  margin: 0;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--shop-tracking-wide);
  color: var(--shop-text-muted);
}
.article-author__name { margin: var(--shop-s-1) 0 0; font-weight: 700; font-size: 16px; }
.article-author__bio { margin: var(--shop-s-1) 0 0; font-size: 14px; line-height: 1.55; color: var(--shop-text-muted); }
.article-author__links { display: flex; gap: var(--shop-s-4); flex: 0 0 auto; font-size: 14px; font-weight: 600; }
.article-author__links a { color: var(--shop-link); }
.article-author__links a:hover { text-decoration: underline; }
