/* Shopping cart — header link & cart page */

.fk-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.35s ease;
  text-decoration: none;
}

.fk-cart-link:hover,
.fk-cart-link:focus-visible {
  color: rgba(255, 255, 255, 0.88);
  outline: none;
}

.fk-cart-link__icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.fk-cart-link__count {
  position: absolute;
  top: -0.15rem;
  right: -0.35rem;
  min-width: 0.875rem;
  height: 0.875rem;
  padding: 0 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.88);
  font-family: Inter, sans-serif;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
}

.fk-cart-link__count.hidden {
  display: none;
}

.cart-page__empty {
  text-align: center;
  padding: 4rem 1.5rem;
}

.cart-page__empty p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .cart-line {
    grid-template-columns: 6.5rem 1fr auto;
    align-items: start;
  }
}

.cart-line__thumb {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 3 / 4;
  background: #0a0a0a;
}

.cart-line__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.15) brightness(0.92);
}

.cart-line__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
}

.cart-line__meta {
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cart-line__meta-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .cart-line__meta-row {
    grid-template-columns: 6rem 1fr;
  }
}

.cart-line__meta-row dt {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.cart-line__meta-row dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.84);
}

.cart-line__price {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.cart-line__price strong {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.cart-line__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cart-qty__btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.cart-qty__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cart-qty__value {
  min-width: 2rem;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.cart-line__remove {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: Inter, sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  transition: color 0.25s ease;
}

.cart-line__remove:hover {
  color: rgba(255, 255, 255, 0.8);
}

.cart-page__summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-page__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.cart-page__subtotal strong {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  font-variant-numeric: tabular-nums;
}

.cart-page__note {
  margin: 0 0 1.5rem;
  font-family: Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.35);
}

.shipping-note {
  margin: 1.25rem 0 1.75rem;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.cart-page__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  gap: 0.75rem 1.25rem;
}

.cart-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: Inter, sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  transition:
    color 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
}

.cart-page__btn:hover,
.cart-page__btn:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.cart-page__btn--primary {
  color: #000;
  background: #fff;
  border-color: #fff;
}

.cart-page__btn--primary:hover,
.cart-page__btn--primary:focus-visible {
  color: #000;
  background: #e5e5e5;
  border-color: #e5e5e5;
}

.cart-page__field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.cart-page__field-label--normal {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.cart-page__select {
  width: 100%;
  max-width: 24rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  background: #111;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.cart-page__note--warn {
  color: rgba(251, 191, 36, 0.85);
}

#checkout-error.hidden {
  display: none;
}

.add-to-cart.is-added {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
