/*
Theme Name: Kadence Child
Theme URI: https://yourwebsite.com/kadence-child/
Description: Kadence Child Theme
Author: Your Name
Author URI: https://yourwebsite.com
Template: kadence
Version: 1.0.0
*/

/* רקע לבדיקה */
body {
  background-color: #fff;
  font-family: "Segoe UI", sans-serif;
  direction: rtl;
}

.catalog-main-title {
  background-color: #215387; /* כחול */
  color: white;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  padding: 5px 5px;
  margin: 0 0 20px 0;
  font-family: "Segoe UI", sans-serif;
  user-select: none;
}

/* עיצוב עמוד הקטלוג הכללי */
.catalog-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* כותרת עמוד */
.catalog-header {
  font-size: 24px;
  font-weight: bold;
  padding: 5px 5px;
  color: #215387;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ccc;
  text-align: right;
}

/* בר תתי קטגוריות */
.subcategory-bar {
  background-color: #f0f0f0;
  padding: 5px 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.catalog-subtitle {
  background-color: #215387;
  color: white;
  font-size: 28px; /* קטן מהכותרת הראשית */
  font-weight: 600;
  text-align: center;
  padding: 5px 5px;
  margin-bottom: 10px;
  font-family: "Segoe UI", sans-serif;
  border-bottom: 2px solid #183f6b; /* פס תחתון דומה */
  user-select: none;
}



.subcategory-bar a {
  color: #215387;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.subcategory-bar a:hover {
  background-color: #e0e0e0;
}

/* חלוקה בין תפריט צד לתוכן */
.catalog-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex: 1;
  overflow: hidden;
  padding: 20px;
}

/* תפריט צד */
.catalog-sidebar {
  width: 250px;
  overflow-y: auto;
  background-color: #fff;
  border-left: 1px solid #ccc;
  padding-left: 10px;
  z-index: 1000;
}

.catalog-sidebar ul.main-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.catalog-sidebar ul.main-categories > li {
  position: relative;
  margin-bottom: 10px;
}

.catalog-sidebar ul.main-categories > li > a {
  color: #215387;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: block;
  padding: 5px 8px;
  cursor: pointer;
  transition: text-decoration 0.3s ease;
}

.catalog-sidebar ul.main-categories > li.has-children:hover > a {
  text-decoration: underline;
}

/* תתי קטגוריות */
.catalog-sidebar ul.child-categories {
  display: none;
  position: absolute;
  top: 100%;
  right: 15px;
  width: 250px;
  background-color: #fff;
  border: 1px solid #ccc;
  padding-left: 10px;
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 9999;
  margin: 0;
}

.catalog-sidebar ul.child-categories > li {
  margin-bottom: 8px;
}

.catalog-sidebar ul.child-categories li a {
  color: #215387;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: block;
  padding: 5px 8px;
  cursor: pointer;
  transition: text-decoration 0.3s ease;
}

.catalog-sidebar ul.child-categories li a:hover {
  text-decoration: underline;
}

/* הצגת תתי קטגוריות בריחוף */
.catalog-sidebar ul.main-categories > li.has-children:hover > ul.child-categories {
  display: block;
}

/* תוכן ראשי */
.catalog-main {
  flex: 1;
  overflow-y: auto;
}

/* גריד מוצרים */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* מוצר בודד */
.product-item {
  background-color: #fff;
  text-align: center;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.product-item:hover {
  transform: scale(1.02);
}

.product-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 10px;
}

.product-item h3 {
  font-size: 16px;
  color: #333;
  margin: 0;
}

.all-products-link {
  display: block;
  background-color: #215387;
  color: #ffffff !important;
  font-weight: 700;
  text-align: center;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.all-products-link:hover {
  background-color: #183f6a;
  color: #ffffff !important;
}


