.stm {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: #1e293b;
  line-height: 1.6;
}

.stm-shop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
  margin-top: 1.25rem;
}

.stm h1 {
  margin: 0 0 1rem;
  padding: 0.9rem 1.25rem;
  font-family: "Plus Jakarta Sans", "Figtree", sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #0d6e6e 0%, #2c5282 100%);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(13, 110, 110, 0.25);
}

.stm > p {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.stm-note {
  margin: 1.1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border-left: 5px solid #d97706;
  background: #fffbeb;
  color: #1e293b;
}

.stm-disclaimer {
  margin-top: 0.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.stm-disclaimer h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: #0f3a4a;
}

.stm-disclaimer p {
  margin: 0 0 0.75rem;
}

.stm-disclaimer p:last-child {
  margin-bottom: 0;
}

.stm-add,
.stm-order,
.stm-remove {
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.stm-add,
.stm-remove {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

.stm-add {
  background: #1d4e89;
}

.stm-add:hover {
  background: #163a68;
}

.stm-add.is-added,
.stm-add.is-added:hover {
  background: #15803d;
}

.stm-remove {
  background: #b91c1c;
}

.stm-remove:hover {
  background: #991b1b;
}

.stm-order {
  background: #c2410c;
}

.stm-order:hover {
  background: #9a3412;
}

.stm-order:disabled,
.stm-order:disabled:hover {
  background: #94a3b8;
  cursor: not-allowed;
}

#stmCart {
  scroll-margin-top: 96px;
}

.stm-cart {
  position: sticky;
  top: 92px;
  z-index: 20;
  margin: 0;
  padding: 1.1rem 1.15rem;
  min-width: 0;
  max-height: calc(100vh - 110px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #cce7e3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 58, 74, 0.12);
}

.stm-cart h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: #0f3a4a;
}

.stm-cart-empty {
  margin: 0 0 0.8rem;
  color: #64748b;
}

.stm-cart ul {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
}

.stm-cart li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name price"
    "qty remove";
  column-gap: 0.75rem;
  row-gap: 0.4rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.stm-line-name {
  grid-area: name;
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.stm-line-price {
  grid-area: price;
  justify-self: end;
  white-space: nowrap;
  font-weight: 700;
  color: #0f766e;
}

.stm-cart input[type="number"] {
  grid-area: qty;
  width: 4.5rem;
  justify-self: start;
  box-sizing: border-box;
  padding: 0.35rem 0.4rem;
  border: 1px solid #c9d6ea;
  border-radius: 8px;
}

.stm-cart .stm-remove {
  grid-area: remove;
  justify-self: end;
}

.stm-cart-total {
  font-weight: 700;
  color: #0f766e;
}

.stm-order {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 1.1rem;
  font-size: 1rem;
}

.stm-field {
  margin-top: 0.75rem;
}

.stm-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.stm-field input {
  width: 100%;
  max-width: 420px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c9d6ea;
  border-radius: 10px;
  font-size: 1rem;
}

.stm-field-error {
  margin: 0.35rem 0 0;
  color: #b91c1c;
  font-weight: 600;
}

.stm-order-ok {
  margin: 0.8rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}

.stm-signup-note {
  display: block;
  margin-top: 0.45rem;
}

.stm-order-ok a {
  color: #1d4e89;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .stm-shop {
    grid-template-columns: 1fr;
    margin-bottom: 240px;
  }

  .stm-cart {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    z-index: 35;
    max-height: 42vh;
  }
}

