/* ============================================================
   美味人生 (Happy Life Happy Meal) — Homemade Chinese Food, Fremont CA
   Responsive: mobile <768 / tablet 768–1023 / desktop 1024–1439 / large 1440+
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-soft: #444444;
  --muted: #8a8a8a;
  --panel: #f1f1f0;
  --panel-2: #f7f7f6;
  --line: #e6e6e4;
  --dark: #0d0d0d;
  --dark-2: #161616;
  --accent: #111111;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1320px;
  --font-display: "Khand", "Noto Sans SC", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-card: 0 18px 40px -18px rgba(17, 17, 17, 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--ink); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1440px) {
  :root { --container: 1400px; }
  body { font-size: 16px; }
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
  font-size: 14.5px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  transition: background 0.28s var(--ease-out), color 0.28s var(--ease-out),
              transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45);
}

.btn:active { transform: translateY(0); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover { background: #2b2b2b; border-color: #2b2b2b; }

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- Announcement bar ---------- */

.announce {
  margin: 14px auto 0;
  max-width: var(--container);
  width: calc(100% - 48px);
  background: var(--dark);
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 10px;
}

.announce strong { font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo:hover { opacity: 0.7; }

.main-nav { display: flex; align-items: center; gap: 26px; }

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.main-nav a:hover, .main-nav a.active { color: var(--ink); }

.main-nav a:hover::after, .main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions { display: flex; align-items: center; gap: 6px; }

/* 中 / EN language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-right: 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  flex: none;
}

.lang-toggle span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle span.on { background: var(--ink); color: #fff; }

.lang-toggle:hover span:not(.on) { color: var(--ink); }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.25s ease, transform 0.25s ease;
}

.icon-btn:hover { background: var(--panel); transform: translateY(-1px); }

.icon-btn svg { width: 19px; height: 19px; }

.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}

.cart-count.show { transform: scale(1); }

.cart-count.bump { animation: bump 0.45s var(--ease-out); }

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.hamburger { display: none; }

/* ---------- Mobile drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 80;
}

.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(340px, 86vw);
  background: #fff;
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 22px 26px 30px;
  overflow-y: auto;
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.drawer nav { display: flex; flex-direction: column; }

.drawer nav a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding-left 0.3s var(--ease-out), color 0.3s ease;
}

.drawer nav a:hover { padding-left: 10px; color: #000; }

.drawer nav a svg { width: 16px; height: 16px; opacity: 0.4; }

.drawer-foot { margin-top: auto; padding-top: 26px; }

.drawer-foot .btn { width: 100%; }

/* ---------- Search overlay ---------- */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12vh 24px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-overlay.open { opacity: 1; pointer-events: auto; }

.search-box {
  width: min(640px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}

.search-box svg { width: 22px; height: 22px; flex: none; }

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 22px;
  font-weight: 500;
  background: transparent;
}

.search-close {
  position: absolute;
  top: 26px;
  right: 30px;
}

.search-results {
  width: min(640px, 100%);
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.search-hit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
  animation: fadeUp 0.4s var(--ease-out) backwards;
}

.search-hit:hover { background: var(--panel); transform: translateX(4px); }

.search-hit img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel);
}

.search-hit .sh-name { font-weight: 600; font-size: 14px; }
.search-hit .sh-meta { font-size: 12px; color: var(--muted); }
.search-hit .sh-price { margin-left: auto; font-weight: 600; }

.search-empty { color: var(--muted); margin-top: 26px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero { padding: 22px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.hero-panel {
  grid-column: 1;
  grid-row: 1;
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(32px, 4.5vw, 64px) clamp(26px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-panel h1 {
  font-size: clamp(40px, 4.6vw, 68px);
  max-width: 12ch;
  margin-bottom: 18px;
}

.hero-panel p {
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 42ch;
  margin-bottom: 28px;
}

.hero-media {
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  position: relative;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 14s var(--ease-out) forwards;
}

@keyframes kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.hero-features {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card svg {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  transition: transform 0.35s var(--ease-out);
}

.feature-card:hover svg { transform: translateY(-3px) scale(1.08); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.feature-card p { font-size: 13px; color: var(--muted); }

/* ---------- Section scaffolding ---------- */

.section { padding: clamp(56px, 7vw, 96px) 0 0; }

.section-head-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(30px, 4vw, 48px);
}

.section-head-center .section-sub { margin: 0 auto; }

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}

.section h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-head-center h2 { margin-bottom: 12px; }

/* ---------- Best product ---------- */

.best-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.best-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.callout:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.callout svg {
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  transition: transform 0.35s var(--ease-out);
}

.callout:hover svg { transform: scale(1.12) rotate(-4deg); }

.callout h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.callout p { font-size: 13px; color: var(--muted); }

.best-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  position: relative;
  background: var(--panel-2);
}

.best-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.best-media:hover img { transform: scale(1.05); }

/* ---------- Product cards ---------- */

.product-card { display: block; }

.pc-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 1 / 1;
}

.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.product-card:hover .pc-media img { transform: scale(1.07); }

.pc-quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 11px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(13, 13, 13, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), background 0.2s ease;
}

.product-card:hover .pc-quick { opacity: 1; transform: translateY(0); }

.pc-quick:hover { background: #000; }

.pc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 99px;
}

.pc-info { padding: 14px 2px 0; }

.pc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pc-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  transition: opacity 0.25s ease;
}

.product-card:hover .pc-name { opacity: 0.65; }

.pc-swatches { display: flex; gap: 5px; padding-top: 4px; flex: none; }

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform 0.25s var(--ease-out);
}

.product-card:hover .swatch { transform: scale(1.2); }

.pc-price { font-size: 14px; font-weight: 600; margin-top: 3px; }
.pc-unit { font-weight: 400; color: var(--muted); }

/* ---------- Collection section ---------- */

.collection-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  gap: 20px;
}

.collection-feature {
  grid-row: 1 / span 2;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
}

.collection-feature > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.collection-feature:hover > img { transform: scale(1.05); }

.collection-overlay {
  position: relative;
  margin: 22px;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  color: #fff;
  padding: 28px;
  max-width: 380px;
  transform: translateY(6px);
  transition: transform 0.45s var(--ease-out), background 0.3s ease;
}

.collection-feature:hover .collection-overlay {
  transform: translateY(0);
  background: rgba(0, 0, 0, 0.94);
}

.collection-overlay h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.collection-overlay p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 20px;
}

/* ---------- Accessories grid ---------- */

.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 20px;
  row-gap: 34px;
}

/* ---------- Stats / newsletter ---------- */

.stats-band {
  margin-top: clamp(56px, 7vw, 96px);
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stats-bg);
  background-size: cover;
  background-position: center 30%;
  opacity: 0.55;
}

.stats-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.55) 55%, rgba(13,13,13,0.92) 100%);
}

.stats-inner {
  position: relative;
  z-index: 1;
  padding: clamp(120px, 22vw, 340px) 0 clamp(44px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.stats-figures { display: flex; gap: clamp(28px, 5vw, 64px); }

.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 62px);
  font-weight: 600;
  line-height: 1;
}

.stat .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
}

.newsletter { max-width: 420px; width: 100%; }

.newsletter h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 5px;
  gap: 5px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
}

.newsletter-form button {
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.newsletter-form button:hover { background: #2e2e2e; transform: translateY(-1px); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: #fff;
  padding: clamp(44px, 5vw, 64px) 0 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
}

.footer-brand .logo { font-size: 24px; }

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  max-width: 460px;
  margin-top: 12px;
}

.socials { display: flex; gap: 10px; }

.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.socials a:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  transform: translateY(-3px);
}

.socials svg { width: 15px; height: 15px; }

.footer-mid {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-place img {
  width: min(300px, 100%);
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  filter: grayscale(20%);
  transition: filter 0.4s ease, transform 0.4s var(--ease-out);
}

.footer-place img:hover { filter: grayscale(0%); transform: scale(1.02); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 0;
}

.footer-contact svg { width: 15px; height: 15px; flex: none; opacity: 0.6; }

.footer-contact a:hover { color: #fff; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.footer-col li { padding: 5px 0; }

.footer-col a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  transition: color 0.25s ease, padding-left 0.3s var(--ease-out);
}

.footer-col a:hover { color: #fff; padding-left: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-links { display: flex; gap: 8px; align-items: center; }

.footer-bottom a:hover { color: #fff; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  margin-top: 22px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 60px) clamp(24px, 4vw, 52px);
}

.page-hero h1 { font-size: clamp(34px, 4vw, 54px); }

.breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Shop page ---------- */

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 26px;
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 99px;
  transition: all 0.25s ease;
  color: var(--ink-soft);
}

.pill:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.shop-count { font-size: 13px; color: var(--muted); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  row-gap: 36px;
  padding-bottom: 10px;
}

select.sort-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

select.sort-select:focus { border-color: var(--ink); }

/* ---------- Product detail page ---------- */

.pd-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4.5vw, 64px);
  margin-top: 28px;
}

.pd-gallery { position: sticky; top: 86px; align-self: start; }

.pd-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 1 / 1;
  position: relative;
  cursor: zoom-in;
}

.pd-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.pd-main:hover img { transform: scale(1.45); }

.pd-main img.swapping { animation: imgSwap 0.45s var(--ease-out); }

@keyframes imgSwap {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }

.pd-thumb {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  border: 2px solid transparent;
  padding: 0;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-thumb:hover { transform: translateY(-3px); }

.pd-thumb.active { border-color: var(--ink); }

.pd-info .eyebrow { margin-bottom: 6px; }

.pd-info h1 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 10px; }

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}

.pd-price { font-size: 26px; font-weight: 700; }

.pd-rating { font-size: 13px; color: var(--muted); }

.pd-rating .stars { color: var(--ink); letter-spacing: 2px; margin-right: 6px; }

.pd-short { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 24px; max-width: 50ch; }

.pd-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pd-label span { color: var(--muted); font-weight: 500; letter-spacing: 0.02em; text-transform: none; }

.pd-colors { display: flex; gap: 10px; margin-bottom: 26px; }

.color-dot {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid transparent;
  outline: 1px solid rgba(0, 0, 0, 0.14);
  outline-offset: 2px;
  padding: 0;
  transition: transform 0.25s var(--ease-out), outline-color 0.25s ease;
}

.color-dot:hover { transform: scale(1.12); }

.color-dot.active { outline: 2px solid var(--ink); }

.pd-buy-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 46px;
}

.qty-stepper button {
  width: 40px;
  height: 100%;
  border: none;
  background: #fff;
  font-size: 17px;
  transition: background 0.2s ease;
}

.qty-stepper button:hover { background: var(--panel); }

.qty-stepper input {
  width: 44px;
  text-align: center;
  border: none;
  outline: none;
  font-weight: 600;
  font-size: 14px;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pd-buy-row .btn { height: 46px; flex: 1; min-width: 150px; }

.pd-trust {
  display: flex;
  gap: 22px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.pd-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.pd-trust svg { width: 16px; height: 16px; }

.pd-accordion details {
  border-top: 1px solid var(--line);
}

.pd-accordion details:last-child { border-bottom: 1px solid var(--line); }

.pd-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.2s ease;
}

.pd-accordion summary:hover { opacity: 0.65; }

.pd-accordion summary::-webkit-details-marker { display: none; }

.pd-accordion summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.3s var(--ease-out);
}

.pd-accordion details[open] summary::after { transform: rotate(45deg); }

.pd-accordion .acc-body {
  padding: 0 2px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  animation: fadeUp 0.4s var(--ease-out);
}

.pd-accordion .acc-body ul { padding-left: 18px; list-style: disc; }

.pd-accordion .acc-body li { padding: 3px 0; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.spec-table td { padding: 8px 0; border-bottom: 1px dashed var(--line); }

.spec-table td:first-child { color: var(--muted); width: 42%; }

/* ---------- Cart page ---------- */

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 30px;
  align-items: start;
}

.cart-lines { display: flex; flex-direction: column; }

.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  animation: fadeUp 0.45s var(--ease-out) backwards;
}

.cart-line img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--panel);
}

.cart-line .cl-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.cart-line .cl-meta { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; display: flex; align-items: center; gap: 6px;}

.cl-swatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,0.12); }

.cart-line .qty-stepper { height: 38px; }
.cart-line .qty-stepper button { width: 32px; }

.cl-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.cl-price { font-weight: 700; font-size: 15px; }

.cl-remove {
  border: none;
  background: none;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cl-remove:hover { color: #c0392b; }

.summary-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 86px;
}

.summary-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 7px 0;
  color: var(--ink-soft);
}

.sum-row.total {
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  margin-top: 10px;
  padding-top: 14px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.sum-row .free { color: #1c7c3c; font-weight: 600; }

.promo-row { display: flex; gap: 8px; margin: 14px 0 4px; }

.promo-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.promo-row input:focus { border-color: var(--ink); }

.promo-row .btn { padding: 10px 16px; }

.promo-msg { font-size: 12px; margin-bottom: 8px; min-height: 16px; }
.promo-msg.ok { color: #1c7c3c; }
.promo-msg.err { color: #c0392b; }

.guest-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.guest-note svg { width: 13px; height: 13px; }

.empty-state {
  text-align: center;
  padding: 70px 20px;
}

.empty-state svg { width: 54px; height: 54px; opacity: 0.2; margin: 0 auto 18px; }

.empty-state h3 { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; margin-bottom: 8px; }

.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Checkout ---------- */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 30px;
  align-items: start;
}

.co-section { margin-bottom: 34px; }

.co-section h3 {
  font-family: var(--font-display);
  font-size: 21px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.co-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.co-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field textarea { resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.field input.invalid { border-color: #c0392b; }

/* datetime-local: normalize the native iOS/Safari control so the value
   sits flush-left and the field keeps a consistent tap height */
.field input[type="datetime-local"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-height: 46px;
  text-align: left;
  color: var(--ink);
}

.field input[type="datetime-local"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}

/* Pickup / Delivery segmented selector */
.method-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.field .method-options .method-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.method-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.method-option .mo-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field .method-options .method-option.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  color: var(--ink);
}

.method-option.selected .mo-dot {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--ink);
}

.field .err-text { color: #c0392b; font-size: 11.5px; margin-top: 4px; min-height: 14px; display: block; }

.co-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }

.co-item { display: flex; gap: 12px; align-items: center; }

.co-item .ci-thumb { position: relative; flex: none; }

.co-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

.co-item .ci-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.co-item .ci-name { font-size: 13px; font-weight: 600; }
.co-item .ci-meta { font-size: 11.5px; color: var(--muted); }
.co-item .ci-price { margin-left: auto; font-size: 13px; font-weight: 600; }

/* ---------- Confirmation ---------- */

.confirm-wrap {
  max-width: 640px;
  margin: 50px auto 0;
  text-align: center;
}

.confirm-check {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pop 0.6s var(--ease-out);
}

.confirm-check svg { width: 32px; height: 32px; }

@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.confirm-wrap h1 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 10px; }

.confirm-wrap > p { color: var(--muted); margin-bottom: 26px; }

.order-box {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
  margin-bottom: 26px;
}

.order-box h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 19px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.order-box h3 span { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ---------- Service / legal pages ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.info-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-card); }

.info-card svg { width: 24px; height: 24px; margin-bottom: 14px; }

.info-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.info-card p, .info-card li { font-size: 13.5px; color: var(--ink-soft); }

.faq-list { max-width: 760px; margin-top: 26px; }

.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 2px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: opacity 0.2s ease;
}

.faq-list summary:hover { opacity: 0.6; }
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s var(--ease-out);
  flex: none;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list .acc-body { padding: 0 2px 20px; color: var(--ink-soft); font-size: 14px; animation: fadeUp 0.4s var(--ease-out); }

.prose { max-width: 760px; margin-top: 26px; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 12px; }
.prose ul { padding-left: 20px; list-style: disc; }

/* ---------- Toast ---------- */

.toast-wrap {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--dark);
  color: #fff;
  padding: 13px 22px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.45s var(--ease-out);
  pointer-events: auto;
}

.toast.out { animation: toastOut 0.4s ease forwards; }

.toast svg { width: 15px; height: 15px; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(12px) scale(0.94); }
}

/* ---------- Reveal animations ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Desktop small / tablet landscape --- */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 12.5px; }
}

/* --- Tablet --- */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .hamburger { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { grid-column: 1; grid-row: 1; }
  .hero-media { grid-column: 1; grid-row: 2; min-height: 420px; position: relative; }
  .hero-media img { position: absolute; }
  .hero-features { grid-column: 1; grid-row: 3; }

  .best-grid { grid-template-columns: 1fr 1fr; }
  .best-media { grid-column: 1 / -1; grid-row: 1; min-height: 340px; }
  .best-col { grid-template-rows: none; }

  .collection-grid { grid-template-columns: 1fr 1fr; }
  .collection-feature { grid-column: 1 / -1; grid-row: 1; min-height: 440px; }

  .acc-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }

  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }

  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }

  .footer-mid { grid-template-columns: 1fr 1fr; }
  .footer-place { grid-column: 1 / -1; }

  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .announce { width: calc(100% - 36px); font-size: 11px; }

  .header-inner { height: 58px; }
  .logo { font-size: 19px; }
  .lang-toggle { margin-right: 2px; }
  .lang-toggle span { padding: 4px 7px; }

  .hero-features { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; }
  .hero-panel h1 { font-size: clamp(34px, 10vw, 44px); }

  .best-grid, .best-col { grid-template-columns: 1fr; }
  .best-media { min-height: 260px; }

  .collection-grid { grid-template-columns: 1fr 1fr; gap: 14px; row-gap: 26px; }
  .collection-feature { min-height: 380px; }
  .collection-overlay { margin: 14px; padding: 22px; }

  .acc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; row-gap: 26px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; row-gap: 28px; }

  .pc-name { font-size: 15px; }

  .stats-inner { flex-direction: column; align-items: flex-start; }

  .footer-mid { grid-template-columns: 1fr; gap: 30px; }
  .footer-top { flex-direction: column; }

  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img { width: 72px; height: 72px; }
  .cl-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }

  .form-grid { grid-template-columns: 1fr; }

  .info-grid { grid-template-columns: 1fr; }

  .pd-thumbs { flex-wrap: wrap; }
  .pd-thumb { width: 72px; height: 72px; }

  .section-head-split { flex-direction: column; align-items: flex-start; }
}

/* --- Small mobile --- */
@media (max-width: 480px) {
  .collection-grid { grid-template-columns: 1fr; }
  .pd-buy-row .btn { min-width: 120px; }
  .stats-figures { gap: 30px; }
}
