/**
 * TK1 Single Product Page Styles
 * Matches Elementor Pro template #223 design.
 */

@font-face {
	font-family: 'Proxima Nova';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../../../uploads/2022/06/Proxima-Nova-Font-1.ttf') format('truetype');
}

.single-product .site-content .ast-container {
	max-width: var(--ast-normal-container-width, 1200px);
	padding-left: 20px;
	padding-right: 20px;
}

@media (min-width: 922px) {
	.single-product.ast-no-sidebar .site-content .ast-container {
		display: block !important;
	}
}

.single-product #primary,
.single-product .ast-woocommerce-container {
	margin: 0;
	padding: 0;
}

.tk1-single-product {
	font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	max-width: 100%;
	margin: 20px auto 40px;
	padding: 0;
	color: #525252;
}

/* Override Astra/WooCommerce float layout inside custom template */
.tk1-single-product div.product div.images,
.tk1-single-product div.product div.summary,
.tk1-product-hero__gallery .woocommerce-product-gallery,
.tk1-product-hero__summary.summary {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	clear: none !important;
}

/* Hero section */
.tk1-product-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: start;
	margin-bottom: 40px;
}

.tk1-product-hero__gallery {
	position: relative;
}

.tk1-product-hero__gallery-inner {
	position: relative;
}

.tk1-product-hero__gallery .woocommerce-product-gallery {
	margin: 0;
	opacity: 1 !important;
}

.tk1-product-hero__gallery .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	object-fit: contain;
	background: linear-gradient(180deg, #f8f8f8 0%, #efefef 100%);
}

.tk1-product-hero__gallery .onsale,
.tk1-product-hero__gallery .ast-onsale-card {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: #fff !important;
	color: #000 !important;
	border-radius: 50%;
	min-height: 48px;
	min-width: 48px;
	line-height: 48px;
	font-size: 13px;
	font-weight: 600;
	padding: 0;
	border: 0;
	box-shadow: none;
}

.tk1-product-hero__summary .woocommerce-breadcrumb {
	margin: 0 0 12px;
	font-size: 14px;
	color: #CC082C;
}

.tk1-product-hero__summary .woocommerce-breadcrumb a {
	color: #000;
	text-decoration: none;
}

.tk1-product-hero__summary .woocommerce-breadcrumb a:hover {
	color: #CC082C;
}

.tk1-product-hero__meta-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: center;
	margin-bottom: 8px;
}

.tk1-product-hero__meta .product_meta {
	font-size: 15px;
	color: #525252;
}

.tk1-product-hero__meta .product_meta > span {
	display: block;
	margin-bottom: 2px;
	line-height: 1.5;
}

.tk1-product-hero__meta .product_meta .sku_wrapper {
	color: #525252;
}

.tk1-product-hero__meta .product_meta a {
	color: #CC082C;
	text-decoration: none;
}

.tk1-product-hero__meta .product_meta .tagged_as {
	display: none;
}

.tk1-product-hero__rating {
	text-align: right;
}

.tk1-product-hero__rating .woocommerce-product-rating {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.tk1-product-hero__rating .star-rating {
	color: #CC0B2C;
}

.tk1-product-hero__rating .woocommerce-review-link {
	color: #CC082C;
	font-size: 14px;
	text-decoration: none;
}

.tk1-product-hero__summary .product_title {
	font-size: 32px;
	font-weight: 600;
	color: #3A3A3A;
	margin: 0 0 4px;
	line-height: 1.2;
}

.tk1-product-hero__summary .price {
	color: #CC082C !important;
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 16px;
}

.tk1-product-hero__summary .price del {
	opacity: 0.6;
}

.tk1-product-hero__summary .price ins {
	text-decoration: none;
}

/* Add to cart */
.tk1-product-hero__summary form.cart {
	margin: 0 0 20px;
}

.tk1-product-hero__summary form.cart .variations {
	width: 100%;
	margin-bottom: 12px;
	border: 0;
}

.tk1-product-hero__summary form.cart .variations tr {
	display: block;
	margin-bottom: 12px;
}

.tk1-product-hero__summary form.cart .variations th,
.tk1-product-hero__summary form.cart .variations td {
	display: block;
	padding: 0;
	border: 0;
}

.tk1-product-hero__summary form.cart .variations label {
	font-weight: 600;
	color: #2E2E2E;
	margin-bottom: 6px;
	display: block;
}

.tk1-product-hero__summary form.cart .variations select {
	width: 100%;
	max-width: 100%;
	border: 1px solid #ddd;
	padding: 10px 12px;
	background: #fff;
	font-family: inherit;
}

.tk1-product-hero__summary form.cart .reset_variations {
	display: none !important;
}

.tk1-product-hero__summary .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
}

.tk1-product-hero__summary .quantity {
	display: inline-block;
	vertical-align: middle;
	margin-right: 6px;
}

.tk1-product-hero__summary .quantity .qty {
	width: 60px;
	padding: 10px;
	border: 1px solid #ddd;
	background: #fff;
	font-family: inherit;
}

.tk1-product-hero__summary .single_add_to_cart_button,
.tk1-product-hero__summary .button {
	background-color: #CC0B2C !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 5px !important;
	padding: 12px 24px !important;
	font-family: inherit;
	font-weight: 500;
	transition: background-color 0.2s ease;
	cursor: pointer;
}

.tk1-product-hero__summary .single_add_to_cart_button:hover,
.tk1-product-hero__summary .button:hover {
	background-color: #BE1E3C !important;
}

.tk1-description-heading {
	font-size: 18px;
	font-weight: 600;
	color: #2E2E2E;
	margin: 0 0 8px;
}

.tk1-product-short-description {
	margin-bottom: 12px;
	font-size: 15px;
	line-height: 1.6;
	color: #525252;
}

.tk1-product-short-description .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

.tk1-product-help {
	margin-top: 8px;
}

.tk1-product-help__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #313131;
	font-size: 19px;
	font-weight: 600;
}

.tk1-product-help__link:hover {
	color: #CC082C;
}

.tk1-product-help__icon {
	display: inline-flex;
	color: #1C1C1C;
}

/* Section titles */
.tk1-section-title {
	font-size: 28px;
	font-weight: 600;
	color: #2E2E2E;
	margin: 30px 0 20px;
	line-height: 1.2;
}

/* Product details */
.tk1-product-details {
	margin-bottom: 20px;
}

.tk1-product-details__content {
	font-size: 17px;
	line-height: 1.7;
	color: #525252;
	margin-bottom: 20px;
}

.tk1-product-details__attributes .shop_attributes {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.tk1-product-details__attributes .shop_attributes th,
.tk1-product-details__attributes .shop_attributes td {
	border: 1px solid #eee;
	padding: 12px 16px;
	text-align: left;
}

.tk1-product-details__attributes .shop_attributes th {
	font-weight: 600;
	color: #2E2E2E;
	width: 30%;
}

.tk1-product-details__attributes .shop_attributes td {
	color: #525252;
}

.tk1-product-details__attributes .shop_attributes th,
.tk1-product-details__attributes .shop_attributes td {
	border-style: solid;
}

/* Related & recently viewed products */
.related-single,
.recently-viewed-single {
	margin-bottom: 30px;
}

.related-single .products,
.recently-viewed-single .products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.related-single .products::before,
.related-single .products::after,
.recently-viewed-single .products::before,
.recently-viewed-single .products::after {
	display: none;
}

/* Related & recently viewed products */
.related-single,
.recently-viewed-single {
	margin-bottom: 30px;
}

.related-single .products,
.recently-viewed-single .products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.related-single .astra-shop-thumbnail-wrap,
.related-single .astra-shop-summary-wrap,
.related-single .ast-on-card-button,
.related-single .ast-woo-product-category,
.recently-viewed-single .astra-shop-thumbnail-wrap,
.recently-viewed-single .astra-shop-summary-wrap,
.recently-viewed-single .ast-on-card-button {
	display: none !important;
}

.tk1-product-card {
	display: flex;
	flex-direction: column;
	text-align: center;
	margin: 0 !important;
	width: 100% !important;
	float: none !important;
	padding: 0 !important;
}

.tk1-product-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.tk1-product-card__image-wrap {
	position: relative;
	margin-bottom: 12px;
}

.tk1-product-card__image-wrap img {
	width: 100%;
	height: 280px !important;
	object-fit: contain;
	background: #f8f8f8;
}

.tk1-product-card__image-wrap .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #fff;
	color: #000;
	border-radius: 50%;
	min-height: 44px;
	min-width: 44px;
	line-height: 44px;
	font-size: 12px;
	font-weight: 600;
	padding: 0;
	z-index: 2;
}

.tk1-product-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.tk1-product-card__category {
	font-size: 13px;
	margin-bottom: 4px;
}

.tk1-product-card__category a {
	color: #CC082C;
	text-decoration: none;
}

.tk1-product-card .woocommerce-loop-product__title {
	font-size: 16px;
	font-weight: 600;
	color: #2E2E2E !important;
	margin: 0 0 8px;
	padding: 0;
}

.tk1-product-card__excerpt {
	font-size: 14px;
	color: #525252;
	line-height: 1.5;
	margin-bottom: 8px;
	max-width: 100%;
}

.tk1-product-card__excerpt p {
	margin: 0;
}

.tk1-product-card .price {
	color: #525252 !important;
	font-weight: 600;
	margin-bottom: 12px;
}

.tk1-product-card__actions {
	margin-top: auto;
	padding-top: 4px;
}

.tk1-product-card__actions .button {
	background-color: #CC0B2C !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 5px !important;
	padding: 10px 20px !important;
	font-weight: 500;
	display: inline-block;
}

.tk1-product-card__actions .button:hover {
	background-color: #BE1E3C !important;
}

.tk1-recently-viewed-section .tk1-section-title {
	margin-bottom: 0;
}

.tk1-recently-viewed-section:has(.recently-viewed-single:empty) {
	display: none;
}

/* Reviews */
.tk1-product-reviews {
	margin: 30px 0;
}

.tk1-reviews .woocommerce-noreviews {
	margin-bottom: 20px;
}

.tk1-reviews .commentlist {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.tk1-reviews .commentlist .comment {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
}

.tk1-reviews .commentlist .comment:last-child {
	border-bottom: 0;
}

.tk1-reviews .star-rating,
.tk1-reviews .comment-form-rating .stars a,
.tk1-reviews .star-rating::before {
	color: #CC0B2C !important;
}

.tk1-review-form__title {
	font-size: 18px;
	font-weight: 600;
	color: #2E2E2E;
	display: block;
	margin-bottom: 12px;
}

.tk1-reviews .commentlist .comment_container {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.tk1-reviews .commentlist .avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.tk1-reviews .commentlist .comment-text {
	flex: 1;
}

.tk1-reviews .commentlist .meta {
	margin: 4px 0 8px;
	color: #777;
	font-size: 14px;
}

.tk1-reviews .commentlist .meta strong {
	color: #2E2E2E;
}

.tk1-reviews .comment-form-rating select {
	display: none;
}

.tk1-reviews .comment-form-rating p.stars {
	margin: 8px 0 16px;
}

.tk1-reviews .comment-form-rating p.stars a {
	color: #CC0B2C;
}

#review_form_wrapper {
	border: 1px solid #e8e8e8;
	padding: 24px;
	background: #fafafa;
	margin-top: 20px;
}

.tk1-review-form input[type="text"],
.tk1-review-form input[type="email"],
.tk1-review-form textarea,
.tk1-review-form select {
	width: 100%;
	border: 1px solid #ddd;
	padding: 10px 12px;
	font-family: inherit;
	background: #fff;
}

.tk1-review-form .comment-form-author,
.tk1-review-form .comment-form-email {
	width: calc(50% - 10px);
	display: inline-block;
	vertical-align: top;
}

.tk1-review-form .comment-form-author {
	margin-right: 20px;
}

.tk1-review-form .form-submit .submit {
	background-color: #CC0B2C !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 5px !important;
	padding: 12px 28px !important;
	font-weight: 500;
	cursor: pointer;
}

.tk1-review-form .form-submit .submit:hover {
	background-color: #BE1E3C !important;
}

/* Hide default Astra/WooCommerce duplicate elements */
.tk1-single-product > .related.products > h2:not(.tk1-section-title) {
	display: none;
}

.single-product .woocommerce-tabs {
	display: none;
}

/* Star ratings global on product page */
.single-product .star-rating,
.single-product .star-rating::before {
	color: #CC0B2C;
}

/* Responsive */
@media (max-width: 921px) {
	.tk1-product-hero {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.tk1-product-hero__meta-row {
		grid-template-columns: 1fr;
	}

	.tk1-product-hero__rating {
		text-align: left;
	}

	.tk1-product-hero__rating .woocommerce-product-rating {
		justify-content: flex-start;
	}

	.related-single .products,
	.recently-viewed-single .products {
		grid-template-columns: repeat(2, 1fr);
	}

	.tk1-review-form .comment-form-author,
	.tk1-review-form .comment-form-email {
		width: 100%;
		margin-right: 0;
	}
}

@media (max-width: 544px) {
	.tk1-single-product {
		padding: 0 15px;
	}

	.tk1-product-hero__summary .product_title {
		font-size: 26px;
	}

	.related-single .products,
	.recently-viewed-single .products {
		grid-template-columns: 1fr;
	}
}
