/*
 * VeniDesign Toolkit — Global Frontend CSS
 * Source: WPCodeBox snippet #19 "Główne poprawki"
 *
 * Note: SVG icon URL points to production; works on both envs because
 * the file is uploaded to the WP media library on venidesign.pl.
 */

/* --------------------------------------------------------------------------
   Mini-cart checkout button
   -------------------------------------------------------------------------- */
.woocommerce-mini-cart__buttons.buttons .button.checkout {
	font-size: 0.95rem;
	font-weight: 700 !important;
	text-align: center !important;
	justify-content: center !important;
	display: flex !important;
	align-items: center;
}
.woocommerce-mini-cart__buttons.buttons .button.checkout::before,
.woocommerce-mini-cart__buttons.buttons .button.checkout::after {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Menu item accent color (#14700 — e.g. sale/promo link)
   -------------------------------------------------------------------------- */
#menu-item-14700 a {
	color: var(--badge-background-color);
	--theme-icon-color: var(--badge-background-color);
}
#menu-item-14700 a:hover {
	color: var(--theme-palette-color-1);
}

/* --------------------------------------------------------------------------
   Misc WooCommerce
   -------------------------------------------------------------------------- */
.woocommerce-store-notice.demo_store {
	text-align: center;
}
.wishlist-product-actions {
	display: none;
}
.summary.entry-summary .stock {
	display: none;
}
.site-main.hfeed .ct-title-label {
	display: none;
}

/* --------------------------------------------------------------------------
   Navigation mega-menu tweak (#148)
   -------------------------------------------------------------------------- */
#menu-item-148 .sub-menu {
	padding-top: 10px;
	padding-bottom: 10px;
}
#menu-item-148 .sub-menu .ct-column-heading {
	margin-bottom: -10px;
}

/* --------------------------------------------------------------------------
   Logo image natural height
   -------------------------------------------------------------------------- */
a.site-logo-container img {
	height: inherit;
}

/* --------------------------------------------------------------------------
   Added-to-cart popup — checkout button first
   -------------------------------------------------------------------------- */
#ct-added-to-cart-popup .ct-added-to-cart-popup-checkout {
	order: 1;
}

/* --------------------------------------------------------------------------
   Mobile popup fixes
   -------------------------------------------------------------------------- */
@media (max-width: 999.98px) {
	#ct-added-to-cart-popup .ct-added-to-cart-product .ct-media-container {
		width: 50%;
	}
	#ct-added-to-cart-popup .ct-popup-actions {
		flex-direction: column;
	}
	.woocommerce-tabs .ct-product-brands,
	.archive .ct-product-brands,
	.woocommerce .products .ct-product-brands {
		margin-top: -45px !important;
	}
}

/* --------------------------------------------------------------------------
   Product badges
   -------------------------------------------------------------------------- */
.product .onsale {
	left: 10px;
}

/* --------------------------------------------------------------------------
   Product brand logo margins
   -------------------------------------------------------------------------- */
.woocommerce-tabs .ct-product-brands,
.archive .ct-product-brands,
.woocommerce .products .ct-product-brands {
	margin-top: -60px;
}
.product .summary .ct-product-brands-single {
	display: inline-block;
	vertical-align: middle;
}
.product .summary .ct-product-additional-actions {
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
}
.product .summary .ct-product-content-block:nth-child(3) {
	float: right;
	display: inline-block;
	vertical-align: middle;
	width: 33%;
	margin-left: 10px;
}

/* --------------------------------------------------------------------------
   Related / upsell products
   -------------------------------------------------------------------------- */
@media (min-width: 690px) {
	.related .flexy,
	.upsells .flexy {
		margin-inline-start: 0;
	}
}

/* --------------------------------------------------------------------------
   Hide "View cart" link after add-to-cart
   -------------------------------------------------------------------------- */
a.added_to_cart.wc-forward {
	display: none;
}

/* --------------------------------------------------------------------------
   Compare table — hide add to cart buttons
   -------------------------------------------------------------------------- */
.ct-compare-table .add_to_cart_button {
	display: none;
}

/* --------------------------------------------------------------------------
   Mobile — show hidden compare/wishlist icons
   -------------------------------------------------------------------------- */
@media (max-width: 689.98px) {
	.ct-product-additional-actions .ct-hidden-sm,
	.ct-compare-bar .ct-hidden-sm {
		display: block !important;
	}
}

/* --------------------------------------------------------------------------
   Mobile filter button (full width)
   -------------------------------------------------------------------------- */
.adj-mobile-filter-btn .wp-element-button,
.adj-mobile-filter-btn .wp-block-button {
	width: 100%;
}
@media (min-width: 999.98px) {
	.adj-mobile-filter-btn {
		display: none !important;
	}
}

/* --------------------------------------------------------------------------
   Filter Everything Pro — layout fixes
   -------------------------------------------------------------------------- */
.wpc-filters-main-wrap .wpc-filter-has-swatches.wpc-filter-visible-term-names .wpc-filters-labels li.wpc-term-item {
	width: 100%;
}
.wpc-filter-has-brands .wpc-term-count {
	display: none;
	align-items: center;
}
.wpc-filter-header .wpc-filter-title {
	font-weight: 600;
	font-size: 1.2rem;
}
#wpc-term-post_meta_exists-_sale_price-no__sale_price {
	display: none;
}

/* --------------------------------------------------------------------------
   Single product — m² value display field
   -------------------------------------------------------------------------- */
body.single-product .ct-product-add-to-cart .m2-value {
	border: 1px solid #7d7d7e;
	height: 55px;
	font-size: 20px;
	font-weight: 600;
	line-height: 32px;
	width: fit-content;
	flex: unset;
	padding: 0 15px;
}

/* --------------------------------------------------------------------------
   Single product — quantity input sizing
   -------------------------------------------------------------------------- */
body.single-product .ct-cart-actions .quantity {
	position: relative;
	width: 180px;
	height: 55px;
	margin: 10px 0;
}
body.single-product .ct-cart-actions .quantity .ct-increase {
	border-left: 1px solid #7d7d7e;
	position: absolute;
	top: 0;
	left: unset;
	right: 0;
	width: 55px;
	height: 55px;
	border-bottom: 1px solid #7d7d7e;
}
body.single-product .ct-cart-actions .quantity .ct-decrease {
	top: 0;
	left: 0;
	width: 55px;
	height: 55px;
	border-right: 1px solid #7d7d7e;
}
body.single-product .ct-cart-actions .quantity [name="quantity"] {
	border-color: #7d7d7e;
	font-size: 20px;
	font-weight: 600;
	line-height: 32px;
	padding: 0;
}
.ct-cart-actions {
	align-items: center;
}

/* --------------------------------------------------------------------------
   Single product — Add to Cart button
   -------------------------------------------------------------------------- */
body.single-product .ct-cart-actions .single_add_to_cart_button {
	font-size: 20px;
	font-weight: 600;
	gap: 10px;
	height: 60px;
	flex-basis: auto;
	padding-left: 42px;
	padding-right: 42px;
	position: relative !important;
}
body.single-product .ct-cart-actions .single_add_to_cart_button::before {
	content: "";
	display: block;
	width: 20px;
	height: 28px;
	background-image: url(https://venidesign.pl/wp-content/uploads/koszyk-2-1.svg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Product gallery zoom trigger sizing
   -------------------------------------------------------------------------- */
.woocommerce-product-gallery__trigger {
	width: 50px;
	height: 50px;
}

/* --------------------------------------------------------------------------
   Omnibus — informacja o najniższej cenie z 30 dni (Dyrektywa UE 2019/2161)
   -------------------------------------------------------------------------- */

.vdt-omnibus {
display: block;
font-size: 0.78rem;
color: #787c82;
margin-top: 4px;
margin-bottom: 4px;
line-height: 1.4;
}

.vdt-omnibus .woocommerce-Price-amount {
color: #787c82;
font-weight: 600;
}
