/* /assets/css/product-card.css */

.product-card {
	background: white;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid #f1edf7;
	box-shadow: 0 2px 10px rgba(26, 22, 37, 0.05);
	transition:
		transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.25s ease;
	display: flex;
	flex-direction: column;
}
.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(83, 47, 153, 0.12);
	border-color: #e3d9f7;
}
.product-card:active {
	transform: translateY(-1px) scale(0.99);
}
.product-card.out-of-stock {
	opacity: 0.6;
	pointer-events: none;
}
.product-image-wrap {
	position: relative;
	aspect-ratio: 1/1;
	background: #f9f9f9;
	overflow: hidden;
}
.product-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-image-wrap img {
	transform: scale(1.05);
}
.offer-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #e11d48;
	color: white;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	z-index: 2;
	max-width: calc(100% - 20px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}
.oos-badge {
	background: #6b7280;
	box-shadow: none;
}
.product-info {
	padding: 12px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.product-info h3 {
	font-size: 0.95rem;
	line-height: 1.4;
	margin-bottom: 6px;
	font-weight: 600;
	color: #1a1625;
}
.product-subtitle {
	font-size: 0.8rem;
	color: #666;
	line-height: 1.5;
	margin-bottom: 10px;
}
.price-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.current-price {
	font-size: 1.1rem;
	font-weight: 700;
	color: #e11d48;
}
.old-price {
	text-decoration: line-through;
	color: #9ca3af;
	font-size: 0.85rem;
	opacity: 0.6;
	margin-left: 0.5rem;
}
.delivery-text {
	font-size: 0.78rem;
	color: #16a34a;
	font-weight: 600;
	margin-bottom: 0;
	margin-top: auto;
}
.buy-btn {
	display: block;
	background: #16a34a;
	color: white;
	text-align: center;
	padding: 12px;
	border-radius: 0 0 18px 18px;
	font-weight: 700;
	font-size: 0.9rem;
	transition:
		background 0.18s ease,
		padding 0.18s ease;
}
.buy-btn.disabled {
	background: #9ca3af;
}
.product-card:hover .buy-btn:not(.disabled) {
	background: #15803d;
}
.buy-btn:active:not(.disabled) {
	background: #116c33;
}
