/* shanghai theme: corporate layout inspired by 1dreamai.com */

:root{
  --sh-bg:#f5f7fb;
  --sh-card:#ffffff;
  --sh-text:#0f172a;
  --sh-muted:#64748b;
  --sh-border:#e6ebf2;
  --sh-primary:#e24b3b;
  --sh-primary-700:#c93b2d;
}

body.sh-site{
  background:var(--sh-bg);
  color:var(--sh-text);
}

/* header */
.sh-header{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--sh-border);
}
.sh-header .sh-inner{
  display:flex;
  align-items:center;
  gap:18px;
  padding:12px 16px;
}
.sh-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex-shrink:0;
}
.sh-brand__logo{
  height:34px;
  width:auto;
  object-fit:contain;
}
.sh-brand__name{
  font-weight:800;
  font-size:16px;
  color:var(--sh-text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sh-nav{
  display:none;
  align-items:center;
  gap:14px;
  flex-shrink:0;
}
@media (min-width: 1024px){
  .sh-nav{ display:flex; }
}
.sh-nav a{
  font-size:13px;
  color:var(--sh-muted);
  text-decoration:none;
  padding:8px 6px;
  border-radius:10px;
}
.sh-nav a:hover{
  color:var(--sh-primary);
  background:transparent;
}

.sh-search{
  flex:1;
  min-width:160px;
  display:flex;
  justify-content:center;
}
.sh-search .sh-searchbox{
  position:relative;
  width:100%;
  max-width:420px;
}
.sh-search input[type="search"]{
  width:100%;
  height:38px;
  border:1px solid var(--sh-border);
  border-radius:9999px;
  padding:0 14px 0 36px;
  background:#fff;
  outline:none;
  font-size:13px;
}
.sh-search input[type="search"]:focus{
  border-color:rgba(226,75,59,.55);
  box-shadow:0 0 0 4px rgba(226,75,59,.12);
}
.sh-search .sh-icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:#94a3b8;
}
.sh-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.sh-link{
  font-size:13px;
  color:var(--sh-muted);
  text-decoration:none;
  padding:8px 10px;
  border-radius:9999px;
  border:1px solid transparent;
}
.sh-link:hover{
  color:var(--sh-primary);
  background:transparent;
}
.sh-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 14px;
  border-radius:9999px;
  font-size:13px;
  font-weight:700;
  border:1px solid var(--sh-border);
  background:#fff;
  color:var(--sh-text);
  text-decoration:none;
}
.sh-btn--primary{
  border-color:rgba(226,75,59,.20);
  background:linear-gradient(180deg, var(--sh-primary) 0%, var(--sh-primary-700) 100%);
  color:#fff;
  box-shadow:0 10px 24px rgba(226,75,59,.18);
}
.sh-btn--primary:hover{ filter:brightness(0.98); }

/* page blocks */
.sh-wrap{ padding:18px 16px 34px; }
.sh-card{
  background:var(--sh-card);
  border:1px solid var(--sh-border);
  border-radius:16px;
  box-shadow:0 8px 26px rgba(15,23,42,.06);
}
.sh-card--plain{
  border:0;
  box-shadow:none;
}
.sh-card__hd{
  padding:14px 16px;
  border-bottom:1px solid var(--sh-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.sh-card__title{
  font-weight:800;
  font-size:14px;
  color:var(--sh-text);
}
.sh-card__bd{ padding:16px; }

.sh-breadcrumb{
  font-size:12px;
  color:var(--sh-muted);
}
.sh-breadcrumb a{
  color:var(--sh-muted);
  text-decoration:none;
}
.sh-breadcrumb a:hover{ color:var(--sh-primary); text-decoration:underline; }

/* category banner (list top) */
.sh-cat-banner{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(226,75,59,.2);
  background:linear-gradient(90deg, var(--sh-primary) 0%, #d53a2d 45%, #c83a2e 100%);
  color:#fff;
  box-shadow:0 18px 38px rgba(226,75,59,.18);
}
.sh-cat-banner__inner{
  padding:28px 16px;
  text-align:center;
}
.sh-cat-banner__title{
  font-size:28px;
  font-weight:900;
  letter-spacing:.02em;
}
.sh-cat-banner__sub{
  margin-top:8px;
  font-size:13px;
  opacity:.92;
}

/* card grid (home + list) */
.sh-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
  justify-items:stretch;
}
@media(min-width:768px){
  .sh-grid{ grid-template-columns:repeat(2,minmax(0,260px)); justify-content:center; }
}
@media(min-width:1024px){
  .sh-grid{ grid-template-columns:repeat(4,minmax(0,260px)); justify-content:center; }
}
.sh-prod{
  background:#fff;
  border:1px solid var(--sh-border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 14px 32px rgba(15,23,42,.10);
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:260px;
}
.sh-prod:hover{
  box-shadow:0 18px 44px rgba(15,23,42,.14);
  transform:translateY(-1px);
  transition:box-shadow .18s ease, transform .18s ease;
}
.sh-prod__img{
  width:100%;
  height:168px;
  object-fit:cover;
  background:#f1f5f9;
}
.sh-prod__bd{
  padding:14px 16px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.sh-prod__title{
  font-size:18px;
  font-weight:900;
  line-height:1.45;
  color:var(--sh-text);
  min-height:40px;
}
.sh-prod__meta{
  font-size:12px;
  color:var(--sh-muted);
}
.sh-prod__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:flex-start;
  margin-top:auto;
  height:42px;
  padding:0 18px;
  border-radius:12px;
  border:1px solid rgba(226,75,59,.22);
  background:linear-gradient(180deg, var(--sh-primary) 0%, var(--sh-primary-700) 100%);
  color:#fff;
  font-weight:800;
  font-size:13px;
  line-height:1;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(226,75,59,.18);
}
.sh-prod__btn:hover{ filter:brightness(0.98); }

/* info detail: left gallery + right cards */
.sh-info-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
@media(min-width:1024px){
  .sh-info-grid{ grid-template-columns:2fr 1fr; align-items:start; }
}
.sh-sidecard{
  background:#fff;
  border:1px solid var(--sh-border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 22px rgba(15,23,42,.06);
}
.sh-sidecard__hd{
  padding:12px 14px;
  background:#f8fafc;
  border-bottom:1px solid var(--sh-border);
  font-weight:900;
  font-size:13px;
  color:var(--sh-text);
}
.sh-sidecard__bd{ padding:14px; }
.sh-kv{
  display:flex;
  gap:10px;
  align-items:center;
}
.sh-kv__icon{
  width:34px;
  height:34px;
  border-radius:9999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(226,75,59,.12);
  color:var(--sh-primary);
  flex-shrink:0;
}
.sh-kv__label{ font-size:12px; color:var(--sh-muted); }
.sh-kv__value{ font-size:13px; font-weight:800; color:var(--sh-text); }

/* home metrics */
.sh-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
@media(min-width:768px){
  .sh-metrics{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}
.sh-metric{
  border:1px solid var(--sh-border);
  border-radius:14px;
  background:#fbfdff;
  padding:14px;
}
.sh-metric__num{
  font-size:20px;
  font-weight:900;
  color:var(--sh-text);
}
.sh-metric__label{
  margin-top:6px;
  font-size:12px;
  color:var(--sh-muted);
}

/* category chips */
.sh-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.sh-chip{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:9999px;
  border:1px solid var(--sh-border);
  background:#fff;
  color:var(--sh-text);
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}
.sh-chip:hover{ border-color:rgba(226,75,59,.35); color:var(--sh-primary); }

/* list items */
.sh-items{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.sh-item{
  display:flex;
  gap:12px;
  padding:12px;
  border:1px solid var(--sh-border);
  border-radius:14px;
  background:#fff;
  text-decoration:none;
  color:inherit;
}
.sh-item:hover{
  border-color:rgba(59,130,246,.35);
  box-shadow:0 10px 22px rgba(15,23,42,.06);
}
.sh-item__img{
  width:98px;
  height:74px;
  border-radius:12px;
  object-fit:cover;
  background:#f1f5f9;
  border:1px solid #eef2f7;
  flex-shrink:0;
}
.sh-item__title{
  font-weight:800;
  font-size:14px;
  color:var(--sh-text);
  line-height:1.35;
}
.sh-item__meta{
  margin-top:6px;
  font-size:12px;
  color:var(--sh-muted);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.sh-item__btn{
  margin-left:auto;
  align-self:center;
  white-space:nowrap;
}

/* footer */
.sh-footer{
  margin-top:26px;
  background:#fff;
  color:var(--sh-text);
  border-top:1px solid var(--sh-border);
}
.sh-footer .sh-footer-inner{
  padding:28px 16px;
}
.sh-footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
@media(min-width:768px){
  .sh-footer-grid{ grid-template-columns:2fr 1fr 1fr; }
}
.sh-footer h4{
  margin:0 0 10px 0;
  font-size:13px;
  font-weight:800;
  color:var(--sh-text);
}
.sh-footer a{
  color:var(--sh-text);
  text-decoration:none;
}
.sh-footer a:hover{ color:var(--sh-primary); text-decoration:underline; }
.sh-footer-bottom{
  border-top:1px solid rgba(148,163,184,.2);
  margin-top:18px;
  padding-top:14px;
  font-size:12px;
  color:var(--sh-muted);
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:space-between;
}

