/**
 * Blog: archive and single article.
 *
 * A verbatim port of the {% stylesheet %} blocks of sections/blog.liquid and sections/article.liquid. Both live here because a blog archive and a blog post are the same area of the site and are never loaded at the same time as any other page.
 *
 * Loaded only on this page, per the project's per-page CSS rule.
 * Depends on tokens.css and base.css.
 *
 * @package maaz-dev
 */



.blog-page { background: #FFFFFF; min-height: 60vh; }
.blog-page__inner { max-width: 1300px; margin: 0 auto; padding: 24px 32px 60px; }


/* Breadcrumb */
.blog-breadcrumb { margin-bottom: 24px; font-family: 'Inter', sans-serif; font-size: 13px; }
.blog-breadcrumb__link { color: #888888; text-decoration: none; }
.blog-breadcrumb__link:hover { color: #8B0000; }
.blog-breadcrumb__sep { color: #CCCCCC; margin: 0 8px; }
.blog-breadcrumb__current { color: #444444; }


/* Header */
.blog-page__header { text-align: center; margin-bottom: 28px; }
.blog-page__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #111111;
  margin: 0 0 12px;
}
.blog-page__desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #666666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}


/* Tag filter */
.blog-page__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.blog-page__tag {
  padding: 8px 16px;
  border-radius: 20px;
  background: #F5F5F5;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #666666;
  text-decoration: none;
  transition: all 0.15s ease;
}
.blog-page__tag:hover { background: #EEEEEE; color: #111111; }
.blog-page__tag.is-active { background: #8B0000; color: #FFFFFF; }


/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}


.blog-grid-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-grid-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }


.blog-grid-card__image-link { display: block; text-decoration: none; }
.blog-grid-card__image-wrap { position: relative; aspect-ratio: 3/2; overflow: hidden; background: #F0F0F0; }
.blog-grid-card__image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-grid-card:hover .blog-grid-card__image { transform: scale(1.05); }
.blog-grid-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #CCCCCC; }
.blog-grid-card__placeholder svg { width: 48px; height: 48px; }


.blog-grid-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: #8B0000; color: #FFFFFF;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}


.blog-grid-card__content { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-grid-card__meta { display: flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; font-size: 12px; color: #AAAAAA; }
.blog-grid-card__title { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 700; color: #111111; margin: 0; line-height: 1.4; }
.blog-grid-card__title a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.blog-grid-card__title a:hover { color: #8B0000; }
.blog-grid-card__excerpt { font-family: 'Inter', sans-serif; font-size: 14px; color: #666666; margin: 0; line-height: 1.6; flex: 1; }
.blog-grid-card__link { display: inline-flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: #8B0000; text-decoration: none; margin-top: auto; transition: gap 0.15s ease; }
.blog-grid-card__link:hover { gap: 10px; }


/* Pagination */
.blog-pagination { display: flex; justify-content: center; margin-bottom: 20px; }
.blog-pagination__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.blog-pagination__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  background: #FFFFFF; border: 1.5px solid #E0E0E0; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: #444444;
  text-decoration: none; transition: all 0.15s ease;
}
.blog-pagination__btn:hover { border-color: #8B0000; color: #8B0000; }
.blog-pagination__btn--active { background: #8B0000; border-color: #8B0000; color: #FFFFFF; font-weight: 700; }


/* Empty state */
.blog-empty { text-align: center; padding: 60px 20px; }
.blog-empty__title { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700; color: #111111; margin: 0 0 10px; }
.blog-empty__text { font-family: 'Inter', sans-serif; font-size: 15px; color: #888888; margin: 0; }


/* Newsletter */
.blog-newsletter { background: #111111; padding: 60px 0; }
.blog-newsletter__inner { max-width: 560px; margin: 0 auto; padding: 0 32px; text-align: center; }
.blog-newsletter__title { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700; color: #FFFFFF; margin: 0 0 10px; }
.blog-newsletter__text { font-family: 'Inter', sans-serif; font-size: 14px; color: #AAAAAA; margin: 0 0 24px; line-height: 1.6; }
.blog-newsletter-form { display: flex; gap: 10px; }
.blog-newsletter-form__input {
  flex: 1; height: 48px; padding: 0 16px; border: 1.5px solid #333333; border-radius: 8px;
  background: #1A1A1A; color: #FFFFFF; font-family: 'Inter', sans-serif; font-size: 14px; outline: none;
}
.blog-newsletter-form__input::placeholder { color: #777777; }
.blog-newsletter-form__input:focus { border-color: #8B0000; }
.blog-newsletter-form__btn {
  padding: 0 26px; height: 48px; background: #8B0000; color: #FFFFFF; border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.15s ease;
}
.blog-newsletter-form__btn:hover { background: #6B0000; }
.blog-newsletter-form__success { font-family: 'Inter', sans-serif; font-size: 13px; color: #4CAF50; margin-top: 12px; }


/* Responsive */
@media screen and (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}


@media screen and (max-width: 768px) {
  .blog-page__inner { padding: 20px 16px 40px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-newsletter-form { flex-direction: column; }
  .blog-newsletter__inner { padding: 0 20px; }
}



/* ==========================================================================
   Single article
   ========================================================================== */


.article-page { background: #FFFFFF; }

/* Breadcrumb */
.article-breadcrumb { padding: 20px 32px 0; }
.article-breadcrumb__inner { max-width: 1400px; margin: 0 auto; font-family: 'Inter', sans-serif; font-size: 13px; }
.article-breadcrumb__link { color: #888888; text-decoration: none; }
.article-breadcrumb__link:hover { color: #8B0000; }
.article-breadcrumb__sep { color: #CCCCCC; margin: 0 8px; }
.article-breadcrumb__current { color: #444444; }

/* Layout: sidebar | content | products */
.article-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 60px;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 40px;
  align-items: start;
}

/* Sidebar */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 32px; }

.sidebar-widget__title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111111;
  margin: 0 0 16px;
}

.sidebar-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sidebar-recent__link { display: flex; gap: 10px; text-decoration: none; align-items: flex-start; }
.sidebar-recent__image { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #F0F0F0; }
.sidebar-recent__image--placeholder { background: #F0F0F0; }
.sidebar-recent__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sidebar-recent__title-text { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: #111111; line-height: 1.4; overflow-wrap: anywhere; }
.sidebar-recent__link:hover .sidebar-recent__title-text { color: #8B0000; }
.sidebar-recent__date { font-family: 'Inter', sans-serif; font-size: 11px; color: #999999; }

.sidebar-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tags__link {
  display: inline-block; padding: 6px 12px; background: #F5F5F5; border-radius: 20px;
  font-family: 'Inter', sans-serif; font-size: 12px; color: #555555; text-decoration: none; transition: all 0.15s ease;
}
.sidebar-tags__link:hover { background: #8B0000; color: #FFFFFF; }

.sidebar-widget--newsletter { padding: 20px; background: #FAFAFA; border-radius: 12px; }
.sidebar-widget__text { font-family: 'Inter', sans-serif; font-size: 13px; color: #666666; margin: 0 0 14px; line-height: 1.6; }
.sidebar-newsletter-form__input {
  width: 100%; height: 42px; padding: 0 14px; border: 1.5px solid #E0E0E0; border-radius: 8px; margin-bottom: 8px;
  font-family: 'Inter', sans-serif; font-size: 13px; outline: none;
}
.sidebar-newsletter-form__input:focus { border-color: #8B0000; }
.sidebar-newsletter-form__btn {
  width: 100%; height: 40px; background: #8B0000; color: #FFFFFF; border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer;
}
.sidebar-newsletter-form__btn:hover { background: #6B0000; }
.sidebar-newsletter-form__success { font-family: 'Inter', sans-serif; font-size: 12px; color: #4CAF50; margin-top: 8px; }

/* Article main */
.article-main { min-width: 0; }
.article-main__hero { border-radius: 16px; overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/9; background: #F8F8F8; }
.article-main__hero-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-main__tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.article-main__tag {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: #8B0000; background: #FFF5F5; padding: 4px 12px; border-radius: 20px;
}

.article-main__title {
  font-family: 'Inter', sans-serif; font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; color: #111111;
  margin: 0 0 16px; line-height: 1.25; overflow-wrap: anywhere;
}

.article-main__meta { font-family: 'Inter', sans-serif; font-size: 13.5px; color: #999999; margin-bottom: 32px; }
.article-main__meta-sep { margin: 0 8px; }

.article-main__content { font-family: 'Inter', sans-serif; font-size: 16px; color: #444444; line-height: 1.85; }
.article-main__content p { margin: 0 0 20px; }
.article-main__content h2 { font-size: 22px; font-weight: 700; color: #111111; margin: 36px 0 16px; }
.article-main__content h3 { font-size: 18px; font-weight: 700; color: #111111; margin: 28px 0 12px; }
.article-main__content img { border-radius: 12px; margin: 24px 0; max-width: 100%; height: auto; }
.article-main__content ul, .article-main__content ol { margin: 0 0 20px; padding-left: 22px; }
.article-main__content li { margin-bottom: 8px; }
.article-main__content a { color: #8B0000; }
.article-main__content pre { overflow-x: auto; }
.article-main__content blockquote {
  border-left: 3px solid #8B0000; padding: 4px 0 4px 20px; margin: 24px 0; font-style: italic; color: #666666;
}

/* ---------------------------------------------------------------
   ARTICLE TABLES
   Solid header bar, zebra rows, visible cell borders, and a
   horizontal scroller (added by the script below) so a wide table
   never breaks the page on a phone.
   --------------------------------------------------------------- */
.rlr-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border: 1px solid var(--rlr-table-border, #D9D9D9);
  border-radius: 8px;
}

.article-main__content table,
.rlr-table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: var(--rlr-table-font-size, 14px);
  line-height: 1.5;
  color: #222222;
  background: #FFFFFF;
}

/* The first row is styled as the header even when the editor omits <thead> */
.article-main__content table thead th,
.article-main__content table thead td,
.article-main__content table tr:first-child th,
.rlr-table-wrap table thead th,
.rlr-table-wrap table thead td,
.rlr-table-wrap table tr:first-child th {
  background: var(--rlr-table-head-bg, #8B0000);
  color: var(--rlr-table-head-fg, #FFFFFF);
  font-weight: 700;
  text-align: left;
  vertical-align: middle;
  padding: 12px 14px;
  border: 1px solid var(--rlr-table-head-bg, #8B0000);
  line-height: 1.35;
}

.article-main__content table td,
.article-main__content table tbody th,
.rlr-table-wrap table td,
.rlr-table-wrap table tbody th {
  padding: 11px 14px;
  border: 1px solid var(--rlr-table-border, #D9D9D9);
  vertical-align: top;
  text-align: left;
}

.article-main__content table tbody tr:nth-child(even),
.rlr-table-wrap table tbody tr:nth-child(even) {
  background: var(--rlr-table-stripe, #F6F6F6);
}

.rlr-table-wrap table a { color: #8B0000; }
.rlr-table-wrap table p { margin: 0; }

/* ---------------------------------------------------------------
   FREE SHIPPING BADGE
   --inline : sits under the price inside the card
   --corner : pinned to the top-left corner of the card
   --------------------------------------------------------------- */
.rlr-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--rlr-badge-bg, #0F7B3C);
  color: var(--rlr-badge-fg, #FFFFFF);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}
.rlr-free-badge svg { width: 12px; height: 12px; flex: 0 0 auto; }
.rlr-free-badge--inline { margin-top: 6px; }
.rlr-free-badge--corner {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-size: 9px; padding: 4px 7px; gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.rlr-free-badge--corner svg { width: 11px; height: 11px; }

.article-main__share { display: flex; align-items: center; gap: 10px; margin: 40px 0; padding: 20px 0; border-top: 1px solid #EEEEEE; border-bottom: 1px solid #EEEEEE; flex-wrap: wrap; }
.article-main__share-label { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: #888888; margin-right: 4px; }
.article-main__share-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: #F5F5F5; border: none; border-radius: 50%; color: #444444; text-decoration: none; cursor: pointer; transition: all 0.15s ease;
}
.article-main__share-btn:hover { background: #8B0000; color: #FFFFFF; }

.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; }
.article-nav__link { flex: 1; min-width: 0; text-decoration: none; padding: 16px 18px; border: 1px solid #EEEEEE; border-radius: 10px; transition: border-color 0.15s ease; }
.article-nav__link:hover { border-color: #8B0000; }
.article-nav__link--next { text-align: right; }
.article-nav__label { display: block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: #8B0000; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.article-nav__title { display: block; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #111111; }

/* Right — products rail */
.article-products { position: sticky; top: 100px; min-width: 0; }
.article-products__title { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #111111; margin: 0 0 16px; }
.article-products__list { display: flex; flex-direction: column; gap: 14px; }

.article-product-card {
  position: relative;
  display: flex; gap: 12px; text-decoration: none; padding: 12px; border: 1px solid #EEEEEE; border-radius: 12px; transition: all 0.15s ease;
}
.article-product-card:hover { border-color: #8B0000; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.article-product-card__image-wrap { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #F8F8F8; flex-shrink: 0; }
.article-product-card__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-product-card__info { min-width: 0; }
.article-product-card__title { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: #111111; margin: 0 0 4px; line-height: 1.4; overflow-wrap: anywhere; }
.article-product-card__price { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: #8B0000; margin: 0; }
.article-product-card__price--compare { color: #AAAAAA; text-decoration: line-through; font-weight: 400; font-size: 11px; margin-right: 4px; }

/* FAQ section (below the article layout) */
.article-faq { max-width: 1400px; margin: 0 auto; padding: 0 32px 60px; }
.article-faq__inner { max-width: 820px; margin: 0 auto; }
.article-faq__title { font-family: 'Inter', sans-serif; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; color: #111111; margin: 0 0 24px; text-align: center; }
.article-faq__list { display: flex; flex-direction: column; gap: 12px; }
.article-faq__item { border: 1px solid #EEEEEE; border-radius: 10px; padding: 4px 18px; }
.article-faq__question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: #111111; }
.article-faq__question::-webkit-details-marker { display: none; }
.article-faq__icon { flex-shrink: 0; transition: transform 0.2s ease; color: #8B0000; }
.article-faq__item[open] .article-faq__icon { transform: rotate(180deg); }
.article-faq__answer { font-family: 'Inter', sans-serif; font-size: 14.5px; line-height: 1.7; color: #444444; padding: 0 0 16px; }
.article-faq__answer p { margin: 0 0 12px; }
.article-faq__answer p:last-child { margin-bottom: 0; }

@media screen and (max-width: 768px) {
  .article-faq { padding: 0 16px 40px; }
}

/* Keyboard focus visibility */
.article-page a:focus-visible,
.article-page button:focus-visible {
  outline: 2px solid #8B0000;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .article-layout { grid-template-columns: 200px 1fr 240px; gap: 28px; }
}

@media screen and (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar, .article-products { position: static; }
  .article-sidebar { order: 2; flex-direction: row; flex-wrap: wrap; }
  .article-sidebar .sidebar-widget { flex: 1; min-width: 220px; }
  .article-main { order: 1; }
  .article-products { order: 3; }
  .article-products__list { flex-direction: row; overflow-x: auto; gap: 12px; padding-bottom: 4px; }
  .article-product-card { flex-direction: column; min-width: 140px; }
  .article-product-card__image-wrap { width: 100%; height: 120px; }
}

@media screen and (max-width: 768px) {
  .article-breadcrumb { padding: 16px 16px 0; }
  .article-breadcrumb__current { display: none; }
  .article-layout { padding: 16px 16px 40px; gap: 32px; }
  .article-nav { flex-direction: column; }
  .article-nav__link--next { text-align: left; }
  .article-main__content { font-size: 15.5px; line-height: 1.75; }
  .article-main__content h2 { font-size: 20px; margin: 28px 0 12px; }
  .article-main__content h3 { font-size: 17px; }
  .article-main__hero { border-radius: 12px; margin-bottom: 20px; }
  .rlr-table-wrap { margin: 18px 0; border-radius: 6px; }
  .article-main__content table,
  .rlr-table-wrap table { min-width: 480px; font-size: 13px; }
  .rlr-table-wrap table th,
  .rlr-table-wrap table td { padding: 9px 11px; }
  .sidebar-newsletter-form__input { font-size: 16px; } /* stops iOS zooming on focus */
}

@media screen and (max-width: 480px) {
  .article-sidebar .sidebar-widget { min-width: 100%; }
  .rlr-free-badge { font-size: 9px; padding: 4px 8px; }
  .rlr-free-badge svg { width: 11px; height: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-product-card,
  .article-main__share-btn,
  .article-nav__link { transition: none; }
}

