/* Shared polish for public pages (non-home). Scoped via body.page-front + page-* types. */

/* In-content ad slots (parity with homepage .home-content-ad-slot) */
.front-content-ad-slot {
  padding: 0.5rem 0 1.25rem;
}

.front-content-ad-slot:empty {
  display: none;
  padding: 0;
}

.front-content-ad-slot > .ad-slot {
  margin-top: 0;
}

.front-content-ad-slot > .ad-slot:last-child {
  margin-bottom: 0;
}

/* Hero badges — consistent icon alignment across blog + genres */
.blog-hero-badge,
.genres-hero-badge {
  gap: 0.45rem;
}

.blog-hero-badge i,
.genres-hero-badge i {
  line-height: 1;
  flex-shrink: 0;
}

/* Blog listing hero: avoid horizontal bleed on small screens */
@media (max-width: 767.98px) {
  body.page-blog .blog-page .blog-hero {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-xl, 0.75rem);
  }

  body.page-blog .blog-page > .container,
  body.page-categories .genres-page > .container {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
}

/* Search / browse: keep first section flush with chrome */
body.page-search main#main-content > .search-page-chawkbazar:first-child,
body.page-category main#main-content > .search-page-chawkbazar:first-child,
body.page-brand main#main-content > .search-page-chawkbazar:first-child,
body.page-merchant main#main-content > .search-page-chawkbazar:first-child,
body.page-author main#main-content > .search-page-chawkbazar:first-child {
  margin-top: 0;
}

/* Product page: stable background under sticky header */
body.page-product main#main-content > .pdp:first-child {
  margin-top: 0;
}

body.page-account main#main-content {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 12rem);
}