.shopbody {
  background: #f5f6f3;
}
.accountauth { max-width: 460px; margin: 36px auto; }
.accountauth .panelbody { padding: 32px; }
.accountauth h1 { font-size: 28px; margin: 12px 0 26px; }
.accountsubmit { width: 100%; margin-top: 12px; }
.accountlinks { display: flex; justify-content: space-between; margin-top: 16px; }
.accountgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.accountgrid .panel { margin: 0; }
.accountgrid .actions { flex-wrap: wrap; }
.accountemail { overflow-wrap: anywhere; }
.referralcode { font: 600 26px ui-monospace, monospace; letter-spacing: 2px; margin: 4px 0 20px; overflow-wrap: anywhere; }
.accountempty { padding: 24px 0; color: var(--muted); }
.invitationlist .subline { display: block; margin-top: 6px; }
.accountsecurity { padding: 20px 24px; cursor: pointer; font-weight: 600; }
#passwordform { max-width: 440px; }
@media (max-width: 620px) {
  .accountgrid { grid-template-columns: 1fr; }
  .accountauth { margin: 16px auto; }
  .accountauth .panelbody { padding: 24px; }
}
.shopnav {
  max-width: 1200px;
  margin: auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.shopnav .brand {
  text-decoration: none;
}
.shopnav nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.shopmain {
  max-width: 1200px;
  margin: auto;
  padding: 34px 32px 64px;
  min-height: 70vh;
}
.shophero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 30px 0 42px;
}
.shophero h1 {
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -1.5px;
  margin: 16px 0;
}
.shophero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 500px;
}
.shopsteps {
  min-width: 255px;
  border-left: 1px solid #d7dfd6;
  padding-left: 32px;
  display: grid;
  gap: 20px;
}
.shopstep {
  display: flex;
  gap: 16px;
  align-items: center;
}
.shopstep b {
  color: #79906b;
  font-size: 12px;
  letter-spacing: 2px;
}
.shopstep span {
  font-size: 14px;
}
.shopfilters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.shopfilters .active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.productsgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.productcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 405px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.productcard:hover {
  transform: translateY(-3px);
  border-color: #b3c6b4;
}
.producttop {
  padding: 25px 26px 10px;
}
.producticon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #edf3e8;
  color: var(--green);
  font-size: 24px;
  margin-bottom: 24px;
}
.productcard h2 {
  font-size: 24px;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.productcard p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  min-height: 24px;
}
.productdetails {
  margin: 15px 26px 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 12px;
}
.productdetails li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.productdetails li::before {
  content: "✓";
  color: var(--green);
}
.productbottom {
  margin-top: auto;
  padding: 20px 26px;
  background: #fafbf9;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shopprice {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
}
.shopprice small {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 3px;
  color: var(--muted);
}
.shopfooter {
  max-width: 1136px;
  margin: auto;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.shopnotice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e6ddc6;
  background: #f7f1e3;
  padding: 13px 16px;
  border-radius: 9px;
  color: #817043;
  margin-bottom: 14px;
  font-size: 13px;
}
.shopheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 28px;
  gap: 12px;
}
.shopheading h1 {
  margin: 0;
  font-size: 30px;
}
.shopheading p {
  margin: 8px 0 0;
  color: var(--muted);
}
.shopordergrid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr);
  gap: 24px;
  align-items: start;
}
.shopordergrid .panel {
  margin: 0 0 20px;
}
.shoporderid {
  font:
    12px ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.receiptkey {
  background: #f4f6f1;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
  overflow-wrap: anywhere;
  font:
    12px ui-monospace,
    monospace;
  margin: 10px 0 14px;
  user-select: all;
}
.codeitem {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.codeitem:first-child {
  border-top: 0;
  padding-top: 0;
}
.codeitem code {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
  user-select: all;
  margin: 10px 0 16px;
}
.codeitem .sub {
  font-size: 12px;
}
.codeitem .actions {
  flex-wrap: wrap;
}
.paychannels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.paychannels button {
  font-size: 12px;
}
.paidmark {
  display: inline-flex;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: var(--green);
  font-size: 22px;
}
.orderlist {
  display: grid;
  gap: 14px;
}
.orderrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 22px;
}
.orderrow h2 {
  font-size: 17px;
  margin: 0 0 9px;
}
.orderrow .sub {
  font-size: 12px;
}
.orderrow .actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.lookupbox {
  max-width: 550px;
  margin: 35px auto;
}
.shopdialog {
  width: min(520px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
}
.shopdialog h2 {
  font-size: 24px;
  margin-top: 0;
}
.shopdialog .actions {
  justify-content: flex-end;
}
.shopdialog .factrow:last-of-type {
  margin-bottom: 20px;
}
.shopempty {
  padding: 80px 25px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.shopempty h2 {
  font-size: 22px;
}
.shopempty p {
  color: var(--muted);
}
.shopnav .brand {
  color: var(--ink);
}
@media (max-width: 1000px) {
  .productsgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shophero {
    gap: 20px;
  }
  .shopsteps {
    min-width: 220px;
    padding-left: 24px;
  }
  .shopfooter {
    margin: 0 32px;
  }
  .shopordergrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .shopnav {
    padding: 18px 16px;
    align-items: flex-start;
  }
  .shopnav .brand {
    font-size: 18px;
    gap: 8px;
  }
  .shopnav .brandmark {
    width: 32px;
    height: 32px;
  }
  .shopnav nav {
    gap: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 210px;
  }
  .shopnav nav button,
  .shopnav nav a {
    font-size: 12px;
    padding: 9px;
  }
  .shopmain {
    padding: 18px 16px 36px;
  }
  .shophero {
    display: block;
    padding: 15px 0 28px;
  }
  .shophero h1 {
    font-size: 36px;
  }
  .shopsteps {
    display: flex;
    justify-content: space-between;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding: 20px 0 0;
    gap: 8px;
    min-width: 0;
  }
  .shopstep {
    gap: 7px;
  }
  .shopstep span {
    font-size: 12px;
  }
  .productsgrid {
    grid-template-columns: 1fr;
  }
  .productcard {
    min-height: 350px;
  }
  .producticon {
    margin-bottom: 18px;
  }
  .shopfooter {
    margin: 0 16px;
    gap: 10px;
  }
  .shopfooter span {
    max-width: 210px;
    line-height: 1.6;
  }
  .orderrow {
    align-items: flex-start;
    padding: 18px;
    gap: 12px;
  }
  .orderrow .actions {
    min-width: 80px;
  }
  .shopheading h1 {
    font-size: 26px;
  }
  .shopnotice {
    font-size: 12px;
  }
  .shoporderid {
    font-size: 11px;
  }
  .shopheading {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .productcard {
    transition: none;
  }
  .productcard:hover {
    transform: none;
  }
}
.productcover { aspect-ratio: 8 / 5; background: #edf2e9; border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.productcover img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.productcovericon { font-size: 64px; font-weight: 400; color: var(--green); opacity: .7; }
.checkoutcover { max-height: 220px; border: 1px solid var(--line); border-radius: 12px; margin: 18px 0; }
