/* ------------------------------
== קטגוריות מוצרים – product-category ==
------------------------------ */
ul.products li.product-category {
	position: relative;
	overflow: hidden;
}
ul.products li.product-category h2.woocommerce-loop-category__title {
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 40px;
	background: rgba(255,255,255,0.9);
	color: #000;
	padding: 15px;
	text-align: center;
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
	z-index: 10;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
ul.products li.product-category h2 mark.count,
.woocommerce-loop-category__title .count {
	display: none !important;
}

/* ------------------------------
== אלמנטור – עיצוב פנימי בלבד ==
------------------------------ */
.elementor ul.products {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
.elementor ul.products li.product {
	flex: 1 1 calc(24% - 30px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

/* ------------------------------
== Cross-sell (סל קניות) ==
------------------------------*/
.cross-sells .astra-shop-summary-wrap {
	min-height: unset !important;
	margin-top: 0 !important;
	padding: 0 !important;
}

.cross-sells ul.products {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cross-sells ul.products li.product {
	width: calc(23% - 10px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: right !important;
	direction: rtl;
}

/* יישור טקסטים פנימיים */
.cross-sells ul.products li.product .woocommerce-loop-product__title,
.cross-sells ul.products li.product .price,
.cross-sells ul.products li.product .button {
	text-align: right;
}

/* יישור הכפתור עצמו */
.cross-sells ul.products li.product .button {
	margin-inline-start: auto !important;
	margin-inline-end: 0 !important;
	display: inline-block !important;
}

/* הקטנת תמונה */
.cross-sells .astra-shop-thumbnail-wrap img {
	max-width: 180px;
	height: auto;
	margin: 0 auto 15px;
	display: block;
}

/* רספונסיביות כללית */
@media screen and (max-width: 1024px) {
	.cross-sells ul.products li.product {
		width: calc(23% - 10px);
		float: right;
	}
}

@media screen and (max-width: 780px) {
	.cross-sells ul.products li.product,
	.elementor ul.products li.product {
		flex: 1 1 calc(45% - 10px) !important;
	}
	
}

/* ------------------------------
== עיצוב כללי למוצרים ==
------------------------------ */
ul.products li.product {
	font-family: "Assistant", sans-serif !important;
}
ul.products li.product .woocommerce-loop-product__title {
	color: #808285 !important;
	text-align: right !important;
	font-size: 17px;
	height: 50px;
}
ul.products li.product .price {
	color: #000000 !important;
	font-weight: 700 !important;
	text-align: right !important;
	font-size: 15px;
}
ul.products li.product .onsale,
.ast-onsale-card {
	background-color: #000000 !important;
	color: #ffffff !important;
}
li.product.outofstock::after {
	content: "אזל מהמלאי";
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #ff4d4f;
	color: white;
	padding: 5px 10px;
	font-size: 0.9em;
	font-weight: bold;
	border-radius: 5px;
	z-index: 10;
}
li.product.outofstock .onsale {
	display: none !important;
}
.product .star-rating {
	display: none !important;
}

/* ------------------------------
== טפסים ושדות checkout וכו'
------------------------------ */
label[for="order_comments"] {
	background-color: #ffffff !important;
	display: block;
	margin-right: 2px;
}

#billing_phone::placeholder {
	text-align: right !important;
	direction: rtl !important;
}
.ast-logged-in-customer-info,{
	display: none !important;
}

/* reCAPTCHA */
.grecaptcha-badge {
	visibility: hidden !important;
}

/*הערות משלוח*/
#shipping_note_field textarea {
    min-height: 6em !important; /* או 4em אם את רוצה קצת פחות */
    height: auto;
    resize: vertical;
}
