/* Shop / auth overlay — Planarise storefront */
.shop-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.shop-fab__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.shop-fab__btn--ghost {
  background: #fff;
  color: #111;
  border: 1px solid #e5e7eb;
}

.shop-fab__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #006399;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.shop-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 15, 16, 0.45);
  display: none;
  align-items: stretch;
  justify-content: flex-end;
}

.shop-overlay.is-open {
  display: flex;
}

.shop-panel {
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  font-family: Inter, system-ui, sans-serif;
}

.shop-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #eaebeb;
}

.shop-panel__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.shop-panel__close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
}

.shop-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid #eaebeb;
  overflow-x: auto;
}

.shop-tabs button {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.shop-tabs button.is-active {
  background: #111;
  color: #fff;
}

.shop-panel__body {
  flex: 1;
  overflow: auto;
  padding: 16px 18px 24px;
}

.shop-msg {
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f7f8;
  color: #333;
}

.shop-msg--error {
  background: #fff1f1;
  color: #b42318;
}

.shop-msg--ok {
  background: #ecfdf3;
  color: #027a48;
}

.shop-form {
  display: grid;
  gap: 12px;
}

.shop-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #444;
}

.shop-form input {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.shop-form input:focus {
  outline: 2px solid rgba(0, 99, 153, 0.25);
  border-color: #006399;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.shop-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: #111;
  color: #fff;
}

.shop-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-btn--ghost {
  background: #f4f4f5;
  color: #111;
}

.shop-btn--danger {
  background: #fff1f1;
  color: #b42318;
}

.shop-user {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

.shop-list {
  display: grid;
  gap: 12px;
}

.shop-card {
  border: 1px solid #eaebeb;
  border-radius: 12px;
  padding: 14px;
  background: #fafafa;
}

.shop-card__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.shop-card__meta {
  font-size: 12px;
  color: #777;
  margin: 0 0 10px;
}

.shop-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-card__price {
  font-size: 15px;
  font-weight: 600;
}

.shop-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-qty input {
  width: 56px;
  text-align: center;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 6px;
  font-size: 13px;
}

.shop-total {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eaebeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.shop-empty {
  text-align: center;
  color: #777;
  font-size: 14px;
  padding: 32px 12px;
}

.shop-order {
  border: 1px solid #eaebeb;
  border-radius: 12px;
  padding: 12px 14px;
}

.shop-order__no {
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}

.shop-order__meta {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

@media (max-width: 520px) {
  .shop-panel {
    width: 100%;
  }
  .shop-fab {
    right: 12px;
    bottom: 12px;
  }
}
