/* Electro HUB — shop shelf + smart chips */
.eh-shop {
  padding: 1.25rem 0 3.75rem;
  color: #fff;
}

.eh-shop-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 1.15rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.45);
}
.eh-shop-crumbs a { color: rgba(255,255,255,0.62); }
.eh-shop-crumbs a:hover { color: #fff; }
.eh-shop-crumbs-sep { opacity: 0.5; }

.eh-shop-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}
.eh-shop-hero {
  flex: 1 1 18rem;
  max-width: 40rem;
  margin: 0;
}
.eh-shop-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(196,30,58,0.45);
  background: rgba(196,30,58,0.12);
  color: #ff8a80;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eh-shop-kicker::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #C41E3A;
}
/* Sticky filter — collapse height (not transform) so no empty gap */
.eh-shop-filters {
  position: sticky;
  top: 4.25rem;
  z-index: 40;
  overflow: hidden;
  max-height: 1400px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    max-height 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    margin-bottom 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.85s ease,
    border-color 0.85s ease;
}
.eh-shop-filters.is-collapsed {
  /* peek strip — layout height shrinks, cards move up */
  max-height: 58px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.55rem;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.eh-shop-filters.is-collapsed .eh-shop-chips,
.eh-shop-filters.is-collapsed .eh-shop-reset {
  opacity: 0.35;
}
@media (min-width: 900px) {
  .eh-shop-filters {
    top: 4.5rem;
  }
  .eh-shop-filters.is-collapsed {
    max-height: 62px;
  }
}

.eh-shop-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}
.eh-shop-lead {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 1.05rem;
  line-height: 1.5;
}
.eh-shop-top .eh-shop-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

/* Hide default Woo chrome */
.woocommerce-shop .woocommerce-result-count,
.woocommerce-shop .woocommerce-ordering,
.woocommerce-shop .woocommerce-products-header,
.woocommerce-shop .woocommerce-breadcrumb,
.tax-product_cat .woocommerce-result-count,
.tax-product_cat .woocommerce-ordering,
.tax-product_tag .woocommerce-result-count,
.tax-product_tag .woocommerce-ordering {
  display: none !important;
}

.eh-shop-filters {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1.05rem 1.15rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(165deg, #121212, #0a0a0a);
}
.eh-shop-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.eh-shop-filters-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.eh-shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.eh-shop-chips--primary .eh-chip {
  font-size: 0.95rem;
  padding: 0.55rem 1.05rem;
}

.eh-chip,
.eh-sort,
.eh-shop-reset {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: #141414;
  color: rgba(255,255,255,0.78);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.eh-chip--sm { font-size: 0.8rem; padding: 0.4rem 0.75rem; }
.eh-chip:hover,
.eh-sort:hover,
.eh-shop-reset:hover {
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.eh-chip.is-active {
  border-color: #C41E3A;
  color: #fff;
  background: rgba(196, 30, 58, 0.12);
  box-shadow: 0 0 0 1px rgba(196, 30, 58, 0.25);
}
.eh-sort.is-active {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  background: #1a1a1a;
}
.eh-shop-reset {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.48);
  font-size: 0.82rem;
  font-weight: 550;
  padding: 0.25rem 0.15rem;
}
.eh-shop-reset:hover { color: #fff; background: transparent; }

.eh-shop-count {
  margin: 0 0 1.15rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  font-weight: 500;
}

.eh-shop-entries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
  .eh-shop-entries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.eh-shop-entry {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  text-align: left;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #111;
  color: inherit;
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color 0.2s, transform 0.2s;
  min-height: 5.5rem;
}
.eh-shop-entry:hover {
  border-color: rgba(196, 30, 58, 0.55);
  transform: translateY(-2px);
}
.eh-shop-entry strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
}
.eh-shop-entry span {
  color: rgba(255,255,255,0.48);
  font-size: 0.88rem;
  line-height: 1.35;
}

/* Layout: optional thin aside + shelf */
.eh-shop-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.eh-shop-aside {
  display: none;
  padding: 1rem 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0c0c0c;
}
.eh-shop-aside-title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.eh-shop-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
}
.eh-shop-check input { accent-color: #C41E3A; }
.eh-shop-budget {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 1100px) {
  .eh-shop-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.5rem;
  }
  .eh-shop-aside { display: block; }
}

.eh-shop-shelf { min-width: 0; }

/* Fixed columns — one card stays one column (~360–400px), no black hole stretch */
.eh-shop ul.products,
.woocommerce-shop ul.products {
  display: grid !important;
  grid-template-columns: minmax(0, 400px) !important;
  gap: 1.35rem !important;
  justify-content: start;
  align-items: stretch;
  width: 100%;
}
@media (min-width: 700px) {
  .eh-shop ul.products,
  .woocommerce-shop ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1020px) {
  .eh-shop ul.products,
  .woocommerce-shop ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
.eh-shop ul.products > li.product,
.woocommerce-shop ul.products > li.product {
  height: 100%;
  max-width: 400px;
  width: 100% !important;
}
@media (min-width: 700px) {
  .eh-shop ul.products > li.product,
  .woocommerce-shop ul.products > li.product {
    max-width: none;
  }
}
.eh-shop ul.products > li.product[hidden] {
  display: none !important;
}

/* Card media: light photo + quiet hover tip / second angle */
.eh-shop .eh-product-media {
  position: relative;
  background: #f3f3f3;
  overflow: hidden;
}
.eh-shop .eh-product-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 1.35rem !important;
  background: #f3f3f3 !important;
  transition: opacity 0.35s ease, transform 0.45s ease;
}
.eh-shop .eh-product-img--alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.eh-shop .eh-product-media.has-second:hover .eh-product-img--main {
  opacity: 0;
}
.eh-shop .eh-product-media.has-second:hover .eh-product-img--alt {
  opacity: 1;
  transform: scale(1.02);
}
.eh-product-hover-tip {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.eh-shop .eh-product-media:hover .eh-product-hover-tip {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .eh-product-hover-tip { display: none; }
}

.eh-product-badge,
.eh-product-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.72);
  width: fit-content;
}

.eh-shop-empty {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.55);
  background: #0c0c0c;
}

.eh-shop-seo {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 46rem;
}
.eh-shop-seo h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em;
  color: #fff;
}
.eh-shop-seo p {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.98rem;
  line-height: 1.6;
}

body.woocommerce-shop,
body.woocommerce-shop .site-main,
body.woocommerce-shop .eh-woo-wrap {
  background: #000;
  color: #fff;
}
