.store-page {
  min-height: 100vh;
  background: #f6f8fb;
  color: #102033;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(16, 32, 51, .12);
  background: rgba(246, 248, 251, .92);
  backdrop-filter: blur(14px);
}

.store-brand {
  color: inherit;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.store-cart-button,
.icon-button {
  border: 1px solid rgba(16, 32, 51, .18);
  border-radius: 8px;
  background: #ffffff;
  color: #102033;
  font-weight: 800;
  cursor: pointer;
}

.store-cart-button {
  min-height: 42px;
  padding: 0 16px;
}

.store-cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  border-radius: 999px;
  background: #102033;
  color: #ffffff;
}

.store-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 0 28px;
}

.store-hero h1 {
  max-width: none;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  line-height: .9;
}

.store-hero p:not(.eyebrow) {
  max-width: 58ch;
  color: #58708f;
  font-size: 1.18rem;
}

.store-hero .store-shipping-note {
  margin-top: 12px;
  color: #0f6f73;
  font-weight: 800;
}

.store-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 72px;
}

.store-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.store-toolbar h2 {
  color: #102033;
}

#storeStatus {
  margin: 8px 0 0;
  color: #58708f;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 51, .12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(16, 32, 51, .09);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  background: #f4f7fb;
}

.product-image img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  transition: opacity .18s ease;
}

.product-image .product-image-primary {
  opacity: 1;
}

.product-image .product-image-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .18s ease;
}

.product-card:hover .product-image .product-image-hover,
.product-card:focus-within .product-image .product-image-hover {
  opacity: 1;
}

.product-card:hover .product-image .product-image-primary,
.product-card:focus-within .product-image .product-image-primary {
  opacity: 0;
}

.product-image.empty {
  min-height: 320px;
}

.product-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.product-body h3 {
  color: #102033;
  font-size: 1.28rem;
}

.product-desc {
  min-height: 3.2em;
  margin: 8px 0 0;
  color: #58708f;
}

.product-buy {
  display: grid;
  gap: 10px;
}

.product-price {
  font-size: 1.3rem;
  color: #0f6f73;
}

.product-note {
  color: #58708f;
  font-size: .88rem;
}

.variant-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(16, 32, 51, .18);
  border-radius: 8px;
  background: #ffffff;
  color: #102033;
  padding: 0 12px;
  font: inherit;
}

.detail-button {
  border: 1px solid rgba(16, 32, 51, .18);
  background: #ffffff;
  color: #102033;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(460px, 100%);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 20px;
  background: #ffffff;
  box-shadow: -20px 0 60px rgba(16, 32, 51, .18);
  transform: translateX(105%);
  transition: transform .2s ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(16, 32, 51, .36);
}

.cart-backdrop.open {
  display: block;
}

.product-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(760px, 100%);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  background: #ffffff;
  box-shadow: -20px 0 60px rgba(16, 32, 51, .18);
  transform: translateX(105%);
  transition: transform .2s ease;
}

.product-detail-panel.open {
  transform: translateX(0);
}

.product-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.product-detail-head h2 {
  color: #102033;
}

.product-detail-content {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.product-detail-layout {
  display: grid;
  gap: 18px;
}

.product-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.product-detail-gallery figure,
.product-detail-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 0;
  border: 1px solid rgba(16, 32, 51, .12);
  border-radius: 8px;
  background: #f4f7fb;
}

.product-detail-gallery img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
}

.product-detail-info {
  display: grid;
  gap: 12px;
}

.product-detail-price {
  color: #0f6f73;
  font-size: 1.45rem;
  font-weight: 800;
}

.product-detail-note {
  color: #58708f;
  font-weight: 700;
}

.product-detail-description {
  display: grid;
  gap: 10px;
  color: #26384d;
  line-height: 1.5;
}

.product-detail-description table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .92rem;
}

.product-detail-description th,
.product-detail-description td {
  min-width: 72px;
  padding: 8px;
  border: 1px solid rgba(16, 32, 51, .16);
  text-align: center;
}

.product-detail-description th:first-child,
.product-detail-description td:first-child {
  text-align: left;
  font-weight: 800;
}

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

.cart-head h2 {
  color: #102033;
}

.cart-head p,
.checkout-status {
  margin: 4px 0 0;
  color: #58708f;
}

.icon-button {
  width: 38px;
  height: 38px;
}

.cart-items {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 4px;
}

.cart-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(16, 32, 51, .1);
  border-radius: 8px;
  background: #f6f8fb;
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8eef7;
}

.cart-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cart-thumb.empty::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 32, 51, .12);
}

.cart-row strong {
  color: #102033;
}

.cart-row small {
  display: block;
  margin-top: 2px;
  color: #58708f;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-actions button {
  min-width: 30px;
  height: 30px;
  border: 1px solid rgba(16, 32, 51, .16);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.cart-footer {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 32, 51, .12);
}

.shipping-calc {
  display: grid;
  gap: 8px;
}

.shipping-calc label {
  color: #102033;
  font-weight: 800;
}

.shipping-calc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.shipping-calc input {
  min-height: 42px;
  border: 1px solid rgba(16, 32, 51, .18);
  border-radius: 8px;
  padding: 0 12px;
  color: #102033;
  font: inherit;
}

.shipping-calc .btn-secondary {
  min-height: 42px;
  border: 1px solid rgba(16, 32, 51, .18);
  background: #ffffff;
  color: #102033;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 4px;
  color: #102033;
}

.checkout-button {
  width: 100%;
}

.checkout-button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .store-header {
    padding: 14px 18px;
  }

  .store-hero h1 {
    font-size: clamp(2.9rem, 18vw, 4.2rem);
  }

  .cart-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .cart-thumb {
    width: 62px;
    height: 62px;
  }

  .cart-actions {
    grid-column: 2;
    justify-self: start;
  }

  .product-detail-panel {
    padding: 16px;
  }

  .product-detail-gallery {
    grid-template-columns: 1fr;
  }
}

.landing-page.store-page {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(4, 5, 20, .93), rgba(9, 7, 28, .66) 45%, rgba(4, 5, 20, .9)),
    linear-gradient(180deg, rgba(3, 5, 18, .18), rgba(3, 5, 18, .96) 88%),
    url("/site/assets/cyber-dashboard.jpg") center top / cover fixed,
    #050715;
}

.landing-page.store-page .store-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(126, 246, 255, .28);
  background: rgba(4, 6, 20, .74);
  backdrop-filter: blur(18px);
}

.landing-page.store-page .store-brand {
  color: var(--ink);
  font-family: Aldrich, sans-serif;
  text-shadow: 0 0 18px rgba(66, 245, 255, .55);
}

.landing-page.store-page .store-cart-button,
.landing-page.store-page .icon-button {
  border-color: rgba(126, 246, 255, .36);
  color: var(--ink);
  background: rgba(5, 8, 27, .82);
}

.landing-page.store-page .store-cart-button span {
  color: #06101d;
  background: linear-gradient(90deg, var(--c1), var(--c5));
}

.landing-page.store-page .store-hero h1,
.landing-page.store-page .store-toolbar h2,
.landing-page.store-page .cart-head h2,
.landing-page.store-page .product-detail-head h2,
.landing-page.store-page .product-body h3 {
  color: var(--ink);
  font-family: Aldrich, sans-serif;
}

.landing-page.store-page .store-hero p:not(.eyebrow),
.landing-page.store-page #storeStatus,
.landing-page.store-page .product-desc,
.landing-page.store-page .product-note,
.landing-page.store-page .product-detail-note,
.landing-page.store-page .product-detail-description,
.landing-page.store-page .cart-head p,
.landing-page.store-page .checkout-status,
.landing-page.store-page .cart-row small {
  color: var(--muted);
}

.landing-page.store-page .store-shipping-note,
.landing-page.store-page .product-price,
.landing-page.store-page .product-detail-price {
  color: var(--c1);
}

.landing-page.store-page .product-card,
.landing-page.store-page .cart-panel,
.landing-page.store-page .product-detail-panel {
  border-color: var(--line);
  background:
    linear-gradient(145deg, rgba(12, 15, 42, .94), rgba(4, 6, 20, .96)),
    radial-gradient(circle at 95% 0, rgba(255, 43, 214, .13), transparent 34%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 22px 60px rgba(0, 0, 0, .44);
}

.landing-page.store-page .product-card {
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.landing-page.store-page .product-image,
.landing-page.store-page .product-detail-gallery figure,
.landing-page.store-page .product-detail-empty,
.landing-page.store-page .cart-row,
.landing-page.store-page .cart-thumb {
  border-color: rgba(126, 246, 255, .22);
  background: rgba(5, 8, 27, .72);
}

.landing-page.store-page .product-image img,
.landing-page.store-page .cart-thumb img {
  mix-blend-mode: normal;
}

.landing-page.store-page .variant-select,
.landing-page.store-page .shipping-calc input {
  border-color: rgba(126, 246, 255, .34);
  color: var(--ink);
  background: rgba(5, 8, 27, .86);
}

.landing-page.store-page .detail-button,
.landing-page.store-page .shipping-calc .btn-secondary {
  border-color: rgba(126, 246, 255, .36);
  color: var(--ink);
  background: rgba(5, 8, 27, .82);
}

.landing-page.store-page .cart-footer {
  border-top-color: rgba(126, 246, 255, .22);
}

.landing-page.store-page .shipping-calc label,
.landing-page.store-page .cart-total,
.landing-page.store-page .cart-row strong {
  color: var(--ink);
}

.landing-page.store-page .cart-actions button {
  border-color: rgba(126, 246, 255, .3);
  color: var(--ink);
  background: rgba(255, 255, 255, .07);
}

.landing-page.store-page .cart-backdrop {
  background: rgba(2, 3, 12, .7);
}

@media (max-width: 760px) {
  .landing-page.store-page .store-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-page.store-page .store-nav {
    justify-content: flex-start;
  }
}
