.products-container {
    --ribbon-spacing: var(--ribbon-spacing, 34px);
}

.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 39.5px;
}

.products .product {
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
	padding-bottom: 5px;
	border-radius: 4px;
	transition: 0.3s ease-in-out;
}

.products .product:hover {
	box-shadow: 0px 0px 10px #00000066;
	border-radius: 4px;
}

.product:focus,
.product:active {
	box-shadow: none;
}

.product-content{
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
}

.product-image {
	position: relative;
	/* height: 375px; */
	width: 100%;
	aspect-ratio: 297 / 414;
}

.product-image img:not(.blinds-product-archive-sample-image) {
	width: 100%;
	height: 100%;
	transition: transform 0.3s ease;
}

.sale-badge {
	position: absolute;
	padding: 0 auto;
	font-size: 24px;
	font-weight: 500;
	border-radius: 50%;
	line-height: 0.8;
	width: 70px;
	height: 70px;
	box-shadow: 0px 0px 6px #0000009c;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.sale-badge::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 78px;
	height: 78px;
	border: 2px solid #544672;
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.blinds-product-template-favorites {
	position: absolute;
	top: 7px;
	left: 7px;
}

.product-details {
	text-align: center;
	font-size: 20px;
	font-weight: 500;
}

.product-title {
	font-size: 20px;
	font-weight: 500;
	text-align: center;
	margin-top: 15px;
	margin-bottom: 5px;
	color: #161615;
	line-height: 22px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2; /* number of lines to show */
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.product-price {
	font-size: 18px;
	font-weight: bold;
	color: #2c3e50;
}

.sale-price {
	font-weight: bold;
}

.currency-symbol {
	margin-right: -7px;
}

.product-archive-starting-from {
	display: flex;
	justify-content: center;
	gap: 7px;
	font-size: 30px;
	line-height: 30px;
	color: #6a5d87;
	font-weight: 600;
	margin-top: 5px;
}

.product-archive-starting-from p {
	position: relative;
	z-index: 2;
}

.product-archive-starting-from div {
	position: relative;
}
.blinds-archive-underline-svg {
	position: absolute;
	right: 0;
	bottom: 17px;
	width: 100%;
	height: 9px;
	fill: #a995c4;
	z-index: 1;
}

.blinds-product-archive-buttons {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 20px;
	padding-top: 5px;
}

.blinds-product-archive-button {
	border-radius: 99px;
	color: white;
	border: 2px solid;
	font-size: 18px;
	font-weight: 500;
	width: 100%;
	margin: 0px;
	padding: 4px;
	height: 40px !important;
}


.blinds-product-archive-button.blinds-sample-button {
	transition: none !important;
	background: white;
}

.blinds-product-archive-button.blinds-sample-button:hover {
	background: linear-gradient(to right, rgba(66, 102, 174, 1), rgba(2, 45, 130, 1));
	border: none;
	color: white;
	padding: 6px;
}

.blinds-product-archive-button.blinds-sample-button.in-cart {
	background: linear-gradient(to right, rgba(66, 102, 174, 1), rgba(2, 45, 130, 1)) !important;
	color: white !important;
	border: none;
	padding: 6px;
}

.blinds-product-archive-button.blinds-order-blind-button {
	border: 0px;
}

.blinds-product-archive-button.blinds-order-blind-button svg {
	margin-bottom: -2px;
	margin-right: 6px;
}

.blinds-product-archive-ribbon-banner-body {
	padding: 3px 16px 3px 26px;
	clip-path: polygon(0 0, 100% 0%, 100% 99%, 10% 100%);
	box-shadow: 0 2px 4px #00000066;
}

.blinds-product-archive-ribbon-banner-bottom {
	width: 4px;
	height: 4px;
	background-color: #183d7a;
	clip-path: polygon(0 0, 100% 0%, 50% 50%, 0 100%);
	margin-top: -0.4px;
}

.blinds-product-archive-ribbon-banner-wrapper {
    position: absolute;
    right: -25px;
    z-index: 3;
    bottom: calc(15px + var(--badge-index, 0) * var(--ribbon-spacing, 34px));
}


.blinds-product-archive-sample-image {
	position: absolute;
	aspect-ratio: 1;
	z-index: 3;
}


.blinds-product-archive-button.blinds-order-blind-button.full-width {
	width: 100%;
	padding: 5px !important;
}

.products-container{
	width: 100vw;
	max-width: 100%;
}

.loading-indicator{
	display: flex;
	justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.products-container {
        --ribbon-spacing: var(--ribbon-spacing-mobile, 34px);
    }

	.products {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 15px;
		padding: 0 25px 25px 25px;
	}

	.product:hover {
		box-shadow: none;
		border-radius: 4px;
	}

	.product-price {
		font-size: 16px;
	}

	.product-image {
		width: 100%;
	}

	.product-link {
		height: auto !important;
	}

	.blinds-product-archive-ribbon-banner-wrapper {
        bottom: calc(15px + var(--badge-index) * var(--ribbon-spacing, 34px)) !important;
    }

	.blinds-product-archive-button.blinds-sample-button {
        background: white !important;
        color: #4266AE !important;
        border: 2px solid #4266AE !important;
    }

	.blinds-product-archive-button.blinds-sample-button.in-cart {
        background: linear-gradient(to right, rgba(66, 102, 174, 1), rgba(2, 45, 130, 1));
        color: white;
        border: none !important;
    }
}