/* 5thAXIS — Product Listing */

.axis5th-pl {
	--axis5th-pl-columns:      4;
	--axis5th-pl-accent:       #c4191f;
	--axis5th-pl-card-border:  #e5e5e5;
	--axis5th-pl-series-color: #6c6c6c;
	--axis5th-pl-title-color:  #18181b;
	--axis5th-pl-price-color:  #18181b;
	--axis5th-pl-footer-border:#e5e5e5;
	--axis5th-pl-btn-color:    #c4191f;
	--axis5th-pl-btn-hover-bg: #c4191f;
}

/* ── Grid ──────────────────────────────────────────────────────────── */

.axis5th-pl__grid {
	display: grid;
	grid-template-columns: repeat( var(--axis5th-pl-columns), minmax(0, 1fr) );
	gap: 12px; /* Cards share borders — no gap */
}

/* ── Card ──────────────────────────────────────────────────────────── */

.axis5th-pl-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--axis5th-pl-card-border);
	margin: -1px 0 0 -1px; /* Collapse double borders */
	transition: box-shadow 0.2s ease, z-index 0s;
	position: relative;
	z-index: 0;
	padding: 16px;
}

.axis5th-pl-card:hover {
	z-index: 1;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ── Card image ────────────────────────────────────────────────────── */

.axis5th-pl-card__img-link {
	display: block;
	text-decoration: none;
}

.axis5th-pl-card__image {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	overflow: hidden;
}

.axis5th-pl-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.axis5th-pl-card:hover .axis5th-pl-card__image img {
	transform: scale(1.04);
}

/* ── Card body ─────────────────────────────────────────────────────── */

.axis5th-pl-card__body {
	padding-top: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.axis5th-pl-card__series {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--axis5th-pl-series-color);
}

.axis5th-pl-card__title-link {
	text-decoration: none;
	color: inherit;
}

.axis5th-pl-card__title {
	font-size: 18px;
	font-weight: 500;
	color: var(--e-global-color-accent);
	margin: 0 0 0.15rem;
	transition: color 0.15s ease;
	line-height: 1.25;
}

.axis5th-pl-card:hover .axis5th-pl-card__title {
	color: var(--axis5th-pl-accent);
}

.axis5th-pl-card__sku {
	margin: 0 0 0.25rem;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.3;
	color: #6c6c6c;
}

.axis5th-pl-card__price {
	font-size: 18px;
	font-weight: 700;
	color: var(--e-global-color-text);
	margin-top: 0.1rem;
}

/* WooCommerce price html resets */
.axis5th-pl-card__price .woocommerce-Price-amount {
	color: var(--e-global-color-text);
}

.axis5th-pl-card__price del {
	opacity: 0.45;
	font-weight: 400;
}

.axis5th-pl-card__price ins {
	text-decoration: none;
}

/* ── Card footer (footprint row) ───────────────────────────────────── */

.axis5th-pl-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	border-top: 1px solid var(--axis5th-pl-footer-border);
	font-size: 0.72rem;
}

.axis5th-pl-card__footer-label {
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6c6c6c;
	white-space: nowrap;
}

.axis5th-pl-card__footer-value {
	color: #4a4a4a;
	text-align: right;
}

/* ── Load More ─────────────────────────────────────────────────────── */

.axis5th-pl__load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
	transition: opacity 0.2s ease;
}

.axis5th-pl__load-more-wrap.is-hidden {
	display: none;
}

.axis5th-pl__load-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	padding: 0.8rem 2rem;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--axis5th-pl-btn-color);
	background: transparent;
	border: 2px solid var(--axis5th-pl-btn-color);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.axis5th-pl__load-more-btn:hover:not(:disabled) {
	background: var(--axis5th-pl-btn-hover-bg);
	color: #fff;
	border-color: var(--axis5th-pl-btn-hover-bg);
}

.axis5th-pl__load-more-btn:disabled,
.axis5th-pl__load-more-btn.is-loading {
	opacity: 0.6;
	cursor: default;
}

/* ── Empty state ───────────────────────────────────────────────────── */

.axis5th-pl__empty {
	color: #6c6c6c;
	font-size: 0.9rem;
	padding: 2rem 0;
	text-align: center;
	grid-column: 1 / -1;
}

/* ── Responsive ────────────────────────────────────────────────────── */

/* ── Cart row: − qty + and Add to Cart (Figma "New Product Card Options" 01) ──
   Selectors are prefixed with .axis5th-pl-card on purpose: Hello Elementor's
   reset.css styles input[type="number"] and button (full width, padding,
   border), which outranks a single class and broke this row. */

.axis5th-pl-card .axis5th-pl-card__cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 8px;
	margin-top: 14px;
}

.axis5th-pl-card .axis5th-pl-qty {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 4px;
}

.axis5th-pl-card .axis5th-pl-qty__btn {
	flex: 0 0 34px;
	width: 34px;
	min-width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	color: var(--axis5th-pl-accent);
	background: #ffffff;
	border: 1px solid var(--axis5th-pl-accent);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.axis5th-pl-card .axis5th-pl-qty__btn:hover,
.axis5th-pl-card .axis5th-pl-qty__btn:focus-visible {
	color: #ffffff;
	background: var(--axis5th-pl-accent);
}

.axis5th-pl-card .axis5th-pl-qty__input {
	flex: 0 0 36px;
	width: 36px;
	min-width: 0;
	height: 34px;
	margin: 0;
	padding: 0;
	text-align: center;
	font-size: 15px;
	line-height: 34px;
	color: var(--axis5th-pl-title-color);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-moz-appearance: textfield;
}

.axis5th-pl-card .axis5th-pl-qty__input:focus {
	outline: 1px solid var(--axis5th-pl-accent);
	outline-offset: -1px;
}

.axis5th-pl-card .axis5th-pl-qty__input::-webkit-outer-spin-button,
.axis5th-pl-card .axis5th-pl-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.axis5th-pl-card .axis5th-pl-card__add {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 6px 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	color: #ffffff;
	text-decoration: none;
	text-transform: none;
	background: #dd2828;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.axis5th-pl-card .axis5th-pl-card__add:hover,
.axis5th-pl-card .axis5th-pl-card__add:focus-visible {
	color: #ffffff;
	background: #b91f1f;
}

.axis5th-pl-card .axis5th-pl-card__add.is-loading {
	opacity: 0.7;
	cursor: progress;
}

.axis5th-pl-card .axis5th-pl-card__add.is-added {
	background: #2a7a2a;
}

.axis5th-pl-card .axis5th-pl-card__add-icon {
	flex: 0 0 auto;
}

/* WooCommerce's "View cart" link, in case another script inserts it here. */
.axis5th-pl-card .axis5th-pl-card__cart .added_to_cart {
	display: none;
}

.axis5th-pl-card .axis5th-pl-card__cart-msg {
	flex: 1 0 100%;
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
}

.axis5th-pl-card .axis5th-pl-card__cart-msg:empty {
	display: none;
}

.axis5th-pl-card .axis5th-pl-card__cart-msg.is-error {
	color: #b91f1f;
}

.axis5th-pl-card .axis5th-pl-card__cart-msg a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.axis5th-pl {
		--axis5th-pl-columns: 3;
	}
}

@media (max-width: 768px) {
	.axis5th-pl {
		--axis5th-pl-columns: 2;
	}
}

@media (max-width: 480px) {
	.axis5th-pl {
		--axis5th-pl-columns: 1;
	}
}
