/**
 * DAS WooCommerce product archives.
 * Scope every rule to Shop, Product Category, and Product Tag pages only.
 */

.das-woo-product-archive .woocommerce-result-count {
	float: left;
	margin: 0;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	color: #5f6878;
}

.das-woo-product-archive .das-empty-product-archive-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	margin: 0 0 30px;
}

.das-woo-product-archive .das-empty-product-archive-toolbar .woocommerce-result-count,
.das-woo-product-archive .das-empty-product-archive-toolbar .das-shop-controls {
	float: none;
	margin: 0;
}

.das-woo-product-archive .das-shop-controls {
	float: right;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin: 0 0 30px;
}

.das-woo-product-archive .das-product-search {
	position: relative;
	width: min(260px, 32vw);
	margin: 0;
}

.das-woo-product-archive .das-product-search .dashicons-search {
	position: absolute;
	top: 50%;
	left: 18px;
	z-index: 1;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	font-size: 18px;
	line-height: 1;
	color: #8a93a3;
	pointer-events: none;
}

.das-woo-product-archive .das-product-search input[type="search"] {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 18px 0 48px;
	border: 1px solid #dfe3ea;
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: #13234a;
	font: inherit;
	font-size: 14px;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.das-woo-product-archive .das-product-search input[type="search"]::placeholder {
	color: #858d9c;
	opacity: 1;
}

.das-woo-product-archive .das-product-search input[type="search"]:focus {
	border-color: #092c74;
	box-shadow: 0 0 0 3px rgba(9, 44, 116, 0.12);
}

.das-woo-product-archive .das-shop-sort {
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}

.das-woo-product-archive .das-shop-sort-label {
	color: #4e596b;
	font-size: 14px;
	font-weight: 600;
}

.das-woo-product-archive .das-shop-sort .woocommerce-ordering {
	float: none;
	margin: 0;
}

.das-woo-product-archive .das-shop-sort .woocommerce-ordering select {
	min-width: 180px;
	height: 44px;
	margin: 0;
	padding: 0 42px 0 18px;
	border: 1px solid #dfe3ea;
	border-radius: 999px;
	background-color: #fff;
	color: #092c74;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	outline: none;
}

.das-woo-product-archive .das-shop-sort .woocommerce-ordering select:focus {
	border-color: #092c74;
	box-shadow: 0 0 0 3px rgba(9, 44, 116, 0.12);
}

.das-woo-product-archive .woocommerce ul.products,
.das-woo-product-archive.woocommerce ul.products,
.das-woo-product-archive .elementor-widget-woocommerce-products ul.products {
	clear: both;
}

.das-woo-product-archive .woocommerce ul.products li.product,
.das-woo-product-archive.woocommerce ul.products li.product,
.das-woo-product-archive .elementor-widget-woocommerce-products ul.products li.product {
	display: flex;
	flex-direction: column;
	
	background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
    justify-content: space-between;
}
.das-woo-product-archive .woocommerce ul.products li.product:hover,
.das-woo-product-archive.woocommerce ul.products li.product:hover,
.das-woo-product-archive .elementor-widget-woocommerce-products ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.das-woo-product-archive .das-product-category {
	display: block;
	font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #a1a1aa;
    padding-left: 20px;
    padding-right: 20px;
    font-family: var(--font-sans);
}

.das-woo-product-archive .woocommerce ul.products li.product .woocommerce-loop-product__title,
.das-woo-product-archive.woocommerce ul.products li.product .woocommerce-loop-product__title,
.das-woo-product-archive .elementor-widget-woocommerce-products ul.products li.product .woocommerce-loop-product__title {
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 800;
}

.das-woo-product-archive .das-product-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.das-woo-product-archive .das-product-card-price {
	min-width: 0;
}

.das-woo-product-archive .das-product-card-price .price {
	display: block !important;
    margin-bottom: 0 !important;
    color: #d9003f !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}

.das-woo-product-archive .das-product-card-price .price del {
	font-size: 0.75em;
	opacity: 0.58;
}

.das-woo-product-archive .das-product-card-action {
	flex: 0 0 auto;
}

.das-woo-product-archive .das-product-card-action .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 40px;
	margin: 0;
	margin-top: 0 !important;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: #072564;
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	transition: background-color 160ms ease, transform 160ms ease;
}

.das-woo-product-archive .das-product-card-action .added_to_cart {
    display: none !important;
}

.das-woo-product-archive .das-product-card-action .button.product_type_simple::before {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2.5 3h2.2l1.9 11.1a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2L21.5 7H6' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Ccircle cx='9' cy='20' r='1.4' fill='%23fff'%3E%3C/circle%3E%3Ccircle cx='17.5' cy='20' r='1.4' fill='%23fff'%3E%3C/circle%3E%3C/svg%3E");
}

.das-woo-product-archive .das-product-card-action .button:hover,
.das-woo-product-archive .das-product-card-action .button:focus-visible {
	background: #061f54;
	color: #fff;
	transform: translateY(-1px);
}

.das-woo-product-archive .das-product-card-action .button:focus-visible {
	outline: 3px solid rgba(9, 44, 116, 0.22);
	outline-offset: 2px;
}

@media (max-width: 767px) {
    .das-woo-product-archive .das-empty-product-archive-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
		margin-bottom: 24px;
	}
	
	.das-woo-product-archive .woocommerce-result-count {
		float: none;
		display: flex;
		min-height: 0;
		margin: 0 0 14px;
	}

	.das-woo-product-archive .das-shop-controls {
		float: none;
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
		width: 100%;
		margin-bottom: 24px;
	}

	.das-woo-product-archive .das-product-search {
		width: 100%;
	}

	.das-woo-product-archive .das-shop-sort {
		justify-content: space-between;
		width: 100%;
	}

	.das-woo-product-archive .das-shop-sort .woocommerce-ordering {
		flex: 1;
	}

	.das-woo-product-archive .das-shop-sort .woocommerce-ordering select {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 420px) {
	.das-woo-product-archive .das-product-card-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.das-woo-product-archive .das-product-card-action,
	.das-woo-product-archive .das-product-card-action .button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.das-woo-product-archive .das-product-search input[type="search"],
	.das-woo-product-archive .das-product-card-action .button {
		transition: none;
	}
}
