/* /assets/css/product-card.css — Amazon-style */

.product-card {
	background: #ffffff;
	border: 1px solid #e3e6e6;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	font-family:
		"Hind Siliguri",
		-apple-system,
		"Segoe UI",
		Roboto,
		Arial,
		sans-serif;
	color: #0f1111;
	transition: border-color 0.15s ease;
}
.product-card:hover {
	border-color: #b6b6b6;
}
.product-card.out-of-stock {
	opacity: 0.65;
}

.product-image-wrap {
	position: relative;
	aspect-ratio: 1/1;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	overflow: hidden;
}
.product-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.oos-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #565959;
	color: #ffffff;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 0.72rem;
	font-weight: 600;
	z-index: 2;
}

.product-info {
	padding: 10px 12px 4px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.product-info h3 {
	font-size: 0.88rem;
	line-height: 1.35;
	font-weight: 400;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-info h3 a {
	color: #0f1111;
	text-decoration: none;
}
.product-card:hover .product-info h3 a {
	color: #007185;
	text-decoration: underline;
}

.product-subtitle {
	font-size: 0.75rem;
	color: #565959;
	line-height: 1.4;
	margin: 0;
}

/* Star rating — CSS-only, percentage-fill technique */
.rating-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0;
}
.star-rating {
	position: relative;
	display: inline-block;
	font-size: 0.85rem;
	line-height: 1;
	letter-spacing: 1px;
}
.star-rating-track {
	color: #e3e6e6;
}
.star-rating-fill {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--rating, 0%);
	overflow: hidden;
	white-space: nowrap;
	color: #ff9900;
}
.rating-count {
	font-size: 0.75rem;
	color: #007185;
}

.deal-tag {
	display: inline-block;
	background: #cc0c39;
	color: #ffffff;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 3px;
	width: fit-content;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.price-wrap {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	margin: 2px 0;
}
.discount-pct {
	color: #cc0c39;
	font-weight: 700;
	font-size: 0.85rem;
}
.current-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #b12704;
}
.current-price .currency-symbol {
	font-size: 0.7rem;
	font-weight: 600;
	margin-right: 1px;
	vertical-align: super;
}
.old-price {
	text-decoration: line-through;
	color: #565959;
	font-size: 0.78rem;
}

.delivery-text {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	color: #007600;
	margin: 2px 0 8px;
}
.delivery-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: #007600;
}

.card-action {
	padding: 0 12px 12px;
	margin-top: auto;
}
.buy-btn {
	display: inline-block;
	background: #ffd814;
	border: 1px solid #fcd200;
	color: #0f1111;
	text-align: center;
	padding: 7px 16px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.82rem;
	text-decoration: none;
	transition: background 0.1s ease;
}
.buy-btn:hover:not(.disabled) {
	background: #f7ca00;
}
.buy-btn.disabled {
	background: #e3e6e6;
	border-color: #d5d9d9;
	color: #767676;
	cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
	.product-card,
	.buy-btn {
		transition: none;
	}
}
