/* ============================================================
   SKS Tartan Finder — static styles
   Dynamic/per-instance rules live in sections/sks-tartan-finder.liquid
   ============================================================ */

.sks-tartan {
  position: relative;
  /* No overflow:hidden — would clip the typeahead dropdown that overflows the section. */
  z-index: 2;
}

.sks-tartan__inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Eyebrow ── */
.sks-tartan__eyebrow {
  display: block;
  margin-bottom: 10px;
}

/* ── Heading ── */
.sks-tartan__heading {
  font-family: var(--font-heading-family);
  font-style: var(--font-heading-style);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.sks-tartan__heading em {
  font-style: italic;
  font-weight: 400;
}

/* ── Subheading ── */
.sks-tartan__sub {
  line-height: 1.6;
  margin: 0 auto 28px;
}

/* ── Search form ── */
.sks-tartan__form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
  align-items: stretch;
  position: relative;
  width: 100%;
    justify-content: center;
}

/* Wrapper around input so the typeahead dropdown can position absolute.
   max-width matches the header search input (.sks-hd__search max-width: 360px)
   so the tartan-finder input reads as the same-scale search element as the
   header search on desktop. Overridden to full width on mobile below. */
.sks-tartan__input-wrap {
  flex: 1;
  min-width: 0;
  max-width: 360px;
  position: relative;
}

.sks-tartan__input {
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  font-family: var(--font-body-family);
  font-size: 14.5px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.sks-tartan__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.sks-tartan__input:focus {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(232, 201, 168, 0.22);
}

/* ── Submit button ── */
.sks-tartan__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body-family);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: filter 0.2s;
  text-decoration: none;
}

.sks-tartan__btn:hover {
  filter: brightness(1.12);
}

.sks-tartan__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Stats row ── */
.sks-tartan__stats {
  display: inline-flex;
  gap: 30px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.sks-tartan__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sks-tartan__stat-num {
  font-family: var(--font-heading-family);
  font-weight: 600;
  line-height: 1;
}

.sks-tartan__stat-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ── Typeahead dropdown ── */
.sks-tartan__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  color: #2C3E50;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .12);
  max-height: 320px;
  overflow-y: auto;
  text-align: left;
  font-family: var(--font-body-family);
  font-size: 14px;
}

.sks-tartan__dd-item {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  color: #2C3E50;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 68, 64, .08);
  transition: background .12s;
}

.sks-tartan__dd-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sks-tartan__dd-title {
  font-size: 14px;
  font-weight: 500;
  color: #2C3E50;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sks-tartan__dd-price {
  font-size: 12px;
  color: #7A726B;
  line-height: 1.2;
}
.sks-tartan__dd-item:hover .sks-tartan__dd-price,
.sks-tartan__dd-item:focus .sks-tartan__dd-price {
  color: #B8520A;
}

.sks-tartan__dd-item:last-child {
  border-bottom: 0;
}

.sks-tartan__dd-item:hover,
.sks-tartan__dd-item:focus {
  background: rgba(184, 82, 10, .08);
  color: #B8520A;
  outline: 0;
}

.sks-tartan__dd-empty {
  padding: 14px 16px;
  color: #7A726B;
  font-size: 13px;
  line-height: 1.5;
}

.sks-tartan__dd-empty strong {
  color: #2C3E50;
}

/* ── Responsive ── */
@media screen and (max-width: 749px) {
  .sks-tartan__form {
    flex-direction: column;
    max-width: 100%;
  }

  /* Let the input fill the column on mobile — the 360px desktop cap would
     leave awkward whitespace on either side of a stacked column. */
  .sks-tartan__input-wrap {
    max-width: 100%;
  }

  .sks-tartan__btn {
    justify-content: center;
  }

  .sks-tartan__stats {
    gap: 20px;
  }
}