/* Fast Cart — shared styles for the secondary pages (products, order). */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 26px;
  padding: 20px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.filter-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.filter-legend {
  padding: 0;
  margin-bottom: 10px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6da585;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips .category {
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.filter-reset {
  margin-left: auto;
  min-height: 40px;
  padding: 10px 16px;
  font-size: 13px;
}

.product-brand {
  display: block;
  font-size: 11px;
  color: #8bedb0;
  margin-bottom: 3px;
}

.product-blurb {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-grid .add-button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

/* --- Order page ----------------------------------------------------------- */

.order-page .header {
  position: static;
}

.order-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 4.3% 80px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1b12;
  padding: 44px 40px;
  box-shadow: 0 30px 90px #0006;
}

.order-card-error {
  border-color: #5c3b3b;
}

.order-card-inner h1 {
  font-size: clamp(34px, 6vw, 52px);
  margin-bottom: 14px;
}

.order-card-inner h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.order-check {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #06100c;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 22px;
  box-shadow: 0 0 30px #39ff8855;
  animation: order-pop 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes order-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.order-facts {
  margin: 28px 0 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.order-facts > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: #0a1a12;
}

.order-facts dt {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #85a992;
}

.order-facts dd {
  margin: 0;
  font-size: 15px;
  text-align: right;
  word-break: break-all;
}

.order-reference {
  font-family: Consolas, 'Courier New', monospace;
  color: var(--lime);
  letter-spacing: 0.02em;
}

.order-telegram {
  margin-top: 30px;
  padding: 24px;
  border: 1px dashed #2c6144;
  border-radius: 6px;
  background: #0a1c13;
}

.order-telegram p {
  margin-bottom: 18px;
  font-size: 14px;
  color: #a9c4b4;
}

.order-telegram .button {
  margin: 0 10px 10px 0;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

@media (max-width: 600px) {
  .filters {
    gap: 16px;
  }
  .filter-reset {
    margin-left: 0;
  }
  .order-main {
    padding: 32px 4.3% 56px;
  }
  .order-card {
    padding: 28px 20px;
  }
  .order-facts dd {
    text-align: left;
  }
}

/* --- Social proof popup --------------------------------------------------- */

.purchase-notice {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 14px;
  border: 1px solid #235e39;
  border-radius: 6px;
  background: #0c1f16f2;
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 18px 50px #0007;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 380ms ease, transform 380ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.purchase-notice-in {
  opacity: 1;
  transform: translateY(0);
}

.purchase-notice-mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #10331d;
  color: var(--lime);
  font-size: 12px;
}

.purchase-notice-text {
  line-height: 1.45;
}

.purchase-notice[data-footnote]::after {
  content: attr(data-footnote);
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #7d9c8b;
}

.purchase-notice-close {
  flex: 0 0 auto;
  border: 0;
  background: none;
  color: #7d9c8b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.purchase-notice-close:hover {
  color: var(--lime);
}

@media (max-width: 600px) {
  .purchase-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-notice {
    transition: none;
  }
  .order-check {
    animation: none;
  }
}
