/* ==========================================================================
   Hangtime — the standard Shopify templates.

   The homepage is the showpiece, but a real store also needs product,
   collection, cart, search, blog, page and error templates that belong to the
   same storefront. Loaded only on those templates.
   ========================================================================== */

.ht-page {
  padding: clamp(40px, 6vw, 72px) 0 var(--ht-section-y);
}

.ht-page__head {
  margin-bottom: var(--ht-head-gap);
}

.ht-page__head h1 {
  font-family: var(--ht-display);
  font-size: var(--ht-fs-hero);
  font-weight: var(--ht-display-weight, 800);
  line-height: var(--ht-lh-display);
  letter-spacing: var(--ht-ls-display);
  text-transform: uppercase;
}

.ht-page__eyebrow {
  margin-bottom: 10px;
  color: var(--ht-ink-2);
}

.ht-breadcrumbs {
  margin-bottom: 18px;
  font-family: var(--ht-mono);
  font-size: 11px;
  letter-spacing: var(--ht-ls-mono);
  color: var(--ht-ink-2);
  text-transform: uppercase;
}

.ht-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ht-breadcrumbs a {
  text-decoration: none;
}

.ht-breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Rich text ------------------------------------------------------------ */

.ht-rte {
  max-width: 68ch;
}

.ht-rte > * + * {
  margin-top: 1em;
}

.ht-rte h2,
.ht-rte h3 {
  margin-top: 1.6em;
  font-family: var(--ht-display);
  font-weight: var(--ht-display-weight, 800);
  line-height: 1;
  text-transform: uppercase;
}

.ht-rte h2 {
  font-size: var(--ht-fs-h3);
}

.ht-rte h3 {
  font-size: 24px;
}

.ht-rte a {
  color: var(--ht-accent-text, var(--ht-accent));
  text-underline-offset: 3px;
}

.ht-rte img {
  width: 100%;
  height: auto;
}

.ht-rte ul,
.ht-rte ol {
  padding-left: 1.2em;
}

.ht-rte li + li {
  margin-top: 0.4em;
}

.ht-rte blockquote {
  padding-left: 20px;
  font-size: var(--ht-fs-lead);
  line-height: 1.3;
  border-left: 2px solid var(--ht-ink);
}

.ht-rte table {
  width: 100%;
  border-collapse: collapse;
}

.ht-rte th,
.ht-rte td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: var(--ht-border);
}

/* --- Product template ----------------------------------------------------- */

.ht-product {
  display: grid;
  grid-template-columns: 1.15fr minmax(360px, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.ht-product__media {
  display: grid;
  gap: 10px;
  position: sticky;
  top: calc(var(--ht-header-h) + 20px);
}

.ht-product__stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ht-panel);
}

.ht-product__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ht-product__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ht-product__thumb {
  width: 68px;
  height: 84px;
  overflow: hidden;
  background: var(--ht-panel);
  border: 1px solid transparent;
}

.ht-product__thumb[aria-current="true"] {
  border-color: var(--ht-ink);
}

.ht-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-product__panel h1 {
  margin: 12px 0;
  font-family: var(--ht-display);
  font-size: calc(var(--ht-fs-display) * var(--ht-title-scale, 1));
  font-weight: var(--ht-display-weight, 800);
  line-height: 0.86;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

.ht-product__panel .ht-view__price {
  margin-bottom: 4px;
}

/* The buy button owns its column, the same as it does in the viewer. */
.ht-product__panel .ht-btn {
  width: 100%;
  margin-top: 14px;
}

.ht-product__share {
  margin-top: 24px;
}

/* --- Collection ----------------------------------------------------------- */

.ht-collection__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin-bottom: 32px;
  border-top: var(--ht-border);
  border-bottom: var(--ht-border);
}

.ht-collection__count {
  font-family: var(--ht-mono);
  font-size: var(--ht-fs-mono);
  letter-spacing: var(--ht-ls-mono);
  color: var(--ht-ink-2);
  text-transform: uppercase;
}

.ht-sort {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--ht-mono);
  font-size: var(--ht-fs-mono);
  letter-spacing: var(--ht-ls-mono);
  text-transform: uppercase;
}

.ht-sort select {
  height: 36px;
  padding: 0 8px;
  font-family: var(--ht-mono);
  font-size: 11px;
  text-transform: uppercase;
  background: none;
  border: var(--ht-border);
  border-radius: 0;
}

.ht-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: var(--ht-section-y-tight);
  font-family: var(--ht-mono);
  font-size: var(--ht-fs-mono);
  letter-spacing: var(--ht-ls-mono);
  text-transform: uppercase;
}

.ht-pagination a,
.ht-pagination span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  text-decoration: none;
  border: var(--ht-border);
}

.ht-pagination [aria-current="page"] {
  color: #fff;
  background: var(--ht-ink);
  border-color: var(--ht-ink);
}

/* --- Collection list ------------------------------------------------------ */

.ht-collection-card {
  display: block;
  text-decoration: none;
}

.ht-collection-card__art {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ht-panel);
}

.ht-collection-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-collection-card h2 {
  margin-top: 14px;
  font-family: var(--ht-display);
  font-size: 26px;
  font-weight: var(--ht-display-weight, 800);
  line-height: 1;
  text-transform: uppercase;
}

/* --- Cart page ------------------------------------------------------------ */

.ht-cart-page {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.ht-cart-page__lines {
  border-top: var(--ht-border);
}

.ht-cart-page__row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  padding: 22px 0;
  border-bottom: var(--ht-border);
}

.ht-cart-page__row .ht-line__thumb {
  width: 96px;
  height: 118px;
}

.ht-cart-page__summary {
  position: sticky;
  top: calc(var(--ht-header-h) + 20px);
  padding: 24px;
  background: var(--ht-tag);
}

.ht-cart-page__summary h2 {
  margin-bottom: 16px;
  font-family: var(--ht-display);
  font-size: 28px;
  font-weight: var(--ht-display-weight, 800);
  line-height: 1;
  text-transform: uppercase;
}

/* --- Blog ----------------------------------------------------------------- */

.ht-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px);
}

.ht-article-card {
  display: block;
  text-decoration: none;
}

.ht-article-card__art {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--ht-panel);
}

.ht-article-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-article-card h2 {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}

.ht-article-card time {
  display: block;
  margin-top: 6px;
  font-family: var(--ht-mono);
  font-size: 11px;
  letter-spacing: var(--ht-ls-mono);
  color: var(--ht-ink-2);
  text-transform: uppercase;
}

.ht-article {
  max-width: 72ch;
  margin: 0 auto;
}

.ht-article__hero {
  margin-bottom: 32px;
}

.ht-comments {
  margin-top: var(--ht-section-y-tight);
}

.ht-comment {
  padding: 18px 0;
  border-bottom: var(--ht-border);
}

.ht-comment__meta {
  font-family: var(--ht-mono);
  font-size: 11px;
  letter-spacing: var(--ht-ls-mono);
  color: var(--ht-ink-2);
  text-transform: uppercase;
}

/* --- Forms ---------------------------------------------------------------- */

.ht-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.ht-form label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--ht-mono);
  font-size: 11px;
  letter-spacing: var(--ht-ls-mono);
  text-transform: uppercase;
}

.ht-form textarea {
  min-height: 140px;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid var(--ht-line);
}

.ht-form-error {
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--ht-warn);
  border: 1px solid var(--ht-warn);
}

.ht-form-success {
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--ht-ok);
  border: 1px solid var(--ht-ok);
}

/* --- Search --------------------------------------------------------------- */

.ht-search-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-bottom: 32px;
}

.ht-search-form .ht-field {
  flex: 1;
}

/* --- Empty states --------------------------------------------------------- */

.ht-empty {
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
}

.ht-empty p {
  margin-bottom: 20px;
  color: var(--ht-ink-2);
}

/* --- Password ------------------------------------------------------------- */

.ht-password {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 40px var(--ht-gutter);
  text-align: center;
}

.ht-password__inner {
  max-width: 460px;
}

.ht-password h1 {
  font-family: var(--ht-display);
  font-size: clamp(56px, 12vw, 120px);
  font-weight: var(--ht-display-weight, 800);
  line-height: 0.85;
  text-transform: uppercase;
}

/* --- Pages responsive ----------------------------------------------------- */

@media screen and (max-width: 1100px) {
  .ht-articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 860px) {
  .ht-product,
  .ht-cart-page {
    grid-template-columns: 1fr;
  }

  .ht-product__media,
  .ht-cart-page__summary {
    position: static;
  }
}

@media screen and (max-width: 600px) {
  .ht-articles {
    grid-template-columns: 1fr;
  }

  .ht-cart-page__row {
    grid-template-columns: 72px 1fr;
  }

  .ht-cart-page__row .ht-line__thumb {
    width: 72px;
    height: 88px;
  }

  .ht-cart-page__row .ht-line__right {
    grid-column: 2;
    text-align: left;
  }

  .ht-cart-page__row .ht-line__remove {
    margin-left: 0;
  }
}
