/* One shared banner: desktop rail and inline mobile catalog placements. */
.catalog-helper-rail { display: none; }
.catalog-helper-inline { display: none; }

.catalog-helper {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg, 20px);
  background: var(--card);
  color: var(--text);
}

.catalog-helper__copy { padding: 36px 20px 0; }
.catalog-helper__close {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.catalog-helper__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.catalog-helper__close:hover { color: var(--text); }
.catalog-helper__close:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -4px; }
[data-catalog-helper-dismissed] .catalog-helper-rail,
[data-catalog-helper-dismissed] .catalog-helper-inline { display: none; }
.catalog-helper__title {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
}
.catalog-helper__description {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.catalog-helper .catalog-helper__cta {
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--accent-bright);
  border-radius: var(--r-pill);
  background: var(--accent-bright);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.catalog-helper__cta svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.catalog-helper .catalog-helper__cta:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.catalog-helper__cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
.catalog-helper__art { margin-top: 20px; }
.catalog-helper__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

@media (min-width: 1001px) {
  .catalog-premium.catalog-premium--with-helper {
    width: min(1760px, calc(100vw - 48px));
  }
  .catalog-premium--with-helper .catalog-premium__layout {
    grid-template-columns: 220px minmax(0, 1fr) 248px;
    gap: 28px;
  }
  .catalog-helper-rail {
    position: sticky;
    top: calc(var(--storefront-header-offset, 0px) + var(--storefront-header-height, 112px) + 20px);
    display: block;
    min-width: 0;
    align-self: start;
  }
}

@media (min-width: 1001px) and (max-width: 1279px) {
  .catalog-premium--with-helper .catalog-premium__layout {
    grid-template-columns: 180px minmax(0, 1fr) 200px;
    gap: 20px;
  }
  body.woocommerce .catalog-premium--with-helper .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-helper__copy { padding: 36px 16px 0; }
  .catalog-helper__title { font-size: 22px; }
}

@media (max-width: 1000px) {
  .catalog-premium--with-helper .woocommerce ul.products { grid-auto-rows: auto; }
  .catalog-premium--with-helper ul.products > .catalog-helper-inline {
    display: block;
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    margin: 12px 0;
    padding: 0;
    list-style: none;
  }
  .catalog-helper-inline .catalog-helper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36%;
    align-items: stretch;
  }
  .catalog-helper-inline .catalog-helper__copy { padding: 20px 16px; }
  .catalog-helper-inline .catalog-helper__title { font-size: 22px; }
  .catalog-helper-inline .catalog-helper__description { margin: 10px 0 14px; font-size: 13px; }
  .catalog-helper-inline .catalog-helper__cta { gap: 6px; padding: 11px 12px; }
  .catalog-helper-inline .catalog-helper__art { display: flex; margin: 0; align-items: center; background: var(--bg); }
  .catalog-helper-inline .catalog-helper__art img { height: 100%; object-fit: contain; }
  .catalog-helper-fallback { display: block; margin: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-helper .catalog-helper__cta { transition: none; }
}
