/* Shared site crumb bar (list / detail / legal) */

/* Sahibinden-style crumb bar */
.list-crumb-bar {
  position: relative;
  z-index: 45;
  margin: 0;
  background-color: #ffffff;
  background-repeat: repeat-x;
  -webkit-box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1), 0 0 4px 0 rgba(0, 0, 0, 0.06), 1px 0 2px 0 rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1), 0 0 4px 0 rgba(0, 0, 0, 0.06), 1px 0 2px 0 rgba(0, 0, 0, 0.08);
  overflow: visible;
}

body[data-page="list"] .site-header,
body[data-page="detail"] .site-header,
body[data-page="legal"] .site-header {
  border-bottom: none;
}

body[data-page="list"] .list-crumb-bar,
body[data-page="detail"] .list-crumb-bar,
body[data-page="legal"] .list-crumb-bar {
  margin-bottom: 0;
}

body[data-page="list"] .page-list,
body[data-page="detail"] .page-detail {
  padding-top: var(--space-2);
}

.breadcrumb .bc-current {
  display: inline-flex;
  align-items: center;
  max-width: 14em;
  padding: 0 4px;
  overflow: hidden;
  color: var(--ink);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-crumb-bar:has(.bc-has-menu:hover),
.list-crumb-bar:has(.bc-has-menu:focus-within),
.list-crumb-bar:has(.list-crumb-compare:focus-within) {
  z-index: 60;
}

.list-crumb-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  box-sizing: border-box;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  min-height: 34px;
  padding-block: 0;
}

.list-crumb {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  overflow: visible;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.35;
  font-family: Arial, Helvetica, sans-serif;
}

.breadcrumb > li {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.bc-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0 2px;
  color: #999;
  line-height: 1;
}

.bc-sep-icon {
  display: block;
}

.breadcrumb a {
  color: #039;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.breadcrumb > li > a {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0 4px;
}

.breadcrumb a:hover {
  color: #039;
  text-decoration: underline;
}

.breadcrumb a.bc-truncate {
  display: inline-flex;
  max-width: 11.5em;
}

.breadcrumb a.bc-truncate > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hover dropdown — trigger + menü bitişik sekme */
.bc-has-menu {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.bc-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  margin: 0;
  padding: 0 6px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
}

.bc-caret {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
  color: #999;
  pointer-events: none;
}

.bc-caret-right,
.bc-caret-down {
  display: block;
}

.bc-caret-down {
  display: none;
}

.bc-has-menu:hover > .bc-trigger .bc-caret-right,
.bc-has-menu:focus-within > .bc-trigger .bc-caret-right {
  display: none;
}

.bc-has-menu:hover > .bc-trigger .bc-caret-down,
.bc-has-menu:focus-within > .bc-trigger .bc-caret-down {
  display: block;
  color: #666;
}

.bc-menu {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 50;
  box-sizing: border-box;
  min-width: max(100%, 200px);
  max-width: min(280px, 70vw);
  max-height: min(320px, 50vh);
  margin: 0;
  padding: 4px 0 6px;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.bc-has-menu:hover > .bc-trigger,
.bc-has-menu:focus-within > .bc-trigger {
  position: relative;
  z-index: 51;
  background: #fff;
  border-color: #d0d0d0;
  border-bottom-color: #fff;
  text-decoration: none;
}

.bc-has-menu:hover > .bc-menu,
.bc-has-menu:focus-within > .bc-menu {
  display: block;
}

.bc-has-menu:hover > .bc-trigger:hover {
  text-decoration: none;
}

.bc-menu li {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

.bc-menu li + li::before,
.bc-menu li::after {
  content: none;
  margin: 0;
}

.bc-menu a {
  display: block;
  margin: 0;
  padding: 8px 14px;
  color: #039;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.bc-menu a:hover {
  background: #f5f5f5;
  text-decoration: underline;
}

.bc-menu a.is-current,
.bc-menu a[aria-current="page"] {
  font-weight: 700;
  color: var(--ink);
  background: transparent;
}

.bc-menu a:focus-visible {
  outline: var(--focus);
  outline-offset: -2px;
}

.list-crumb-utils {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  align-self: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.35;
  font-family: Arial, Helvetica, sans-serif;
}

.list-crumb-utils li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.list-crumb-utils li + li::before {
  content: "|";
  margin: 0 var(--space-1);
  color: #999;
  font-weight: 400;
}

.list-crumb-utils a {
  margin: 0;
  padding: 0 2px;
  color: #039;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.list-crumb-utils a:hover {
  color: #039;
  text-decoration: underline;
}

.list-crumb-compare {
  position: relative;
}

.list-crumb-compare-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #039;
  font: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.list-crumb-compare-trigger:hover {
  text-decoration: underline;
}

.list-crumb-compare-trigger .ap-icon {
  flex-shrink: 0;
}

/* Sahibinden-style compare dropdown */
.list-crumb-compare-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -10px;
  z-index: 70;
  width: min(348px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid #cfcfcf;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
}

.compare-pop-arrow {
  position: absolute;
  top: -6px;
  right: 32px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #cfcfcf;
  border-left: 1px solid #cfcfcf;
  background: #fff;
  transform: rotate(45deg);
}

.compare-pop-head {
  position: relative;
  margin: 0;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e0e0e0;
  color: #039;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.compare-pop-head::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -1px;
  width: 78px;
  height: 2px;
  background: #039;
}

.compare-pop-body {
  display: grid;
  gap: 8px;
  padding: 10px 12px 6px;
}

.compare-pop-card {
  position: relative;
  border: 1px solid #d6d6d6;
  background: #fff;
}

.compare-pop-list {
  display: grid;
  gap: 8px;
}

.compare-pop-current {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
}

.compare-pop-current[hidden] {
  display: none !important;
}

.compare-pop-current-media {
  width: 58px;
  height: 48px;
}

.compare-pop-current-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px dashed #b5b5b5;
  background: #f5f5f5;
  color: #9b9b9b;
}

.compare-pop-current-body {
  min-width: 0;
}

.compare-pop-current-text {
  margin: 0 0 8px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.compare-pop-current-add {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #039;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.compare-pop-current-add:hover {
  text-decoration: underline;
}

.compare-pop-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  min-height: 76px;
  padding: 8px;
}

.compare-pop-item-media {
  display: block;
  width: 80px;
  height: 60px;
  overflow: hidden;
  align-self: center;
  background: #eee;
}

.compare-pop-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-pop-item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 60px;
  padding-right: 22px;
}

.compare-pop-item-title {
  display: -webkit-box;
  overflow: hidden;
  color: #039;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compare-pop-item-title:hover {
  text-decoration: underline;
}

.compare-pop-item-meta {
  margin-top: 2px;
  color: #777;
  font-size: 11px;
  line-height: 1.3;
}

.compare-pop-item-price {
  margin-top: auto;
  padding-top: 4px;
  color: #a10000;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.compare-pop-item-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fff;
  color: #777;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.compare-pop-item:hover .compare-pop-item-remove,
.compare-pop-item:focus-within .compare-pop-item-remove {
  opacity: 1;
  pointer-events: auto;
}

.compare-pop-item-remove:hover {
  color: #a10000;
  border-color: #ccc;
}

.compare-pop-item-remove .ap-icon {
  display: block;
}

.compare-pop-empty {
  margin: 0;
  padding: 18px 10px;
  border: 1px solid #d6d6d6;
  color: #777;
  font-size: 12px;
  text-align: center;
}

.compare-pop-empty[hidden] {
  display: none !important;
}

.compare-pop-foot {
  padding: 10px 12px 12px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.compare-pop-go {
  color: #039;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.compare-pop-go:hover {
  text-decoration: underline;
}

.compare-pop-go.is-disabled {
  color: #999;
  cursor: default;
  text-decoration: none;
}

@media (min-width: 980px) {
  .list-crumb-utils {
    display: inline-flex;
  }
}

