:root {
  color-scheme: light;
  --paper: #efe2c8;
  --paper-soft: #fbf2df;
  --paper-deep: #e7d5b0;
  --ink: #2c1c12;
  --brown: #5a3a22;
  --brown-2: #6b4423;
  --accent: #8a5a2b;
  --gold: #c8933f;
  --cream: #fff9ed;
  --line: rgba(90, 58, 34, 0.26);
  --shadow: 0 18px 40px rgba(68, 38, 18, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.62), transparent 24rem),
    radial-gradient(circle at 85% 18%, rgba(200, 147, 63, 0.18), transparent 18rem),
    linear-gradient(135deg, var(--paper-soft), var(--paper));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(90, 58, 34, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 58, 34, 0.08) 1px, transparent 1px);
  background-size: 26px 26px, 72px 72px;
  z-index: -1;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(14px, 4vw, 34px);
  background: rgba(255, 249, 237, 0.92);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 22px rgba(90, 58, 34, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: center;
}

.brand-cat {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 3px solid var(--brown);
  border-radius: 50%;
  background: var(--paper-deep);
}

.brand-cat img {
  width: 105px;
  height: 105px;
  object-fit: cover;
  object-position: 49% 37%;
}

.brand-name {
  font-family: "Baloo 2", "Noto Sans TC", sans-serif;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

.brand-sub {
  padding: 4px 8px;
  color: var(--cream);
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

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

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--line);
  border-radius: 16px;
  color: var(--brown);
  background: rgba(255, 249, 237, 0.92);
  font-size: 1.35rem;
  font-weight: 900;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.78rem;
}

#app {
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 108px;
}

#app > .cover-stage {
  order: 1;
}

#catalog {
  order: 2;
}

#app > .section-block:not(#catalog):not(#social) {
  order: 3;
}

#social {
  order: 4;
}

.panel {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 249, 237, 0.88);
  box-shadow: var(--shadow);
}

.cover-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  min-height: calc(100vh - 120px);
}

.cover-image {
  min-height: 620px;
  overflow: hidden;
}

.cover-image img,
.feature-image img,
.hero-shot img,
.cat-card img,
.product-card img,
.social-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-image img {
  object-position: center 46%;
}

.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(22px, 5vw, 46px);
}

.eyebrow,
.ribbon,
.paw-label {
  color: var(--brown);
  font-weight: 900;
  letter-spacing: 0;
}

.ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 18px;
  color: #fff;
  background: linear-gradient(90deg, var(--brown), var(--accent));
  border-radius: 999px;
  box-shadow: inset 0 -3px rgba(0, 0, 0, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: var(--brown);
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  color: var(--brown);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  color: var(--brown);
  font-size: 1.18rem;
}

.lead {
  color: #4d3422;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
}

.cta-row,
.social-row,
.quick-links,
.section-head,
.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary,
.btn-ghost,
.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid var(--brown);
  border-radius: 999px;
  font-weight: 900;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #9a6630, var(--brown));
  box-shadow: 0 8px 18px rgba(90, 58, 34, 0.22);
}

.btn-ghost,
.social-pill {
  color: var(--brown);
  background: var(--cream);
}

.section-block {
  margin-top: 28px;
  padding: clamp(18px, 4vw, 34px);
}

.section-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 40rem;
  color: #6b4a32;
  font-weight: 650;
}

.social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.social-board,
.social-image,
.feature-image {
  min-height: 360px;
  overflow: hidden;
}

.social-board {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(20px, 5vw, 42px);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 235, 170, 0.75), transparent 34%),
    linear-gradient(135deg, #fff8e8, #f3ddbb);
}

.social-board h3 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
}

.social-board .paw-list {
  margin: 0;
}

.social-actions {
  display: grid;
  gap: 12px;
}

.social-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 2px dashed rgba(90, 58, 34, 0.32);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.social-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--paper-deep);
  font-size: 1.8rem;
}

.social-card small {
  color: #725039;
  font-weight: 700;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.qr-card {
  margin: 0;
  padding: 12px;
  border: 2px solid rgba(90, 58, 34, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.qr-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.qr-card figcaption {
  margin-top: 8px;
  color: #5a3a22;
  font-weight: 850;
}

.hello-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.hello-copy {
  padding: clamp(20px, 4vw, 34px);
}

.paw-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.paw-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #4d3422;
  font-weight: 800;
}

.paw-list li::before,
.menu-list a::before,
.conflict-list li::before {
  content: "🐾";
  flex: 0 0 auto;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cat-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 250px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 10px 22px rgba(90, 58, 34, 0.12);
}

.cat-card img {
  aspect-ratio: 4 / 3;
  opacity: 0.95;
}

.cat-card figcaption {
  padding: 14px;
}

.cat-card .count {
  color: #79583e;
  font-weight: 750;
}

.cat-card.is-empty {
  opacity: 0.72;
}

.cat-card.is-empty img {
  filter: sepia(0.4) saturate(0.6);
}

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

.product-card {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 10px 20px rgba(90, 58, 34, 0.12);
}

.product-card a {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.product-card img {
  aspect-ratio: 1 / 1;
}

.product-body {
  display: flex;
  min-height: 236px;
  flex-direction: column;
  padding: 14px;
}

.product-body p {
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.price {
  color: var(--brown);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.15;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  color: #315f28;
  background: #e8f4dc;
  font-size: 0.85rem;
  font-weight: 900;
}

.badge.warn {
  color: #8c361f;
  background: #ffe4d9;
}

.empty-card {
  padding: 28px;
  text-align: center;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px dashed var(--line);
  border-radius: 999px;
  color: var(--brown);
  background: var(--cream);
  font-weight: 900;
}

.mode-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.product-detail .section-head {
  align-items: flex-start;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.detail-cover,
.detail-shot {
  overflow: hidden;
}

.detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 4vw, 32px);
}

.detail-price {
  display: block;
  color: var(--brown);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 950;
  line-height: 1;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.spec-list dt {
  color: var(--brown);
  font-weight: 950;
}

.spec-list dd {
  margin: 0;
  color: #4d3422;
  font-weight: 750;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.compact-head {
  margin-top: 26px;
}

.detail-gallery {
  display: grid;
  gap: 18px;
}

.detail-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 1600px;
  object-fit: contain;
  background: var(--cream);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(420px, 92vw);
  height: 100vh;
  padding: 18px;
  overflow-y: auto;
  background: var(--paper-soft);
  border-left: 3px solid var(--brown);
  box-shadow: -14px 0 30px rgba(54, 31, 17, 0.24);
  transform: translateX(110%);
  transition: transform 180ms ease;
}

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

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(31, 18, 9, 0.28);
}

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

.drawer-head strong {
  color: var(--brown);
  font-size: 1.6rem;
}

.drawer-tip,
.cart-note,
.site-footer small {
  color: #78583d;
  font-weight: 700;
}

.menu-list {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.search-form {
  display: flex;
  gap: 8px;
  margin: 18px 0 6px;
}

.search-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e2c9a8;
  font-size: 0.95rem;
  font-family: inherit;
}

.search-empty {
  color: #7b3f25;
  font-weight: 700;
}

.menu-list a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--line);
  font-size: 1.18rem;
  font-weight: 900;
}

.menu-social {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
}

.qty-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.qty-controls button,
.qty-controls span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  background: var(--cream);
  font-weight: 950;
}

.qty-controls .remove-btn {
  padding-inline: 12px;
  color: #8c361f;
}

.cart-foot {
  position: sticky;
  bottom: -18px;
  margin: 20px -18px -18px;
  padding: 16px 18px;
  background: var(--paper-deep);
  border-top: 2px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 18, 9, 0.42);
}

.modal-card {
  width: min(760px, 100%);
  max-height: min(82vh, 780px);
  overflow-y: auto;
  background: var(--paper-soft);
}

.checkout-summary {
  padding: clamp(18px, 4vw, 30px);
}

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

.summary-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.summary-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.summary-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
}

.summary-spec {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.checkout-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.copy-feedback {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: #5a3a22;
  font-weight: 850;
}

.notice-box {
  margin-top: 14px;
  padding: 14px;
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  background: #fff4d9;
  color: #5a3a22;
  font-weight: 850;
}

.block {
  width: 100%;
}

.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 16px;
  border: 3px solid var(--brown);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #9a6630, var(--brown));
  box-shadow: var(--shadow);
  font-weight: 950;
}

.chat-fab span {
  font-size: 1.6rem;
}

.chat-window {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 45;
  width: min(390px, calc(100vw - 28px));
  max-height: 76vh;
  overflow: hidden;
  border: 3px solid var(--brown);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: #fff;
  background: var(--brown);
}

.chat-title {
  display: grid;
}

.chat-log {
  display: grid;
  gap: 10px;
  max-height: 260px;
  padding: 14px;
  overflow-y: auto;
}

.bubble {
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--paper);
  font-weight: 700;
}

.bubble.user {
  color: #fff;
  background: var(--accent);
}

.chat-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 14px 12px;
}

.quick-chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  background: var(--paper-soft);
  font-weight: 800;
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-input input {
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
}

.site-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 24px;
  padding: 20px;
  border: 2px dashed var(--line);
  border-radius: 24px;
  background: rgba(255, 249, 237, 0.78);
}

.site-footer strong {
  color: var(--brown);
}

.conflict-list {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  color: #7b3f25;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 750;
}

@media (max-width: 940px) {
  .cover-stage,
  .social-grid,
  .hello-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .cover-image {
    min-height: 380px;
    max-height: 420px;
  }

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

  .detail-cover img {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 10px;
  }

  .brand {
    justify-self: start;
  }

  .brand-cat {
    width: 44px;
    height: 44px;
  }

  .brand-cat img {
    width: 88px;
    height: 88px;
  }

  .brand-name {
    font-size: 2rem;
  }

  .brand-sub {
    display: none;
  }

  .icon-btn {
    width: 42px;
    height: 42px;
  }

  #app {
    width: min(100% - 18px, 1180px);
    padding-top: 14px;
  }

  .cat-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-head {
    align-items: stretch;
  }

  .mode-toggle {
    width: 100%;
    border-radius: 18px;
  }

  .spec-list div,
  .summary-row {
    grid-template-columns: 1fr;
  }

  .summary-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .cover-copy {
    padding: 20px;
  }

  .cover-stage {
    min-height: auto;
  }

  .social-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .social-card .btn-ghost {
    grid-column: 1 / -1;
  }

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

  .chat-fab em {
    display: none;
  }
}

/* 建立時間：2026-06-26 18:09 HKT */
