/* 同城实体店（ADR-0195）：卡片、店的页面、登记表。别的样子用集市的（market.css）。网站和原型同一个样子 */

.tag.gray { background: var(--soft, #eee8de); color: var(--muted, #7a7266); }

.note-box {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft, #eee8de);
  font-size: 14px;
  line-height: 1.5;
}

.note-box.warn { background: #f8e6df; color: #8c3a24; }

.shop-where {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 12px;
}

.shop-where .craft-loc { flex: 1; min-width: 0; margin: 0; }

.shop-here {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  white-space: nowrap;
}

.shop-here .icon { width: 16px; height: 16px; }

.shop-list { margin-top: 14px; }

/* 第二列要 minmax(0, 1fr)：不然不折行的那一行会把卡片撑出屏幕（老板截图里右边被截掉就是这样） */
.shop-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}

/* 店面照片统一横 4:3（ADR-0196 第 2 条） */
.shop-pic {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
}

.shop-card-body { display: grid; gap: 4px; align-content: start; min-width: 0; }

.shop-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }

.shop-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-meta, .shop-hours, .shop-sells, .shop-addr {
  margin: 0;
  color: var(--muted, #7a7266);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
}

.shop-meta, .shop-hours { color: var(--ink, #1a1814); white-space: nowrap; text-overflow: ellipsis; }

/* 一行放不下就两行，两行还放不下才省略 */
.shop-sells, .shop-addr {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: break-all;
}

/* 现场拍店面（ADR-0196 第 2 条）：整屏黑底，中间一个横 4:3 的拍框，三等分线加一条对齐线 */
.shop-cam {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: #111;
  color: #fff;
}

.shop-cam-title { margin: 0; text-align: center; font-size: 16px; font-weight: 600; }

.shop-cam-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #222;
}

.shop-cam-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.shop-cam-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85);
  border-radius: 12px;
  background:
    linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% + .5px), transparent calc(33.33% + .5px)),
    linear-gradient(to right, transparent calc(66.66% - .5px), rgba(255, 255, 255, .45) calc(66.66% - .5px), rgba(255, 255, 255, .45) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% + .5px), transparent calc(33.33% + .5px)),
    linear-gradient(to bottom, transparent calc(66.66% - .5px), rgba(255, 255, 255, .45) calc(66.66% - .5px), rgba(255, 255, 255, .45) calc(66.66% + .5px), transparent calc(66.66% + .5px));
}

/* 门头：招牌对齐上面那条黄线；店里：地平线对齐中间那条黄线 */
.shop-cam-guide::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  height: 2px;
  background: #e9b949;
  top: 50%;
}

.shop-cam-guide.front::after { top: 22%; }

.shop-cam-tip { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .85); }

.shop-cam-acts { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }

.shop-cam-acts .btn { justify-self: start; color: #1a1814; }

.shop-shutter {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px #111;
  cursor: pointer;
}

.shop-shutter:disabled { opacity: .5; }

button.shop-up.add { border: 0; font: inherit; }

/* 顶上的类型小片：一行左右滑，不换行占地方 */
.shop-search { width: 100%; margin-top: 10px; }
.chips.shop-types { flex-wrap: nowrap; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; scrollbar-width: none; }
.chips.shop-types::-webkit-scrollbar { display: none; }
.chips.shop-types button { flex: none; }
.chips.shop-sorts { margin-top: 8px; align-items: center; }
.shop-type-pick button.extra { opacity: .75; }

.shop-dist-tag { align-self: center; color: var(--ink, #1a1814); font-size: 12px; white-space: nowrap; }

.shop-head { display: grid; gap: 6px; margin-top: 12px; }

.shop-head .page-title { margin: 0; }

.shop-dist { margin: 6px 0 0; color: var(--muted, #7a7266); font-size: 14px; }

.shop-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.shop-acts .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 120px;
  text-decoration: none;
}

.shop-acts .btn .icon { width: 18px; height: 18px; }

.shop-info { margin: 0 0 12px; }

.shop-info dd { white-space: pre-line; word-break: break-all; }

.shop-licence {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

.shop-licence img {
  width: 92px;
  height: 64px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft, #eee8de);
}

.shop-licence-text { display: grid; gap: 2px; font-size: 13px; color: var(--muted, #7a7266); }

.shop-licence-text strong { font-size: 15px; color: var(--ink, #1a1814); }

.licence-full { display: block; width: 100%; border-radius: 10px; margin: 8px 0; overflow: hidden; }

/* 原型里画的示意图（门头、店里、执照） */
.shop-licence-pic { width: 92px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; background: var(--soft, #eee8de); }
.shop-licence-pic svg, .licence-full svg { display: block; width: 100%; height: 100%; }
.pic svg.shop-draw { position: absolute; inset: 0; width: 100%; height: 100%; }

.shop-owner .kb { margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; background: #eee8de; color: #6f675d; }
.shop-owner .kb.good { background: #e6f0e4; color: #3d6b37; }
.shop-owner .kb.best { background: #f4ead2; color: #8a6418; }

.shop-owner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 4px;
  font-size: 14px;
  color: var(--muted, #7a7266);
}

.shop-owner-name { color: var(--ink, #1a1814); font-weight: 600; }

.shop-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.shop-post {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}

.shop-post img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shop-post-kind {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
}

.shop-status { padding: 14px; display: grid; gap: 6px; margin-top: 12px; }

.shop-status p { margin: 0; line-height: 1.5; }

.shop-status .shop-acts { margin: 6px 0 0; }

.city-search { width: 100%; margin: 4px 0 8px; }

.city-list { max-height: 55vh; overflow-y: auto; }

.city-prov { margin: 10px 0 4px; color: var(--muted, #7a7266); font-size: 13px; }

.shop-days { margin-bottom: 8px; }

.shop-times {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-times span { flex: none; font-size: 14px; color: var(--muted, #7a7266); }

.shop-times input { flex: 1; min-width: 0; }

.shop-uploads { display: flex; flex-wrap: wrap; gap: 8px; }

.shop-up {
  position: relative;
  width: 96px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft, #eee8de);
}

.shop-up img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shop-up-x {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
}

.shop-up-x .icon { width: 14px; height: 14px; stroke: #fff; }

.shop-up.add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  box-shadow: inset 0 0 0 1.5px #d9d1c3;
  background: transparent;
  color: var(--muted, #7a7266);
  font-size: 12px;
  cursor: pointer;
}

.shop-up.add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.shop-up.add.busy { opacity: .5; }

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

.shop-spot.done { box-shadow: inset 0 0 0 1.5px var(--green, #3d6b37); color: var(--green, #3d6b37); }

.shop-form + .btn.primary { margin: 16px 0 24px; }

.sheet-card .btn.block + .btn.block { margin-top: 8px; }

.sheet-card a.btn.block { display: block; text-align: center; text-decoration: none; }

@media (max-width: 370px) {
  .shop-card { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .shop-pic { width: 96px; height: 72px; }
}
