#tse-product *,
#tse-product *::before,
#tse-product *::after {
	box-sizing: border-box;
}

#tse-product {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	color: #1a1a1a;
	overflow-wrap: break-word;
	word-break: break-word;
}

#tse-product img {
	max-width: 100%;
	height: auto;
}

#tse-product .woocommerce-error,
#tse-product .woocommerce-message,
#tse-product .woocommerce-info {
	position: relative;
	padding: 14px 40px 14px 16px;
	margin-bottom: 20px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.4;
	list-style: none;
}
#tse-product .woocommerce-error li,
#tse-product .woocommerce-message li,
#tse-product .woocommerce-info li {
	list-style: none;
}
#tse-product .woocommerce-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}
#tse-product .woocommerce-message {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #16a34a;
}
#tse-product .woocommerce-info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #2563eb;
}
#tse-product .woocommerce-error .close,
#tse-product .woocommerce-message .close,
#tse-product .woocommerce-info .close,
#tse-product .woocommerce-error > a:first-child,
#tse-product .woocommerce-message > a:first-child,
#tse-product .woocommerce-info > a:first-child,
#tse-product [class*="woocommerce"] .woocommerce-message-close,
#tse-product .wc-block-components-notice-banner__dismiss {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: inherit;
	opacity: 0.6;
	padding: 4px 8px;
	line-height: 1;
	text-decoration: none;
}

#tse-product .woocommerce-breadcrumb {
	font-size: 13px;
	color: #888;
	margin-bottom: 24px;
}
#tse-product .woocommerce-breadcrumb a {
	color: #666;
	text-decoration: none;
}
#tse-product .woocommerce-breadcrumb a:hover {
	text-decoration: underline;
}

.tse-product__main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	margin-bottom: 48px;
	align-items: start;
}

.tse-product__main > * {
	min-width: 0;
}

@media (max-width: 768px) {
	.tse-product__main {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.tse-product__gallery {
	display: flex;
	gap: 12px;
	position: sticky;
	top: 20px;
	min-width: 0;
}

@media (max-width: 768px) {
	.tse-product__gallery {
		position: static;
	}
}

.tse-gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
	width: 72px;
}

.tse-gallery__thumb {
	width: 72px;
	height: 72px;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	padding: 0;
	background: #f5f5f5;
	transition: border-color 0.2s;
}
.tse-gallery__thumb:hover,
.tse-gallery__thumb--active {
	border-color: #FEDB32;
}
.tse-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tse-gallery__main {
	flex: 1;
	min-width: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f9f9f9;
	position: relative;
	cursor: zoom-in;
}
.tse-gallery__link {
	display: block;
}
.tse-gallery__image {
	width: 100%;
	height: auto;
	display: block;
}

.tse-gallery__zoom {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-size: 200%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
	border-radius: 8px;
}
.tse-gallery__zoom--active {
	opacity: 1;
}

@media (max-width: 768px) {
	.tse-gallery__main {
		cursor: default;
	}
	.tse-gallery__zoom {
		display: none;
	}
	.tse-product__gallery {
		flex-direction: column-reverse;
	}
	.tse-gallery__thumbs {
		flex-direction: row;
		width: auto;
		overflow-x: auto;
	}
	.tse-gallery__thumb {
		width: 56px;
		height: 56px;
		flex-shrink: 0;
	}
}

.tse-product__info {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	overflow: visible;
}

.tse-product__manufacturer {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #666;
}

.tse-product__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.tse-product__title {
	font-size: 28px;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.tse-cgr-badge {
	position: relative;
	flex-shrink: 0;
	color: #FEDB32;
	cursor: default;
	align-self: center;
}
.tse-cgr-badge svg {
	display: block;
	width: 22px;
	height: 22px;
}
.tse-cgr-badge__tooltip {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 280px;
	padding: 14px 16px;
	background: #1a1a1a;
	color: #eee;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
	z-index: 100;
}
.tse-cgr-badge__tooltip strong {
	display: block;
	color: #FEDB32;
	font-size: 14px;
	margin-bottom: 6px;
}
.tse-cgr-badge__list {
	display: block;
	margin-top: 10px;
	color: #ccc;
	font-size: 12px;
	line-height: 1.8;
}

@media (min-width: 769px) {
	.tse-cgr-badge:hover .tse-cgr-badge__tooltip {
		display: block;
	}
}

.tse-product__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tse-pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #e5e7eb;
}
.tse-pill--primary {
	background: #FEDB32;
	color: #1a1a1a;
	border-color: #E3BD00;
	font-weight: 700;
}
.tse-pill--small {
	padding: 2px 8px;
	font-size: 11px;
}

.tse-product__id {
	font-size: 13px;
	color: #888;
	font-family: monospace;
}

.tse-condition {
	padding: 16px 0;
}
.tse-condition__label {
	font-size: 13px;
	font-weight: 600;
	color: #555;
	margin-bottom: 8px;
}
.tse-condition__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.tse-condition__dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}
.tse-condition__dot--filled {
}
.tse-condition__dot--empty {
	background: #e5e7eb;
}
.tse-condition__percent {
	font-size: 16px;
	font-weight: 700;
	margin-left: 8px;
	color: #1a1a1a;
}
.tse-condition__text {
	font-size: 14px;
	font-weight: 600;
	margin-top: 4px;
}
.tse-condition--excellent .tse-condition__text,
.tse-condition--very-good { color: #22c55e; }
.tse-condition--good { color: #eab308; }
.tse-condition--fair { color: #f97316; }
.tse-condition--poor { color: #ef4444; }

.tse-product__pricing {
	padding: 16px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}
.tse-price__msrp {
	font-size: 14px;
	color: #999;
}
.tse-price__msrp s {
	text-decoration: line-through;
}
.tse-price__current {
	font-size: 32px;
	font-weight: 800;
	color: #1a1a1a;
	margin: 2px 0 4px;
}
.tse-price__current .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
}
.tse-price__savings {
	font-size: 14px;
	font-weight: 600;
	color: #22c55e;
}

.tse-test-banner {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px;
	background: #fefce8;
	border: 1px solid #fde68a;
	border-radius: 8px;
}
.tse-test-banner__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}
.tse-test-banner__content strong {
	font-size: 14px;
	color: #1a1a1a;
}

.tse-product__cart {
	margin-top: 8px;
}
.tse-btn-cart {
	display: block;
	width: 100%;
	padding: 16px 32px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #FEDB32 !important;
	color: #1a1a1a !important;
	border: none !important;
	border-radius: 4px !important;
	cursor: pointer;
	transition: background 0.2s;
}
.tse-btn-cart:hover {
	background: #E3BD00 !important;
}
.tse-btn-cart--loading {
	opacity: 0.7;
	pointer-events: none;
}
.tse-btn-cart--success {
	background: #22c55e !important;
	color: #fff !important;
	transition: background 0.3s, color 0.3s;
}
.tse-btn-cart--success:hover {
	background: #16a34a !important;
}
.tse-btn-cart--error {
	background: #dc2626 !important;
	color: #fff !important;
	transition: background 0.3s, color 0.3s;
}
.tse-btn-cart--error:hover {
	background: #b91c1c !important;
}

.tse-notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 20px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.4;
	animation: tseNoticeIn 0.3s ease;
}
.tse-notice--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}
.tse-notice--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #16a34a;
}
.tse-notice__close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: inherit;
	opacity: 0.6;
	padding: 0 4px;
	line-height: 1;
	flex-shrink: 0;
}
.tse-notice__close:hover {
	opacity: 1;
}
@keyframes tseNoticeIn {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}
.tse-out-of-stock {
	padding: 16px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 4px;
	color: #dc2626;
	font-weight: 600;
	text-align: center;
}

.tse-product__details {
	margin-top: 8px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tse-accordion {
	border-radius: 6px;
	overflow: hidden;
	border: none;
}

.tse-accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 11px 14px;
	background: #f3f4f6;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	text-align: left;
	letter-spacing: 0.03em;
	transition: background 0.15s;
}
.tse-accordion__header:hover {
	background: #e5e7eb;
}
.tse-accordion__header--open {
	border-radius: 6px 6px 0 0;
}
.tse-accordion__icon {
	font-size: 13px;
	font-weight: 400;
	width: 18px;
	text-align: center;
	flex-shrink: 0;
	color: #374151;
	transition: transform 0.2s;
}

.tse-accordion__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background: #f9f9f9;
}
.tse-accordion__body--open {
	max-height: 1000px;
}

.tse-accordion__content {
	padding: 12px 14px 16px;
	font-size: 13px;
	line-height: 1.6;
	color: #444;
	overflow: hidden;
}

.tse-specs {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
.tse-specs th,
.tse-specs td {
	padding: 7px 10px;
	text-align: left;
	border-bottom: 1px solid #eee;
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tse-specs th {
	font-weight: 600;
	color: #777;
	width: 40%;
}
.tse-specs td {
	color: #1a1a1a;
	word-break: break-word;
}

.tse-product__related {
	margin-bottom: 48px;
}

.tse-section-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 24px;
}

.tse-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.tse-related-grid > * {
	min-width: 0;
}
@media (max-width: 900px) {
	.tse-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 500px) {
	.tse-related-grid {
		grid-template-columns: 1fr;
	}
}

.tse-related-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}
.tse-related-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}
.tse-related-card__image {
	background: #f9f9f9;
	overflow: hidden;
}
.tse-related-card__image img {
	width: 100%;
	height: auto;
	display: block;
}
.tse-related-card__info {
	padding: 12px;
}
.tse-related-card__brand {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: #888;
	letter-spacing: 0.05em;
}
.tse-related-card__title {
	font-size: 14px;
	font-weight: 600;
	margin: 4px 0 6px;
	line-height: 1.3;
}
.tse-related-card__condition {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin: 4px 0;
}
.tse-related-card__price {
	display: block;
	font-size: 16px;
	font-weight: 700;
	margin-top: 6px;
}

.tse-cgr-certified {
	background: #1a1a1a;
	border-radius: 12px;
	padding: 48px 32px;
	margin-bottom: 48px;
}

.tse-cgr-certified__inner {
	max-width: 700px;
	margin: 0 auto;
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

@media (max-width: 600px) {
	.tse-cgr-certified {
		padding: 32px 16px;
		border-radius: 8px;
	}
	.tse-cgr-certified__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 20px;
	}
}

.tse-cgr-certified__icon {
	flex-shrink: 0;
	color: #FEDB32;
}
.tse-cgr-certified__icon svg {
	width: 56px;
	height: 56px;
}

.tse-cgr-certified__content {
	color: #fff;
	min-width: 0;
}

.tse-cgr-certified__title {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 8px;
	color: #FEDB32;
}

.tse-cgr-certified__desc {
	font-size: 15px;
	line-height: 1.5;
	color: #ccc;
	margin: 0 0 20px;
}

.tse-cgr-certified__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tse-cgr-certified__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #eee;
}
.tse-cgr-certified__list li svg {
	flex-shrink: 0;
	color: #FEDB32;
}

body.tse-equipment-page {
	overflow-x: hidden !important;
	max-width: 100% !important;
	width: 100% !important;
	-webkit-overflow-scrolling: touch;
}

body.tse-equipment-page .wp-block-group,
body.tse-equipment-page .is-layout-constrained,
body.tse-equipment-page .wp-block-woocommerce-legacy-template,
body.tse-equipment-page .woocommerce,
body.tse-equipment-page .site-main,
body.tse-equipment-page .entry-content {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	overflow-x: hidden !important;
}

body.tse-equipment-page header .wp-block-group,
body.tse-equipment-page header .is-layout-constrained,
body.tse-equipment-page footer .wp-block-group,
body.tse-equipment-page footer .is-layout-constrained {
	padding-left: var(--wp--style--root--padding-left, 1.25rem) !important;
	padding-right: var(--wp--style--root--padding-right, 1.25rem) !important;
}

body.tse-equipment-page .wp-block-columns:has(#tse-product) {
	display: block !important;
	max-width: none !important;
}
body.tse-equipment-page .wp-block-column:has(#tse-product) {
	flex-basis: auto !important;
	max-width: none !important;
	width: 100% !important;
}
body.tse-equipment-page .wp-block-columns:has(#tse-product) > .wp-block-column:not(:has(#tse-product)) {
	display: none !important;
}
.tse-columns-override {
	display: block !important;
	max-width: none !important;
}
.tse-columns-override > .wp-block-column {
	flex-basis: auto !important;
	max-width: none !important;
	width: 100% !important;
}
.tse-columns-override > .wp-block-column:empty,
.tse-columns-override > .wp-block-column:not(:first-child) {
	display: none !important;
}

@media (max-width: 768px) {
	#tse-product {
		padding: 12px;
	}
	.tse-product__related {
		margin-bottom: 32px;
	}
	.tse-related-grid {
		gap: 12px;
	}
	.tse-specs th,
	.tse-specs td {
		padding: 8px 6px;
		font-size: 13px;
	}
	.tse-product__title {
		font-size: 22px;
	}
	.tse-cgr-badge svg {
		width: 18px;
		height: 18px;
	}
	.tse-product__info {
		overflow: hidden;
	}
	.tse-cgr-badge__tooltip {
		display: none !important;
	}
	.tse-price__current {
		font-size: 26px;
	}
}
