/* Designer Frames DEV premium WooCommerce archive cards. */
body.df-product-cards-v2 ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 26px !important;
	align-items: stretch;
}

body.df-product-cards-v2 ul.products li.product {
	position: relative;
	display: flex !important;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	padding: 24px 22px 20px !important;
	background: #fff;
	border: 1px solid #e1e3e6;
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(18, 27, 34, 0.08);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.df-product-cards-v2 ul.products li.product:hover,
body.df-product-cards-v2 ul.products li.product:focus-within {
	border-color: #ed7d1b;
	box-shadow: 0 16px 36px rgba(18, 27, 34, 0.12);
	transform: translateY(-2px);
}

body.df-product-cards-v2 ul.products li.product > .woocommerce-loop-product__title {
	order: 1;
	min-height: 52px;
	margin: 0 !important;
	font-size: clamp(18px, 1.35vw, 22px) !important;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

body.df-product-cards-v2 ul.products li.product > .woocommerce-loop-product__title a {
	color: #15191d;
	text-decoration: none;
}

body.df-product-cards-v2 ul.products li.product > .woocommerce-loop-product__title a:hover,
body.df-product-cards-v2 ul.products li.product > .woocommerce-loop-product__title a:focus-visible {
	color: #d96809;
}

body.df-product-cards-v2 ul.products li.product > .df-product-code {
	order: 2;
	min-height: 22px;
	margin: 6px 0 0;
	color: #626970;
	font-size: 13px;
	line-height: 1.35;
}

body.df-product-cards-v2 .df-product-code span {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.035em;
}

body.df-product-cards-v2 ul.products li.product > figure {
	order: 3;
	width: 100%;
	margin: 18px 0 20px !important;
}

body.df-product-cards-v2 ul.products li.product .ct-media-container,
body.df-product-cards-v2 ul.products li.product-category .ct-media-container {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1 !important;
	overflow: hidden;
	background: #f7f7f5;
	border: 1px solid #ecece8;
	border-radius: 12px;
}

body.df-product-cards-v2 ul.products li.product .ct-media-container img,
body.df-product-cards-v2 ul.products li.product-category .ct-media-container img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: contain !important;
	object-position: center !important;
	transition: transform 220ms ease;
}

body.df-product-cards-v2 ul.products li.product .ct-media-container:hover img,
body.df-product-cards-v2 ul.products li.product .ct-media-container:focus-visible img {
	transform: scale(1.025);
}

body.df-product-cards-v2 ul.products li.product > .entry-meta,
body.df-product-cards-v2 ul.products li.product > .ct-woo-card-actions {
	display: none !important;
}

body.df-product-cards-v2 ul.products li.product > .price {
	order: 4;
}

body.df-product-cards-v2 ul.products li.product > .df-card-purchase {
	order: 5;
	margin-top: auto;
}

body.df-product-cards-v2 .df-card-purchase {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

body.df-product-cards-v2 .df-card-purchase form.cart {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 116px;
	gap: 0 12px;
	align-items: end;
	width: 100%;
	margin: 0 !important;
}

body.df-product-cards-v2 .df-card-purchase table.variations,
body.df-product-cards-v2 .df-card-purchase .df-simple-size {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	margin: 0 !important;
	border: 0;
}

body.df-product-cards-v2 .df-card-purchase table.variations,
body.df-product-cards-v2 .df-card-purchase table.variations tbody,
body.df-product-cards-v2 .df-card-purchase table.variations tr,
body.df-product-cards-v2 .df-card-purchase table.variations th,
body.df-product-cards-v2 .df-card-purchase table.variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
}

body.df-product-cards-v2 .df-card-purchase table.variations tr + tr {
	margin-top: 10px;
}

body.df-product-cards-v2 .df-field-label,
body.df-product-cards-v2 .df-card-purchase table.variations th.label label {
	display: block;
	margin: 0 0 7px;
	color: #5f666d;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.055em;
}

body.df-product-cards-v2 .df-card-purchase table.variations td.value {
	position: relative;
}

body.df-product-cards-v2 .df-card-purchase table.variations select,
body.df-product-cards-v2 .df-static-option {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 38px 0 13px;
	color: #1a2025;
	font-size: 14px;
	line-height: 1.2;
	background-color: #fff;
	border: 1px solid #d8dce0;
	border-radius: 7px;
}

body.df-product-cards-v2 .df-card-purchase table.variations select:hover,
body.df-product-cards-v2 .df-card-purchase table.variations select:focus {
	border-color: #ed7d1b;
	box-shadow: 0 0 0 3px rgba(237, 125, 27, 0.13);
}

body.df-product-cards-v2 .df-static-option {
	padding-right: 13px;
	color: #6c7379;
	background: #f7f8f8;
}

body.df-product-cards-v2 .df-card-purchase .reset_variations {
	position: absolute;
	right: 3px;
	top: -22px;
	color: #737a80;
	font-size: 11px;
	text-decoration: underline;
}

body.df-product-cards-v2 .df-card-purchase .single_variation_wrap,
body.df-product-cards-v2 .df-card-purchase .woocommerce-variation-add-to-cart,
body.df-product-cards-v2 .df-card-purchase .ct-cart-actions {
	display: contents !important;
}

body.df-product-cards-v2 .df-card-purchase .woocommerce-variation.single_variation {
	grid-column: 1 / -1;
	min-height: 0;
	margin: 0;
	font-size: 12px;
}

body.df-product-cards-v2 .df-card-purchase .woocommerce-variation-price,
body.df-product-cards-v2 .df-card-purchase .woocommerce-variation-description:empty,
body.df-product-cards-v2 .df-card-purchase .woocommerce-variation-availability:empty {
	display: none !important;
}

body.df-product-cards-v2 .df-qty-field {
	grid-column: 2;
	grid-row: 1;
	width: 116px;
}

body.df-product-cards-v2 .df-card-purchase .quantity {
	display: grid !important;
	grid-template-columns: 36px 44px 36px;
	grid-template-rows: 42px;
	width: 116px !important;
	height: 44px;
	margin: 0 !important;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d8dce0;
	border-radius: 7px;
}

body.df-product-cards-v2 .df-card-purchase .quantity .ct-decrease,
body.df-product-cards-v2 .df-card-purchase .quantity .ct-increase {
	position: static !important;
	display: grid !important;
	place-items: center;
	width: 36px !important;
	height: 42px !important;
	color: #3e454b;
	background: #fff !important;
	border: 0 !important;
	cursor: pointer;
	user-select: none;
}

body.df-product-cards-v2 .df-card-purchase .quantity .ct-decrease {
	grid-column: 1;
	grid-row: 1;
	border-right: 1px solid #e0e3e5 !important;
}

body.df-product-cards-v2 .df-card-purchase .quantity .ct-increase {
	grid-column: 3;
	grid-row: 1;
	border-left: 1px solid #e0e3e5 !important;
}

body.df-product-cards-v2 .df-card-purchase .quantity .ct-decrease::before,
body.df-product-cards-v2 .df-card-purchase .quantity .ct-increase::before {
	display: block !important;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
}

body.df-product-cards-v2 .df-card-purchase .quantity .ct-decrease::before {
	content: '−' !important;
}

body.df-product-cards-v2 .df-card-purchase .quantity .ct-increase::before {
	content: '+' !important;
}

body.df-product-cards-v2 .df-card-purchase .quantity input.qty {
	grid-column: 2;
	grid-row: 1;
	width: 44px !important;
	min-width: 44px !important;
	height: 42px !important;
	padding: 0 !important;
	text-align: center;
	background: #fff;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	-moz-appearance: textfield;
}

body.df-product-cards-v2 .df-card-purchase .quantity input.qty::-webkit-outer-spin-button,
body.df-product-cards-v2 .df-card-purchase .quantity input.qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

body.df-product-cards-v2 .df-card-price {
	grid-column: 1 / -1;
	margin: 16px 0 0 !important;
	padding-top: 15px;
	color: #15191d !important;
	font-size: 23px !important;
	font-weight: 750 !important;
	line-height: 1.2;
	border-top: 1px dashed #d6dade;
}

body.df-product-cards-v2 .df-card-price .price {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

body.df-product-cards-v2 .df-line-total {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: -2px;
	padding: 9px 11px;
	border: 1px solid rgba(241, 102, 20, 0.18);
	border-radius: 6px;
	background: #fff8f3;
	color: #4a4a4a;
}

body.df-product-cards-v2 .df-line-total[hidden] {
	display: none !important;
}

body.df-product-cards-v2 .df-line-total-equation {
	font-size: 12px;
	line-height: 1.35;
}

body.df-product-cards-v2 .df-line-total strong {
	color: #1d1d1d;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

body.df-product-cards-v2 .df-card-button-row {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	gap: 10px;
	margin-top: 16px;
}

body.df-product-cards-v2 .df-card-button-row .single_add_to_cart_button,
body.df-product-cards-v2 .df-more-details {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 48px;
	margin: 0 !important;
	padding: 11px 13px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.1;
	text-align: center;
	text-decoration: none !important;
	border-radius: 7px !important;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.df-product-cards-v2 .df-card-button-row .single_add_to_cart_button {
	color: #fff !important;
	background: #ed7410 !important;
	border: 1px solid #ed7410 !important;
}

body.df-product-cards-v2 .df-card-button-row .single_add_to_cart_button:hover,
body.df-product-cards-v2 .df-card-button-row .single_add_to_cart_button:focus-visible {
	background: #d96100 !important;
	border-color: #d96100 !important;
}

body.df-product-cards-v2 .df-card-button-row .single_add_to_cart_button.disabled {
	opacity: 0.48;
	cursor: not-allowed;
}

body.df-product-cards-v2 .df-card-button-row .single_add_to_cart_button.added {
	background: #29714d !important;
	border-color: #29714d !important;
}

body.df-product-cards-v2 .df-more-details {
	gap: 7px;
	color: #20252a !important;
	background: #fff;
	border: 1px solid #ed7410;
}

body.df-product-cards-v2 .df-more-details:hover,
body.df-product-cards-v2 .df-more-details:focus-visible {
	color: #c75600 !important;
	background: #fff7f0;
	border-color: #d96100;
}

body.df-product-cards-v2 .df-more-details.df-details-only {
	width: 100%;
	margin-top: 14px !important;
}

body.df-product-cards-v2 .df-cart-status {
	display: block;
	min-height: 16px;
	margin-top: 7px;
	color: #52615a;
	font-size: 11px;
	line-height: 1.35;
}

body.df-product-cards-v2 .df-card-purchase :focus-visible {
	outline: 3px solid rgba(237, 116, 16, 0.32);
	outline-offset: 2px;
}

/* Keep category titles clean; category imagery remains available for navigation cards. */
.tax-product_cat .hero-section[data-type='type-2'] {
	background: #f1f3f5;
}

.tax-product_cat .hero-section[data-type='type-2'] > figure {
	display: none;
}

@media (max-width: 1099px) {
	body.df-product-cards-v2 ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 22px !important;
	}
}

@media (max-width: 689px) {
	body.df-product-cards-v2 ul.products {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 20px !important;
	}

	body.df-product-cards-v2 ul.products li.product {
		padding: 20px 18px 18px !important;
		border-radius: 14px;
	}

	body.df-product-cards-v2 ul.products li.product > .woocommerce-loop-product__title {
		min-height: 0;
		font-size: 20px !important;
	}

	body.df-product-cards-v2 ul.products li.product > .df-product-code {
		min-height: 0;
	}

	body.df-product-cards-v2 ul.products li.product .ct-media-container,
	body.df-product-cards-v2 ul.products li.product-category .ct-media-container {
		border-radius: 10px;
	}

	body.df-product-cards-v2 .df-card-purchase form.cart {
		grid-template-columns: minmax(0, 1fr) 116px;
	}
}

@media (max-width: 380px) {
	body.df-product-cards-v2 .df-card-button-row {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.df-product-cards-v2 ul.products li.product,
	body.df-product-cards-v2 ul.products li.product .ct-media-container img {
		transition: none;
	}

	body.df-product-cards-v2 ul.products li.product:hover,
	body.df-product-cards-v2 ul.products li.product:focus-within {
		transform: none;
	}
}
