/*
 Theme Name: Astra Child
 Theme URI: https://1001tmunot.co.il/
 Description: Child theme for Astra
 Author: 1001 תמונות
 Template: astra
 Version: 1.0.0
 Text Domain: astra-child
*/

/* כאן אפשר להכניס התאמות CSS אם יש */
.woocommerce div.product .product_meta{
	display: none;
}

html,
body{
  width:100%;
  overflow-x:hidden;
}

.woocommerce-breadcrumb{
	display:none;
}

.single-product-category{
	margin-top: 20px;
    text-align: right; /* או 'left' אם אתה רוצה לשנות מימין לשמאל */
}

/* יישור לימין ותמיכה בעברית בדפי קטגוריית פוסטים */
body.category .ast-archive-description {
  text-align: right !important;
  direction: rtl !important;
}

/* יישור לימין ותמיכה בעברית בתיבת מחבר בדף author */
body.author .ast-author-box,
body.author .ast-author-box .ast-author-bio {
  text-align: right !important;
  direction: rtl !important;
}

.elementskit-navbar-nav .elementskit-submenu-panel {
    width: 50vw !important;
    max-width: 80vw !important;
	margin: 0 auto !important;
	margin-left: 1vw !important; /* זה ייתן דחיפה קטנה ימינה */
    padding: 20px;
    box-sizing: border-box;
    z-index: 9999;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-evenly; /* מחלק עמודות בצורה אחידה */
}

.elementskit-navbar-nav .elementskit-submenu-panel li {
    width: 50%; /* או 20% תלוי כמה עמודות תרצה */
    margin: 0;
    padding: 5px;
    box-sizing: border-box;
    list-style: none;
}

/* גריד רספונסיבי נקי */
.tag-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
}

/* נטרול עטיפות שוורדפרס/אלמנטור מוסיפים סביב הילדים */
.tag-grid > p,
.tag-grid > div { display: contents; }

.tag-card{
  display:flex; flex-direction:column;
  text-decoration:none; color:inherit;
  border:1px solid #eee; border-radius:12px; overflow:hidden; background:#fff;
  transition:transform .15s ease, box-shadow .15s ease;
}
.tag-card:hover{ transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.08); }
.tag-card__media{ position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; background:#f5f5f5; }
.tag-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.tag-card__title{ padding:10px 12px; font-weight:600; text-align:center; }

@media (max-width: 767px){
  /* הפוך את המכולה לגריד עם 2 עמודות בוודאות */
  .elementor .elementor-widget-shortcode .tag-grid{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
    width: 100%;
  }
  /* בטל עטיפות שמייצרות "שורה שלמה דולקת" */
  .elementor .elementor-widget-shortcode .tag-grid > *{ display: contents !important; }
  .elementor .elementor-widget-shortcode .tag-grid p{ display: contents !important; }
}

body {
  font-size: 20px !important;
}