/* ========================================================================== */
/* 0xHTX shop — loaded after styles.css; all rules are scoped to this page.     */
/* ========================================================================== */

.shop-page .nav-shop {
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-block: 10px;
}

.shop-main {
  padding-bottom: 42px;
}

/* 01. Introductory banner */
.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: 50px;
  padding-block: 50px 34px;
}

.shop-hero .eyebrow {
  font-size: 12px;
  margin-bottom: 20px;
}

.shop-page .shop-hero h1 {
  font-size: clamp(42px, 4.5vw, 65px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.shop-accent {
  width: 66px;
  height: 4px;
  margin-top: 24px;
  background: var(--green);
}

.shop-lead {
  max-width: 540px;
  margin-top: 28px;
  color: #c4cdc6;
  font-size: 18px;
  line-height: 1.6;
}

.shop-hero-art {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #7032a3;
  border-radius: 6px;
  background: #1d0d2c;
}

.shop-hero-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.shop-status {
  margin: 0 0 26px;
  color: var(--muted);
  font: 12px / 1.7 var(--mono);
}

/* 02. Product categories */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-filters button {
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid #536058;
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.shop-filters button[aria-pressed="true"] {
  color: #05120a;
  background: var(--green);
  border-color: var(--green);
  font-weight: 700;
}

.shop-filters button:hover {
  border-color: var(--green);
}

.shop-count {
  flex-shrink: 0;
  margin: 0;
  color: var(--muted);
  font: 12px / 1.6 var(--mono);
}

/* 03. Product grid and preview photography */
.shop-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.shop-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shop-product-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 305 / 380;
  overflow: hidden;
  background: linear-gradient(135deg, #251036, #1b0d29);
  border: 1px solid #7032a3;
  border-radius: 6px;
}

.shop-product-photo svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* A replacement product photograph can use a regular img in this figure. */
.shop-product-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-photo--poster > img {
  width: 72%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px #0009);
}

.shop-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  color: #d6b3f2;
  background: #241132;
  border: 1px solid #7032a3;
  border-radius: 4px;
  font: 10px / 1.6 var(--mono);
  letter-spacing: 0.5px;
}

/* 04. Product information and order states */
.shop-product-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 16px;
}

.shop-product-details .eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
}

.shop-page .shop-product h2 {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.shop-product-description {
  margin-top: 12px;
  margin-bottom: 22px;
  color: #c4cdc6;
  font-size: 15px;
  line-height: 1.6;
}

.shop-product-order {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
}

.shop-price {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.shop-page .shop-pending {
  color: var(--muted);
  background: transparent;
  border-color: #536058;
  opacity: 1;
  font-weight: 400;
  cursor: default;
}

.shop-buy {
  min-width: 160px;
}

/* 05. Free-edition reminder */
.shop-free {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 34px;
  margin-top: 48px;
  background: linear-gradient(115deg, #1d102b, #100d17);
  border: 1px solid #593078;
  border-radius: 6px;
}

.shop-page .shop-free h2 {
  font-size: clamp(29px, 3.2vw, 42px);
}

.shop-free p {
  margin-top: 10px;
  color: #c4cdc6;
  font-size: 16px;
}



/* 06. Tablet layout */
@media (max-width: 950px) {
  .shop-hero {
    gap: 28px;
  }

  .shop-products {
    gap: 18px;
  }

  .shop-page .shop-product h2 {
    font-size: 21px;
  }

  .shop-free {
    padding: 28px;
  }
}

/* 07. Phone layout */
@media (max-width: 650px) {
  .shop-page nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .shop-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 34px 26px;
  }

  .shop-page .shop-hero h1 {
    font-size: clamp(38px, 9vw, 54px);
  }

  .shop-lead {
    margin-top: 22px;
    font-size: 17px;
  }

  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .shop-filters {
    gap: 8px;
  }

  .shop-filters button {
    padding-inline: 14px;
    font-size: 13px;
  }

  .shop-products {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .shop-page .shop-product h2 {
    font-size: 26px;
  }

  .shop-free {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 24px;
    margin-top: 38px;
  }

  }

/* Typewriter headline. */
.shop-page .shop-hero #shop-title {
  color: #fff;
  font-family: "Courier New", Courier, monospace;
}
.shop-headline-cursor {
  display: inline-block;
  width: 0;
  height: 0.85em;
  border-left: 0.045em solid currentColor;
  vertical-align: -0.03em;
  animation: shop-cursor-blink 1s step-end infinite;
}
.shop-headline-character--pending {
  visibility: hidden;
}
@keyframes shop-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-headline-cursor { animation: none; }
  .shop-headline-character--pending { visibility: visible; }
}

/* Shared site styles may color heading spans green; override every letter. */
body.shop-page .shop-hero #shop-title,
body.shop-page .shop-hero #shop-title .shop-headline-visual,
body.shop-page .shop-hero #shop-title .shop-headline-visual span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
