/* = Gallery Card (ak-prod-card)
   -------------------------------------------------------------- */
.ak-prod-card,
.ak-prod-card * {
	box-sizing: border-box;
}

.ak-prod-card {
	font-family: var(--alex-font);
	background: #fff;
	border: 1px solid var(--alex-border);
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
	margin: 16px 0;
	isolation: isolate;
}

/* Top row */
.ak-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding-bottom: 10px;
	border-bottom: 2px solid #ddd;
}

.ak-head.editors-pick {
	border-bottom-color: var(--alex-gold);
}

.ak-head.best-value {
	border-bottom-color: var(--alex-green);
}

.ak-title {
	font-weight: 800;
	font-size: 18px;
	color: var(--alex-text);
}

.ak-rating {
	margin-left: auto;
	font-size: 12px;
	color: var(--alex-star);
	white-space: nowrap;
}

/* Gallery */
.ak-gallery {
	position: relative;
	border: 1px solid var(--alex-border);
	border-radius: 12px;
	overflow: hidden;
	background: #f8fafc;
	min-height: 300px;
}

.ak-slide {
	width: 100%;
	aspect-ratio: 4/3;
	display: none;
	position: relative;
}

.ak-slide.is-active {
	display: block !important;
}

.ak-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	display: block;
}

/* Gallery nav buttons */
.ak-nav {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	pointer-events: none;
}

.ak-nav .ak-btn {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: saturate(140%) blur(4px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	position: relative;
}

.ak-nav .ak-btn::before {
	content: "";
	width: 18px;
	height: 18px;
	display: block;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	/* stylelint-disable-next-line function-url-quotes */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

.ak-nav .ak-next::before {
	transform: scaleX(-1);
}

/* Thumbnails */
.ak-thumbs {
	display: flex;
	gap: 8px;
	padding: 8px 6px;
	overflow: auto;
}

.ak-thumb {
	flex: 0 0 auto;
	width: 72px;
	aspect-ratio: 4/3;
	border: 1px solid var(--alex-border);
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.7;
	background: #fff;
}

.ak-thumb.is-active {
	outline: 2px solid var(--alex-blue);
	opacity: 1;
}

.ak-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	display: block;
}

/* Badges + CTA row */
.ak-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 12px 0 0;
	flex-wrap: nowrap;
}

.ak-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ak-prod-card .ak-badges {
	flex: 1 1 0;
	min-width: 0;
	max-width: calc(100% - 200px);
}

.ak-badge {
	font-size: 13px;
	color: #374151;
	background: #f3f4f6;
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
	font-weight: 600;
}

.ak-badge.gold {
	background: var(--alex-gold);
	color: #fff;
	font-weight: 700;
}

.ak-badge.green {
	background: var(--alex-green);
	color: #fff;
	font-weight: 700;
}

.ak-bottom .alex-cta-btn,
.ak-bottom .ak-cta {
	position: relative;
	display: inline-block;
	background: var(--alex-blue);
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	padding: 12px 54px 12px 18px;
	border-radius: 10px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	transition: transform 0.12s, background 0.12s, box-shadow 0.12s;
	margin-left: auto;
}

.ak-bottom .alex-cta-btn:hover,
.ak-bottom .ak-cta:hover {
	background: var(--alex-blue-dk);
	transform: translateY(-1px);
	color: #fff;
	text-decoration: none;
}

.ak-bottom .alex-cta-btn.gold,
.ak-bottom .ak-cta.gold {
	background: var(--alex-gold);
}

.ak-bottom .alex-cta-btn.gold:hover,
.ak-bottom .ak-cta.gold:hover {
	background: var(--alex-gold-dk);
	color: #fff;
}

.ak-bottom .alex-cta-btn.green,
.ak-bottom .ak-cta.green {
	background: var(--alex-green);
}

.ak-bottom .alex-cta-btn.green:hover,
.ak-bottom .ak-cta.green:hover {
	background: var(--alex-green-dk);
	color: #fff;
}

.ak-bottom .alex-cta-btn::after,
.ak-bottom .ak-cta::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	/* stylelint-disable-next-line function-url-quotes */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}


@media (max-width: 600px) {

	.ak-title {
		font-size: 17px;
	}

	.ak-bottom {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.ak-prod-card .ak-badges {
		max-width: 100%;
	}

	.ak-bottom .alex-cta-btn,
	.ak-bottom .ak-cta {
		width: 100%;
		text-align: center;
		margin-left: 0;
	}
}
