/*
 Theme Name:   Hello Buldog Child
 Theme URI:    https://wordpress.org/themes/hello-elementor/
 Description:  Child theme of Hello Elementor — Buldog storefront (logic ported from Electro Child).
 Author:       Buldog
 Template:     hello-elementor
 Version:      1.0.9
 License:      GNU General Public License v3 or later
 License URI:  https://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  hello-elementor-child
 Requires at least: 6.0
 Tested up to: 6.8
 Requires PHP: 7.4
*/

.image-vertical-align {
	align-items: flex-start;
}
li.nav-title a {
	font-size: 16px !important;
	padding: 0 !important;
}
.small-menu {
	width: 50%;
}

mark.count {
	display: none !important;
}

/* Product category archive: optional quick links above each product title (term meta). */
.buldog-loop-item-cat-links {
	margin-bottom: 0.4em;
}
.buldog-loop-item-cat-links__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35em 0.5em;
	line-height: 1.3;
}
.buldog-loop-item-cat-links__a {
	font-size: 12px;
	text-decoration: underline;
	color: #555;
}
.buldog-loop-item-cat-links__a:hover {
	color: #dd3333;
}

/* Unit price (PPU): break to new line under main price (inside .price <p>). */
.woocommerce .price .ppu {
	display: block;
	margin-top: 0.25em;
	font-size: 12px;
}

/**
 * Buldog Elementor “Electro-style” WooCommerce breadcrumbs.
 * Mirrors Electro theme `assets/scss/theme/components/_breadcrumb.scss` (compiled values).
 */
.buldog-electro-breadcrumb {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	padding: 9px 15px;
	margin: 0 0 1.6em;
	background-color: rgb(247, 247, 247);
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	font-size: 14px;
	line-height: 1.5;
	column-gap: 0;
	row-gap: 0.35em;
}
@media (min-width: 768px) {
	.buldog-electro-breadcrumb {
		background-color: transparent;
		padding: 1.786em 0 1.6em;
		overflow: visible;
		margin: 0 0 1.6em;
	}
}
.buldog-electro-breadcrumb a {
	display: inline-flex;
	align-items: center;
}
.buldog-electro-breadcrumb span.delimiter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin: 0 10px;
	line-height: 1;
}
.buldog-electro-breadcrumb span.delimiter i,
.buldog-electro-breadcrumb span.delimiter svg {
	display: block;
	line-height: 1;
}
@media (min-width: 768px) {
	.buldog-electro-breadcrumb span.delimiter {
		margin: 0 1.429em;
	}
}
.buldog-electro-breadcrumb span.delimiter + a {
	padding: 0.465em 0.929em;
	border-radius: 0.357em;
}
@media (min-width: 768px) {
	.buldog-electro-breadcrumb span.delimiter + a {
		background-color: rgb(241, 241, 241);
	}
	.buldog-electro-breadcrumb span.delimiter + a:hover,
	.buldog-electro-breadcrumb span.delimiter + a:focus {
		background-color: rgb(229, 229, 229);
	}
}
/* RTL: do not auto-flip delimiter icons — pick chevron/SVG direction in the Elementor widget. */

/* Buldog: loop add to cart (theme AJAX qty, no plugin). */
.buldog-loop-atc-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.35rem;
	min-height: 2.75em;
}
.buldog-loop-qty-row--hidden {
	display: none !important;
}
.buldog-loop-atc--in-cart .price-add-to-cart .add_to_cart_button {
	display: none !important;
}
.buldog-loop-atc-wrap .price-add-to-cart .add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	line-height: 1;
	min-width: 2.5em;
	min-height: 2.5em;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
/* Icon-only: square 100px; equal border-radius (e.g. 50%) gives a circle. */
.buldog-loop-atc-wrap.buldog-loop-atc--icon-only .price-add-to-cart .add_to_cart_button {
	aspect-ratio: 1;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	max-width: 36px;
	max-height: 36px;
	box-sizing: border-box;
	flex: 0 0 auto;
	padding:8px;
}
.buldog-loop-atc-wrap .buldog-loop-atc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Same “button” sizing as in-stock ATC; Woo omits `add_to_cart_button` when OOS—we add it back. Strip pseudo-icons so only the arrow (widget icon) shows. */
.buldog-loop-atc-wrap.buldog-loop-atc--out-of-stock .add_to_cart_button::before,
.buldog-loop-atc-wrap.buldog-loop-atc--out-of-stock .add_to_cart_button::after {
	content: none !important;
	display: none !important;
	padding: 0 !important;
}
.buldog-loop-atc-wrap .product-cart-loading {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(255, 255, 255, 0.55);
	pointer-events: none;
	align-items: center;
	justify-content: center;
}
.buldog-loop-atc-wrap .product-cart-loading.show {
	display: flex;
}
.buldog-loop-atc-wrap .product-cart-loading img {
	width: 20px;
	height: 20px;
}
.buldog-qty-controls {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	max-width: 100%;
}
.buldog-qty-controls .buldog-loop-qty-input {
	width: 2.5em;
	min-width: 2em;
	text-align: center;
	border: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0.35em 0.2em !important;
	-moz-appearance: textfield;
	font-size: 1em;
	line-height: 1.2;
	background: transparent;
}
.buldog-qty-controls .buldog-loop-qty-input::-webkit-outer-spin-button,
.buldog-qty-controls .buldog-loop-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.buldog-qty-btn {
	appearance: none;
	border: none;
	background: transparent;
	color: #0e5ca5;
	font-size: 1.25rem;
	line-height: 1;
	width: 2rem;
	padding: 0.25rem 0;
	cursor: pointer;
	flex-shrink: 0;
}
.buldog-qty-btn:hover,
.buldog-qty-btn:focus {
	color: #094074;
}

/**
 * Buldog Elementor widgets — Layout → Container width (wrapper classes from prefix_class).
 */
.elementor-element.buldog-cont-w--full {
	width: 100% !important;
	max-width: 100% !important;
}
.elementor-element.buldog-cont-w--inline {
	width: auto !important;
	max-width: none !important;
	align-self: flex-start;
}



/**
 * WooCommerce archive CSS targets `.woocommerce ul.products li.product .price` / `.button` with specificity that beats `:where(...)`.
 * Strip those loop defaults on Elementor tiles so Loop Item + Kit typography and ATC/button styling apply.
 */
.woocommerce ul.products > li.buldog-wc-loop-item--elementor .price {
	font-size: unset;
	line-height: unset;
	font-weight: unset;
	margin-bottom: unset;
	display: unset;
	color: unset;
}

.woocommerce ul.products > li.buldog-wc-loop-item--elementor .price del,
.woocommerce ul.products > li.buldog-wc-loop-item--elementor .price ins {
	opacity: unset;
	display: unset;
	font-weight: unset;
	background: unset;
	color: unset;
}

.woocommerce ul.products > li.buldog-wc-loop-item--elementor a.button.add_to_cart_button {
	margin-top: 0;
}

/**
 * Hello `reset.css`: `h2 { font-size: 2rem }` (and other heading tags) apply globally and can override Loop Item titles on archives.
 * `:where(...)` keeps specificity below Elementor typography rules on `.elementor-heading-title`; when Kit omits `font-size`, `unset` inherits from the widget container instead of reset’s tag rule.
 */
:where(.woocommerce ul.products > li.buldog-wc-loop-item--elementor) .elementor-heading-title {
	font-size: unset;
	line-height: unset;
	font-weight: unset;
	margin-block-start: unset;
	margin-block-end: unset;
}

:where(.woocommerce ul.products > li.buldog-wc-loop-item--elementor) .elementor-widget-html :where(h1, h2, h3, h4, h5, h6) {
	font-size: unset;
	line-height: unset;
	font-weight: unset;
	margin-block-start: unset;
	margin-block-end: unset;
}

/**
 * Hello Elementor `theme.css` caps these wrappers at `1140px` from `1200px` viewport up.
 * Buldog content width target: `1400px` (matches wider storefront layout).
 */
@media (min-width: 1200px) {
	.page-header .entry-title,
	.site-footer .footer-inner,
	.site-footer:not(.dynamic-footer),
	.site-header .header-inner,
	.site-header:not(.dynamic-header),
	body:not([class*="elementor-page-"]) .site-main {
		max-width: 1400px;
	}
}

/**
 * Category details (`woocommerce_after_main_content`) renders outside `.site-main`; mirror Hello `.site-main` width steps below `1200px` (`1400px` at `1200px+` shares the Buldog rule above).
 */
.product-cat-details {
	box-sizing: border-box;
	margin-inline: auto;
	padding-block: 20px;
}

@media (max-width: 575px) {
	.product-cat-details {
		padding-inline: 10px;
	}
}

@media (min-width: 576px) {
	.product-cat-details {
		max-width: 500px;
	}
}

@media (min-width: 768px) {
	.product-cat-details {
		max-width: 600px;
	}
}

@media (min-width: 992px) {
	.product-cat-details {
		max-width: 800px;
	}
}

@media (min-width: 1200px) {
	.product-cat-details {
		max-width: 1400px;
	}
}

/**
 * WooCommerce product archives — circular pagination (Buldog primary red active).
 */
.woocommerce-pagination,
.woocommerce-pagination ul.page-numbers {
	border: none;
	box-shadow: none;
	outline: none;
	background: transparent;
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 0;
	gap: 0.286em;
}

.woocommerce-pagination ul.page-numbers > li {
	margin: 0;
	list-style: none;
	border: none;
}
.woocommerce nav.woocommerce-pagination ul{border: none;display: flex;gap:7px;}
.woocommerce nav.woocommerce-pagination ul li {border: none;}
.woocommerce-pagination ul.page-numbers > li a,
.woocommerce-pagination ul.page-numbers > li span {
	box-sizing: border-box;
	width: 35px;
	height: 35px;
	min-width: 35px;
	min-height: 35px;
	padding: 0;
	color: #333;
	border: 1px solid #ccc;
	line-height: 1;
	text-align: center;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	vertical-align: middle;
	font-variant-numeric: tabular-nums;
	display: flex !important;
}

.woocommerce-pagination ul.page-numbers > li a.current,
.woocommerce-pagination ul.page-numbers > li span.current {
	font-weight: 700;
	border-color: #e23434;
	background-color: #e23434 !important;
	color: #fff !important;
}

.woocommerce-pagination ul.page-numbers > li a.dots,
.woocommerce-pagination ul.page-numbers > li span.dots {
	border: none;
	padding: 0.642em;
	min-width: auto;
	width: auto;
	height: auto;
	min-height: 0;
	border-radius: 0;
	background: transparent;
	line-height: inherit;
	color: #333;
}

.woocommerce-pagination ul.page-numbers > li a.page-numbers:not(.current):hover {
	background-color: #e23434;
	border-color: #e23434;
	color: #fff;
}

.woocommerce-pagination ul.page-numbers > li a.page-numbers.current:hover {
	opacity: 0.9;
}

/* ── `[read more]` collapsible marker (filtered in `functions.php`) ───────────────── */
.buldog-read-more {
	margin: 0.75rem 0;
}

.buldog-read-more__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-block: 0.5rem;
	padding: 0.35em 1em;
	min-height: 2.25rem;
	line-height: 1.25;
	font: inherit;
	font-size: max(13px, 0.875em);
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	color: inherit;
	background: rgb(237, 240, 243);
	border: 1px solid rgb(208, 213, 221);
	border-radius: 999px;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
		box-shadow 0.15s ease;
	box-shadow: 0 1px 2px rgb(18 43 74 / 0.06);
}

.buldog-read-more__toggle:hover {
	background: #e23434;
	border-color: #e23434;
	color: #fff;
}

.buldog-read-more__toggle:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgb(255 255 255 / 1), 0 0 0 4px rgb(51 101 233 / 0.45);
}

.buldog-read-more__toggle:focus:not(:focus-visible) {
	box-shadow: 0 1px 2px rgb(18 43 74 / 0.06);
}

.buldog-read-more__tail {
	margin-top: 0.35rem;
}

/**
 * Single product — add to cart: brand red (override Electro-style grays / yellow primary on `.alt` buttons).
 */
.single-product .woocommerce div.product form.cart .button.alt,
.single-product .woocommerce div.product form.cart .single_add_to_cart_button,
.single-product .woocommerce div.product form.cart button[type="submit"][name="add-to-cart"],
.single-product .elementor-widget-woocommerce-product-add-to-cart form.cart .button.alt,
.single-product .elementor-widget-woocommerce-product-add-to-cart form.cart .single_add_to_cart_button,
.single-product
	.elementor-widget-woocommerce-product-add-to-cart
	form.cart
	button[type="submit"][name="add-to-cart"] {
	background-color: #e23434 !important;
	border-color: #e23434 !important;
	color: #fff !important;
}

.single-product .woocommerce div.product form.cart .button.alt:hover,
.single-product .woocommerce div.product form.cart .button.alt:focus,
.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover,
.single-product .woocommerce div.product form.cart .single_add_to_cart_button:focus,
.single-product
	.woocommerce
	div.product
	form.cart
	button[type="submit"][name="add-to-cart"]:hover,
.single-product
	.woocommerce
	div.product
	form.cart
	button[type="submit"][name="add-to-cart"]:focus,
.single-product .elementor-widget-woocommerce-product-add-to-cart form.cart .button.alt:hover,
.single-product .elementor-widget-woocommerce-product-add-to-cart form.cart .button.alt:focus,
.single-product .elementor-widget-woocommerce-product-add-to-cart form.cart .single_add_to_cart_button:hover,
.single-product .elementor-widget-woocommerce-product-add-to-cart form.cart .single_add_to_cart_button:focus,
.single-product
	.elementor-widget-woocommerce-product-add-to-cart
	form.cart
	button[type="submit"][name="add-to-cart"]:hover,
.single-product
	.elementor-widget-woocommerce-product-add-to-cart
	form.cart
	button[type="submit"][name="add-to-cart"]:focus {
	background-color: #ef4848 !important;
	border-color: #c42a2a !important;
	color: #fff !important;
}

/**
 * Product loop — button row; horizontal alignment comes from Elementor (Button → Horizontal alignment).
 */
.buldog-wc-loop-item--elementor .buldog-loop-atc-wrap .buldog-loop-atc-actions {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 2.571em;
}

.buldog-wc-loop-item--elementor .buldog-loop-atc-wrap .buldog-loop-atc-actions .price-add-to-cart {
	display: flex;
	align-items: center;
	height: auto;
	min-height: 0;
	clear: none;
}

.buldog-wc-loop-item--elementor .buldog-loop-atc-wrap .buldog-loop-atc-actions .add-to-cart-wrap {
	display: flex;
	align-items: center;
}

/* Buldog · Loop variation swatches widget (full-width row). */
.buldog-wc-loop-item--elementor .buldog-loop-variations-widget {
	display: block;
	width: 100%;
	margin-top: 0.5rem;
}

.buldog-wc-loop-item--elementor .buldog-loop-variations-widget .buldog-loop-variations {
	width: 100%;
	margin: 0;
}

.buldog-wc-loop-item--elementor .wvs-archive-variations-wrapper {
	display: block;
	width: 100%;
}

.buldog-wc-loop-item--elementor .wvs-archive-variations-wrapper .variations {
	list-style: none;
	margin: 0;
	padding: 0;
}

.buldog-wc-loop-item--elementor .wvs-archive-variations-wrapper .woo-variation-items-wrapper {
	margin: 0;
	padding: 0;
}

.buldog-wc-loop-item--elementor .wvs-archive-variations-wrapper .variable-items-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
}

.buldog-wc-loop-item--elementor .wvs-archive-variations-wrapper .variable-item {
	cursor: pointer;
	list-style: none;
	margin: 0;
}

/* Variation swatches: image inside button-type options (Buldog child theme). */
.elementor-widget-woocommerce-product-add-to-cart .variable-item.button-variable-item.buldog-wvs-has-image .variable-item-contents,
.single-product .woocommerce div.product form.cart .variable-item.button-variable-item.buldog-wvs-has-image .variable-item-contents {
	padding: 2px;
}

.elementor-widget-woocommerce-product-add-to-cart .variable-item.button-variable-item.buldog-wvs-has-image .variable-item-image,
.single-product .woocommerce div.product form.cart .variable-item.button-variable-item.buldog-wvs-has-image .variable-item-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.elementor-widget-woocommerce-product-add-to-cart .variable-item.button-variable-item.buldog-wvs-has-image .variable-item-span-button--has-image,
.single-product .woocommerce div.product form.cart .variable-item.button-variable-item.buldog-wvs-has-image .variable-item-span-button--has-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 0;
	font-size: 0;
}

.single-product .woocommerce div.product form.cart .button.alt:disabled,
.single-product .woocommerce div.product form.cart .single_add_to_cart_button:disabled,
.single-product .woocommerce div.product form.cart button[type="submit"][name="add-to-cart"]:disabled,
.single-product .elementor-widget-woocommerce-product-add-to-cart form.cart .button.alt:disabled,
.single-product .elementor-widget-woocommerce-product-add-to-cart form.cart .single_add_to_cart_button:disabled,
.single-product
	.elementor-widget-woocommerce-product-add-to-cart
	form.cart
	button[type="submit"][name="add-to-cart"]:disabled {
	opacity: 0.65;
}

/* YOP Poll + product page tweaks */
.yop-poll-answer {
	flex-direction: row;
	justify-content: flex-start;
}

.yop-poll-vote-button {
	background: #e23434;
}

.yop-poll-vote-button:hover {
	background: #e23434;
	opacity: 0.8;
}

.elementor-76394 .elementor-element.elementor-element-51508a4 .quantity input.qty {
	direction: ltr;
}

.woocommerce table.shop_attributes td {
	padding: 8px;
}

/**
 * WooCommerce notices — Buldog red bar, white text, no border.
 * Overrides WooCommerce core + Elementor Pro notice styles.
 */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.e-wc-info-notice .woocommerce-info,
.e-wc-message-notice .woocommerce-message,
.e-wc-error-notice .woocommerce-error,
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-error {
	background-color: #e23434 !important;
	color: #fff !important;
	border: none !important;
	border-top: none !important;
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before,
.e-wc-info-notice .woocommerce-info::before,
.e-wc-message-notice .woocommerce-message::before,
.e-wc-error-notice .woocommerce-error::before {
	color: #fff !important;
}

.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info .button,
.woocommerce-message .button,
.woocommerce-error .button,
.e-wc-info-notice .woocommerce-info a,
.e-wc-info-notice .woocommerce-info .button,
.e-wc-message-notice .woocommerce-message a,
.e-wc-message-notice .woocommerce-message .button,
.e-wc-message-notice .woocommerce-message .restore-item,
.e-wc-error-notice .woocommerce-error a,
.e-wc-error-notice .woocommerce-error .button,
.e-wc-error-notice .woocommerce-error .wc-backward,
.wc-block-components-notice-banner.is-info a,
.wc-block-components-notice-banner.is-success a,
.wc-block-components-notice-banner.is-error a,
.wc-block-components-notice-banner.is-info .button,
.wc-block-components-notice-banner.is-success .button,
.wc-block-components-notice-banner.is-error .button,
.wc-block-components-notice-banner.is-info .wc-forward,
.wc-block-components-notice-banner.is-success .wc-forward,
.wc-block-components-notice-banner.is-error .wc-forward {
	color: #fff !important;
	border-color: #fff !important;
	background-color: transparent !important;
}

.woocommerce-info a:hover,
.woocommerce-message a:hover,
.woocommerce-error a:hover,
.woocommerce-info .button:hover,
.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.e-wc-info-notice .woocommerce-info a:hover,
.e-wc-info-notice .woocommerce-info .button:hover,
.e-wc-message-notice .woocommerce-message a:hover,
.e-wc-message-notice .woocommerce-message .button:hover,
.e-wc-message-notice .woocommerce-message .restore-item:hover,
.e-wc-error-notice .woocommerce-error a:hover,
.e-wc-error-notice .woocommerce-error .button:hover,
.e-wc-error-notice .woocommerce-error .wc-backward:hover,
.wc-block-components-notice-banner.is-info a:hover,
.wc-block-components-notice-banner.is-success a:hover,
.wc-block-components-notice-banner.is-error a:hover,
.wc-block-components-notice-banner.is-info .button:hover,
.wc-block-components-notice-banner.is-success .button:hover,
.wc-block-components-notice-banner.is-error .button:hover {
	color: #fff !important;
	border-color: #fff !important;
	opacity: 0.85;
}

.wc-block-components-notice-banner > svg {
	fill: #fff !important;
	background-color: transparent !important;
}

.wc-block-components-notice-banner > .wc-block-components-button {
	color: #fff !important;
}
