.danshar-product-grid > li:has(> .danshar-product-tile),
.danshar-commerce .wc-block-product-template > li:has(> .danshar-product-tile) {
	display: flex;
	align-items: stretch;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	min-inline-size: 0;
}

.danshar-product-tile {
	--tile-gutter: clamp(8px, 6cqi, 18px);
	position: relative;
	isolation: isolate;
	container-type: inline-size;
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr auto auto;
	inline-size: 100%;
	min-inline-size: 0;
	overflow: hidden;
	border: 1px solid #efedf3;
	border-radius: clamp(12px, 1.65vw, 23px);
	background: #fff;
	box-shadow: 0 4px 16px rgb(28 28 65 / 9%);
	color: var(--danshar-ink);
	text-align: center;
}

.danshar-tile-photo {
	display: grid;
	place-items: center;
	padding: clamp(19px, 8cqi, 32px) var(--tile-gutter) 0;
}

.danshar-tile-photo img {
	display: block;
	inline-size: min(100%, 250px);
	block-size: auto;
	aspect-ratio: 1.26;
	object-fit: contain;
}

.danshar-product-tile .danshar-favorite:not([hidden]) {
	inset-block-start: 7px;
	inset-inline: auto 7px;
	inline-size: clamp(29px, 16cqi, 43px);
	block-size: auto;
	aspect-ratio: 1;
	border: 1px solid #dcdce7;
	box-shadow: 0 2px 6px rgb(20 20 50 / 8%);
}

.danshar-product-tile .danshar-favorite svg { inline-size: 58%; block-size: auto; }
.danshar-product-tile > .danshar-discount {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	z-index: 1;
	border-radius: 999px;
	font-size: clamp(.64rem, 5cqi, .82rem);
}

.danshar-tile-details {
	position: relative;
	z-index: 0;
	padding: clamp(6px, 4cqi, 12px) var(--tile-gutter);
	background: linear-gradient(#fcecf3, #fff 94%);
}

.danshar-tile-details::before {
	position: absolute;
	inset: -7px -4% auto;
	z-index: -1;
	block-size: 14px;
	border-radius: 48% 56% 0 0;
	background: #fcecf3;
	transform: rotate(-2deg);
	content: '';
}

.danshar-tile-details h3 {
	margin: 0;
	font-size: clamp(.83rem, 6.7cqi, 1.16rem);
	font-weight: 850;
	line-height: 1.2;
	min-block-size: 2lh;
	overflow-wrap: anywhere;
}

.danshar-tile-details a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	max-block-size: 2lh;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.danshar-tile-details a:hover { color: var(--danshar-pink-hover); }

.danshar-tile-details p {
	margin: 3px 0 0;
	overflow: hidden;
	color: #5f6679;
	font-size: clamp(.74rem, 5.8cqi, .96rem);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.danshar-tile-price {
	margin-inline: var(--tile-gutter);
	padding-block: clamp(5px, 4cqi, 10px);
	border-block-start: 1px solid #e2e1ea;
	font-size: clamp(1rem, 8.7cqi, 1.55rem);
	font-weight: 900;
	line-height: 1.24;
}

.danshar-tile-price:empty { display: none; }
.danshar-tile-price del { color: #555d70; font-size: .72em; font-weight: 500; }
.danshar-tile-price ins { color: var(--danshar-pink-hover); text-decoration: none; }

:is(.danshar-product-grid, .wc-block-product-template) .danshar-product-tile > .danshar-product-action {
	display: flex;
	flex-direction: column;
	grid-area: auto;
	inline-size: auto;
	margin: 2px var(--tile-gutter) var(--tile-gutter);
}

.danshar-product-tile > .danshar-product-action a.button[class] {
	inline-size: 100%;
	min-block-size: 44px;
	padding: 5px 4px;
	border-radius: 999px;
	background: linear-gradient(#ed0069, #cb0057);
	color: #fff;
	font-size: clamp(.74rem, 5.9cqi, 1rem);
	font-weight: 800;
	gap: 4px;
}

.danshar-product-tile .danshar-product-action a.button:hover { background: var(--danshar-pink-hover); }
.danshar-product-tile .danshar-product-action .add_to_cart_button::before { inline-size: 1.15em; block-size: 1.15em; }

@media (600px <= width <= 782px) {
	.danshar-home .danshar-product-grid,
	.danshar-commerce .danshar-catalog-layout .danshar-catalog-results .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
