/**
 * Altinkenti CRO Phase 2 - Category Page Styles
 * Mobile-first, Shoptimizer-compatible.
 *
 * @package Altinkenti
 * @since 1.4.0
 */

/* ==========================================================================
   TRUST STRIP (above product grid)
   ========================================================================== */

.ak-plp-trust-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	padding: 12px 16px;
	margin: 0 0 16px;
	background: #fafaf7;
	border: 1px solid #f0ead6;
	border-radius: 6px;
}

.ak-plp-trust-strip__item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: #2d6b2d;
	white-space: nowrap;
}

.ak-plp-trust-strip__item svg {
	flex-shrink: 0;
	color: #2d6b2d;
}

/* ==========================================================================
   PRODUCT CARD BADGES (overlaid on image)
   ========================================================================== */

.ak-plp-badge {
	position: absolute;
	z-index: 2;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.5;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* Ayar badge — top left, offset below sale badge */
.ak-plp-badge--ayar {
	top: 36px;
	left: 8px;
	background: linear-gradient(135deg, #d4a843 0%, #f5d060 100%);
	color: #1a1a1a;
}

/* If no sale badge present, move ayar badge to top */
.woocommerce ul.products li.product:not(.sale) .ak-plp-badge--ayar {
	top: 8px;
}

.ak-plp-badge--ayar-22 {
	background: linear-gradient(135deg, #c9952a 0%, #f5d060 100%);
}

.ak-plp-badge--ayar-14 {
	background: linear-gradient(135deg, #e8c252 0%, #fbe88a 100%);
}

/* Bestseller badge — top right */
.ak-plp-badge--bestseller {
	top: 8px;
	right: 8px;
	background: #dc2626;
	color: #fff;
}

/* New badge — top right */
.ak-plp-badge--new {
	top: 8px;
	right: 8px;
	background: #2563eb;
	color: #fff;
}

/* Ensure the image wrapper is positioned for badge overlay */
.woocommerce ul.products li.product .woocommerce-image__wrapper {
	position: relative;
}

/* ==========================================================================
   QUICK DETAILS (ayar + weight below price)
   ========================================================================== */

.ak-plp-quick-details {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 4px;
	font-size: 11px;
	color: #6b7280;
	text-align: center;
}

.ak-plp-quick-details__sep {
	color: #d1d5db;
}

/* ==========================================================================
   HAVALE TEASER (below price on card)
   ========================================================================== */

.ak-plp-havale-teaser {
	margin-top: 3px;
	font-size: 11px;
	color: #555;
}

.ak-plp-havale-teaser strong {
	color: #2d6b2d;
	font-weight: 600;
}

.ak-plp-havale-teaser .woocommerce-Price-amount {
	font-size: 11px;
}

/* ==========================================================================
   PRICE FILTER (horizontal preset buttons)
   ========================================================================== */

.ak-plp-price-filter {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	margin: 0 0 12px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ak-plp-price-filter__label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
	flex-shrink: 0;
}

.ak-plp-price-filter__label svg {
	color: #8b7332;
}

.ak-plp-price-filter__options {
	display: flex;
	gap: 6px;
	flex-wrap: nowrap;
}

.ak-plp-price-filter__btn {
	display: inline-block;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 500;
	color: #374151;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.15s ease;
}

.ak-plp-price-filter__btn:hover {
	background: #e5e7eb;
	color: #1a1a1a;
	text-decoration: none;
}

.ak-plp-price-filter__btn.is-active {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
	.ak-plp-trust-strip {
		gap: 8px 12px;
		padding: 10px 12px;
		margin: 0 0 12px;
	}

	.ak-plp-trust-strip__item {
		font-size: 11px;
		gap: 4px;
	}

	.ak-plp-trust-strip__item svg {
		width: 14px;
		height: 14px;
	}

	.ak-plp-badge {
		font-size: 9px;
		padding: 2px 6px;
	}

	.ak-plp-price-filter {
		padding: 8px 0;
		margin: 0 0 10px;
	}

	.ak-plp-price-filter__btn {
		padding: 5px 10px;
		font-size: 10px;
	}
}

@media (max-width: 480px) {
	.ak-plp-trust-strip {
		justify-content: flex-start;
		gap: 6px 10px;
	}

	.ak-plp-trust-strip__item:nth-child(n+4) {
		display: none; /* Show max 3 items on very small screens */
	}
}
