/**
 * Single product page redesign. Scoped to .vsm-sp so nothing else is affected.
 * Green: #0d5740 (dark #0a4231), same as the shop quantity control.
 */

.vsm-sp {
	--vsm-green: #0d5740;
	--vsm-green-dark: #0a4231;
	--vsm-border: #cfcfcf;
	font-family: "Maven Pro", sans-serif;
	color: #333;
}

/* ---------- Stars ---------- */
.vsm-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--vsm-green);
	font-size: 16px;
	line-height: 1;
}
.vsm-stars .mdi {
	font-size: inherit;
	line-height: 1;
}

/* ---------- Gallery ---------- */

.vsm-sp {
	margin-top: 0;
}
.vsm-sp__gallery .woocommerce-product-gallery {
	margin: 0 0 15px;
	padding: 0;
}
/* The parent theme adds a border, padding and margin to the wrapper: remove. */
.vsm-sp .vsm-sp__gallery .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}
/* One border only, around a square box so every product image has the same size. */
.vsm-sp__gallery .flex-viewport {
	margin: 0 0 8px;
	border: 1px solid var(--vsm-border);
	border-radius: 0;
	background: #fff;
}
.vsm-sp__gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child {
	margin: 0 0 8px;
	border: 1px solid var(--vsm-border);
	border-radius: 0;
	background: #fff;
}
.vsm-sp__gallery .flex-viewport .woocommerce-product-gallery__image {
	border: 0;
	margin: 0;
}
.vsm-sp__gallery .woocommerce-product-gallery__image > a {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 14px;
	box-sizing: border-box;
}
.vsm-sp__gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	object-fit: contain;
}
.vsm-sp__gallery ol.flex-control-nav.flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vsm-sp__gallery ol.flex-control-nav.flex-control-thumbs li {
	flex: 0 0 calc(25% - 6px);
	margin: 0;
}
.vsm-sp__gallery ol.flex-control-nav.flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 4px;
	border: 1px solid var(--vsm-border);
	border-radius: 0;
	background: #fff;
	opacity: .75;
}
.vsm-sp__gallery ol.flex-control-nav.flex-control-thumbs li img.flex-active,
.vsm-sp__gallery ol.flex-control-nav.flex-control-thumbs li img:hover {
	border-color: var(--vsm-green);
	opacity: 1;
}

/* ---------- Summary ---------- */
.vsm-sp__summary {
	padding: 0;
	border: 0;
	background: none;
}
.vsm-sp__summary .product_title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.25;
	color: #222;
}
.vsm-sp-ids {
	margin: 0 0 8px;
	font-size: 14px;
	color: #666;
}
.vsm-sp-ids__item + .vsm-sp-ids__item {
	margin-left: 6px;
}
.vsm-sp-ids a {
	color: inherit;
}
.vsm-sp-rating {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
}
.vsm-sp-rating__link {
	font-size: 12px;
	color: var(--vsm-green);
}
.vsm-sp__summary p.stock {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--vsm-green);
}
.vsm-sp__summary p.stock.out-of-stock {
	color: #c62828;
}
.vsm-sp__summary p.price {
	margin: 0 0 16px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
}
.vsm-sp__summary p.price > span,
.vsm-sp__summary p.price ins,
.vsm-sp__summary p.price ins span {
	color: #111;
	font-size: inherit;
	font-weight: 700;
	text-decoration: none;
}
.vsm-sp__summary p.price del,
.vsm-sp__summary p.price del span {
	color: #888;
	font-size: 18px;
	font-weight: 400;
}

/* ---------- Add to cart row ---------- */
.vsm-sp-cart:before,
.vsm-sp-cart:after {
	display: none;
}
.vsm-sp-cart__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}
.vsm-sp-qty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.vsm-sp-qty__label {
	margin-right: 4px;
	font-size: 13px;
	color: #666;
}
.vsm-sp .vsm-sp-qty .quantity {
	float: none;
	margin: 0;
}
.vsm-sp .vsm-sp-qty .quantity input.qty {
	float: none;
	width: 40px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--vsm-border);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-size: 15px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.vsm-sp .vsm-sp-qty .quantity input.qty::-webkit-outer-spin-button,
.vsm-sp .vsm-sp-qty .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.vsm-sp .vsm-sp-qty__btn {
	float: none;
	width: 22px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 !important;
	background: none;
	color: #111;
	font-size: 20px;
	font-weight: 700;
	line-height: 34px;
	cursor: pointer;
}
.vsm-sp .vsm-sp-qty__btn:hover,
.vsm-sp .vsm-sp-qty__btn:focus {
	color: var(--vsm-green);
	outline: 0;
}
.vsm-sp .vsm-sp-add.single_add_to_cart_button {
	float: none;
	height: 38px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 0 !important;
	background: var(--vsm-green);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-transform: none;
	transition: background .2s;
}
.vsm-sp .vsm-sp-add.single_add_to_cart_button:hover,
.vsm-sp .vsm-sp-add.single_add_to_cart_button:focus {
	background: var(--vsm-green-dark);
	color: #fff;
	box-shadow: none;
}
.vsm-sp .vsm-sp-add.single_add_to_cart_button.disabled,
.vsm-sp .vsm-sp-add.single_add_to_cart_button:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* ---------- Category ---------- */
.vsm-sp-cats {
	margin: 0 0 12px;
	font-size: 14px;
	color: #666;
}
.vsm-sp-cats a {
	color: var(--vsm-green);
}

/* ---------- Share ---------- */
.vsm-sp-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 6px 0 0;
}
.vsm-sp-share__label {
	margin-right: 6px;
	font-size: 14px;
	text-transform: uppercase;
	color: #333;
}
.vsm-sp-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 26px;
	color: #fff;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
}
.vsm-sp-share__btn:hover,
.vsm-sp-share__btn:focus {
	color: #fff;
	opacity: .85;
}
.vsm-sp-share__btn--facebook { background: #3b5998; }
.vsm-sp-share__btn--x { background: #000; }
.vsm-sp-share__btn--whatsapp { background: #25d366; }
.vsm-sp-share__btn--linkedin { background: #0077b5; }
.vsm-sp-share__btn--pinterest { background: #cb2027; }

/* ---------- Sections ---------- */
.vsm-sp__after {
	margin-top: 30px;
}

.vsm-sp-section {
	margin-bottom: 26px;
}
.vsm-sp-section__body {
	font-size: 14px;
	line-height: 1.7;
	color: #333;
}
.vsm-sp-section__body > :last-child {
	margin-bottom: 0;
}
.vsm-sp-section__body table.woocommerce-product-attributes {
	width: auto;
	min-width: 320px;
	margin: 0;
}
.vsm-sp-section__body table.woocommerce-product-attributes th,
.vsm-sp-section__body table.woocommerce-product-attributes td {
	padding: 6px 24px 6px 0;
	border: 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
	font-style: normal;
	text-align: left;
}
.vsm-sp-section__body table.woocommerce-product-attributes th {
	font-weight: 600;
}
.vsm-sp-section__body table.woocommerce-product-attributes p {
	margin: 0;
}

/* ---------- Related ---------- */
.vsm-related {
	margin: 0 0 30px;
}
.vsm-related__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vsm-related__item {
	position: relative;
	padding: 0 10px 14px;
	border-left: 1px solid #eee;
	text-align: center;
}
.vsm-related__item:first-child {
	border-left: 0;
}
.vsm-related__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	height: 100%;
	color: #222;
	text-decoration: none;
}
.vsm-related__link:hover {
	color: var(--vsm-green);
}
.vsm-related__thumb {
	display: block;
	width: 100%;
	margin-bottom: 6px;
}
.vsm-related__thumb img {
	display: block;
	width: 100%;
	height: 120px;
	margin: 0 auto;
	object-fit: contain;
}
.vsm-related__title {
	font-size: 14px;
	line-height: 1.35;
}
.vsm-related__weight {
	font-size: 14px;
	color: var(--vsm-green);
}
.vsm-related__rating .vsm-stars {
	font-size: 12px;
}
.vsm-related__price {
	margin-top: auto;
	font-size: 15px;
	font-weight: 700;
	color: #111;
}
.vsm-related__price del,
.vsm-related__price del span {
	font-weight: 400;
	color: #888;
}
.vsm-related__price ins {
	text-decoration: none;
}
.vsm-ribbon {
	position: absolute;
	top: 0;
	left: 10px;
	z-index: 2;
	width: 48px;
	height: 48px;
	background: #f5b800;
	clip-path: polygon(0 0, 100% 0, 0 100%);
	color: #fff;
	pointer-events: none;
}
.vsm-ribbon > span {
	position: absolute;
	top: 11px;
	left: -6px;
	width: 44px;
	font-size: 9px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(-45deg);
}

/* ---------- Reviews ---------- */
.vsm-reviews {
	margin-bottom: 30px;
}
.vsm-reviews__title {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--vsm-border);
}
.vsm-reviews ol.commentlist {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.vsm-reviews ol.commentlist li.vsm-review {
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px dashed var(--vsm-green);
	list-style: none;
}
.vsm-reviews ol.commentlist .comment-text {
	float: none;
	margin: 0;
}
.vsm-review__rating {
	margin-bottom: 4px;
}
.vsm-reviews .meta {
	margin: 0 0 4px;
	font-size: 14px;
	color: #888;
}
.vsm-reviews .vsm-review__author {
	color: #333;
}
.vsm-reviews .vsm-review__author strong {
	font-weight: 400;
}
.vsm-reviews .description,
.vsm-reviews .description p {
	margin: 0;
	font-size: 15px;
	color: #333;
}
.vsm-reviews #reply-title {
	display: block;
	margin: 22px 0 14px;
	font-size: 18px;
	font-weight: 400;
	color: #111;
}
.vsm-reviews #reply-title strong {
	font-weight: 700;
}
.vsm-reviews .comment-reply-title small {
	display: none;
}
.vsm-reviews form.comment-form {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	column-gap: 28px;
	align-items: start;
}
.vsm-reviews form.comment-form > * {
	grid-column: 1;
	margin: 0 0 14px;
}
.vsm-reviews form.comment-form .comment-form-rating {
	grid-column: 1 / -1;
	grid-row: 2;
}
.vsm-reviews form.comment-form .comment-form-author {
	grid-row: 3;
}
.vsm-reviews form.comment-form .comment-form-email {
	grid-row: 4;
}
.vsm-reviews form.comment-form .comment-form-cookies-consent {
	grid-row: 5;
}
.vsm-reviews form.comment-form .form-submit {
	grid-row: 6;
}
.vsm-reviews form.comment-form .comment-form-comment {
	grid-column: 2;
	grid-row: 3 / span 4;
}
.vsm-reviews form.comment-form .comment-form-comment textarea {
	height: 200px;
}
.vsm-reviews form.comment-form .comment-notes,
.vsm-reviews form.comment-form .must-log-in {
	grid-column: 1 / -1;
}
.vsm-reviews .comment-form label,
.vsm-reviews .comment-respond .comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	color: #555;
}
.vsm-reviews .comment-form .comment-form-rating label {
	display: inline-block;
	margin-right: 14px;
	vertical-align: middle;
}
.vsm-reviews .comment-form p.stars {
	display: inline-block;
	margin: 0;
	vertical-align: middle;
}
.vsm-reviews .comment-form p.stars a,
.vsm-reviews .comment-form p.stars a:after {
	color: var(--vsm-green);
}
.vsm-reviews .comment-form p.stars a {
	border-right: 0;
}
.vsm-reviews .comment-form p.stars a.active:after,
.vsm-reviews .comment-form p.stars a:hover:after {
	color: var(--vsm-green);
}
.vsm-reviews.woocommerce-Reviews input[type="text"],
.vsm-reviews.woocommerce-Reviews input[type="email"],
.vsm-reviews.woocommerce-Reviews textarea {
	height: 40px;
	padding: 6px 10px;
	border: 1px solid var(--vsm-border);
	border-radius: 0;
	box-shadow: none;
}
.vsm-reviews.woocommerce-Reviews textarea {
	height: 200px;
}
.vsm-reviews.woocommerce-Reviews input:focus,
.vsm-reviews.woocommerce-Reviews textarea:focus {
	border-color: var(--vsm-green);
	outline: 0;
}
.vsm-reviews input.vsm-reviews__submit,
.vsm-reviews .form-submit .submit {
	height: 40px;
	padding: 0 28px;
	border: 0;
	border-radius: 0;
	background: var(--vsm-green);
	color: #fff;
	font-size: 15px;
	text-transform: uppercase;
	cursor: pointer;
}
.vsm-reviews .form-submit .submit:hover,
.vsm-reviews .form-submit .submit:focus {
	background: var(--vsm-green-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.vsm-sp__summary .product_title {
		font-size: 22px;
	}
	.vsm-sp__gallery {
		margin-bottom: 18px;
	}
	.vsm-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.vsm-related__item:nth-child(odd) {
		border-left: 0;
	}
	.vsm-reviews form.comment-form {
		display: block;
	}
	.vsm-reviews form.comment-form .comment-form-comment textarea {
		height: 140px;
	}
}

.related.products {
    padding-top: 22px;
    padding-bottom: 30px;
    padding-inline: 0;
    border: none !important;
    border-top: 1px solid #0002 !important;
}
