/* Meili Home ── Global Styles */

/* 引入 Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #F7F4EE;
  --ink:          #222222;
  --ink-muted:    #6b5f59;
  --announce-bg:  #2b2320;
  --announce-fg:  #e8e0d8;
  --header-bg:    #F7F4EE;
  --header-border:#ddd8d2;
  --nav-gap:      40px;
  --max-w:        1440px;
  --side-pad:     48px;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html  { font-size: 16px; -webkit-text-size-adjust: 100%; }

/* 全局正文 */
body  { background: var(--bg); font-family: var(--font-body); font-weight: 400; color: var(--ink); line-height: 1.6; }

a     { color: inherit; text-decoration: none; }
button{ cursor: pointer; background: none; border: none; padding: 0; color: inherit; }

/* 大标题：衬线展示字体 */
h1, h2, h3, h4, .brand-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* 导航、eyebrow、按钮、大写标签：无衬线细款 */
nav a, .btn, .uppercase-label, .eyebrow, .announce-bar,
.shop-all, .cat-link, .story-link, .site-logo,
.footer-col h3, .newsletter-form button {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ── Announcement Bar ─────────────────────────────────── */
.announce-bar {
  background: var(--announce-bg);
  color: var(--announce-fg);
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-family: var(--font-nav);
  font-weight: 300;
  letter-spacing: 0.06em;
}

/* ── Site Header ──────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 48px;
}

/* Logo */
.site-logo {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Primary Nav */
.primary-nav {
  flex: 1;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

.primary-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.25s ease;
}

.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { width: 100%; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  transition: opacity 0.2s;
}

.icon-btn:hover { opacity: 0.6; }

/* ── Header Search ─────────────────────────────────────── */
.header-search {
  display: flex;
  align-items: center;
  position: relative;
}

.search-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 2;
}

.search-box {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease;
  margin-left: 0;
}

.header-search.is-open .search-box {
  max-width: 240px;
  opacity: 1;
  margin-left: 8px;
}

.search-input {
  width: 200px;
  height: 34px;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  background: transparent;
  font-family: var(--font-body, inherit);
  font-size: 0.875rem;
  color: var(--ink);
  outline: none;
  padding: 0 4px;
  /* remove native search decorations */
  -webkit-appearance: none;
}

.search-input::placeholder {
  color: var(--mid, #888);
}

.search-input::-webkit-search-cancel-button { display: none; }

.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0 4px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.search-submit:hover { opacity: 1; }

/* ── Main ─────────────────────────────────────────────── */
main { min-height: 60vh; }

/* ── Hero Banner ──────────────────────────────────────── */
.hero-banner {
  /* 通知栏 32px + 导航 64px = 96px，剩余正好一屏 */
  height: calc(100vh - 96px);
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* 遮罩：仅左侧文字区域，从左下向右上消散 */
.hero-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 25%),
    linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%);
  pointer-events: none;
}

.hero-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 左下角文字叠层 */
.hero-copy {
  position: absolute;
  bottom: calc(18% - 40px);
  left: 5%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  max-width: 420px;
  text-align: left;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.9;
}

.hero-cta {
  display: inline-block;
  width: fit-content;
  margin-top: 4px;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,0.75);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s;
}

.hero-cta:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ── Values Strip ─────────────────────────────────────── */
.values-sec {
  background: #ede9e2;
  padding: 64px 0;
}

.values-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.values-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.value-icon {
  flex-shrink: 0;
  color: var(--ink);
  opacity: 0.7;
  margin-top: 2px;
}

.value-en-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.value-en-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
}


/* ── Everyday Favorites ───────────────────────────────── */
.favorites-sec {
  background: var(--bg);
  padding: 64px 0;
}

.favorites-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.favorites-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.favorites-head h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.favorites-head p {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
}

.shop-all {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.2s;
  flex-shrink: 0;
  margin-left: 24px;
}
.shop-all:hover { opacity: 0.55; }

/* Product grid: 4 columns */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.prod-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.prod-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: #e0dbd3;
  position: relative;
}

.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.prod-card:hover .prod-img img {
  transform: scale(1.04);
}

.prod-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prod-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}

.prod-price {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
}

.prod-swatches {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c, #ccc);
  border: 1px solid rgba(0,0,0,0.08);
}

/* ── Belief + Category Section ───────────────────────── */
.belief-sec {
  background: var(--bg);
  padding: 64px 0;
}

.belief-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Row 1 — text only, full width, with background image */
.belief-row {
  background: url('img/Vignette.png') center center / cover no-repeat;
  border-radius: 4px;
  padding: 48px 60px;
  overflow: hidden;
}

/* 手机端才显示的真实图片，桌面端隐藏 */
.belief-photo {
  display: none;
}

.belief-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 0;
}

.belief-copy .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.belief-copy h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.belief-copy p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 560px;
}

/* Row 2: category cards */
.cat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cat-row--three {
  grid-template-columns: 1fr 1fr 1fr;
}

.cat-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  background: #c8c0b4 center / cover no-repeat; /* placeholder */
  text-decoration: none;
}

.cat-card--living {
  background: url('img/living.png') center / cover no-repeat;
}

.cat-card--pet {
  background: url('img/pet.png') center / cover no-repeat;
}

.cat-card--wellness {
  background: url('img/wellness.png') center / cover no-repeat;
  background-color: #d6cfc4;
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* dark overlay — only behind text (bottom-left), fades out upward and rightward */
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 45%),
    linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 55%);
  z-index: 1;
}

.cat-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
  gap: 6px;
  color: #fff;
}

.cat-body h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.2;
}

.cat-body p {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.85;
  max-width: 320px;
}

.cat-link {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.2s;
}

.cat-card:hover .cat-link {
  border-color: #fff;
}
@media (min-width: 1920px) {
  :root {
    --max-w: 1600px;
    --side-pad: 0px;
  }
}

/* ── Our Story ────────────────────────────────────────── */
.story-sec {
  background: var(--bg);
  padding: 80px 0;
}

.story-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 56px;
  align-items: center;
}

.story-img {
  aspect-ratio: 16 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd8d0;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-copy .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.story-copy h2 {
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
}

.story-en {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.story-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  width: fit-content;
  transition: opacity 0.2s;
}

.story-link:hover { opacity: 0.5; }

/* ── Newsletter ───────────────────────────────────────── */
.newsletter-sec {
  background: #e8e3db;
  padding: 64px 0;
}

.newsletter-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.newsletter-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-copy h2 {
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.nl-en {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
}

.newsletter-form {
  display: flex;
  flex-shrink: 0;
  width: 480px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  height: 50px;
  padding: 0 18px;
  border: 1px solid #c8c2ba;
  border-right: none;
  background: #f7f4ee;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  border-radius: 2px 0 0 2px;
}

.newsletter-form input[type="email"]::placeholder {
  color: #a89f96;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--ink);
}

.newsletter-form button {
  height: 50px;
  padding: 0 24px;
  background: var(--ink);
  color: #f7f4ee;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.newsletter-form button:hover { opacity: 0.8; }

/* ── Site Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--header-border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--side-pad) 48px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr 1fr auto;
  gap: 40px;
  align-items: start;
}

/* Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink);
  font-family: var(--font-body);
}

.footer-brand p {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Nav columns */
.footer-col h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--ink); }

/* Social icons: align to first text baseline of adjacent col */
.footer-social {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-top: 4px;
}

.footer-social a {
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--ink); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--header-border);
  max-width: 100%;
  margin: 0;
  padding: 20px var(--side-pad);
}

.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-muted);
  text-align: right;
  letter-spacing: 0.04em;
}

/* ── Favourite Heart Button ───────────────────────────── */
.prod-card { position: relative; }

.fav-btn {
  position: absolute !important;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.18s, transform 0.18s;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  flex-shrink: 0;   /* 不被 flex 容器压缩 */
  pointer-events: auto;
}

.fav-btn:hover { background: #fff; transform: scale(1.1); }

.fav-btn svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  stroke: #888;
  fill: none;
  transition: stroke 0.18s, fill 0.18s;
}

.fav-btn--active svg {
  stroke: #e53535;
  fill: #e53535;
}


/* ── Cart Page ────────────────────────────────────────── */
.cart-sec {
  padding: 48px 0 80px;
}

.cart-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

/* ── Left column ─── */
.cart-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cart-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--ink);
}

.cart-share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.cart-share-btn:hover { color: var(--ink); }

.cart-delivery-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

/* ── Cart Item — PC default: two-column grid ─── */
.cart-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--header-border);
}

.cart-item-img-wrap {
  display: block;
  grid-column: 1;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  overflow: hidden;
  background: #e0dbd3;
}

.cart-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right column: all content stacked */
.cart-item-body {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}

.cart-item-sku {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-muted);
  margin-top: -4px;
}

/* qty + price on one row */
.cart-item-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-pricing {
  text-align: right;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}

.cart-item-unit {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Qty stepper */
.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid #c8c2ba;
  width: fit-content;
  height: 32px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
}
.qty-btn:hover { background: #ede9e2; }

.qty-val {
  width: 36px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  border-left: 1px solid #c8c2ba;
  border-right: 1px solid #c8c2ba;
  line-height: 30px;
  display: block;
}

/* Actions: Remove · Save for Later */
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-text-btn {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity 0.2s;
}
.cart-text-btn:hover { opacity: 0.55; }

/* Protection plan */
.cart-protection {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #c8c2ba;
  border-radius: 2px;
  cursor: pointer;
}

.cart-protection-check {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--ink);
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.cart-protection-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-protection-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}

.cart-protection-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
  align-self: flex-start;
}
.cart-protection-link:hover { opacity: 0.55; }

/* Made-to-order row (sits outside .cart-item, full-width) */
.cart-mto-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 14px 0;
  background: #f5f3ef;
  border-top: 1px solid var(--header-border);
  border-bottom: 1px solid var(--header-border);
  margin-bottom: 0;
}

.cart-mto-badge {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-left: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  padding-top: 2px;
}

.cart-mto-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-mto-zip {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}

.cart-mto-warning {
  font-size: 13px;
  font-weight: 400;
  color: #c0392b;
  line-height: 1.5;
}

.cart-inline-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--ink);
  font-weight: 400;
  transition: opacity 0.2s;
}
.cart-inline-link:hover { opacity: 0.55; }

/* ── Right: Order Summary ─── */
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 80px;
}

.summary-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.summary-subtotal {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  border-top: 1px solid var(--header-border);
  padding-top: 14px;
}

.summary-note {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Credit card promo block */
.summary-promo-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--header-border);
  border-radius: 2px;
  background: #faf8f5;
}

.summary-promo-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.summary-promo-text {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-promo-text strong {
  font-weight: 500;
}

.summary-promo-sub {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--header-border);
}

.summary-terms {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* CTA buttons */
.summary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.summary-btn:hover { opacity: 0.88; }

.summary-btn--checkout {
  background: #a0232b;
  color: #fff;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.summary-btn--apple {
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.summary-btn--paypal {
  background: #f5c518;
  color: #003087;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.summary-affirm {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
  text-align: center;
}

.summary-disclaimer {
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
  text-align: center;
  border-top: 1px solid var(--header-border);
  padding-top: 14px;
  margin-top: 4px;
}


/* ── Share popup (shared with product page) ──────────── */
.pd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
  border: 1px solid #c8c2ba;
  border-radius: 2px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pd-share-btn:hover { border-color: var(--ink); }

.pd-share-popup {
  position: absolute;
  top: calc(100% + 8px);   /* cart 页弹窗向下展开 */
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  min-width: 185px;
  z-index: 200;
  padding: 10px 0 6px;
}

.pd-share-popup::after {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0,0,0,0.06);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.pd-share-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #aaa;
  transition: color 0.15s;
  border-radius: 50%;
}
.pd-share-close:hover { color: var(--ink); }

.pd-share-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd-share-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #222;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  white-space: nowrap;
}
.pd-share-item:hover { background: #f5f5f5; }

/* cart page: share wrap 在 flex 行内正常流，弹窗相对于它定位 */
.cart-header .pd-share-wrap {
  position: relative;
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════
   Account Page
   ════════════════════════════════════════════════════════ */

.account-sec {
  padding: 48px 0 96px;
}

.account-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* Page title */
.account-page-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 32px;
}

/* ── Tab bar ─────────────────────────────────────────── */
.account-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--header-border);
  margin-bottom: 40px;
}

.account-tab {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px 10px 0;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.account-tab:hover { color: var(--ink); }

.account-tab--active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 500;
}

/* ── Panels ──────────────────────────────────────────── */
.account-panel--hidden { display: none; }

/* ── Empty state (Orders) ────────────────────────────── */
.account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 24px;
  color: var(--ink-muted);
  text-align: center;
}

.account-empty svg { opacity: 0.35; }

.account-empty-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 4px;
}

.account-empty-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-muted);
}

.account-cta-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 24px;
  border: 1px solid var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.account-cta-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ── Profile sections ────────────────────────────────── */
.profile-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--header-border);
}

.profile-section:first-child { border-top: 1px solid var(--header-border); }

.profile-section--signout {
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.profile-section-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* Section action buttons (Edit / Add) */
.profile-action-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 4px 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.profile-action-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ── Read-only field list ─────────────────────────────── */
.profile-field-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #c8c2ba;
  border-radius: 6px;
  overflow: hidden;
}

.profile-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: var(--bg);
  font-size: 13px;
  color: var(--ink);
}

.profile-field-row + .profile-field-row {
  border-top: 1px solid var(--header-border);
}

.profile-field-label {
  font-weight: 400;
  color: var(--ink-muted);
  flex-shrink: 0;
  margin-right: 24px;
}

.profile-field-value {
  font-weight: 300;
  text-align: right;
  word-break: break-all;
}

/* ── Edit form ───────────────────────────────────────── */
.profile-edit-form--hidden { display: none; }

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.profile-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-form-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.profile-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #c8c2ba;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.profile-input::placeholder { color: #a89f96; }
.profile-input:focus { border-color: var(--ink); }

.profile-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.profile-save-btn {
  height: 42px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.profile-save-btn:hover { opacity: 0.8; }

.profile-cancel-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.profile-cancel-btn:hover { color: var(--ink); }

/* ── Address list / cards ────────────────────────────── */
.profile-address-list {
  border: 1px solid #c8c2ba;
  border-radius: 6px;
  overflow: hidden;
}

.profile-empty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
  background: var(--bg);
}

.profile-address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg);
  border-top: 1px solid var(--header-border);
  gap: 16px;
}
.profile-address-card:first-child { border-top: none; }

.addr-card-body { flex: 1; }

.addr-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.addr-card-line {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.5;
}

.addr-card-remove {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  transition: color 0.2s;
}
.addr-card-remove:hover { color: #c0392b; }

/* ── Marketing toggle ────────────────────────────────── */
.profile-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1px solid #c8c2ba;
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  user-select: none;
}

.profile-toggle-icon {
  display: flex;
  align-items: center;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.profile-toggle-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  flex: 1;
}

/* Hide native checkbox */
.profile-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom track */
.profile-toggle-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #c8c2ba;
  flex-shrink: 0;
  transition: background 0.22s;
}

.profile-toggle-track--on {
  background: #3a7d3f;
}

.profile-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.profile-toggle-track--on .profile-toggle-thumb {
  transform: translateX(20px);
}

/* ── Sign out buttons ────────────────────────────────── */
.profile-signout-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 8px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.profile-signout-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.profile-signout-all-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.profile-signout-all-btn:hover { color: var(--ink); }


/* ════════════════════════════════════════════════════════
   Add Address Modal
   ════════════════════════════════════════════════════════ */

.addr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.addr-modal-overlay--open {
  display: flex;
}

.addr-modal {
  background: #fff;
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  position: relative;
}

.addr-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.addr-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.addr-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  margin-top: -4px;
  margin-right: -8px;
  border-radius: 50%;
  transition: color 0.18s;
}
.addr-modal-close:hover { color: var(--ink); }

/* Form rows */
.addr-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addr-form-row {
  display: flex;
  gap: 8px;
}

.addr-form-row--triple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.addr-form-row--check { margin-top: 4px; }

/* Inputs — clean rectangle border matching image 2 */
.addr-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c8c2ba;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.addr-input::placeholder { color: #a89f96; }
.addr-input:focus { border-color: var(--ink); z-index: 1; position: relative; }

/* State select wrapper */
.addr-select-wrap {
  position: relative;
  width: 100px;
  flex-shrink: 0;
}

.addr-select-wrap .addr-input {
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.addr-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-muted);
}

/* Checkbox rows */
.addr-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink);
  cursor: pointer;
}

.addr-check {
  width: 14px;
  height: 14px;
  border: 1px solid #c8c2ba;
  accent-color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 2px;
}

/* Save button */
.addr-submit-btn {
  margin-top: 8px;
  height: 48px;
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.addr-submit-btn:hover { opacity: 0.82; }

/* Two-column form row (Edit Contact modal) */
.addr-form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}


/* ══════════════════════════════════════════════════════════
   Mobile Responsive  ≤ 768px
   尽量少改动原有样式，只追加媒体查询覆盖
   ══════════════════════════════════════════════════════════ */

/* ── Nav 抽屉 icon 行：桌面端隐藏 ── */
.nav-icon-row {
  display: none !important;
}

/* ── Hamburger button (hidden on desktop) ─────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* X shape when open */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


@media (max-width: 768px) {

  /* ── CSS 变量覆盖 ── */
  :root {
    --side-pad: 20px;
  }

  /* ── Hamburger 显示 ── */
  .nav-toggle {
    display: flex;
  }

  /* ── Header layout ── */
  .header-inner {
    height: 56px;
    gap: 0;
    padding: 0 var(--side-pad);
    justify-content: space-between;
  }

  /* Logo 居中 */
  .site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* 隐藏桌面导航 */
  .primary-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 56px;         /* 与 header 同高 */
    background: var(--header-bg);
    z-index: 99;
    padding: 32px var(--side-pad) 48px;
    overflow-y: auto;
    border-top: 1px solid var(--header-border);
    /* 动画 */
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .primary-nav.is-open {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav ul li {
    border-bottom: 1px solid var(--header-border);
  }

  .primary-nav a {
    display: block;
    padding: 16px 0;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-align: left;
  }

  .primary-nav a::after { display: none; }

  /* 右侧 actions：手机端只保留 account */
  .header-actions {
    gap: 12px;
    margin-left: 0;
  }

  /* 手机端隐藏 search / cart / favourites，只留 account */
  .header-actions .header-search,
  .header-actions .header-cart,
  .header-actions .header-favs {
    display: none;
  }

  /* ── Nav 抽屉内 icon 行（手机端显示） ── */
  .primary-nav .nav-icon-row {
    display: flex !important;
    flex-direction: column;
    border-top: 1px solid var(--header-border);
    margin-top: 8px;
    padding-top: 0;
  }

  .nav-icon-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink);
    border-bottom: 1px solid var(--header-border);
    text-align: left;
  }

  .nav-icon-link svg {
    flex-shrink: 0;
    opacity: 0.7;
  }

  .nav-icon-link::after { display: none !important; }

  /* ── Hero ── */
  .hero-banner {
    height: auto;         /* 高度跟图片自然比例走，不裁切 */
    min-height: unset;
  }

  .hero-inner {
    height: auto;
    overflow: visible;
  }

  .hero-inner img {
    width: 100%;
    height: auto;         /* 保持图片原始宽高比，完整显示 */
    object-fit: unset;
  }

  .hero-copy {
    bottom: 10%;
    left: var(--side-pad);
    max-width: calc(100% - 40px);
    gap: 12px;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .hero-sub {
    font-size: 13px;
  }

  /* ── Belief Section ── */
  .belief-sec {
    padding: 24px 0;
  }

  .belief-inner {
    padding: 0;                /* 去掉外层padding，图片才能铺满 */
  }

  .belief-row {
    background: none;          /* 手机端不用背景图，改为真实 img */
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .belief-copy {
    padding: 24px 16px 20px;
  }

  .belief-copy p {
    display: block;
    max-width: 100%;
  }

  .belief-photo {
    display: block;            /* 手机端显示图片 */
    width: 100%;
    line-height: 0;
  }

  .belief-photo img {
    width: 100%;
    height: auto;
    display: block;
  }

  .cat-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cat-card {
    aspect-ratio: unset;
  }

  .cat-card--living {
    aspect-ratio: 1882 / 836;  /* living.png 原始比例 */
  }

  .cat-card--pet {
    aspect-ratio: 1680 / 936;  /* pet.png 原始比例 */
  }

  .cat-card--wellness {
    aspect-ratio: 16 / 9;
  }

  .cat-body {
    padding: 16px 20px;
    gap: 4px;
  }

  /* ── Everyday Favorites ── */
  .favorites-sec {
    padding: 16px 0 48px;
  }

  .favorites-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0;
  }

  .favorites-head .shop-all {
    margin-left: 0;
    flex-shrink: 0;
  }

  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* ── Values Strip ── */
  .values-sec {
    padding: 48px 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ── Our Story ── */
  .story-sec {
    padding: 16px 0 48px;
  }

  .story-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0;                /* 去掉外层padding，图片才能铺满 */
  }

  .story-img {
    aspect-ratio: 1964 / 801;  /* story.png 原始比例，不裁切 */
    border-radius: 0;          /* 去掉圆角，边到边铺满 */
  }

  .story-copy {
    padding: 0 var(--side-pad);  /* 文字部分保留左右间距 */
  }

  /* ── Newsletter ── */
  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .newsletter-form {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input[type="email"] {
    width: 100%;
    height: 50px;
    flex: none;
    border-radius: 4px;
  }

  .newsletter-form button {
    width: 100%;
    border-radius: 4px;
  }

  /* ── Footer ── */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding: 40px var(--side-pad) 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;   /* 品牌栏跨满 */
  }

  .footer-social {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .footer-bottom {
    padding: 16px var(--side-pad);
  }

  .footer-bottom p {
    text-align: center;
  }

  /* ── Cart Page ── */
  .cart-sec {
    padding: 28px 0 60px;
  }

  .cart-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Order Summary 紧跟商品列表下方 */
  .cart-summary {
    position: static;
    width: 100%;
  }

  /* ── Cart item: 移动端卡片（两列 grid，图片左 / 信息右，其余行跨满） ── */
  .cart-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    border: 1px solid var(--header-border);
    border-radius: 3px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 14px;
    gap: 0;
  }

  /* 图片：左列，仅第一行 */
  .cart-item-img-wrap {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    margin: 14px 0 14px 14px;
    aspect-ratio: 1 / 1;
    border-radius: 2px;
  }

  /* body 用 display:contents 让子元素直接进入 grid */
  .cart-item-body {
    display: contents;
  }

  /* 商品名：右列第 1 行 */
  .cart-item-name {
    grid-column: 2;
    grid-row: 1;
    padding: 14px 14px 0;
    align-self: start;
    margin-bottom: 0;
  }

  /* SKU：右列第 2 行 */
  .cart-item-sku {
    grid-column: 2;
    grid-row: 2;
    padding: 4px 14px 10px;
    align-self: start;
    margin-top: 0;
  }

  /* 数量+价格：跨两列 */
  .cart-item-mid {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-top: 1px solid var(--header-border);
    margin-bottom: 0;
  }

  /* Actions：跨两列 */
  .cart-item-actions {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-top: 1px solid var(--header-border);
    justify-content: space-between;
    gap: 0;
    margin-bottom: 0;
  }

  /* Protection：跨两列 */
  .cart-protection {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid var(--header-border);
    border-radius: 0;
    padding: 12px 14px;
    margin-bottom: 0;
  }

  /* MTO 块（在 .cart-item 外面）：移动端纵向，灰底带左边框 */
  .cart-mto-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    grid-template-columns: unset;
    padding: 14px;
    border-top: 1px solid var(--header-border);
    border-bottom: none;
    margin-bottom: 14px;
  }

  .cart-mto-badge {
    padding-left: 0;
  }

  /* 搜索框展开宽度缩小 */
  .header-search.is-open .search-box {
    max-width: 160px;
  }

  .search-input {
    width: 130px;
  }
}

/* ── 极小屏（≤ 360px）微调 ─────────────────────────── */
@media (max-width: 360px) {
  .prod-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-title {
    font-size: 26px;
  }
}



/* ── WhatsApp FAB (Floating Action Button) ──────────────── */
.meili-fab {
  display: none;
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 999;
}
@media (min-width: 768px) {
  .meili-fab { display: block; }
}
.meili-fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .15s, box-shadow .15s;
}
.meili-fab-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
.meili-fab-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
/* Mobile: also fixed, slightly smaller */
@media (max-width: 767px) {
  .meili-fab {
    display: block;
    position: fixed;
    right: 16px;
    bottom: 20px;
  }
  .meili-fab-btn {
    width: 48px;
    height: 48px;
  }
  .meili-fab-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* ── Mobile: favorites-head stack layout ─────────────── */
@media (max-width: 767px) {
  .favorites-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .favorites-head .shop-all {
    margin-left: 0;
  }
}

/* ── Address card badges ─────────────────────────────── */
.addr-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.addr-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}
.addr-badge--shipping { background: #2b2320; color: #f7f4ee; }
.addr-badge--billing  { background: #e8e3db; color: #2b2320; border: 1px solid #c8c2ba; }
