/*
 * Astra Pro (astra-addon 4.13.12) replacement styles, loaded by inc/astra-pro-replacement.php only
 * while Astra Pro is NOT active. Rules are copied/trimmed from Pro's generated CSS (GPL).
 */

/* ---- Catalogue toolbar, filter button and off-canvas drawer ---- */
.logged-in.admin-bar.woocommerce .astra-off-canvas-sidebar,.logged-in.admin-bar.woocommerce-page .astra-off-canvas-sidebar{top:32px;height:calc(100% - 32px)}
.woocommerce .ast-shop-toolbar-container{margin-bottom:2.5em;-js-display:flex;display:flex;align-items:center;justify-content:space-between}
.woocommerce .ast-shop-toolbar-container .woocommerce-ordering,.woocommerce .ast-shop-toolbar-container>*{margin:0}
.woocommerce .ast-shop-toolbar-container>:last-child{float:right}
.woocommerce .ast-shop-toolbar-container .ast-shop-toolbar-aside-wrap{-js-display:inline-flex;display:inline-flex;align-items:center;column-gap:20px}
.woocommerce .ast-shop-toolbar-container .ast-shop-toolbar-aside-wrap .woocommerce-result-count{margin:0}
.woocommerce .ast-shop-toolbar-container .ast-shop-toolbar-aside-wrap .astra-shop-filter-button{-js-display:flex;display:flex;align-items:center}
.ast-off-canvas-overlay .woocommerce .astra-off-canvas-sidebar-wrapper,.ast-off-canvas-overlay .woocommerce-page .astra-off-canvas-sidebar-wrapper{visibility:visible;opacity:1}
.ast-off-canvas-overlay .woocommerce .astra-off-canvas-sidebar-wrapper .astra-off-canvas-sidebar,.ast-off-canvas-overlay .woocommerce-page .astra-off-canvas-sidebar-wrapper .astra-off-canvas-sidebar{left:0}
.ast-off-canvas-overlay body>.select2-container{z-index:99}
.woocommerce .astra-shop-filter-button,.woocommerce button.astra-shop-filter-button,.woocommerce-page .astra-shop-filter-button,.woocommerce-page button.astra-shop-filter-button{float:left;outline:0;margin:0}
.woocommerce .astra-shop-filter-button .ast-icon.icon-close,.woocommerce button.astra-shop-filter-button .ast-icon.icon-close,.woocommerce-page .astra-shop-filter-button .ast-icon.icon-close,.woocommerce-page button.astra-shop-filter-button .ast-icon.icon-close{display:none}
.woocommerce .astra-shop-filter-button .astra-woo-filter-text,.woocommerce button.astra-shop-filter-button .astra-woo-filter-text,.woocommerce-page .astra-shop-filter-button .astra-woo-filter-text,.woocommerce-page button.astra-shop-filter-button .astra-woo-filter-text{margin-left:.5em;font-size:1.07em;color:var(--ast-global-color-2)}
.woocommerce .astra-shop-filter-button .astra-woo-filter-icon,.woocommerce button.astra-shop-filter-button .astra-woo-filter-icon,.woocommerce-page .astra-shop-filter-button .astra-woo-filter-icon,.woocommerce-page button.astra-shop-filter-button .astra-woo-filter-icon{display:inline-block;font-size:1.3em;line-height:1;font-weight:400;vertical-align:middle;width:.8em}
.woocommerce .astra-shop-filter-button .astra-woo-filter-icon svg,.woocommerce button.astra-shop-filter-button .astra-woo-filter-icon svg,.woocommerce-page .astra-shop-filter-button .astra-woo-filter-icon svg,.woocommerce-page button.astra-shop-filter-button .astra-woo-filter-icon svg{font-size:1em;width:.8em;height:.8em;color:var(--ast-global-color-3)}
.woocommerce .astra-shop-filter-button.active .ast-icon.icon-menu-bars,.woocommerce button.astra-shop-filter-button.active .ast-icon.icon-menu-bars,.woocommerce-page .astra-shop-filter-button.active .ast-icon.icon-menu-bars,.woocommerce-page button.astra-shop-filter-button.active .ast-icon.icon-menu-bars{display:none}
.woocommerce .astra-shop-filter-button.active .ast-icon.icon-close,.woocommerce button.astra-shop-filter-button.active .ast-icon.icon-close,.woocommerce-page .astra-shop-filter-button.active .ast-icon.icon-close,.woocommerce-page button.astra-shop-filter-button.active .ast-icon.icon-close{display:inline-block}
.woocommerce button.astra-shop-filter-button,.woocommerce-page button.astra-shop-filter-button{padding:.67em 1em;font-weight:600;-js-display:flex;display:flex;align-items:center}
.woocommerce button.astra-shop-filter-button .astra-woo-filter-text,.woocommerce-page button.astra-shop-filter-button .astra-woo-filter-text{color:inherit}
.woocommerce button.astra-shop-filter-button .astra-woo-filter-icon svg,.woocommerce-page button.astra-shop-filter-button .astra-woo-filter-icon svg{color:inherit}
.woocommerce button.astra-shop-filter-button~.woocommerce-result-count,.woocommerce-page button.astra-shop-filter-button~.woocommerce-result-count{padding:4px 0}
.woocommerce .astra-off-canvas-sidebar-wrapper,.woocommerce-page .astra-off-canvas-sidebar-wrapper{width:100%;top:0;position:fixed;height:100%;background:rgba(0,0,0,.4);z-index:99;visibility:hidden;opacity:0;transition:.25s ease-in-out}
.woocommerce .astra-off-canvas-sidebar-wrapper .close,.woocommerce-page .astra-off-canvas-sidebar-wrapper .close{position:absolute;right:5px;top:5px;line-height:1;cursor:pointer;color:var(--ast-global-color-3);z-index:1;opacity:.8}
.woocommerce .astra-off-canvas-sidebar-wrapper .close .ast-icon,.woocommerce-page .astra-off-canvas-sidebar-wrapper .close .ast-icon{pointer-events:none}
.woocommerce .astra-off-canvas-sidebar-wrapper .close:hover,.woocommerce-page .astra-off-canvas-sidebar-wrapper .close:hover{opacity:1}
.woocommerce .astra-off-canvas-sidebar-wrapper .astra-off-canvas-sidebar,.woocommerce-page .astra-off-canvas-sidebar-wrapper .astra-off-canvas-sidebar{position:absolute;background:var(--ast-global-color-primary,--ast-global-color-5);height:100%;top:0;left:-100%;padding:35px;box-shadow:0 0 12px 0 rgba(0,0,0,.4);width:325px;overflow:auto;transition:.3s ease-in-out}
.woocommerce .astra-off-canvas-sidebar-wrapper .astra-off-canvas-sidebar .widget_price_filter .price_slider_amount .button,.woocommerce .astra-off-canvas-sidebar-wrapper .astra-off-canvas-sidebar .widget_shopping_cart .woocommerce-mini-cart__buttons a,.woocommerce-page .astra-off-canvas-sidebar-wrapper .astra-off-canvas-sidebar .widget_price_filter .price_slider_amount .button,.woocommerce-page .astra-off-canvas-sidebar-wrapper .astra-off-canvas-sidebar .widget_shopping_cart .woocommerce-mini-cart__buttons a{padding:10px 15px;font-weight:400}
.woocommerce .astra-off-canvas-sidebar-wrapper .astra-off-canvas-sidebar ul.product_list_widget li a,.woocommerce-page .astra-off-canvas-sidebar-wrapper .astra-off-canvas-sidebar ul.product_list_widget li a{margin-bottom:4px;line-height:1.2}
/* ---- Filter drawer widgets: spacing and accordion ---- */
.ast-filter-wrap .ast-woo-sidebar-widget.widget,
.astra-off-canvas-sidebar .ast-filter-wrap .widget,
.ast-collapse-filter .ast-filter-wrap > div { margin-bottom: 0; }
.ast-filter-wrap .ast-filter-content { overflow: hidden; transition: .3s; }
.ast-filter-wrap .widget-title { position: relative; cursor: pointer; padding-right: 1em; }
.ast-filter-wrap .widget-title .ahfb-svg-iconset { position: absolute; right: 0; top: .5em; width: .7em; fill: var(--ast-global-color-3); pointer-events: none; transition: .3s; }
.ast-filter-wrap .widget-title.active .ahfb-svg-iconset { transform: rotate(180deg); }
.ast-filter-wrap .widget-title.active + .ast-filter-content { overflow: inherit; }
.ast-filter-content .price_slider_wrapper { padding-top: 1em; }
.ast-woo-sidebar-widget .ast-filter-content-inner,
.astra-off-canvas-sidebar .ast-filter-content-inner,
.ast-collapse-filter .ast-filter-content-inner { padding-bottom: 1em; }
@media (max-width: 544px) {
	.ast-header-break-point .ast-shop-toolbar-container { column-gap: 20px; flex-direction: column; display: flex; justify-content: inherit; align-items: inherit; }
	.ast-header-break-point .ast-shop-toolbar-container > *:last-child { float: unset; }
	.ast-header-break-point .ast-shop-toolbar-container .ast-shop-toolbar-aside-wrap { margin-bottom: 20px; }
	.ast-header-break-point .ast-shop-toolbar-container .ast-shop-toolbar-aside-wrap > *:first-child { flex: 1 1 auto; }
}
.woocommerce.single-product .related.products { width: 100%; }

/* ---- Product page layout (single-product-image-width = 45) ---- */
@media (min-width: 922px) {
	.woocommerce #content .ast-woocommerce-container div.product div.images,
	.woocommerce .ast-woocommerce-container div.product div.images,
	.woocommerce-page #content .ast-woocommerce-container div.product div.images,
	.woocommerce-page .ast-woocommerce-container div.product div.images { width: 45%; }
	.woocommerce #content .ast-woocommerce-container div.product div.summary,
	.woocommerce .ast-woocommerce-container div.product div.summary,
	.woocommerce-page #content .ast-woocommerce-container div.product div.summary,
	.woocommerce-page .ast-woocommerce-container div.product div.summary { width: 51%; }
}
@media screen and (min-width: 922px) {
	.woocommerce div.product.ast-product-gallery-with-no-image .onsale { top: -.5em; left: -.5em; }
}

/* ---- Related / upsell grid: 4 desktop, 3 tablet, 2 mobile ---- */
.woocommerce-page.rel-up-columns-4 ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 921px) {
	.single-product.woocommerce-page.tablet-rel-up-columns-3 ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.woocommerce div.product .related.products ul.products li.product,
	.woocommerce[class*="rel-up-columns-"] div.product .related.products ul.products li.product,
	.woocommerce-page div.product .related.products ul.products li.product,
	.woocommerce-page[class*="rel-up-columns-"] div.product .related.products ul.products li.product { margin-right: 20px; clear: none; }
}
@media (max-width: 544px) {
	.single.single-product.woocommerce-page.mobile-rel-up-columns-2 ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Shop cards (Pro shop-archive CSS: padding, shadows, thumbnail overflow for the zoom) ---- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { padding-bottom: 1.2em; transition: all .3s ease-in-out; box-shadow: 0 3px 6px -5px rgba(0,0,0,.1); }
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover { box-shadow: 0 14px 28px 0 rgba(0,0,0,.1); }
.woocommerce ul.products li.product .astra-shop-summary-wrap,
.woocommerce-page ul.products li.product .astra-shop-summary-wrap { padding: 0 1.2em; }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap { margin-bottom: .8em; }
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button { margin: .5em 0; }
.woocommerce ul.products li.product .button.added,
.woocommerce-page ul.products li.product .button.added { margin-bottom: 0; transition: none; }
.woocommerce ul.products li.product .added_to_cart,
.woocommerce-page ul.products li.product .added_to_cart { margin: 0 1.2em; }
.woocommerce ul.products li.product .categories,
.woocommerce-page ul.products li.product .categories { font-size: .857rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce-page ul.products li.product .woocommerce-loop-product__link { overflow: hidden; }
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce-page ul.products li.product .woocommerce-loop-product__link img { margin-bottom: 0; backface-visibility: hidden; transition: filter .6s, opacity .6s, transform .6s; }
.woocommerce ul.products li.product .ast-woo-shop-product-description p:last-child,
.woocommerce ul.products li.product > .ast-loop-product__link:last-child .woocommerce-loop-product__title,
.woocommerce ul.products li.product > .button:last-child,
.woocommerce ul.products li.product > :last-child,
.woocommerce-page ul.products li.product .ast-woo-shop-product-description p:last-child,
.woocommerce-page ul.products li.product > .ast-loop-product__link:last-child .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product > .button:last-child,
.woocommerce-page ul.products li.product > :last-child { margin-bottom: 0; }

/* ---- Shop cards: hover zoom, square pagination ---- */
.woocommerce ul.products li.product.astra-woo-hover-zoom:hover img,
.woocommerce-page ul.products li.product.astra-woo-hover-zoom:hover img { transform: scale(1.1); }
.woocommerce nav.woocommerce-pagination ul li > span.current,
.woocommerce nav.woocommerce-pagination ul li > .page-numbers { border-color: #212121; }
.astra-shop-thumbnail-wrap { position: relative; }

/* ---- Quantity buttons (free theme markup; Pro added the borders) ---- */
.woocommerce .quantity .plus,
.woocommerce .quantity .minus,
.woocommerce .quantity .qty { border: 1px solid var(--ast-border-color); }
.woocommerce .quantity .minus { border-right: none; }
.woocommerce .quantity .plus { border-left: none; }
.woocommerce .quantity .ast-qty-placeholder { cursor: not-allowed; }

/* ---- Sub-menus capitalised (Pro typography rule) ---- */
.ast-hfb-header .ast-builder-menu-1 .main-header-menu .sub-menu .menu-link { text-transform: capitalize; }

/* ---- Blog: date box, reading time, read-more button ---- */
.ast-article-post .ast-date-meta .posted-on,
.ast-article-post .ast-date-meta .posted-on * { background: #212121; color: #fff; }
.ast-article-post .ast-date-meta .posted-on .date-month,
.ast-article-post .ast-date-meta .posted-on .date-year { color: #fff; }
.ast-no-thumb .ast-date-meta .posted-on { margin-bottom: 1.5em; }
.blog-layout-1 .post-thumb .posted-on { position: absolute; top: 0; }
.blog-layout-1 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; }
.blog-layout-1.ast-no-thumb .posted-on { position: relative; display: inline-block; }
.ast-blog-featured-section.ast-blog-single-element { float: left; }

/* ---- Header: account link, search box, sticky menu row ---- */
.ast-header-account { display: flex; }
.ast-header-account-link.ast-account-action-link,
.ast-header-account-link.ast-account-action-login,
.ast-header-break-point .ast-header-account-link { cursor: pointer; pointer-events: all; }
.ast-sticky-active { position: fixed !important; right: 0; left: 0; margin: 0 auto; }
.main-header-bar.ast-sticky-active { box-shadow: 0 2px 10px 0 rgba(36,50,66,.075); }

/* ---- Mega menu (only the item flagged `_menu_item_megamenu`): 3-column panel, row-major ---- */
@media (min-width: 922px) {
	.main-header-menu > .omg-megamenu-li > .sub-menu {
		display: grid;
		grid-template-columns: repeat(3, max-content);
		width: max-content;
		max-width: calc(100vw - 32px);
		padding: 21px 1px 21px !important;
		left: 0;
		right: auto;
	}
	.main-header-menu > .omg-megamenu-li > .sub-menu > .menu-item { width: auto; border: 0; padding: 0 15px; }
	.main-header-menu > .omg-megamenu-li > .sub-menu > .menu-item:first-child { padding-left: 0; }
	.main-header-menu > .omg-megamenu-li > .sub-menu > .menu-item:last-child { padding-right: 0; }
	.main-header-menu > .omg-megamenu-li > .sub-menu > .menu-item > .menu-link {
		text-align: center;
		white-space: nowrap;
		border: 0;
	}
}

/* ---- Typography module (headings extras) ---- */
.blog .entry-title, .blog .entry-title a,
.archive .entry-title, .archive .entry-title a,
.search .entry-title, .search .entry-title a { font-family: 'Poppins', sans-serif; font-weight: 400; line-height: 1.23em; }
.site-title, .site-title a { font-weight: 400; font-family: 'Poppins', sans-serif; line-height: 1.23em; }
.widget-area.secondary .sidebar-main .wp-block-heading,
#secondary .widget-title,
.woocommerce-page #secondary .widget .widget-title { font-weight: 400; font-family: 'Poppins', sans-serif; line-height: 1.23em; }
.site-header .menu-text { transition: none; }

/* ---- Menu link arrows: the dropdown arrow lives in its own toggle button (Pro nav-menu CSS) ---- */
.ast-header-break-point .menu-text + .icon-arrow,
.ast-desktop .menu-link > .icon-arrow:first-child,
.ast-header-break-point .main-header-menu > .menu-item > .menu-link .icon-arrow { display: none; }

/* ---- Spacing module: content container margins on tablet and mobile ---- */
@media (max-width: 921px) {
	.ast-separate-container.ast-right-sidebar #primary,
	.ast-separate-container.ast-left-sidebar #primary,
	.ast-separate-container #primary,
	.ast-plain-container #primary,
	.ast-narrow-container #primary { margin-top: 1.5em; margin-bottom: 1.5em; }
}
@media (max-width: 544px) {
	.ast-separate-container.ast-right-sidebar #primary,
	.ast-separate-container.ast-left-sidebar #primary,
	.ast-separate-container #primary,
	.ast-plain-container #primary,
	.ast-narrow-container #primary { margin-top: 0; margin-bottom: 0; }
}
