/* =========================================================
   CD Product Card — Best Seller style
   Simple state + Hover state
   ========================================================= */

.cd-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	width: 100%;
}

.cd-columns-2 { grid-template-columns: repeat(2, 1fr); }
.cd-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cd-columns-4 { grid-template-columns: repeat(4, 1fr); }
.cd-columns-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
	.cd-columns-4, .cd-columns-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	.cd-columns-3, .cd-columns-4, .cd-columns-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.cd-product-grid { grid-template-columns: 1fr; }
}

/* ---------- CARD (simple state) ---------- */
.cd-product-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* ---------- CARD (hover state) ---------- */
.cd-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ---------- IMAGE BANNER ---------- */
.cd-card-image-link {
	display: block;
	text-decoration: none;
}

.cd-card-banner {
	position: relative;
	background: linear-gradient(135deg, #5b6bf5 0%, #8b5cf6 55%, #a855f7 100%);
	padding: 32px 24px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.cd-card-image-wrap {
	width: 130px;
	height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.cd-card-image-wrap img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.4s ease;
}

/* image zoom on hover */
.cd-product-card:hover .cd-card-image-wrap img {
	transform: scale(1.08);
}

/* ---------- BADGE ---------- */
.cd-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #ffffff;
	color: #7c3aed;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	white-space: nowrap;
}

.cd-badge-icon {
	color: #f5a623;
	flex-shrink: 0;
}

/* ---------- CARD BODY ---------- */
.cd-card-body {
	padding: 20px 20px 22px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.cd-card-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #16181d;
}

.cd-card-title a {
	color: inherit;
	text-decoration: none;
}

.cd-card-title a:hover {
	color: #7c3aed;
}

.cd-card-desc {
	margin: 0 0 18px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #6b7280;
	flex-grow: 1;
}

/* ---------- FOOTER: PRICE + BUTTON ---------- */
.cd-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid #eef0f3;
}

.cd-card-price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	font-size: 22px;
	font-weight: 700;
	color: #16181d;
}

.cd-card-price .woocommerce-Price-amount {
	font-size: 22px;
	font-weight: 700;
	color: #16181d;
}

.cd-price-suffix {
	font-size: 13px;
	font-weight: 400;
	color: #9ca3af;
}

.cd-card-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #2f4bff;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.25s ease, transform 0.25s ease;
	flex-shrink: 0;
}

.cd-card-btn:hover {
	background: #1d34e0;
	color: #ffffff;
}

.cd-card-btn svg {
	transition: transform 0.25s ease;
}

.cd-product-card:hover .cd-card-btn svg {
	transform: translateX(2px);
}
