/*
Theme Name: shoco

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

.products.columns-4 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 25px;
}

.archive .product {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 15px;
}

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

	text-decoration: none;
}

.archive .product h2 {
	margin: 0;
	
	font-size: 20px;
	font-weight: 500;
	line-height: 120%;
	text-transform: uppercase;
	color: #503629;	

	min-height: 48px;

	margin-top: 10px;
}

.product .amount, .product .price {
	font-size: 21px;
	font-weight: 400;
	line-height: 120%;
	text-transform: uppercase;
	color: #D5BA8D;
}

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

.product-image-wrapper {
    position: relative;
    display: flex;
}

#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: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-tags .tag img {
   	width: 65px;
}

/* Іконка додавання в улюблене */
.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; /* Показуємо опис при наведенні */
}

.shoco-btn.loading svg {
    animation: rotateSvg 1s linear infinite;
}

@keyframes rotateSvg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.shoco-btn .added-mark {
	display: none;
}

.shoco-btn.added .added-mark {
	display: flex;
}

.shoco-btn.added svg{
	display: none;
}

.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 #9ECFCA;
    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: #9ECFCA;
	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: 10px;
}

.quantity span {
	font-size: 21px;
	color: #503629;
}

.custom-quantity-wrapper .quantity-decrease,
.custom-quantity-wrapper .quantity-increase {
    background-color: #9ECFCA;
    border: unset;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    border-radius: unset;
}

.custom-quantity-wrapper input[type="number"] {
	background: #FDF7ED;
	color: #503629;
	font-size: 24px;
    text-align: center;
    width: 50px;

    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;
}

.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: #FDF7ED;

	color: #503629;
}



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

	.archive .shoco-btn {
		justify-content: center;
		width: 100%;

        padding: 13px 10px;

		font-size: 11px;
	}

	.archive .product h2 {
		font-size: 12px;
		font-weight: 400;
		margin: 0;

		min-height: unset;
	}

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

	.product-description {
		padding: 10px;
	}

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

	.product-tags .tag img {
		width: 35px;
	}

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

	.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: 15px;
	}

	.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;
	}
}