/* Lukasik category list card v1.0.5.
 * Scope: category page, list view, tablet and desktop only.
 */

#content .category-page .lk-list-stock {
	display: none;
}

/* Final contract: every tablet/desktop list card keeps the reference 3-zone layout. */
@media (min-width: 768px) {
	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .caption {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) clamp(150px, 24vw, 220px) !important;
		grid-template-rows: auto auto auto 1fr !important;
		column-gap: clamp(12px, 3vw, 50px) !important;
		row-gap: 9px !important;
	}

	html body #content#content .category-page > .product-list .caption > .product-manufactured {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	html body #content#content .category-page > .product-list .product-name {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	html body #content#content .category-page > .product-list .lk-list-stock {
		grid-column: 1 !important;
		grid-row: 3 !important;
	}

	html body #content#content .category-page > .product-list .lk-category-options {
		grid-column: 1 !important;
		grid-row: 4 !important;
		align-self: center !important;
	}

	html body #content#content .category-page > .product-list .price.lk-listing-price {
		grid-column: 2 !important;
		grid-row: 1 / span 2 !important;
		align-items: center !important;
		text-align: center !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box {
		display: grid !important;
		grid-column: 2 !important;
		grid-row: 3 / span 2 !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-rows: 48px 48px !important;
		align-self: center !important;
		gap: 8px !important;
		width: 100% !important;
		height: auto !important;
		overflow: visible !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart,
	html body #content#content .category-page > .product-list .price-actions-box > .wishlist {
		display: block !important;
		grid-column: 1 !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		height: 48px !important;
		margin: 0 !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart {
		grid-row: 1 !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .wishlist {
		grid-row: 2 !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart .btn,
	html body #content#content .category-page > .product-list .price-actions-box > .wishlist .btn {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		height: 48px !important;
		min-height: 48px !important;
		max-height: 48px !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .wishlist .btn i {
		display: inline-block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}

@media (min-width: 768px) {
	html body #content#content .category-page > .product-layout.product-list {
		grid-column: 1 / -1 !important;
		width: 100% !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card {
		display: grid !important;
		grid-template-columns: clamp(210px, 29%, 300px) minmax(0, 1fr) !important;
		min-height: 330px !important;
		padding: 14px !important;
		overflow: hidden !important;
		background: #fff !important;
		border: 1px solid #ece7e3 !important;
		border-radius: 20px !important;
		box-shadow: none !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card:hover {
		border-color: #ead8ca !important;
		box-shadow: 0 8px 24px rgba(73, 48, 32, .06) !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .image {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		min-width: 0 !important;
		height: 100% !important;
		min-height: 300px !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		background: #f7f2f1 !important;
		border-radius: 14px !important;
		box-sizing: border-box !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .image > a {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		height: 100% !important;
		overflow: hidden !important;
		background: transparent !important;
		border-radius: inherit !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .image .img-responsive {
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		aspect-ratio: auto !important;
		object-fit: cover !important;
		object-position: center center !important;
		background: transparent !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .caption {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-rows: auto !important;
		align-content: center !important;
		gap: 10px !important;
		width: 100% !important;
		min-width: 0 !important;
		padding: 18px 18px 18px 28px !important;
		text-align: left !important;
		border: 0 !important;
		box-sizing: border-box !important;
	}

	html body #content#content .category-page > .product-list .caption > .product-manufactured {
		display: block !important;
		align-self: auto !important;
		margin: 0 !important;
		color: #7e7e7e !important;
		font-size: 13px !important;
		line-height: 18px !important;
		text-align: left !important;
	}

	html body #content#content .category-page > .product-list .product-name {
		display: block !important;
		align-self: auto !important;
		height: auto !important;
		max-height: 52px !important;
		margin: 0 !important;
		text-align: left !important;
	}

	html body #content#content .category-page > .product-list .product-name a {
		display: -webkit-box !important;
		overflow: hidden !important;
		color: #171717 !important;
		font-size: clamp(16px, 1.6vw, 20px) !important;
		font-weight: 600 !important;
		line-height: 1.3 !important;
		text-align: left !important;
		-webkit-box-orient: vertical !important;
		-webkit-line-clamp: 2 !important;
	}

	html body #content#content .category-page > .product-list .lk-list-stock {
		display: block !important;
		margin: 0 !important;
		color: #8a8a8a !important;
		font-size: 13px !important;
		line-height: 18px !important;
		text-align: left !important;
	}

	html body #content#content .category-page > .product-list .lk-list-stock[data-out-of-stock="true"] {
		color: #b36a54 !important;
	}

	html body #content#content .category-page > .product-list .caption > .rating,
	html body #content#content .category-page > .product-list .caption > .product_model_sstatus,
	html body #content#content .category-page > .product-list .caption > .info-product-reward,
	html body #content#content .category-page > .product-list .caption > .addit-action,
	html body #content#content .category-page > .product-list .caption > .product-description,
	html body #content#content .category-page > .product-list .caption > .pro_sticker_block {
		display: none !important;
	}

	html body #content#content .category-page > .product-list .price.lk-listing-price {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		justify-content: center !important;
		width: 100% !important;
		height: auto !important;
		min-height: 50px !important;
		margin: 0 !important;
		text-align: left !important;
	}

	html body #content#content .category-page > .product-list .price.lk-listing-price .price-old {
		order: 1 !important;
		margin: 0 0 3px !important;
		color: #969696 !important;
		font-size: 13px !important;
		line-height: 17px !important;
	}

	html body #content#content .category-page > .product-list .price.lk-listing-price > .price_value,
	html body #content#content .category-page > .product-list .price.lk-listing-price .price-new {
		order: 2 !important;
		color: #ef6c22 !important;
		font-size: clamp(22px, 2.25vw, 29px) !important;
		font-weight: 600 !important;
		line-height: 1.15 !important;
	}

	html body #content#content .category-page > .product-list .lk-category-options {
		display: flex !important;
		align-items: center !important;
		width: 100% !important;
		height: auto !important;
		min-height: 58px !important;
		max-height: none !important;
		margin: 0 !important;
		overflow: visible !important;
	}

	html body #content#content .category-page > .product-list .lk-category-options__values {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(58px, 82px)) !important;
		grid-auto-rows: 58px !important;
		gap: clamp(5px, .9vw, 12px) !important;
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	html body #content#content .category-page > .product-list .product-size.lk-category-option {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		min-width: 0 !important;
		height: 58px !important;
		min-height: 58px !important;
		max-height: 58px !important;
		padding: 4px 3px !important;
		background: #fff !important;
		border: 1px solid #dedede !important;
		border-radius: 7px !important;
		box-sizing: border-box !important;
	}

	html body #content#content .category-page > .product-list .product-size.lk-category-option:nth-child(n+6) {
		display: none !important;
	}

	html body #content#content .category-page > .product-list .lk-category-option__primary {
		font-size: 14px !important;
		font-weight: 500 !important;
		line-height: 18px !important;
	}

	html body #content#content .category-page > .product-list .lk-category-option__secondary {
		margin-top: 2px !important;
		color: #4f4f4f !important;
		font-size: 11px !important;
		line-height: 14px !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box {
		display: grid !important;
		grid-template-columns: minmax(120px, 1fr) 52px !important;
		align-items: stretch !important;
		gap: 8px !important;
		width: 100% !important;
		height: auto !important;
		min-height: 104px !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .price,
	html body #content#content .category-page > .product-list .price-actions-box > .quantity_plus_minus {
		display: none !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart {
		display: block !important;
		position: static !important;
		grid-column: 1 !important;
		width: 100% !important;
		min-width: 120px !important;
		max-width: none !important;
		height: 48px !important;
		margin: 0 !important;
		inset: auto !important;
		transform: none !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .wishlist {
		display: block !important;
		position: static !important;
		grid-column: 2 !important;
		width: 52px !important;
		min-width: 52px !important;
		max-width: 52px !important;
		height: 48px !important;
		margin: 0 !important;
		inset: auto !important;
		transform: none !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart .btn,
	html body #content#content .category-page > .product-list .price-actions-box > .wishlist .btn {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		height: 48px !important;
		min-height: 48px !important;
		max-height: 48px !important;
		margin: 0 !important;
		padding: 0 14px !important;
		border-radius: 8px !important;
		box-shadow: none !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart .btn {
		color: #fff !important;
		background: #f26b21 !important;
		border: 1px solid #f26b21 !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .wishlist .btn {
		color: #e96b28 !important;
		background: #fff !important;
		border: 1px solid #e9a67e !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart .text-cart-add {
		display: inline !important;
		overflow: visible !important;
		font-size: 15px !important;
		font-weight: 500 !important;
		line-height: 1 !important;
		text-overflow: clip !important;
		white-space: nowrap !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart i {
		display: none !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .wishlist i {
		margin: 0 !important;
		color: currentColor !important;
		font-size: 21px !important;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	html body #content#content .category-page > .product-list > .lk-unified-listing-card {
		grid-template-columns: clamp(190px, 31%, 240px) minmax(0, 1fr) !important;
		min-height: 290px !important;
		padding: 10px !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .image {
		min-height: 270px !important;
		padding: 0 !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .image .img-responsive {
		max-height: none !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .caption {
		gap: 7px !important;
		padding: 12px 10px 12px 18px !important;
	}

	html body #content#content .category-page > .product-list .product-size.lk-category-option {
		height: 50px !important;
		min-height: 50px !important;
		max-height: 50px !important;
	}

	html body #content#content .category-page > .product-list .lk-category-option__primary {
		font-size: 12px !important;
	}

	html body #content#content .category-page > .product-list .lk-category-option__secondary {
		font-size: 9px !important;
	}
}

@container lk-category-content (max-width: 719px) {
	html body #content#content .category-page > .product-list > .lk-unified-listing-card {
		grid-template-columns: clamp(180px, 31%, 220px) minmax(0, 1fr) !important;
		min-height: 290px !important;
		padding: 10px !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .image {
		min-height: 270px !important;
		padding: 0 !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .image .img-responsive {
		max-height: none !important;
	}

	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .caption {
		gap: 7px !important;
		padding: 12px 10px 12px 18px !important;
	}
}

@media (min-width: 1200px) {
	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .caption {
		grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px) !important;
		grid-template-rows: auto auto auto 1fr !important;
		column-gap: clamp(22px, 4vw, 58px) !important;
		row-gap: 9px !important;
	}

	html body #content#content .category-page > .product-list .caption > .product-manufactured {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	html body #content#content .category-page > .product-list .product-name {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	html body #content#content .category-page > .product-list .lk-list-stock {
		grid-column: 1 !important;
		grid-row: 3 !important;
	}

	html body #content#content .category-page > .product-list .lk-category-options {
		grid-column: 1 !important;
		grid-row: 4 !important;
		align-self: center !important;
	}

	html body #content#content .category-page > .product-list .price.lk-listing-price {
		grid-column: 2 !important;
		grid-row: 1 / span 2 !important;
		align-items: center !important;
		text-align: center !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box {
		grid-column: 2 !important;
		grid-row: 3 / span 2 !important;
		grid-template-columns: minmax(0, 1fr) !important;
		align-self: center !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart,
	html body #content#content .category-page > .product-list .price-actions-box > .wishlist {
		grid-column: 1 !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart {
		grid-row: 1 !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .wishlist {
		grid-row: 2 !important;
	}
}

/* Cascade lock: keep the reference columns and stacked actions after all legacy rules. */
@media (min-width: 768px) {
	html body #content#content .category-page > .product-list > .lk-unified-listing-card > .caption {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) clamp(150px, 24vw, 220px) !important;
		grid-template-rows: auto auto auto 1fr !important;
		column-gap: clamp(12px, 3vw, 50px) !important;
		row-gap: 9px !important;
	}

	html body #content#content .category-page > .product-list .caption > .product-manufactured {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	html body #content#content .category-page > .product-list .product-name {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	html body #content#content .category-page > .product-list .lk-list-stock {
		grid-column: 1 !important;
		grid-row: 3 !important;
	}

	html body #content#content .category-page > .product-list .lk-category-options {
		grid-column: 1 !important;
		grid-row: 4 !important;
		align-self: center !important;
	}

	html body #content#content .category-page > .product-list .price.lk-listing-price {
		grid-column: 2 !important;
		grid-row: 1 / span 2 !important;
		align-items: center !important;
		text-align: center !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box {
		display: grid !important;
		grid-column: 2 !important;
		grid-row: 3 / span 2 !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-rows: 48px 48px !important;
		align-self: center !important;
		gap: 8px !important;
		width: 100% !important;
		height: auto !important;
		overflow: visible !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart,
	html body #content#content .category-page > .product-list .price-actions-box > .wishlist {
		display: block !important;
		grid-column: 1 !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		height: 48px !important;
		margin: 0 !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart {
		grid-row: 1 !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .wishlist {
		grid-row: 2 !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .cart .btn,
	html body #content#content .category-page > .product-list .price-actions-box > .wishlist .btn {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		height: 48px !important;
		min-height: 48px !important;
		max-height: 48px !important;
	}

	html body #content#content .category-page > .product-list .price-actions-box > .wishlist .btn i {
		display: inline-block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}
