/* TshirtOn Store Style: shop/category pages and product cards. Scoped to body.tson-store. */
body.tson-store {
	--tson-ink: #0a0a0a;
	--tson-muted: #6b6b6b;
	--tson-line: #e7e5e4;
	--tson-soft: #f5f5f4;
	--tson-accent: #fa4f26;
	--tson-font: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Product cards (shop grid + "You may also like") ---------- */
body.tson-store .product-block.grid {
	background: transparent;
	border: 0;
	box-shadow: none;
	font-family: var(--tson-font);
}
body.tson-store .product-block.grid .product-content,
body.tson-store .product-block.grid .block-inner {
	background: transparent;
	border: 0;
	box-shadow: none;
}
body.tson-store .product-block.grid .block-inner {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
}
body.tson-store .product-block.grid figure.image {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	background: var(--tson-soft);
}
body.tson-store .product-block.grid figure.image a.product-image {
	display: block;
	background: var(--tson-soft);
}
body.tson-store .product-block.grid figure.image img {
	mix-blend-mode: multiply;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
body.tson-store .product-block.grid:hover figure.image img.image-effect {
	transform: scale(1.04);
}

/* Hover buttons: small round white icons in the top-right corner. */
body.tson-store .product-block.grid .group-buttons {
	top: 12px;
	right: 12px;
	left: auto;
	bottom: auto;
	width: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: transparent;
	transform: none;
}
body.tson-store .product-block.grid .group-buttons > div {
	margin: 0;
}
body.tson-store .product-block.grid .group-buttons a,
body.tson-store .product-block.grid .group-buttons .button {
	width: 38px;
	height: 38px;
	min-width: 38px;
	padding: 0;
	border: 0;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .95) !important;
	color: var(--tson-ink) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
body.tson-store .product-block.grid .group-buttons a:hover,
body.tson-store .product-block.grid .group-buttons .button:hover {
	background: var(--tson-ink) !important;
	color: #fff !important;
}
body.tson-store .product-block.grid .group-buttons .title-cart,
body.tson-store .product-block.grid .group-buttons .qview-button span {
	display: none;
}

/* Name, price, colours and sizes. */
body.tson-store .product-block.grid .caption {
	padding: 12px 4px 0;
	text-align: left;
	background: transparent;
}
body.tson-store .product-block.grid .caption .name {
	margin: 0 0 4px;
	font-family: var(--tson-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.005em;
}
body.tson-store .product-block.grid .caption .name a {
	color: var(--tson-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
body.tson-store .product-block.grid .caption .name a:hover {
	color: var(--tson-accent);
}
body.tson-store .product-block.grid .caption .rating.no-rate {
	display: none;
}
body.tson-store .product-block.grid .caption .price-wrapper,
body.tson-store .product-block.grid .caption .price {
	display: block;
	text-align: left;
	font-family: var(--tson-font);
	font-size: 15px;
	font-weight: 700;
	color: var(--tson-ink);
}
body.tson-store .product-block.grid .caption .price .amount,
body.tson-store .product-block.grid .caption .price bdi {
	color: inherit;
}
body.tson-store .product-block.grid .caption .price del {
	font-size: 13px;
	font-weight: 500;
	color: var(--tson-muted);
	margin-right: 6px;
}
body.tson-store .product-block.grid .caption .price ins {
	text-decoration: none;
	color: var(--tson-accent);
}
body.tson-store .tson-card-meta {
	display: block;
	margin-top: 3px;
	font-family: var(--tson-font);
	font-size: 12px;
	font-weight: 500;
	color: var(--tson-muted);
}
body.tson-store .product-block .onsale,
body.tson-store .product-block .product-top .onsale {
	border-radius: 999px;
	background: var(--tson-accent);
	font-family: var(--tson-font);
	font-weight: 600;
	font-size: 11px;
	padding: 4px 10px;
}

/* ---------- Shop page ---------- */
body.tson-shop .display-products.products-grid > .row {
	row-gap: 28px;
}
body.tson-shop .display-products.products-grid .product {
	margin-bottom: 0;
}
body.tson-shop .woocommerce-products-header__title.page-title {
	font-family: var(--tson-font);
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--tson-ink);
	margin-bottom: 6px;
}
body.tson-shop .term-description,
body.tson-shop .woocommerce-products-header .page-description {
	font-family: var(--tson-font);
	font-size: 14px;
	color: var(--tson-muted);
}

/* Results count, sort, grid/list. */
body.tson-shop .tbay-filter .main-filter {
	align-items: center;
	gap: 12px;
	padding: 6px 0 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--tson-line);
	font-family: var(--tson-font);
}
body.tson-shop .woocommerce-result-count {
	margin: 0 auto 0 0;
	font-size: 13px;
	color: var(--tson-muted);
}
body.tson-shop .woocommerce-ordering {
	margin: 0;
}
body.tson-shop .woocommerce-ordering .SumoSelect > .CaptionCont,
body.tson-shop .woocommerce-ordering select.orderby {
	height: 40px;
	min-width: 190px;
	padding: 0 38px 0 16px;
	border: 1px solid var(--tson-line);
	border-radius: 999px;
	background-color: #fff;
	font-family: var(--tson-font);
	font-size: 13px;
	font-weight: 500;
	color: var(--tson-ink);
	display: flex;
	align-items: center;
}
body.tson-shop .woocommerce-ordering .SumoSelect > .CaptionCont > label {
	right: 6px;
}
body.tson-shop .woocommerce-ordering .SumoSelect > .optWrapper {
	border: 1px solid var(--tson-line);
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
	overflow: hidden;
	top: 46px;
}
body.tson-shop .woocommerce-ordering .SumoSelect > .optWrapper > .options li.opt {
	font-family: var(--tson-font);
	font-size: 13px;
	padding: 10px 16px;
}
body.tson-shop .woocommerce-ordering .SumoSelect > .optWrapper > .options li.opt.selected {
	font-weight: 600;
}
body.tson-shop .display-mode-warpper > span {
	display: none;
}
body.tson-shop .display-mode-warpper .display-mode-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--tson-line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tson-muted);
	background: #fff;
	margin-left: 6px;
}
body.tson-shop .display-mode-warpper .display-mode-btn.active {
	background: var(--tson-ink);
	border-color: var(--tson-ink);
	color: #fff;
}
body.tson-shop .button-filter-mobile {
	height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--tson-line);
	background: #fff;
	color: var(--tson-ink);
}

/* ---------- Filter sidebar ---------- */
body.tson-shop #sidebar-shop,
body.tson-shop .filter-mobile .sidebar {
	font-family: var(--tson-font);
}
body.tson-shop #sidebar-shop {
	border-radius: 20px;
	padding: 6px 22px 22px;
	border: 1px solid var(--tson-line);
	box-shadow: none;
	align-self: flex-start;
}
body.tson-shop .woof_container {
	padding: 18px 0;
	margin: 0;
	border-bottom: 1px solid var(--tson-line);
}
body.tson-shop .woof_container:last-of-type {
	border-bottom: 0;
}
body.tson-shop .woof_container h4 {
	font-family: var(--tson-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tson-ink);
	margin: 0 0 12px;
}
body.tson-shop .woof_list li {
	margin: 0;
	padding: 3px 0;
	font-size: 13px;
}
body.tson-shop .woof_list label {
	font-size: 13px;
	color: #44403c;
}

/* Tags and sizes: pills. */
body.tson-shop .woof_list_label {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
body.tson-shop .woof_list_label li {
	padding: 0;
	margin: 0 !important;
}
body.tson-shop .woof_list_label .woof_label_term {
	min-width: 40px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--tson-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--tson-ink) !important;
	font-family: var(--tson-font);
	font-size: 12px;
	font-weight: 500;
	line-height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color .15s;
}
body.tson-shop .woof_list_label .woof_label_term:hover {
	border-color: #a8a29e !important;
}
body.tson-shop .woof_list_label .woof_label_term.checked {
	background: var(--tson-ink) !important;
	border-color: var(--tson-ink) !important;
	color: #fff !important;
}

/* Colours: round dots. */
body.tson-shop .woof_list_color {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
body.tson-shop .woof_list_color li {
	margin: 0 !important;
	padding: 0;
}
body.tson-shop .woof_list_color li p.woof_tooltip {
	margin: 0;
}
body.tson-shop .woof_list_color .woof_color_term {
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	border: 0 !important;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px #fff, 0 0 0 3px transparent;
	transition: box-shadow .15s;
}
body.tson-shop .woof_list_color .woof_color_term.tson-dot--light {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22), 0 0 0 2px #fff, 0 0 0 3px transparent;
}
body.tson-shop .woof_list_color .woof_color_term:hover {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px #fff, 0 0 0 3px #a8a29e;
}
body.tson-shop .woof_list_color .woof_color_term.checked {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px #fff, 0 0 0 4px var(--tson-ink);
}

/* Price slider in the brand orange. */
body.tson-shop .irs--round .irs-bar {
	background: var(--tson-ink);
}
body.tson-shop .irs--round .irs-line {
	background: var(--tson-line);
}
body.tson-shop .irs--round .irs-handle {
	border: 3px solid var(--tson-ink);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
body.tson-shop .irs--round .irs-from,
body.tson-shop .irs--round .irs-to,
body.tson-shop .irs--round .irs-single {
	background: var(--tson-ink);
	border-radius: 8px;
	font-family: var(--tson-font);
	font-weight: 600;
}
body.tson-shop .irs--round .irs-from::before,
body.tson-shop .irs--round .irs-to::before,
body.tson-shop .irs--round .irs-single::before {
	border-top-color: var(--tson-ink);
}
body.tson-shop .irs--round .irs-grid-text {
	font-family: var(--tson-font);
	color: var(--tson-muted);
}

/* Checkboxes and radios. */
body.tson-shop .woof_container input[type="checkbox"],
body.tson-shop .woof_container input[type="radio"] {
	accent-color: var(--tson-ink);
}
body.tson-shop .woof_submit_search_form_container .button,
body.tson-shop .woof_reset_search_form {
	height: 40px;
	padding: 0 18px;
	border-radius: 999px !important;
	background: var(--tson-ink) !important;
	color: #fff !important;
	font-family: var(--tson-font);
	font-weight: 600;
	border: 0 !important;
}

/* Chosen-filter chips above the grid. */
body.tson-shop .woof_products_top_panel li a,
body.tson-shop .woof_products_top_panel_content a {
	border-radius: 999px;
	font-family: var(--tson-font);
	font-size: 12px;
}

/* ---------- Pages 1, 2, 3 ---------- */
body.tson-shop .woocommerce-pagination ul.page-numbers {
	border: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
}
body.tson-shop .woocommerce-pagination ul.page-numbers li {
	border: 0;
}
body.tson-shop .woocommerce-pagination .page-numbers a,
body.tson-shop .woocommerce-pagination .page-numbers span {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--tson-line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--tson-font);
	font-weight: 600;
	color: var(--tson-ink);
	background: #fff;
}
body.tson-shop .woocommerce-pagination .page-numbers span.current {
	background: var(--tson-ink);
	border-color: var(--tson-ink);
	color: #fff;
}

/* ---------- List view ---------- */
body.tson-shop .product-block.list {
	font-family: var(--tson-font);
	border-radius: 20px;
	border: 1px solid var(--tson-line);
	overflow: hidden;
}
body.tson-shop .product-block.list figure.image {
	background: var(--tson-soft);
}
body.tson-shop .product-block.list figure.image img {
	mix-blend-mode: multiply;
}

/* ---------- Tablets and phones: count on its own line, then Filter · Sort · grid/list in one row ---------- */
@media (max-width: 1199px) {
	body.tson-shop .tbay-filter .main-filter {
		display: flex !important;
		flex-wrap: wrap;
		justify-content: flex-start !important;
	}
	body.tson-shop .woocommerce-result-count {
		flex: 1 1 100%;
		float: none;
		width: auto;
		margin: 0;
	}
	body.tson-shop .main-filter .filter.d-xl-none {
		float: none;
		order: 2;
	}
	body.tson-shop .main-filter .woocommerce-ordering {
		position: static !important;
		order: 3;
		flex: 1 1 auto;
		width: auto !important;
		min-width: 0;
	}
	body.tson-shop .main-filter .woocommerce-ordering .SumoSelect,
	body.tson-shop .main-filter .woocommerce-ordering .SumoSelect > .CaptionCont {
		width: 100%;
		min-width: 0;
	}
	body.tson-shop .main-filter .display-mode-warpper {
		order: 4;
		display: inline-flex !important;
		position: static;
	}
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	body.tson-shop .main-filter .display-mode-warpper {
		display: none !important;
	}
	body.tson-store .product-block.grid .group-buttons {
		top: 8px;
		right: 8px;
	}
	body.tson-store .product-block.grid .group-buttons a,
	body.tson-store .product-block.grid .group-buttons .button {
		width: 34px;
		height: 34px;
		min-width: 34px;
	}
	body.tson-store .product-block.grid .caption .name {
		font-size: 13px;
	}
	body.tson-shop .tbay-filter .main-filter {
		flex-wrap: wrap;
	}
	body.tson-shop .woocommerce-ordering .SumoSelect > .CaptionCont {
		min-width: 150px;
	}
}
