/* Amazon Product Engine — Frontend Card */

.ape-product-card {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin: 24px 0;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	position: relative;
	max-width: 680px;
	box-sizing: border-box;
}

/* Mock badge — only rendered when no real API credentials exist */
.ape-mock-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #f0ad00;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Product image */
.ape-image-link {
	flex-shrink: 0;
	display: block;
}

.ape-product-image {
	width: 150px;
	height: 150px;
	object-fit: contain;
	display: block;
	border-radius: 4px;
	background: #f7f7f7;
}

/* Info block */
.ape-product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

/* Title */
.ape-product-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 600;
}

.ape-product-title a {
	color: #0f1111;
	text-decoration: none;
}

.ape-product-title a:hover {
	color: #c45500;
	text-decoration: underline;
}

/* Price */
.ape-product-price {
	font-size: 24px;
	font-weight: 700;
	color: #b12704;
	line-height: 1;
}

/* CTA button */
.ape-buy-button {
	display: inline-block;
	background: #FF9900;
	background-image: linear-gradient(to bottom, #FFB04A, #F89400);
	color: #111111 !important;
	text-decoration: none !important;
	padding: 10px 22px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	width: fit-content;
	border: 1px solid #c8811a;
	transition: background 0.15s, background-image 0.15s;
	cursor: pointer;
}

.ape-buy-button:hover,
.ape-buy-button:focus {
	background: #e8890e;
	background-image: linear-gradient(to bottom, #F5A833, #E07B00);
	outline: 2px solid #f5a833;
	outline-offset: 2px;
}

/* Affiliate disclosure */
.ape-disclosure {
	font-size: 11px;
	color: #999999;
	margin: 0;
	line-height: 1.4;
}

/* Error state (visible only to admins) */
.ape-price-unavailable {
	font-size: 14px;
	color: #888;
	font-weight: normal;
}

.ape-error {
	color: #cc0000;
	border: 1px solid #cc0000;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
}

/* Responsive — stack vertically on small screens */
@media (max-width: 500px) {
	.ape-product-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.ape-product-image {
		width: 180px;
		height: 180px;
	}

	.ape-buy-button {
		width: 100%;
		text-align: center;
	}
}
