/* ============================================================
   HUA HERITAGE 华传文化 — Main Stylesheet
   Brand Colors:
     Primary:    #C41E3A (Chinese Red)
     Gold:       #B8860B (Imperial Gold)
     Ink:        #1A1A2E (Ink Black)
     Jade:       #3D6B4F (Jade Green)
     Cream:      #FBF7F0 (Rice Paper)
     Warm Grey:  #6B6560
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #C41E3A;
  --gold:   #B8860B;
  --ink:    #1A1A2E;
  --jade:   #3D6B4F;
  --cream:  #FBF7F0;
  --grey:   #6B6560;
  --light:  #F5EFE6;
  --white:  #FFFFFF;
  --shadow: 0 4px 20px rgba(26,26,46,0.10);
  --radius: 10px;
  --trans:  all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Noto Sans SC', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.zh { font-family: 'Noto Serif SC', serif; }
.en-only { display: block; }
.zh-only { display: none; }
body.lang-zh .en-only { display: none; }
body.lang-zh .zh-only { display: block; }

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.3);
}
.lang-btn {
  padding: 4px 14px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: var(--trans);
  background: transparent;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
}
.lang-btn.active {
  background: var(--white);
  color: var(--red);
}

/* ── NAVIGATION ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
  transition: var(--trans);
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-en {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.logo-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 3px;
}
.logo-dot {
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 900;
  margin-right: 4px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
nav ul li a, nav ul li button {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--trans);
  letter-spacing: 0.3px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
nav ul li a:hover { color: var(--gold); background: rgba(255,255,255,0.08); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--ink) 0%, #2C1810 50%, #3D1515 100%);
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C41E3A' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(196,30,58,0.2);
  border: 1px solid rgba(196,30,58,0.5);
  color: #FF8A9A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  color: var(--white);
  margin-bottom: 12px;
}
.hero-title span { color: var(--gold); }
.hero-title-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  display: block;
}
.hero-sub {
  color: rgba(255,255,255,0.70);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--trans);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: #a8192f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,30,58,0.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-jade {
  background: var(--jade);
  color: var(--white);
  border-color: var(--jade);
}
.btn-jade:hover { background: #2e5239; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(61,107,79,0.4); }

.hero-deco {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 320px;
  color: rgba(196,30,58,0.06);
  font-family: 'Noto Serif SC', serif;
  font-weight: 900;
  user-select: none;
  line-height: 1;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }

/* ── SECTION BASE ── */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(196,30,58,0.08);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title { margin-bottom: 10px; }
.section-title span { color: var(--red); }
.section-sub { color: var(--grey); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ── CATEGORIES ── */
#categories { background: var(--white); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.category-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--trans);
  border: 1px solid rgba(196,30,58,0.08);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(196,30,58,0.25);
}
.cat-icon {
  font-size: 2.4rem;
  line-height: 1;
  min-width: 48px;
  text-align: center;
}
.cat-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cat-title-zh { font-size: 0.85rem; color: var(--red); font-family: 'Noto Serif SC', serif; margin-bottom: 6px; }
.cat-desc { font-size: 0.88rem; color: var(--grey); line-height: 1.5; }
.cat-count {
  display: inline-block;
  background: rgba(196,30,58,0.1);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 8px;
}

/* ── FEATURED PRODUCTS ── */
#products { background: var(--cream); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,26,46,0.07);
  transition: var(--trans);
  border: 1px solid rgba(196,30,58,0.06);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-img {
  height: 200px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.product-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(26,26,46,0.08));
}
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  z-index: 1;
}
.product-body { padding: 22px; }
.product-category { font-size: 11px; color: var(--grey); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.product-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.product-name-zh { font-family: 'Noto Serif SC', serif; font-size: 0.9rem; color: var(--red); margin-bottom: 10px; }
.product-desc { font-size: 0.88rem; color: var(--grey); line-height: 1.6; margin-bottom: 18px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-tag {
  font-size: 11px;
  color: var(--jade);
  background: rgba(61,107,79,0.1);
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 8px;
}
/* Fix: .btn display overrides .zh-only — restore correct visibility */
.btn.zh-only { display: none; }
body.lang-zh .btn.zh-only { display: inline-flex; }
.btn.en-only { display: inline-flex; }
body.lang-zh .btn.en-only { display: none; }

/* ── B2B SECTION ── */
#b2b {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
#b2b::before {
  content: '孔子';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 280px;
  font-family: 'Noto Serif SC', serif;
  color: rgba(196,30,58,0.06);
  line-height: 1;
  user-select: none;
}
.b2b-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.b2b-content .section-tag { background: rgba(196,30,58,0.2); }
.b2b-title { color: var(--white); margin-bottom: 16px; }
.b2b-title span { color: var(--gold); }
.b2b-sub { color: rgba(255,255,255,0.65); margin-bottom: 32px; }
.b2b-features { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.b2b-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
}
.b2b-features li::before {
  content: '✦';
  color: var(--gold);
  font-size: 14px;
  margin-top: 3px;
  min-width: 14px;
}
.b2b-cards { display: grid; gap: 16px; }
.b2b-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--trans);
}
.b2b-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(184,134,11,0.4); }
.b2b-card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.b2b-card-title { color: var(--gold); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.b2b-card-title-zh { color: rgba(255,255,255,0.5); font-size: 0.85rem; font-family: 'Noto Serif SC', serif; margin-bottom: 8px; }
.b2b-card-desc { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* ── ABOUT ── */
#about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: linear-gradient(135deg, var(--ink) 0%, #3D1515 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.about-deco-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 7rem;
  color: rgba(196,30,58,0.4);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  position: absolute;
}
.about-deco-sub {
  position: relative;
  z-index: 1;
  text-align: center;
}
.about-deco-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}
.about-deco-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--gold);
  display: block;
  letter-spacing: 4px;
}
.about-content { }
.about-content p { color: var(--grey); margin-bottom: 20px; line-height: 1.8; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.value-item {
  background: var(--cream);
  padding: 18px;
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}
.value-icon { font-size: 1.5rem; margin-bottom: 8px; }
.value-title { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.value-title-zh { font-size: 0.8rem; color: var(--red); font-family: 'Noto Serif SC', serif; }

/* ── CONTACT ── */
#contact { background: var(--cream); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}
.contact-info h3 { font-size: 1.4rem; margin-bottom: 8px; }
.contact-info .info-sub { color: var(--grey); margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(196,30,58,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  min-width: 44px;
}
.contact-item-label { font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 2px; }
.contact-item-value { font-size: 0.9rem; color: var(--grey); }

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-title { font-size: 1.3rem; margin-bottom: 6px; }
.form-sub { font-size: 0.9rem; color: var(--grey); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
label span { color: var(--red); }
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E0D5CA;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  transition: var(--trans);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(196,30,58,0.08);
}
textarea { resize: vertical; min-height: 120px; }
select { cursor: pointer; }
.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
  font-family: inherit;
  margin-top: 8px;
}
.form-submit:hover { background: #a8192f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,30,58,0.35); }
.form-note { font-size: 12px; color: var(--grey); margin-top: 12px; text-align: center; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo-en { font-size: 1.5rem; margin-bottom: 4px; }
.footer-brand p { font-size: 0.9rem; margin-top: 14px; max-width: 300px; line-height: 1.7; }
.footer-tagline { color: var(--gold); font-size: 0.85rem; font-style: italic; margin-top: 8px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.9rem; transition: var(--trans); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--gold); }

/* ── NOTICE BANNER ── */
.notice-banner {
  background: rgba(184,134,11,0.12);
  border: 1px solid rgba(184,134,11,0.3);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink);
}
.notice-icon { font-size: 1.2rem; margin-top: 1px; }

/* ── SCROLL TO TOP ── */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--trans);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(196,30,58,0.4);
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: #a8192f; transform: translateY(-3px); }

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 84px;
  right: 28px;
  background: var(--jade);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--trans);
  max-width: 300px;
  box-shadow: var(--shadow);
  pointer-events: none; /* invisible toast must not block clicks below it */
}
#toast.show { opacity: 1; transform: translateY(0); pointer-events: none; }

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  margin: 16px auto 0;
  border-radius: 2px;
}
.divider.left { margin-left: 0; }

/* ══════════════════════════════════════════════════
   PRODUCT CATALOG — Filter Tabs & Product Grid
   ══════════════════════════════════════════════════ */

/* ── Filter Tabs ── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 22px;
  border: 2px solid #d4c9bc;
  background: var(--white);
  color: var(--ink);
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,134,11,0.06);
}
.filter-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(196,30,58,0.28);
}

/* ── Products Catalog Grid ── */
.products-catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ── Product Card ── */
.products-catalog .product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(26,26,46,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.products-catalog .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(26,26,46,0.14);
}

/* ── Card Image Area ── */
.prod-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.prod-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.prod-emoji {
  font-size: 76px;
  line-height: 1;
  position: relative;
  z-index: 1;          /* stays behind real photo when it loads */
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.18));
}
.products-catalog .product-card:hover .prod-emoji {
  transform: scale(1.12) rotate(-4deg);
}
/* When a real photo is present, hide emoji on hover (photo takes over) */
.products-catalog .product-card:has(.prod-photo) .prod-emoji {
  opacity: 0.6;
}
/* ── Real product photo (fades in over gradient when loaded) ── */
.prod-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.products-catalog .product-card:hover .prod-photo {
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.4s ease;
}

.prod-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 0.70rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 4;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ── Category Gradient Backgrounds ── */
.prod-img.sports   { background: linear-gradient(135deg, #e8562a 0%, #f5a540 100%); }
.prod-img.music    { background: linear-gradient(135deg, #6b35b8 0%, #a866d8 100%); }
.prod-img.crafts   { background: linear-gradient(135deg, #276b4f 0%, #48a87a 100%); }
.prod-img.festive  { background: linear-gradient(135deg, #c41e3a 0%, #b8860b 100%); }
.prod-img.costumes { background: linear-gradient(135deg, #b0306b 0%, #e0709a 100%); }
.prod-img.teaching { background: linear-gradient(135deg, #1a50a0 0%, #4080cc 100%); }
.prod-img.books    { background: linear-gradient(135deg, #2d5a2d 0%, #4e9a50 100%); }

/* ── Card Body ── */
.products-catalog .product-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.products-catalog .product-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.products-catalog .product-name {
  font-size: 1.0rem;
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.3;
}
.products-catalog .product-name-zh {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.products-catalog .product-desc {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}
.products-catalog .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.products-catalog .product-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jade);
  background: rgba(61,107,79,0.10);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .products-catalog { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .products-catalog { grid-template-columns: repeat(2, 1fr); }
  .b2b-inner, .about-inner, .contact-inner, .footer-inner {
    grid-template-columns: 1fr;
  }
  .about-deco { min-height: 240px; }
  .hero-deco { display: none; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 680px) {
  .products-catalog { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .prod-img { height: 140px; }
  .prod-emoji { font-size: 58px; }
  .filter-btn { padding: 8px 14px; font-size: 0.80rem; }
  nav ul { display: none; }
  nav ul.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--ink); padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
  .hamburger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  section { padding: 56px 0; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 420px) {
  .products-catalog { grid-template-columns: 1fr; }
}

/* Slight visual differentiation for product reference images */
.taobao-img {
  filter: saturate(1.08) brightness(1.03) contrast(0.97);
}

/* ═══════════════════════════════════════════════════════════
   INQUIRY CART SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* ── Product card inquiry bar (injected by JS) ── */
.product-inquiry-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(0,0,0,0.07);
  background: #fafaf8;
  border-radius: 0 0 12px 12px;
  flex-wrap: wrap;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #c8d8c0;
  border-radius: 8px;
  overflow: hidden;
  height: 36px;
}

.qty-btn {
  background: #f0f5ed;
  border: none;
  width: 32px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  color: #3D6B4F;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}
.qty-btn:hover { background: #d6e8cc; }
.qty-btn:active { background: #b9d9a8; }

.qty-input {
  width: 40px;
  height: 36px;
  border: none;
  border-left: 1.5px solid #c8d8c0;
  border-right: 1.5px solid #c8d8c0;
  text-align: center;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.btn-add-inquiry {
  flex: 1;
  min-width: 100px;
  padding: 0 12px;
  height: 36px;
  background: var(--jade);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  white-space: nowrap;
}
.btn-add-inquiry:hover { background: #2d5a3f; transform: translateY(-1px); }
.btn-add-inquiry:active { transform: translateY(0); }
.btn-add-inquiry.added { background: #2d5a3f; }

/* ── Floating Cart Button ── */
.cart-fab {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cart-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,0.32); }
.cart-fab:active { transform: scale(0.96); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 3px;
}

/* ── Cart Overlay ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ── Cart Modal Panel ──────────────────────────────────────
   Layout: flex column with 3 rows
     Row 1  .cart-modal-header  flex-shrink:0  (fixed)
     Row 2  .cart-body          flex:1         (scrollable)
     Row 3  .cart-footer        flex-shrink:0  (fixed)
   The footer is a SIBLING of the scroll area — can never be covered.
   ─────────────────────────────────────────────────────────── */
.cart-modal {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  max-height: 80vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.cart-modal.open { transform: translateY(0); }

/* Row 1 — header */
.cart-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eee;
}
.cart-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #888;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.cart-close:hover { background: #f0f0f0; color: var(--ink); }

/* Row 2 — scrollable body (wraps empty state + items list) */
.cart-body {
  flex: 1;
  min-height: 0;          /* allow shrinking below content height */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Empty state — inside .cart-body */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #999;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.6;
  min-height: 160px;
}
.cart-empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.4; }

/* Items list — also inside .cart-body */
.cart-items {
  padding: 8px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-name {
  flex: 1;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.4;
}
.cart-item-name strong { display: block; font-weight: 600; }
.cart-item-name span { color: #888; font-size: 0.8rem; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #555;
}
.qty-btn-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #f8f8f8;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.qty-btn-sm:hover { background: #e8f0e4; border-color: var(--jade); }
.qty-count {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.cart-item-remove:hover { color: var(--red); }

/* Row 3 — footer: flex-shrink:0 ensures it always keeps its height */
.cart-footer {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}

.btn-cart-send {
  width: 100%;
  height: 46px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  order: 1;
}
.btn-cart-send:hover { background: #a01525; transform: translateY(-1px); }
.btn-cart-send:active { transform: translateY(0); }

.btn-cart-clear {
  width: 100%;
  height: 38px;
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  color: #aaa;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  order: 2;
}
.btn-cart-clear:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 600px) {
  .cart-modal { width: 100vw; }
  .cart-fab { bottom: 70px; right: 16px; width: 52px; height: 52px; font-size: 1.2rem; }
}

/* FAB bounce when item is added */
@keyframes fabBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  60%  { transform: scale(0.92); }
  80%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Cart remove button — trash icon style */
.cart-item-remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--red); background: #fff0f2; }

/* Message field highlight when auto-filled from cart */
@keyframes fieldPulse {
  0%   { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4); }
  60%  { box-shadow: 0 0 0 8px rgba(196, 30, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
}
.highlight-field {
  animation: fieldPulse 1.2s ease;
  border-color: var(--red) !important;
}

/* ── Editable Inquiry Table ── */
.inquiry-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--jade);
  font-weight: 600;
  flex-wrap: wrap;
}
.inquiry-table-switch {
  background: none;
  border: 1px solid var(--grey);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: var(--grey);
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}
.inquiry-table-switch:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(196,30,58,0.05);
}
.inquiry-table-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  margin-bottom: 6px;
}
.inquiry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.inquiry-table thead tr {
  background: var(--ink);
  color: var(--white);
}
.inquiry-table thead th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.inquiry-table thead th:nth-child(2) { width: 72px; text-align: center; }
.inquiry-table thead th:last-child  { width: 36px; }
.inquiry-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.15s;
}
.inquiry-table tbody tr:last-child { border-bottom: none; }
.inquiry-table tbody tr:hover { background: #fef9f0; }
.inquiry-table td {
  padding: 7px 10px;
  vertical-align: middle;
}
.inquiry-table td:nth-child(2) { text-align: center; }
.inquiry-table .iq-name-en {
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.inquiry-table .iq-name-zh {
  font-size: 0.8rem;
  color: var(--grey);
  display: block;
}
.lang-zh .iq-name-en { order: 2; font-weight: 400; color: var(--grey); font-size: 0.8rem; }
.lang-zh .iq-name-zh { order: 1; font-weight: 600; color: var(--ink); font-size: 0.88rem; }
.iq-qty-input {
  width: 58px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 4px 6px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s;
}
.iq-qty-input:focus {
  outline: none;
  border-color: var(--red);
}
.iq-notes-input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.85rem;
  color: var(--ink);
  transition: border-color 0.2s;
}
.iq-notes-input:focus {
  outline: none;
  border-color: var(--jade);
}
.iq-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #ccc;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s;
  line-height: 1;
}
.iq-remove-btn:hover { color: var(--red); }
.inquiry-table-note {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 4px;
}
