/* ==========================================================================
   Autodex.ba — single product
   ========================================================================== */

.autodex-product-page {
	padding-top: 22px;
}

.autodex-breadcrumbs--product {
	margin: 0 0 30px;
	font-size: 12px;
	letter-spacing: .3px;
	text-transform: uppercase;
}

.autodex-single-product__main {
	display: grid;
	grid-template-columns: 33% minmax(0, 1fr);
	column-gap: 40px;
	align-items: start;
}

.woocommerce div.product .autodex-single-product__gallery,
.woocommerce div.product .autodex-single-product__summary {
	float: none !important;
	width: 100% !important;
	margin-left: 0;
	margin-right: 0;
}

.autodex-single-product__gallery {
	min-width: 0;
	padding-top: 145px;
}

.autodex-gallery {
	width: 100%;
}

.autodex-gallery__main {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	background: #fff;
}

.autodex-gallery__image,
.autodex-gallery__main img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
}

.autodex-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.autodex-gallery__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	padding: 2px;
	border: 1px solid #D9DEE4;
	border-radius: 3px;
	background: #fff;
	overflow: hidden;
}

.autodex-gallery__thumb.is-active {
	border-color: var(--autodex-primary);
}

.autodex-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.autodex-single-product__summary {
	min-width: 0;
	padding-top: 0;
}

.autodex-single-product__summary .product_title {
	margin: 0 0 16px;
	color: var(--autodex-heading);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
}

.autodex-single-product__summary .price {
	display: block;
	margin: 0 0 22px;
	color: var(--autodex-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.autodex-single-product__summary .price del {
	opacity: .45;
	margin-right: 6px;
	font-size: 16px;
}

.autodex-single-product__summary .price ins {
	background: transparent;
	text-decoration: none;
}

.autodex-single-product__divider {
	height: 1px;
	margin: 22px 0;
	background: #E5E8EC;
}

.autodex-single-product__summary .stock {
	margin: 0 0 18px;
	color: var(--autodex-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.woocommerce .autodex-single-product__summary form.cart,
.autodex-single-product__summary form.cart {
	display: flex !important;
	align-items: stretch;
	gap: 14px;
	width: 100% !important;
	margin: 0;
	float: none;
}

.autodex-single-product__summary form.cart .quantity {
	flex: 0 0 100px;
	width: 100px;
}

.autodex-quantity {
	display: inline-flex;
	align-items: stretch;
	width: 100px;
	height: 40px;
	border: 1px solid var(--autodex-primary);
	border-radius: 3px;
	background: #fff;
	overflow: hidden;
}

.autodex-quantity .qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 100%;
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--autodex-heading);
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
}

.autodex-quantity .qty-btn:hover {
	background: var(--autodex-primary);
	color: #fff;
}

.autodex-quantity .qty {
	width: 42px;
	min-width: 42px;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none !important;
	color: var(--autodex-heading);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	-moz-appearance: textfield;
}

.autodex-quantity .qty::-webkit-inner-spin-button,
.autodex-quantity .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.woocommerce .autodex-single-product__summary form.cart .single_add_to_cart_button,
.autodex-single-product__summary .single_add_to_cart_button {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	min-height: 40px;
	padding: 8px 24px;
	border: 1px solid var(--autodex-primary);
	background: var(--autodex-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	float: none;
}

.autodex-single-product .product_meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	color: var(--autodex-heading);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	text-transform: uppercase;
}

.autodex-single-product .product_meta a {
	color: var(--autodex-primary);
}

.autodex-single-product .product_meta a:hover {
	color: var(--autodex-primary-dark);
}

.autodex-single-product .product_meta strong {
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */

.woocommerce-tabs {
	margin-top: 105px;
}

.woocommerce-tabs ul.tabs {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 30px;
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid #E5E8EC;
	list-style: none;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after {
	display: none !important;
}

.woocommerce-tabs ul.tabs li {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 0;
	color: #555;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .4px;
	text-transform: uppercase;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
	color: var(--autodex-primary);
}

.woocommerce-tabs ul.tabs li.active {
	border-bottom: 2px solid var(--autodex-primary) !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
	padding: 30px 0 0;
	color: var(--autodex-text);
	font-size: 16px;
	line-height: 1.75;
}

.woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

.woocommerce-tabs .woocommerce-Tabs-panel p {
	margin: 0 0 1em;
}

/* Reviews */

.woocommerce-Reviews {
	max-width: 100%;
}

.woocommerce-Reviews-title {
	margin: 0 0 18px;
	font-size: 22px;
}

.woocommerce-noreviews {
	margin: 0 0 20px;
}

#review_form_wrapper {
	margin-top: 20px;
}

#respond .comment-reply-title {
	display: block;
	margin-bottom: 15px;
	color: var(--autodex-heading);
	font-size: 18px;
	font-weight: 700;
}

#respond p {
	margin: 0 0 15px;
}

#respond label {
	display: block;
}

#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
	width: 100%;
}

#respond .form-submit {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Related / upsells
   -------------------------------------------------------------------------- */

.related.products,
.upsells.products {
	margin-top: 60px;
}

.related.products > h2,
.upsells.products > h2 {
	margin: 0 0 25px;
	font-size: 24px;
	font-weight: 700;
}

.related.products ul.products,
.upsells.products ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
	.autodex-single-product__main {
		grid-template-columns: 1fr;
		row-gap: 30px;
	}

	.autodex-single-product__gallery {
		padding-top: 0;
	}

	.autodex-gallery__main {
		justify-content: flex-start;
	}

	.autodex-gallery__image,
	.autodex-gallery__main img {
		max-height: 460px;
	}

	.woocommerce-tabs {
		margin-top: 50px;
	}

	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.autodex-product-page {
		padding-top: 12px;
	}

	.autodex-breadcrumbs--product {
		margin-bottom: 18px;
		font-size: 10px;
	}

	.autodex-single-product__summary .product_title {
		font-size: 24px;
	}

	.autodex-single-product__summary .price {
		font-size: 18px;
		margin-bottom: 18px;
	}

	.autodex-single-product__summary form.cart {
		gap: 10px;
	}

	.autodex-single-product__summary form.cart .quantity {
		flex: 0 0 96px;
		width: 96px;
	}

	.autodex-quantity {
		width: 96px;
	}

	.autodex-single-product__summary .single_add_to_cart_button {
		padding: 8px 14px;
		font-size: 14px;
	}

	.woocommerce-tabs {
		margin-top: 35px;
	}

	.woocommerce-tabs ul.tabs {
		gap: 22px;
	}

	.woocommerce-tabs .woocommerce-Tabs-panel {
		padding-top: 22px;
		font-size: 15px;
	}

	.related.products,
	.upsells.products {
		margin-top: 40px;
	}

	.related.products > h2,
	.upsells.products > h2 {
		font-size: 22px;
	}

	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
