/*
Theme Name: shoco

WooCommerce styles override
*/
.products.columns-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	row-gap: 40px;
	column-gap: 20px;
}

.products.columns-4 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	row-gap: 30px;
	column-gap: 20px;
}

.archive .product {
	display: flex;
	flex-direction: column;
	/*justify-content: space-between;*/
	justify-content: flex-start;
	gap: 8px;
}

.archive .product .woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	gap: 8px;

	text-decoration: none;
}

.archive .product h2 {
	margin: 0;
	
	font-size: 24px;
	font-weight: 700;
	line-height: 120%;
	text-transform: uppercase;
	color: #fff;	

	min-height: 58px;
}

.product .amount, .product .price {
	font-size: 24px;
	font-weight: 700;
	line-height: 100%;
	text-transform: uppercase;
	color: #E30613;

	display: flex;
	align-items: center;
	gap: 5px;
}


.product .price .price-per-unit {
    font-size: 17px;
    font-weight: 500;
    line-height: 100%;
    color: #fff;
    text-transform: none;

    margin-top: -8px;
}

.custom-product-thumbnail {
    position: relative;
    overflow: hidden;

    min-height: 320px;
    display: flex;
}
.product-image-wrapper {
    position: relative;
    display: flex;
}

.product-image-wrapper img {
	object-fit: cover;

	aspect-ratio: 1/1;
}

#global-tooltip {
    position: absolute;
    display: none;
    background-color: #f7f2e8;
    color: #4c362e;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

/* Блок з іконками тегів зліва */
.product-tags {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-tags .tag {
   	display: flex;
   	justify-content: center;
   	padding: 8px 16px;
   	background: #E30613;

   	color: #fff;
   	font-size: 20px;
   	font-weight: 400;
   	line-height: 120%;

   	text-transform: lowercase;
}

/* Іконка додавання в улюблене */
.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* Блок опису */
.product-description {
    position: absolute;
    bottom: -100%; /* Приховуємо опис спочатку */
    left: 0;
    right: 0;
    padding: 20px;
    background: #4f4f4f13; /* Білий фон з прозорістю */
    backdrop-filter: blur(10px); /* Блюр фону */
    transition: bottom 0.3s ease;
}

.product-description p {
	margin: 0;

	color: #fff;
    font-size: 14px;
    font-weight: 300;
}

.product-image-wrapper:hover .product-description {
    bottom: 0; /* Показуємо опис при наведенні */
}


.product .added_to_cart {
	display: none;
}

.wapf-product .wapf {
	display: none;
}

.wapf-product .woocommerce-variation-add-to-cart .quantity {
	display: none;
}

.xoo-wsc-basket {
	display: block !important;

	box-shadow: 0 1px 3px 1px #E30613;
    bottom: 15px;
    right: 15px;

    padding: 20px;
}

.xoo-wsc-basket svg {
	width: 30px;
	height: 30px;
}

.xoo-wsc-basket span.xoo-wsc-items-count {

	width: auto;
	height: auto;
	line-height: 100%;
	left: 18px;
	top: -7px;
	padding: 5px 7px;
	background: #E30613;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
}


.xoo-wsc-ft-buttons-cont {
	grid-template-columns: 1fr;
}




.custom-quantity-wrapper {
    display: flex;
    align-items: center;
}

.quantity {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.quantity span {
	font-size: 24px;
	font-weight: 700;
	line-height: 100%;
	color: #fff;

	text-transform: uppercase;
}

.custom-quantity-wrapper .quantity-decrease,
.custom-quantity-wrapper .quantity-increase {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    cursor: pointer;
    border-radius: unset;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-quantity-wrapper svg {
	max-width: 18.67px;
	max-height: 18.67px;
}

.custom-quantity-wrapper input[type="number"] {
	background: transparent;
	color: #fff;
	font-size: 20px;
    text-align: center;
    width: 40px;

    border-radius: unset;
    border: unset;
    padding: 0;

    -moz-appearance: textfield; /* Firefox */
}

.custom-quantity-wrapper input[type="number"]::-webkit-outer-spin-button,
.custom-quantity-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Chrome, Safari, Edge, Opera */
    margin: 0;
}


.product-loop-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;

}

.map-loaded {
	height: 610px;
}

.hidden-field {
    display: none !important;
}

.xoo-wsc-sm-sales {
	display: none;
}


.woocommerce-notices-wrapper {
	max-width: 1440px;
	margin: 0 auto;
    padding: 0 2em;
}

.woocommerce-notices-wrapper .woocommerce-message {
	padding: 10px;
    background: #131313;
    color: #fff;
}

.woocommerce-notices-wrapper .woocommerce-message a {
	color: #fff;
}


.woo-btn-list-addons {
	display: flex;
	gap: 20px;
}

.woo-btn-list-addons .woo-apf-show-addons {
	background: #FDF7ED;
	color: #503629;
	border-color: #FDF7ED;
}

.woo-apf-show-addons.shoco-btn {
	padding: 12px 24px !important;

	border: 1px solid #E30613;
	color: #E30613;
}

.woo-apf-show-addons.shoco-btn::before {
	content: unset;
}

.woo-apf-selected-addons {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.woo-apf-selected-addons-list {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 8px;
	column-gap: 18px;
}

.selected-addon-item {
	font-size: 20px;
	font-weight: 400;

	color: #fff;

	display: flex;
	gap: 4px;
}

.selected-addon-item span.remove-addon {
	margin-left: 5px;
	width: 24px;
	height: 24px;
	background: #fff;
	padding: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.woo-apf-selected-addons-title {
	font-size: 18px;
	font-weight: 500;

	color: #fff;
}

.woovr-variation-radio .woovr-variation-availability p {
	margin: 0;
}

.out-of-stock-message {
	color: #D5BA8D;
}

.upsells .woo-apf-show-addons.shoco-btn {
	display: none;
}

.upsells .woo-apf-selected-addons {
	display: none;
}

.upsells .woocommerce-variation-add-to-cart.variations_button, .upsells .woocommerce-variation-add-to-cart {
	padding: 0;
}

.upsells .woocommerce-variation-add-to-cart.variations_button .shoco-btn, .upsells .woocommerce-variation-add-to-cart .shoco-btn {
	padding: 12px 24px;
	font-size: 20px;
}

.upsells .woocommerce-variation-add-to-cart.variations_button .shoco-btn svg, .upsells .woocommerce-variation-add-to-cart .shoco-btn svg {
	width: auto;
	height: auto;
}

.upsells {
	margin-top: 100px;
	margin-bottom: 100px;
}

.upsells .product-tags {
	display: none;
}

.up-sells-title {
	text-align: left;
	text-transform: uppercase;
	font-size: 36px;
	font-weight: 700;
	line-height: 120%;

	color: #fff;
}

@media (max-width: 1024px) {
	.h-block-2 {
		gap: 10px;
	}

	.tags-list {
		gap: 20px;
	}

	.product-description {
		display: none;
	}

	.custom-product-thumbnail {
		min-height: 220px;
	}

	.shoco-btn {
		padding: 12px 20px;
	}

	.radio-input {
		flex-wrap: wrap;
	}

	.order-fields {
	    flex: 0 1 calc(49% - 30px);
	}

	.order-review{
	    flex: 0 1 calc(54% - 30px);
	}

	.product-image img {
		max-height: 65px;
	}
}

@media (max-width: 767px) {
	.products.columns-3, .products.columns-4 {
		grid-template-columns: 1fr 1fr;
		row-gap: 40px;
		column-gap: 23px;
	}

	.archive .shoco-btn,
	.upsells .woocommerce-variation-add-to-cart.variations_button .shoco-btn, .upsells .woocommerce-variation-add-to-cart .shoco-btn  {
		justify-content: center;
		width: 100%;

        padding: 12px 15px;

		font-size: 20px;
	}

	.up-sells-title {
		font-size: 25px;
	}

	.archive .product h2 {
		font-size: 16px;
		font-weight: 700;
		margin: 0;

		min-height: 39px;
	}

	.product-image-wrapper:hover .product-description {
		display: none;
	}

	.product .amount, .product .price {
		font-size: 16px;
	}


	.product .price .price-per-unit {
    	font-size: 13px; 

    	margin-top: -7px;
	}
	.product-loop-content {
		gap: 16px;
	}

	.custom-product-thumbnail {
		min-height: 175px;
		display: flex;
	}

	.product-description {
		padding: 10px;
	}

	.product-description p {
		font-size: 8px;
	}

	.product-tags {
		gap: 4px;
		top: 8px;
		left: 8px;
	}

	.product-tags .tag {
		font-size: 16px;
		padding: 4px;
	}

	.xoo-wsc-basket {
		padding: 20px;
		bottom: 35px;
	}

	.xoo-wsc-basket svg {
	    width: 25px;
	    height: 25px;
	}

	.xoo-wsc-basket span.xoo-wsc-items-count {
		left: 15px;
		top: -7px;
		padding: 4px 6px;
	}

	.quantity span {
		font-size: 20px;
	}

	.custom-quantity-wrapper .quantity-decrease, .custom-quantity-wrapper .quantity-increase {
		font-size: 24px;
	}

	.custom-quantity-wrapper input[type="number"] {
		font-size: 17px;
		min-height: 34px;
		display: flex;
		width: 55px;
	}

	.map-loaded {
		height: 350px;
	}

	.woo-apf-show-addons.shoco-btn {
		padding: 12px 28px !important;
	}

	.woo-apf-selected-addons-title {
		font-size: 15px;
	}

	.out-of-stock-message {
		font-size: 12px;
	}


	.upsells {
		margin-top: 25px;
		margin-bottom: 50px;

		padding: 0 15px;
	}

}