:root {
  --bg: #edf0f5;
  --ink: #0f1f34;
  --ink-soft: #5e6f87;
  --line: #d4dce9;
  --panel: #ffffff;
  --top-1: #111a2a;
  --top-2: #23344a;
  --accent: #f7991d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(900px 520px at 100% -20%, #dbe3f3 0%, transparent 70%), var(--bg);
}

.store-page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.store-page-top {
  border-radius: 15px;
  padding: 12px;
  background: linear-gradient(95deg, var(--top-1), var(--top-2));
  color: #edf2fb;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.store-page-brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.store-page-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  color: #111827;
  background: linear-gradient(145deg, #fff, #dbe2ef);
}

.store-page-brand strong {
  display: block;
}

.store-page-brand small {
  color: #bbc9dc;
  font-size: 0.75rem;
}

.store-page-search {
  display: grid;
  grid-template-columns: 1fr auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.store-page-search input {
  border: none;
  min-height: 42px;
  padding: 0 12px;
  font: inherit;
}

.store-page-search button {
  border: none;
  min-height: 42px;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  color: #1a2638;
  background: linear-gradient(130deg, #ffc165, var(--accent));
}

.store-page-mode {
  display: inline-flex;
  gap: 8px;
}

.store-page-mode a {
  text-decoration: none;
  color: #e5edfa;
  border: 1px solid #3a4d68;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.83rem;
  font-weight: 700;
}

.store-page-mode a.active {
  background: #fff;
  color: #121b2c;
  border-color: #fff;
}

.store-subnav {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-subnav a {
  text-decoration: none;
  color: #334862;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 700;
}

.store-subnav a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, #3e63dd, #274ecf);
}

.store-page-header,
.store-page-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
}

.store-kicker {
  margin: 0;
  color: #6b7d97;
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.store-page-header h1 {
  margin: 7px 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.store-page-header p {
  margin: 0;
  color: var(--ink-soft);
}

.store-page-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.store-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.store-card p {
  margin: 0;
  color: #70829e;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.store-card strong {
  display: block;
  margin-top: 5px;
  font-family: "Sora", sans-serif;
}

.store-page-panel h2 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
}

.store-page-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #4f627f;
}

.store-page-panel li { margin-bottom: 7px; }

.store-page-panel code {
  background: #f3f6fb;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.82em;
}

.store-product-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.store-product-image-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafd;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.store-product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-product-no-image {
  color: #8a99b1;
  font-weight: 700;
}

.store-product-meta p {
  margin: 0 0 8px;
  color: #4d607e;
}

.store-product-description {
  display: grid;
  gap: 10px;
  line-height: 1.45;
}

.store-product-description-layout {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.store-product-description-card {
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #f8faff;
  padding: 11px 12px;
  display: grid;
  gap: 7px;
}

.store-product-description-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1f3354;
}

.store-product-description-card p {
  margin: 0;
  color: #4c617f;
}

.store-product-description-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: #4c617f;
}

.store-product-description-list li {
  margin: 0;
}

.store-product-description-empty {
  color: #6d7f99;
  font-style: italic;
}

.store-related-summary {
  margin: 0 0 10px;
  color: #60718a;
}

.store-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.store-related-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.store-related-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.store-related-card p {
  margin: 0;
  color: #5c6e89;
  font-size: 0.83rem;
}

.store-related-price {
  font-weight: 800;
  color: #1b2a43;
}

.store-related-image-wrap {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f2f6fc;
  display: grid;
  place-items: center;
}

.store-related-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-related-no-image {
  color: #8d9ab0;
  font-size: 0.82rem;
  font-weight: 700;
}

.store-related-card a {
  text-decoration: none;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: linear-gradient(140deg, #3e63dd, #274ecf);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.store-product-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce4f1;
  display: grid;
  gap: 8px;
}

.store-product-actions label {
  font-size: 0.85rem;
  color: #536680;
  font-weight: 700;
}

.store-product-buy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.store-product-buy-row input {
  width: 95px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #cfd9e8;
  padding: 0 10px;
  font: inherit;
}

.store-product-buy-row button,
.store-primary-button {
  min-height: 40px;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, #3e63dd, #274ecf);
  cursor: pointer;
}

.store-product-buy-row button:disabled,
.store-primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.store-inline-feedback {
  margin: 0;
  min-height: 20px;
  color: #5c708f;
  font-size: 0.84rem;
  font-weight: 700;
}

.store-inline-feedback.is-success {
  color: #15803d;
}

.store-inline-feedback.is-error {
  color: #b42318;
}

.store-primary-link,
.store-secondary-link {
  text-decoration: none;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.store-primary-link {
  color: #fff;
  background: linear-gradient(140deg, #3e63dd, #274ecf);
}

.store-secondary-link {
  color: #304867;
  background: #f3f6fb;
  border: 1px solid #d8e1ef;
}

.store-danger-button,
.store-ghost-button {
  min-height: 38px;
  width: fit-content;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 12px;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 800;
  cursor: pointer;
}

.store-danger-button {
  color: #b42318;
  border-color: #f4d0cd;
  background: #fff6f5;
}

.store-ghost-button {
  color: #324a67;
  border-color: #d6dfed;
  background: #f5f8fc;
}

.store-muted-text {
  margin: 0;
  color: #5f708a;
  font-size: 0.84rem;
}

.store-empty-state {
  display: grid;
  gap: 8px;
  text-align: left;
}

.store-empty-state h2 {
  margin: 0;
}

.store-empty-state p {
  margin: 0;
  color: #5a6d88;
}

.store-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.store-cart-list {
  display: grid;
  gap: 10px;
}

.store-cart-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 220px;
  gap: 10px;
  align-items: center;
}

.store-cart-item-image {
  border: 1px solid #dce5f2;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f6fc;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: #8395af;
  font-size: 0.78rem;
  font-weight: 700;
}

.store-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-cart-item-main h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.store-cart-item-main p {
  margin: 0 0 5px;
  color: #5d6f89;
  font-size: 0.84rem;
}

.store-cart-item-controls {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.store-cart-item-controls label {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  color: #5c6f88;
  font-weight: 700;
}

.store-cart-item-controls input {
  width: 90px;
  min-height: 36px;
  border: 1px solid #d0d9e8;
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
}

.store-cart-item-controls p {
  margin: 0;
  color: #556883;
  font-size: 0.82rem;
}

.store-cart-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
  display: grid;
  gap: 10px;
  align-content: start;
  height: fit-content;
}

.store-cart-summary h2 {
  margin: 0;
}

.store-cart-summary dl {
  margin: 0;
  display: grid;
  gap: 7px;
}

.store-cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #51647f;
  font-size: 0.9rem;
}

.store-cart-summary dl dt,
.store-cart-summary dl dd {
  margin: 0;
}

.store-cart-summary dl .total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #d7e0ed;
  color: #172942;
  font-weight: 800;
}

.store-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

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

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

.store-field {
  display: grid;
  gap: 4px;
  font-size: 0.83rem;
  color: #536781;
  font-weight: 700;
}

.store-field-full {
  grid-column: 1 / -1;
}

.store-field input,
.store-field select,
.store-field textarea {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #d0d9e8;
  padding: 8px 10px;
  font: inherit;
}

.store-field textarea {
  min-height: 88px;
  resize: vertical;
}

.store-mini-items {
  display: grid;
  gap: 8px;
}

.store-mini-item {
  border: 1px solid #dce4f1;
  border-radius: 10px;
  background: #fff;
  padding: 9px;
}

.store-mini-item p {
  margin: 0;
  color: #5a6d88;
  font-size: 0.83rem;
}

.store-mini-item p.name {
  color: #172941;
  font-weight: 700;
  margin-bottom: 4px;
}

.store-order-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.store-order-head h2 {
  margin: 4px 0;
}

.store-order-badge {
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  background: #f4f7fc;
  padding: 8px 12px;
  color: #2d4665;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .store-page-top { grid-template-columns: 1fr; }
  .store-page-cards { grid-template-columns: 1fr; }
  .store-product-layout { grid-template-columns: 1fr; }
  .store-cart-layout { grid-template-columns: 1fr; }
  .store-checkout-layout { grid-template-columns: 1fr; }
  .store-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .store-cart-item {
    grid-template-columns: 1fr;
  }

  .store-product-buy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .store-order-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
