* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #e9e2d6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2a2420;
}

.browser-frame {
  width: min(960px, 100%);
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(42, 36, 32, 0.18);
}

.browser-frame__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #241f1c;
}

.browser-frame__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.browser-frame__dot--red { background: #e2793a; }
.browser-frame__dot--yellow { background: #e0b84a; }
.browser-frame__dot--green { background: #4a8f6a; }

.browser-frame__title {
  margin-left: 8px;
  font-size: 12px;
  color: #c9bfb3;
}

.browser-frame__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #ece5d8;
  position: relative;
}

.browser-frame__urlbar {
  flex: 1;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f4f0e6;
  font-size: 12px;
  color: #4a453c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame__ext-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #ece5d8;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #2a2420;
  cursor: pointer;
}

.browser-frame__ext-button:hover {
  background: #f4f0e6;
}

.browser-frame__ext-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c6433f, #e0b84a);
}

.browser-frame__badge {
  background: #c6433f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
}

.browser-frame__body {
  position: relative;
  min-height: 500px;
  background: #ffffff;
}

.popup-panel {
  position: absolute;
  top: 0;
  right: 16px;
  z-index: 10;
  border: 1px solid #ece5d8;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(42, 36, 32, 0.2);
  background: #fbf7f1;
}

.mock-page {
  padding: 28px;
  max-width: 660px;
}

.mock-page__crumbs {
  font-size: 11px;
  color: #8a8275;
  margin-bottom: 14px;
}

.mock-page__layout {
  display: flex;
  gap: 24px;
}

.mock-page__image {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: #f4f0e6;
  border-radius: 10px;
}

.mock-page__brand {
  font-size: 12px;
  color: #c6433f;
  font-weight: 600;
  margin: 0 0 4px;
}

.mock-page__title {
  font-size: 19px;
  margin: 0 0 10px;
  line-height: 1.3;
}

.mock-page__price {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
}

.mock-page__claim {
  font-size: 13px;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}

.mock-page__description {
  font-size: 13px;
  color: #4a453c;
  line-height: 1.6;
  margin: 10px 0 16px;
}

.mock-page__cart {
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  background: #241f1c;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
}

.mock-page__history {
  margin-top: 18px;
  font-size: 11px;
  color: #8a8275;
}

/* Simulates the inline flag that extension/content.js injects on a real page. */
.scarcitytell-flag {
  outline: 2px solid #c6433f;
  outline-offset: 2px;
  position: relative;
}

.scarcitytell-tag {
  display: inline-block;
  margin-left: 6px;
  background: #c6433f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .mock-page__layout {
    flex-direction: column;
  }

  .popup-panel {
    left: 16px;
    right: 16px;
  }
}
