@media (min-width: 0) {
  .mp-sidebar {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
  }

  .mp-sidebar .block {
    border: none;
    margin-bottom: 18px;
  }

  /* Search box */
  .mp-sidebar .block-search {
    box-shadow: 0 10px 30px rgba(25, 161, 13, 0.08);
    border: 1px solid #c5eec0;
    border-radius: 12px;
    padding: 12px 12px 6px;
  }

  .mp-sidebar .block-search .block-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #0f172a;
  }

  .mp-sidebar .block-search input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  /* Section headers */
  .mp-sidebar .block-title,
  .mp-sidebar .widget-title {
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 12px;
    border: none;
  }

  /* Popular/latest items cards */
  .mp-sidebar .mp-list-post,
  .mp-sidebar .block-content .post-item {
    border: 1px solid #d7f3cf;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    padding: 12px;
    margin-bottom: 14px;
    background: #fff;
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .mp-sidebar .mp-list-post img {
    border-radius: 10px;
    width: 88px;
    height: auto;
  }

  .mp-sidebar .mp-list-post .post-title,
  .mp-sidebar .block-content .post-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.35;
    color: #0f172a;
  }

  .mp-sidebar .mp-list-post .post-meta,
  .mp-sidebar .block-content .post-meta {
    font-size: 13px;
    color: #6b7280;
  }

  /* Lists (categories, archives, topics, tags) */
  .mp-sidebar .block-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mp-sidebar .block-content li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .mp-sidebar .block-content li:last-child {
    border-bottom: none;
  }

  .mp-sidebar .block-content li a {
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
  }

  .mp-sidebar .block-content li .fa,
  .mp-sidebar .block-content li i {
    color: #19a10d;
    font-size: 16px;
    width: 18px;
    text-align: center;
  }

  /* Tags */
  .mp-sidebar .tagcloud a {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #d7f3cf;
    background: #f3fbf0;
    color: #0f172a;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
  }
}

@media (max-width: 767px) {
  /* Blog post page: related products slider */
  .block-blog-related.products-same-post.page-products.mpcss {
    width: 100% !important;
    margin: 10px 0 18px;
  }

  .block-blog-related.products-same-post.page-products.mpcss h2 {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #111827;
    margin-bottom: 10px;
  }

  .block-blog-related.products-same-post.page-products.mpcss .products-grid .product-items,
  .block-blog-related.products-same-post.page-products .product-items {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 4px;
  }

  /* For Mageplaza templates the items live directly under .products-grid > ol.product-items > li */
  .block-blog-related.products-same-post.page-products.mpcss .product-items > .product-item,
  .block-blog-related.products-same-post.page-products .product-items > .product-item {
    flex: 0 0 55%;
    max-width: 55%;
    min-width: 55%;
    scroll-snap-align: start;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(25, 161, 13, 0.08);
  }

  .block-blog-related.products-same-post.page-products.mpcss .product-items > .product-item .product-item-info {
    width: 100% !important;
  }

  .block-blog-related.products-same-post.page-products.mpcss .product-item-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
  }

  .block-blog-related.products-same-post.page-products.mpcss .price-box {
    margin-top: 6px;
  }

  .block-blog-related.products-same-post.page-products.mpcss .actions-primary {
    margin-top: 8px;
  }

  .block-blog-related.products-same-post.page-products.mpcss .action.tocart {
    width: 100%;
    border-radius: 10px;
  }
}
