/* Ready PC — horizontal card (Figma) */

.tech-ready-pc-archive-loop .tech-ready-pc-card.wd-product,
body.tech-ready-pc-archive .tech-ready-pc-card.wd-product,
.tech-ready-pc-elementor-wrap .tech-ready-pc-card.wd-product,
.tech-ready-pc-products .tech-ready-pc-card.wd-product {
	--text-align: left !important;
	text-align: left !important;
}

.tech-ready-pc-archive-loop .tech-ready-pc-card .wd-entities-title,
.tech-ready-pc-archive-loop .tech-ready-pc-card .tech-card__title,
body.tech-ready-pc-archive .tech-ready-pc-card .tech-ready-pc-card__title,
.tech-ready-pc-products .tech-ready-pc-card .tech-ready-pc-card__title,
.tech-ready-pc-elementor-wrap .tech-ready-pc-card .tech-ready-pc-card__title {
	min-height: 0 !important;
	margin-top: 0 !important;
	font-family: "var(--tech-font-title)", sans-serif !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.15 !important;
	text-transform: none !important;
}

.tech-ready-pc-archive-loop .tech-ready-pc-card .product-wrapper,
body.tech-ready-pc-archive .tech-ready-pc-card .product-wrapper,
.tech-ready-pc-products .tech-ready-pc-card .product-wrapper,
.tech-ready-pc-elementor-wrap .tech-ready-pc-card .product-wrapper {
	border: none !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.tech-ready-pc-archive-loop .tech-ready-pc-card .tech-card__media,
.tech-ready-pc-archive-loop .tech-ready-pc-card .tech-card__body {
	display: none !important;
}

/* Ready PC grid — mobile 1 багана, tablet+ 2 багана */
body.tech-ready-pc-archive .tech-ready-pc-archive-loop.wd-products,
body.tech-ready-pc-archive .tech-ready-pc-archive-loop.products,
body.tech-ready-pc-archive ul.products.tech-ready-pc-archive-loop,
.tech-ready-pc-products .tech-ready-pc-products__list,
.tech-ready-pc-elementor-wrap .products.wd-products.tech-ready-pc-elementor-loop,
.tech-ready-pc-elementor-wrap ul.products.tech-ready-pc-elementor-loop {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	--wd-col-lg: 1 !important;
	--wd-col-md: 1 !important;
	--wd-col-sm: 1 !important;
	--wd-col: 1 !important;
}

body.tech-ready-pc-archive .tech-ready-pc-archive-loop.wd-products > .wd-product,
body.tech-ready-pc-archive .tech-ready-pc-archive-loop.wd-products > .product,
body.tech-ready-pc-archive .tech-ready-pc-archive-loop.products > .product,
body.tech-ready-pc-archive ul.products.tech-ready-pc-archive-loop > .product,
.tech-ready-pc-products .tech-ready-pc-products__list > .product {
	width: 100% !important;
	max-width: 100% !important;
	flex: none !important;
	margin: 0;
}

/* Elementor / Woodmart grid — багана тоог widget-ээс (3 col гэх мэт) */
.tech-ready-pc-elementor-wrap .products.wd-products > .tech-ready-pc-card,
.elementor-widget-woocommerce-products ul.products.elementor-grid > li.product .tech-ready-pc-card {
	width: 100%;
	max-width: 100%;
	height: 100%;
}

.tech-ready-pc-archive-loop.products::before,
.tech-ready-pc-archive-loop.products::after,
body.tech-ready-pc-archive ul.products.tech-ready-pc-archive-loop::before,
body.tech-ready-pc-archive ul.products.tech-ready-pc-archive-loop::after {
	display: none;
}

body.tech-ready-pc-archive .tech-ready-pc-card,
.tech-ready-pc-elementor-wrap .tech-ready-pc-card,
.tech-ready-pc-products .tech-ready-pc-card {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tech-ready-pc-card__inner {
	display: grid;
	grid-template-columns: minmax(0, 60%) minmax(0, 40%);
	gap: 12px;
	align-items: start;
	box-sizing: border-box;
	width: 100%;
	overflow: visible;
	border: 1px solid #eee !important;
	border-radius: 4px !important;
	padding: 12px !important;
	background: #fff !important;
	transition: border-color 0.25s ease;
}

.tech-ready-pc-card:hover .tech-ready-pc-card__inner {
	border-color: #000 !important;
}

.tech-ready-pc-card__media {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	overflow: visible;
	text-decoration: none;
	background: transparent;
}

.tech-ready-pc-card__media-img {
	position: relative;
	display: block;
	width: 100%;
	margin-bottom: 18px;
	overflow: visible;
}

.tech-ready-pc-card__media-img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	object-fit: contain;
}

.tech-ready-pc-card__price-badge {
	position: absolute;
	right: 16px;
	bottom: 0;
	z-index: 2;
	box-sizing: border-box;
	padding: 8px 12px;
	background: #000;
	border: 1px solid #fff;
	color: #fff;
	font-family: "var(--tech-font-title)", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	transform: translateY(50%);
}

.tech-ready-pc-card__summary {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 12px;
	min-width: 0;
	padding-top: 0;
}

.tech-ready-pc-card__title {
	margin: 0;
	padding: 0;
	font-family: "var(--tech-font-title)", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: normal;
	text-transform: none;
}

.tech-ready-pc-card__title a {
	font-family: "var(--tech-font-title)", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #000;
	text-decoration: none;
}

.tech-ready-pc-card__title a:hover {
	opacity: 0.75;
}

.tech-ready-pc-card__specs,
.tech-ready-pc-card .tech-ready-pc-card__specs {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tech-ready-pc-card .tech-sp-rpc-spec--card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
	width: 100%;
}

.tech-ready-pc-card .tech-sp-rpc-spec--card .tech-sp-rpc-spec__label {
	display: block;
	width: auto;
	font-family: var(--tech-font-body), sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: #9a9a9a;
	text-transform: lowercase;
}

.tech-ready-pc-card .tech-sp-rpc-spec--card .tech-sp-rpc-spec__value {
	display: block;
	width: 100%;
	font-family: "var(--tech-font-title)", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: #000;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tech-ready-pc-products {
	width: 100%;
}

@media (min-width: 768px) {
	body.tech-ready-pc-archive .tech-ready-pc-archive-loop.wd-products,
	body.tech-ready-pc-archive .tech-ready-pc-archive-loop.products,
	body.tech-ready-pc-archive ul.products.tech-ready-pc-archive-loop,
	.tech-ready-pc-products .tech-ready-pc-products__list,
	.tech-ready-pc-elementor-wrap .products.wd-products.tech-ready-pc-elementor-loop,
	.tech-ready-pc-elementor-wrap ul.products.tech-ready-pc-elementor-loop {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		--wd-col-lg: 2 !important;
		--wd-col-md: 2 !important;
	}
}

@media (max-width: 767px) {
	body.tech-ready-pc-archive .tech-ready-pc-archive-loop.wd-products,
	body.tech-ready-pc-archive .tech-ready-pc-archive-loop.products,
	body.tech-ready-pc-archive ul.products.tech-ready-pc-archive-loop,
	.tech-ready-pc-products .tech-ready-pc-products__list,
	.tech-ready-pc-elementor-wrap .products.wd-products.tech-ready-pc-elementor-loop,
	.tech-ready-pc-elementor-wrap ul.products.tech-ready-pc-elementor-loop,
	.tech-ready-pc-elementor-wrap .elementor-grid.products {
		grid-template-columns: 1fr !important;
		--wd-col-lg: 1 !important;
		--wd-col-md: 1 !important;
		--wd-col-sm: 1 !important;
		--wd-col: 1 !important;
	}

	body.tech-ready-pc-archive .tech-ready-pc-archive-loop.wd-products > .wd-product,
	body.tech-ready-pc-archive .tech-ready-pc-archive-loop.wd-products > .product,
	body.tech-ready-pc-archive .tech-ready-pc-archive-loop.products > .product,
	body.tech-ready-pc-archive ul.products.tech-ready-pc-archive-loop > .product,
	.tech-ready-pc-products .tech-ready-pc-products__list > .product,
	.tech-ready-pc-elementor-wrap .products.wd-products > .product {
		grid-column: 1 / -1 !important;
	}

	/* Карт — desktop шиг зураг | мэдээлэл (60/40) */
	.tech-ready-pc-card__inner {
		grid-template-columns: minmax(0, 60%) minmax(0, 40%) !important;
		gap: 10px;
		padding: 10px !important;
	}

	.tech-ready-pc-card__media-img {
		margin-bottom: 14px;
	}

	.tech-ready-pc-card__price-badge {
		right: 8px;
		padding: 6px 10px;
		font-size: 14px;
	}

	.tech-ready-pc-card__title,
	.tech-ready-pc-card__title a {
		font-size: 14px;
	}

	.tech-ready-pc-card .tech-sp-rpc-spec--card .tech-sp-rpc-spec__label {
		font-size: 12px;
	}

	.tech-ready-pc-card .tech-sp-rpc-spec--card .tech-sp-rpc-spec__value {
		font-size: 13px;
	}

	/* Case — mobile дээр нуух */
	.tech-ready-pc-card .tech-sp-rpc-spec--case,
	.tech-sp-ready-pc-specs .tech-sp-rpc-spec--case {
		display: none !important;
	}
}
