/* hanfu.shop 样式 —— 原创实现的电商版式（白底、细导航、商品网格、QUICK SHOP 悬浮） */

:root {
  --ink: #1c1c1c;
  --ink-soft: #555;
  --line: #e6e2dc;
  --bg: #ffffff;
  --bg-soft: #faf8f5;
  --accent: #9a3324;       /* 朱砂红 */
  --accent-soft: #f7ede8;
  --gold: #b08a4f;
  --sale: #b13a2f;
  --radius: 2px;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部公告条 ---------- */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 12.5px; letter-spacing: .06em; padding: 8px 12px; }
.announce b { color: #f3cfa8; font-weight: 500; }

/* ---------- 工具条（语言/货币） ---------- */
.util-bar { border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: 12px; color: var(--ink-soft); }
.util-bar .wrap { display: flex; justify-content: flex-end; gap: 22px; align-items: center; height: 34px; }
.util-bar a:hover { color: var(--accent); }
.util-sep { color: var(--line); }

/* ---------- 页头 ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.logo { display: flex; align-items: center; min-width: 0; }
.logo img { max-height: 56px; max-width: 240px; width: auto; height: auto; display: block; }
.logo .logo-moon {
  width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%;
  position: relative; margin-bottom: 3px;
}
.logo .logo-moon::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 22px; height: 22px;
  background: #fff; border-radius: 50%; border: 1.5px solid var(--ink);
}
.logo .logo-en { font-size: 17px; letter-spacing: .34em; font-weight: 600; }
.logo .logo-zh { font-size: 11px; letter-spacing: .9em; margin-right: -.9em; color: var(--ink-soft); }

.header-icons { display: flex; align-items: center; gap: 18px; }
.icon-btn { background: none; border: 0; font-size: 19px; position: relative; padding: 6px; color: var(--ink); }
.icon-btn:hover { color: var(--accent); }
.cart-badge {
  position: absolute; top: -2px; right: -6px; min-width: 17px; height: 17px; border-radius: 17px;
  background: var(--accent); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; padding: 0 4px;
}

/* ---------- 主导航 ---------- */
.main-nav { display: flex; justify-content: center; border-top: 1px solid var(--line); }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block; padding: 13px 16px; font-size: 12.5px; letter-spacing: .12em; font-weight: 600;
}
.main-nav > li > a:hover { color: var(--accent); }
.nav-sale > a { color: var(--sale); }
.main-nav > li:hover .mega { visibility: visible; opacity: 1; transform: none; }
.mega {
  position: absolute; left: 50%; transform: translate(-50%, 8px); top: 100%;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.08);
  padding: 26px 34px; display: flex; gap: 44px; visibility: hidden; opacity: 0;
  transition: .18s ease; min-width: 220px; z-index: 300; white-space: nowrap;
}
.mega-col h4 { font-size: 12px; letter-spacing: .14em; margin-bottom: 10px; color: var(--ink); font-weight: 700; }
.mega-col > a { font-size: 12.5px; letter-spacing: .08em; color: var(--ink); font-weight: 700; display: block; margin-bottom: 10px; }
.mega-col li a { display: block; padding: 3px 0; font-size: 13px; color: var(--ink-soft); }
.mega-col li a:hover { color: var(--accent); padding-left: 4px; }

/* 移动端抽屉（左侧滑入式 + 手风琴二级菜单） */
.menu-toggle { display: none; }
.mobile-drawer { display: none; }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 410;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.drawer-head {
  position: sticky; top: 0; z-index: 2; background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line);
}
.drawer-head span { font-size: 12px; letter-spacing: .22em; font-weight: 700; }
.drawer-head button { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--ink-soft); padding: 2px 8px; }
.drawer-list { padding: 4px 0 36px; }
.drawer-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--bg-soft); }
.drawer-row > a { flex: 1; display: flex; align-items: center; padding: 13px 16px; font-size: 13px; letter-spacing: .12em; font-weight: 600; }
.drawer-toggle {
  width: 48px; background: none; border: 0; font-size: 20px; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
.drawer-acc.open > .drawer-row .drawer-toggle { transform: rotate(45deg); }
.drawer-sub { display: none; background: var(--bg-soft); border-bottom: 1px solid var(--bg-soft); }
.drawer-acc.open > .drawer-sub { display: block; }
.drawer-sub a { display: block; padding: 9px 14px 9px 26px; font-size: 13px; color: var(--ink-soft); }
.drawer-heading { font-weight: 700; color: var(--ink); }
.drawer-sub > li + li { border-top: 1px solid #fff; }
.drawer-group ul a { padding-left: 40px; font-size: 12.5px; }
body.drawer-lock { overflow: hidden; }

/* ---------- Hero 轮播 ---------- */
.hero { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .55s ease; }
.hero-slide {
  min-width: 100%; height: 480px; position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft) center / cover no-repeat;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.38));
}
.hero-slide .moon {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.14); right: 12%; top: 50%; transform: translateY(-50%);
}
.hero-slide .moon::after {
  content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
}
.hero-copy { text-align: center; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.18); position: relative; z-index: 2; }
.hero-copy h2 { font-family: var(--font-serif); font-size: 44px; letter-spacing: .16em; font-weight: 600; }
.hero-copy p { font-size: 17px; letter-spacing: .5em; margin: 10px 0 26px; margin-right: -.5em; }
.btn {
  display: inline-block; border: 1px solid #fff; color: #fff; background: transparent;
  padding: 11px 42px; font-size: 12.5px; letter-spacing: .22em; transition: .2s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn-solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; z-index: 3; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; background: transparent; margin: 0 5px;
}
.hero-dots button.on { background: #fff; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(0,0,0,.22); border: 0; color: #fff; width: 44px; height: 44px; font-size: 20px;
}
.hero-arrow:hover { background: rgba(0,0,0,.45); }
.hero-arrow.prev { left: 0; } .hero-arrow.next { right: 0; }

/* ---------- 分类磁贴 ---------- */
.section { padding: 56px 0 20px; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-family: var(--font-serif); font-size: 30px; letter-spacing: .1em; font-weight: 600; }
.section-head .zh-sub { display: block; color: var(--gold); font-size: 13px; letter-spacing: .6em; margin: 6px 0 0; margin-right: -.6em; }
.view-all { display: inline-block; margin-top: 14px; font-size: 12.5px; letter-spacing: .2em; color: var(--ink-soft); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.view-all:hover { color: var(--accent); border-color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { position: relative; height: 300px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 30%, rgba(0,0,0,.5));
}
.tile .tile-bg { position: absolute; inset: 0; background: var(--bg-soft) center / cover no-repeat; transition: transform .5s ease; }
.tile:hover .tile-bg { transform: scale(1.06); }
.tile-copy { position: relative; z-index: 2; padding: 18px; width: 100%; }
.tile-copy h3 { font-family: var(--font-serif); font-size: 19px; letter-spacing: .08em; }
.tile-copy span { font-size: 12px; letter-spacing: .3em; opacity: .9; }
.tile-copy .tile-btn {
  margin-top: 10px; display: inline-block; font-size: 11.5px; letter-spacing: .2em;
  border: 1px solid rgba(255,255,255,.8); padding: 7px 20px;
}
.tile:hover .tile-btn { background: #fff; color: var(--ink); }

/* ---------- 商品卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 16px; }
.card { position: relative; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10.5px; letter-spacing: .14em;
  padding: 4px 10px; color: #fff; font-weight: 600;
}
.badge.sale { background: var(--sale); }
.badge.soldout { background: var(--ink); }
.quick-shop {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 2;
  background: rgba(255,255,255,.94); border: 0; padding: 10px 0;
  font-size: 12px; letter-spacing: .24em; opacity: 0; transform: translateY(8px); transition: .22s;
}
.card:hover .quick-shop { opacity: 1; transform: none; }
.quick-shop:hover { background: var(--ink); color: #fff; }
.card-info { padding: 12px 2px 0; text-align: center; }
.card-title { font-size: 13.5px; line-height: 1.45; min-height: 2.9em; }
.card-title a:hover { color: var(--accent); }
.card-reviews { font-size: 11.5px; color: var(--gold); margin: 2px 0; }
.card-price { font-size: 13.5px; }
.card-price .strike { color: #9a9a9a; text-decoration: line-through; margin-right: 6px; font-size: 12.5px; }
.card-price .cur { color: var(--ink); }

/* ---------- 大 banner 行（朝代） ---------- */
.dynasty-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dynasty-row .tile { height: 260px; }

/* ---------- 促销三联 ---------- */
.promo-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo-trio .tile { height: 320px; }

/* ---------- 评价轮播 ---------- */
.reviews { background: var(--bg-soft); padding: 60px 0; }
.reviews-track-wrap { overflow: hidden; position: relative; }
.reviews-track { display: flex; gap: 16px; transition: transform .5s ease; }
.review-card {
  min-width: 340px; max-width: 340px; background: #fff; border: 1px solid var(--line);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.review-stars { color: var(--gold); letter-spacing: 3px; font-size: 13px; }
.review-title { font-weight: 700; font-size: 14.5px; }
.review-text { color: var(--ink-soft); font-size: 13px; flex: 1; }
.review-meta { font-size: 12px; color: #999; display: flex; justify-content: space-between; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Newsletter / 页脚 ---------- */
.newsletter { text-align: center; padding: 64px 20px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.newsletter h2 { font-family: var(--font-serif); font-size: 26px; letter-spacing: .12em; font-weight: 600; }
.newsletter p { color: var(--ink-soft); margin: 8px 0 22px; }
.newsletter form { display: flex; max-width: 420px; margin: 0 auto; border: 1px solid var(--ink); }
.newsletter input { flex: 1; border: 0; padding: 12px 14px; outline: none; background: #fff; }
.newsletter button { border: 0; background: var(--ink); color: #fff; padding: 0 26px; letter-spacing: .18em; font-size: 12.5px; }
.newsletter button:hover { background: var(--accent); }

.site-footer { background: var(--ink); color: #cfcbc4; padding: 56px 0 26px; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #3a3a3a; }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: .18em; margin-bottom: 14px; font-weight: 700; }
.site-footer li { margin: 7px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo-en, .footer-brand .logo-zh { color: #fff; }
.footer-contact p { margin: 6px 0; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 34px; height: 34px; border: 1px solid #555; display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: .05em; color: #cfcbc4;
}
.social-row a:hover { border-color: #fff; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 14px; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span {
  border: 1px solid #4a4a4a; color: #b9b4ac; font-size: 10px; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 3px; background: #262626;
}

/* ---------- 分类页 ---------- */
.page-title { text-align: center; padding: 44px 0 10px; }
.page-title h1 { font-family: var(--font-serif); font-size: 34px; letter-spacing: .12em; font-weight: 600; }
.page-title .zh-sub { color: var(--gold); font-size: 13px; letter-spacing: .5em; margin-right: -.5em; }
.collection-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; padding: 26px 0 70px; }
.filter-box { border: 1px solid var(--line); }
.filter-box > h3 { font-size: 12px; letter-spacing: .16em; padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.filter-box > h3 button { background: none; border: 0; font-size: 16px; color: var(--ink-soft); }
.facet { border-bottom: 1px solid var(--line); }
.facet > h4 { font-size: 13px; padding: 12px 16px; cursor: pointer; display: flex; justify-content: space-between; }
.facet ul { padding: 0 16px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.facet a.chip {
  display: inline-block; border: 1px solid var(--line); padding: 4px 10px; font-size: 12px; color: var(--ink-soft);
  border-radius: 20px;
}
.facet a.chip:hover { border-color: var(--ink); color: var(--ink); }
.facet a.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.collection-toolbar .count { color: var(--ink-soft); font-size: 13px; }
.sort-select { border: 1px solid var(--line); padding: 9px 12px; font-size: 13px; background: #fff; min-width: 190px; }
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 18px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { text-align: center; padding: 90px 20px; color: var(--ink-soft); }
.empty-state .big { font-family: var(--font-serif); font-size: 24px; color: var(--ink); margin-bottom: 12px; }

/* ---------- 商品详情页 ---------- */
.crumbs { padding: 18px 0; color: #999; font-size: 12.5px; }
.crumbs a:hover { color: var(--accent); }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 46px; padding-bottom: 60px; }
.pdp-gallery { display: flex; gap: 12px; }
.pdp-thumbs { display: flex; flex-direction: column; gap: 10px; width: 82px; flex-shrink: 0; }
.pdp-thumbs img { width: 82px; aspect-ratio: 3/4; object-fit: cover; cursor: pointer; border: 1px solid transparent; }
.pdp-thumbs img.on { border-color: var(--ink); }
.pdp-main-img { flex: 1; }
.pdp-main-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--line); }
.pdp-info h1 { font-family: var(--font-serif); font-size: 26px; line-height: 1.4; font-weight: 600; }
.pdp-info .zh-name { color: var(--gold); letter-spacing: .3em; margin: 6px 0 10px; display: inline-block; }
.pdp-reviews-link { font-size: 12.5px; color: var(--ink-soft); display: block; margin-bottom: 16px; }
.pdp-reviews-link:hover { color: var(--accent); }
.pdp-price { font-size: 22px; margin-bottom: 4px; }
.pdp-price .strike { font-size: 15px; color: #999; text-decoration: line-through; margin-left: 8px; }
.pdp-price .from-label { font-size: 13px; color: var(--ink-soft); margin-right: 6px; }
.pdp-tax-note { color: #999; font-size: 12px; margin-bottom: 22px; }
.opt-label { font-size: 12.5px; letter-spacing: .12em; margin: 18px 0 8px; color: var(--ink-soft); }
.size-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill {
  min-width: 52px; padding: 9px 10px; border: 1px solid var(--line); text-align: center; font-size: 13px;
  background: #fff; transition: .15s;
}
.size-pill:hover { border-color: var(--ink); }
.size-pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-guide-link { font-size: 12.5px; text-decoration: underline; color: var(--ink-soft); margin-left: 14px; }
.size-guide-link:hover { color: var(--accent); }
.qty-row { display: flex; align-items: center; gap: 18px; margin: 22px 0; }
.qty-stepper { display: flex; border: 1px solid var(--ink); width: 122px; }
.qty-stepper button { width: 38px; height: 42px; border: 0; background: #fff; font-size: 17px; }
.qty-stepper button:hover { background: var(--bg-soft); }
.qty-stepper input { width: 46px; border: 0; text-align: center; outline: none; height: 42px; }
.buy-row { display: flex; gap: 12px; margin-bottom: 20px; }
.btn-add {
  flex: 1; background: var(--ink); color: #fff; border: 1px solid var(--ink);
  padding: 14px 0; font-size: 13px; letter-spacing: .24em; transition: .2s;
}
.btn-add:hover { background: var(--accent); border-color: var(--accent); }
.btn-add:disabled { background: #c9c9c9; border-color: #c9c9c9; cursor: not-allowed; }
.btn-buy {
  flex: 1; background: #fff; color: var(--ink); border: 1px solid var(--ink);
  padding: 14px 0; font-size: 13px; letter-spacing: .24em; transition: .2s;
}
.btn-buy:hover { background: var(--ink); color: #fff; }
.pdp-trust { border: 1px solid var(--line); padding: 16px 18px; font-size: 12.5px; color: var(--ink-soft); line-height: 2; margin-bottom: 22px; }
.pdp-trust b { color: var(--ink); font-weight: 600; }
.pdp-accord { border: 1px solid var(--line); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-item h4 { padding: 14px 18px; font-size: 13px; letter-spacing: .1em; display: flex; justify-content: space-between; cursor: pointer; }
.acc-item h4::after { content: "+"; color: var(--ink-soft); }
.acc-item.open h4::after { content: "–"; }
.acc-body { display: none; padding: 0 18px 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
.acc-item.open .acc-body { display: block; }
.size-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: center; }
.size-table th { background: var(--bg-soft); }

/* ---------- 购物车页 ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; padding: 30px 0 80px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 96px; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--line); }
.cart-line .t { font-size: 14px; line-height: 1.5; }
.cart-line .v { color: var(--ink-soft); font-size: 12.5px; margin: 4px 0 10px; }
.cart-line .remove { color: #999; font-size: 12px; text-decoration: underline; background: none; border: 0; padding: 0; }
.cart-line .remove:hover { color: var(--sale); }
.cart-line .qty-stepper { width: 108px; }
.cart-line .qty-stepper button { height: 36px; width: 32px; }
.cart-line .qty-stepper input { height: 36px; width: 42px; }
.line-total { text-align: right; font-size: 14px; white-space: nowrap; }
.cart-summary { border: 1px solid var(--line); padding: 26px; position: sticky; top: 120px; }
.cart-summary h2 { font-family: var(--font-serif); font-size: 20px; letter-spacing: .1em; margin-bottom: 16px; font-weight: 600; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--ink-soft); font-size: 13.5px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; color: var(--ink); font-size: 17px; }
.cart-summary .btn-add { width: 100%; margin: 18px 0 10px; }
.cart-note { text-align: center; color: #999; font-size: 12px; }
.cart-empty { text-align: center; padding: 100px 20px; }
.cart-empty .big { font-family: var(--font-serif); font-size: 26px; margin-bottom: 14px; }

/* ---------- 搜索浮层 / toast ---------- */
.search-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.98); z-index: 400; display: none; padding-top: 90px; }
.search-overlay.open { display: block; }
.search-box { max-width: 640px; margin: 0 auto; }
.search-box input { width: 100%; border: 0; border-bottom: 2px solid var(--ink); font-size: 22px; padding: 12px 4px; outline: none; font-family: var(--font-serif); }
.search-results { max-width: 640px; margin: 24px auto 0; }
.search-results a { display: flex; gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--bg-soft); }
.search-results a:hover { background: var(--bg-soft); }
.search-results img { width: 44px; height: 58px; object-fit: cover; }
.search-close { position: absolute; top: 26px; right: 34px; font-size: 26px; background: none; border: 0; }
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff;
  padding: 13px 28px; font-size: 13px; letter-spacing: .1em; opacity: 0; transition: .3s; z-index: 500; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid, .tiles { grid-template-columns: repeat(4, 1fr); }
  .collection-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav, .util-bar { display: none; }
  .menu-toggle { display: block; font-size: 22px; background: none; border: 0; padding: 6px; }
  .mobile-drawer {
    display: block; position: fixed; top: 0; left: 0; bottom: 0;
    width: min(84vw, 330px); background: #fff; z-index: 420;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(-102%); transition: transform .3s ease;
    box-shadow: 0 0 44px rgba(0,0,0,.2);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-drawer.open { transform: none; }
  .pdp, .cart-layout, .collection-layout { grid-template-columns: 1fr; }
  .collection-layout { gap: 0; }
  .filter-box { border: 0; }
  .dynasty-row, .promo-trio { grid-template-columns: 1fr 1fr; }
  .hero-slide { height: 380px; }
  .hero-copy h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .grid, .tiles { grid-template-columns: repeat(2, 1fr); }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .dynasty-row, .promo-trio { grid-template-columns: 1fr; }
  .pdp-gallery { flex-direction: column-reverse; }
  .pdp-thumbs { flex-direction: row; width: 100%; overflow-x: auto; }
  .pdp-thumbs img { width: 62px; }
}
