/* Gallery */
.woocommerce-product-gallery .label-wrapper {
	padding: 15px;
}

.woocommerce .product .images figure.woocommerce-product-gallery__wrapper {
	width: 100%;
}

.woocommerce-page div.product div.images {
	display: flex;
	flex-direction: row-reverse;
	gap: 7px;
	float: none;
	border-radius: 4px;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	flex-direction: column;
	min-width: 100px;
	gap: 7px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	width: 100%;
	background-color: #fff;
	border-radius: 5px;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	width: 100%;
	height: 120px;
	object-fit: contain;
	padding: 20px;
}

.woocommerce-product-gallery__image {
	background-color: #fff;
	border-radius: 5px;
}

.woocommerce-product-gallery__image img {
	width: auto !important;
	margin: 0 auto;
	max-height: 723px;
}

.product-image img {
	/* width: auto !important; */
	margin: 0 auto;
	max-height: 613px;
}

.product-image .builder-view {
	width: fit-content;
	margin: 0 auto;
}

.wpc-filters-overlay {
	background-color: #fff;
}

/* Content */
.woocommerce-page div.product div.summary {
	width: 500px;
	float: none;
}

.woocommerce div.product {
	display: flex;
	gap: 30px;
}

.woocommerce .product .woocommerce-product-gallery {
	flex: 1;
}

.woocommerce .product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
	padding: 50px;
}

.product .flex-control-thumbs li {
	max-width: 100px;
}

.pswp__bg {
	background-color: #fff;
}

.pswp__ui--fit .pswp__caption,
.pswp__ui--fit .pswp__top-bar {
	background-color: rgb(0 0 0 / 0%);
}

button.pswp__button,
button.pswp__button--arrow--left::before,
button.pswp__button--arrow--right::before,
button.pswp__button:hover {
	background-color: black !important;
}

.pswp__caption__center {
	text-align: center;
}

/* SUMMARY */
.summary h1.product_title.entry-title {
	font-size: 32px;
	font-weight: 400;
	color: #222222;
}

.summary .sku {
	color: #aaaaaa;
	font-size: 12px;
}

.summary .product-description {
	margin-top: 10px;
	margin-bottom: 10px;
	color: #555;
	font-size: 14px;
	font-weight: 400;
}

.woocommerce div.product p.price {
	color: #222222;
	font-weight: 600;
	font-size: 18px;
}

.woocommerce-price-suffix {
	display: block;
	font-size: 10px;
	font-weight: 400;
	color: #aaaaaa;
}

p.price,
.product-details {
	border-bottom: 1px solid #aaaaaa21;
}

p.price {
	padding-top: 20px;
}

.product_meta {
	display: none;
}

table.variations {
	padding-top: 20px;
}

.woocommerce div.product div.product-stock {
	display: flex;
	gap: 10px;
	flex-basis: 100%;
	justify-content: flex-end;
}

/* DETAILS */
a.show-details {
	color: var(--primary-color);
	text-decoration: none;
}

a.show-details:after {
	display: inline-block;
	width: 10px;
	height: 10px;
	content: " ";
	background-image: url();
}

.woocommerce table.shop_attributes th {
	width: 90px;
	text-align: left;
	font-weight: 700;
	padding: 0px;
	border-top: 0;
	border-bottom: 0;
}

td.woocommerce-product-attributes-item__value p {
	font-style: normal;
}

.woocommerce table.shop_attributes tr:nth-child(even) td,
.woocommerce table.shop_attributes tr:nth-child(even) th {
	background: none;
}

.woocommerce table.shop_attributes td {
	border-bottom: 0;
}

.woocommerce table.shop_attributes td p {
	padding: 2px 0;
}

.woocommerce table.shop_attributes {
	border-top: 0;
}

.product-details {
	padding-bottom: 20px;
}

.product-details table.shop_attributes {
	margin-bottom: 0;
}

.product-details a.show-details:after {
	display: inline-block;
	width: 10px;
	height: 10px;
	content: " ";
	background-image: url(../images/chevron-down.svg);
	background-repeat: no-repeat;
	background-position: bottom;
	background-size: contain;
	margin-left: 5px;
}

.product-details.show a.show-details:after {
	background-image: url(../images/chevron-up.svg);
}

.product-details .terms-icons {
	display: flex;
	flex-wrap: wrap;
}

.product-details .term-icon {
	width: 30px;
}

/* RELATED PRODUCTS */
section.related.products {
	border-top: 1px solid #aaaaaa21;
	padding-top: 25px;
	margin-top: 30px;
}

section.related.products h2 {
	padding-bottom: 25px;
	font-size: 18px;
}

/* Variation table */
.variation-table {
	width: 100%;
	text-align: left;
	border-collapse: collapse;
	table-layout: fixed;
}

.variation-add-to-cart h3 {
	font-size: 32px;
	font-weight: 400;
	color: #222222;
	padding: 0;
	line-height: 1;
	margin: 0 0 20px 0;
}

.variation-add-to-cart-close {
	position: absolute;
	right: 25px;
	top: 25px;
	cursor: pointer;
}

.variation-table th:last-child,
.variation-table td:last-child {
	text-align: right;
	width: 130px;
}

.variation-table tfoot td {
	text-align: right;
}

.variation-add-to-cart {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	z-index: 100;
	font-size: 14px;
	display: flex;
}

.variation-add-to-cart-inner {
	position: relative;
	z-index: 10;
	background: #fff;
	max-width: 980px;
	padding: 40px;
	width: 90%;
	border-radius: 8px;
	transition: all 0.2s ease;
	opacity: 0;
	transform: translateY(-100px);
}

.variation-add-to-cart-background {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	transition: all 0.2s ease;
	opacity: 0;
}

.variation-add-to-cart.open .variation-add-to-cart-inner {
	opacity: 1;
	transform: translateY(0);
	max-height: 95vh;
	overflow: auto;
}

.variation-add-to-cart.open .variation-add-to-cart-background {
	opacity: 1;
}

.variation-table th {
	border-bottom: 1px solid #eee;
	padding: 0 0 5px 0;
}

.variation-table td {
	border-bottom: 1px solid #eee;
	padding: 10px 0;
}

.variation-table tfoot td {
	padding-bottom: 0;
	border-bottom: 0;
}

.variation-table .variation-quantity[type="number"]::-webkit-inner-spin-button,
.variation-table .variation-quantity[type="number"]::-webkit-outer-spin-button {
	opacity: 0.6;
}

.total-amount {
	white-space: nowrap;
}

.stock-status {
	display: flex;
	align-items: center;
	gap: 5px;
}

.stock-status:before {
	content: "";
	width: 8px;
	height: 8px;
	background-color: #3dbf9b;
	border-radius: 100%;
}

.stock-status.out-of-stock:before {
	background-color: #d8bd82;
}

/* MEDIA QUERIES */

@media screen and (max-width: 992px) {
	.woocommerce div.product {
		flex-direction: column;
	}

	.woocommerce-page div.product div.images {
		display: block;
	}

	.woocommerce div.product div.images .flex-control-thumbs {
		flex-direction: row;
		justify-content: center;
	}

	.woocommerce div.product div.images.woocommerce-product-gallery,
	.woocommerce-page div.product div.summary {
		width: 100%;
	}

	.woocommerce div.product div.images .flex-control-thumbs li {
		max-width: 60px;
		margin-top: 0px;
		display: flex;
		align-items: center;
		padding: 10px;
	}

	.summary h1.product_title.entry-title {
		font-size: 18px;
	}

	.single-product div.product div.images {
		margin-bottom: 0;
	}

	.single-product .summary.entry-summary {
		padding: 0px 10px;
	}
}

.add-to-cart-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	padding: 30px 0;
}

.add-to-cart-buttons .btn img {
	width: 30px;
	position: relative;
	right: -10px;
}

.add-to-cart-buttons .btn {
	display: flex;
	align-items: center;
	gap: 20px;
}

.add-to-cart-button {
	background: #fff;
	color: inherit;
}

@media screen and (max-width: 992px) {
	.add-to-cart-buttons {
		justify-content: center;
		flex-shrink: 0;
		flex-direction: column;
	}

	.add-to-cart-buttons .btn {
		gap: 0;
		flex: 1;
		justify-content: center;
		width: 100%;
	}

	.add-to-cart-buttons a {
		flex: 1;
		width: 100%;
	}

	.single-product .variation-add-to-cart.open {
		font-size: 12px;
	}

	.single-product .variation-add-to-cart.open strong.amount {
		display: block;
		font-size: 15px;
	}
}

/* Size guide */
#size-guide {
	font-size: 14px;
	font-weight: 500;
	color: #aaaaaa;
	display: flex;
	width: fit-content;
	margin-top: 10px;
}

#size-guide::before {
	content: "";
	background: url(/wp-content/themes/zo24/images/ruler.svg) center no-repeat;
	width: 20px;
	height: 20px;
}

.pswp__img.pswp__img--placeholder.pswp__img--placeholder--blank {
	background: white;
}

@media screen and (max-width: 768px) {
	.single-product .container {
		padding-top: 10px;
	}

	.variation-add-to-cart-inner {
		padding: 20px;
	}

	.variation-add-to-cart h3 {
		font-size: 25px;
	}
}

/* Related colors */
.related-colors-wrapper {
	margin-top: 20px;
}

.related-colors {
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	gap: 1px;
}

.single-product .related-colors {
	gap: 10px;
}

a.related-color {
	background-color: #fff;
	padding: 5px;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
}

.related-color img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	margin: 0 !important;
}

li.product .related-colors-wrapper h4 {
	display: none;
}

li.product .related-colors-wrapper {
	display: none;
	position: absolute;
	left: 10px;
	width: calc(100% - 20px);
	transform: translateY(-50%);
	top: 60%;
	z-index: 99;
}

li.product:hover .related-colors-wrapper {
	display: block;
}

li.product a.related-color {
	padding: 2px;
}

@media screen and (max-width: 992px) {
	.single-product .flex-control-thumbs {
		display: none !important;
	}

	.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
		aspect-ratio: 3/4 !important;
	}

	.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
		height: 100% !important;
		display: block !important;
	}

	.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
		height: 100% !important;
		width: 100% !important;
		display: block !important;
		max-height: none !important;
		object-fit: contain !important;
	}
}