/* ==========================================================================
   DTP Product Card Grid — fully self-contained card design
   ========================================================================== */

.dtp-pc-grid {
	--dtp-pc-columns: 4;
	--dtp-pc-gap: 20px;
	--dtp-pc-accent: #c8102e;

	display: grid;
	grid-template-columns: repeat(var(--dtp-pc-columns), 1fr);
	gap: var(--dtp-pc-gap);
}

.dtp-pc-grid *,
.dtp-pc-grid *::before,
.dtp-pc-grid *::after {
	box-sizing: border-box;
}

.dtp-pc-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dtp-pc-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.dtp-pc-image-link {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f7f7f7;
}

.dtp-pc-image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dtp-pc-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--dtp-pc-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 4px;
	z-index: 2;
	text-transform: uppercase;
}

.dtp-pc-body {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
}

.dtp-pc-rating {
	line-height: 1;
}

.dtp-pc-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.dtp-pc-title a {
	color: #222;
	text-decoration: none;
}

.dtp-pc-title a:hover {
	color: var(--dtp-pc-accent);
}

.dtp-pc-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #777;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dtp-pc-price {
	font-size: 15px;
	font-weight: 700;
	color: #222;
	margin-top: 2px;
}

.dtp-pc-price del {
	color: #999;
	font-weight: 400;
	font-size: 13px;
	margin-right: 6px;
	text-decoration: line-through;
}

.dtp-pc-price ins {
	text-decoration: none;
	color: var(--dtp-pc-accent);
}

.dtp-pc-button {
	margin-top: auto;
	padding-top: 10px;
}

.dtp-pc-button a {
	display: inline-block;
	width: 100%;
	text-align: center;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dtp-pc-accent);
	background: transparent;
	border: 1px solid var(--dtp-pc-accent);
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
	cursor: pointer;
}

.dtp-pc-button a:hover {
	background: var(--dtp-pc-accent);
	color: #fff;
}

.dtp-pc-empty {
	font-size: 14px;
	color: #666;
}
