/* Bagoogle Unified UI v3 — REHub/WooCommerce skin with single-layer surfaces */
body.bgu-theme {
    --bgu-accent:#c656ff;--bgu-accent-rgb:198,86,255;--bgu-accent-2:#9367ff;--bgu-accent-2-rgb:147,103,255;
    --bgu-bg:#000;--bgu-surface:#0e0e0f;--bgu-surface-soft:#151218;--bgu-border:#2a2630;--bgu-divider:#242127;
    --bgu-text:#e4e0e7;--bgu-muted:#8b8490;--bgu-single-title:#efeaf1;--bgu-content-heading:#e8e1ec;--bgu-archive-title:#c656ff;--bgu-card-title:#b889ff;--bgu-link:#a67cff;--bgu-link-hover:#d274ff;
    --bgu-button-bg:#281238;--bgu-button-bg-2:#34164a;--bgu-button-text:#f7f0fb;--bgu-button-border:#624078;--bgu-button-background:linear-gradient(135deg,var(--bgu-button-bg),var(--bgu-button-bg-2));
    --bgu-input-bg:#090909;--bgu-input-text:#e4e0e7;--bgu-input-placeholder:#706a74;--bgu-quote-bg:#151218;--bgu-code-bg:#09090b;--bgu-code-text:#e8e1ec;--bgu-price:#f2edf4;--bgu-sale-bg:#c656ff;--bgu-sale-text:#130617;--bgu-rating:#b889ff;
    --bgu-container-max:1280px;--bgu-article-max:860px;--bgu-section-gap:16px;--bgu-grid-gap:14px;--bgu-article-padding:26px;--bgu-archive-card-padding:18px;--bgu-archive-header-padding:18px;--bgu-widget-padding:18px;--bgu-product-padding:22px;--bgu-product-card-padding:16px;
    --bgu-card-radius:16px;--bgu-image-radius:12px;--bgu-button-radius:9px;--bgu-input-radius:9px;--bgu-border-width:1px;--bgu-border-style:solid;--bgu-body-size:16px;--bgu-body-lh:2;--bgu-body-weight:400;--bgu-h1-size:34px;--bgu-h2-size:27px;--bgu-h3-size:22px;--bgu-h4-size:18px;--bgu-heading-weight:800;--bgu-meta-size:13px;--bgu-button-size:14px;--bgu-button-weight:700;--bgu-shadow:none;--bgu-glow:.07;--bgu-hover-lift:2px;--bgu-transition:180ms;--bgu-button-height:44px;--bgu-button-padding-x:20px;--bgu-input-height:44px;
    background:var(--bgu-bg)!important;color:var(--bgu-text);
}

/* Canvas only — header/footer are intentionally not themed. */
body.bgu-theme :where(#page,.site,.rh-content-wrap,.rh-container,.main-side,#content,.content,.content-area,.site-content) { background-color:transparent; }
body.bgu-theme :where(#content,.main-side,.woocommerce) { color:var(--bgu-text); }
body.bgu-theme ::selection { background:var(--bgu-accent); color:var(--bgu-button-text); }
body.bgu-theme :where(#content,.main-side,.sidebar,.woocommerce) a { color:var(--bgu-link); text-decoration-color:rgba(var(--bgu-accent-2-rgb),.38); text-underline-offset:3px; }
body.bgu-theme :where(#content,.main-side,.sidebar,.woocommerce) a:hover,body.bgu-theme :where(#content,.main-side,.sidebar,.woocommerce) a:focus-visible { color:var(--bgu-link-hover); }
body.bgu-theme :where(#content,.main-side,.sidebar,.woocommerce) :focus-visible { outline:2px solid var(--bgu-accent); outline-offset:2px; }
body.bgu-theme :where(#content,.main-side,.sidebar,.woocommerce) hr { border:0; border-top:1px solid var(--bgu-divider); }
body.bgu-theme :where(#content,.main-side,.sidebar,.woocommerce) :where(.whitebg,.greybg) { background-color:transparent!important; color:inherit!important; }

/* Width controls */
body.bgu-theme.bgu-control-container :where(.rh-container,.rh-content-wrap,.main-side) { max-width:var(--bgu-container-max); margin-inline:auto; }
body.bgu-theme.bgu-control-article.bgu-context-singular:not(.bgu-scope-product) :where(.entry-content,.single-post-content,.post-inner) { max-width:var(--bgu-article-max); margin-inline:auto; }

/* Typography */
body.bgu-theme :where(#content,.main-side,.woocommerce) p,
body.bgu-theme :where(#content,.main-side,.woocommerce) li { font-family:var(--bgu-font-base,inherit); font-size:var(--bgu-body-size); line-height:var(--bgu-body-lh); font-weight:var(--bgu-body-weight); color:var(--bgu-text); }
body.bgu-theme :where(#content,.main-side) h1 { font-size:var(--bgu-h1-size); }
body.bgu-theme :where(#content,.main-side) h2 { font-size:var(--bgu-h2-size); }
body.bgu-theme :where(#content,.main-side) h3 { font-size:var(--bgu-h3-size); }
body.bgu-theme :where(#content,.main-side) h4 { font-size:var(--bgu-h4-size); }
body.bgu-theme :where(#content,.main-side) h1,body.bgu-theme :where(#content,.main-side) h2,body.bgu-theme :where(#content,.main-side) h3,body.bgu-theme :where(#content,.main-side) h4 { font-family:var(--bgu-font-heading,inherit); font-weight:var(--bgu-heading-weight); line-height:1.5; letter-spacing:-.015em; color:var(--bgu-text); }
body.bgu-theme :where(.post-meta,.meta,.entry-meta,.date,.woocommerce-result-count,.woocommerce-breadcrumb,.product_meta,.posted-on,.byline),
body.bgu-theme :where(.post-meta,.meta,.entry-meta,.date,.woocommerce-result-count,.woocommerce-breadcrumb,.product_meta,.posted-on,.byline) a { color:var(--bgu-muted)!important; font-size:var(--bgu-meta-size)!important; }

/* ---------- Single-layer shell system ---------- */
/* Primary article targets: only top-level REHub wrappers. Inner wrappers are normalized below. */
body.bgu-theme.bgu-context-singular:not(.bgu-scope-product) :where(#content>article,.main-side>article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,.rh-content-wrap>.rh-post-wrapper) { color:var(--bgu-text); border-radius:var(--bgu-card-radius); }
body.bgu-theme.bgu-article-shell-flat.bgu-context-singular:not(.bgu-scope-product) :where(#content>article,.main-side>article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,.rh-content-wrap>.rh-post-wrapper) { background:transparent!important;border:0!important;box-shadow:none!important; }
body.bgu-theme.bgu-article-shell-surface.bgu-context-singular:not(.bgu-scope-product) :where(#content>article,.main-side>article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,.rh-content-wrap>.rh-post-wrapper),
body.bgu-theme.bgu-article-shell-outlined.bgu-context-singular:not(.bgu-scope-product) :where(#content>article,.main-side>article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,.rh-content-wrap>.rh-post-wrapper) { background:radial-gradient(circle at 88% 0,rgba(var(--bgu-accent-rgb),var(--bgu-glow)),transparent 38%),var(--bgu-surface)!important;padding:var(--bgu-article-padding);box-shadow:var(--bgu-shadow); }
body.bgu-theme.bgu-article-shell-surface.bgu-context-singular:not(.bgu-scope-product) :where(#content>article,.main-side>article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,.rh-content-wrap>.rh-post-wrapper) { border:0!important; }
body.bgu-theme.bgu-article-shell-outlined.bgu-context-singular:not(.bgu-scope-product) :where(#content>article,.main-side>article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,.rh-content-wrap>.rh-post-wrapper) { border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border)!important; }

/* Critical v3 fix: REHub frequently nests article/rh-post-wrapper/whitebg/rh-box. Do not render another card inside the primary shell. */
body.bgu-theme.bgu-context-singular:not(.bgu-scope-product) :where(
    article .rh-post-wrapper,.rh-post-wrapper article,article .rh-box,.rh-post-wrapper .rh-box,
    article .whitebg,.rh-post-wrapper .whitebg,.entry-content,.single-post-content,.post-inner,.post_header,.post_header_wrap,.rh_post_layout
) { background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important; }
body.bgu-theme.bgu-context-singular:not(.bgu-scope-product) :where(article .rh-post-wrapper,.rh-post-wrapper article) { padding:0!important; }

body.bgu-theme.bgu-context-singular:not(.bgu-scope-product) :where(.entry-title,.post-title,.post_header h1,.rh-post-wrapper h1:first-child) { color:var(--bgu-single-title)!important; font-size:var(--bgu-h1-size)!important; font-weight:var(--bgu-heading-weight)!important; line-height:1.45; }
body.bgu-theme.bgu-context-singular:not(.bgu-scope-product) :where(.entry-content,.single-post-content,.post-inner) { font-size:var(--bgu-body-size); line-height:var(--bgu-body-lh); color:var(--bgu-text); }
body.bgu-theme.bgu-context-singular:not(.bgu-scope-product) :where(.entry-content,.single-post-content,.post-inner) :where(h2,h3,h4) { color:var(--bgu-content-heading)!important; }

/* Content media: radius yes, outline no by default. */
body.bgu-theme.bgu-context-singular :where(.entry-content,.single-post-content,.post-inner) img,
body.bgu-theme.bgu-scope-product :where(.woocommerce-product-gallery__wrapper,.woocommerce-product-gallery) img { border-radius:var(--bgu-image-radius); border:0; box-shadow:none; }
body.bgu-theme.bgu-outline-media.bgu-context-singular :where(.entry-content,.single-post-content,.post-inner) img,
body.bgu-theme.bgu-outline-media.bgu-scope-product :where(.woocommerce-product-gallery__wrapper,.woocommerce-product-gallery) img { border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border); }

/* Gutenberg/content blocks: accent line instead of framed boxes. */
body.bgu-theme.bgu-style-gutenberg :where(blockquote,.wp-block-quote,.wp-block-pullquote,.wpsm_box) { background:var(--bgu-quote-bg)!important;border:0!important;border-inline-start:3px solid var(--bgu-accent)!important;border-radius:min(var(--bgu-card-radius),10px)!important;color:var(--bgu-text);padding:16px 18px; }
body.bgu-theme.bgu-style-gutenberg :where(pre,.wp-block-code,.wp-block-preformatted) { background:var(--bgu-code-bg)!important;color:var(--bgu-code-text)!important;border:0!important;border-radius:min(var(--bgu-card-radius),10px);padding:16px;overflow:auto; }
body.bgu-theme.bgu-style-gutenberg code { background:var(--bgu-code-bg);color:var(--bgu-code-text); }
body.bgu-theme.bgu-style-gutenberg :where(table,.wp-block-table table) { background:transparent;border:0!important;border-collapse:collapse;color:var(--bgu-text); }
body.bgu-theme.bgu-style-gutenberg :where(th,td) { border:0!important; border-bottom:1px solid var(--bgu-divider)!important; }
body.bgu-theme.bgu-style-gutenberg th { color:var(--bgu-content-heading); background:var(--bgu-surface-soft); }
body.bgu-theme.bgu-outline-content-blocks.bgu-style-gutenberg :where(blockquote,.wp-block-quote,.wp-block-pullquote,.wpsm_box,pre,.wp-block-code,.wp-block-preformatted,.wp-block-table table) { border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border)!important; }
body.bgu-theme.bgu-outline-content-blocks.bgu-style-gutenberg :where(blockquote,.wp-block-quote,.wp-block-pullquote,.wpsm_box) { border-inline-start:3px solid var(--bgu-accent)!important; }

/* Author / related / comments: one shell per section, comments themselves remain flat. */
body.bgu-theme.bgu-style-comments :where(.author_detail_box,.author-box,.related_articles,.related-posts,#comments,#respond) { color:var(--bgu-text);border-radius:var(--bgu-card-radius);margin-top:var(--bgu-section-gap); }
body.bgu-theme.bgu-comments-shell-flat.bgu-style-comments :where(.author_detail_box,.author-box,.related_articles,.related-posts,#comments,#respond) { background:transparent!important;border:0!important;box-shadow:none!important; }
body.bgu-theme.bgu-comments-shell-surface.bgu-style-comments :where(.author_detail_box,.author-box,.related_articles,.related-posts,#comments,#respond),
body.bgu-theme.bgu-comments-shell-outlined.bgu-style-comments :where(.author_detail_box,.author-box,.related_articles,.related-posts,#comments,#respond) { background:var(--bgu-surface)!important;padding:var(--bgu-widget-padding);box-shadow:var(--bgu-shadow); }
body.bgu-theme.bgu-comments-shell-surface.bgu-style-comments :where(.author_detail_box,.author-box,.related_articles,.related-posts,#comments,#respond) { border:0!important; }
body.bgu-theme.bgu-comments-shell-outlined.bgu-style-comments :where(.author_detail_box,.author-box,.related_articles,.related-posts,#comments,#respond) { border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border)!important; }
body.bgu-theme.bgu-style-comments :where(.comment-list .comment-body,.commentlist .comment-body) { background:transparent!important;border:0!important;border-radius:0!important;padding:14px 0;box-shadow:none!important; }
body.bgu-theme.bgu-show-dividers.bgu-style-comments :where(.comment-list>li+li,.commentlist>li+li) { border-top:1px solid var(--bgu-divider); }

/* Sidebar — each widget may be one surface, never style its nested rh-box/wrapper as another card. */
body.bgu-theme.bgu-style-sidebar :where(.sidebar .widget,aside .widget) { color:var(--bgu-text);border-radius:var(--bgu-card-radius)!important;margin-bottom:var(--bgu-grid-gap); }
body.bgu-theme.bgu-sidebar-shell-flat.bgu-style-sidebar :where(.sidebar .widget,aside .widget) { background:transparent!important;border:0!important;box-shadow:none!important; }
body.bgu-theme.bgu-sidebar-shell-surface.bgu-style-sidebar :where(.sidebar .widget,aside .widget),
body.bgu-theme.bgu-sidebar-shell-outlined.bgu-style-sidebar :where(.sidebar .widget,aside .widget) { background:radial-gradient(circle at 88% 0,rgba(var(--bgu-accent-rgb),calc(var(--bgu-glow) * .75)),transparent 38%),var(--bgu-surface)!important;padding:var(--bgu-widget-padding);box-shadow:var(--bgu-shadow); }
body.bgu-theme.bgu-sidebar-shell-surface.bgu-style-sidebar :where(.sidebar .widget,aside .widget) { border:0!important; }
body.bgu-theme.bgu-sidebar-shell-outlined.bgu-style-sidebar :where(.sidebar .widget,aside .widget) { border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border)!important; }
body.bgu-theme.bgu-style-sidebar :where(.sidebar .widget,aside .widget) :where(.rh-box,.whitebg,.greybg,.bordered,.rh_regular_card) { background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important; }
body.bgu-theme.bgu-style-sidebar :where(.sidebar .widget-title,aside .widget-title,.sidebar .widget>h2,aside .widget>h2) { margin:0 0 14px;color:var(--bgu-content-heading);font-size:var(--bgu-h4-size);line-height:1.55;font-weight:var(--bgu-heading-weight); }
body.bgu-theme.bgu-style-sidebar :where(.sidebar .widget li,aside .widget li) { color:var(--bgu-text);border:0!important; }
body.bgu-theme.bgu-show-dividers.bgu-style-sidebar :where(.sidebar .widget li+li,aside .widget li+li) { border-top:1px solid var(--bgu-divider)!important; }

/* Archive header */
body.bgu-theme.bgu-scope-archive :where(.rh_page_title,.archive-title,.archive_header,.woocommerce-products-header,#content>.page-title,#content>h1:first-child) { color:var(--bgu-archive-title)!important;border-radius:var(--bgu-card-radius); }
body.bgu-theme.bgu-archive-header-shell-flat.bgu-scope-archive :where(.rh_page_title,.archive-title,.archive_header,.woocommerce-products-header,#content>.page-title,#content>h1:first-child) { background:transparent!important;border:0!important;box-shadow:none!important;padding:0 0 var(--bgu-archive-header-padding); }
body.bgu-theme.bgu-archive-header-shell-surface.bgu-scope-archive :where(.rh_page_title,.archive-title,.archive_header,.woocommerce-products-header,#content>.page-title,#content>h1:first-child),
body.bgu-theme.bgu-archive-header-shell-outlined.bgu-scope-archive :where(.rh_page_title,.archive-title,.archive_header,.woocommerce-products-header,#content>.page-title,#content>h1:first-child) { background:var(--bgu-surface)!important;padding:var(--bgu-archive-header-padding);margin-bottom:var(--bgu-grid-gap);box-shadow:var(--bgu-shadow); }
body.bgu-theme.bgu-archive-header-shell-surface.bgu-scope-archive :where(.rh_page_title,.archive-title,.archive_header,.woocommerce-products-header,#content>.page-title,#content>h1:first-child) { border:0!important; }
body.bgu-theme.bgu-archive-header-shell-outlined.bgu-scope-archive :where(.rh_page_title,.archive-title,.archive_header,.woocommerce-products-header,#content>.page-title,#content>h1:first-child) { border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border)!important; }
body.bgu-theme.bgu-scope-archive :where(.woocommerce-products-header .page-title,.rh_page_title h1,.archive-title h1,.archive_header h1) { background:transparent!important;border:0!important;box-shadow:none!important;color:var(--bgu-archive-title)!important;margin:0; }

/* Archive cards — only top-level loop items. Inner wrappers always flat. */
/* Archive loop cards. REHub may insert one or more loop wrappers around <article>, so archive-only descendant fallbacks are intentional here. */
body.bgu-theme.bgu-scope-archive :where(#content article,.main-side article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,#content>div>.rh-post-wrapper,.main-side>div>.rh-post-wrapper,.news-community,.blog_string,.rh_regular_card,.post_eq_grid) { color:var(--bgu-text);border-radius:var(--bgu-card-radius)!important;margin-bottom:var(--bgu-grid-gap); }
body.bgu-theme.bgu-archive-card-shell-flat.bgu-scope-archive :where(#content article,.main-side article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,#content>div>.rh-post-wrapper,.main-side>div>.rh-post-wrapper,.news-community,.blog_string,.rh_regular_card,.post_eq_grid) { background:transparent!important;border:0!important;box-shadow:none!important; }
body.bgu-theme.bgu-archive-card-shell-surface.bgu-scope-archive :where(#content article,.main-side article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,#content>div>.rh-post-wrapper,.main-side>div>.rh-post-wrapper,.news-community,.blog_string,.rh_regular_card,.post_eq_grid),
body.bgu-theme.bgu-archive-card-shell-outlined.bgu-scope-archive :where(#content article,.main-side article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,#content>div>.rh-post-wrapper,.main-side>div>.rh-post-wrapper,.news-community,.blog_string,.rh_regular_card,.post_eq_grid) { background:radial-gradient(circle at 88% 0,rgba(var(--bgu-accent-2-rgb),calc(var(--bgu-glow) * .65)),transparent 38%),var(--bgu-surface)!important;padding:var(--bgu-archive-card-padding);box-shadow:var(--bgu-shadow); }
/* Surface archive cards get a clearly visible 1px theme-matched stroke. Scope is archive-only. */
body.bgu-theme.bgu-archive-card-shell-surface.bgu-scope-archive :where(#content article,.main-side article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,#content>div>.rh-post-wrapper,.main-side>div>.rh-post-wrapper,.news-community,.blog_string,.rh_regular_card,.post_eq_grid) { border:1px solid rgba(var(--bgu-accent-2-rgb),.42)!important; }
body.bgu-theme.bgu-archive-card-shell-outlined.bgu-scope-archive :where(#content article,.main-side article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,#content>div>.rh-post-wrapper,.main-side>div>.rh-post-wrapper,.news-community,.blog_string,.rh_regular_card,.post_eq_grid) { border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border)!important; }
body.bgu-theme.bgu-scope-archive :where(article,.rh-post-wrapper,.news-community,.blog_string,.rh_regular_card,.post_eq_grid) :where(.rh-post-wrapper,.rh-box,.whitebg,.greybg,.bordered,.rh_regular_card) { background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important; }
body.bgu-theme.bgu-scope-archive :where(.entry-title,.post-title,.rh-post-wrapper h2,.rh-post-wrapper h3,.news-community h2,.news-community h3,.blog_string h2,.blog_string h3,.rh_regular_card h2,.rh_regular_card h3) a { color:var(--bgu-card-title)!important;font-weight:var(--bgu-heading-weight); }
body.bgu-theme.bgu-hover-enabled.bgu-scope-archive.bgu-archive-card-shell-surface :where(#content article,.main-side article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,#content>div>.rh-post-wrapper,.main-side>div>.rh-post-wrapper,.news-community,.blog_string,.rh_regular_card,.post_eq_grid),
body.bgu-theme.bgu-hover-enabled.bgu-scope-archive.bgu-archive-card-shell-outlined :where(#content article,.main-side article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,#content>div>.rh-post-wrapper,.main-side>div>.rh-post-wrapper,.news-community,.blog_string,.rh_regular_card,.post_eq_grid) { transition:transform var(--bgu-transition) ease,box-shadow var(--bgu-transition) ease; }
body.bgu-theme.bgu-hover-enabled.bgu-scope-archive :where(#content article,.main-side article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,#content>div>.rh-post-wrapper,.main-side>div>.rh-post-wrapper,.news-community,.blog_string,.rh_regular_card,.post_eq_grid):hover { transform:translateY(calc(-1 * var(--bgu-hover-lift))); }

/* WooCommerce loop cards */
body.bgu-theme.bgu-style-woo-cards :where(.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,.woo_column_item,.re_wooinner) { color:var(--bgu-text);border-radius:var(--bgu-card-radius)!important; }
body.bgu-theme.bgu-woo-card-shell-flat.bgu-style-woo-cards :where(.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,.woo_column_item,.re_wooinner) { background:transparent!important;border:0!important;box-shadow:none!important; }
body.bgu-theme.bgu-woo-card-shell-surface.bgu-style-woo-cards :where(.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,.woo_column_item,.re_wooinner),
body.bgu-theme.bgu-woo-card-shell-outlined.bgu-style-woo-cards :where(.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,.woo_column_item,.re_wooinner) { background:var(--bgu-surface)!important;padding:var(--bgu-product-card-padding);box-shadow:var(--bgu-shadow); }
body.bgu-theme.bgu-woo-card-shell-surface.bgu-style-woo-cards :where(.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,.woo_column_item,.re_wooinner) { border:0!important; }
body.bgu-theme.bgu-woo-card-shell-outlined.bgu-style-woo-cards :where(.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,.woo_column_item,.re_wooinner) { border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border)!important; }
body.bgu-theme.bgu-style-woo-cards :where(.woocommerce ul.products li.product,.woo_column_item,.re_wooinner) :where(.rh-box,.whitebg,.greybg,.re_wooinner) { border:0!important;box-shadow:none!important; }
body.bgu-theme.bgu-style-woo-cards :where(.woocommerce-loop-product__title,.woocommerce ul.products li.product h2,.woocommerce ul.products li.product h3,.re_wooinner h2,.re_wooinner h3) { color:var(--bgu-card-title)!important;font-weight:var(--bgu-heading-weight); }
body.bgu-theme.bgu-style-woo-cards :where(.woocommerce ul.products li.product img,.re_wooinner img,.rh_grid_image_wrapper img) { border-radius:var(--bgu-image-radius); }
body.bgu-theme.bgu-hover-enabled.bgu-style-woo-cards :where(.woocommerce ul.products li.product,.woo_column_item,.re_wooinner) { transition:transform var(--bgu-transition) ease; }
body.bgu-theme.bgu-hover-enabled.bgu-style-woo-cards :where(.woocommerce ul.products li.product,.woo_column_item,.re_wooinner):hover { transform:translateY(calc(-1 * var(--bgu-hover-lift))); }

/* Woo price/badges */
body.bgu-theme :where(.woocommerce .price,.woocommerce .price ins,.woocommerce .amount,.price,.price ins) { color:var(--bgu-price)!important;font-weight:800; }
body.bgu-theme :where(.woocommerce .price del,.price del) { color:var(--bgu-muted)!important;opacity:.68; }
body.bgu-theme :where(.woocommerce span.onsale,span.onsale) { background:var(--bgu-sale-bg)!important;color:var(--bgu-sale-text)!important;border:0!important;border-radius:999px!important;box-shadow:none!important; }
body.bgu-theme :where(.star-rating,.star-rating span,.woocommerce .star-rating,.woocommerce .star-rating span) { color:var(--bgu-rating)!important; }

/* Single product: summary/gallery are not independent cards anymore; one product shell wraps the product when possible. */
body.bgu-theme.bgu-scope-product :where(.woocommerce>div.product,.woocommerce div.product.type-product,#content>.product.type-product,.main-side>.product.type-product) { color:var(--bgu-text);border-radius:var(--bgu-card-radius); }
body.bgu-theme.bgu-product-shell-flat.bgu-scope-product :where(.woocommerce>div.product,.woocommerce div.product.type-product,#content>.product.type-product,.main-side>.product.type-product) { background:transparent!important;border:0!important;box-shadow:none!important; }
body.bgu-theme.bgu-product-shell-surface.bgu-scope-product :where(.woocommerce>div.product,.woocommerce div.product.type-product,#content>.product.type-product,.main-side>.product.type-product),
body.bgu-theme.bgu-product-shell-outlined.bgu-scope-product :where(.woocommerce>div.product,.woocommerce div.product.type-product,#content>.product.type-product,.main-side>.product.type-product) { background:radial-gradient(circle at 90% 0,rgba(var(--bgu-accent-rgb),var(--bgu-glow)),transparent 38%),var(--bgu-surface)!important;padding:var(--bgu-product-padding);box-shadow:var(--bgu-shadow); }
body.bgu-theme.bgu-product-shell-surface.bgu-scope-product :where(.woocommerce>div.product,.woocommerce div.product.type-product,#content>.product.type-product,.main-side>.product.type-product) { border:0!important; }
body.bgu-theme.bgu-product-shell-outlined.bgu-scope-product :where(.woocommerce>div.product,.woocommerce div.product.type-product,#content>.product.type-product,.main-side>.product.type-product) { border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border)!important; }
/* Flatten all common Woo sections inside the product shell. */
body.bgu-theme.bgu-scope-product :where(.woocommerce div.product div.images,.woocommerce div.product div.summary,.product .summary,.product .woocommerce-product-gallery,.woocommerce-tabs,.woocommerce-Tabs-panel,.related.products,.upsells.products,.cross-sells,.rh-cartbox) { background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important; }
body.bgu-theme.bgu-scope-product :where(.product_title,.woocommerce div.product .product_title,.rh-product-title) { color:var(--bgu-single-title)!important;font-weight:var(--bgu-heading-weight);line-height:1.45; }
body.bgu-theme.bgu-scope-product :where(.woocommerce-product-details__short-description,.woocommerce-Tabs-panel) { color:var(--bgu-text);line-height:var(--bgu-body-lh); }
body.bgu-theme.bgu-scope-product :where(.woocommerce-tabs,.related.products,.upsells.products,.cross-sells) { margin-top:var(--bgu-section-gap);padding-top:var(--bgu-section-gap); }
body.bgu-theme.bgu-show-dividers.bgu-scope-product :where(.woocommerce-tabs,.related.products,.upsells.products,.cross-sells) { border-top:1px solid var(--bgu-divider)!important; }
body.bgu-theme.bgu-scope-product .woocommerce div.product .woocommerce-tabs ul.tabs { margin:0;padding:6px;background:var(--bgu-surface-soft);border:0!important;border-radius:var(--bgu-button-radius); }
body.bgu-theme.bgu-scope-product .woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.bgu-theme.bgu-scope-product .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.bgu-theme.bgu-scope-product .woocommerce div.product .woocommerce-tabs ul.tabs li::after { border:0!important;box-shadow:none!important; }
body.bgu-theme.bgu-scope-product .woocommerce div.product .woocommerce-tabs ul.tabs li { background:transparent!important;border:0!important;border-radius:var(--bgu-button-radius)!important;margin:0 2px; }
body.bgu-theme.bgu-scope-product .woocommerce div.product .woocommerce-tabs ul.tabs li a { color:var(--bgu-muted)!important;padding:8px 12px!important; }
body.bgu-theme.bgu-scope-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background:rgba(var(--bgu-accent-rgb),.10)!important; }
body.bgu-theme.bgu-scope-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color:var(--bgu-accent)!important; }
body.bgu-theme.bgu-scope-product :where(table.variations,table.shop_attributes,.woocommerce-product-attributes) { background:transparent!important;border:0!important;border-collapse:collapse; }
body.bgu-theme.bgu-scope-product :where(table.variations td,table.variations th,table.shop_attributes td,table.shop_attributes th,.woocommerce-product-attributes td,.woocommerce-product-attributes th) { border:0!important;border-bottom:1px solid var(--bgu-divider)!important;color:var(--bgu-text)!important; }
body.bgu-theme.bgu-scope-product .flex-control-thumbs li img { border:0;border-radius:var(--bgu-image-radius);opacity:.72; }
body.bgu-theme.bgu-scope-product .flex-control-thumbs li img.flex-active { opacity:1;box-shadow:0 0 0 2px var(--bgu-accent); }
body.bgu-theme.bgu-outline-media.bgu-scope-product .flex-control-thumbs li img { border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border); }

/* Buttons */
body.bgu-theme :where(#content,.main-side,.sidebar,.woocommerce) :where(.button,button,input[type="submit"],input[type="button"],.wp-block-button__link,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woo_loop_btn,.wpsm-button,.btn,.single_add_to_cart_button) { min-height:var(--bgu-button-height);padding-inline:var(--bgu-button-padding-x)!important;background:var(--bgu-button-background)!important;color:var(--bgu-button-text)!important;border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-button-border)!important;border-radius:var(--bgu-button-radius)!important;box-shadow:none!important;text-shadow:none!important;font-family:var(--bgu-font-base,inherit);font-size:var(--bgu-button-size);font-weight:var(--bgu-button-weight);transition:transform var(--bgu-transition) ease,filter var(--bgu-transition) ease,border-color var(--bgu-transition) ease; }
body.bgu-theme :where(#content,.main-side,.sidebar,.woocommerce) :where(.button,button,input[type="submit"],input[type="button"],.wp-block-button__link,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woo_loop_btn,.wpsm-button,.btn,.single_add_to_cart_button):hover { color:var(--bgu-button-text)!important;border-color:var(--bgu-accent)!important;filter:brightness(1.08); }

/* Forms */
body.bgu-theme.bgu-style-forms :where(#content,.main-side,.sidebar,.woocommerce) :where(input[type="text"],input[type="email"],input[type="url"],input[type="search"],input[type="number"],input[type="tel"],input[type="password"],textarea,select,.select2-container--default .select2-selection--single,.select2-container--default .select2-selection--multiple) { min-height:var(--bgu-input-height);background:var(--bgu-input-bg)!important;color:var(--bgu-input-text)!important;border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border)!important;border-radius:var(--bgu-input-radius)!important;box-shadow:none!important; }
body.bgu-theme.bgu-style-forms :where(#content,.main-side,.sidebar,.woocommerce) :where(input,textarea)::placeholder { color:var(--bgu-input-placeholder);opacity:1; }
body.bgu-theme.bgu-style-forms :where(#content,.main-side,.sidebar,.woocommerce) :where(input,textarea,select):focus,
body.bgu-theme.bgu-style-forms .select2-container--focus .select2-selection { border-color:var(--bgu-accent)!important;box-shadow:0 0 0 3px rgba(var(--bgu-accent-rgb),.10)!important;outline:none; }
body.bgu-theme.bgu-style-forms .select2-dropdown { background:var(--bgu-surface);color:var(--bgu-text);border-color:var(--bgu-border); }
body.bgu-theme.bgu-style-forms .select2-results__option--highlighted { background:rgba(var(--bgu-accent-rgb),.12)!important;color:var(--bgu-text)!important; }

/* Pagination — controls need discrete boundaries, but no container card. */
body.bgu-theme.bgu-style-pagination :where(.pagination,.page-numbers,.woocommerce-pagination) { color:var(--bgu-text);background:transparent!important;border:0!important;box-shadow:none!important; }
body.bgu-theme.bgu-style-pagination :where(.pagination a,.pagination span,.page-numbers a,.page-numbers span,.woocommerce-pagination .page-numbers li a,.woocommerce-pagination .page-numbers li span) { background:var(--bgu-surface)!important;color:var(--bgu-muted)!important;border:var(--bgu-border-width) var(--bgu-border-style) var(--bgu-border)!important;border-radius:var(--bgu-button-radius)!important; }
body.bgu-theme.bgu-style-pagination :where(.pagination .current,.page-numbers .current,.woocommerce-pagination .page-numbers li span.current) { background:rgba(var(--bgu-accent-rgb),.10)!important;color:var(--bgu-accent)!important;border-color:rgba(var(--bgu-accent-rgb),.35)!important; }

/* Notices — one subtle surface, accent stripe only. */
body.bgu-theme.bgu-style-notices :where(.woocommerce-message,.woocommerce-info,.woocommerce-error,.wpsm_box_info,.wpsm_box_warning,.wpsm_box_green,.wpsm_box_red,.rh-alert) { background:var(--bgu-surface-soft)!important;color:var(--bgu-text)!important;border:0!important;border-inline-start:3px solid var(--bgu-accent)!important;border-radius:var(--bgu-button-radius)!important;box-shadow:none!important; }

/* REHub utility classes: neutralize inherited borders inside themed regions rather than forcing cards. */
body.bgu-theme #content :where(.border-lightgrey,.border-lightgrey-double,.border-grey,.bordered,.rh-border),
body.bgu-theme .main-side :where(.border-lightgrey,.border-lightgrey-double,.border-grey,.bordered,.rh-border) { border-color:var(--bgu-divider)!important; }

@media (prefers-reduced-motion:reduce) {
    body.bgu-theme.bgu-reduced-motion *,body.bgu-theme.bgu-reduced-motion *::before,body.bgu-theme.bgu-reduced-motion *::after { animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important; }
}
@media (max-width:767px) {
    body.bgu-theme.bgu-article-shell-surface.bgu-context-singular:not(.bgu-scope-product) :where(#content>article,.main-side>article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,.rh-content-wrap>.rh-post-wrapper),
    body.bgu-theme.bgu-article-shell-outlined.bgu-context-singular:not(.bgu-scope-product) :where(#content>article,.main-side>article,#content>.rh-post-wrapper,.main-side>.rh-post-wrapper,.rh-content-wrap>.rh-post-wrapper) { padding:max(16px,calc(var(--bgu-article-padding) * .7)); }
}
/* Outline buttons use accent text in both light and dark palettes, preserving contrast. */
body.bgu-theme.bgu-button-style-outline :where(#content,.main-side,.sidebar,.woocommerce) :where(.button,button,input[type="submit"],input[type="button"],.wp-block-button__link,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woo_loop_btn,.wpsm-button,.btn,.single_add_to_cart_button) { color:var(--bgu-accent)!important;border-color:var(--bgu-accent)!important; }


/* Elementor nested article card — configurable in Bagoogle dashboard. */
body.bgu-theme.bgu-elementor-article-enabled .rh-post-wrapper .post .elementor .e-atomic-element .elementor-widget .elementor-widget-container div article {
    padding:var(--bgu-elementor-article-padding)!important;
    border-style:var(--bgu-elementor-article-border-style)!important;
    border-width:var(--bgu-elementor-article-border-width)!important;
    border-color:var(--bgu-elementor-article-border-color)!important;
    border-radius:var(--bgu-elementor-article-radius)!important;
}

/* v4.1 archive card separator fix v3
 * Archive scope only. JS marks the real REHub loop item even when the theme uses
 * an unrecognized wrapper. Visual treatment intentionally mirrors sidebar widgets.
 */
body.bgu-theme.bgu-scope-archive .bgu-archive-card-fix {
    color:var(--bgu-text)!important;
    background:radial-gradient(circle at 88% 0,rgba(var(--bgu-accent-rgb),calc(var(--bgu-glow) * .75)),transparent 38%),var(--bgu-surface)!important;
    border:1px solid var(--bgu-border)!important;
    border-radius:var(--bgu-card-radius)!important;
    padding:var(--bgu-archive-card-padding)!important;
    margin:0 0 calc(var(--bgu-grid-gap) + 6px)!important;
    box-shadow:0 0 0 1px rgba(var(--bgu-accent-2-rgb),.08) inset,var(--bgu-shadow)!important;
    overflow:hidden;
}
body.bgu-theme.bgu-scope-archive .bgu-archive-card-fix + .bgu-archive-card-fix {
    margin-top:6px!important;
}
body.bgu-theme.bgu-scope-archive .bgu-archive-card-fix :where(.rh-post-wrapper,.rh-box,.greybg,.bordered,.rh_regular_card) {
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
body.bgu-theme.bgu-hover-enabled.bgu-scope-archive .bgu-archive-card-fix {
    transition:transform var(--bgu-transition) ease,box-shadow var(--bgu-transition) ease,border-color var(--bgu-transition) ease;
}
body.bgu-theme.bgu-hover-enabled.bgu-scope-archive .bgu-archive-card-fix:hover {
    border-color:rgba(var(--bgu-accent-2-rgb),.55)!important;
    transform:translateY(calc(-1 * var(--bgu-hover-lift)));
}
