.store-page {
  background:
    linear-gradient(135deg, rgba(63, 224, 255, 0.1), transparent 32%),
    linear-gradient(315deg, rgba(227, 90, 79, 0.12), transparent 30%),
    var(--night);
}

.store-hero {
  display: grid;
  min-height: 620px;
  align-items: end;
  padding: 150px clamp(20px, 5vw, 80px) 68px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 8, 11, 0.96), rgba(5, 8, 11, 0.72), rgba(5, 8, 11, 0.44)),
    url("../assets/aig-hero.png") center / cover;
}

.store-hero-copy {
  width: min(940px, 100%);
}

.store-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.store-hero p:last-of-type {
  width: min(760px, 100%);
  margin: 24px 0 0;
  color: #d8e0e7;
  font-size: clamp(1.04rem, 1.55vw, 1.25rem);
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: start;
  padding: 90px clamp(20px, 5vw, 80px);
  background: #f4f7f9;
  color: var(--dark-text);
}

.catalogue-column .section-heading p {
  color: #506071;
}

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

.store-product-card,
.cart-panel,
.orders-list article {
  border: 1px solid rgba(23, 32, 43, 0.14);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 43, 0.12);
}

.store-product-card {
  display: grid;
  gap: 18px;
  min-height: 420px;
  padding: clamp(22px, 3vw, 30px);
}

.store-product-card.featured {
  background:
    linear-gradient(135deg, rgba(63, 224, 255, 0.18), rgba(214, 173, 87, 0.12)),
    #ffffff;
}

.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.product-badge {
  display: inline-flex;
  padding: 4px 8px;
  background: #0b3b46;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-product-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.product-price {
  color: #0e6a78;
  font-size: 1.7rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.store-product-card p {
  margin: 0;
  color: #506071;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: #314152;
  font-weight: 600;
}

.feature-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 8px;
  background: var(--gold);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}

.store-button-secondary {
  border-color: rgba(23, 32, 43, 0.16);
  background: #e7edf1;
  color: var(--dark-text);
  cursor: pointer;
}

.store-button-secondary:hover,
.store-button-secondary:focus-visible {
  background: #dbe4e9;
}

.cart-panel {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

#cartCount {
  color: #506071;
  font-weight: 800;
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 70px;
}

.empty-cart {
  margin: 0;
  color: #506071;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(23, 32, 43, 0.12);
}

.cart-item h3,
.cart-item p {
  margin: 0;
}

.cart-item h3 {
  font-size: 0.98rem;
}

.cart-item p {
  color: #506071;
  font-size: 0.88rem;
}

.remove-item {
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid rgba(23, 32, 43, 0.16);
  background: #ffffff;
  color: #7a2d24;
  cursor: pointer;
  font-weight: 800;
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(23, 32, 43, 0.14);
  border-bottom: 1px solid rgba(23, 32, 43, 0.14);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cart-summary span {
  color: #506071;
}

.total-row {
  font-size: 1.2rem;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.checkout-form label {
  color: #506071;
  font-size: 0.84rem;
  font-weight: 800;
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(23, 32, 43, 0.16);
  background: #ffffff;
  color: var(--dark-text);
  font: inherit;
  padding: 0 12px;
  outline: none;
}

.checkout-form input:focus,
.checkout-form select:focus {
  border-color: #0e6a78;
  box-shadow: 0 0 0 3px rgba(14, 106, 120, 0.15);
}

.checkout-form .button:disabled {
  background: #9baab1;
  color: #ffffff;
  cursor: not-allowed;
}

.checkout-note {
  margin: 0;
  color: #506071;
  font-size: 0.88rem;
}

.checkout-note a {
  color: #0e6a78;
  font-weight: 800;
}

.orders-section {
  padding: 90px clamp(20px, 5vw, 80px);
  background: #0b0f14;
}

.orders-list {
  display: grid;
  gap: 18px;
}

.orders-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(22px, 3vw, 30px);
  color: var(--dark-text);
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #506071;
  font-size: 0.92rem;
  font-weight: 700;
}

.licence-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.licence-list p {
  margin: 0;
  padding: 8px 10px;
  background: #f4f7f9;
  color: #17202b;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.orders-list h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  padding: 5px 9px;
  background: #e7f8fb;
  color: #0e6a78;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .store-layout,
  .product-store-grid {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .store-hero {
    min-height: 620px;
    padding-top: 190px;
  }

  .store-layout,
  .orders-section {
    padding-inline: 12px;
  }

  .product-topline,
  .orders-list article {
    grid-template-columns: 1fr;
  }

  .product-topline {
    display: grid;
  }

  .product-price {
    text-align: left;
  }

  .product-actions .button,
  .download-actions .button {
    width: 100%;
  }

  .download-actions {
    justify-content: stretch;
  }
}
