/*
Theme Name: Bw Zagg Child Custom
Theme URI: https://zagg.bzotech.com/intro/
Template: bw-zagg
Author: phoneshop.digitalexpert.lk
Description: Child theme for Bw Zagg. Adds conditional asset loading (performance), synced WooCommerce 11.1.1 templates, and AJAX/security hardening without modifying the parent theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bw-zagg-child-custom
*/

/*
 * Custom font: AF Sigiri
 *
 * Uploaded to wp-content/uploads/fonts/AF Sigiri.ttf. The url() below is
 * relative to this file's own location (wp-content/themes/bw-zagg-child-custom/),
 * not an absolute https://phoneshop.digitalexpert.lk/... URL — so it keeps
 * resolving correctly after a domain change, and even after moving the
 * whole WordPress install to a different path, as long as the standard
 * wp-content/themes/... and wp-content/uploads/... layout is kept.
 *
 * Use it anywhere with: font-family: 'AF Sigiri', sans-serif;
 */
@font-face {
	font-family: 'AF Sigiri';
	src: url('../../uploads/fonts/AF%20Sigiri.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/*
 * Product page tabs shown as stacked vertical sections instead of
 * click-to-switch tabs (see bzotech-templates/woocommerce/single-product/tabs.php
 * and inc/product-tabs.php). The parent theme's CSS styles .tab-pane
 * assuming only one is ever visible (.active) at a time; since our override
 * marks every .tab-pane "active" so they all render, this just adds
 * separation and heading spacing between the stacked sections.
 */
.tab-product-stacked .tab-pane {
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #eee;
}
.tab-product-stacked .tab-pane:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}
.tab-product-stacked .title-tab-product-stacked {
	margin: 0 0 20px;
}

/*
 * Homepage "New Arrivals" + "Must-Have Items" row (Elementor container
 * elementor-element-18a8f14, page ID 21410 / Home) doesn't stack on mobile.
 *
 * Elementor generated an UNCONDITIONAL rule for this specific container —
 * ".elementor .e-18a8f14-d7b678b { flex-direction: row; }" — with no
 * responsive override at any breakpoint, unlike the very similar row
 * directly above it on the same page (element 88e1e74), which does have a
 * proper "column" direction set for mobile. This looks like the container's
 * "Direction" control was only ever set on the Desktop breakpoint in the
 * Elementor editor and never explicitly overridden for Tablet/Mobile, so it
 * never inherited the stacked layout the rest of the page uses. Net effect:
 * on phones the product grid (element d5900b1) and the promo banner
 * (element 1cefdd8) stay squeezed side by side at ~50% width each instead
 * of stacking full-width, causing the truncated text seen in the report.
 *
 * This is corrected here in CSS rather than by editing the Elementor page
 * content directly, so it stays a safe, reversible child-theme change. The
 * 767px breakpoint matches the one Elementor already generated for the
 * neighboring row (element 88e1e74) on this same page, so both rows switch
 * to a stacked layout at the same screen width.
 */
@media (max-width: 767px) {
	.elementor .e-18a8f14-d7b678b,
	.elementor-element-18a8f14 {
		flex-direction: column !important;
	}
	.elementor-element-18a8f14 > .elementor-element-d5900b1,
	.elementor-element-18a8f14 > .elementor-element-1cefdd8 {
		width: 100% !important;
	}
}

/*
 * Primary action colors.
 *
 * Change the two values below to update the whole site's accent color
 * consistently. Nothing else needs editing.
 *
 * --bwzagg-btn-color / --bwzagg-btn-hover-color drive the Add to Cart
 * buttons directly (see the rule below) — every grid/list style variant
 * (.addcart-link, present on all of them), core WooCommerce's
 * .add_to_cart_button / .single_add_to_cart_button, and the single-product
 * sticky mobile add-to-cart button. Deliberately NOT "Update cart",
 * "Apply coupon", or account/login buttons.
 *
 * Everything else site-wide (main menu hover, wishlist/compare hover and
 * "added" states, filter checkboxes, sort-by dropdown, pagination,
 * mini-cart icon/count-bubble/total, general link hover, and dozens more)
 * already runs through ONE shared parent-theme variable, --bzo-main-color
 * (confirmed: 243 rules across the theme's CSS reference it, including
 * ".main-menu" hover, "a:hover", "input[type=checkbox]:checked", pagination,
 * wishlist/compare, mini-cart). Re-pointing that one variable at our hover
 * color is the theme's own built-in mechanism for exactly this — a single,
 * robust, holistic recolor rather than chasing 200+ individual selectors.
 * !important guarantees it wins regardless of whether the parent theme's
 * own color-option CSS is printed before or after this stylesheet.
 *
 * A product-card border/shadow accent was tried here too (orange border,
 * then a golden drop-shadow) and reverted both times — left alone now,
 * back to the parent theme's original card appearance.
 *
 * Not covered by this: banner-style buttons built directly in Elementor
 * page content (e.g. the homepage's "Buy Now" banner) — their fill color is
 * a per-widget content setting, not theme CSS, so a global rule can't reach
 * it. Say which banner(s) to recolor and it can be targeted specifically.
 */
:root {
	--bwzagg-btn-color: #0c0a0d;
	--bwzagg-btn-hover-color: #f75207;
	--bzo-main-color: var(--bwzagg-btn-hover-color) !important;
}

.addcart-link,
.add_to_cart_button,
.single_add_to_cart_button,
.sticky-addcart-mobile-css {
	background-color: var(--bwzagg-btn-color) !important;
	border-color: var(--bwzagg-btn-color) !important;
	color: #fff !important;
}
.addcart-link:hover,
.addcart-link:focus,
.add_to_cart_button:hover,
.add_to_cart_button:focus,
.single_add_to_cart_button:hover,
.single_add_to_cart_button:focus,
.sticky-addcart-mobile-css:hover {
	background-color: var(--bwzagg-btn-hover-color) !important;
	border-color: var(--bwzagg-btn-hover-color) !important;
	color: #fff !important;
}

/*
 * "New" / "Sale" product badges were hardcoded colors (blue / red) in the
 * parent theme, not tied to --bzo-main-color, so they need their own rule
 * to join the same palette: dark for the informational "New" badge, the
 * accent orange for the "Sale" badge (fits its existing attention-grabbing
 * role).
 */
.product-label span.new {
	background-color: var(--bwzagg-btn-color) !important;
}
.product-label span.sale {
	background-color: var(--bwzagg-btn-hover-color) !important;
}

/*
 * Special/sale price (the highlighted current price next to the
 * struck-through original). Hardcoded red in the parent theme, not tied to
 * --bzo-main-color. The struck-through original price is left as its
 * existing muted gray — only the "special" price itself changes.
 *
 * The single-product page needed a second, more specific rule: the parent
 * theme has its own !important rule scoped to
 * ".bzotech-price-single .product-price ins .woocommerce-Price-amount.amount"
 * there, which — being MORE specific than the general rule below — won the
 * tie even though both are !important (equal importance falls back to
 * specificity, not just source order). Matching that exact selector here
 * beats it the same way.
 */
.price ins .woocommerce-Price-amount,
ins .woocommerce-Price-amount {
	color: var(--bwzagg-btn-hover-color) !important;
}
.bzotech-price-single .product-price ins .woocommerce-Price-amount.amount {
	color: var(--bwzagg-btn-hover-color) !important;
}

/*
 * Wishlist icon (YITH WooCommerce Wishlist). The plugin uses its own CSS
 * variables — --add-to-wishlist-icon-color / --added-to-wishlist-icon-color
 * — completely separate from the theme's --bzo-main-color, so the global
 * override above doesn't reach it on its own. Tied to the same two colors
 * here: dark by default (matching every other icon's default state),
 * orange once hovered or already added to a wishlist (previously had no
 * hover color change at all).
 *
 * ".yith-add-to-wishlist-button-block" is the wrapper class the currently
 * installed plugin version (4.18.1) actually renders (confirmed live) —
 * ".yith-wcwl-add-to-wishlist" (an older version's class) is kept too in
 * case a future plugin update reverts the naming.
 */
.bzo-custom-wishlist,
.yith-wcwl-add-to-wishlist,
.yith-add-to-wishlist-button-block {
	--add-to-wishlist-icon-color: var(--bwzagg-btn-color);
	--added-to-wishlist-icon-color: var(--bwzagg-btn-hover-color);
}
.bzo-custom-wishlist:hover,
.yith-add-to-wishlist-button-block:hover {
	--add-to-wishlist-icon-color: var(--bwzagg-btn-hover-color);
}

/*
 * Quick View, Compare, and other product-card action icons: no change
 * needed here specifically — they already use the theme's shared
 * --bzo-title_typo-color (dark) by default and --bzo-main-color on hover,
 * both of which are now already in this palette via the rules above.
 */

/*
 * Shop page product card (grid style 11 — see the template override at
 * bzotech-templates/woocommerce/loop/grid/grid-style11.php):
 * - The hover-icon cluster's Wishlist icon was swapped for a Compare icon.
 * - A new, always-visible "Add to Cart" text button was added below the
 *   price. It already inherits the theme's dark/orange-hover colors from
 *   the universal .addcart-link rule earlier in this file — this block is
 *   layout only (the parent theme never positioned a full-width button
 *   here, since style 11 previously only had the small icon-only version).
 */
.item-grid-product-style11 .addcart-link-style11-full {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 12px 0 4px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-transform: capitalize;
}

/*
 * Single-product page meta info (Category / Tags / Brand).
 *
 * The "Product Code" (SKU) row is removed entirely in the child theme's
 * woocommerce/single-product/meta.php override — not shown to customers.
 *
 * The parent theme rendered this as one flat line of plain black text
 * ("Category: Apple" / "Tags: iOS, Smartphone" / "Brand: Apple", the last
 * one from WooCommerce core's own WC_Brands class using a different markup
 * shape entirely). Rebuilt here as a small card of labeled rows with
 * pill/chip links — the Brand row markup is also rebuilt in
 * inc/product-meta.php to match the same div > label > .meta-item-list
 * shape as Category/Tags, so one set of rules styles all three the same
 * way.
 */
.product_meta.item-product-meta-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin: 24px 0 0 !important;
	padding: 18px 22px;
	background-color: #fafafa;
	border: 1px solid #ececec;
	border-radius: 12px;
}
.product_meta.item-product-meta-info > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 !important;
}
.product_meta .posted_in label,
.product_meta .tagged_as label,
.product_meta .brand_wrapper label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex-shrink: 0;
	min-width: 88px;
	margin: 0 !important;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #8d8d8d;
}
.product_meta .meta-item-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0; /* collapses WooCommerce's ", " text separator between chip links */
}
.product_meta .meta-item-list a {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	background-color: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: #333 !important;
	line-height: 1.4;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.product_meta .meta-item-list a:hover {
	background-color: var(--bwzagg-btn-hover-color);
	border-color: var(--bwzagg-btn-hover-color);
	color: #fff !important;
}

/*
 * Single-product Wishlist + Compare row (.wishlist_compare_single_product_top,
 * see inc/wishlist-compare.php). The page used to show "Add to wishlist"
 * twice: this theme's own icon-only wishlist button in this row next to
 * Compare, AND WooCommerce/YITH's native wishlist button auto-injected as
 * its own separate, unstyled block further down the page. Removed the
 * duplicate — the native YITH button (via [yith_wcwl_add_to_wishlist]) now
 * renders once, inline in this same row.
 *
 * The parent theme's own ".wishlist_compare_single_product_top a" rule
 * (single-product.css) already gives every link in this row — Compare, the
 * WhatsApp share link — a matching inline icon+text look; that rule's icon
 * spacing targets an <i> icon-font tag though, and YITH's wishlist button
 * markup uses an <svg> instead, so it needs the same sizing applied here
 * explicitly rather than inheriting it.
 */
.wishlist_compare_single_product_top .yith-add-to-wishlist-button-block,
.wishlist_compare_single_product_top .yith-wcwl-add-to-wishlist-button {
	display: inline-flex;
	align-items: center;
}
.wishlist_compare_single_product_top .yith-wcwl-add-to-wishlist-button-icon {
	/*
	 * !important needed for width specifically: the plugin's own
	 * ".yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor
	 * svg.yith-wcwl-icon-svg" rule (add-to-wishlist.css) is more specific
	 * (3 classes) than this selector (2 classes) and sets width:30px, so it
	 * wins the cascade on specificity regardless of source order.
	 */
	width: 17px !important;
	height: 17px !important;
	margin-right: 9px;
	transform: translateY(1px);
}
.wishlist_compare_single_product_top .yith-wcwl-add-to-wishlist-button__label {
	font-size: 14px;
}

/*
 * Cart popup (site header "My Cart" — the bzotech-mini-cart-global
 * Elementor widget, "side-right" content style, confirmed live). The
 * parent theme's version was a bare white slide-in panel: square corners,
 * a solid-color close square stuck outside the panel's edge (confusingly
 * near the LEFT of the screen on mobile once the panel narrows), thin-line
 * item rows, float-based total row, and plain rectangular buttons.
 * Redesigned into a rounded card-style drawer using the site's existing
 * accent variables (--bwzagg-btn-color / --bwzagg-btn-hover-color).
 *
 * Only .mini_cart_item / .mini-cart-total / .mini-cart-button etc. are
 * touched without a "side" qualifier, since those same classes are shared
 * by the widget's "dropdown" content style too — this reskins both without
 * duplicating rules. Panel chrome (rounded corner, width, close button
 * position) is specific to the confirmed-active "side" style.
 * !important is needed throughout this section on properties the base
 * widget stylesheet (assets/global/css/elementor/bzotech-mini-cart-global.css)
 * already sets on the exact same selectors — confirmed live that Elementor
 * prints that per-widget CSS file later than this child stylesheet
 * regardless of its enqueue priority (unlike the parent theme's own
 * style.css, which the wp_enqueue_scripts priority-30 trick in
 * functions.php does correctly outrun), so equal-specificity same-selector
 * ties were being decided by source order in the base file's favor.
 */
.elbzotech-mini-cart-side-global .mini-cart-content {
	width: 420px !important;
	max-width: calc(100vw - 24px);
	border-radius: 20px 0 0 20px !important;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12) !important;
	padding: 70px 24px 24px !important;
	display: flex !important;
	flex-direction: column;
}
.elbzotech-mini-cart-side-left-global .mini-cart-content {
	border-radius: 0 20px 20px 0 !important;
	box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12) !important;
}
.elbzotech-mini-cart-side-global .mini-cart-side-overlay {
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}
@media (max-width: 767px) {
	.elbzotech-mini-cart-side-global.open-side .mini-cart-content {
		width: calc(100% - 24px) !important;
	}
}

/*
 * Close button: moved from a square tab stuck outside the panel's edge
 * (visually detached, and on mobile it landed confusingly on the opposite
 * side of the screen once the panel narrowed) to a circular icon button
 * inside the panel's own top-right corner — the standard placement for a
 * modern slide-in drawer.
 */
.elbzotech-mini-cart-side-global .elbzotech-close-mini-cart {
	position: absolute;
	top: 20px !important;
	left: auto !important;
	right: 20px !important;
	width: 36px !important;
	height: 36px !important;
	line-height: 36px !important;
	font-size: 16px !important;
	border-radius: 50%;
	background: #f2f2f2 !important;
	color: #333 !important;
	transition: background-color .2s ease, color .2s ease;
}
.elbzotech-mini-cart-side-global .elbzotech-close-mini-cart:hover {
	background: var(--bwzagg-btn-hover-color) !important;
	color: #fff !important;
}

/*
 * Scrollable item list, with the footer (total + buttons) staying visible
 * below it instead of scrolling out of view. The widget's actual rendered
 * markup nests the item list and the footer together inside one or more
 * ".widget_shopping_cart_content" wrappers (confirmed live — WooCommerce's
 * own mini-cart widget markup, not the flat structure the Elementor widget
 * class's PHP suggests), so making just the outer panel a flex column
 * isn't enough — each wrapper level in between has to pass flex sizing
 * down too, or the item list has nothing to size itself against.
 */
.elbzotech-mini-cart-side-global .mini-cart-main-content,
.elbzotech-mini-cart-side-global .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}
.mini-cart-content .list-mini-cart-item {
	flex: 1 1 auto;
	overflow-y: auto;
	min-height: 0;
	padding-right: 4px;
	margin-bottom: 16px;
}
.mini-cart-content .list-mini-cart-item::-webkit-scrollbar {
	width: 5px;
}
.mini-cart-content .list-mini-cart-item::-webkit-scrollbar-track {
	background: transparent;
}
.mini-cart-content .list-mini-cart-item::-webkit-scrollbar-thumb {
	background-color: #e0e0e0;
	border-radius: 10px;
}

/* Cart item rows: card-style with a soft hover state instead of a bare divider line. */
.mini_cart_item {
	border: none !important;
	border-radius: 14px;
	padding: 10px !important;
	margin-bottom: 6px !important;
	transition: background-color .2s ease;
}
.mini_cart_item:hover {
	background-color: #f7f7f7;
}
.mini_cart_item .product-thumb {
	border: none !important;
	border-radius: 10px;
	overflow: hidden;
	background-color: #f2f2f2;
	flex-basis: 64px !important;
	width: 64px;
	height: 64px;
}
.mini_cart_item .product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}
.mini_cart_item .product-info .product-title a {
	color: #1a1a1a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mini_cart_item .mini-cart-qty {
	margin-top: 4px;
	font-size: 13px;
	color: #888;
}
.mini_cart_item .mini-cart-qty .qty-num {
	display: inline-block;
	background: #f2f2f2;
	border-radius: 6px;
	padding: 1px 7px;
	font-weight: 600;
	color: #333;
}
.mini_cart_item .mini-cart-qty .woocommerce-Price-amount {
	color: var(--bwzagg-btn-hover-color);
	font-weight: 600;
}
.mini_cart_item .product-delete {
	flex-basis: auto !important;
}
.mini_cart_item .product-delete a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	transition: background-color .2s ease;
}
.mini_cart_item .product-delete a:hover {
	background-color: #fdeaea;
}
.mini_cart_item .product-delete i {
	color: #b0b0b0 !important;
}
.mini_cart_item .product-delete a:hover i {
	color: #e0433f !important;
}

/* Empty-cart state: a centered, softer message instead of one bare line of text. */
.mini-cart-empty {
	text-align: center;
	padding: 50px 10px;
	color: #888;
	font-size: 15px;
}
.mini-cart-empty::before {
	content: "\f07a";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	display: block;
	font-size: 40px;
	color: #d8d8d8;
	margin-bottom: 16px;
}

/* Footer: bigger/bolder total, pill buttons matching the site's accent palette. */
.mini-cart-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px !important;
	border-top: 1px solid #eee;
	flex-shrink: 0;
}
.mini-cart-total .pull-left,
.mini-cart-total .pull-right {
	float: none !important;
}
.mini-cart-total .pull-left {
	font-size: 15px !important;
}
.mini-cart-total .pull-right {
	font-size: 19px;
	color: var(--bwzagg-btn-hover-color);
}
.mini-cart-button {
	margin-top: 14px !important;
	gap: 12px !important;
}
.mini-cart-button .button {
	padding: 13px 10px;
	font-weight: 600;
	text-transform: capitalize;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.mini-cart-button .button.wc-forward:not(.checkout) {
	background: #fff;
	border: 1px solid #ddd;
	color: #333;
}
.mini-cart-button .button.wc-forward:not(.checkout):hover {
	border-color: var(--bwzagg-btn-color);
	color: var(--bwzagg-btn-color);
}
.mini-cart-button .button.checkout {
	background: var(--bwzagg-btn-color);
	color: #fff;
}
.mini-cart-button .button.checkout:hover {
	background: var(--bwzagg-btn-hover-color);
}

/*
 * Mobile/tablet bottom bar (".after-append-footer", Elementor template
 * 17429 — Home / Search / Shop / Phone / More, hidden above 1200px).
 *
 * Color: its container uses the theme's ".bg-color-darken" class, which
 * paints --bzo-main-color-mix-black. The theme's inline CSS hardcodes that
 * variable as the ORIGINAL theme green (rgba(47,115,87)) instead of
 * deriving it from --bzo-main-color, so the --bzo-main-color override at the
 * top of this file never reached it: the bar stayed green on the home page
 * and showed other shades elsewhere. Pointed at the accent color directly,
 * scoped to this bar only so other ".bg-color-darken" uses keep their
 * intended darker shade.
 *
 * Compare bar: the YITH compare preview bar is fixed to bottom:0 with a
 * lower z-index (99) than this bar (999), so on small screens it was hidden
 * behind it. Lifted by this bar's height (68px) at the same breakpoint.
 */
@media (max-width: 1200px) {
	.after-append-footer .bg-color-darken {
		background-color: #de4c09;
	}
	#yith-woocompare-preview-bar {
		bottom: 68px !important;
	}
}

/*
 * Lazy-loaded product tabs (inc/lazy-product-tabs.php, js/lazy-product-tabs.js):
 * placeholder shown in a tab pane while its products are being fetched.
 */
.bwzagg-tab-loading {
	min-height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bwzagg-tab-loading::after {
	content: "";
	width: 34px;
	height: 34px;
	border: 3px solid #e3e3e3;
	border-top-color: var(--bwzagg-btn-hover-color);
	border-radius: 50%;
	animation: bwzagg-tab-spin .7s linear infinite;
}
.bwzagg-tab-failed .bwzagg-tab-loading::after {
	animation: none;
	border-color: #e3e3e3;
}
@keyframes bwzagg-tab-spin {
	to { transform: rotate(360deg); }
}

/*
 * Home-page hero (markup from inc/static-hero.php): two banner images cross-faded
 * with CSS only. Each slide has a square image for phones and a wide one (10:3)
 * from 768px up, picked by <picture>. The stage's height is a viewport-unit length
 * (neither aspect-ratio nor percentage padding: Elementor's flex containers
 * collapse around both), so the space is reserved and nothing shifts. On very wide screens the stage
 * stops at the wide image's own width and is centred on the black band.
 * Only opacity is animated, so it runs on the compositor (no main-thread work).
 */
.bwzagg-hero {
	position: relative;
	width: 100%;
	background: #000;
	overflow: hidden;
}
.bwzagg-hero__stage {
	position: relative;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	/* Square image: as tall as it is wide (at most 480px). A viewport-unit length, not a percentage
	   padding: Elementor's flex containers size themselves around percentage padding as if it were 0. */
	height: min(100vw, 480px);
}
.bwzagg-hero__slide {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
/* Two classes deep: Elementor's own ".elementor img { height: auto }" would otherwise win, and an
   image that hasn't been decoded yet falls back to its (square) width/height attributes. */
.bwzagg-hero .bwzagg-hero__slide picture,
.bwzagg-hero .bwzagg-hero__img {
	display: block;
	width: 100%;
	height: 100%;
}
.bwzagg-hero .bwzagg-hero__img {
	object-fit: cover;
}
.bwzagg-hero__slide--1 { animation: bwzagg-hero-a 18s infinite; }
.bwzagg-hero__slide--2 { opacity: 0; animation: bwzagg-hero-b 18s infinite; }
.bwzagg-hero:hover .bwzagg-hero__slide { animation-play-state: paused; }
@keyframes bwzagg-hero-a {
	0%, 46% { opacity: 1; }
	50%, 96% { opacity: 0; }
	100% { opacity: 1; }
}
@keyframes bwzagg-hero-b {
	0%, 46% { opacity: 0; }
	50%, 96% { opacity: 1; }
	100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.bwzagg-hero__slide--1 { animation: none; }
	.bwzagg-hero__slide--2 { display: none; }
}

.bwzagg-hero__btn {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 85%;
	transform: translateX(-50%);
	display: inline-block;
	padding: 0 22px;
	font-size: 13px;
	font-weight: 500;
	line-height: 36px;
	white-space: nowrap;
	text-decoration: none;
	color: #000;
	background: #fff;
	border-radius: 8px;
}
.bwzagg-hero__btn:hover,
.bwzagg-hero__btn:focus {
	color: #fff;
	background: var(--bwzagg-btn-hover-color, #f75207);
}

/* Tablet / desktop: the wide (2000x600) images */
@media (min-width: 768px) {
	.bwzagg-hero__stage {
		/* Never wider than 1440px (the width the old slider was designed for and stopped growing at):
		   a wider box stretches the 2000px banners past their real size, so they go soft on big or
		   high-density screens. Beyond 1440px the black band simply continues on both sides. */
		max-width: 1440px;
		/* 3:10 of the width (30vw includes a desktop scrollbar's ~15px: a ~1% bigger box that the
		   cover-fitted image simply fills), at most 432px. */
		height: min(30vw, 432px);
	}
	.bwzagg-hero__btn {
		/* Centred under the headline block of the wide images. */
		left: 27%;
		top: 77%;
		min-width: 135px;
		text-align: center;
		line-height: 40px;
	}
}

/*
 * Layout shift (CLS) from the home-page category carousel.
 *
 * Before its Swiper script runs, every slide is 100% wide, so each 400px
 * category image makes the carousel ~230px taller than it ends up. When the
 * script finally runs (late on a phone), the carousel shrinks and the whole
 * page below it jumps up (PageSpeed: CLS 0.177). These rules give the slides
 * their final width up front, using the same breakpoints, item counts and gaps
 * as the slider's own settings (2/4/4/5/5/8 items, 15/15/15/15/20/20px gaps).
 * They only apply until the slider is initialised; Swiper's inline widths take
 * over after that.
 */
.elbzotech-wrapper-slider-global-category4 .elbzotech-swiper-slider:not(.swiper-container-initialized):not(.swiper-initialized) .swiper-slide {
	flex: 0 0 auto;
	width: calc((100% - 15px) / 2);
	margin-right: 15px;
}
@media (min-width: 768px) {
	.elbzotech-wrapper-slider-global-category4 .elbzotech-swiper-slider:not(.swiper-container-initialized):not(.swiper-initialized) .swiper-slide {
		width: calc((100% - 45px) / 4);
	}
}
@media (min-width: 1025px) {
	.elbzotech-wrapper-slider-global-category4 .elbzotech-swiper-slider:not(.swiper-container-initialized):not(.swiper-initialized) .swiper-slide {
		width: calc((100% - 60px) / 5);
	}
}
@media (min-width: 1201px) {
	.elbzotech-wrapper-slider-global-category4 .elbzotech-swiper-slider:not(.swiper-container-initialized):not(.swiper-initialized) .swiper-slide {
		width: calc((100% - 80px) / 5);
		margin-right: 20px;
	}
}
@media (min-width: 1367px) {
	.elbzotech-wrapper-slider-global-category4 .elbzotech-swiper-slider:not(.swiper-container-initialized):not(.swiper-initialized) .swiper-slide {
		width: calc((100% - 140px) / 8);
	}
}

/*
 * Accessibility: text contrast (WCAG AA = 4.5:1) and tap target size.
 * Only greys are changed here; the brand orange (#f75207) is deliberately left alone.
 */
/* Header search: #80888f on #f7f9fb was 3.4:1. */
.elbzotech-search-global-form .dropdown-link > span,
.elbzotech-search-global-form input.input-layout-flex-e {
	color: #596068 !important;
}
.elbzotech-search-global-form input.input-layout-flex-e::placeholder {
	color: #596068;
}
/* The search icon button was 22x26px; the icon stays where it was, the tap area is 44x44. */
.elbzotech-search-global-form .elbzotech-text-bt-search {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	right: 9px !important; /* 20px - the 11px of padding the bigger box adds: the icon doesn't move */
}
/* Product-grid category labels were #666 at 75% opacity (~3.2:1); struck-through old prices were #a0a0a0 / 60% opacity (2.4:1). */
.hfe-woo-products-grid .hfe-product-category {
	opacity: 1 !important;
	color: #595959 !important;
}
.hfe-woo-products-grid del,
.price del,
.product-price del {
	opacity: 1 !important;
}
.hfe-woo-products-grid del *,
.price del,
.price del .woocommerce-Price-amount,
.product-price del,
.product-price del .woocommerce-Price-amount {
	color: #6b6b6b !important;
}

/*
 * Home page product cards (Header Footer Elementor "Products" grid: .hfe-product-item).
 * They were flat grey boxes with square corners; now they get the same soft, rounded look as the
 * rest of the theme (cart popup, product meta chips): slightly rounded corners, a light shadow,
 * and a small lift on hover. The card already has overflow:hidden, so the product image is
 * clipped to the rounded corners.
 */
.home .hfe-product-item {
	/* !important: the widget's own generated Elementor CSS sets "border-radius: 0" with a more specific selector. */
	border-radius: 12px !important;
	border-color: rgba(12, 10, 13, 0.06);
	box-shadow: 0 4px 16px rgba(12, 10, 13, 0.08);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.home .hfe-product-item:hover,
.home .hfe-product-item:focus-within {
	box-shadow: 0 12px 28px rgba(12, 10, 13, 0.16);
	transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
	.home .hfe-product-item {
		transition: none;
	}
	.home .hfe-product-item:hover,
	.home .hfe-product-item:focus-within {
		transform: none;
	}
}

