/* Base */
:root {
  --ink: #1a1410;
  --soy: #3a1f0f;
  --soy-mid: #7a4a25;
  --paper: #f4ead8;
  --paper-deep: #e9dec7;
  --stamp: #c0382a;
  --stamp-deep: #7a1d18;
  --bamboo: #5b7a52;
  --shadow-warm: 58, 31, 15;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(192, 56, 42, 0.04) 0, transparent 45%),
    radial-gradient(ellipse at 92% 90%, rgba(91, 122, 82, 0.05) 0, transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.23  0 0 0 0 0.12  0 0 0 0 0.06  0 0 0 0.07 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Language visibility */
.lang {
  display: none;
}

/* Show only matching language */
body.lang-zh .lang.zh {
  display: block;
}

body.lang-en .lang.en {
  display: block;
}

/* Make language buttons keep proper flex layout */
body.lang-zh a.lang.zh.btn,
body.lang-en a.lang.en.btn {
  display: inline-flex;
}

/* Explicitly hide the opposite language even on buttons */
body.lang-zh .lang.en {
  display: none;
}

body.lang-en .lang.zh {
  display: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  margin: 0;
  color: #171717;
}

p {
  margin: 0;
  line-height: 1.7;
}

.section {
  padding: 80px 0;
}

.section-alt {
  padding: 80px 0;
  background: var(--paper-deep);
}

.card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(58, 31, 15, 0.12);
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #c0382a, #7a1d18);
  color: #fff;
  box-shadow: 0 12px 24px rgba(192, 56, 42, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(192, 56, 42, 0.4);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(148, 81, 46, 0.2);
  color: #7a4a25;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 81, 46, 0.08);
}

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

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

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-cn {
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--soy);
}

.brand-en {
  font-size: 11px;
  color: #6b7280;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav a {
  position: relative;
  color: #4b5563;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c0382a, #7a1d18);
  transition: width 0.18s ease;
}

.nav a:hover::after {
  width: 60%;
}

/* "Track order" — set apart from the section anchors */
.nav a.nav-track {
  color: var(--stamp);
  border: 1px solid rgba(192, 56, 42, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.nav a.nav-track:hover {
  background: rgba(192, 56, 42, 0.08);
}
.nav a.nav-track::after { display: none; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 81, 46, 0.35);
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: #7a4a25;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, #c0382a, #7a1d18);
  color: #fff;
  border-color: transparent;
}

.lang-btn:hover {
  filter: brightness(1.03);
}

/* Hero */
.hero {
  padding: 60px 0 80px;
  background:
    radial-gradient(ellipse at 78% 0%, rgba(255, 240, 220, 0.9), transparent 55%),
    radial-gradient(ellipse at 5% 100%, rgba(192, 56, 42, 0.06), transparent 50%),
    var(--paper);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(28px);
  z-index: 0;
}

.hero::before {
  top: -60px;
  left: 22%;
  width: 180px;
  height: 280px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.55), transparent 70%);
  animation: steamRise 7s ease-in-out infinite;
}

.hero::after {
  top: -80px;
  left: 38%;
  width: 140px;
  height: 240px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.4), transparent 70%);
  animation: steamRise 9s ease-in-out 1.4s infinite;
}

.hero .container {
  position: relative;
  z-index: 1;
}

@keyframes steamRise {
  0%, 100% { transform: translateY(10px) scale(1); opacity: 0.45; }
  50% { transform: translateY(-30px) scale(1.15); opacity: 0.85; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 46px;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--soy);
}

.hero-copy h1::first-letter {
  color: var(--stamp);
}

.hero-subtitle {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 22px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(192, 56, 42, 0.06);
  color: #7a4a25;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fefce8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  backdrop-filter: blur(6px);
}

.hero-arrow.prev {
  left: 10px;
}

.hero-arrow.next {
  right: 10px;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.active {
  width: 18px;
  background: #f97316;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumb {
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  border: none;
  cursor: pointer;
}

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

/* About */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.about-copy h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.about-copy p + p {
  margin-top: 10px;
}

.about-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.8;
}

.about-media img {
  height: 260px;
  width: 100%;
  object-fit: cover;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: #4b5563;
}

/* Menu Filters */
.menu-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(148, 81, 46, 0.25);
  background: rgba(255, 255, 255, 0.8);
  color: #7a4a25;
  font-size: 14px;
  font-weight: 500;
  font-family: "Noto Serif SC", serif;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  background: rgba(192, 56, 42, 0.08);
  border-color: rgba(192, 56, 42, 0.4);
}

.filter-btn.active {
  background: linear-gradient(135deg, #c0382a, #7a1d18);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(192, 56, 42, 0.3);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(58, 31, 15, 0.16);
}

.product-image {
  position: relative;
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(192, 56, 42, 0.95);
  color: #fff7ed;
}

.product-tag.alt {
  background: #15803d;
}

.product-tag.new {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.product-tag.spicy {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.product-body {
  padding: 16px 18px 18px;
  position: relative;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(192, 56, 42, 0.15);
}

.price-currency {
  font-size: 16px;
  font-weight: 600;
  color: #c0382a;
}

.price-amount {
  font-size: 32px;
  font-weight: 700;
  color: #c0382a;
  line-height: 1;
}

.price-unit {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
}

.product-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 14px;
  min-height: 56px;
}

.sku-list {
  margin: 0;
}

.sku-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-top: 1px dashed rgba(148, 81, 46, 0.18);
}

.sku-row dt {
  font-weight: 500;
  color: #6b7280;
}

.sku-row dd {
  margin: 0;
  color: #111827;
}

.menu-note {
  margin-top: 20px;
  font-size: 13px;
  color: #4b5563;
  text-align: center;
}

/* Order */
.order-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: flex-start;
}

.order-copy h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.order-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: #374151;
  line-height: 1.8;
}

.order-steps li + li {
  margin-top: 4px;
}

.order-tip {
  margin-top: 16px;
  font-size: 13px;
  color: #6b7280;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(192, 56, 42, 0.08);
  color: #7a4a25;
  font-size: 12px;
  margin: 0 2px;
}

.order-contact {
  padding: 18px 18px 16px;
}

.order-contact h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.order-contact p {
  font-size: 13px;
  color: #374151;
  margin-bottom: 14px;
}

.wechat-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.wechat-id {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fef3c7;
  border: 1px solid rgba(202, 138, 4, 0.3);
}

.wechat-id .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92400e;
  margin-bottom: 4px;
}

.wechat-id .value {
  font-weight: 600;
  color: #78350f;
}

.wechat-placeholder {
  border-radius: 14px;
  border: 1px dashed rgba(148, 81, 46, 0.4);
  padding: 10px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  text-align: center;
}

.wechat-placeholder img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.wechat-id-text {
  font-size: 13px;
  font-weight: 600;
  color: #78350f;
  margin-top: 6px;
}

.placeholder-sub {
  font-size: 11px;
  color: #9ca3af;
}

.small {
  font-size: 11px;
  color: #9ca3af;
}

/* Location */
.location-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
}

.location-block {
  padding: 18px 18px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.location-block.soft {
  background: #fdfaf6;
}

.location-block h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.location-block h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.location-list {
  margin: 0;
}

.location-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed rgba(148, 81, 46, 0.18);
  font-size: 14px;
  color: #374151;
}

.location-row:first-of-type {
  border-top: none;
}

.location-row dt {
  font-weight: 500;
  color: #6b7280;
}

.location-row dd {
  margin: 0;
}

.location-row a {
  color: #c0382a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.location-row a:hover {
  color: #7a1d18;
  text-decoration: underline;
}

/* Contact Us */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: flex-start;
}

.contact-info {
  padding: 24px;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.contact-info p {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
}

.contact-list {
  margin: 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed rgba(148, 81, 46, 0.18);
}

.contact-item:first-of-type {
  border-top: none;
}

.contact-item dt {
  font-weight: 500;
  color: #6b7280;
  font-size: 14px;
}

.contact-item dd {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.contact-item a {
  color: #c0382a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: #7a1d18;
  text-decoration: underline;
}

.contact-form {
  padding: 24px;
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-form-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid rgba(148, 81, 46, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #171717;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c0382a;
  box-shadow: 0 0 0 3px rgba(192, 56, 42, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button[type="submit"] {
  margin-top: 8px;
}

@media (max-width: 960px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Floating Contact Button — stamp style */
.floating-contact-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--stamp);
  color: #fff7ed;
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px var(--stamp),
    0 8px 22px rgba(122, 29, 24, 0.45);
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.08em;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
  cursor: pointer;
  transform: rotate(-4deg);
}

.floating-contact-btn:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.04);
  box-shadow:
    0 0 0 2px var(--stamp),
    0 12px 28px rgba(122, 29, 24, 0.55);
}

.floating-contact-btn:active {
  transform: rotate(-2deg) translateY(-1px) scale(0.98);
}

.floating-btn-icon {
  font-size: 20px;
  line-height: 1;
}

.floating-btn-text {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .floating-contact-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .floating-btn-text {
    display: none;
  }

  .floating-btn-icon {
    font-size: 22px;
  }
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  overflow: hidden;
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.contact-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.contact-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

@media (max-width: 960px) {
  .contact-modal-content {
    max-width: 100%;
    margin: 10px;
    max-height: 95vh;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Form Success Message */
.form-success-message {
  padding: 16px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Loading Overlay */
.contact-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  border-radius: 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(192, 56, 42, 0.2);
  border-top-color: #c0382a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 15px;
  color: #374151;
  font-weight: 500;
  margin: 0;
}

.delivery-card {
  margin-top: 18px;
}

.delivery-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.delivery-card p {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 10px;
}

.delivery-table-wrapper {
  display: inline-block;
  border-radius: 12px;
  border: 1px solid rgba(148, 81, 46, 0.16);
  overflow: hidden;
  background: #fdfaf6;
}

.delivery-table-wrapper table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 320px;
}

.delivery-table-wrapper th,
.delivery-table-wrapper td {
  padding: 6px 10px;
  text-align: left;
}

.delivery-table-wrapper thead {
  background: rgba(148, 81, 46, 0.06);
}

.delivery-table-wrapper tbody tr:nth-child(even) {
  background: rgba(148, 81, 46, 0.03);
}

.delivery-note {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 10px;
}

/* Food Safety & Compliance Section */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.compliance-card {
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compliance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(58, 31, 15, 0.12);
}

.compliance-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #c0382a 0%, #94512e 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(192, 56, 42, 0.25);
}

.compliance-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #7a4a25;
  margin-bottom: 12px;
}

.compliance-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

.compliance-license {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.license-badge {
  max-width: 600px;
  width: 100%;
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, #fef7f0 0%, #f5eee7 100%);
  border: 2px solid rgba(192, 56, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.license-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c0382a 0%, #94512e 100%);
}

.license-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.license-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #7a4a25;
  margin-bottom: 16px;
}

.license-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(192, 56, 42, 0.2);
}

.license-number span {
  font-size: 14px;
  color: #6b7280;
}

.license-code {
  font-size: 28px;
  font-weight: 700;
  color: #c0382a;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  margin-top: 4px;
}

.license-note {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 12px;
  font-style: italic;
}

.compliance-certificate {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(148, 81, 46, 0.12);
}

.certificate-images {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.certificate-images img {
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(58, 31, 15, 0.1);
}

@media (max-width: 960px) {
  .compliance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .compliance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compliance-card {
    padding: 24px 20px;
  }

  .license-badge {
    padding: 24px 20px;
  }

  .license-code {
    font-size: 24px;
    letter-spacing: 1px;
  }
}

/* Compliance Footer */
.compliance-footer {
  background: #f5eee7;
  border-top: 1px solid rgba(148, 81, 46, 0.12);
  padding: 20px 0;
}

/* In a centered disclaimer block, default bullets float far to the left
   (outside the centered text). Drop them and let items read as plain lines. */
.compliance-footer ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.compliance-footer ul li {
  padding: 0;
  margin: 2px 0;
  position: relative;
}
/* Small stamp-red dot marker — distinguishes list items from paragraphs
   without indenting the text away from the left edge. */
.compliance-footer ul li::before {
  content: "·";
  color: var(--stamp);
  font-weight: 700;
  margin-right: 6px;
  font-size: 1.1em;
}

.compliance-footer-content {
  text-align: center;
}

.compliance-footer-text {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.compliance-footer-text strong {
  color: #7a4a25;
  font-weight: 600;
}

/* Legal Terms */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
  margin: 0;
}

.legal-section {
  padding: 24px;
}

.legal-section h3 {
  font-size: 22px;
  color: #7a4a25;
  margin-bottom: 20px;
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
}

.legal-text {
  line-height: 1.8;
  color: #4b5563;
  font-size: 15px;
}

.legal-text p {
  margin-bottom: 16px;
}

.legal-text p:last-child {
  margin-bottom: 0;
}

.legal-text ul {
  margin: 12px 0 16px 24px;
  padding-left: 0;
  list-style-type: disc;
}

.legal-text li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-text strong {
  color: #7a4a25;
  font-weight: 600;
}

.legal-text a {
  color: #94512e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-text a:hover {
  color: #7a4a25;
}

.footer-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #94512e;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .legal-section {
    padding: 18px 20px;
  }

  .legal-section h3 {
    font-size: 18px;
  }

  .legal-text {
    font-size: 14px;
  }

  .compliance-footer {
    padding: 16px 0;
  }

  .compliance-footer-text {
    font-size: 12px;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 81, 46, 0.12);
  background: #f5eee7;
  padding: 16px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #6b7280;
}

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

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .about-inner,
  .order-inner,
  .location-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    font-size: 13px;
    gap: 14px;
  }

  .lang-switch {
    margin-left: auto;
  }

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

@media (max-width: 720px) {
  .section,
  .section-alt,
  .hero {
    padding: 48px 0;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-main-image img {
    height: 220px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .order-inner {
    gap: 24px;
  }

  .location-inner {
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .wechat-box {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Product Detail Modal */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(148, 81, 46, 0.1);
}

.modal-title {
  font-size: 22px;
  margin: 0;
}

.modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-main-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f9f5f0;
}

.modal-main-image img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  display: block;
  object-fit: contain;
}

.modal-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.modal-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.modal-thumb.active {
  border-color: #c0382a;
  opacity: 1;
}

/* Product Image Clickable */
.product-image {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-image:hover {
  transform: scale(1.02);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-item {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(58, 31, 15, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-item img {
    height: 240px;
  }

  .modal-content {
    max-width: 100%;
    margin: 10px;
    max-height: 95vh;
  }

  .modal-main-image img {
    max-height: 50vh;
  }

  .modal-thumb {
    width: 60px;
    height: 60px;
  }
}

/* ============================================
   Motion choreography (added in design refresh)
   ============================================ */

/* Hero staggered entrance */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroMediaIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-copy h1            { animation: heroRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-copy .hero-subtitle { animation: heroRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both; }
.hero-copy .hero-cta      { animation: heroRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.24s both; }
.hero-copy .hero-tags     { animation: heroRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.36s both; }
.hero-media               { animation: heroMediaIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both; }

/* Site-header subtle drop on load */
@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-header { animation: headerDrop 0.5s ease both; }

/* Brand mark a tiny tilt when hover, like a chop print */
.brand-mark {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
}

/* Scroll reveal — JS adds .reveal then toggles .in */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger for grids */
.product-grid > .reveal:nth-child(1),
.gallery-grid > .reveal:nth-child(1),
.compliance-grid > .reveal:nth-child(1) { transition-delay: 0.05s; }
.product-grid > .reveal:nth-child(2),
.gallery-grid > .reveal:nth-child(2),
.compliance-grid > .reveal:nth-child(2) { transition-delay: 0.15s; }
.product-grid > .reveal:nth-child(3),
.gallery-grid > .reveal:nth-child(3),
.compliance-grid > .reveal:nth-child(3) { transition-delay: 0.25s; }
.product-grid > .reveal:nth-child(n+4),
.gallery-grid > .reveal:nth-child(n+4) { transition-delay: 0.35s; }

/* Section header slight character — tiny stamp dot under h2 */
.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--stamp);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(192, 56, 42, 0.12);
}

/* Card warmer shadow + tiny lift on the body */
.card {
  box-shadow:
    0 12px 28px rgba(var(--shadow-warm), 0.10),
    0 2px 6px rgba(var(--shadow-warm), 0.06);
}

/* Product card hover — warmer lift, softer */
.product-card:hover {
  box-shadow:
    0 22px 48px rgba(var(--shadow-warm), 0.18),
    0 4px 10px rgba(var(--shadow-warm), 0.10);
}

/* Filter button — keep but soften */
.filter-btn {
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  letter-spacing: 0.04em;
}

/* Body links and accents using soy not pure black */
.about-copy strong,
.legal-text strong,
.compliance-footer-text strong {
  color: var(--stamp);
}

/* Decorative bamboo-line top border on the page */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--stamp) 0,
    var(--stamp) 32%,
    var(--soy-mid) 32%,
    var(--soy-mid) 64%,
    var(--bamboo) 64%,
    var(--bamboo) 100%
  );
  z-index: 50;
  pointer-events: none;
}

/* Reduced motion — kill animations cleanly */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero::before,
  .hero::after { display: none; }
}

@media (max-width: 720px) {
  .hero-copy h1 {
    font-size: 32px;
  }
  .floating-contact-btn {
    bottom: 18px;
    right: 18px;
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ============================================
   Compliance — A-grade certificate showcase
   Lives at the bottom in the compliance section,
   2-column layout: cert card | text + allergens
   ============================================ */
/* Outer "framed" wrapper — fills the container width like the other
   sections, presenting cert + allergens as one official document. */
.compliance-card {
  background: #fff;
  border: 1px solid rgba(192, 56, 42, 0.18);
  border-top: 4px solid var(--stamp);
  border-radius: 14px;
  padding: 32px 40px;
  box-shadow:
    0 16px 36px rgba(58, 31, 15, 0.10),
    0 2px 6px rgba(58, 31, 15, 0.05);
}

.compliance-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
  text-align: left;
}
@media (max-width: 720px) {
  .compliance-card { padding: 22px 20px; border-radius: 12px; }
  .compliance-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .compliance-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Certificate showcase (now lives inside the framed compliance-card,
   so no own border/shadow — keeps it visually integrated). */
.cert-showcase {
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
}
.cert-showcase:hover { opacity: 0.92; }
.cert-showcase:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 4px;
}

.cert-showcase-head {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 8px;
}
.cert-grade-badge {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bamboo);
  color: #fff7ed;
  font-family: "Noto Serif SC", serif;
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow:
    0 0 0 1.5px var(--bamboo),
    0 2px 6px rgba(91, 122, 82, 0.28);
  transform: rotate(-4deg);
}
.cert-showcase-title .t1 {
  font-family: "Noto Serif SC", serif;
  font-size: 13px; color: var(--soy); font-weight: 600;
  line-height: 1.25;
}
.cert-showcase-title .t2 {
  font-size: 10px; color: var(--soy-mid); margin-top: 1px;
}

.cert-showcase-img {
  position: relative;
  height: 220px;              /* taller now that the card is wider */
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.cert-showcase-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;        /* full cert visible, never cropped */
  display: block;
  transition: transform 0.3s ease;
}
.cert-showcase:hover .cert-showcase-img img {
  transform: scale(1.03);
}
.cert-zoom-hint {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(58, 31, 15, 0.78);
  color: #fff7ed;
  text-align: center;
  font-size: 12px;
  padding: 8px 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.cert-showcase:hover .cert-zoom-hint { opacity: 1; }

.cert-showcase-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
}
.cert-showcase-meta dt { color: #9ca3af; }
.cert-showcase-meta dd {
  margin: 0;
  color: var(--soy);
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* Certificate modal */
.cert-modal {
  position: fixed; inset: 0;
  z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cert-modal[hidden] { display: none; }
.cert-overlay {
  position: absolute; inset: 0;
  background: rgba(58, 31, 15, 0.6);
  backdrop-filter: blur(6px);
  animation: cartFadeIn 0.2s ease;
}
.cert-panel {
  position: relative; z-index: 1;
  background: #fff7ed;
  border-radius: 16px;
  padding: 28px 28px 22px;
  max-width: 720px; max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(58, 31, 15, 0.4);
  animation: cartSlideIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cert-panel h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  color: var(--soy);
  margin: 0 0 18px;
  text-align: center;
}
.cert-close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: var(--paper-deep);
  color: var(--soy);
  font-size: 22px; cursor: pointer;
  z-index: 2;
}
.cert-close:hover { background: rgba(192, 56, 42, 0.18); }
.cert-image-wrap {
  background: #fff;
  border: 1px solid rgba(58, 31, 15, 0.12);
  border-radius: 8px;
  padding: 12px;
  display: flex; justify-content: center;
}
.cert-image-wrap img {
  max-width: 100%; max-height: 70vh; height: auto;
  border-radius: 4px;
}
.cert-missing {
  padding: 60px 20px;
  text-align: center;
  color: #9ca3af; font-size: 14px; font-style: italic;
}
.cert-meta {
  text-align: center;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--soy-mid);
}
.cert-meta strong { color: var(--stamp); }

/* ============================================
   Menu tabs (this-week / next-week / all)
   ============================================ */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.menu-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(58, 31, 15, 0.16);
  background: #fff;
  color: var(--soy);
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.menu-tab:hover {
  background: var(--paper-deep);
  border-color: rgba(192, 56, 42, 0.35);
}
.menu-tab.active {
  background: var(--stamp);
  color: #fff7ed;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(192, 56, 42, 0.32);
}
.menu-tab .tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stamp);
  color: #fff7ed;
  font-family: inherit;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
}
.menu-tab.active .tab-pill {
  background: #fff7ed;
  color: var(--stamp);
}
.menu-tab .tab-pill.upcoming {
  background: var(--bamboo);
}
.menu-tab.active .tab-pill.upcoming {
  background: #fff7ed;
  color: var(--bamboo);
}

/* Panel banners */
.panel-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin-bottom: 22px;
  background: rgba(192, 56, 42, 0.06);
  border-radius: 14px;
  border-left: 4px solid var(--stamp);
}
.panel-banner.subtle {
  background: rgba(91, 122, 82, 0.08);
  border-left-color: var(--bamboo);
}
.panel-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--soy);
}
.banner-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stamp);
  color: #fff7ed;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--stamp);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: "Ma Shan Zheng", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
  flex-shrink: 0;
}
.banner-stamp.upcoming {
  background: var(--bamboo);
  box-shadow: 0 0 0 2px var(--bamboo);
}
.all-hint {
  text-align: center;
  margin: 0 0 22px;
  color: var(--soy-mid);
  font-size: 14px;
}

/* Weekly grid (4 sellable cards) */
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 720px) {
  .weekly-grid { grid-template-columns: 1fr; }
}
.weekly-skeleton {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 14px;
}

/* Weekly card */
.weekly-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 12px 28px rgba(58, 31, 15, 0.10),
    0 2px 6px rgba(58, 31, 15, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.weekly-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 48px rgba(58, 31, 15, 0.16),
    0 4px 10px rgba(58, 31, 15, 0.08);
}
.weekly-card .wc-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.weekly-card .wc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.weekly-card:hover .wc-image img {
  transform: scale(1.04);
}
.weekly-card .wc-pos {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--stamp);
  color: #fff7ed;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--stamp);
  border-radius: 8px;
  font-family: "Ma Shan Zheng", serif;
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-5deg);
}
.weekly-card .wc-stock {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 247, 237, 0.95);
  color: var(--soy);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(58, 31, 15, 0.12);
}
.weekly-card .wc-stock.low { background: #fef3c7; color: #92400e; }
.weekly-card .wc-stock.out { background: #fecaca; color: #991b1b; }

.weekly-card .wc-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.weekly-card h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  margin: 0;
  color: var(--soy);
}
.weekly-card .wc-name-en {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}
.weekly-card .wc-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin: 4px 0 8px;
  flex: 1;
}
.weekly-card .wc-price {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  color: var(--stamp);
  font-weight: 700;
}
.weekly-card .wc-price small {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

/* Quantity stepper + add button */
.wc-buy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(58, 31, 15, 0.18);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
.qty-stepper button {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 18px;
  color: var(--soy);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.qty-stepper button:hover:not(:disabled) {
  background: rgba(192, 56, 42, 0.1);
}
.qty-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.qty-stepper input {
  width: 44px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--soy);
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-inner-spin-button,
.qty-stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: var(--stamp);
  color: #fff7ed;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-add:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(192, 56, 42, 0.32);
}
.btn-add:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}
.btn-add.in-cart {
  background: var(--bamboo);
}

/* ============================================
   Sold-out — small corner chop + restrained body label.
   Image stays clear, food still looks tasty, the seal is a
   "stamped on top" accent in the corner like a real shop notice.
   ============================================ */
.weekly-card.is-soldout {
  position: relative;
}
.weekly-card.is-soldout .wc-image img {
  filter: saturate(0.78) brightness(0.95);
  transition: filter 0.3s;
}
.weekly-card.is-soldout .qty-stepper { display: none; }
.weekly-card.is-soldout .btn-add { display: none; }
/* Hide the original 余N badge — the chop is the signal */
.weekly-card.is-soldout .wc-stock { display: none; }

/* Small corner chop */
.wc-soldout-stamp {
  position: absolute;
  top: 12px; right: 12px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%,
      rgba(255, 220, 210, 0.22) 0%, transparent 55%),
    var(--stamp);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Double inner ring like real Chinese seals */
  box-shadow:
    inset 0 0 0 2px rgba(255, 247, 237, 0.92),
    inset 0 0 0 3.5px var(--stamp),
    0 4px 12px rgba(122, 29, 24, 0.4),
    0 1px 3px rgba(58, 31, 15, 0.3);
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 5;
}
.wc-soldout-stamp .zh {
  color: #fff7ed;
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 1px rgba(58, 31, 15, 0.3);
}
.wc-soldout-stamp .en {
  color: rgba(255, 247, 237, 0.85);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Replacement label inside body where the add button used to be */
.weekly-card.is-soldout .wc-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
.wc-soldout-msg {
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  color: var(--stamp);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.wc-soldout-msg::before,
.wc-soldout-msg::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: rgba(192, 56, 42, 0.35);
}

@media (max-width: 480px) {
  .wc-soldout-stamp {
    width: 54px; height: 54px;
    top: 10px; right: 10px;
  }
  .wc-soldout-stamp .zh { font-size: 15px; }
  .wc-soldout-stamp .en { font-size: 6px; }
}

/* Preview (next-week) cards: dimmed, no stepper */
.weekly-grid.preview .weekly-card {
  opacity: 0.85;
}
.weekly-grid.preview .weekly-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(91, 122, 82, 0.08));
  pointer-events: none;
}
.wc-soon {
  text-align: center;
  padding: 10px;
  font-family: "Ma Shan Zheng", serif;
  color: var(--bamboo);
  font-size: 16px;
  letter-spacing: 0.08em;
  border: 1.5px dashed rgba(91, 122, 82, 0.35);
  border-radius: 12px;
  background: rgba(91, 122, 82, 0.06);
}

/* ============================================
   Cart FAB + Drawer
   ============================================ */
.cart-fab {
  position: fixed;
  bottom: 28px;
  right: 200px;     /* sit left of contact button */
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bamboo);
  color: #fff7ed;
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px var(--bamboo),
    0 8px 22px rgba(91, 122, 82, 0.45);
  font-family: "Ma Shan Zheng", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transform: rotate(3deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}
.cart-fab:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.04);
}
.cart-fab-icon { font-size: 20px; }
.cart-fab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--stamp);
  color: #fff7ed;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid #fff;
  font-family: "Noto Sans SC", sans-serif;
}

@media (max-width: 720px) {
  .cart-fab {
    right: 18px;
    bottom: 88px;          /* stack above contact button */
    padding: 12px 16px;
    font-size: 14px;
  }
  .cart-fab-text { display: none; }
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.cart-drawer[hidden] { display: none; }
.cart-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  animation: cartFadeIn 0.2s ease;
}
.cart-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(58, 31, 15, 0.25);
  animation: cartSlideIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cartSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes cartFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(58, 31, 15, 0.1);
}
.cart-head h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  margin: 0;
  color: var(--soy);
}
.cart-close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper-deep);
  border: none;
  font-size: 22px;
  color: var(--soy);
  cursor: pointer;
}
.cart-close-btn:hover { background: rgba(192, 56, 42, 0.15); }
.cart-meta {
  padding: 14px 24px;
  background: var(--paper-deep);
  font-size: 13px;
  color: var(--soy);
}
.cart-meta strong { margin-left: 6px; color: var(--stamp); }
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-empty {
  text-align: center;
  color: #9ca3af;
  padding: 40px 0;
  font-size: 14px;
}
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(58, 31, 15, 0.12);
}
.cart-item img {
  width: 56px; height: 56px;
  object-fit: cover; border-radius: 8px;
}
.cart-item .ci-name {
  font-weight: 600; color: var(--soy); font-size: 14px;
}
.cart-item .ci-meta {
  font-size: 12px; color: #6b7280; margin-top: 2px;
}
.cart-item .ci-controls {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.cart-item .qty-stepper { background: #fff; }
.cart-item .ci-remove {
  background: none; border: none; color: #9ca3af; cursor: pointer;
  font-size: 12px; text-decoration: underline; padding: 0;
}
.cart-item .ci-remove:hover { color: var(--stamp); }

.cart-foot {
  border-top: 1px solid rgba(58, 31, 15, 0.1);
  padding: 18px 24px 24px;
  background: var(--paper);
}
.cart-line {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 6px 0; font-size: 14px; color: var(--soy);
}
.cart-line .lang { display: none; }
.cart-line-total {
  font-size: 16px;
  border-top: 1px dashed rgba(58, 31, 15, 0.16);
  padding-top: 8px; margin-top: 8px;
}
.cart-line-total strong {
  font-family: "Noto Serif SC", serif;
  font-size: 22px; color: var(--stamp);
}
.cart-checkout {
  width: 100%;
  padding: 14px 22px !important;
  margin-top: 14px;
  font-size: 15px !important;
}
.cart-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #d1d5db !important;
  box-shadow: none !important;
}
.cart-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 12px 0 0;
  text-align: center;
}


/* ---------- Always-on contact CTA (WeChat / WhatsApp) ---------- */
.contact-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 16px 22px;
  border-radius: 14px;
  border: 1.5px dashed var(--bamboo);
  background: linear-gradient(135deg, rgba(91,122,82,0.08), rgba(192,56,42,0.05));
}
.contact-cta .cc-text { display: flex; flex-direction: column; gap: 4px; min-width: 220px; flex: 1; }
.contact-cta .cc-title { font-size: 16px; color: var(--soy); line-height: 1.4; }
.contact-cta .cc-sub { font-size: 13px; color: var(--soy-mid); }
.contact-cta .cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-cta .cc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: #fff; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.contact-cta .cc-btn.wechat { background: #07c160; }
.contact-cta .cc-btn.whatsapp { background: #25d366; }
.contact-cta .cc-btn:hover { transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(7,193,96,0.28); }

/* Fully-booked emphasis */
.contact-cta.is-soldout {
  border-color: var(--stamp);
  border-style: solid;
  background: linear-gradient(135deg, rgba(192,56,42,0.12), rgba(192,56,42,0.06));
  box-shadow: 0 8px 22px rgba(192,56,42,0.14);
}
.contact-cta.is-soldout .cc-title { color: var(--stamp-deep); }

@media (max-width: 560px) {
  .contact-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .contact-cta .cc-actions { justify-content: center; }
}
