/*
 * Geotoky — site-wide rules that used to live in Appearance → Customize → Additional CSS.
 * Only the ones that had a real effect on the live pages were kept (checked one by one:
 * each rule was switched off and the page compared). Loads on every front-end page.
 */

/* Category counts next to category names are hidden. */
.cat-count {
	display: none !important;
}

/* Filter bar above the product list on tablets and phones. */
@media (max-width: 1024px) {
	.styler-before-loop.styler-inline-two-block > div {
		flex: 1 3 auto;
		margin-top: 0;
	}
}

/* The header is not fixed over the page, so its spacer is not needed. */
#wrapper .header-spacer {
	display: none;
}

/* ------------------------------------------------------------------ *
 * Colour swatches on the product cards
 * ------------------------------------------------------------------ */

/* Shop / category grid: small dots under the picture. */
.styler-products-wrapper .product .woo-variation-items-wrapper {
	position: relative;
	bottom: 35px;
}

.styler-products-wrapper .product .variable-item {
	width: 10px !important;
	height: 10px !important;
}

.styler-products-wrapper .styler-product .woo-variation-items-wrapper {
	display: none;
}

/* Home product slider. */
.styler-products-widget-slider .product .woo-variation-items-wrapper {
	position: relative;
	bottom: 40px;
	top: -35px;
}

@media (max-width: 700px) {
	.styler-products-widget-slider .product .woo-variation-items-wrapper {
		top: -25px;
	}

	.styler-products-widget-slider .styler-block-right .wvs-add-to-cart-button {
		color: rgba(37, 37, 37, 0) !important;
	}
}

/* Related products slider on the product page. */
.styler-swiper-slider2 .product .variable-item {
	width: 10px !important;
	height: 10px !important;
}

.styler-swiper-slider2 .styler-product .woo-variation-items-wrapper {
	display: none;
}

/* ------------------------------------------------------------------ *
 * Free-shipping bar: the progress line is green
 * ------------------------------------------------------------------ */

#wfspb-shortcode .woocommerce-free-shipping-bar-order .woocommerce-free-shipping-bar-order-bar-inner {
	background-color: #359208;
}

/* ------------------------------------------------------------------ *
 * Wishlist heart (every product card and product page)
 * Styler turns the button black with a white heart on hover and when the product is in the
 * wishlist (.added). Here the heart fills with the site's coral on a soft pink instead.
 * ------------------------------------------------------------------ */

body .styler-wishlist-btn.styler-product-button:hover,
body .styler-wishlist-btn.styler-product-button.added {
	color: #da7474;
	background: #fbeeee;
}

body .styler-wishlist-btn.styler-product-button:hover svg,
body .styler-wishlist-btn.styler-product-button.added svg {
	fill: transparent;
	background: #da7474;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m29.55 6.509c-1.73-2.302-3.759-3.483-6.031-3.509h-.076c-3.29 0-6.124 2.469-7.443 3.84-1.32-1.371-4.153-3.84-7.444-3.84h-.075c-2.273.026-4.3 1.207-6.059 3.549a8.265 8.265 0 0 0 1.057 10.522l11.821 11.641a1 1 0 0 0 1.4 0l11.82-11.641a8.278 8.278 0 0 0 1.03-10.562z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m29.55 6.509c-1.73-2.302-3.759-3.483-6.031-3.509h-.076c-3.29 0-6.124 2.469-7.443 3.84-1.32-1.371-4.153-3.84-7.444-3.84h-.075c-2.273.026-4.3 1.207-6.059 3.549a8.265 8.265 0 0 0 1.057 10.522l11.821 11.641a1 1 0 0 0 1.4 0l11.82-11.641a8.278 8.278 0 0 0 1.03-10.562z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------------------------------------------ *
 * Product cards: no colour choice in the hover panel
 * On hover the card swaps its title for a panel with "Select options" and a second copy of the
 * colour boxes, which sat on top of the text. The colours stay under the price.
 * ------------------------------------------------------------------ */

.styler-cart-hidden .woo-variation-items-wrapper,
.styler-cart-hidden .wvs-archive-variations-wrapper {
	display: none !important;
}

/* ------------------------------------------------------------------ *
 * Product cards: the round "Select options" button is only an icon
 * The swatches script writes the words "Select options" into that 27px button, where they ended up
 * half-hidden on top of the arrow icon ("Sel"). The words stay in the hover panel; here they are removed
 * from view and the whole button remains clickable.
 * ------------------------------------------------------------------ */

.styler-block-right .styler-add-to-cart-btn > a {
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	text-indent: -9999px;
	overflow: hidden;
}

