/* Stratum store. Sits on top of melo.css (tokens, buttons, fonts) and only
   styles what the store itself needs. Every colour comes from the theme
   variables, so standard / soft / fall / winter all inherit properly. */

.shop-wrap {
  width: min(1160px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

/* ---------- top bar ---------- */

.shop-top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 9, 15, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

html[data-theme="soft"] .shop-top { background: rgba(11, 9, 20, 0.6); }
html[data-theme="fall"] .shop-top { background: rgba(20, 13, 8, 0.6); }
html[data-theme="winter"] .shop-top { background: rgba(7, 13, 22, 0.6); }

.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.shop-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.shop-logo img { width: 28px; height: 28px; }

.shop-logo-tag {
  padding: 0.16rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--mute);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  color: var(--mute);
}

.shop-nav a { transition: color 0.18s var(--ease); }
.shop-nav a:hover { color: var(--ink); }

.shop-acct {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink) !important;
}

.shop-acct img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- hero ---------- */

.shop-hero { position: relative; z-index: 1; padding: clamp(2.4rem, 6vw, 4.6rem) 0 clamp(1.6rem, 3vw, 2.4rem); }

.shop-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
}

.shop-hero h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 650;
  background: linear-gradient(180deg, var(--ink) 30%, rgba(233, 237, 245, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shop-dot { color: var(--brand-bright); -webkit-text-fill-color: var(--brand-bright); }

.shop-lede {
  max-width: 44rem;
  margin: 1.1rem 0 0;
  color: var(--mute);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
}

.shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.shop-chips li {
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 600;
}


/* ---------- layout ---------- */

.shop-main { position: relative; z-index: 1; padding-bottom: clamp(3rem, 7vw, 5.5rem); }

.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.78fr);
  gap: 1.15rem;
  align-items: start;
}

.shop-col { display: grid; gap: 1.15rem; align-content: start; }

.shop-panel {
  position: relative;
  padding: 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(8, 11, 18, 0.72);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-theme="fall"] .shop-panel { background: linear-gradient(180deg, rgba(255, 214, 170, 0.05), rgba(0, 0, 0, 0)) , rgba(27, 18, 11, 0.78); }
html[data-theme="winter"] .shop-panel { background: linear-gradient(180deg, rgba(214, 236, 255, 0.05), rgba(0, 0, 0, 0)), rgba(12, 22, 36, 0.78); }
html[data-theme="soft"] .shop-panel { background: linear-gradient(180deg, rgba(220, 205, 255, 0.05), rgba(0, 0, 0, 0)), rgba(20, 16, 34, 0.78); }

/* ---------- product card ---------- */

.shop-product {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.shop-product-media {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(60% 60% at 50% 30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 70%), rgba(0, 0, 0, 0.35);
}

.shop-product-media img { width: 68px; height: 68px; }

.shop-product-body { min-width: 0; }

.shop-product-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.shop-product-title h2 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.shop-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(90, 220, 160, 0.3);
  background: rgba(90, 220, 160, 0.1);
  color: #8bf0c4;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5adca0;
  box-shadow: 0 0 8px rgba(90, 220, 160, 0.9);
}

.shop-product-sub {
  margin: 0.45rem 0 0;
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.55;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.shop-tags li {
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---------- plan picker ---------- */

.shop-plans { border: 0; padding: 0; margin: 0; }

.shop-legend {
  padding: 0;
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.shop-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.shop-plan { display: block; position: relative; cursor: pointer; }

.shop-plan input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.shop-plan-card {
  display: grid;
  gap: 0.18rem;
  height: 100%;
  padding: 1rem 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 11, 18, 0.6);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.shop-plan:hover .shop-plan-card { border-color: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }

.shop-plan input:checked + .shop-plan-card {
  border-color: var(--brand-bright);
  background: linear-gradient(180deg, rgba(66, 130, 255, 0.16), rgba(0, 0, 0, 0) 70%), rgba(8, 11, 18, 0.75);
  box-shadow: 0 0 0 1px var(--brand-bright), 0 22px 44px -26px rgba(0, 0, 0, 0.95);
}

html[data-theme="fall"] .shop-plan input:checked + .shop-plan-card { background: linear-gradient(180deg, rgba(224, 122, 48, 0.18), rgba(0, 0, 0, 0) 70%), rgba(27, 18, 11, 0.85); }
html[data-theme="winter"] .shop-plan input:checked + .shop-plan-card { background: linear-gradient(180deg, rgba(108, 184, 255, 0.18), rgba(0, 0, 0, 0) 70%), rgba(12, 22, 36, 0.85); }

.shop-plan input:focus-visible + .shop-plan-card {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}

.shop-plan-flag {
  justify-self: start;
  margin-bottom: 0.15rem;
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-plan-name {
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.shop-plan-days { color: var(--mute); font-size: 0.76rem; font-weight: 600; }

.shop-plan-price {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.shop-plan-per { color: var(--faint); font-size: 0.68rem; font-weight: 600; }

/* ---------- content blocks ---------- */

.shop-section h3 {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.shop-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-list li { position: relative; padding-left: 1.15rem; }

.shop-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 10px rgba(92, 147, 255, 0.8);
}

.shop-list strong { display: block; font-size: 0.9rem; font-weight: 650; }
.shop-list span { display: block; margin-top: 0.12rem; color: var(--mute); font-size: 0.82rem; line-height: 1.45; }

.shop-steps {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.shop-steps li {
  position: relative;
  padding-left: 2.4rem;
  counter-increment: step;
}

.shop-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.shop-steps b { display: block; font-size: 0.9rem; font-weight: 650; }
.shop-steps span { display: block; margin-top: 0.1rem; color: var(--mute); font-size: 0.84rem; line-height: 1.5; }

.shop-faq details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
}

.shop-faq details:first-of-type { border-top: 0; padding-top: 0; }
.shop-faq details:last-of-type { padding-bottom: 0; }

.shop-faq summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  list-style: none;
}

.shop-faq summary::-webkit-details-marker { display: none; }

.shop-faq summary::after {
  content: "+";
  float: right;
  color: var(--faint);
  font-weight: 600;
}

.shop-faq details[open] summary::after { content: "–"; }

.shop-faq p { margin: 0.55rem 0 0; color: var(--mute); font-size: 0.84rem; line-height: 1.55; }

/* ---------- summary ---------- */

.shop-aside { position: sticky; top: 84px; }

.shop-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.shop-summary-head h2 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.02em; }

.shop-summary-chip {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mute);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-sum { display: grid; gap: 0.5rem; padding-bottom: 0.95rem; border-bottom: 1px dashed rgba(255, 255, 255, 0.14); }

.shop-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 0.86rem; }
.shop-sum-row span { color: var(--mute); }
.shop-sum-row strong { font-weight: 650; text-align: right; }

.shop-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.9rem;
}

.shop-total span { color: var(--mute); font-size: 0.86rem; }

.shop-total strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.shop-pay { width: 100%; min-height: 48px; font-size: 0.95rem; }

.shop-pay[disabled] { opacity: 0.65; cursor: progress; }

.shop-fineprint { margin: 0.7rem 0 0; color: var(--faint); font-size: 0.76rem; line-height: 1.5; }

.shop-trust {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.shop-trust li { position: relative; padding-left: 1.05rem; color: var(--mute); font-size: 0.76rem; font-weight: 600; }

.shop-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--brand-bright);
  border-bottom: 1.6px solid var(--brand-bright);
  transform: rotate(-45deg);
}

.shop-aside-note { margin: 0; color: var(--faint); font-size: 0.78rem; line-height: 1.5; }
.shop-aside-note a { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- note banner ---------- */

.shop-note {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
  font-weight: 500;
}

.shop-note[data-tone="ok"] { border-color: rgba(90, 220, 160, 0.35); background: rgba(90, 220, 160, 0.1); color: #b6f7da; }
.shop-note[data-tone="err"] { border-color: rgba(255, 110, 110, 0.35); background: rgba(255, 110, 110, 0.1); color: #ffc2c2; }

/* ---------- footer ---------- */

.shop-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0 2.4rem;
}

.shop-foot-inner { display: grid; gap: 1.1rem; }

.shop-foot-brand { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.shop-foot-brand p { color: var(--faint); font-size: 0.8rem; }

.shop-foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.15rem; font-size: 0.84rem; color: var(--mute); }
.shop-foot-links a:hover { color: var(--ink); }

.shop-legal { color: var(--faint); font-size: 0.76rem; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-aside { position: static; order: -1; }
  .shop-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shop-nav a:not(.shop-acct) { display: none; }
  .shop-product { flex-direction: column; }
  .shop-product-media { width: 76px; height: 76px; }
  .shop-product-media img { width: 54px; height: 54px; }
  .shop-list { grid-template-columns: 1fr; }
  .shop-hero h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .shop-panel { padding: 1.05rem; border-radius: 16px; }
}

@media (max-width: 420px) {
  .shop-plan-grid { grid-template-columns: 1fr; }
  .shop-plan-card { grid-template-columns: 1fr auto; align-items: center; }
  .shop-plan-days { grid-column: 1; }
  .shop-plan-price { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .shop-plan-per { grid-column: 2; text-align: right; }
  .shop-plan-flag { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-plan:hover .shop-plan-card { transform: none; }
}
