/* shop_a runtime fixes: keep the uploaded static style stable without relying on CDN Tailwind config. */
:root {
  --shop-brand: #e1251b;
  --shop-brand-dark: #b31d15;
  --shop-brand-light: #ffeded;
}

.bg-brand { background-color: var(--shop-brand) !important; }
.hover\:bg-brand:hover { background-color: var(--shop-brand) !important; }
.hover\:bg-brand-dark:hover { background-color: var(--shop-brand-dark) !important; }
.bg-brand-dark { background-color: var(--shop-brand-dark) !important; }
.bg-brand-light { background-color: var(--shop-brand-light) !important; }
.text-brand { color: var(--shop-brand) !important; }
.hover\:text-brand:hover { color: var(--shop-brand) !important; }
.border-brand { border-color: var(--shop-brand) !important; }
.focus\:outline-brand:focus { outline-color: var(--shop-brand) !important; }
.focus\:ring-brand:focus { --tw-ring-color: var(--shop-brand) !important; }
.shadow-brand\/10 { box-shadow: 0 10px 15px -3px rgb(225 37 27 / .10), 0 4px 6px -4px rgb(225 37 27 / .10) !important; }
.shadow-brand\/20 { box-shadow: 0 10px 15px -3px rgb(225 37 27 / .20), 0 4px 6px -4px rgb(225 37 27 / .20) !important; }

.shop-a-loading,
.shop-a-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  border: 1px dashed #e2e8f0;
  border-radius: 18px;
  background: #fff;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.shop-a-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-a-primary-btn {
  background: var(--shop-brand) !important;
  color: #fff !important;
  border-color: var(--shop-brand) !important;
}

.shop-a-primary-btn:hover {
  background: var(--shop-brand-dark) !important;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
/* 未接入真实规格、评价数据前，不展示模板中的演示内容。 */
#spec-options,
#color-options,
[data-tab="reviews"],
#tab-content-reviews {
    display: none !important;
}

/* 数据返回前隐藏模板静态示例，避免先显示假数据再跳成真实内容。 */
.shop-a-hydrating {
  position: relative;
  min-height: 44px;
  overflow: hidden;
}

.shop-a-hydrating > * {
  visibility: hidden !important;
}

.shop-a-hydrating::after {
  content: "正在加载站点数据...";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

body.shop-a-detail-hydrating > main {
  visibility: hidden !important;
}

body.shop-a-detail-hydrating::after {
  content: "正在加载商品详情...";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 60;
  transform: translate(-50%, -50%);
  min-width: 240px;
  padding: 28px 36px;
  border: 1px dashed #e2e8f0;
  border-radius: 18px;
  background: #fff;
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgb(15 23 42 / .08);
}

/* 搜索按钮在不同组合模板和长站点名称下都保持横向展示，避免“搜索”两字竖排。 */
form[action="/page/search"] button[type="submit"],
#search-action-form button[type="submit"] {
  flex: 0 0 auto;
  min-width: 96px;
  white-space: nowrap;
  justify-content: center;
}

form[action="/page/search"] button[type="submit"] span,
#search-action-form button[type="submit"] span {
  display: inline-block;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

#detail-contact-block[hidden] {
  display: none !important;
}

.detail-contact-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #fee2e2;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 100%);
  box-shadow: 0 10px 28px rgb(225 37 27 / .06);
}

.detail-contact-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-brand);
  background: #fff;
  border: 1px solid #fecaca;
}

.detail-contact-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.detail-contact-subtitle {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.detail-contact-values {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  color: #475569;
  font-size: 12px;
  line-height: 1.6;
}

.detail-contact-label {
  color: #94a3b8;
  font-weight: 700;
}

.detail-contact-value {
  min-width: 0;
  color: #334155;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.detail-contact-note {
  display: inline-flex;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 10px;
  font-weight: 800;
  vertical-align: middle;
}
