/* Product browsing, category navigation, and SEO content. */
.eshop-catalog .prod-breadcrumb {
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--eshop-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
  color: var(--eshop-muted);
}

.eshop-catalog .prod-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
}

.eshop-catalog .prod-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.eshop-catalog .prod-breadcrumb li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-top: 1.5px solid var(--eshop-muted);
  border-right: 1.5px solid var(--eshop-muted);
  transform: rotate(45deg);
  opacity: .6;
}

.eshop-catalog .prod-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 7px;
  color: inherit;
  overflow-wrap: anywhere;
  transition: color .15s ease, background-color .15s ease;
}

.eshop-catalog .prod-breadcrumb a:is(:hover, :focus-visible) {
  color: var(--eshop-ink);
  background: var(--eshop-main-color-light);
}

.eshop-catalog .prod-breadcrumb a:focus-visible {
  outline: 2px solid var(--eshop-main-color-hover);
  outline-offset: 2px;
}

.eshop-catalog .prod-breadcrumb [aria-current="page"] {
  padding: 5px 8px;
  color: var(--eshop-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 575px) {
  .eshop-catalog .prod-breadcrumb {
    margin-top: 18px;
    padding: 6px 8px;
  }

  .eshop-catalog .prod-breadcrumb ol {
    font-size: 13px;
    gap: 3px 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eshop-catalog .prod-breadcrumb a {
    transition: none;
  }
}

.eshop-catalog .shop-product-area {
  padding: 36px 0 56px !important;
}

.eshop-catalog .category-menu {
  padding-top: 0;
  padding-right: 24px;
}

.eshop-catalog .shop-sidebar {
  padding: 16px;
  border: 1px solid var(--eshop-border);
  border-radius: 12px;
  background: var(--eshop-main-color-light);
}

.eshop-catalog .accordian-btn {
  background: transparent;
  padding: 14px 0;
  height: auto;
}

.eshop-catalog .shop-sidebar [data-control],
.eshop-catalog .shop-sidebar [data-content] > article {
  border: 0;
  border-bottom: 1px solid var(--eshop-border);
  box-shadow: none;
}

.eshop-catalog .accordian-btn a {
  color: var(--eshop-ink);
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
}

.eshop-catalog .shop-category a {
  overflow-wrap: anywhere;
}

.eshop-catalog .eshop-catalog-grid {
  row-gap: 24px;
}

.eshop-catalog-cell {
  display: flex;
}

.eshop-catalog-empty {
  padding: 40px 16px;
  color: var(--eshop-muted);
}

.eshop-catalog-pagination {
  margin-top: 32px;
}

.eshop-catalog .seo-top-content {
  padding: 8px 0 0;
  color: var(--eshop-muted);
  line-height: 1.8;
}

.eshop-catalog .seo-bottom-section {
  padding: 48px 0;
  background: var(--eshop-main-color-light);
  border-top: 1px solid var(--eshop-border);
}

.eshop-catalog .seo-bottom-title {
  display: block;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
}

.eshop-catalog .seo-bottom-content {
  max-width: 880px;
  margin: auto;
  text-align: left;
  line-height: 1.85;
  color: var(--eshop-ink);
}

.eshop-catalog .seo-bottom-content :is(ul, ol) {
  list-style: revert;
  padding-left: 24px;
}

.eshop-catalog :is(.seo-bottom-content, .seo-top-content) img {
  max-width: 100%;
  height: auto;
}

.eshop-catalog .seo-bottom-content a {
  color: var(--eshop-ink);
  text-decoration: underline;
}

@media (max-width: 991px) {
  .eshop-catalog .category-menu {
    padding-right: 12px;
    margin-bottom: 24px;
  }

  .eshop-catalog .shop-sidebar {
    max-height: none;
  }
}

@media (max-width: 575px) {
  .eshop-catalog .eshop-catalog-grid {
    margin-left: -6px;
    margin-right: -6px;
    row-gap: 12px;
  }

  .eshop-catalog-cell {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* Sticky category rail and selected-category emphasis. */
.eshop-catalog .shop-category a.fw-bold {
  color: var(--eshop-ink);
}

.eshop-catalog .accordian-btn:hover a {
  color: var(--eshop-ink);
}

.eshop-catalog .eshop-catalog-empty img {
  opacity: .85;
  max-width: 320px;
}

.eshop-catalog .eshop-catalog-empty p {
  font-size: 15px;
  margin-bottom: 16px;
}

/* Keep the arrow aligned while the scrollbar toggles as submenus expand. */
.eshop-catalog .shop-sidebar {
  scrollbar-gutter: stable;
}

@media (min-width: 992px) {
  .eshop-catalog .shop-sidebar.fix {
    position: sticky;
    top: calc(var(--eshop-header-bottom, 160px) + 16px);
    max-height: calc(100vh - var(--eshop-header-bottom, 160px) - 72px);
    overflow-y: auto;
  }
}

/* Animate the expand/collapse arrow while keeping it aligned. */
.eshop-catalog [data-accordion] > [data-control] {
  position: relative;
}

.eshop-catalog [data-accordion] > [data-control]:after {
  top: 50%;
  transform: translateY(-50%);
  transition: transform .25s ease;
}

.eshop-catalog [data-accordion].open > [data-control]:after {
  transform: translateY(-50%) rotate(-180deg);
}

/* Nested category links (leaves only): highlight and slide right on hover.
   The shift uses transform, so the surrounding rows never reflow. */
.eshop-catalog [data-content] article > a {
  padding: 6px 0;
  border-radius: 6px;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.eshop-catalog [data-content] article > a:hover {
  background: var(--eshop-main-color-light);
  color: var(--eshop-ink);
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .eshop-catalog [data-accordion] > [data-control]:after,
  .eshop-catalog [data-content] article > a {
    transition: none;
  }

  .eshop-catalog [data-content] article > a:hover {
    transform: none;
  }
}
