/* Sadek Music blog (cms/blog): list grid, article typography, product row.
   Own file, versioned by mtime (stylesheet.css is cached by Cloudflare). */
.as-blog { --blog-accent: #cc0000; --blog-ink: #222; --blog-muted: #6b7280; --blog-line: #e5e7eb; --blog-soft: #f5f5f5; overflow-wrap: break-word; }
.as-blog #content { min-width: 0; }

/* Heading block */
.as-blog-head { margin: .25rem 0 1rem; }
.as-blog-head h1 { font-size: 2rem; line-height: 1.2; font-weight: 700; color: var(--blog-ink); margin: 0 0 .5rem; }
.as-blog-intro { font-size: 1rem; line-height: 1.6; color: #4b5563; max-width: 760px; margin: 0; }

/* Topic chips */
.as-blog-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.as-blog-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border: 1px solid var(--blog-line); border-radius: 999px; background: #fff; color: var(--blog-ink); font-size: .875rem; font-weight: 600; line-height: 1.2; text-decoration: none; }
.as-blog-chip span { font-weight: 400; color: var(--blog-muted); font-size: .8rem; }
.as-blog-chip:hover, .as-blog-chip:focus-visible { border-color: var(--blog-accent); color: var(--blog-accent); text-decoration: none; }
.as-blog-chip.active { background: var(--blog-accent); border-color: var(--blog-accent); color: #fff; }
.as-blog-chip.active span { color: rgba(255, 255, 255, .85); }

/* Card grid: 3 / 2 / 1 */
.as-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 991.98px) { .as-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (max-width: 575.98px) { .as-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }
.as-blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--blog-line); border-radius: 10px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.as-blog-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.as-blog-card-img { display: block; aspect-ratio: 3 / 2; background: var(--blog-soft); overflow: hidden; }
.as-blog-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.as-blog-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1rem 1.1rem 1.1rem; }
.as-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; color: var(--blog-muted); margin-bottom: .5rem; }
.as-blog-tag { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: #fdecec; color: #a30000; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
a.as-blog-tag:hover { background: var(--blog-accent); color: #fff; text-decoration: none; }
.as-blog-card-title { font-size: 1.1rem; line-height: 1.35; font-weight: 700; margin: 0 0 .5rem; }
.as-blog-card-title a { color: var(--blog-ink); text-decoration: none; }
.as-blog-card-title a:hover { color: var(--blog-accent); }
.as-blog-excerpt { font-size: .9rem; line-height: 1.55; color: #4b5563; margin: 0 0 .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-blog-more { margin-top: auto; font-size: .875rem; font-weight: 700; color: var(--blog-accent); text-decoration: none; }
.as-blog-more:hover { text-decoration: underline; }
.as-blog-more i { font-size: .75rem; margin-left: .2rem; }
.as-blog-pagination { margin: .5rem 0 2rem; }
.as-blog-pagination .pagination { flex-wrap: wrap; }

/* Article */
.as-blog-article { max-width: 760px; margin: 0 auto 2rem; }
.as-blog-article-head { margin: .5rem 0 1.25rem; }
.as-blog-article-head h1 { font-size: 2.1rem; line-height: 1.2; font-weight: 700; color: var(--blog-ink); margin: .25rem 0 .75rem; }
.as-blog-byline { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .875rem; color: var(--blog-muted); }
.as-blog-hero { margin: 0 0 1.75rem; border-radius: 10px; overflow: hidden; background: var(--blog-soft); aspect-ratio: 3 / 2; }
.as-blog-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.as-blog-body { max-width: 720px; margin: 0 auto; font-size: 1.0625rem; line-height: 1.75; color: #2b2b2b; }
.as-blog-body p { margin: 0 0 1.15em; }
.as-blog-body h2 { font-size: 1.5rem; line-height: 1.3; font-weight: 700; color: var(--blog-ink); margin: 2em 0 .6em; }
.as-blog-body h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 700; color: var(--blog-ink); margin: 1.6em 0 .5em; }
.as-blog-body h4, .as-blog-body h5, .as-blog-body h6 { font-size: 1.0625rem; font-weight: 700; color: var(--blog-ink); margin: 1.4em 0 .5em; }
.as-blog-body ul, .as-blog-body ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.as-blog-body li { margin: 0 0 .4em; }
.as-blog-body a { color: var(--blog-accent); text-decoration: underline; text-underline-offset: 2px; }
.as-blog-body img, .as-blog-body iframe, .as-blog-body video { max-width: 100%; height: auto; border-radius: 8px; }
.as-blog-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.15em; }
.as-blog-body td, .as-blog-body th { border: 1px solid var(--blog-line); padding: .4rem .6rem; }
.as-blog-body b, .as-blog-body strong { color: #111; }
@media (max-width: 575.98px) {
  .as-blog-head h1 { font-size: 1.6rem; }
  .as-blog-article-head h1 { font-size: 1.65rem; }
  .as-blog-body { font-size: 1.0625rem; line-height: 1.7; }
  .as-blog-body h2 { font-size: 1.3rem; }
}

/* Products in this article (same card extras as the product page's related row) */
.as-blog-products, .as-blog-related { border-top: 1px solid var(--blog-line); padding-top: 1.5rem; margin-top: 1rem; }
.as-blog-products h2, .as-blog-related h2 { font-size: 1.4rem; font-weight: 700; color: var(--blog-ink); margin: 0 0 1rem; }
.as-pp-related { margin: 1rem 0 1.5rem; }
.as-pp-related .product-thumb { height: 100%; margin-bottom: 0; min-height: 0 !important; max-height: none !important; display: flex; flex-direction: column; }
.as-pp-related .product-thumb .content { flex: 1 1 auto; display: flex; flex-direction: column; }
.as-pp-related .product-thumb .description { flex: 1 1 auto; }
.as-pp-related .product-thumb .content .product-action { position: static !important; margin-top: auto; }
.as-pp-related .product-thumb .image img { height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.as-pp-related .product-thumb h4 { font-size: .9rem; line-height: 1.3; }
.as-pp-related .product-thumb .as-card-brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #6c757d; margin-bottom: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-pp-related .product-thumb .as-card-tabby { font-size: .75rem; color: #3d3d3d; margin-top: .1rem; }
.as-pp-related .product-thumb .as-card-stock { font-size: .75rem; font-weight: 600; margin-top: .2rem; }
.as-pp-related .as-stock-in { color: #198754; }
.as-pp-related .as-stock-low { color: #b45309; }
.as-pp-related .as-stock-pre, .as-pp-related .as-stock-order { color: #0b5ed7; }
.as-pp-related .as-stock-out { color: #6c757d; }
@media (max-width: 575.98px) {
  .as-pp-related .product-thumb .content { padding: .5rem; }
  .as-pp-related .product-thumb .description { padding: .25rem; }
  .as-pp-related .product-thumb h4 { font-size: .82rem; }
  .as-pp-related .product-thumb .as-card-tabby { display: none; }
  .as-pp-related .product-thumb .button-group button { font-size: .78rem; padding: .4rem .2rem; white-space: nowrap; }
  .as-pp-related .product-thumb .button-group button .fa-shopping-cart { display: none; }
}
.as-blog-related .as-blog-card-title { font-size: 1rem; }
.as-blog-back { margin: 0 0 2rem; font-weight: 700; }
.as-blog-back a { color: var(--blog-accent); text-decoration: none; }
