/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

:root {
  --hm-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --hm-radius: 12px;
  --hm-border: rgba(var(--cl-t-primary), 0.09);
  --hm-border-strong: rgba(var(--cl-t-primary), 0.18);
  --hm-muted: rgba(var(--cl-t-primary), 0.55);
  --hm-faint: rgba(var(--cl-t-primary), 0.35);
  --hm-good: #6fcf97;
  --hm-good-soft: rgba(111,207,151,0.14);
  --hm-bad: #e0645a;
  --hm-bad-soft: rgba(224,100,90,0.14);
}

.hm-mono { font-family: var(--hm-mono); }
.hm-tabular { font-variant-numeric: tabular-nums; }

/* ---------- generic section rule (replaces the centered full-width hr) ---------- */
.hm-section-rule {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: rgb(var(--cl-accent));
  margin-top: 12px;
  border-radius: 2px;
}

/* ---------- generic bordered frame, used by cards across the site ---------- */
.hm-frame {
  background: rgba(var(--cl-card), 0.75);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
}
.hm-frame-topline {
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hm-frame-topline:hover {
  border-color: var(--hm-border-strong);
}

/* ---------- navbar ---------- */
[data-component-id="navbar"] {
  position: sticky;
  top: 0;
  z-index: 40;
}
[data-component-id="navbar"] > div {
  background: rgba(var(--cl-background), 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--hm-radius);
}
.hm-brand {
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.hm-button {
  border-radius: 999px !important;
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.hm-btn-ghost {
  background: rgba(var(--cl-t-primary), 0.05);
  border: 1px solid var(--hm-border-strong) !important;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hm-btn-ghost:hover {
  background: rgba(var(--cl-accent), 0.12);
  border-color: rgb(var(--cl-accent)) !important;
  color: rgb(var(--cl-t-primary)) !important;
}

/* ---------- ticker ---------- */
.hm-ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: hm-scroll 26s linear infinite;
}
@keyframes hm-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-ticker-track { animation: none; }
}

/* ---------- hero ---------- */
[data-component-id="hero"] { position: relative; }
[data-component-id="hero"]::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 480px;
  background: radial-gradient(ellipse at center, rgba(var(--cl-accent), 0.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
[data-component-id="hero"] .container { position: relative; z-index: 1; }

.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hm-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--cl-t-primary));
  background: rgba(var(--cl-accent), 0.08);
  border: 1px solid var(--hm-border-strong);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hm-eyebrow .hm-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgb(var(--cl-accent));
  flex-shrink: 0;
}

.hm-hero-kicker {
  font-family: var(--hm-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hm-faint);
  margin-bottom: 4px;
}

.hm-hero-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  text-wrap: balance;
}
.hm-hero-title .text-accent-500 {
  color: inherit !important;
  text-decoration: underline;
  text-decoration-color: var(--hm-border-strong);
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

.hm-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px !important;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hm-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
  margin: 40px auto 0;
}
.hm-stat-tile {
  position: relative;
  text-align: left;
  padding: 14px 14px 14px 20px !important;
}
.hm-stat-tile::before {
  content: '';
  position: absolute; left: 8px; top: 14px; bottom: 14px; width: 2px;
  background: rgb(var(--cl-accent));
  border-radius: 2px;
}
.hm-stat-tile .hm-n {
  font-size: 21px;
  font-weight: 700;
  display: block;
}
.hm-stat-tile .hm-l {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hm-faint);
}

/* ---------- feature grid ---------- */
.hm-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hm-border);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  overflow: hidden;
}
.hm-feature-card {
  background: rgba(var(--cl-card), 0.9);
  padding: 28px 24px;
}
.hm-feature-card .hm-ic {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: rgb(var(--cl-t-primary));
  margin-bottom: 14px;
  font-size: 1.25rem;
}
.hm-feature-card h3 { font-size: 15px; margin: 0 0 6px 0; font-weight: 700; }
.hm-feature-card p { font-size: 13px; color: var(--hm-muted); margin: 0; }

@media (max-width: 880px) {
  .hm-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-stat-row { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
}
@media (max-width: 560px) {
  .hm-feature-grid { grid-template-columns: 1fr; }
  .hm-stat-row { grid-template-columns: 1fr; }
}

/* ---------- collections ---------- */
.hm-collection-card {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.125rem;
  background:
    repeating-linear-gradient(135deg, rgba(var(--cl-t-primary), 0.03) 0 2px, transparent 2px 14px),
    rgba(var(--cl-card), 0.75);
  border-style: dashed !important;
}
.hm-collection-card > img {
  width: auto !important;
  height: auto !important;
  max-width: min(72%, 13rem);
  max-height: 72%;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
.hm-collection-card svg {
  width: 4rem;
  height: 4rem;
  max-width: 55%;
  max-height: 55%;
}

/* ---------- product / collection manifest chrome ---------- */
.hm-corners { position: relative; }
.hm-corners::before, .hm-corners::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--hm-border-strong);
  pointer-events: none;
  z-index: 1;
}
.hm-corners::before { top: 8px; right: 8px; border-top: 2px solid; border-right: 2px solid; }
.hm-corners::after { bottom: 8px; left: 8px; border-bottom: 2px solid; border-left: 2px solid; }

.hm-tag {
  position: absolute;
  top: 8px; left: 8px;
  font-family: var(--hm-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--hm-faint);
  z-index: 1;
}

.hm-product-media {
  background: linear-gradient(155deg, rgba(var(--cl-t-primary), 0.06) 0%, rgba(var(--cl-background), 1) 100%);
}

.hm-stamp {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.7rem;
  text-align: center;
  color: rgba(var(--cl-t-primary), 0.9);
}
.hm-stamp small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hm-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Stock / status pill */
.hm-pill {
  font-family: var(--hm-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.hm-pill.hm-in { background: var(--hm-good-soft); color: var(--hm-good); }
.hm-pill.hm-out { background: var(--hm-bad-soft); color: var(--hm-bad); }

/* ---------- FAQ / ship's log ---------- */
.hm-qtag {
  font-family: var(--hm-mono);
  font-size: 0.6875rem;
  color: var(--hm-faint);
  margin-right: 0.6rem;
}

/* ---------- currency selector polish ---------- */
.currency-selector .choices__inner {
  border-radius: 9999px !important;
  border-color: var(--hm-border-strong) !important;
}