/*
 * TechStore Pro WooCommerce stylesheet.
 * Loads after the WooCommerce core styles and restyles shop, product, cart,
 * checkout, mini cart and My Account with the theme design.
 */

/* Shop layout */
.ts-wc-main {
	padding: 28px 16px;
}

.ts-shop-layout {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.ts-shop-layout--full {
	grid-template-columns: minmax(0, 1fr);
}

.ts-shop-sidebar {
	position: sticky;
	top: 120px;
}

.ts-shop-sidebar .widget {
	margin-bottom: 16px;
	padding: 20px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	background: var(--glass-bg);
	box-shadow: var(--shadow-sm);
}

.ts-shop-sidebar .widget-title {
	margin-bottom: 14px;
	font-size: 15px;
}

.ts-shop-sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ts-shop-sidebar li {
	padding: 5px 0;
}

.ts-shop-sidebar li a {
	color: var(--ink-soft);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--ink-muted);
}

.woocommerce .woocommerce-ordering select {
	height: 44px;
	min-width: 220px;
	padding: 0 48px 0 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	background-color: var(--glass-bg-strong);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 18px center;
	background-repeat: no-repeat;
	background-size: 16px;
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	transition: border-color var(--speed), box-shadow var(--speed);
}

.woocommerce .woocommerce-ordering select:hover,
.woocommerce .woocommerce-ordering select:focus {
	border-color: rgba(var(--brand-rgb), 0.5);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

/* Shop toolbar */
.ts-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding: 10px 10px 10px 18px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	background: var(--glass-bg);
	box-shadow: var(--shadow-sm);
}

.woocommerce .ts-shop-toolbar .woocommerce-result-count,
.woocommerce .ts-shop-toolbar .woocommerce-ordering {
	float: none;
	margin: 0;
}

.ts-shop-toolbar .woocommerce-ordering {
	margin-left: auto !important;
}

.ts-shop-toolbar .woocommerce-notices-wrapper {
	flex: 1 1 100%;
}

.ts-shop-toolbar .woocommerce-notices-wrapper:empty {
	display: none;
}

.ts-shop-toolbar__filter {
	display: none;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	font-weight: 600;
	color: var(--ink);
	background: var(--glass-bg-strong);
	cursor: pointer;
}

/* Active filter chips */
.ts-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: -4px 0 18px;
}

.ts-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid rgba(var(--brand-rgb), 0.25);
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 500;
	color: var(--brand-dark);
	background: rgba(var(--brand-rgb), 0.08);
	transition: background var(--speed), color var(--speed);
}

.ts-chip:hover {
	color: #fff;
	background: var(--brand);
}

.ts-chip--clear {
	border-color: var(--line);
	color: var(--ink-soft);
	background: transparent;
}

.ts-chip--clear:hover {
	border-color: var(--danger);
	color: #fff;
	background: var(--danger);
}

/* Loading state while AJAX results come in */
.ts-shop-main {
	position: relative;
	min-height: 200px;
}

.ts-shop-main::before {
	content: "";
	position: absolute;
	z-index: 5;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	border-radius: var(--radius-pill);
	background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
	background-size: 50% 100%;
	background-repeat: no-repeat;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--speed);
}

.ts-shop-loading .ts-shop-main::before {
	opacity: 1;
	animation: ts-loading-bar 1s linear infinite;
}

.ts-shop-loading .ts-shop-main > * {
	opacity: 0.45;
	pointer-events: none;
	filter: saturate(0.6);
	transition: opacity var(--speed), filter var(--speed);
}

@keyframes ts-loading-bar {
	0% {
		background-position: -50% 0;
	}

	100% {
		background-position: 150% 0;
	}
}

/* Filter panel */
.ts-filters {
	margin-bottom: 16px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	background: var(--glass-bg);
	box-shadow: var(--shadow-sm);
}

.ts-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 14px;
	border-bottom: 1px solid var(--line-soft);
}

.ts-filters__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 16px;
}

.ts-filters__title svg {
	color: var(--brand);
}

.ts-filters__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	background: var(--paper);
	cursor: pointer;
}

.ts-filter-search {
	position: relative;
	margin: 16px 20px 6px;
}

.ts-filter-search__icon {
	position: absolute;
	top: 50%;
	left: 15px;
	color: var(--ink-muted);
	transform: translateY(-50%);
	pointer-events: none;
	transition: color var(--speed);
}

.ts-filter-search__input,
.woocommerce .ts-filter-search__input {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 42px 0 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	font-size: 14px;
	color: var(--ink);
	background: var(--paper);
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: border-color var(--speed), box-shadow var(--speed);
	-webkit-appearance: none;
	appearance: none;
}

.ts-filter-search__input::-webkit-search-cancel-button,
.ts-filter-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.ts-filter-search__input::placeholder {
	color: var(--ink-muted);
	opacity: 1;
}

.ts-filter-search__input:focus {
	border-color: var(--brand);
	outline: 0;
	box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.14);
}

.ts-filter-search:focus-within .ts-filter-search__icon {
	color: var(--brand);
}

.ts-filter-search__clear {
	position: absolute;
	top: 50%;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--ink-soft);
	background: var(--surface-2);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background var(--speed), color var(--speed);
}

.ts-filter-search__clear:hover {
	color: #fff;
	background: var(--danger);
}

.ts-filter-search__clear[hidden] {
	display: none;
}

.ts-filter {
	border-bottom: 1px solid var(--line-soft);
}

.ts-filter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.ts-filter__head::-webkit-details-marker {
	display: none;
}

.ts-filter__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ts-filter__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	color: #fff;
	background: var(--brand);
}

.ts-filter__chevron {
	color: var(--ink-muted);
	transition: transform var(--speed) var(--ease);
}

.ts-filter[open] .ts-filter__chevron {
	transform: rotate(180deg);
}

.ts-filter__body {
	padding: 0 20px 16px;
	animation: ts-filter-open 0.3s var(--ease);
}

@keyframes ts-filter-open {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.ts-filter__list,
.ts-shop-sidebar .ts-filter__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ts-shop-sidebar .ts-filter__list li {
	padding: 0;
}

.ts-filter__list--child {
	margin: 2px 0 4px 26px !important;
}

.ts-filter__list--scroll {
	max-height: 232px;
	overflow-y: auto;
	padding-right: 4px !important;
	scrollbar-width: thin;
}

/* Custom checkbox row */
.ts-check {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	color: var(--ink-soft);
	cursor: pointer;
	transition: background var(--speed), color var(--speed);
}

.ts-check:hover {
	color: var(--ink);
	background: rgba(var(--brand-rgb), 0.06);
}

.ts-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ts-check__box {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--line);
	border-radius: 5px;
	background: var(--paper);
	transition: background var(--speed), border-color var(--speed);
}

.ts-check__box::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 5px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	opacity: 0;
	transform: rotate(45deg) scale(0.6);
	transition: opacity var(--speed), transform var(--speed) var(--ease);
}

.ts-check input:checked + .ts-check__box {
	border-color: var(--brand);
	background: var(--brand);
}

.ts-check input:checked + .ts-check__box::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

.ts-check input:focus-visible + .ts-check__box {
	box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.25);
}

.ts-check.is-checked {
	font-weight: 600;
	color: var(--ink);
}

.ts-check__label {
	flex: 1;
	min-width: 0;
}

.ts-check__count {
	min-width: 26px;
	padding: 1px 8px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	color: var(--ink-muted);
	background: var(--surface-2);
}

.ts-check__swatch {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 2px solid var(--paper);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--line);
}

.ts-check__stars {
	display: inline-flex;
	gap: 2px;
}

.ts-check__stars i {
	width: 13px;
	height: 13px;
	background: var(--line);
	clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.ts-check__stars i.is-on {
	background: #f59e0b;
}

.ts-filter[data-filter="rating"] .ts-check__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Price range slider */
.ts-price-range__slider {
	position: relative;
	height: 28px;
	margin: 4px 8px 12px;
}

.ts-price-range__track,
.ts-price-range__fill {
	position: absolute;
	top: 50%;
	height: 4px;
	border-radius: var(--radius-pill);
	transform: translateY(-50%);
}

.ts-price-range__track {
	left: 0;
	right: 0;
	background: var(--line);
}

.ts-price-range__fill {
	left: 0;
	right: 0;
	background: linear-gradient(90deg, var(--brand), var(--accent));
}

.ts-price-range__input {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 28px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.ts-price-range__input:focus {
	outline: 0;
}

.ts-price-range__input::-webkit-slider-runnable-track {
	height: 28px;
	background: none;
}

.ts-price-range__input::-moz-range-track {
	height: 28px;
	background: none;
}

.ts-price-range__input::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	margin-top: 4px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--brand);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
	cursor: grab;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
	transition: transform var(--speed);
}

.ts-price-range__input::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--brand);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
	cursor: grab;
	pointer-events: auto;
}

.ts-price-range__input:active::-webkit-slider-thumb,
.ts-price-range__input:focus-visible::-webkit-slider-thumb {
	transform: scale(1.15);
	box-shadow: 0 0 0 5px rgba(var(--brand-rgb), 0.2);
}

.ts-price-range__fields {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.ts-price-range__fields label {
	flex: 1;
	min-width: 0;
}

.ts-price-range__fields label span {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-muted);
}

.ts-price-range__field {
	width: 100%;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	background: var(--paper);
	-moz-appearance: textfield;
	appearance: textfield;
}

.ts-price-range__field::-webkit-outer-spin-button,
.ts-price-range__field::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ts-price-range__field:focus {
	border-color: var(--brand);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}

.ts-price-range__dash {
	padding-bottom: 10px;
	color: var(--ink-muted);
}

.ts-price-range__note {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--ink-muted);
}

.ts-filters__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 20px 18px;
}

.ts-filters__apply {
	display: none;
}

.ts-filters__reset {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-muted);
}

.ts-filters__reset:hover {
	color: var(--danger);
}

.ts-filters-overlay {
	position: fixed;
	z-index: 998;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.ts-shop-sidebar {
	max-height: calc(100vh - 140px);
	overflow-y: auto;
	scrollbar-width: thin;
}

@media (max-width: 991px) {
	.ts-shop-toolbar__filter {
		display: inline-flex;
	}

	.ts-shop-sidebar,
	.ts-shop-layout .ts-shop-sidebar {
		position: fixed;
		z-index: 999;
		top: 0;
		bottom: 0;
		left: 0;
		width: min(360px, 88vw);
		max-height: none;
		margin: 0;
		padding: 0;
		overflow-y: auto;
		background: var(--paper);
		box-shadow: var(--shadow-lg);
		transform: translateX(-105%);
		transition: transform 0.35s var(--ease);
	}

	.ts-filters-open .ts-shop-sidebar {
		transform: none;
	}

	.ts-filters-open {
		overflow: hidden;
	}

	.ts-shop-sidebar .ts-filters {
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.ts-filters__head {
		position: sticky;
		z-index: 2;
		top: 0;
		background: var(--paper);
	}

	.ts-filters__close {
		display: inline-flex;
	}

	.ts-filters__actions {
		position: sticky;
		bottom: 0;
		border-top: 1px solid var(--line-soft);
		background: var(--paper);
	}

	.ts-filters__apply {
		display: inline-flex;
		flex: 1;
	}

	.ts-shop-widgets {
		padding: 16px;
	}

	.ts-shop-toolbar {
		padding: 8px;
	}

	.ts-shop-toolbar .woocommerce-result-count {
		display: none;
	}

	.woocommerce .ts-shop-toolbar .woocommerce-ordering select {
		min-width: 0;
		max-width: 52vw;
	}
}

/* Product grid. WooCommerce core floats are replaced by CSS grid. */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none !important;
	display: none !important;
}

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

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

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

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	clear: none;
}

/* Product card */
/*
 * Hover only animates transform and opacity, which the browser can do on
 * the GPU. The big hover shadow lives on a pseudo element that fades in, so
 * moving the mouse over cards while scrolling does not repaint them.
 */
.ts-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid rgb(226 226 226 / 70%);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.86);
	box-shadow: var(--shadow-sm);
	transition: transform var(--speed) var(--ease), border-color var(--speed);
}

:root[data-theme="dark"] .ts-product-card {
	background: var(--glass-bg-strong);
}

.ts-product-card::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: inherit;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--speed);
}

.ts-product-card:hover {
	border-color: rgba(var(--brand-rgb), 0.35);
	transform: translateY(-4px);
}

.ts-product-card:hover::after {
	opacity: 1;
}

ul.products li.ts-product-card,
.ts-grid--products li.ts-product-card {
	isolation: isolate;
}

.ts-product-card__media {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-bottom: 1px solid var(--line-soft);
	border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
	background: var(--surface);
	isolation: isolate;
}

.ts-product-card__img-wrap {
	display: block;
	aspect-ratio: 1;
}

.ts-product-card__img,
.ts-product-card__img-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.6s var(--ease);
}


.ts-product-card:hover .ts-product-card__img {
	transform: scale(1.06);
}

.ts-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	color: #fff;
}

.ts-badge--sale {
	background: linear-gradient(135deg, #f43f5e, var(--danger));
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.ts-badge--new {
	background: linear-gradient(135deg, var(--brand), var(--brand-dark));
	box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.3);
}

.ts-product-card__badge-left,
.ts-product-card__badge-right {
	position: absolute;
	top: 12px;
	z-index: 2;
}

.ts-product-card__badge-left {
	left: 12px;
}

.ts-product-card__badge-right {
	right: 12px;
}

.ts-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 12px 16px 16px;
}

.ts-product-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 22px;
}

.ts-product-card__brand {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-muted);
}

.ts-product-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ts-product-card__title a {
	color: var(--ink);
}

.ts-product-card__title a:hover {
	color: var(--brand);
}

.ts-product-card .star-rating {
	margin: 0;
	font-size: 12px;
}

.ts-price-row {
	margin-top: auto;
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
}

.ts-price-row .price,
.ts-price-row > .woocommerce-Price-amount {
	color: var(--ink);
}

.ts-price-row del,
.ts-buybox__price del,
.woocommerce div.product p.price del {
	margin-right: 6px;
	font-size: 0.82em;
	font-weight: 500;
	color: var(--ink-muted);
	opacity: 0.8;
}

.ts-price-row ins,
.ts-buybox__price ins,
.woocommerce div.product p.price ins,
.woocommerce ul.products li.product .price ins,
.woocommerce-variation-price ins {
	text-decoration: none;
	color: var(--danger);
	font-weight: 700;
}

.ts-emi-tag {
	display: block;
	width: fit-content;
	margin-top: 6px;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 600;
	color: var(--accent);
	background: rgba(var(--accent-rgb), 0.1);
}

.ts-product-card__footer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--line-soft);
}

.ts-product-card__footer .button {
	flex: 1 1 auto;
	min-width: 0;
}

.ts-product-card__footer.has-qty .button {
	padding: 0 12px;
}

/* Quantity box beside the card add to cart button */
.ts-card-qty {
	flex: 0 0 auto;
}

.woocommerce .ts-card-qty div.quantity,
.ts-card-qty .quantity {
	display: inline-flex;
	align-items: center;
	height: 38px;
	margin: 0;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--glass-bg-strong);
}

.woocommerce .ts-card-qty .quantity input.qty,
.ts-card-qty .quantity input.qty {
	width: 30px;
	height: 32px;
	padding: 0;
	border: 0;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	color: var(--ink);
	background: transparent;
	box-shadow: none;
	outline: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.ts-card-qty .ts-qty-btn {
	width: 30px;
	height: 32px;
	border-radius: var(--radius-pill);
}

/* Overlays on the card image: compare (left) and stock (right), bottom edge */
.ts-product-card__compare,
.ts-product-card__stock {
	position: absolute;
	z-index: 2;
	bottom: 12px;
}

.ts-product-card__compare {
	left: 12px;
}

.ts-product-card__stock {
	right: 12px;
	pointer-events: none;
}

.ts-product-card__stock .ts-stock-label {
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background-color: rgba(255, 255, 255, 0.82);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

:root[data-theme="dark"] .ts-product-card__stock .ts-stock-label {
	border-color: rgba(255, 255, 255, 0.08);
	background-color: rgba(17, 26, 46, 0.82);
}

.ts-product-card__stock .ts-stock-label--out_of_stock,
.ts-product-card__stock .ts-stock-label--discontinue {
	color: var(--danger);
}

.ts-product-card__compare .ts-compare-toggle {
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-color: var(--line);
	color: var(--ink-soft);
	background: var(--paper);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--speed), transform var(--speed) var(--ease), color var(--speed), background var(--speed);
}

.ts-product-card:hover .ts-product-card__compare .ts-compare-toggle,
.ts-product-card__compare .ts-compare-toggle.is-active,
.ts-product-card__compare .ts-compare-toggle:focus-within {
	opacity: 1;
	transform: none;
}

.ts-product-card__compare .ts-compare-toggle.is-active,
.ts-product-card__compare .ts-compare-toggle:hover {
	border-color: var(--brand);
	color: #fff;
	background: var(--brand);
}

.ts-product-card__compare .ts-compare-toggle__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

@media (hover: none) {
	.ts-product-card__compare .ts-compare-toggle {
		opacity: 1;
		transform: none;
	}
}

.woocommerce ul.products li.product .button,
.ts-product-card__footer .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin: 0;
	padding: 0 16px;
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--brand), var(--brand-dark));
	box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.25);
}

.woocommerce ul.products li.product .button:hover {
	color: #fff;
	background: var(--brand-dark);
}

.woocommerce ul.products li.product .button.loading {
	opacity: 0.7;
}

.woocommerce ul.products li.product .added_to_cart {
	display: none;
}

/* Compare toggle */
.ts-compare-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-muted);
	cursor: pointer;
	user-select: none;
	transition: color var(--speed), background var(--speed), border-color var(--speed);
}

.ts-compare-toggle:hover {
	color: var(--brand);
	background: rgba(var(--brand-rgb), 0.07);
}

.ts-compare-toggle.is-active {
	color: var(--brand);
	background: rgba(var(--brand-rgb), 0.1);
	border-color: rgba(var(--brand-rgb), 0.25);
}

.ts-compare-toggle:focus-within {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.ts-compare-toggle--single {
	padding: 9px 16px;
	border-color: var(--line);
	background: var(--glass-bg-strong);
}

.ts-single-compare {
	margin: 14px 0 0;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 6px;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: var(--radius);
	line-height: 40px;
	color: var(--ink-soft);
	background: var(--glass-bg);
	border: 1px solid var(--line);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
	color: #fff;
	background: var(--brand);
	border-color: var(--brand);
}

/* Single product layout */
.ts-single-product__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin-bottom: 48px;
}

.ts-single-product__gallery {
	position: sticky;
	top: 130px;
	padding: 14px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-xl);
	background: var(--glass-bg);
	box-shadow: var(--shadow-sm);
}

.woocommerce div.product .ts-single-product__gallery div.images,
.ts-single-product__gallery .woocommerce-product-gallery {
	float: none;
	width: 100%;
	margin: 0;
}

.ts-single-product__gallery .woocommerce-product-gallery__image img {
	border-radius: var(--radius-lg);
	background: var(--paper);
}

.ts-single-product__gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0 !important;
	padding: 0;
	list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	float: none;
	width: 74px;
	margin: 0;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	border: 2px solid var(--line);
	border-radius: var(--radius);
	opacity: 0.65;
	transition: opacity var(--speed), border-color var(--speed);
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
	border-color: var(--brand);
	opacity: 1;
}

.ts-single-product__summary .product_title {
	margin-bottom: 8px;
	font-size: clamp(24px, 3vw, 32px);
	letter-spacing: -0.01em;
}

.ts-single-product__summary .woocommerce-product-rating {
	margin-bottom: 10px;
}

.ts-single-product__summary .woocommerce-product-details__short-description {
	margin-bottom: 16px;
	color: var(--ink-soft);
}

.ts-single-product__summary .product_meta {
	display: grid;
	gap: 4px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line-soft);
	font-size: 13px;
	color: var(--ink-muted);
}

/* Buy box */
.ts-buybox {
	padding: 22px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-xl);
	background: var(--glass-bg);
	box-shadow: var(--shadow);
}

.ts-buybox__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 10px 0 6px;
	font-family: var(--font-heading);
	font-size: 30px;
	font-weight: 700;
	color: var(--ink);
}

.ts-buybox__price .ts-emi-tag {
	font-family: var(--font-body);
}

.ts-sold-counter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0 10px;
	padding: 5px 12px;
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 600;
	color: var(--urgency);
	background: rgba(234, 140, 0, 0.1);
}

.ts-trust-badges {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 14px 0 18px;
	padding: 0;
	list-style: none;
}

.ts-trust-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: var(--radius);
	font-size: 13px;
	color: var(--ink-soft);
	background: var(--surface-2);
}

.ts-trust-badge svg {
	flex-shrink: 0;
	color: var(--success);
}

.ts-buybox .ts-payment-icons {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line-soft);
}

.ts-buybox .ts-payment-icon {
	border: 1px solid var(--line);
}

/* Add to cart form */
.woocommerce div.product form.cart {
	margin: 0;
}

.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
	content: none;
}

.ts-atc-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin-top: 8px;
}

.woocommerce .ts-atc-row div.quantity,
.woocommerce div.product form.cart .ts-atc-row div.quantity {
	float: none;
	margin: 0;
}

.woocommerce div.product form.cart .ts-atc-row .button,
.ts-atc-row .ts-buy-now {
	float: none;
	flex: 1 1 150px;
	min-height: 50px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	cursor: pointer;
}

.woocommerce div.product form.cart .ts-atc-row .single_add_to_cart_button:not(.ts-buy-now) {
	background: linear-gradient(135deg, var(--brand), var(--brand-dark));
	box-shadow: 0 8px 20px rgba(var(--brand-rgb), 0.28);
}

.woocommerce div.product form.cart .ts-atc-row .single_add_to_cart_button:not(.ts-buy-now):hover {
	color: #fff;
	box-shadow: 0 10px 26px rgba(var(--brand-rgb), 0.38);
}

.woocommerce div.product form.cart .ts-atc-row .ts-buy-now,
.ts-atc-row .ts-buy-now {
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

.woocommerce div.product form.cart .ts-atc-row .ts-buy-now:hover {
	color: #fff;
	box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.4);
}

.woocommerce div.product form.cart .ts-atc-row .button.disabled,
.woocommerce div.product form.cart .ts-atc-row .button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.woocommerce div.product form.cart .ts-atc-row .button.loading {
	opacity: 0.75;
}

.ts-form-error {
	margin-bottom: 14px;
}

/* Quantity stepper */
.woocommerce .quantity,
.quantity {
	display: inline-flex;
	align-items: center;
	height: 50px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--glass-bg-strong);
}

.woocommerce .quantity .qty,
.quantity input.qty {
	width: 46px;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.quantity input.qty:focus,
.quantity input.qty:focus-visible {
	outline: none;
	box-shadow: none;
}

.ts-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink-soft);
	cursor: pointer;
	transition: background var(--speed), color var(--speed);
}

.ts-qty-btn:hover {
	color: var(--brand);
	background: rgba(var(--brand-rgb), 0.08);
}

.ts-qty-btn:focus {
	outline: none;
}

.ts-qty-hidden {
	display: none !important;
}

.woocommerce table.shop_table .quantity {
	height: 42px;
}

/* Product options configurator */
.ts-product-options {
	margin: 4px 0 14px;
}

.ts-config-group {
	margin-bottom: 18px;
}

.ts-config-group__header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.ts-config-group__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
}

.ts-config-group__req {
	font-weight: 700;
	color: var(--danger);
}

.ts-config-group__selection {
	font-size: 13px;
	font-weight: 500;
	color: var(--brand);
}

.ts-config-group__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ts-config-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 86px;
	padding: 10px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	background: var(--glass-bg-strong);
	font: inherit;
	color: var(--ink);
	text-align: left;
	cursor: pointer;
	user-select: none;
	transition: border-color var(--speed), background var(--speed), box-shadow var(--speed);
}

.ts-config-card:hover {
	border-color: rgba(var(--brand-rgb), 0.6);
}

.ts-config-card.ts-selected,
.ts-config-card:has(input:checked) {
	border-color: var(--brand);
	background: rgba(var(--brand-rgb), 0.08);
	box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

.ts-config-card__label {
	font-size: 14px;
	font-weight: 600;
}

.ts-config-card__price {
	font-size: 12px;
	font-weight: 600;
	color: var(--brand);
}

.ts-config-tile {
	min-width: 110px;
	align-items: center;
	text-align: center;
}

.ts-config-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--ink-soft);
	cursor: pointer;
}

.ts-swatch {
	display: block;
	width: 34px;
	height: 34px;
	border: 3px solid var(--paper);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--line);
	transition: box-shadow var(--speed), transform var(--speed);
}

.ts-config-swatch.ts-selected .ts-swatch,
.ts-config-swatch:has(input:checked) .ts-swatch {
	box-shadow: 0 0 0 2px var(--brand);
	transform: scale(1.08);
}

.ts-swatch__label {
	font-size: 12px;
}

.ts-config-group--checkbox .ts-config-group__options {
	flex-direction: column;
	align-items: stretch;
}

.ts-config-check-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	background: var(--glass-bg-strong);
	font-size: 14px;
	cursor: pointer;
}

.ts-config-check-opt.ts-selected {
	border-color: var(--brand);
	background: rgba(var(--brand-rgb), 0.06);
}

.ts-config-check-opt input {
	width: 17px;
	height: 17px;
	accent-color: var(--brand);
}

.ts-config-check-opt .ts-price-add {
	margin-left: auto;
	font-weight: 600;
	color: var(--brand);
}

.ts-config-group__error {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--danger);
}

.ts-config-group__error[hidden] {
	display: none;
}

.ts-config-group--missing .ts-config-card,
.ts-config-group--missing .ts-config-check-opt {
	border-color: var(--danger);
}

.ts-options-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 12px;
	padding: 12px 16px;
	border: 1px dashed rgba(var(--brand-rgb), 0.5);
	border-radius: var(--radius);
	background: rgba(var(--brand-rgb), 0.05);
}

.ts-options-total[hidden] {
	display: none;
}

.ts-options-total__price {
	font-size: 18px;
	font-weight: 700;
	color: var(--brand);
}

/* Variations */
.ts-variations-ui.variations {
	display: block;
	width: 100%;
	margin: 0 0 14px;
	border: 0;
}

.ts-native-select-wrap {
	display: none;
}

.ts-var-card.ts-unavailable,
.ts-var-swatch.ts-unavailable {
	opacity: 0.4;
	text-decoration: line-through;
	cursor: not-allowed;
}

.ts-variations-form .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--danger);
}

.ts-variations-form .single_variation {
	margin-bottom: 10px;
}

.woocommerce div.product .ts-variations-form .woocommerce-variation-price .price {
	font-size: 22px;
	font-weight: 700;
	color: var(--ink);
}

/* Accessories */
.ts-bundle-accessories {
	margin: 4px 0 16px;
}

.ts-bundle-accessories__title {
	margin-bottom: 10px;
	font-family: var(--font-body);
	font-size: 14px;
}

.ts-addon-cards {
	display: grid;
	gap: 8px;
}

.ts-addon-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	background: var(--glass-bg-strong);
	cursor: pointer;
}

.ts-addon-card:has(input:checked) {
	border-color: var(--brand);
	background: rgba(var(--brand-rgb), 0.06);
}

.ts-addon-card__check {
	width: 17px;
	height: 17px;
	accent-color: var(--brand);
}

.ts-addon-card__img img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-sm);
	object-fit: contain;
	background: var(--paper);
}

.ts-addon-card__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.ts-addon-card__price {
	display: block;
	font-size: 13px;
	color: var(--brand);
}

/* Stock labels */
.ts-stock-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.ts-stock-label::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.ts-stock-label--in_stock {
	color: var(--success);
	background: rgba(22, 163, 74, 0.1);
}

.ts-stock-label--backorder {
	color: #0369a1;
	background: rgba(3, 105, 161, 0.1);
}

.ts-stock-label--announce {
	color: var(--accent);
	background: rgba(var(--accent-rgb), 0.1);
}

.ts-stock-label--limited {
	color: var(--urgency);
	background: rgba(234, 140, 0, 0.12);
}

.ts-stock-label--out_of_stock,
.ts-stock-label--discontinue {
	color: var(--danger);
	background: rgba(220, 38, 38, 0.1);
}

.ts-stock-action {
	margin-top: 14px;
}

.ts-stock-note {
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--ink-muted);
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs {
	clear: both;
	margin: 0 0 40px;
	padding: 24px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-xl);
	background: var(--glass-bg);
	box-shadow: var(--shadow-sm);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 22px;
	padding: 5px;
	border-radius: var(--radius-pill);
	background: var(--surface-2);
	overflow: visible;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 9px 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-muted);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--paper);
	box-shadow: var(--shadow-sm);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--brand);
}

.woocommerce div.product .woocommerce-tabs .panel {
	margin: 0;
	line-height: 1.75;
}

.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
	font-size: 20px;
}

/* Accordion layout */
.ts-accordion {
	display: grid;
	gap: 10px;
}

.ts-accordion__item {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--glass-bg-strong);
}

.ts-accordion__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.ts-accordion__title::-webkit-details-marker {
	display: none;
}

.ts-accordion__title svg {
	flex-shrink: 0;
	transition: transform var(--speed);
}

.ts-accordion__item[open] > .ts-accordion__title {
	color: var(--brand);
}

.ts-accordion__item[open] > .ts-accordion__title svg {
	transform: rotate(180deg);
}

.ts-accordion__content {
	padding: 0 20px 20px;
	line-height: 1.75;
}

/* Additional information table and reviews */
.woocommerce table.shop_attributes {
	border: 0;
	border-radius: var(--radius);
	overflow: hidden;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--line-soft);
	font-style: normal;
}

.woocommerce table.shop_attributes th {
	width: 220px;
	font-weight: 600;
	background: var(--surface-2);
}

.woocommerce table.shop_attributes tr:nth-child(even) td,
.woocommerce table.shop_attributes tr:nth-child(even) th {
	background: transparent;
}

.woocommerce .star-rating span::before,
.woocommerce p.stars a {
	color: #f59e0b;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
	margin: 8px 0 18px;
	font-size: 22px;
}

/* Buttons used by WooCommerce markup */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	min-height: 44px;
	padding: 0 20px;
	border-radius: var(--radius);
	font-weight: 600;
	line-height: 44px;
	color: #fff;
	background: var(--brand);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	color: #fff;
	background: var(--brand-dark);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--accent);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--accent-dark);
}

/* Notices. WooCommerce draws an icon on the left, so the text keeps room for it. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 0 18px;
	padding: 14px 18px 14px 50px;
	border: 1px solid transparent;
	border-radius: var(--radius-lg);
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
	background: var(--glass-bg-strong);
	box-shadow: var(--shadow-sm);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: absolute;
	top: 50%;
	left: 18px;
	margin: 0;
	transform: translateY(-50%);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	order: 2;
	float: none !important;
	min-height: 36px;
	margin-left: auto !important;
	line-height: 36px;
}

.woocommerce-message {
	border-color: rgba(22, 163, 74, 0.25);
	border-top-color: rgba(22, 163, 74, 0.25);
}

.woocommerce-message::before {
	color: var(--success);
}

.woocommerce-info {
	border-color: rgba(var(--brand-rgb), 0.25);
	border-top-color: rgba(var(--brand-rgb), 0.25);
}

.woocommerce-info::before {
	color: var(--brand);
}

.woocommerce-error {
	display: block;
	border-color: rgba(220, 38, 38, 0.25);
	border-top-color: rgba(220, 38, 38, 0.25);
}

.woocommerce-error::before {
	top: 16px;
	color: var(--danger);
	transform: none;
}

.woocommerce-error li {
	margin: 0;
}

/* Form fields */
.woocommerce form .form-row {
	margin: 0 0 14px;
	padding: 0;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink-soft);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .password-input input {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--glass-bg-strong);
	color: var(--ink);
	font-size: 14px;
	line-height: 1.4;
	transition: border-color var(--speed), box-shadow var(--speed);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: rgba(var(--brand-rgb), 0.6);
	outline: none;
	box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12);
}

.woocommerce form .password-input {
	display: block;
	position: relative;
}

.woocommerce form .show-password-input {
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
}

.woocommerce form .form-row .description,
.woocommerce form .form-row em {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	font-style: normal;
	color: var(--ink-muted);
}

.woocommerce form fieldset {
	margin: 22px 0 18px;
	padding: 18px 20px 6px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.woocommerce form fieldset legend {
	padding: 0 8px;
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 700;
}

/* My Account */
.woocommerce-account .ts-container--wc .woocommerce {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
	content: none !important;
	display: none !important;
}

.woocommerce-account .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	grid-column: 1;
	position: sticky;
	top: 130px;
	overflow: hidden;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-xl);
	background: var(--glass-bg);
	box-shadow: var(--shadow-sm);
}

.ts-account-nav__user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px;
	color: #fff;
	background: linear-gradient(135deg, var(--brand), var(--accent));
}

.ts-account-nav__avatar {
	width: 48px;
	height: 48px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
}

.ts-account-nav__user strong,
.ts-account-nav__user span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 180px;
}

.ts-account-nav__user span {
	font-size: 12px;
	opacity: 0.85;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 10px;
	list-style: none;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: var(--radius);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-soft);
	transition: background var(--speed), color var(--speed);
}

.woocommerce-MyAccount-navigation li a::before,
.woocommerce-MyAccount-navigation li a::after {
	content: none;
	display: none;
}

.ts-account-icon {
	flex-shrink: 0;
}

.woocommerce-MyAccount-navigation li a:hover {
	color: var(--brand);
	background: rgba(var(--brand-rgb), 0.07);
}

.woocommerce-MyAccount-navigation li.is-active a {
	color: #fff;
	background: linear-gradient(135deg, var(--brand), var(--brand-dark));
	box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.25);
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--danger);
}

.woocommerce-account .woocommerce-MyAccount-content {
	grid-column: 2;
	min-width: 0;
	padding: 26px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-xl);
	background: var(--glass-bg);
	box-shadow: var(--shadow-sm);
}

.woocommerce-MyAccount-content > p:first-child {
	font-size: 15px;
}

.ts-account-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.ts-account-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	font-weight: 600;
	color: var(--ink);
	background: var(--glass-bg-strong);
	transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed);
}

.ts-account-card .ts-account-icon {
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 12px;
	color: var(--brand);
	background: rgba(var(--brand-rgb), 0.1);
}

.ts-account-card:hover {
	color: var(--brand);
	border-color: rgba(var(--brand-rgb), 0.4);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .u-columns.addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
	content: none;
	display: none;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
.woocommerce-account .addresses .col-1,
.woocommerce-account .addresses .col-2 {
	float: none;
	width: auto;
	max-width: none;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--glass-bg-strong);
}

.woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.woocommerce-Address-title::before,
.woocommerce-Address-title::after {
	content: none;
	display: none;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	float: none;
	margin: 0;
	font-size: 17px;
}

.woocommerce-Address-title .edit {
	float: none;
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 600;
	background: rgba(var(--brand-rgb), 0.08);
}

.woocommerce-Address address {
	font-style: normal;
	line-height: 1.7;
	color: var(--ink-soft);
}

/* Account login and register */
.woocommerce-account:not(.logged-in) .ts-container--wc .woocommerce {
	display: block;
}

.woocommerce-account #customer_login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.woocommerce-account #customer_login::before,
.woocommerce-account #customer_login::after {
	content: none;
	display: none;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2,
.woocommerce form.login,
.woocommerce form.register {
	float: none;
	width: auto;
	margin: 0;
	padding: 26px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-xl);
	background: var(--glass-bg);
	box-shadow: var(--shadow-sm);
}

.woocommerce-account #customer_login form.login,
.woocommerce-account #customer_login form.register {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

/* Tabbed glass login and register card */
.woocommerce-account #customer_login.ts-auth {
	position: relative;
	display: block;
	max-width: 480px;
	margin: 24px auto 48px;
}

.ts-auth__glow {
	position: absolute;
	z-index: 0;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	opacity: 0.55;
	pointer-events: none;
	will-change: transform;
	animation: ts-blob 12s ease-in-out infinite alternate;
}

.ts-auth__glow--one {
	top: -130px;
	left: -190px;
	background: radial-gradient(circle, rgba(var(--brand-rgb), 0.5), transparent 65%);
}

.ts-auth__glow--two {
	right: -190px;
	bottom: -110px;
	background: radial-gradient(circle, rgba(var(--accent-rgb), 0.45), transparent 65%);
	animation-delay: -5s;
}

.ts-auth__card {
	position: relative;
	z-index: 1;
	overflow: hidden;
	padding: 34px 34px 28px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-xl);
	background: var(--glass-bg);
	box-shadow: var(--shadow-lg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
}

.ts-auth__intro {
	margin-bottom: 24px;
	text-align: center;
}

.ts-auth__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 14px;
	border-radius: 18px;
	color: #fff;
	background: linear-gradient(135deg, var(--brand), var(--accent));
	box-shadow: 0 12px 26px rgba(var(--brand-rgb), 0.3);
}

.ts-auth__heading {
	margin: 0 0 6px;
	font-size: 26px;
}

.ts-auth__lead {
	margin: 0;
	font-size: 14px;
	color: var(--ink-muted);
}

.ts-auth__tabs {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 24px;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface-2);
}

.ts-auth__tab {
	position: relative;
	z-index: 1;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-muted);
	background: transparent;
	cursor: pointer;
	transition: color 0.35s var(--ease);
}

.ts-auth__tab.is-active {
	color: #fff;
}

.ts-auth__tab:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.ts-auth__indicator {
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: 5px;
	width: calc(50% - 5px);
	border-radius: var(--radius-pill);
	background: linear-gradient(135deg, var(--brand), var(--brand-dark));
	box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.3);
	transition: transform 0.45s var(--ease);
}

.ts-auth[data-ts-auth="register"] .ts-auth__indicator {
	transform: translateX(100%);
}

.ts-auth__panels {
	display: grid;
}

.ts-auth--tabs.is-ready .ts-auth__panel {
	grid-area: 1 / 1;
	visibility: hidden;
	opacity: 0;
	transform: translateX(-24px);
	pointer-events: none;
	transition: opacity 0.4s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}

.ts-auth--tabs.is-ready #ts-auth-register {
	transform: translateX(24px);
}

.ts-auth--tabs.is-ready .ts-auth__panel.is-active {
	visibility: visible;
	opacity: 1;
	transform: none;
	pointer-events: auto;
	transition: opacity 0.4s var(--ease) 0.08s, transform 0.45s var(--ease) 0.08s, visibility 0s;
}

.ts-auth--tabs:not(.is-ready) .ts-auth__panel + .ts-auth__panel {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.woocommerce-account #customer_login.ts-auth .ts-auth__panel {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.woocommerce .ts-auth form.login,
.woocommerce .ts-auth form.register {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.ts-auth .form-row {
	margin: 0 0 16px;
	padding: 0;
}

.ts-auth .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
}

.ts-auth .input-text {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 15px;
	color: var(--ink);
	background: var(--glass-bg-strong);
	transition: border-color var(--speed), box-shadow var(--speed), background var(--speed);
}

.ts-auth .input-text:focus {
	border-color: var(--brand);
	outline: 0;
	background: var(--paper);
	box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.14);
}

.ts-auth .password-input {
	display: block;
	position: relative;
}

.ts-auth .show-password-input {
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
}

.ts-auth__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 14px;
}

.ts-auth__row label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--ink-soft);
	cursor: pointer;
}

.ts-auth__row input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: var(--brand);
}

.ts-auth__lost {
	font-weight: 600;
}

.ts-auth__submit {
	margin-bottom: 0 !important;
}

.woocommerce .ts-auth__submit .button {
	width: 100%;
	height: 50px;
	border-radius: var(--radius-pill);
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--brand), var(--brand-dark));
	box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.3);
	transition: transform var(--speed), box-shadow var(--speed);
}

.woocommerce .ts-auth__submit .button:hover {
	color: #fff;
	box-shadow: 0 14px 30px rgba(var(--brand-rgb), 0.38);
	transform: translateY(-1px);
}

.ts-auth__note {
	padding: 12px 14px;
	border-radius: var(--radius);
	font-size: 13px;
	color: var(--ink-soft);
	background: rgba(var(--brand-rgb), 0.07);
}

.ts-auth__switch {
	margin: 20px 0 0;
	font-size: 14px;
	text-align: center;
	color: var(--ink-muted);
}

.ts-auth__switch a {
	font-weight: 700;
}

.ts-auth .woocommerce-privacy-policy-text {
	margin-bottom: 14px;
	font-size: 12px;
	color: var(--ink-muted);
}

@media (max-width: 600px) {
	.ts-auth__card {
		padding: 26px 20px 22px;
	}

	.ts-auth__heading {
		font-size: 22px;
	}
}

/* Tables (orders, downloads, classic cart) */
.woocommerce table.shop_table {
	overflow: hidden;
	border: 1px solid var(--line);
	border-collapse: separate;
	border-radius: var(--radius-lg);
	background: var(--glass-bg-strong);
}

.woocommerce table.shop_table th {
	padding: 14px 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-soft);
	background: var(--surface-2);
}

.woocommerce table.shop_table td {
	padding: 14px 16px;
	border-top: 1px solid var(--line-soft);
}

.woocommerce table.my_account_orders .button {
	min-height: 34px;
	margin: 2px;
	padding: 0 14px;
	font-size: 13px;
	line-height: 34px;
}

.woocommerce table.shop_table td.product-name dl.variation {
	margin-top: 4px;
	font-size: 13px;
	color: var(--ink-muted);
}

/* Block cart and checkout */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	margin-bottom: 40px;
}

.wc-block-components-sidebar-layout .wc-block-components-sidebar {
	padding: 22px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-xl);
	background: var(--glass-bg);
	box-shadow: var(--shadow-sm);
}

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 52px;
	border: 0 !important;
	border-radius: var(--radius) !important;
	font-weight: 700;
	color: #fff !important;
	background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
	box-shadow: 0 8px 20px rgba(var(--brand-rgb), 0.28);
	text-decoration: none !important;
}

.wc-block-components-button:not(.is-link):hover {
	color: #fff !important;
	box-shadow: 0 10px 26px rgba(var(--brand-rgb), 0.38);
}

.wc-block-cart-items .wc-block-cart-items__row {
	border-color: var(--line-soft) !important;
}

.wc-block-cart-item__image img {
	border-radius: var(--radius);
	background: var(--paper);
}

/* Block cart quantity box: clean pill, no focus outline or border flash */
.wc-block-components-quantity-selector {
	overflow: hidden;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius-pill) !important;
	background: var(--glass-bg-strong);
}

.wc-block-components-quantity-selector::after {
	display: none !important;
}

.wc-block-components-quantity-selector:focus-within {
	border-color: var(--line) !important;
	outline: none !important;
	box-shadow: none !important;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus,
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus-visible {
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent;
	font-weight: 600;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button,
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus,
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible {
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	color: var(--ink-soft);
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
	color: var(--brand);
	background: rgba(var(--brand-rgb), 0.08);
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-radius: var(--radius) !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus {
	border-color: var(--brand) !important;
	box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12) !important;
}

/* Mini cart inside the drawer */
.ts-drawer .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ts-drawer .woocommerce-mini-cart-item,
.woocommerce .ts-drawer ul.cart_list li.woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	align-items: start;
	gap: 10px 14px;
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--line-soft);
}

.ts-drawer .woocommerce-mini-cart-item > a:not(.remove) {
	display: contents;
	color: var(--ink);
}

/* Row 1: product name across the item, remove button on the right */
.ts-drawer .ts-mini-item__name {
	grid-column: 1 / 3;
	grid-row: 1;
	align-self: center;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink);
	transition: color var(--speed);
}

.ts-drawer .woocommerce-mini-cart-item > a:not(.remove):hover .ts-mini-item__name {
	color: var(--brand);
}

.ts-drawer .woocommerce-mini-cart-item a.remove,
.woocommerce .ts-drawer ul.cart_list li a.remove {
	position: static;
	grid-column: 3;
	grid-row: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(220, 38, 38, 0.18);
	border-radius: 50%;
	font-size: 0;
	color: var(--danger) !important;
	background: rgba(220, 38, 38, 0.08);
	transition: background var(--speed), color var(--speed), transform var(--speed);
}

.ts-drawer .woocommerce-mini-cart-item a.remove:hover,
.woocommerce .ts-drawer ul.cart_list li a.remove:hover {
	color: #fff !important;
	background: var(--danger);
	transform: scale(1.06);
}

.ts-drawer .woocommerce-mini-cart-item a.remove:focus-visible {
	outline: 2px solid var(--danger);
	outline-offset: 2px;
}

/* Row 2 and 3: image on the left, details on the right */
.ts-drawer .woocommerce-mini-cart-item img,
.woocommerce .ts-drawer ul.cart_list li img {
	grid-column: 1;
	grid-row: 2 / span 2;
	float: none;
	width: 76px;
	height: 76px;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	object-fit: contain;
	background: var(--paper);
	box-shadow: none;
}

.ts-drawer .woocommerce-mini-cart-item dl.variation,
.woocommerce .ts-drawer ul.cart_list li dl {
	grid-column: 2 / 4;
	grid-row: 2;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ink-muted);
}

.ts-drawer .woocommerce-mini-cart-item dl.variation dt,
.ts-drawer .woocommerce-mini-cart-item dl.variation dd {
	display: inline;
	margin: 0;
	padding: 0;
	float: none;
}

.ts-drawer .woocommerce-mini-cart-item dl.variation dt {
	font-weight: 600;
	color: var(--ink-soft);
}

.ts-drawer .woocommerce-mini-cart-item dl.variation dd::after {
	content: "";
	display: block;
}

.ts-drawer .woocommerce-mini-cart-item dl.variation dd p {
	display: inline;
	margin: 0;
}

.ts-drawer .woocommerce-mini-cart-item .quantity {
	grid-column: 2 / 4;
	grid-row: 3;
	align-self: end;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	height: auto;
	margin: 0;
	padding: 5px 12px;
	border: 0;
	border-radius: var(--radius-pill);
	font-size: 13px;
	color: var(--ink-soft);
	background: var(--surface-2);
}

.ts-drawer .woocommerce-mini-cart-item .quantity .woocommerce-Price-amount {
	font-weight: 700;
	color: var(--brand);
}

.ts-drawer .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: auto 0 0;
	padding: 18px 0 14px;
	border-top: 1px solid var(--line);
	font-size: 16px;
}

.ts-drawer .woocommerce-mini-cart__total .woocommerce-Price-amount {
	font-weight: 700;
}

.ts-drawer .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0;
}

.ts-drawer .woocommerce-mini-cart__buttons .ts-btn {
	width: 100%;
}

.ts-drawer .woocommerce-mini-cart__empty-message {
	margin: 40px 0;
	text-align: center;
	color: var(--ink-muted);
}

.ts-drawer .blockUI.blockOverlay {
	background: rgba(255, 255, 255, 0.5) !important;
}

/* Compare page */
.ts-compare-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-xl);
	background: var(--glass-bg);
	box-shadow: var(--shadow-sm);
}

.ts-compare-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
}

.ts-compare-table th,
.ts-compare-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: top;
}

.ts-compare-table tbody th {
	width: 180px;
	font-weight: 600;
	text-align: left;
	color: var(--ink-soft);
	background: var(--surface-2);
}

.ts-compare-table td {
	text-align: center;
}

.ts-compare-table thead th {
	text-align: center;
}

.ts-compare-diff td {
	font-weight: 600;
	background: rgba(234, 140, 0, 0.06);
}

.ts-compare-product-img {
	display: block;
	width: 120px;
	height: 120px;
	margin: 0 auto 10px;
	border-radius: var(--radius);
	object-fit: contain;
	background: var(--paper);
}

.ts-compare-product-name a {
	font-weight: 700;
	color: var(--ink);
}

.ts-compare-product-price {
	margin: 4px 0;
	font-weight: 700;
	color: var(--brand);
}

.ts-compare-remove {
	padding: 4px 10px;
	border: 0;
	border-radius: var(--radius-pill);
	font-size: 12px;
	color: var(--danger);
	background: rgba(220, 38, 38, 0.08);
	cursor: pointer;
}

.ts-compare-empty {
	padding: 40px 20px;
	text-align: center;
}

.ts-compare-empty[hidden],
.ts-compare-loading[hidden],
.ts-compare-table-wrap[hidden] {
	display: none;
}

/* Responsive */
@media (max-width: 1199px) {
	ul.products.columns-4,
	ul.products.columns-5,
	ul.products.columns-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.ts-shop-layout {
		grid-template-columns: minmax(0, 1fr);
	}


	ul.products,
	ul.products[class*="columns-"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ts-single-product__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.ts-single-product__gallery {
		position: static;
	}

	.woocommerce-account .ts-container--wc .woocommerce,
	.woocommerce-account #customer_login,
	.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		grid-column: 1;
		position: static;
	}
}

@media (max-width: 600px) {
	.ts-product-card__body {
		padding: 10px 12px 12px;
	}

	.ts-product-card__title {
		font-size: 14px;
	}

	.ts-product-card__footer {
		flex-wrap: wrap;
	}

	.ts-product-card__footer .button {
		width: 100%;
	}

	.ts-product-card__footer.has-qty .ts-card-qty,
	.ts-product-card__footer.has-qty .ts-card-qty .quantity {
		width: 100%;
	}

	.ts-card-qty .quantity {
		justify-content: space-between;
	}

	.ts-product-card__stock .ts-stock-label {
		padding: 3px 8px;
		font-size: 10px;
	}

	.ts-trust-badges {
		grid-template-columns: 1fr;
	}

	.ts-buybox,
	.woocommerce-account .woocommerce-MyAccount-content,
	.woocommerce div.product .woocommerce-tabs {
		padding: 16px;
	}

	.woocommerce .ts-atc-row div.quantity {
		flex: 1 1 100%;
		justify-content: space-between;
	}

	.woocommerce .ts-atc-row div.quantity input.qty {
		flex: 1;
	}
}

/* The no reviews note has no WooCommerce icon, so it needs no icon gap. */
.woocommerce-noreviews,
p.no-comments {
	padding-left: 18px;
}
