/* =========================================================
   萌宠精灵世纪 · 精灵商店  |  shop.css
   ========================================================= */

.shop-body{background:var(--cream);scroll-snap-type:none}

/* ---------- 顶栏 ---------- */
.shop-head{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(246,239,227,.92);
  backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 1px 0 var(--line);
}
.shop-head-in{
  max-width:1280px;
  margin:0 auto;
  padding:12px clamp(16px,4vw,36px);
  display:flex;
  align-items:center;
  gap:clamp(16px,3vw,40px);
}
.solid-logo{color:var(--ink)}
.solid-logo .logo-mark{background:linear-gradient(140deg,var(--gold-3),var(--gold-2))}
.solid-logo .logo-mark svg{color:#fff9f0}
.shop-nav{
  display:flex;
  gap:clamp(14px,2.4vw,30px);
  margin-left:auto;
}
.shop-nav a{
  font-size:.9rem;
  color:var(--muted);
  position:relative;
  padding:5px 0;
  transition:color .3s;
}
.shop-nav a::after{
  content:"";
  position:absolute;
  left:0;bottom:0;
  height:1.5px;
  width:0;
  background:var(--gold-2);
  transition:width .35s var(--ease);
}
.shop-nav a:hover{color:var(--ink)}
.shop-nav a:hover::after{width:100%}
.shop-nav a.active{color:var(--ink);font-weight:500}
.shop-nav a.active::after{width:100%}
.solid-cart{
  color:var(--ink);
  background:rgba(42,33,24,.07);
  flex:none;
}
.solid-cart:hover{background:rgba(42,33,24,.13)}

/* ---------- 商店 Hero ---------- */
.shop-hero{
  position:relative;
  min-height:min(74svh,620px);
  display:flex;
  align-items:center;
  overflow:hidden;
  background:#1a1410;
}
.shop-hero-media{position:absolute;inset:0;z-index:0}
.shop-hero-media img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center 55%;
  transform:scale(1.04);
  animation:heroDrift 28s ease-in-out infinite alternate;
  filter:brightness(.72) saturate(.9);
}
.shop-hero-veil{
  position:absolute;inset:0;z-index:1;
  background:
    radial-gradient(110% 90% at 14% 30%,rgba(20,14,10,.3),transparent 62%),
    linear-gradient(100deg,rgba(16,11,8,.9) 0%,rgba(20,14,10,.7) 40%,rgba(20,14,10,.24) 74%,rgba(20,14,10,.5) 100%);
}
.shop-hero-inner{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:clamp(56px,9vh,100px) clamp(20px,5vw,48px);
  color:#fff8ee;
}
.shop-eyebrow{
  display:inline-block;
  font-size:.76rem;
  letter-spacing:.26em;
  color:rgba(255,248,238,.8);
  border:1px solid rgba(255,248,238,.26);
  border-radius:999px;
  padding:.46em 1.1em;
  margin-bottom:22px;
  backdrop-filter:blur(6px);
}
.shop-hero h1{
  font-family:var(--serif);
  font-size:clamp(1.9rem,5.4vw,3.8rem);
  font-weight:600;
  line-height:1.26;
  letter-spacing:.015em;
  margin-bottom:22px;
  max-width:16ch;
}
.shop-hero h1 .gold{color:var(--gold-3)}
.shop-sub{
  font-size:clamp(.94rem,1.6vw,1.06rem);
  line-height:2;
  color:rgba(255,248,238,.8);
  max-width:48ch;
  margin-bottom:28px;
}
.shop-hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.shop-hero-tags span{
  font-size:.78rem;
  color:rgba(255,248,238,.9);
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,248,238,.2);
  border-radius:999px;
  padding:.4em .95em;
  backdrop-filter:blur(8px);
}

/* ---------- 商品区 ---------- */
.shop-main{
  max-width:1280px;
  margin:0 auto;
  padding:clamp(44px,7vh,80px) clamp(20px,5vw,48px) clamp(50px,8vh,90px);
}
.shop-toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:clamp(24px,3.4vh,36px);
}
.shop-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.shop-tab{
  padding:.66em 1.4em;
  border-radius:999px;
  border:1.5px solid var(--line-2);
  font-size:.9rem;
  color:var(--ink-2);
  transition:all .38s var(--ease);
  background:transparent;
}
.shop-tab:hover{border-color:var(--gold);color:var(--gold-2);transform:translateY(-2px)}
.shop-tab.active{
  background:var(--ink);
  border-color:var(--ink);
  color:var(--cream);
  box-shadow:0 12px 26px -14px rgba(42,33,24,.6);
}
.shop-count{font-size:.84rem;color:var(--muted);letter-spacing:.02em}

/* ---------- 商品卡 ---------- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:clamp(16px,2.2vw,26px);
}
.product-card{
  background:#fffaf2;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .5s var(--ease),box-shadow .5s var(--ease),border-color .4s;
  animation:cardIn .6s var(--ease) both;
}
@keyframes cardIn{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:none}
}
.product-card:hover{
  transform:translateY(-7px);
  box-shadow:var(--shadow-l);
  border-color:rgba(201,138,75,.4);
}
.product-photo{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  background:var(--cream-3);
}
.product-photo img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform 1s var(--ease);
}
.product-card:hover .product-photo img{transform:scale(1.08)}
.product-tag{
  position:absolute;
  left:12px;top:12px;
  font-size:.68rem;
  letter-spacing:.08em;
  color:#fffaf2;
  background:rgba(201,138,75,.95);
  padding:.32em .7em;
  border-radius:999px;
  font-weight:500;
}
.product-tag.hot{background:rgba(201,106,106,.95)}
.product-body{
  padding:16px 18px 18px;
  display:flex;
  flex-direction:column;
  gap:5px;
  flex:1;
}
.product-name{
  font-family:var(--serif);
  font-size:1.04rem;
  font-weight:600;
  line-height:1.45;
}
.product-desc{
  font-size:.8rem;
  color:var(--muted);
  line-height:1.7;
  flex:1;
}
.product-for{
  font-size:.72rem;
  color:var(--sage);
  letter-spacing:.02em;
}
.product-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:11px;
  padding-top:13px;
  border-top:1px dashed var(--line);
}
.product-price{
  display:flex;
  align-items:baseline;
  gap:1px;
  font-family:var(--serif);
  color:var(--gold-2);
}
.product-price .cur{font-size:.78rem}
.product-price .num{font-size:1.42rem;font-weight:700;line-height:1}
.product-price .old{
  font-size:.74rem;
  color:var(--muted);
  text-decoration:line-through;
  margin-left:5px;
  font-family:var(--sans);
  font-weight:400;
}
.buy-btn{
  display:inline-flex;
  align-items:center;
  gap:.4em;
  padding:.6em 1.05em;
  border-radius:999px;
  background:var(--ink);
  color:var(--cream);
  font-size:.82rem;
  font-weight:500;
  transition:all .35s var(--ease);
  white-space:nowrap;
}
.buy-btn svg{width:14px;height:14px}
.buy-btn:hover{background:var(--gold-2);transform:translateY(-1px)}
.buy-btn.added{background:var(--sage);pointer-events:none}

/* ---------- 服务说明 ---------- */
.shop-tips{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(14px,2.2vw,24px);
  margin-top:clamp(42px,6vh,70px);
  padding-top:clamp(32px,4.4vh,48px);
  border-top:1px solid var(--line);
}
.tip-item{
  display:flex;
  gap:13px;
  align-items:flex-start;
}
.tip-ico{
  width:42px;height:42px;
  flex:none;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(201,138,75,.12);
  color:var(--gold-2);
}
.tip-ico svg{width:20px;height:20px}
.tip-item div{display:flex;flex-direction:column;gap:2px}
.tip-item strong{font-size:.92rem;font-weight:600}
.tip-item small{font-size:.79rem;color:var(--muted);line-height:1.6}

/* ---------- 页脚 ---------- */
.shop-footer{
  background:var(--ink);
  color:rgba(255,248,238,.66);
  padding:clamp(38px,5.4vh,56px) clamp(20px,5vw,48px) calc(clamp(28px,4vh,40px) + env(safe-area-inset-bottom));
}
.shop-footer-in{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding-bottom:22px;
  border-bottom:1px solid rgba(255,248,238,.13);
}
.sf-brand{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.sf-brand strong{
  font-family:var(--serif);
  font-size:1.14rem;
  color:#fff8ee;
  letter-spacing:.06em;
}
.sf-brand span{font-size:.84rem}
.sf-contact{
  display:flex;
  flex-direction:column;
  gap:2px;
  text-align:right;
}
.sf-contact span{font-size:.74rem;letter-spacing:.16em;color:rgba(255,248,238,.45)}
.sf-contact a{
  font-family:var(--serif);
  font-size:1.06rem;
  color:var(--gold-3);
  transition:color .3s;
}
.sf-contact a:hover{color:#fff8ee}
.sf-copy{
  max-width:1280px;
  margin:20px auto 0;
  font-size:.74rem;
  letter-spacing:.03em;
  color:rgba(255,248,238,.4);
}

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  .shop-nav{display:none}
  .shop-tips{grid-template-columns:1fr;gap:16px}
  .sf-contact{text-align:left}
}
@media (max-width:640px){
  .product-grid{grid-template-columns:1fr 1fr;gap:12px}
  .product-body{padding:13px 14px 15px}
  .product-name{font-size:.94rem}
  .product-desc{display:none}
  .product-foot{flex-direction:column;align-items:stretch;gap:8px}
  .buy-btn{justify-content:center;width:100%}
  .product-price .num{font-size:1.26rem}
  .shop-tab{padding:.58em 1.05em;font-size:.84rem}
  .shop-hero{min-height:auto}
  .shop-hero h1{font-size:1.72rem;line-height:1.3;max-width:none}
  .logo-text{font-size:.9rem}
}
