.rabbit-product-grid,
.rabbit-product-grid * {
	box-sizing: border-box;
}

.rabbit-product-grid {
	--rpg-cols: 6;
	--rpg-gap: 16px;
	--rpg-active: #111111;
	width: 100%;
	max-width: 100%;
	color: #161616;
}

.rpg-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 22px;
}

.rpg-filter {
	position: relative;
}

.rpg-chip,
.rpg-menu-item,
.rpg-page {
	appearance: none;
	font: inherit;
	cursor: pointer;
}

.rpg-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 8px 16px;
	border: 1px solid #d8d2c8;
	border-radius: 999px;
	background: #fff;
	color: #161616;
	line-height: 1.2;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.rpg-chip:hover,
.rpg-chip[aria-expanded="true"] {
	border-color: #111;
}

.rpg-filter.is-on .rpg-chip,
.rpg-chip-solo.is-on {
	background: var(--rpg-active);
	border-color: var(--rpg-active);
	color: #fff;
}

.rpg-chip-caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
}

.rpg-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 20;
	min-width: 220px;
	max-height: 320px;
	overflow: auto;
	padding: 8px;
	border: 1px solid #ece7df;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.rpg-menu-item {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #161616;
	text-align: left;
}

.rpg-menu-item:hover,
.rpg-menu-item.is-on {
	background: #f4f0ea;
}

.rpg-grid-wrap {
	position: relative;
}

.rabbit-product-grid.is-loading .rpg-grid-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.55);
}

.rpg-grid {
	display: grid;
	grid-template-columns: repeat(var(--rpg-cols, 6), minmax(0, 1fr));
	gap: var(--rpg-gap, 16px);
}

.rpg-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 28px 12px;
	text-align: center;
	color: #5c5c5c;
}

.rpg-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: 100%;
	padding: 8px 8px 12px;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
}

.rpg-photo {
	display: block;
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #fff;
	text-decoration: none;
}

.rpg-img,
.rabbit-product-grid img.rpg-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.rpg-name,
.rpg-price,
.rpg-btn,
.rpg-name:hover,
.rpg-price:hover {
	text-decoration: none;
}

.rpg-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.4em;
	margin: 10px 0 6px;
	color: #161616;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
}

.rpg-price {
	display: block;
	margin: 0 0 10px;
	color: #111;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.rpg-price del {
	margin-right: 6px;
	opacity: 0.55;
	font-size: 0.74em;
	font-weight: 600;
}

.rpg-price ins {
	text-decoration: none;
}

.rabbit-product-grid .rpg-btn,
.rabbit-product-grid a.rpg-btn.button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: auto;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid #111;
	border-radius: 8px;
	background: #111;
	color: #fff;
	box-shadow: none;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	transition: opacity 160ms ease;
}

.rabbit-product-grid .rpg-btn:hover,
.rabbit-product-grid .rpg-btn:focus,
.rabbit-product-grid a.rpg-btn.button:hover,
.rabbit-product-grid a.rpg-btn.button:focus {
	color: #fff;
	opacity: 0.92;
}

.rpg-btn.added {
	opacity: 0.78;
}

.rpg-card .added_to_cart {
	display: block;
	margin-top: 8px;
	color: #111;
	font-size: 0.86rem;
	font-weight: 600;
	text-align: center;
	text-decoration: underline;
}

.rpg-pager {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 28px 0 0;
}

.rpg-pager-status {
	margin: 0;
	color: #4a4a4a;
	font-size: 0.95rem;
	font-weight: 600;
}

.rpg-pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.rpg-page {
	min-width: 40px;
	min-height: 40px;
	padding: 0 10px;
	border: 1px solid #d8d2c8;
	border-radius: 10px;
	background: #fff;
	color: #161616;
}

.rpg-page:hover:not(:disabled) {
	border-color: #111;
}

.rpg-page.is-current {
	background: var(--rpg-active);
	border-color: var(--rpg-active);
	color: #fff;
}

.rpg-page:disabled {
	cursor: default;
	opacity: 0.4;
}

.rpg-page-gap {
	display: inline-flex;
	align-items: center;
	min-width: 20px;
	color: #8a8a8a;
}

.rabbit-product-grid.rpg-archive {
	--rpg-cols: 4;
	margin: 8px 0 24px;
}

@media (max-width: 1024px) {
	.rabbit-product-grid.rpg-archive {
		--rpg-cols: 3;
	}
}

@media (max-width: 767px) {
	.rabbit-product-grid.rpg-archive {
		--rpg-cols: 2;
	}

	.rpg-toolbar {
		gap: 8px;
	}

	.rpg-chip {
		min-height: 38px;
		padding: 7px 12px;
	}

	.rpg-menu {
		right: 0;
		min-width: min(260px, 80vw);
	}
}
