/*
 * Hand-written additions layered on top of the vendored ../skylarc/Web/styles.css (see Doc/design-sync.md).
 * Only for the handful of components skylarc has no equivalent of: the minimal header/footer chrome, the
 * product search box, and the message banner. Uses styles.css's own custom properties so it stays in step
 * with skylarc's palette/type scale without needing to touch the vendored file.
 */

.sales-header {
  display: flex;
  align-items: center;
  padding: 16px var(--site-gutter-x, 24px);
  background: #1f1a1d;
}

.sales-header__logo {
  display: block;
  line-height: 0;
}

.sales-header__logo img {
  height: 40px;
  width: auto;
  display: block;
}

.sales-message {
  margin: 24px auto 0;
  width: min(1440px, 100%);
  padding: 0 24px;
}

.sales-message__box {
  border: 1px solid var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-text-primary);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
}

/* Search box — same visual language as .event-product-card (border-radius, border colour, font) since
   skylarc has no reusable search input component of its own to borrow. */

.sales-search-row {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.sales-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 640px;
  margin: 0 auto 24px;
}

.sales-search__input {
  flex: 1;
  height: 52px;
  border: 1px solid var(--color-border-input);
  background: var(--color-bg-input);
  border-radius: 999px;
  padding: 0 52px 0 20px;
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--color-text-primary);
}

.sales-search__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.sales-search__clear {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f2f3f6;
  color: var(--color-text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sales-search__clear:hover {
  background: #e8eaef;
  color: #31292f;
}

.sales-limit-label {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
}

/* Product detail page: sales serves videos as local <video> files rather than skylarc's embedded <iframe>,
   so it needs its own rule to fill .product-detail__video's aspect-ratio box (styles.css only defines the
   iframe case). */

.product-page .product-detail__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.product-page .product-detail__cta + .product-detail__cta {
  margin-left: 12px;
}

/* Downloadable documents + view count: no skylarc equivalent component, styled to match its typography. */

.sales-documents {
  margin: 28px 0 0;
}

.sales-documents h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-text-primary);
}

.sales-documents ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.sales-documents li {
  border-bottom: 1px solid var(--color-border);
}

.sales-documents li a {
  display: block;
  padding: 12px 0;
  color: var(--color-primary-dark);
  font-size: 15px;
  text-decoration: none;
}

.sales-documents li a:hover {
  text-decoration: underline;
}

.sales-viewcount {
  margin: 20px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
}
