/* TshirtOn Store Style: product page. Everything is scoped to body.tson-ps. */
body.tson-ps {
	--tson-ink: #0a0a0a;
	--tson-muted: #6b6b6b;
	--tson-line: #e7e5e4;
	--tson-soft: #f5f5f4;
	--tson-accent: #fa4f26;
	--tson-radius: 22px;
	--tson-font: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.tson-ps .single-main-content,
body.tson-ps .woocommerce-tabs,
body.tson-ps #product-related {
	font-family: var(--tson-font);
	color: var(--tson-ink);
}

/* ---------- Gallery ---------- */
body.tson-ps .image-mains .flex-viewport {
	border-radius: var(--tson-radius);
	overflow: hidden;
	background: var(--tson-soft);
}
/* White product photos sit on the soft grey: the slide carries the grey so "multiply" can blend into it. */
body.tson-ps .image-mains .woocommerce-product-gallery__image {
	background: var(--tson-soft);
}
body.tson-ps .image-mains .woocommerce-product-gallery__image img {
	mix-blend-mode: multiply;
}
body.tson-ps .image-mains .flex-control-thumbs li {
	border-radius: 12px;
}
body.tson-ps .image-mains .flex-control-thumbs li img {
	border-radius: 12px;
	background: var(--tson-soft);
	mix-blend-mode: multiply;
	border: 1.5px solid transparent;
	opacity: .75;
	transition: opacity .2s, border-color .2s;
}
body.tson-ps .image-mains .flex-control-thumbs li img.flex-active,
body.tson-ps .image-mains .flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: var(--tson-ink);
}

/* ---------- Title, price ---------- */
body.tson-ps .information .summary {
	padding-left: 12px;
}
body.tson-ps .product_title.entry-title {
	font-family: var(--tson-font);
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--tson-ink);
	margin-bottom: 8px;
}
body.tson-ps .summary .woocommerce-product-rating {
	font-size: 12px;
	color: var(--tson-muted);
}
body.tson-ps .summary .rate-sold {
	display: none;
}
body.tson-ps .summary .single-social-share a {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--tson-line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tson-ink);
	font-size: 12px;
	margin-left: 4px;
}
body.tson-ps .summary .price-wrapper .price,
body.tson-ps .summary .price-wrapper .price .amount {
	font-family: var(--tson-font);
	font-size: 24px;
	font-weight: 700;
	color: var(--tson-ink);
	letter-spacing: -0.01em;
}
body.tson-ps .summary .price-wrapper .price del,
body.tson-ps .summary .price-wrapper .price del .amount {
	font-size: 16px;
	font-weight: 500;
	color: var(--tson-muted);
}
body.tson-ps .summary .price-wrapper .price ins {
	text-decoration: none;
}

/* ---------- Options ---------- */
body.tson-ps .variations_form table.variations th.label {
	font-family: var(--tson-font);
	font-size: 13px;
	font-weight: 600;
	color: var(--tson-ink);
	text-transform: none;
	padding-bottom: 10px;
}
body.tson-ps .variations_form table.variations th.label .woo-selected-variation-item-name {
	font-weight: 400;
	color: var(--tson-muted);
}
body.tson-ps .variations_form table.variations td.value {
	padding-bottom: 18px;
}
body.tson-ps .variations_form .variable-items-wrapper {
	gap: 8px;
}
body.tson-ps .variations_form .variable-items-wrapper .variable-item:not(.radio-variable-item) {
	margin: 0 !important;
	min-width: 54px;
	height: 42px;
	padding: 0 14px;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: 0 0 0 1px var(--tson-line) !important;
	color: var(--tson-ink);
	transition: box-shadow .15s;
}
body.tson-ps .variations_form .variable-items-wrapper .variable-item .variable-item-span {
	font-family: var(--tson-font);
	font-size: 13px;
	font-weight: 500;
	padding: 0;
}
body.tson-ps .variations_form .variable-items-wrapper .variable-item:not(.radio-variable-item):hover {
	box-shadow: 0 0 0 1px #a8a29e !important;
}
body.tson-ps .variations_form .variable-items-wrapper .variable-item:not(.radio-variable-item).selected {
	box-shadow: 0 0 0 1.5px var(--tson-ink) !important;
	font-weight: 600;
}
body.tson-ps .variations_form .variable-items-wrapper .variable-item.disabled,
body.tson-ps .variations_form .variable-items-wrapper .variable-item.out-of-stock {
	opacity: .35;
}

/* Colour dots */
body.tson-ps .variations_form .variable-items-wrapper .variable-item.tson-dot {
	flex: 0 0 36px;
	width: 36px !important;
	min-width: 36px;
	max-width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50% !important;
	background: var(--tson-dot) !important;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 4px transparent !important;
}
body.tson-ps .variations_form .variable-items-wrapper .variable-item.tson-dot:hover {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 4px #a8a29e !important;
}
body.tson-ps .variations_form .variable-items-wrapper .variable-item.tson-dot.selected {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--tson-ink) !important;
}
body.tson-ps .variations_form .variable-items-wrapper .variable-item.tson-dot--light {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), 0 0 0 3px #fff, 0 0 0 4px transparent !important;
}
body.tson-ps .variations_form .variable-items-wrapper .variable-item.tson-dot .variable-item-contents {
	opacity: 0;
}
body.tson-ps .variations_form .variable-items-wrapper .variable-item.tson-dot::after,
body.tson-ps .variations_form .variable-items-wrapper .variable-item.tson-dot::before {
	display: none;
}

/* The "White / S" line repeats what's already selected. */
body.tson-ps .single_variation .woocommerce-variation-description {
	display: none;
}
body.tson-ps .reset_variations {
	font-size: 12px;
	color: var(--tson-muted);
}

/* ---------- Quantity + buttons ---------- */
body.tson-ps #shop-now {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}
body.tson-ps #shop-now .quantity {
	margin: 0;
}
body.tson-ps #shop-now .quantity .box {
	display: inline-flex;
	align-items: center;
	height: 50px;
	border: 1px solid var(--tson-line);
	border-radius: 999px;
	background: #fff;
	padding: 0 6px;
}
body.tson-ps #shop-now .quantity .box button {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	background: transparent;
	color: var(--tson-ink);
}
body.tson-ps #shop-now .quantity .box button:hover {
	background: var(--tson-soft);
}
body.tson-ps #shop-now .quantity .box input.qty {
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	font-family: var(--tson-font);
	font-weight: 600;
	font-size: 14px;
	text-align: center;
}
body.tson-ps #shop-now .single_add_to_cart_button,
body.tson-ps #shop-now .tbay-buy-now {
	flex: 1 1 150px;
	height: 50px;
	margin: 0;
	border-radius: 999px !important;
	font-family: var(--tson-font);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	border: 0 !important;
	transition: transform .15s, background-color .15s, opacity .15s;
}
body.tson-ps #shop-now .single_add_to_cart_button {
	background: var(--tson-ink) !important;
	color: #fff !important;
}
body.tson-ps #shop-now .single_add_to_cart_button:hover {
	background: #262626 !important;
}
body.tson-ps #shop-now .tbay-buy-now {
	background: var(--tson-accent) !important;
	color: #fff !important;
}
body.tson-ps #shop-now .tbay-buy-now:hover {
	opacity: .9;
}
body.tson-ps #shop-now .single_add_to_cart_button:active,
body.tson-ps #shop-now .tbay-buy-now:active {
	transform: scale(.98);
}
body.tson-ps #shop-now .single_add_to_cart_button.disabled {
	opacity: .4;
}
body.tson-ps #shop-now .group-button {
	margin: 0;
}
body.tson-ps #shop-now .group-button .tbay-wishlist a,
body.tson-ps #shop-now .group-button .yith-wcwl-add-to-wishlist-button {
	width: 50px;
	height: 50px;
	border-radius: 50% !important;
	border: 1px solid var(--tson-line) !important;
	background: #fff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Why-buy row ---------- */
body.tson-ps .tson-ps__perks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 22px 0 6px;
	border: 1px solid var(--tson-line);
	border-radius: 18px;
	overflow: hidden;
	font-family: var(--tson-font);
}
body.tson-ps .tson-ps__perk {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 8px;
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--tson-ink);
}
body.tson-ps .tson-ps__perk + .tson-ps__perk {
	border-left: 1px solid var(--tson-line);
}
body.tson-ps .tson-ps__perk svg {
	color: var(--tson-accent);
}

/* ---------- Fold-out details ---------- */
body.tson-ps .tson-ps__acc {
	margin: 14px 0 18px;
	font-family: var(--tson-font);
}
body.tson-ps .tson-ps__item {
	border-bottom: 1px solid var(--tson-line);
}
body.tson-ps .tson-ps__item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 2px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tson-ink);
}
body.tson-ps .tson-ps__item summary::-webkit-details-marker {
	display: none;
}
body.tson-ps .tson-ps__item summary::after {
	content: "";
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	background:
		linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
	transition: transform .2s;
}
body.tson-ps .tson-ps__item[open] summary::after {
	transform: rotate(45deg);
}
body.tson-ps .tson-ps__body {
	padding: 0 2px 16px;
	font-size: 13.5px;
	line-height: 1.65;
	color: #44403c;
}
body.tson-ps .tson-ps__body p {
	margin: 0 0 8px;
}
body.tson-ps .tson-ps__body a {
	color: var(--tson-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.tson-ps .tson-ps__body p.tson-ps__chart-title {
	margin: 12px 0 0;
	font-weight: 600;
	color: var(--tson-ink);
}
body.tson-ps .tson-ps__table {
	overflow-x: auto;
	margin-top: 8px;
}
body.tson-ps .tson-ps__table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
}
body.tson-ps .tson-ps__table td,
body.tson-ps .tson-ps__table th {
	border: 0;
	border-bottom: 1px solid var(--tson-line);
	padding: 8px 6px;
	text-align: left;
}
body.tson-ps .tson-ps__table tr:first-child td,
body.tson-ps .tson-ps__table th {
	font-weight: 600;
	color: var(--tson-ink);
}

/* ---------- SKU, categories ---------- */
body.tson-ps .summary .product_meta {
	font-family: var(--tson-font);
	font-size: 12px;
	color: var(--tson-muted);
	border: 0;
	padding-top: 4px;
}
body.tson-ps .summary .product_meta a {
	color: var(--tson-muted);
}

/* ---------- Description ---------- */
body.tson-ps .woocommerce-tabs.tabs-fulltext {
	margin-top: 56px;
}
body.tson-ps .woocommerce-tabs.tabs-fulltext .item-panel {
	max-width: 820px;
	margin: 0 auto 28px;
	padding: 32px 36px;
	border: 1px solid var(--tson-line);
	border-radius: var(--tson-radius);
	background: #fff;
	font-size: 15px;
	line-height: 1.7;
	color: #44403c;
}
body.tson-ps .woocommerce-tabs.tabs-fulltext .item-panel h2 {
	font-family: var(--tson-font);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--tson-ink);
	margin-bottom: 14px;
}
body.tson-ps .woocommerce-tabs.tabs-fulltext .item-panel h3 {
	font-family: var(--tson-font);
	font-size: 17px;
	font-weight: 600;
	color: var(--tson-ink);
	margin: 22px 0 8px;
}
body.tson-ps .woocommerce-tabs.tabs-fulltext table {
	border-radius: 12px;
	overflow: hidden;
}

/* ---------- You may also like ---------- */
body.tson-ps #product-related .heading-tbay-title {
	font-family: var(--tson-font);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-transform: none;
}
body.tson-ps #product-related .product-block .image {
	border-radius: 18px;
	overflow: hidden;
	background: var(--tson-soft);
}
body.tson-ps #product-related .product-block .image a {
	display: block;
	background: var(--tson-soft);
}
body.tson-ps #product-related .product-block .image img {
	mix-blend-mode: multiply;
}
body.tson-ps #product-related .product-block .name a {
	font-family: var(--tson-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--tson-ink);
}
body.tson-ps #product-related .product-block .price {
	font-family: var(--tson-font);
	font-weight: 600;
	color: var(--tson-ink);
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	body.tson-ps .information .summary {
		padding-left: 0;
	}
	body.tson-ps .image-mains .flex-viewport {
		border-radius: 18px;
	}
	body.tson-ps .tson-ps__perk {
		font-size: 11px;
		padding: 14px 6px;
	}
	body.tson-ps .woocommerce-tabs.tabs-fulltext .item-panel {
		padding: 22px 18px;
		border-radius: 18px;
	}
	/* Besa's phone "Color, Size" picker row and sticky buy bar. */
	body.tson-ps .mobile-attribute-list {
		border: 1px solid var(--tson-line);
		border-radius: 14px;
		font-family: var(--tson-font);
	}
	body.tson-ps .mobile-btn-cart-click {
		gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		border-top: 1px solid var(--tson-line);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
	}
	body.tson-ps .mobile-btn-cart-click #tbay-click-addtocart,
	body.tson-ps .mobile-btn-cart-click #tbay-click-buy-now {
		flex: 1;
		height: 46px;
		line-height: 46px;
		border-radius: 999px;
		font-family: var(--tson-font);
		font-size: 14px;
		font-weight: 600;
		text-transform: none;
	}
	body.tson-ps .mobile-btn-cart-click #tbay-click-addtocart {
		order: 1;
		background: var(--tson-ink);
		color: #fff;
	}
	body.tson-ps .mobile-btn-cart-click #tbay-click-buy-now {
		order: 2;
		background: var(--tson-accent);
		color: #fff;
	}
	body.tson-ps .mobile-btn-cart-click .tbay-mobile-wishlist {
		order: 3;
	}
}
