/* E-GLOBE: levi sidebar + filtri v isti vrsti + kartice serij */

body.woocommerce .eglobe-shop-layout,
body.woocommerce .eglobe-subcategory-nav,
body.woocommerce .eglobe-shop-filters,
body.woocommerce .eglobe-series-grid {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

/* Skrij kartico kategorije z napačno sliko (Klimatske naprave 93) */
body.woocommerce li.product.product-category,
body.woocommerce .jet-woo-products-wrapper li.product-category,
body.woocommerce ul.products li.product-category {
  display: none !important;
}

body.woocommerce .eglobe-shop-layout {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas:
    "sidebar filters"
    "sidebar content";
  gap: 24px 28px !important;
  align-items: start !important;
  justify-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 40px !important;
  padding: 0 !important;
  box-sizing: border-box;
}

body.woocommerce .eglobe-subcategory-nav {
  grid-area: sidebar;
}

body.woocommerce .eglobe-shop-filters {
  grid-area: filters;
}

body.woocommerce .eglobe-shop-main {
  grid-area: content;
  min-width: 0;
}

body.woocommerce .elementor-6609 .elementor-element-5d51deb7,
body.woocommerce .elementor-6609 .elementor-element-5d51deb7 > .e-con-inner,
body.woocommerce .jet-woo-products-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

body.woocommerce .eglobe-subcategory-nav {
  display: block !important;
  width: 100% !important;
  max-width: 300px !important;
  margin: 0 !important;
  padding: 22px 20px !important;
  background: #fff !important;
  border: 1px solid #e4e4e4 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box;
}

.eglobe-sidebar-title {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e8930a;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #141414;
  line-height: 1.25;
}

body.woocommerce .eglobe-subcategory-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}

body.woocommerce .eglobe-subcategory-link {
  display: block !important;
  padding: 13px 16px !important;
  border-radius: 8px !important;
  background: #f7f7f7 !important;
  color: #141414 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  transition: background 0.15s ease, color 0.15s ease;
}

body.woocommerce .eglobe-subcategory-link:hover,
body.woocommerce .eglobe-subcategory-link.is-active {
  background: #e8930a !important;
  color: #141414 !important;
}

.eglobe-subcategory-link .count {
  opacity: 0.75;
  font-weight: 600;
  font-size: 15px;
}

.eglobe-subcategory-all {
  font-weight: 700 !important;
}

.eglobe-shop-filters {
  margin: 0;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.eglobe-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: flex-end;
}

.eglobe-shop-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
}

.eglobe-shop-filters select {
  min-width: 140px;
  max-width: 220px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #141414;
  cursor: pointer;
}

.eglobe-shop-filters select:focus {
  outline: 2px solid #e8930a;
  outline-offset: 1px;
}

.eglobe-shop-filters select option[disabled] {
  display: none;
}

.eglobe-filter-reset {
  margin-top: 14px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: #141414;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.eglobe-filter-reset:hover {
  background: #e8930a;
  color: #141414;
}

.eglobe-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0;
}

.eglobe-series-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.eglobe-series-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.eglobe-series-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.eglobe-series-image img[src=""],
.eglobe-series-image:not(:has(img[src]:not([src=""]))) {
  display: none;
}

.eglobe-series-title {
  margin: 12px 18px 6px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: #141414;
}

.eglobe-series-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 18px 0;
}

.eglobe-series-badge,
.eglobe-type-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eglobe-series-badge {
  background: #141414;
  color: #fff;
}

.eglobe-type-badge {
  background: #fff7ea;
  color: #8a5a00;
  border: 1px solid #f0d9a8;
}

.eglobe-brand-heading {
  grid-column: 1 / -1;
  margin: 8px 0 4px;
  padding: 14px 0 10px;
  border-bottom: 3px solid #e8930a;
  font-size: 26px;
  font-weight: 800;
  color: #141414;
  line-height: 1.2;
}

.eglobe-brand-heading:first-child {
  margin-top: 0;
}

.eglobe-series-brand {
  margin: 0 18px 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.eglobe-power-list {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
}

.eglobe-power-link {
  display: block;
  padding: 14px 18px;
  border-top: 1px solid #f0f0f0;
  color: #141414;
  text-decoration: none;
  transition: background 0.15s ease;
}

.eglobe-power-link:hover {
  background: #fff7ea;
  color: #141414;
}

.eglobe-power-kw {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: #e8930a;
  margin-top: 4px;
}

.eglobe-power-units {
  display: block;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  color: #141414;
  word-break: break-word;
}

.eglobe-power-model {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #555;
}

.eglobe-power-price {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 700;
}

.eglobe-power-price .woocommerce-Price-amount {
  font-size: inherit;
}

.eglobe-attr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 10px;
}

.eglobe-attr-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #444;
}

.eglobe-attr-label {
  font-weight: 800;
  color: #666;
}

.eglobe-original-products {
  display: none !important;
}

@media (max-width: 991px) {
  body.woocommerce .eglobe-shop-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "filters"
      "content";
    gap: 16px !important;
  }

  body.woocommerce .eglobe-subcategory-nav {
    max-width: 100% !important;
  }

  body.woocommerce .eglobe-subcategory-list {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  body.woocommerce .eglobe-subcategory-link {
    display: inline-block !important;
  }
}

@media (max-width: 767px) {
  .eglobe-shop-filters select {
    min-width: 130px;
    max-width: 100%;
  }
}
