/*
 * Theme-compatibility rules — loaded ONLY when the active theme is NOT codbrand.
 *
 * The storefront renders identically under any theme, but a general-purpose theme
 * wraps it in markup the plugin has to neutralise: Astra's `#primary` /
 * `.ast-container`, Hello Elementor's `.hello-elementor-default`, a block theme's
 * `.wp-site-blocks`, and the `.page-header` / `.entry-meta` / `.entry-title`
 * furniture most classic themes print around the content.
 *
 * Every selector below targets markup our own theme never emits, so under codbrand
 * these rules were pure weight — and one of them was worse than weight:
 *
 *     .ast-container #content, main#content { max-width: 100%; }
 *
 * `main#content` also matches codbrand's own wrapper, and an ID selector (1,0,1)
 * outranks `.cl-boxed-mode` (0,1,0). Measured on chhiwat.ma 30-08-2026: both boxed
 * width modes computed `max-width: 100%` instead of `1440px`, so picking "Boxed" in
 * the page options silently did nothing. Splitting the file fixed that as a
 * side-effect rather than by patching specificity.
 *
 * DO NOT add a rule here that targets plugin-owned (`.cl-*`) markup, and do not add
 * one that a builder (Elementor, Gutenberg) needs regardless of theme — those belong
 * in public.css, which every theme loads.
 *
 * Enqueued by public/public-hooks.php behind `'codbrand' !== get_template()`.
 * get_template() returns the PARENT slug, so a codbrand child theme skips it too.
 */

/*----- hello elementor theme fix ------*/
.home .page-header {
    display: none !important;
}
.hello-elementor-default .alignfull, .hello-elementor-default .alignfull img {
    width: inherit !important;
}
.hello-elementor-default .alignfull {
    margin-inline: auto;
}

/*----- classic-theme furniture the storefront replaces -----*/
.single h1.entry-title, .entry-header.ast-no-thumbnail {
    display: none !important;
}
.entry-meta { display: none;}

/*----- block themes (Twenty Twenty-Five and friends) -----*/
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: fit-content;
}
:where(.wp-site-blocks) > * {
    margin-block-start: auto;
}
body > .wp-site-blocks {
    padding: 0 !important;
}
.wp-site-blocks main {
    padding-top: 0 !important;
}
.wp-site-blocks:has(.cl-header-container) {
    margin-block-start: 0 !important;
}

/*----- astra theme -----*/
body #primary {
    padding-top: 0px !important;
    margin-top: 0 !important;
}
.single-product #primary ,
.single-product .type-product {
    padding-top: 0px;
    padding: 0;
}
.ast-container #content, main#content {
    width: 100%;
    max-width: 100%;
}
.site-content .ast-container{
    flex-direction: column;
}
.single-product article {
    background: transparent !important;
}
