:root {
  --store-ink: #080d15;
  --store-paper: #f7f2ea;
  --store-muted: #b9b7bd;
  --store-line: rgba(247, 242, 234, 0.24);
  --store-accent: #df33e0;
  --store-error: #ffb4a8;
}

.store-product-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem 1.5rem;
}

.store-product-grid-shirts {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.store-loading,
.store-empty,
.store-load-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 3rem 0;
  text-align: center;
  color: var(--store-paper);
}

.store-load-error button {
  display: block;
  margin: 1rem auto 0;
}

.store-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-top: 1px solid var(--store-line);
  padding-top: 1rem;
}

.store-product-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(8, 13, 21, 0.55);
}

.store-product-grid-shirts .store-product-media {
  aspect-ratio: 1 / 1;
}

.store-product-media img,
.store-product-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-product-grid-shirts .store-product-media img {
  object-fit: cover;
  object-position: center top;
}

.store-product-media video {
  opacity: 0;
  transition: opacity 160ms ease;
}

.store-product-media.has-video:hover video,
.store-product-media.has-video:focus-within video {
  opacity: 1;
}

.store-product-media.has-video:hover img,
.store-product-media.has-video:focus-within img {
  opacity: 0;
}

.store-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 1rem;
}

.store-product-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.store-product-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--store-paper);
}

.store-product-name a {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration: none;
}

.store-product-price {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--store-paper);
}

.store-product-description {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--store-muted) !important;
  -webkit-text-fill-color: var(--store-muted) !important;
}

.store-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.store-field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--store-muted);
}

.store-size-select {
  width: 100%;
  min-width: 6.5rem;
  height: 2.75rem;
  border: 1px solid var(--store-line);
  border-radius: 4px;
  padding: 0 2.1rem 0 0.75rem;
  background: var(--store-ink);
  color: var(--store-paper);
}

.store-primary-button,
.store-secondary-button {
  min-height: 2.75rem;
  border: 1px solid var(--store-paper);
  border-radius: 4px;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.store-primary-button {
  background: var(--store-paper) !important;
  color: var(--store-ink) !important;
  -webkit-text-fill-color: var(--store-ink) !important;
}

.store-primary-button:hover {
  border-color: var(--store-accent) !important;
  background: var(--store-accent) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.store-secondary-button {
  background: transparent;
  color: var(--store-paper);
}

.store-secondary-button:hover {
  border-color: var(--store-accent);
  color: var(--store-accent);
}

.store-primary-button:disabled,
.store-secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.store-detail-purchase {
  border-top: 1px solid var(--store-line);
  padding-top: 1.5rem;
}

.store-detail-purchase .store-product-actions {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 0;
}

.store-detail-purchase .store-size-field {
  width: min(12rem, 50vw);
}

.store-detail-purchase .store-primary-button {
  min-width: 10rem;
}

.store-cart-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  border: 1px solid rgba(247, 242, 234, 0.7);
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  background: rgba(8, 13, 21, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  color: var(--store-paper);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.store-cart-toggle:hover {
  border-color: var(--store-accent);
}

.store-cart-count {
  display: inline-grid;
  min-width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--store-accent);
  color: #fff;
  font-size: 0.72rem;
}

.store-cart-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.store-cart-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.66);
  cursor: default;
}

.store-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(30rem, 100%);
  height: 100%;
  background: var(--store-paper);
  color: var(--store-ink);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.32);
}

.store-cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(8, 13, 21, 0.16);
  padding: 1.35rem 1.25rem;
}

.store-cart-header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.65rem;
  font-weight: 500;
}

.store-cart-eyebrow {
  margin: 0;
  color: #6a6070;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-icon-button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(8, 13, 21, 0.24);
  border-radius: 4px;
  background: transparent;
  color: var(--store-ink);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.store-cart-items {
  overflow-y: auto;
  padding: 0 1.25rem;
}

.store-cart-empty {
  display: grid;
  min-height: 15rem;
  place-items: center;
  margin: 0;
  color: #6a6070;
  text-align: center;
}

.store-cart-line {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.9rem;
  border-bottom: 1px solid rgba(8, 13, 21, 0.14);
  padding: 1.1rem 0;
}

.store-cart-line img {
  width: 5rem;
  height: 6rem;
  object-fit: cover;
  background: #12151b;
}

.store-cart-line-copy {
  min-width: 0;
}

.store-cart-line-title {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.store-cart-line-title h3,
.store-cart-line-title p {
  margin: 0;
  color: var(--store-ink);
  font-size: 0.84rem;
}

.store-cart-options {
  margin: 0.3rem 0 0;
  color: #6a6070;
  font-size: 0.75rem;
}

.store-cart-line-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.store-quantity-control {
  display: inline-grid;
  grid-template-columns: 2rem 2.1rem 2rem;
  align-items: center;
  border: 1px solid rgba(8, 13, 21, 0.22);
  border-radius: 4px;
}

.store-quantity-control button {
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--store-ink);
  cursor: pointer;
}

.store-quantity-control span {
  text-align: center;
  font-size: 0.78rem;
}

.store-remove-button {
  border: 0;
  background: transparent;
  color: #6a6070;
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
}

.store-cart-footer {
  border-top: 1px solid rgba(8, 13, 21, 0.16);
  padding: 1.25rem;
}

.store-cart-footer .store-primary-button {
  width: 100%;
  border-color: var(--store-ink);
  background: var(--store-ink) !important;
  color: var(--store-paper) !important;
  -webkit-text-fill-color: var(--store-paper) !important;
}

.store-cart-footer .store-primary-button:hover {
  border-color: var(--store-accent);
  background: var(--store-accent) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.store-cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
}

.store-cart-total strong {
  font-size: 1.2rem;
}

.store-cart-shipping,
.store-cart-error {
  margin: 0.45rem 0 1rem;
  color: #6a6070;
  font-size: 0.74rem;
  line-height: 1.45;
}

.store-cart-error {
  color: #9c271e;
}

.store-cart-status {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  z-index: 70;
  max-width: min(22rem, calc(100vw - 2rem));
  border: 1px solid var(--store-accent);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  background: var(--store-ink);
  color: var(--store-paper);
  font-size: 0.8rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.store-cart-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.store-checkout-notice {
  border-left: 3px solid var(--store-accent);
  padding: 0.9rem 1rem;
  background: rgba(8, 13, 21, 0.72);
  color: var(--store-paper);
  font-size: 0.9rem;
  line-height: 1.5;
}

body.store-cart-open {
  overflow: hidden;
}

.store-primary-button:focus-visible,
.store-secondary-button:focus-visible,
.store-size-select:focus-visible,
.store-cart-toggle:focus-visible,
.store-icon-button:focus-visible,
.store-quantity-control button:focus-visible,
.store-remove-button:focus-visible {
  outline: 3px solid var(--store-accent);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .store-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-product-grid-shirts {
    gap: 4rem 3rem;
  }
}

@media (max-width: 639px) {
  .store-cart-toggle {
    top: 0.75rem;
    right: 0.75rem;
    bottom: auto;
    width: 3rem;
    height: 3rem;
    justify-content: center;
    padding: 0;
  }

  .store-cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .section-header-chip::before,
  .section-header-chip::after {
    width: 4rem !important;
  }
}

@media (min-width: 1024px) {
  .store-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .store-product-grid-shirts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-product-media video {
    display: none;
  }

  .store-product-media img,
  .store-cart-status,
  .store-primary-button,
  .store-secondary-button {
    transition: none;
  }
}
