/* Site-wide compare tray + continue banner */
.pb-compare-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  pointer-events: none;
}
.pb-compare-tray.is-on {
  transform: translateY(0);
  pointer-events: auto;
}
.pb-compare-tray-inner {
  max-width: 960px;
  margin: 0 auto 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px 16px 12px 12px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
@media (max-width: 720px) {
  .pb-compare-tray-inner {
    grid-template-columns: 1fr;
    margin: 0 8px calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
  }
  body:has(.pb-compare-tray.is-on) {
    padding-bottom: 140px;
  }
}
.pb-compare-tray-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #222;
}
.pb-compare-tray-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #ff385c;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 0 6px;
}
.pb-compare-tray-clear {
  border: 0;
  background: transparent;
  color: #6a6a6a;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.pb-compare-tray-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: thin;
}
.pb-compare-tray-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  max-width: 200px;
  padding: 6px 8px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  background: #fafafa;
  position: relative;
}
.pb-compare-tray-item img,
.pb-compare-tray-ph {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.pb-compare-tray-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pb-compare-tray-name {
  font-size: 12px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-compare-tray-price {
  font-size: 11px;
  color: #ff385c;
  font-weight: 700;
}
.pb-compare-tray-remove {
  border: 0;
  background: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #6a6a6a;
  flex-shrink: 0;
}
.pb-compare-tray-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 9999px;
  background: #ff385c;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  white-space: nowrap;
}
.pb-compare-tray-cta.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pb-browse-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1050;
}
.pb-browse-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pb-continue-banner {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.pb-continue-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin: 0 0 10px;
}
.pb-continue-search {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: #222;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.pb-continue-label {
  display: block;
  font-size: 12px;
  color: #6a6a6a;
  margin-bottom: 8px;
}
.pb-continue-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pb-continue-item {
  flex: 0 0 140px;
  text-decoration: none !important;
  color: #222;
  font-size: 12px;
  font-weight: 600;
}
.pb-continue-item img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 6px;
  background: #f3f4f6;
}
.pb-continue-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-cmp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #222;
}
.pb-cmp-btn.is-on {
  border-color: #ff385c;
  color: #ff385c;
  background: #fff5f7;
}

/* Compare page */
.pb-compare-page {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px 80px;
}
.pb-compare-page h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
}
.pb-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.pb-compare-card {
  border: 1px solid #ebebeb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.pb-compare-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}
.pb-compare-card-body {
  padding: 14px;
}
.pb-compare-card-body h2 {
  font-size: 15px;
  margin: 0 0 6px;
  font-weight: 700;
}
.pb-compare-price {
  color: #ff385c;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.pb-compare-facts {
  font-size: 13px;
  color: #6a6a6a;
  line-height: 1.5;
}
.pb-compare-facts div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #f5f5f5;
}
.pb-compare-empty {
  padding: 40px 20px;
  text-align: center;
  color: #6a6a6a;
  border: 1px dashed #ddd;
  border-radius: 14px;
}
