/*
 * All Products — single filterable dense product grid.
 * Simplified hero, sticky filter/search rail, compact tile grid, load-more.
 */

/* ---- decorative leaf background (2 placements) ---- */
.leaf-decor {
	position: relative;
}

.leaf-decor::before {
	content: '';
	position: absolute;
	pointer-events: none;
	z-index: 0;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cpath d='M20 220C110 220 200 150 200 40V20H160C60 20 20 90 20 180V220Z' fill='%233c675c' opacity='0.07'/%3E%3Cpath d='M20 220C60 150 100 90 190 30' stroke='%233c675c' stroke-width='5' fill='none' stroke-linecap='round' opacity='0.1'/%3E%3Ccircle cx='205' cy='205' r='16' fill='%23b28a42' opacity='0.35'/%3E%3C/svg%3E");
}

.leaf-decor>* {
	position: relative;
	z-index: 1;
}

.leaf-decor.leaf-tr::before {
	top: -30px;
	right: -30px;
	width: 220px;
	height: 220px;
	transform: scaleX(-1);
}

.leaf-decor.leaf-bl::before {
	bottom: -40px;
	left: -30px;
	width: 240px;
	height: 240px;
}

@media (max-width: 768px) {
	.leaf-decor::before {
		width: 150px !important;
		height: 150px !important;
	}
}

/* ---- hero ---- */
.log-ap-hero {
	max-width: 1320px;
	margin: 0 auto;
	padding: 20px 48px 0;
}

@media (max-width: 768px) {
	.log-ap-hero {
		padding: 14px 16px 0;
	}
}

.log-ap-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--blush-100);
	color: var(--sage-700);
	padding: 6px 14px;
	border-radius: var(--r-pill);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.log-ap-hero h1 {
	font-family: var(--display);
	font-size: clamp(26px, 3.6vw, 38px);
	font-weight: 700;
	margin-top: 10px;
	color: var(--ink-900);
}

.log-ap-hero h1 em {
	font-style: italic;
	color: var(--plum-700);
}

.log-ap-sub {
	font-size: 13px;
	color: var(--gray-600);
	margin: 4px 0 0;
}

/* ---- dense tile grid ---- */
.log-ap-grid-wrap {
	max-width: 1320px;
	margin: 0 auto;
}

.log-ap-grid {
	margin: 14px auto 0;
	padding: 0 48px 30px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 1100px) {
	.log-ap-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 800px) {
	.log-ap-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		padding: 0 16px 20px;
	}
}

.log-ap-tile {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	overflow: hidden;
	position: relative;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.log-ap-tile:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.log-ap-tile-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.log-ap-img {
	height: 200px;
	background: linear-gradient(135deg, var(--paper-50), var(--blush-100));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 44px;
	overflow: hidden;
	transition: background .3s;
}

.log-ap-tile:hover .log-ap-img {
	background: linear-gradient(135deg, var(--blush-100), var(--paper-50));
}

.log-ap-img-el {
	height: 100%;
	width: 100%;
	object-fit: cover;
	transition: transform .4s var(--ease);
}

.log-ap-tile:hover .log-ap-img-el {
	transform: scale(1.08) rotate(-2deg);
}

@media (max-width: 800px) {
	.log-ap-img {
		height: 160px;
		font-size: 34px;
	}
}

.log-ap-body {
	padding: 11px 12px 13px;
}

.log-ap-title-wrap {
	min-height: auto;
	margin-bottom: 5px;
}

.log-ap-parent {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--sage-700);
	margin-bottom: 3px;
}

.log-ap-name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink-900);
}

.log-ap-stars {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 7px;
}

.log-ap-stw {
	display: flex;
	gap: 1px;
}

.log-ap-stw span {
	font-size: 15px;
	color: var(--sage-600);
}

.log-ap-rev {
	font-size: 12px;
	color: var(--gray-600);
}

.log-ap-price-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 9px;
	flex-wrap: wrap;
}

.log-ap-price {
	font-family: var(--display);
	font-size: 22px;
	font-weight: 700;
	color: var(--plum-800);
	line-height: 1;
}

.log-ap-old {
	font-size: 11px;
	color: var(--gray-400);
	text-decoration: line-through;
}

.log-ap-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--ink-900);
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	padding: 9px;
	border-radius: var(--r-sm);
	transition: all .22s var(--ease);
}

.log-ap-tile:hover .log-ap-btn {
	background: var(--plum-700);
}

@media (max-width: 800px) {
	.log-ap-body {
		padding: 9px 10px 11px;
		text-align: center;
	}

	.log-ap-title-wrap {
		min-height: 42px;
	}

	.log-ap-name {
		font-size: 13px;
	}

	.log-ap-stars {
		justify-content: center;
	}

	.log-ap-stw span {
		font-size: 13px;
	}

	.log-ap-rev {
		font-size: 11px;
	}

	.log-ap-price-row {
		justify-content: center;
	}

	.log-ap-price {
		font-size: 18px;
	}

	.log-ap-btn {
		font-size: 10.5px;
		padding: 8px;
	}
}

/* ---- reveal (matches sitewide .reveal base rule, see design-tokens.css) ---- */
.log-ap-tile.reveal {
	transform: translateY(14px);
}

.log-ap-tile.reveal.in {
	transform: translateY(0);
}

/* ---- load more ---- */
.log-ap-loadmore-wrap {
	display: flex;
	justify-content: center;
	padding: 10px 48px 50px;
}

@media (max-width: 800px) {
	.log-ap-loadmore-wrap {
		padding: 10px 16px 40px;
	}
}

.log-ap-loadmore {
	background: var(--white);
	border: 1.5px solid var(--line);
	color: var(--ink-900);
	font-size: 13px;
	font-weight: 700;
	padding: 12px 28px;
	border-radius: var(--r-pill);
	transition: all .22s var(--ease);
	cursor: pointer;
}

.log-ap-loadmore:hover {
	border-color: var(--plum-700);
	color: var(--plum-700);
}

.log-ap-loadmore:disabled {
	opacity: .5;
	cursor: default;
}

/* ---- empty state ---- */
.log-ap-empty-state {
	max-width: 1320px;
	margin: 0 auto;
	padding: 60px 20px;
	text-align: center;
	display: none;
}

.log-ap-empty-state.show {
	display: block;
}

.log-ap-empty-icon {
	font-size: 44px;
	margin-bottom: 12px;
}

.log-ap-empty-state h3 {
	font-family: var(--display);
	font-size: 22px;
	margin-bottom: 6px;
	color: var(--ink-900);
}

.log-ap-empty-state p {
	font-size: 13px;
	color: var(--gray-600);
}