/* Kitchenu — call-for-price (1234 placeholder) + admin-bar offsets */

.ku-price-contact {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 38px;
}

.ku-price-contact__btn,
.ku-price-contact__btn--single {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 14px !important;
	border-radius: 14px !important;
	border: 1px solid #fdba74 !important;
	background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
	color: #c2410c !important;
	font-family: 'Vazirmatn', Tahoma, sans-serif !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.05),
		0 8px 20px rgba(245, 158, 11, 0.12) !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.ku-price-contact__btn:hover,
.ku-price-contact__btn--single:hover {
	color: #9a3412 !important;
	border-color: #f97316 !important;
	transform: translateY(-1px);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.05),
		0 12px 26px rgba(245, 158, 11, 0.18) !important;
}

.ku-price-contact__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.ku-price-contact__icon svg {
	width: 18px;
	height: 18px;
}

.ku-price-contact-wrap .ku-price-pill,
.ku-product-card--call-price .ku-price-pill {
	display: none !important;
}

.ku-product-card--call-price .ku-price-contact {
	width: 100%;
}

.ku-product-card--call-price .ku-price-contact__btn {
	width: 100%;
	justify-content: center;
}

.ku-product-card--call-price .add-to-cart-button {
	display: none !important;
}

.ku-product-card--call-price .ku-price-contact__atc,
.ku-price-contact__atc {
	border-color: #fdba74 !important;
	background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
	color: #c2410c !important;
}

.ku-qv__prices--contact {
	margin: 4px 0 10px;
}

.single-product .ku-price-contact__btn--single {
	width: 100%;
	min-height: 48px;
	font-size: 14px !important;
}

.single-product .single_add_to_cart_button.ku-price-contact__atc,
.single-product button.ku-price-contact__atc {
	display: none !important;
}

/* Logged-in admin bar — keep header / drawers below WP toolbar (no extra margin) */
@media screen and (min-width: 783px) {
	body.admin-bar #header,
	body.admin-bar #header.header,
	body.admin-bar .header-wrapper,
	body.admin-bar.sticky-header #header,
	body.admin-bar .stuck #header {
		top: 32px !important;
		margin-top: 0 !important;
	}

	body.admin-bar .ku-filter-drawer,
	body.admin-bar .ku-search-modal__panel {
		top: 32px !important;
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar #header,
	body.admin-bar #header.header,
	body.admin-bar .header-wrapper,
	body.admin-bar.sticky-header #header,
	body.admin-bar .stuck #header {
		top: 46px !important;
		margin-top: 0 !important;
	}

	body.admin-bar .ku-filter-drawer,
	body.admin-bar .ku-search-modal,
	body.admin-bar .ku-search-modal__panel {
		top: 46px !important;
	}

	body.admin-bar.ku-mobile-header-active #header .header-main {
		padding-top: 0 !important;
	}
}

body.admin-bar #wpadminbar {
	z-index: 100100 !important;
}

body.admin-bar .ku-mobile-dock {
	z-index: 10040 !important;
}

/* Single product — out of stock badge on gallery */
.single-product .woocommerce-product-gallery,
.single-product .product-gallery,
.single-product .product-images {
	position: relative !important;
}

.single-product .ku-single-oos-badge {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	transform: translate(-50%, -50%) !important;
	width: auto !important;
	min-width: 132px !important;
	max-width: calc(100% - 28px) !important;
	padding: 0 !important;
	margin: 0 !important;
	opacity: 1 !important;
	text-transform: none !important;
	background: transparent !important;
	border: none !important;
	z-index: 7 !important;
	pointer-events: none !important;
}

.single-product .woocommerce-product-gallery::before,
.single-product .product-gallery::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 4;
	border-radius: inherit;
	background: linear-gradient(165deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.22) 100%);
	pointer-events: none;
}

.single-product .product.out-of-stock .woocommerce-product-gallery img,
.single-product .product.outofstock .woocommerce-product-gallery img {
	filter: grayscale(0.45) saturate(0.65) brightness(0.92) !important;
	opacity: 0.78 !important;
}

.ku-oos-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 6px 0 2px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.ku-oos-pill--single {
	margin: 10px 0 14px;
	font-size: 12px;
	padding: 5px 14px;
}

.ku-oos-badge__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 12px 16px 11px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.88) 100%);
	backdrop-filter: blur(16px) saturate(1.35);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 14px 32px rgba(15, 23, 42, 0.18);
}

.ku-oos-badge__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: #ffffff;
}

.ku-oos-badge__icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

.ku-oos-badge__title {
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
	color: #991b1b;
}
