@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@400;500;600&family=Noto+Serif+SC:wght@500;600&display=swap');

:root {
  --bg: #fdf8fb;
  --bg-soft: #f3e8f0;
  --bg-elevated: #ffffff;
  --ink: #3d2a36;
  --ink-soft: #7a6270;
  --line: #eadde6;
  --accent: #9b4d7a;
  --accent-light: #c978a8;
  --accent-dark: #6f3458;
  --jade: #5a8f7b;
  --gold: #c9a86c;
  --sale: #c45c5c;
  --wrap: min(1180px, 94vw);
  --sans: 'Noto Sans SC', sans-serif;
  --serif: 'Noto Serif SC', serif;
  --script: 'Ma Shan Zheng', cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 48px rgba(155, 77, 122, 0.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 120, 168, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 0%, rgba(90, 143, 123, 0.12), transparent 50%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.wrap { width: var(--wrap); margin: 0 auto; }

.top-bar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: #fff;
  text-align: center;
  padding: 9px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-light), var(--accent-dark));
  color: #fff;
  font-family: var(--script);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; display: block; }
.brand-sub { font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.14em; }
.main-nav { display: flex; gap: 18px; list-style: none; font-size: 0.88rem; }
.main-nav a.is-active, .main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-search {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  width: 160px;
  background: #fff;
  outline: none;
}
.header-search:focus { border-color: var(--accent-light); }
.header-search-btn {
  background: var(--jade);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.bag-link {
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.cart-badge {
  background: var(--gold);
  color: var(--ink);
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 4px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0 32px;
}
.hero-split-text h1 {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--accent-dark);
  line-height: 1.2;
  margin: 8px 0 16px;
}
.hero-split-text .lead { color: var(--ink-soft); margin-bottom: 24px; max-width: 28em; }
.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--jade);
}
.hero-visual {
  position: relative;
  border-radius: 24px 24px 24px 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(61, 42, 54, 0.25));
}
.btn-primary {
  display: inline-flex;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(155, 77, 122, 0.35);
}
.btn-primary:hover { filter: brightness(1.05); }

.cat-scroll-wrap { margin: 8px 0 36px; }
.cat-scroll-wrap h2 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.cat-scroll-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.cat-chip {
  flex: 0 0 auto;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.cat-chip em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--accent);
  margin-left: 6px;
}
.cat-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cat-chip:hover em { color: rgba(255,255,255,0.85); }

.shop-zone {
  background: var(--bg-elevated);
  border-radius: 28px 28px 0 0;
  padding: 36px 0 64px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(155, 77, 122, 0.06);
}
.shop-zone-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-zone-head h2 { font-family: var(--serif); font-size: 1.35rem; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; align-items: center; }
.filter-chip {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
}
.filter-chip.is-active { background: var(--jade); color: #fff; border-color: var(--jade); }
.search-input {
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  min-width: 200px;
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-media { position: relative; aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-overlay-cart {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px;
  background: rgba(155, 77, 122, 0.92);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover .card-overlay-cart { opacity: 1; }
@media (hover: none) { .card-overlay-cart { opacity: 1; } }
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.62rem;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.card-body { padding: 14px 16px 18px; }
.card-cat { font-size: 0.65rem; color: var(--jade); letter-spacing: 0.08em; }
.card-title { font-size: 0.92rem; margin: 6px 0 10px; min-height: 2.5em; font-weight: 600; }
.price-now { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.price-was { font-size: 0.78rem; color: var(--ink-soft); text-decoration: line-through; margin-left: 6px; }
.btn-cart {
  background: var(--jade);
  color: #fff;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; cursor: pointer; border-radius: 999px; }
.btn-outline { border: 1px solid var(--line); background: #fff; }
.btn-lg { padding: 14px 24px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }

.page-pad { padding: 32px 0 64px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-gallery img { border-radius: 20px; width: 100%; }
.detail-tag { background: var(--gold); padding: 4px 10px; font-size: 0.75rem; border-radius: 999px; }
.detail-price { margin: 16px 0; }
.detail-desc { color: var(--ink-soft); margin-bottom: 20px; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.qty-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: 50%; }
#qty-input { width: 56px; text-align: center; border: 1px solid var(--line); padding: 8px; border-radius: 8px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
.cart-summary {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 24px;
  height: fit-content;
}
.summary-row { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: 16px; }
.summary-note { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 16px; }

.site-footer {
  background: var(--ink);
  color: #f8f0f4;
  padding: 40px 0;
  margin-top: 0;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { opacity: 0.85; }

.content-page { padding: 48px 0; max-width: 720px; }
.content-page h1 { font-family: var(--serif); margin-bottom: 24px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 20px;
}
.contact-company { font-size: 1.2rem; font-weight: 600; }
.prose p { margin-bottom: 12px; color: var(--ink-soft); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--accent-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty-msg, .empty-state { text-align: center; padding: 48px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .main-nav { display: none; }
  .detail-layout, .cart-layout { grid-template-columns: 1fr; }
}
