/* 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);
}
