/* =========================================================================
   PPH Chrome  ->  Astra header + footer hide      (plugin 5.6)
   -------------------------------------------------------------------------
   This is the same CSS that used to live in Customizer -> Additional CSS,
   just made a little safer. It now ships inside the plugin, so please REMOVE
   it from the Customizer (keeping it in both places only causes confusion).

   Header and footer are hidden across the whole site, as chosen.
   To bring them back, add this line to wp-config.php:
       define('PPH_SHOW_ASTRA_CHROME', true);
   ========================================================================= */


/* --- Hide header (whole site) --- */
#masthead,
.site-header,
#ast-mobile-header,
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-main-header-wrap,
.ast-sticky-shrunk .main-header-bar,
.ast-header-break-point .main-header-bar { display: none !important; }

/* --- Hide footer (whole site) --- */
#colophon,
.site-footer,
.ast-footer-overlay,
.footer-adv,
.ast-small-footer { display: none !important; }

/* --- Remove the extra gap above and below --- */
.site-content,
#content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Astra prints its own page title as well. Our template already shows the
   title, so this stops a duplicate title from appearing. */
.ast-archive-description,
.ast-single-post-order .entry-title.ast-archive-title { display: none !important; }

/* With the header hidden, the Astra admin-bar offset misbehaves. */
.admin-bar .site-content,
.admin-bar #content { margin-top: 0 !important; }

/* Give WooCommerce pages the full width, since there is no header or footer */
.woocommerce #content .ast-container,
.woocommerce-page #content .ast-container {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* -------------------------------------------------------------------------
   Cart / checkout / account pages get no top padding, because the plugin
   now prints a real clickable Back link at the top left of those pages
   (see shop/pph-shop.php). The old decorative bar has been removed, since a
   link the customer can actually click is far more useful.
   ------------------------------------------------------------------------- */

.woocommerce-cart #content,
.woocommerce-checkout #content,
.woocommerce-account #content { padding-top: 0 !important; }
