/* Product card styles (moved from woocommerce/content-product.php, where they were printed once per card). */
.dehome-product-card {
	list-style: none;
	align-self: flex-start;
	margin-bottom: 0 !important;
	position: relative;
	z-index: 0;
}

.dehome-product-card:has(.dehome-product-card__swatches:hover) {
	z-index: 10;
}

.dehome-product-card__inner {
	background: transparent;
	overflow: visible;
	display: flex;
	flex-direction: column;
	/*height: 603px;*/
	position: relative;
	cursor: pointer;
	gap: 8px;
}

	.dehome-product-card__media {
		background: #f6f2ea;
		padding: 0;
		position: relative;
		width: 100%;
		height: 450px;
		flex: 0 0 450px;
		overflow: hidden;
		z-index: 1;
	}

.dehome-product-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.dehome-product-card__inner:hover:not(:has(.dehome-product-card__swatches:hover)) .dehome-product-card__image {
	transform: scale(1.02);
}

.dehome-product-card__badges {
	position: absolute;
	top: 10px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	z-index: 2;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.dehome-product-card__badges {
		gap: 6px;
	}
}

.dehome-product-card__badge-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: #1a1a1a;
}

.dehome-product-card__badge-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #111;
	display: inline-block;
	flex-shrink: 0;
}

.dehome-product-card__badge-item--new .dehome-product-card__badge-dot {
	background: #23b26b;
}

.dehome-product-card__badge-item--last .dehome-product-card__badge-dot {
	background: #e53935;
}

.dehome-product-card__badge-item--backorder .dehome-product-card__badge-dot {
	background: #f6c343;
}

	.dehome-product-card__footer {
		background: transparent;
		color: #000;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		/*height: 153px;*/
		/*padding: 12px 18px;*/
		box-sizing: border-box;
		position: relative;
		z-index: 2;
		overflow: visible;
	}

	.dehome-product-card__top {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 16px;
		overflow: visible;
	}

.dehome-product-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	flex: 1;
}

.dehome-product-card__title {
	margin: 0 !important;
	font-size: 16px;
	font-weight: 500;
	line-height: 150%;
	color: #000;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dehome-product-card__title-link {
	color: inherit;
	text-decoration: none !important;
}

.dehome-product-card__category {
	font-size: 14px;
	line-height: 150%;
	font-weight: 400;
	color: #808080;
}

	.dehome-product-card__price-row {
		margin-top: 12px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

.dehome-product-card__price {
	margin-top: 0;
	font-size: 16px;
	line-height: 150%;
	font-weight: 600;
	color: #000;
}

	.dehome-product-card__label {
		background: transparent;
		border-radius: 0;
		border: 1px solid #e8e8e8;
		padding: 4px 10px;
		font-size: 12px;
		line-height: 150%;
		font-weight: 500;
		color: #565656;
		white-space: nowrap;
		flex-shrink: 0;
	}

	/* Label rendered below the color swatches: push it to the bottom of the
	   full-height variations column so it lines up with the price row. */
	.dehome-product-card__label--below {
		margin-top: auto;
		text-align: right;
	}

	.dehome-product-card__variations {
		margin: 0;
		flex-shrink: 0;
		margin-left: auto;
		position: relative;
		z-index: 3;
		overflow: visible;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		justify-content: space-between;
		align-self: stretch;
		gap: 8px;
	}

	.dehome-product-card__swatches {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		min-height: 24px;
		position: relative;
		z-index: 3;
		overflow: visible;
	}

.dehome-product-card__swatches select {
	background: transparent;
	color: #1a1a1a;
	border: 1px solid rgba(26, 26, 26, 0.4);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12px;
}

	.dehome-product-card__swatches .variable-items-wrapper {
		display: flex;
		align-items: center;
		gap: 6px;
		flex-wrap: nowrap;
		justify-content: flex-end;
		list-style: none;
		padding: 0;
		margin: 0 !important;
		/*max-width: 140px;*/
		position: relative;
		z-index: 3;
		overflow: visible;
	}

	.dehome-product-card__swatches [data-wvstooltip] {
		position: relative;
		z-index: 4;
	}

	.dehome-product-card__swatches [data-wvstooltip]::before,
	.dehome-product-card__swatches [data-wvstooltip]::after {
		z-index: 99999 !important;
	}

.dehome-product-card__swatches .variable-item {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid rgba(26, 26, 26, 0.35);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dehome-product-card__swatches .variable-item.selected,
.dehome-product-card__swatches .variable-item:hover {
	border-color: #1a1a1a;
}

.dehome-product-card__swatches .variable-item-span {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	display: block;
}

.dehome-product-card__mobile-atc {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 40px;
	border-radius: 10px;
	border: 1px solid #949494;
	background: transparent;
	color: #000;
	font-size: 16px;
	line-height: 150%;
	font-weight: 500;
	cursor: pointer;
	opacity: 0;
	max-height: 40px;
	margin-top: 24px;
	padding: 10px 16px;
	pointer-events: none;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.dehome-product-card__mobile-atc.loading,
.dehome-product-card__mobile-atc:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.dehome-product-card__inner:hover .dehome-product-card__mobile-atc {
	opacity: 1;
	pointer-events: auto;
}

.dehome-product-card__mobile-atc:hover {
	background: #000;
	color: #fff;
}

.dehome-product-card__media-link{
        	position:absolute;
        	inset:0;
        	display:block;
        }
            
        /* ============================
   Align side-by-side inputs
   ============================ */

/* Make each column a 2-row grid: label (fixed min height) + control */
.checkout-form-section .delivery-information .roket-form-row--2col .form-group,
.checkout-form-section .delivery-information .roket-form-row--2col p.form-row {
  display: grid !important;
  grid-template-rows: minmax(22px, auto) auto;
  align-content: start;
}

/* Normalize label styling so both take same vertical space */
.checkout-form-section .delivery-information .roket-form-row--2col label {
  margin: 0 0 10px 0 !important;
  line-height: 1.2 !important;
  min-height: 22px;              /* key: equalize label row */
  display: block !important;
}

/* If a label wraps (like VAT one), keep it to max 2 lines without breaking alignment */
.checkout-form-section .delivery-information .roket-form-row--2col label {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ensure wrapper/control always starts on the second grid row */
.checkout-form-section .delivery-information .roket-form-row--2col .woocommerce-input-wrapper,
.checkout-form-section .delivery-information .roket-form-row--2col input,
.checkout-form-section .delivery-information .roket-form-row--2col select,
.checkout-form-section .delivery-information .roket-form-row--2col textarea {
  align-self: start;
}

/* Optional: if your inputs have different heights due to theme rules, hard-normalize */
.checkout-form-section .delivery-information .roket-form-row--2col input[type="text"],
.checkout-form-section .delivery-information .roket-form-row--2col input[type="email"],
.checkout-form-section .delivery-information .roket-form-row--2col input[type="tel"],
.checkout-form-section .delivery-information .roket-form-row--2col select {
  height: 56px !important;
}
@media (max-width: 1024px) {
	.dehome-product-card__media {
		padding: 0;
		height: 214px;
		flex-basis: 214px;
	}

	/*.dehome-product-card__footer {*/
	/*	height: 168px;*/
	/*	padding: 12px 16px;*/
	/*}*/

	.dehome-product-card__title {
		font-size: 14px;
	}

	/*.dehome-product-card__inner {*/
	/*	height: 382px;*/
	/*}*/

	.dehome-product-card__mobile-atc {
		opacity: 1;
		max-height: 40px;
		margin-top: auto;
		pointer-events: auto;
		width: max-content;
		font-size: 14px;
	}
	.dehome-product-card__price-row {
	    margin-bottom: 14px;
	}
	.dehome-product-card__price {
	    font-size: 14px;
	}
	.dehome-product-card__label {
	    font-size: 11px;
	    padding: 3px 8px;
	}
	.dehome-product-card__category {
	    font-size: 12px;
	}
}
