/*
	Theme Name: Hello Biz Child
	Theme URI: https://elementor.com/products/hello-biz/
	Description: Child theme of Hello Biz for custom styles and WooCommerce template overrides.
	Author: Amar FILALI
	Author URI:
	Template: hello-biz
	Version: 1.0.0
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-biz-child
*/

/* ── Quantity selector ── */
/* High-specificity selectors to override Elementor Pro styles */

.woocommerce div.product form.cart div.quantity.byv-quantity,
.woocommerce .cart div.quantity.byv-quantity,
div.quantity.byv-quantity {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px;
	margin: 0;
}

.byv-quantity .byv-quantity-label {
	font-weight: 600;
	font-size: 0.85rem;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.byv-quantity .byv-quantity-controls {
	display: inline-flex !important;
	align-items: center;
	border: none;
	border-radius: 6px;
	overflow: hidden;
	width: fit-content;
	gap: 4px;
}

.byv-quantity .byv-qty-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: none !important;
	border-radius: 6px;
	background-color: #333 !important;
	color: #fff !important;
	font-size: 1.25rem;
	font-weight: 400;
	font-family: Arial, Helvetica, sans-serif;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	line-height: 1;
	padding: 0 !important;
	margin: 0 !important;
	min-height: unset !important;
	text-align: center;
	vertical-align: middle;
}

.byv-quantity .byv-qty-btn:hover {
	background-color: #555 !important;
	color: #fff !important;
}

.byv-quantity .byv-qty-btn:active {
	background-color: #111 !important;
	color: #fff !important;
}

.woocommerce div.product form.cart .byv-quantity-controls input.qty,
.woocommerce .cart .byv-quantity-controls input.qty,
.byv-quantity-controls input.qty {
	width: 44px !important;
	height: 38px !important;
	text-align: center !important;
	border: none !important;
	border-left: none !important;
	border-right: none !important;
	font-size: 0.95rem !important;
	font-weight: 600;
	color: #333 !important;
	background: #fff !important;
	margin: 0 !important;
	padding: 0 !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
	outline: none;
	border-radius: 0 !important;
	box-shadow: none !important;
	border-radius: 16px !important;
}

/* ── Product gallery (Slick slider) ── */

.woocommerce div.product div.woocommerce-product-gallery,
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery {
	max-width: 100% !important;
	width: 100% !important;
}

/* Main image slider */
.woocommerce-product-gallery .slick-list,
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper.slick-slider .slick-list {
	height: 600px !important;
	max-height: 600px !important;
	overflow: hidden !important;
}

.woocommerce-product-gallery .slick-slide,
.woocommerce-product-gallery .woocommerce-product-gallery__image {
	height: 600px !important;
	overflow: hidden;
}

.woocommerce-product-gallery .slick-slide img,
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
	height: 600px !important;
	width: 100% !important;
	max-width: 100% !important;
	object-fit: contain !important;
	display: block;
	transition: transform 0.4s ease !important;
}

/* Zoom on hover */
.woocommerce-product-gallery .slick-slide:hover img,
.woocommerce-product-gallery .woocommerce-product-gallery__image:hover img {
	transform: scale(1.5) !important;
	cursor: zoom-in;
}

/* Thumbnails carousel (Slick) */
.woocommerce-product-gallery .slick-slider:nth-child(2) .slick-list,
.woocommerce-product-gallery .slick-slider:last-child .slick-list {
	height: auto !important;
	max-height: none !important;
}

.woocommerce-product-gallery .slick-slider:nth-child(2) .slick-slide,
.woocommerce-product-gallery .slick-slider:last-child .slick-slide {
	height: auto !important;
	padding: 4px;
}

.woocommerce-product-gallery .slick-slider:nth-child(2) .slick-slide img,
.woocommerce-product-gallery .slick-slider:last-child .slick-slide img {
	height: 180px !important;
	width: 180px !important;
	object-fit: cover !important;
	border-radius: 6px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease, transform 0s !important;
}

.woocommerce-product-gallery .slick-slider:nth-child(2) .slick-slide:hover img,
.woocommerce-product-gallery .slick-slider:nth-child(2) .slick-current img,
.woocommerce-product-gallery .slick-slider:last-child .slick-slide:hover img,
.woocommerce-product-gallery .slick-slider:last-child .slick-current img {
	opacity: 1;
	transform: none !important;
}

/* Also support FlexSlider fallback */
.woocommerce-product-gallery .flex-viewport {
	height: 600px !important;
	overflow: hidden;
}

.woocommerce-product-gallery .flex-control-thumbs {
	display: flex !important;
	gap: 8px;
	margin-top: 10px !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
	height: 80px !important;
	object-fit: cover;
	border-radius: 6px;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
}

/* Hide browser number spinners */
.byv-quantity-controls input.qty::-webkit-outer-spin-button,
.byv-quantity-controls input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
