/**
 * WooCommerce Infinite Scroll for Astra Theme - Styles
 */

/* Hide theme default pagination when infinite scroll is active */
.wc-astra-is-active .pls-pagination,
.wc-astra-is-active nav.woocommerce-pagination,
.wc-astra-is-active .ast-pagination,
.wc-astra-is-active .woocommerce-pagination,
.wc-astra-is-active .ast-woocommerce-pagination,
.wc-astra-is-active ul.page-numbers,
.wc-astra-is-active .ast-pagination-default,
.wc-astra-is-active nav.pagination {
	display: none !important;
}

/* Control Wrapper */
.wc-astra-is-wrapper {
	clear: both;
	width: 100%;
	text-align: center;
	margin: 35px 0 25px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Load More Button */
.wc-astra-is-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 32px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #ffffff;
	background-color: var(--ast-global-color-0, #0274be);
	border: 1px solid transparent;
	border-radius: var(--ast-border-radius, 4px);
	cursor: pointer;
	text-decoration: none;
	transition: all 0.25s ease-in-out;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
	user-select: none;
}

.wc-astra-is-button:hover,
.wc-astra-is-button:focus {
	background-color: var(--ast-global-color-1, #015e9b);
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	transform: translateY(-1px);
	outline: none;
}

.wc-astra-is-button:active {
	transform: translateY(0);
}

/* Spinner Loader */
.wc-astra-is-loader {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ast-global-color-3, #4b4f58);
	padding: 10px 20px;
}

.wc-astra-is-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: var(--ast-global-color-0, #0274be);
	border-radius: 50%;
	animation: wc-astra-is-spin 0.75s linear infinite;
	display: inline-block;
	flex-shrink: 0;
}

@keyframes wc-astra-is-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* End of Results Message */
.wc-astra-is-end-notice {
	display: inline-block;
	padding: 12px 24px;
	font-size: 14px;
	color: #666666;
	background: #f8f9fa;
	border: 1px dashed #dcdcde;
	border-radius: 4px;
	margin: 10px 0;
}

/* Product Entry Animation */
.wc-astra-is-new-item {
	animation: wcAstraIsFadeIn 0.4s ease-out forwards;
}

@keyframes wcAstraIsFadeIn {
	from {
		opacity: 0;
		transform: translateY(15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
