/* Hide Astra header/footer to avoid mixed branding */
.ast-primary-header-bar, .ast-desktop-header, .ast-mobile-header, header.site-header { display:none !important; }
.site-footer, footer.site-footer { display:none !important; }

/* Space for fixed header */
body{ padding-top: 74px; }
.admin-bar body{ padding-top: 106px; }

/* Hide theme title/meta and previous/next navigation on book pages */
.single-acpub_book .entry-header,
.single-acpub_book .entry-title,
.single-acpub_book .entry-meta,
.single-acpub_book .post-navigation,
.single-acpub_book .navigation.post-navigation{
  display:none !important;
}

/* Header/footer */
.acpub-header, .acpub-footer{ background:#fff; }
.acpub-header{
  position: fixed; top:0; left:0; right:0; z-index: 9999;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.acpub-footer{
  border-top:1px solid rgba(0,0,0,.08);
  margin-top: 28px;
}
.acpub-header__inner, .acpub-footer__inner{
  max-width:1200px; margin:0 auto; padding:12px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.acpub-brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.acpub-brand__logo{ height:40px; width:auto; display:block; }
.acpub-brand__name{ font-weight:900; color:#111; letter-spacing:.2px; }
.acpub-menu{ list-style:none; margin:0; padding:0; display:flex; gap:16px; flex-wrap:nowrap; align-items:center; }
.acpub-menu li{ margin:0; white-space:nowrap; }
.acpub-menu a{ text-decoration:none; font-weight:800; color:#2f8f4e; }
.acpub-menu a:hover{ opacity:.85; }

/* Books (cards) */
.acpub-books{ margin:24px 0; }
.acpub-books__filters{ display:flex; flex-wrap:wrap; gap:18px; padding:16px 18px; border:1px solid rgba(0,0,0,.08); border-radius:14px; background: rgba(0,0,0,.02); }
.acpub-filter-group{ display:flex; flex-wrap:wrap; gap:12px 14px; align-items:center; }
.acpub-filter-title{ font-weight:900; margin-right:8px; }
.acpub-books__grid{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
@media (max-width: 1100px){ .acpub-books__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px){ .acpub-books__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px){ .acpub-books__grid{ grid-template-columns: 1fr; } }
.acpub-book{ border:1px solid rgba(0,0,0,.08); border-radius:18px; overflow:hidden; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.05); padding:14px; }
.acpub-book__cover{ display:block; border-radius:14px; overflow:hidden; background: rgba(0,0,0,.03); }
.acpub-book__cover img{ width:100%; height:auto; display:block; }
.acpub-book__cover--placeholder{ aspect-ratio:2/3; display:flex; align-items:center; justify-content:center; font-weight:800; color: rgba(0,0,0,.55); }

/* Availability: left aligned */
.acpub-status{ display:flex; align-items:center; justify-content:flex-start; gap:12px; margin: 10px 0 8px; }
.acpub-status__label{ font-size:.85rem; opacity:.8; }
.acpub-traffic{ display:flex; gap:8px; }
.acpub-traffic__dot{ width:12px; height:12px; border-radius:999px; display:inline-block; }

.acpub-book__title{ margin:10px 0 4px; font-size:1.05rem; line-height:1.2; }
.acpub-book__title a{ text-decoration:none; color:#111; }
.acpub-book__meta{ opacity:.85; font-size:.95rem; }
.acpub-book__meta--small{ opacity:.75; font-size:.85rem; margin-top:3px; }
.acpub-book__actions{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.acpub-btn{ display:inline-block; padding:9px 12px; border-radius:999px; background:#111; color:#fff !important; text-decoration:none; font-weight:900; font-size:.9rem; }
.acpub-btn--ghost{ background: transparent; color:#111 !important; border:1px solid rgba(0,0,0,.2); }

/* Book detail */
.acpub-bookdetail__title{ margin-top:0; }
.acpub-bookdetail__subtitle{ font-weight:600; opacity:.8; margin-bottom:10px; }
.acpub-bookdetail__coverwrap{ margin: 8px 0 10px; max-width: 720px; }
.acpub-bookdetail__coverimg{ width:100%; height:auto; border-radius:16px; display:block; }
.acpub-bookdetail__facts{ display:grid; grid-template-columns: 160px 1fr; gap: 8px 12px; margin: 14px 0; max-width: 720px; }
.acpub-bookdetail__facts dt{ font-weight:800; opacity:.8; }
.acpub-bookdetail__facts dd{ margin:0; }
.acpub-bookdetail__section{ margin: 14px 0; max-width: 720px; }
.acpub-bookdetail__order{ margin-top: 18px; padding-top: 12px; border-top:1px solid rgba(0,0,0,.10); display:flex; align-items:center; gap:14px; flex-wrap:wrap; max-width: 720px; }
.acpub-bookdetail__orderhead{ font-weight:900; }
