@charset "utf-8";

/*
 * 晴宴越南料理 Quán Nắng — Vietnamese Lacquer Theme
 * 版本：1.9.0 / 2026-09-26
 *
 * 使用方式：把本檔「全部內容」加在 css/rwd.css 的最下方。
 * 不需修改任何 HTML 或 JavaScript；本檔只覆蓋現有 class。
 * 若日後要移除新版，只要刪除這一段覆蓋樣式即可。
 */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --qn-lacquer: #8f1d18;
  --qn-lacquer-dark: #4b0d0b;
  --qn-vermilion: #c6402c;
  --qn-gold: #d6a83c;
  --qn-gold-light: #f0d88a;
  --qn-rice: #fff8e8;
  --qn-ivory: #fffdf7;
  --qn-ink: #2d211c;
  --qn-muted: #75665d;
  --qn-jade: #285f4c;
  --qn-line: rgba(143, 29, 24, 0.14);
  --qn-shadow: 0 14px 38px rgba(72, 25, 14, 0.12);
  --qn-shadow-hover: 0 20px 44px rgba(72, 25, 14, 0.2);
  --qn-radius: 18px;
  --qn-radius-small: 12px;
}

/* ================================================================
   Member join phone row fix (2026-09-30)
   The phone input and verification button share one row on desktop,
   then become a compact two-row layout on narrow screens.
   ================================================================ */
#login_from.delivery-member .delivery-member-info:first-child {
  display: grid !important;
  grid-template-columns: 80px minmax(0, 1fr) 138px;
  align-items: center !important;
  column-gap: 0;
  min-width: 0;
  box-sizing: border-box;
}

#login_from.delivery-member .delivery-member-info:first-child > span.title,
#login_from.delivery-member .delivery-member-info:first-child > input[name="phone"] {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box;
}

#login_from.delivery-member .delivery-member-info:first-child > span.title {
  display: flex;
  align-items: center;
  margin: 0;
}

#login_from.delivery-member .delivery-member-info:first-child > input[name="phone"] {
  flex: none !important;
  font-size: 16px;
}

#login_from.delivery-member .delivery-member-info:first-child > .botton-m {
  display: flex;
  width: 100% !important;
  min-width: 0;
  height: 44px !important;
  min-height: 44px;
  align-items: center;
  margin: 0 !important;
  padding: 0 0 0 8px !important;
}

#login_from.delivery-member .delivery-member-info:first-child > .botton-m > a {
  display: flex !important;
  width: 100%;
  min-width: 0;
  height: 44px !important;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 8px 10px !important;
  white-space: nowrap;
}

@media (max-width: 640px) {
  #login_from.delivery-member .delivery-member-info:first-child {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "phone-title phone-input"
      ". phone-button";
    gap: 8px 6px;
    padding-bottom: 8px;
  }

  #login_from.delivery-member .delivery-member-info:first-child > span.title {
    grid-area: phone-title;
    padding-right: 4px;
    font-size: 14px;
  }

  #login_from.delivery-member .delivery-member-info:first-child > input[name="phone"] {
    grid-area: phone-input;
    padding: 9px 11px;
  }

  #login_from.delivery-member .delivery-member-info:first-child > .botton-m {
    grid-area: phone-button;
    padding-left: 0 !important;
  }

  #login_from.delivery-member .delivery-member-info:first-child > .botton-m > a {
    min-height: 42px;
    height: 42px !important;
    padding: 7px 12px !important;
    font-size: 14px;
  }
}

/* ================================================================
 * Scratch card — Vietnamese lacquer prize board
 * The silver coating itself is drawn by scratch-card-vietnam.js.
 * ================================================================ */
#scratch-card.point-portal {
  position: relative;
  isolation: isolate;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(240, 216, 138, 0.82);
  border-radius: 20px !important;
  background: #761713;
  box-shadow:
    0 20px 42px rgba(78, 19, 13, 0.25),
    0 4px 12px rgba(78, 19, 13, 0.18),
    inset 0 0 0 5px rgba(92, 16, 13, 0.5);
}

#scratch-card .scratch-card__prize {
  box-sizing: border-box;
  padding: 20px;
  color: #fff8e8;
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 216, 138, 0.2) 0 2%, transparent 32%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, #aa2f24 0%, #7e1916 44%, #4b0d0b 100%);
}

/* Đông Sơn drum-inspired medallion behind the prize. */
#scratch-card .scratch-card__prize::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(47%, 250px);
  aspect-ratio: 1;
  border: 1px solid rgba(240, 216, 138, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 18%, rgba(240, 216, 138, 0.5) 19% 21%, transparent 22% 33%, rgba(240, 216, 138, 0.42) 34% 36%, transparent 37%),
    repeating-conic-gradient(from 22.5deg, rgba(240, 216, 138, 0.44) 0 7deg, transparent 7deg 22.5deg);
  opacity: 0.42;
  transform: translate(-50%, -50%) rotate(7deg);
  pointer-events: none;
}

/* Double gold lacquer frame. */
#scratch-card .scratch-card__prize::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 10px;
  border: 1px solid rgba(240, 216, 138, 0.78);
  border-radius: 13px;
  box-shadow:
    inset 0 0 0 3px rgba(75, 13, 11, 0.42),
    inset 0 0 0 4px rgba(214, 168, 60, 0.28);
  pointer-events: none;
}

#scratch-card .prize-box {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(88%, 470px);
  height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 30px 18px 18px;
  color: #fff8e8;
  text-align: center;
}

#scratch-card .prize-box::before {
  content: "PHẦN THƯỞNG  •  晴宴好禮";
  position: absolute;
  top: 2px;
  left: 50%;
  color: #f0d88a;
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 800;
  letter-spacing: 0.22em;
  white-space: nowrap;
  transform: translateX(-50%);
}

#scratch-card .prize-box > h2 {
  margin: 0 0 10px !important;
  color: #fff9e9 !important;
  font-family: "Noto Sans TC", sans-serif;
  font-size: clamp(18px, 3.2vw, 28px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 8px rgba(45, 8, 6, 0.52);
}

#scratch-card .prize-box .value {
  display: flex;
  width: min(100%, 430px);
  min-height: 72px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(240, 216, 138, 0.82);
  border-radius: 16px;
  color: #771713;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.72), transparent 42%),
    #fff5d9;
  box-shadow:
    0 9px 20px rgba(48, 7, 5, 0.2),
    inset 0 0 0 3px rgba(214, 168, 60, 0.18);
  font-size: clamp(18px, 3.4vw, 28px);
  font-weight: 900;
  line-height: 1.32;
  text-wrap: balance;
}

#scratch-card #useCoupon {
  min-width: 126px;
  margin-top: 12px;
  padding: 9px 22px;
  border: 1px solid rgba(255, 248, 232, 0.5);
  border-radius: 999px;
  color: #fffaf0;
  background: linear-gradient(135deg, #b93629, #7d1714);
  box-shadow: 0 7px 16px rgba(75, 13, 11, 0.24);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#scratch-card #useCoupon:hover,
#scratch-card #useCoupon:focus-visible {
  background: linear-gradient(135deg, #d04735, #8f1d18);
  box-shadow: 0 10px 22px rgba(75, 13, 11, 0.34);
  transform: translateY(-2px);
}

#scratch-card .scratch-card__canvas {
  border-radius: inherit;
  filter: saturate(0.88) contrast(1.04);
}

@media (max-width: 640px) {
  #scratch-card.point-portal {
    width: 100% !important;
    border-radius: 15px !important;
    box-shadow: 0 12px 25px rgba(78, 19, 13, 0.23);
  }

  #scratch-card .scratch-card__prize {
    padding: 11px;
  }

  #scratch-card .scratch-card__prize::after {
    inset: 6px;
    border-radius: 10px;
  }

  #scratch-card .prize-box {
    width: 94%;
    padding: 24px 8px 8px;
  }

  #scratch-card .prize-box::before {
    top: 1px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  #scratch-card .prize-box > h2 {
    margin-bottom: 6px !important;
    font-size: clamp(16px, 5.2vw, 20px) !important;
  }

  #scratch-card .prize-box .value {
    min-height: 54px;
    padding: 7px 12px;
    border-radius: 11px;
    font-size: clamp(15px, 4.8vw, 19px);
    line-height: 1.2;
  }

  #scratch-card #useCoupon {
    min-width: 104px;
    margin-top: 7px;
    padding: 6px 15px;
    font-size: 12px;
  }
}

/* ================================================================
 * Member agreement / personal-data notice
 * Markup: quan-nang-member-agreement.html
 * ================================================================ */
.qn-agreement-page.message-box {
  padding: 24px 8px 44px;
}

.qn-member-agreement.table-box {
  position: relative;
  width: min(100%, 760px);
  max-width: 760px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 30px 38px 34px;
  overflow: hidden;
  border: 1px solid rgba(143, 29, 24, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(240, 216, 138, 0.24), transparent 34%),
    linear-gradient(145deg, #fffdf8, #fff8e8);
  box-shadow: 0 18px 42px rgba(72, 25, 14, 0.12);
}

.qn-member-agreement.table-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--qn-gold), var(--qn-lacquer), var(--qn-gold), transparent);
}

.qn-agreement-kicker {
  margin-bottom: 5px;
  color: var(--qn-gold);
  font-family: "Playfair Display", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-align: center;
}

.qn-member-agreement.table-box > h3 {
  position: relative;
  margin: 0 0 20px;
  padding: 0 0 14px;
  border: 0;
  color: var(--qn-lacquer-dark);
  font-size: clamp(21px, 3.2vw, 27px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-align: center;
}

.qn-member-agreement.table-box > h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: var(--qn-gold);
  transform: translateX(-50%);
}

.qn-agreement-intro {
  padding: 16px 18px;
  border: 1px solid rgba(214, 168, 60, 0.35);
  border-radius: 14px;
  color: #5e4b32;
  background:
    radial-gradient(circle at 22px 22px, rgba(214, 168, 60, 0.22) 0 7px, transparent 8px),
    rgba(255, 250, 239, 0.88);
  text-align: center;
}

.qn-agreement-intro strong {
  display: block;
  color: var(--qn-lacquer-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.qn-agreement-intro p {
  margin: 5px 0 0;
  color: #75665d;
  font-size: 14px;
  line-height: 1.7;
}

.qn-agreement-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0 16px;
}

.qn-agreement-badges span {
  position: relative;
  padding: 8px 8px 8px 25px;
  border: 1px solid rgba(143, 29, 24, 0.11);
  border-radius: 999px;
  color: var(--qn-lacquer-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.qn-agreement-badges span::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 10px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--qn-jade);
  font-size: 9px;
  transform: translateY(-50%);
}

.qn-agreement-scroll {
  max-height: 490px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px;
  border: 1px solid rgba(143, 29, 24, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 3px 12px rgba(72, 25, 14, 0.055);
  scrollbar-color: var(--qn-gold) rgba(143, 29, 24, 0.08);
  scrollbar-width: thin;
}

.qn-agreement-scroll::-webkit-scrollbar {
  width: 8px;
}

.qn-agreement-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(143, 29, 24, 0.07);
}

.qn-agreement-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--qn-gold);
}

.qn-agreement-scroll:focus-visible {
  outline: 3px solid rgba(214, 168, 60, 0.4);
  outline-offset: 2px;
}

.qn-agreement-version {
  margin: 0 2px 10px;
  color: #918177;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: right;
}

.qn-agreement-scroll details {
  overflow: hidden;
  margin-bottom: 9px;
  border: 1px solid rgba(143, 29, 24, 0.12);
  border-radius: 12px;
  background: #fffdf8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qn-agreement-scroll details:last-child {
  margin-bottom: 0;
}

.qn-agreement-scroll details[open] {
  border-color: rgba(214, 168, 60, 0.56);
  box-shadow: 0 7px 18px rgba(72, 25, 14, 0.065);
}

.qn-agreement-scroll summary {
  position: relative;
  display: flex;
  min-height: 46px;
  box-sizing: border-box;
  align-items: center;
  gap: 10px;
  padding: 9px 42px 9px 12px;
  color: var(--qn-lacquer-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.qn-agreement-scroll summary::-webkit-details-marker {
  display: none;
}

.qn-agreement-scroll summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 13px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--qn-lacquer);
  background: rgba(214, 168, 60, 0.2);
  font-size: 18px;
  font-weight: 600;
  transform: translateY(-50%);
}

.qn-agreement-scroll details[open] summary::after {
  content: "−";
}

.qn-agreement-scroll summary > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf0;
  background: var(--qn-lacquer);
  font-size: 10px;
  letter-spacing: 0;
}

.qn-agreement-copy {
  padding: 0 16px 14px 50px;
  color: #65564e;
  font-size: 13px;
  line-height: 1.85;
}

.qn-agreement-copy p {
  margin: 0 0 8px;
}

.qn-agreement-copy p:last-child {
  margin-bottom: 0;
}

.qn-agreement-copy a {
  color: var(--qn-lacquer);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qn-agreement-data-list {
  margin: 0;
}

.qn-agreement-data-list > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed rgba(143, 29, 24, 0.14);
}

.qn-agreement-data-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.qn-agreement-data-list dt {
  color: var(--qn-lacquer-dark);
  font-weight: 800;
}

.qn-agreement-data-list dd {
  margin: 0;
}

.qn-agreement-form {
  margin-top: 16px;
}

.qn-agreement-check {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(143, 29, 24, 0.13);
  border-radius: 12px;
  color: #65564e;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.65;
  cursor: pointer;
}

.qn-agreement-check--required {
  border-color: rgba(214, 168, 60, 0.48);
  background: rgba(240, 216, 138, 0.13);
}

.qn-agreement-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.qn-checkmark {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  margin-top: 1px;
  border: 2px solid rgba(143, 29, 24, 0.46);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.qn-agreement-check input:checked + .qn-checkmark {
  border-color: var(--qn-lacquer);
  background: var(--qn-lacquer);
}

.qn-agreement-check input:checked + .qn-checkmark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.qn-agreement-check input:focus-visible + .qn-checkmark {
  outline: 3px solid rgba(214, 168, 60, 0.42);
  outline-offset: 3px;
}

.qn-agreement-check b {
  color: var(--qn-lacquer-dark);
  font-weight: 800;
}

.qn-agreement-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.qn-agreement-actions button,
.qn-agreement-actions .qn-agreement-back {
  display: inline-flex;
  min-height: 46px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.qn-agreement-actions button {
  color: #fffaf0;
  background: linear-gradient(135deg, #b93629, var(--qn-lacquer));
  box-shadow: 0 8px 18px rgba(75, 13, 11, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.qn-agreement-actions button:not(:disabled):hover,
.qn-agreement-actions button:not(:disabled):focus-visible {
  box-shadow: 0 11px 24px rgba(75, 13, 11, 0.3);
  transform: translateY(-2px);
}

.qn-agreement-actions button:disabled {
  color: #fff;
  background: #aaa09a;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.qn-agreement-actions .qn-agreement-back {
  border-color: rgba(143, 29, 24, 0.2);
  color: var(--qn-lacquer-dark);
  background: #fffdf8;
}

@media (max-width: 640px) {
  .qn-agreement-page.message-box {
    padding: 10px 4px 24px !important;
  }

  .qn-member-agreement.table-box {
    width: 100%;
    padding: 22px 13px 24px;
    border-radius: 15px;
  }

  .qn-member-agreement.table-box::before {
    right: 18px;
    left: 18px;
  }

  .qn-agreement-kicker {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .qn-member-agreement.table-box > h3 {
    margin-bottom: 16px;
    padding-bottom: 11px;
    font-size: 20px;
    letter-spacing: 0.035em;
  }

  .qn-agreement-intro {
    padding: 13px 12px;
  }

  .qn-agreement-intro strong {
    font-size: 15px;
  }

  .qn-agreement-intro p {
    font-size: 12px;
  }

  .qn-agreement-badges {
    gap: 5px;
    margin: 10px 0 12px;
  }

  .qn-agreement-badges span {
    padding: 7px 4px 7px 18px;
    font-size: 10px;
  }

  .qn-agreement-badges span::before {
    left: 5px;
    width: 12px;
    height: 12px;
    font-size: 8px;
  }

  .qn-agreement-scroll {
    /* Mobile: use the page as the only scroll container.
       This prevents the agreement box from trapping touch scrolling
       after its own content reaches the top or bottom. */
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: auto;
    padding: 8px;
    border-radius: 12px;
  }

  .qn-agreement-version {
    font-size: 10px;
  }

  .qn-agreement-scroll summary {
    min-height: 44px;
    gap: 8px;
    padding: 8px 37px 8px 9px;
    font-size: 13px;
  }

  .qn-agreement-scroll summary > span {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 9px;
  }

  .qn-agreement-scroll summary::after {
    right: 9px;
    width: 22px;
    height: 22px;
    font-size: 16px;
  }

  .qn-agreement-copy {
    padding: 0 11px 12px 43px;
    font-size: 12px;
    line-height: 1.78;
  }

  .qn-agreement-data-list > div {
    display: block;
    padding: 7px 0;
  }

  .qn-agreement-data-list dt {
    margin-bottom: 2px;
  }

  .qn-agreement-check {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    font-size: 12px;
  }

  .qn-checkmark {
    width: 21px;
    height: 21px;
  }

  .qn-agreement-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 13px;
  }

  .qn-agreement-actions button,
  .qn-agreement-actions .qn-agreement-back {
    width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qn-agreement-scroll details,
  .qn-checkmark,
  .qn-agreement-actions button {
    transition: none;
  }
}

/* ================================================================
 * Member login — isolated layout repair
 * Keeps the password eye inside the field and makes all four actions
 * responsive without changing the page HTML.
 * ================================================================ */
form.login-bg01.max600 {
  position: relative;
  width: min(100%, 600px);
  max-width: 600px;
  box-sizing: border-box;
  margin: 24px auto 30px !important;
  padding: 30px 38px 34px;
  border: 1px solid rgba(143, 29, 24, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(240, 216, 138, 0.22), transparent 34%),
    linear-gradient(145deg, #fffdf8, #fff8e8);
  box-shadow: 0 18px 42px rgba(72, 25, 14, 0.12);
}

form.login-bg01.max600::before {
  content: "";
  position: absolute;
  top: 0;
  right: 26px;
  left: 26px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--qn-gold), var(--qn-lacquer), var(--qn-gold), transparent);
}

form.login-bg01.max600 > h2 {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 13px;
  color: var(--qn-lacquer-dark);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

form.login-bg01.max600 > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--qn-gold);
  transform: translateX(-50%);
}

form.login-bg01 .form.login {
  width: 100%;
}

form.login-bg01 .login .form-lis {
  position: relative;
  display: grid !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid rgba(143, 29, 24, 0.16);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(72, 25, 14, 0.055);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.login-bg01 .login .form-lis:focus-within {
  border-color: var(--qn-gold);
  box-shadow: 0 0 0 3px rgba(214, 168, 60, 0.18), 0 8px 20px rgba(72, 25, 14, 0.08);
}

form.login-bg01 .login .form-lis .title {
  display: flex;
  width: auto !important;
  min-width: 0;
  min-height: 50px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 0;
  color: var(--qn-lacquer-dark);
  background: linear-gradient(135deg, rgba(240, 216, 138, 0.56), rgba(255, 248, 232, 0.92));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

form.login-bg01 .login .form-lis .data,
form.login-bg01 .login .form-lis input.data {
  display: block;
  width: 100% !important;
  min-width: 0;
  min-height: 50px;
  box-sizing: border-box;
  padding: 11px 15px;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--qn-ink);
  background: #fff;
  box-shadow: none !important;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  outline: 0;
}

form.login-bg01 .login .form-lis input.data::placeholder {
  color: #9b8d84;
  opacity: 1;
}

form.login-bg01 .login .password-list input.data {
  padding-right: 48px;
}

form.login-bg01 .login .password-list #eyeIcon {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 15px;
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  color: var(--qn-lacquer);
  background: rgba(240, 216, 138, 0.25);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

form.login-bg01 .login .btn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  text-align: center;
}

form.login-bg01 .login .btn a {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fffaf0;
  background: linear-gradient(135deg, #a72d24, var(--qn-lacquer));
  box-shadow: 0 7px 17px rgba(75, 13, 11, 0.17);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

form.login-bg01 .login .btn a:nth-child(2) {
  color: #fff;
  background: linear-gradient(135deg, #28b568, #079548);
}

form.login-bg01 .login .btn a:nth-child(n + 3) {
  border-color: rgba(143, 29, 24, 0.18);
  color: var(--qn-lacquer-dark);
  background: #fffdf8;
  box-shadow: 0 5px 14px rgba(72, 25, 14, 0.075);
}

form.login-bg01 .login .btn a:hover,
form.login-bg01 .login .btn a:focus-visible {
  box-shadow: 0 10px 22px rgba(75, 13, 11, 0.23);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  form.login-bg01.max600 {
    width: calc(100% - 8px);
    margin: 12px auto 22px !important;
    padding: 22px 14px 24px;
    border-radius: 15px;
  }

  form.login-bg01.max600::before {
    right: 18px;
    left: 18px;
  }

  form.login-bg01.max600 > h2 {
    margin-bottom: 18px;
    padding-bottom: 10px;
    font-size: 21px;
  }

  form.login-bg01 .login .form-lis {
    grid-template-columns: 78px minmax(0, 1fr);
    margin-bottom: 11px;
    border-radius: 11px;
  }

  form.login-bg01 .login .form-lis .title {
    width: auto !important;
    min-height: 48px;
    padding: 9px 7px;
    border-radius: 0;
    font-size: 14px;
  }

  form.login-bg01 .login .form-lis .data,
  form.login-bg01 .login .form-lis input.data {
    width: 100% !important;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 0 !important;
    font-size: 16px;
  }

  form.login-bg01 .login .password-list input.data {
    padding-right: 45px;
  }

  form.login-bg01 .login .password-list #eyeIcon {
    right: 9px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  form.login-bg01 .login .btn {
    gap: 8px;
    margin-top: 16px;
  }

  form.login-bg01 .login .btn a {
    min-height: 42px;
    padding: 9px 8px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #scratch-card #useCoupon {
    transition: none;
  }
}

html {
  scroll-behavior: smooth;
  background: var(--qn-rice);
}

body {
  color: var(--qn-ink);
  background-color: var(--qn-rice);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(143, 29, 24, 0.07) 1px, transparent 1.25px),
    linear-gradient(135deg, rgba(214, 168, 60, 0.035) 25%, transparent 25%),
    linear-gradient(315deg, rgba(214, 168, 60, 0.035) 25%, transparent 25%);
  background-position: 0 0, 0 0, 12px 12px;
  background-size: 24px 24px;
  padding-top: 88px;
  padding-bottom: 0;
  /* Keep the original icon font as a fallback for legacy pseudo-element icons. */
  font-family: "Noto Sans TC", bootstrap-icons, "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
}

body.index-body {
  padding-top: 0;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(214, 168, 60, 0.72);
  outline-offset: 3px;
}

/* ---------- Header / Vietnamese lacquer navigation ---------- */
header {
  height: 88px;
  background:
    radial-gradient(circle at 14px 14px, transparent 8px, rgba(240, 216, 138, 0.12) 8.5px, transparent 9.5px) 0 0 / 28px 28px,
    linear-gradient(110deg, var(--qn-lacquer-dark), var(--qn-lacquer) 56%, #a8261d);
  border-bottom: 2px solid var(--qn-gold);
  box-shadow: 0 8px 28px rgba(50, 8, 5, 0.23);
}

header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--qn-gold-light), transparent);
  opacity: 0.78;
  pointer-events: none;
}

header.down {
  height: 76px;
  background:
    radial-gradient(circle at 14px 14px, transparent 8px, rgba(240, 216, 138, 0.1) 8.5px, transparent 9.5px) 0 0 / 28px 28px,
    linear-gradient(110deg, rgba(75, 13, 11, 0.98), rgba(143, 29, 24, 0.97));
  border-bottom-color: var(--qn-gold);
}

.top-head {
  max-width: 1240px;
  height: 88px;
  padding-top: 0;
}

header.down .top-head {
  height: 76px;
  padding-top: 0;
}

header .logo {
  width: 132px;
  left: 18px;
  top: 11px;
  filter: drop-shadow(0 5px 10px rgba(38, 6, 4, 0.3));
}

header.down .logo {
  width: 108px;
  left: 18px;
  top: 9px;
}

nav {
  position: absolute;
  top: 22px;
  right: 176px;
  left: 166px;
  border-top: 0;
  transition: all 0.3s ease;
}

header.down nav {
  top: 16px;
  left: 142px;
}

.menu {
  gap: 6px;
  overflow: visible;
}

.menu > li > a,
.menu > li > span {
  position: relative;
  color: #fff9e9;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 500;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.menu > li:first-child {
  flex: 1.7;
}

.menu > li > a::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: 3px;
  left: 22%;
  height: 2px;
  border-radius: 99px;
  background: var(--qn-gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.menu > li > a:hover,
.menu > li:hover > span,
.menu > li.active > a,
.menu > li.active > span {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(240, 216, 138, 0.52);
}

.menu > li > a:hover::after,
.menu > li.active > a::after {
  transform: scaleX(1);
}

ul.top-tool li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 44px;
  color: #fff9e9;
  font-size: 28px;
  line-height: 1;
}

ul.top-tool {
  display: flex;
  align-items: center;
  gap: 4px;
  top: 22px;
  right: 18px;
  bottom: auto;
  height: 44px;
  margin: 0;
  padding: 0;
}

header.down ul.top-tool {
  top: 16px;
}

ul.top-tool li {
  display: flex;
  align-items: center;
  height: 44px;
  margin: 0 2px;
  line-height: 1;
}

ul.top-tool li a i {
  display: block;
  line-height: 1;
}

ul.top-tool li a:hover {
  color: var(--qn-gold-light);
  transform: translateY(-2px);
}

.language select {
  color: var(--qn-lacquer-dark);
  background: var(--qn-gold-light);
  border: 1px solid var(--qn-gold);
}

/* Homepage desktop: icons on the first row, menu on the second row. */
header.index-header {
  height: 112px;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

header.down.index-header {
  height: 100px;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

header.index-header .top-head {
  height: 112px;
}

header.down.index-header .top-head {
  height: 100px;
}

header.index-header::after {
  display: none;
}

header.index-header::before,
header.down.index-header::before {
  display: block;
  height: 132px;
  background: linear-gradient(180deg, rgba(24, 6, 3, 0.68), rgba(24, 6, 3, 0.18) 68%, transparent);
}

header.index-header .top-head .logo {
  width: 146px;
  top: 13px;
  left: 18px;
}

header.down.index-header .top-head .logo {
  width: 128px;
  top: 11px;
  left: 18px;
}

header.index-header nav {
  top: 64px;
  right: 18px;
  left: 182px;
}

header.down.index-header nav {
  top: 54px;
  right: 18px;
  left: 160px;
}

header.index-header ul.top-tool,
header.down.index-header ul.top-tool {
  top: 8px;
  right: 18px;
  bottom: auto;
  min-width: 226px;
  justify-content: flex-end;
  align-items: flex-start;
}

/* Keep the asynchronously loaded Google selector from shifting the home tools. */
header.index-header ul.top-tool li.language,
header.down.index-header ul.top-tool li.language {
  display: block;
  flex: 0 0 128px;
  width: 128px;
  height: 50px;
  margin: 0 0 0 8px;
  padding: 0;
  overflow: visible;
}

header.index-header #google_translate_element,
header.down.index-header #google_translate_element {
  display: block;
  width: 128px;
  min-height: 44px;
}

header.index-header .goog-te-gadget,
header.down.index-header .goog-te-gadget {
  width: 128px;
  min-height: 42px;
  max-height: 46px;
  overflow: hidden;
  color: rgba(255, 248, 232, 0.82) !important;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
  font-size: 9px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

header.index-header .goog-te-gadget .goog-te-combo,
header.down.index-header .goog-te-gadget .goog-te-combo {
  display: block;
  width: 128px;
  height: 30px;
  margin: 0 0 2px !important;
  padding: 3px 24px 3px 9px;
  color: var(--qn-lacquer-dark) !important;
  background-color: rgba(255, 253, 247, 0.96) !important;
  border: 1px solid rgba(240, 216, 138, 0.82) !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(35, 6, 3, 0.16);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
  font-size: 12px !important;
  line-height: 1.2;
}

header.index-header .goog-te-gadget a,
header.down.index-header .goog-te-gadget a {
  color: rgba(255, 248, 232, 0.9) !important;
  font-size: 9px !important;
  line-height: 1.15 !important;
}

header.index-header .goog-te-gadget img,
header.down.index-header .goog-te-gadget img {
  width: auto;
  height: 11px;
  margin: 0 2px;
  vertical-align: middle;
}

header.index-header .goog-te-gadget > span,
header.down.index-header .goog-te-gadget > span {
  display: inline-flex !important;
  align-items: center;
  max-width: 116px;
  white-space: nowrap !important;
}

/* Apply the same Google Translate treatment to inner-page headers. */
header:not(.index-header) nav {
  right: 254px;
}

header.down:not(.index-header) nav {
  right: 254px;
}

header:not(.index-header) ul.top-tool {
  top: 19px;
  min-width: 226px;
  height: 50px;
  justify-content: flex-end;
  align-items: center;
}

header.down:not(.index-header) ul.top-tool {
  top: 13px;
}

header:not(.index-header) ul.top-tool li.language {
  display: block;
  flex: 0 0 128px;
  width: 128px;
  height: 50px;
  margin: 0 0 0 8px;
  padding: 0;
  overflow: hidden;
}

header:not(.index-header) #google_translate_element {
  display: block;
  width: 128px;
  min-height: 44px;
}

header:not(.index-header) .goog-te-gadget {
  width: 128px;
  min-height: 42px;
  max-height: 46px;
  overflow: hidden;
  color: rgba(255, 248, 232, 0.82) !important;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
  font-size: 9px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

header:not(.index-header) .goog-te-gadget .goog-te-combo {
  display: block;
  width: 128px;
  height: 30px;
  margin: 0 0 2px !important;
  padding: 3px 24px 3px 9px;
  color: var(--qn-lacquer-dark) !important;
  background-color: rgba(255, 253, 247, 0.96) !important;
  border: 1px solid rgba(240, 216, 138, 0.82) !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(35, 6, 3, 0.16);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
  font-size: 12px !important;
  line-height: 1.2;
}

header:not(.index-header) .goog-te-gadget a {
  color: rgba(255, 248, 232, 0.9) !important;
  font-size: 9px !important;
  line-height: 1.15 !important;
}

header:not(.index-header) .goog-te-gadget img {
  width: auto;
  height: 11px;
  margin: 0 2px;
  vertical-align: middle;
}

header:not(.index-header) .goog-te-gadget > span {
  display: inline-flex !important;
  align-items: center;
  max-width: 116px;
  white-space: nowrap !important;
}

/*
 * Keep Google Translate perfectly still while the sticky header changes to
 * its compact `.down` state. The inner-page tool row moves up by 6px, so the
 * language item receives an equal offset. Google injects its widget after
 * load; disabling inherited `transition: all` prevents a brief second jump.
 */
header ul.top-tool li.language,
header #google_translate_element,
header .goog-te-gadget,
header .goog-te-gadget .goog-te-combo {
  transition: none !important;
}

header:not(.index-header) ul.top-tool li.language {
  position: relative;
  top: 0;
}

header.down:not(.index-header) ul.top-tool li.language {
  top: 6px;
}

header.index-header .menu {
  justify-content: flex-end;
  gap: 6px;
}

header.index-header .menu > li,
header.index-header .menu > li:first-child {
  flex: 0 0 auto;
}

header.index-header nav li a {
  padding: 8px 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

header.index-header nav li a:hover {
  color: #fff6cf;
  background: rgba(143, 29, 24, 0.72);
  border-color: rgba(240, 216, 138, 0.75);
}

/* ---------- Hero ---------- */
.banner {
  background: var(--qn-lacquer-dark);
  border-bottom: 5px solid var(--qn-gold);
  box-shadow: 0 14px 36px rgba(55, 13, 8, 0.18);
}

.banner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(37, 7, 4, 0.32), transparent);
}

.banner .order-now {
  right: clamp(18px, 4vw, 68px);
  bottom: clamp(20px, 4vw, 58px);
  z-index: 20;
  overflow: visible;
  border: 1px solid rgba(255, 248, 232, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(53, 8, 5, 0.32);
}

.banner .order-now a {
  color: var(--qn-lacquer-dark);
  background: linear-gradient(135deg, var(--qn-gold-light), var(--qn-gold));
  border-radius: 999px;
  padding: 0.5em 0.9em;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-shadow: none;
}

.banner .order-now a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--qn-vermilion), var(--qn-lacquer));
  padding: 0.5em 1.08em;
  letter-spacing: 0.06em;
  text-shadow: none;
  transform: translateY(-3px);
}

.banner .order-now a i {
  margin-right: 10px;
}

.swiper-pagination-bullet {
  width: 24px !important;
  height: 6px !important;
  background: #fff7dd !important;
  opacity: 0.58;
}

.swiper-pagination-bullet-active {
  width: 42px !important;
  background: var(--qn-gold) !important;
  opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
  width: 52px !important;
  height: 52px !important;
  color: #fff8df !important;
  background: rgba(75, 13, 11, 0.48);
  border: 1px solid rgba(240, 216, 138, 0.46);
  border-radius: 50%;
  text-shadow: none;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 21px !important;
}

/* ---------- Shared page frame ---------- */
.wallpeper {
  position: relative;
}

.main-box {
  max-width: 1240px;
  padding: 30px 20px 10px;
}

.index-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px 44px;
}

.page-box {
  overflow: hidden;
  border: 1px solid rgba(214, 168, 60, 0.34);
  border-radius: var(--qn-radius);
  background: rgba(255, 253, 247, 0.96);
  box-shadow: var(--qn-shadow);
}

.page-title {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20px 20px, transparent 12px, rgba(240, 216, 138, 0.16) 12.5px, transparent 13.5px) 0 0 / 40px 40px,
    linear-gradient(115deg, var(--qn-lacquer-dark), var(--qn-lacquer) 62%, var(--qn-vermilion));
  border-bottom: 3px solid var(--qn-gold);
}

.page-title::after {
  content: "";
  position: absolute;
  top: -55px;
  right: 5%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(240, 216, 138, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 16px rgba(240, 216, 138, 0.05),
    0 0 0 34px rgba(240, 216, 138, 0.04);
}

.page-title h3 {
  position: relative;
  z-index: 2;
  color: #fffaf0;
  padding: 22px 42px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-title h3::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 13px;
  vertical-align: middle;
  background: var(--qn-gold-light);
  box-shadow: 0 6px 0 rgba(240, 216, 138, 0.55);
}

.page-title h3 span {
  color: var(--qn-gold-light);
  border-top-color: rgba(240, 216, 138, 0.48);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.page-box .content-box {
  min-height: 300px;
  padding: 28px 28px 38px;
  background: rgba(255, 253, 247, 0.96);
}

.content-box img {
  border-radius: var(--qn-radius-small);
}

.font-title,
.font-title-02,
.news-title,
.product-title,
.detail-title {
  color: var(--qn-lacquer-dark);
}

.font-title-02 {
  position: relative;
  padding: 0 0 12px 18px;
  font-size: 20px;
}

.font-title-02::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.6em;
  left: 0;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(var(--qn-gold), var(--qn-lacquer));
}

/* ---------- Home feature cards ---------- */
.i-recommend {
  gap: 24px;
  margin: 0;
}

.i-recommend .item {
  width: calc(50% - 12px);
  margin: 0;
  border: 1px solid rgba(214, 168, 60, 0.35);
  border-radius: var(--qn-radius);
  background: var(--qn-ivory);
  box-shadow: var(--qn-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.i-recommend .item:hover {
  transform: translateY(-6px);
  box-shadow: var(--qn-shadow-hover);
}

.i-recommend .item .photo {
  width: 54%;
  margin-right: 0;
  overflow: hidden;
}

.i-recommend .item .photo a {
  min-height: 100%;
  transition: transform 0.65s ease, opacity 0.3s ease;
}

.i-recommend .item:hover .photo a {
  opacity: 1;
  transform: scale(1.04);
}

.i-recommend .item .info {
  padding: 28px 25px 56px;
}

.i-recommend .item .info h3 {
  color: var(--qn-lacquer-dark);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

.i-recommend .item .info h3::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 12px;
  border-radius: 99px;
  background: var(--qn-gold);
}

.i-recommend .item .info p {
  color: var(--qn-muted);
  line-height: 1.7;
}

.i-recommend .item .info a.i-recommend-more {
  right: 20px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #fff;
  background: var(--qn-lacquer);
  border-radius: 50%;
  line-height: 36px;
  text-align: center;
}

/*
 * The homepage and news list use private-use Bootstrap Icon glyphs in
 * pseudo-elements.  Pin the icon font here so typography overrides cannot
 * turn these controls into an empty square or make the symbol disappear.
 */
.i-recommend .item .info a.i-recommend-more::before,
.lis-itim02 .time a::before,
.pro-detail-box .add-to-order a::before {
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  line-height: 1;
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.i-recommend .item .info a.i-recommend-more::before {
  display: inline-block;
  line-height: 36px;
  vertical-align: top;
}

.i-recommend .item .info a.i-recommend-more:hover {
  background: var(--qn-gold);
  transform: translateX(3px);
}

/* ---------- Side navigation ---------- */
.left-menu-title {
  color: #fff8e8;
  background:
    linear-gradient(135deg, var(--qn-lacquer-dark), var(--qn-lacquer));
  border-bottom: 3px solid var(--qn-gold);
  padding: 14px 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.left-menu {
  overflow: hidden;
  padding: 8px 0 12px;
  border: 1px solid var(--qn-line);
  border-top: 0;
  border-radius: 0 0 var(--qn-radius-small) var(--qn-radius-small);
  background: #fffaf0;
}

.left-menu > li::before {
  background: linear-gradient(90deg, var(--qn-lacquer), var(--qn-vermilion));
}

.left-menu > li.active::before {
  background: linear-gradient(90deg, var(--qn-lacquer-dark), var(--qn-lacquer));
}

.left-menu > li > a,
.left-menu > li > span {
  padding: 12px 8px;
  color: var(--qn-ink);
  font-weight: 500;
}

.left-menu > li::after {
  max-width: 72%;
  border-bottom-color: rgba(143, 29, 24, 0.16);
}

/* Product category dropdown: the companion JS inserts this button. */
.qn-category-toggle {
  display: none;
}

/* ---------- Product menu cards ---------- */
.pro-filter {
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(214, 168, 60, 0.35);
  border-radius: var(--qn-radius-small);
  background: #fffaf0;
  box-shadow: 0 8px 24px rgba(72, 25, 14, 0.07);
}

.pro-filter select {
  min-height: 45px;
  margin: 0;
  color: var(--qn-ink);
  background: #fff;
  border: 1px solid rgba(143, 29, 24, 0.2);
  border-radius: 10px;
}

.pro-filter select:hover,
.pro-filter select:focus {
  border-color: var(--qn-gold);
}

.product-lis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: stretch;
  gap: 22px;
  margin: 0;
  counter-reset: qn-dish;
}

.product-lis li {
  counter-increment: qn-dish;
  width: auto;
  min-width: 0;
  margin: 0 0 8px;
  padding: 8px 8px 110px;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 60, 0.34);
  border-radius: var(--qn-radius);
  background: var(--qn-ivory);
  box-shadow: 0 9px 28px rgba(72, 25, 14, 0.1);
  isolation: isolate;
}

/* Bold Vietnamese menu-editorial layout, created without HTML changes. */
.product-lis li::after {
  content: counter(qn-dish, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  min-width: 38px;
  padding: 4px 9px;
  color: #fff8e8;
  background: rgba(75, 13, 11, 0.88);
  border: 1px solid rgba(240, 216, 138, 0.75);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(48, 7, 5, 0.22);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
}

.product-lis li:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.65fr);
  grid-template-rows: 1fr auto auto;
  column-gap: 26px;
  min-height: 390px;
  padding: 12px;
  border-color: rgba(240, 216, 138, 0.7);
  background:
    radial-gradient(circle at 105% -10%, rgba(240, 216, 138, 0.26), transparent 35%),
    radial-gradient(circle at 82% 105%, rgba(201, 58, 39, 0.35), transparent 42%),
    linear-gradient(145deg, #3d0908, var(--qn-lacquer-dark) 52%, #751611);
  box-shadow: 0 18px 42px rgba(64, 10, 7, 0.24);
}

.product-lis li:only-child {
  grid-column: 1 / -1;
}

.product-lis li:first-child::after {
  top: 24px;
  right: 24px;
  color: var(--qn-lacquer-dark);
  background: var(--qn-gold-light);
  border-color: var(--qn-gold);
}

.product-lis li:first-child .photo {
  grid-column: 1;
  grid-row: 1 / 4;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(25, 4, 3, 0.32);
}

.product-lis li:first-child .photo a {
  height: 100%;
  min-height: 366px;
  padding-bottom: 0;
}

.product-lis li:first-child h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 34px 20px 16px 0;
  text-align: left;
}

.product-lis li:first-child h3::before {
  content: "QUÁN NẮNG MENU";
  display: block;
  margin-bottom: 9px;
  color: var(--qn-gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.product-lis li:first-child h3 a {
  color: #fffaf0;
  font-size: clamp(23px, 2.5vw, 34px);
  line-height: 1.35;
}

.product-lis li:first-child .info {
  display: contents;
}

.product-lis li:first-child .price {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-start;
  width: auto;
  min-height: 36px;
  margin: 0 20px 14px 0;
  padding: 12px 0 4px;
  color: var(--qn-gold-light);
  border-top: 0;
  font-size: 28px;
}

.product-lis li:first-child .add-to-order {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  grid-column: 2;
  grid-row: 3;
  width: auto;
  margin: 0 20px 22px 0;
}

.product-lis li:first-child .add-to-order a {
  color: var(--qn-lacquer-dark);
  background: linear-gradient(135deg, var(--qn-gold-light), var(--qn-gold));
  border-color: var(--qn-gold-light);
  box-shadow: 0 8px 22px rgba(25, 4, 3, 0.28);
}

.product-lis li.limited::after {
  top: 58px;
}

.product-lis li:hover {
  z-index: 2;
  border-color: rgba(214, 168, 60, 0.8);
  box-shadow: var(--qn-shadow-hover);
  transform: translateY(-6px);
}

.product-lis li .photo {
  border-radius: 13px 13px 8px 8px;
}

/* Product background-image lazy loading.
   JavaScript: quan-nang-product-lazyload-20260929.js */
.product-lis .photo.qn-lazy-photo {
  position: relative;
  overflow: hidden;
  background-color: #f5ead7;
}

.product-lis .photo.qn-lazy-photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background:
    linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.68) 48%, transparent 60%),
    linear-gradient(145deg, #f7eddc, #ead8b9);
  background-size: 220% 100%, 100% 100%;
  animation: qn-product-lazy-shimmer 1.25s linear infinite;
  transition: opacity 0.28s ease;
}

.product-lis .photo.qn-lazy-photo > a {
  position: relative;
  z-index: 2;
}

.product-lis .photo.qn-lazy-loaded::before,
.product-lis .photo.qn-lazy-error::before {
  opacity: 0;
  animation: none;
}

.product-lis .photo.qn-lazy-loaded {
  animation: qn-product-lazy-reveal 0.42s ease both;
}

@keyframes qn-product-lazy-shimmer {
  from { background-position: 170% 0, 0 0; }
  to { background-position: -70% 0, 0 0; }
}

@keyframes qn-product-lazy-reveal {
  from { opacity: 0.72; filter: saturate(0.7); }
  to { opacity: 1; filter: saturate(1); }
}

.product-lis li .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, rgba(55, 13, 8, 0.16));
}

.product-lis li h3 {
  margin: 17px 8px 7px;
}

.product-lis li h3 a {
  color: var(--qn-ink);
  font-size: 18px;
  font-weight: 700;
}

.product-lis li .info .meat-k {
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(214, 168, 60, 0.34);
  border-radius: 13px 0 13px 0;
  box-shadow: 0 5px 12px rgba(55, 13, 8, 0.08);
}

.product-lis li .price {
  display: flex;
  align-items: center;
  justify-content: center;
  left: 8px;
  bottom: 50px;
  width: calc(100% - 16px);
  min-height: 32px;
  color: var(--qn-lacquer);
  border-top-color: rgba(143, 29, 24, 0.13);
  font-family: "Playfair Display", "Noto Sans TC", serif;
  font-size: 23px;
  line-height: 32px;
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.product-lis li .price::before {
  margin-right: 5px;
  color: var(--qn-gold);
  font-size: 0.7em;
}

.product-lis li .add-to-order {
  right: 8px;
  bottom: 8px;
  left: 8px;
}

.product-lis li .add-to-order a {
  min-height: 36px;
  margin-bottom: 0;
  padding: 0 14px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--qn-lacquer), var(--qn-vermilion));
  border: 1px solid var(--qn-lacquer);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0.06em;
}

.product-lis li .add-to-order a::before {
  margin-top: -2px;
  margin-right: 4px;
  font-size: 14px;
}

.product-lis li .add-to-order a:hover {
  color: var(--qn-lacquer-dark);
  background: linear-gradient(135deg, var(--qn-gold-light), var(--qn-gold));
  border-color: var(--qn-gold);
}

.product-lis li .spiciness {
  z-index: 3;
}

/* ---------- News ---------- */
.lis-itim,
.lis-itim02 {
  overflow: hidden;
  border: 1px solid rgba(214, 168, 60, 0.28);
  border-radius: var(--qn-radius-small);
  background: #fffdf7;
  box-shadow: 0 8px 24px rgba(72, 25, 14, 0.08);
}

.lis-itim .photo,
.lis-itim02 .photo {
  overflow: hidden;
}

.lis-itim .photo a,
.lis-itim02 .photo a {
  border-radius: 0;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.lis-itim:hover .photo a,
.lis-itim02:hover .photo a {
  opacity: 1;
  transform: scale(1.04);
}

.lis-itim .time,
.lis-itim02 .time {
  color: var(--qn-lacquer);
  border-bottom-color: rgba(143, 29, 24, 0.13);
}

.lis-itim h4 a,
.lis-itim02 h4 a {
  color: var(--qn-ink);
}

.lis-itim02 h4::before,
.lis-itim02 .time a {
  background: var(--qn-lacquer);
}

/* News-list detail control: reset the legacy 5px line-height/negative offset. */
.lis-itim02 .time {
  min-height: 42px;
  white-space: nowrap;
}

.lis-itim02 .time a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 10px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(240, 216, 138, 0.38);
  border-radius: 50%;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 4px 12px rgba(75, 13, 11, 0.16);
}

.lis-itim02 .time a::before {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  line-height: 1;
  vertical-align: middle;
}

.lis-itim02 .time a:hover,
.lis-itim02 .time a:focus-visible {
  color: var(--qn-lacquer-dark);
  background: var(--qn-gold-light);
  border-color: var(--qn-gold);
  transform: translateX(2px);
}

/* ---------- Forms / reservation ---------- */
.form {
  color: var(--qn-muted);
}

.form .note {
  color: var(--qn-lacquer);
  font-weight: 600;
}

.form .form-lis {
  overflow: visible;
  margin-bottom: 14px;
  border: 1px solid rgba(143, 29, 24, 0.14);
  border-radius: 12px;
  background: #fffaf0;
}

.form .form-lis .title {
  color: var(--qn-lacquer-dark);
  background: rgba(214, 168, 60, 0.14);
  border-radius: 11px 0 0 11px;
  font-weight: 600;
}

.form .form-lis .data,
.form .form-lis input.data,
.form .form-lis textarea.data,
.form .form-lis select.data,
.form .form-lis .code {
  min-height: 47px;
  color: var(--qn-ink);
  background: #fff;
  border-radius: 0 11px 11px 0;
  box-shadow: none;
}

.form .form-lis textarea.data {
  padding: 12px 14px;
  line-height: 1.65;
}

.form .form-lis:focus-within {
  border-color: var(--qn-gold);
  box-shadow: 0 0 0 3px rgba(214, 168, 60, 0.14);
}

/* ---------- Member profile form ---------- */
.member-cont .table-title {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 15px 22px 15px 56px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 16px 16px, transparent 9px, rgba(240, 216, 138, 0.12) 9.5px, transparent 10.5px) 0 0 / 32px 32px,
    linear-gradient(115deg, var(--qn-lacquer-dark), var(--qn-lacquer) 68%, var(--qn-vermilion));
  border: 1px solid rgba(214, 168, 60, 0.5);
  border-radius: 14px;
  box-shadow: 0 9px 22px rgba(72, 25, 14, 0.14);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.member-cont .table-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 23px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--qn-gold-light);
  border-radius: 3px;
  box-shadow: 5px 5px 0 rgba(214, 168, 60, 0.28);
  transform: translateY(-58%) rotate(45deg);
}

.member-cont .table-title::after {
  content: "";
  position: absolute;
  top: 0;
  right: -28px;
  width: 120px;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.08));
  transform: skewX(-20deg);
}

.member-cont .cont-box {
  padding: 4px 0 8px;
}

/* Member pages use `.member-form` instead of `.form`. */
.member-form .form-lis {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 13px;
  padding: 0;
  border: 1px solid rgba(143, 29, 24, 0.24);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 5px 16px rgba(72, 25, 14, 0.055);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.member-form .form-lis:hover {
  border-color: rgba(214, 168, 60, 0.72);
  box-shadow: 0 7px 20px rgba(72, 25, 14, 0.09);
  transform: translateY(-1px);
}

.member-form .form-lis .title {
  display: flex;
  flex: 0 0 154px;
  align-items: center;
  justify-content: flex-start;
  width: 154px;
  min-height: 52px;
  padding: 10px 16px 10px 31px;
  color: var(--qn-lacquer-dark);
  background: linear-gradient(135deg, rgba(240, 216, 138, 0.42), rgba(255, 248, 232, 0.92));
  border-radius: 11px 0 0 11px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.025em;
  text-align: left;
}

.member-form .form-lis .title::before {
  content: "";
  position: absolute;
  left: 16px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--qn-lacquer);
  border-radius: 50%;
  background: var(--qn-gold-light);
}

.member-form .form-lis .data,
.member-form .form-lis input.data,
.member-form .form-lis textarea.data,
.member-form .form-lis select.data {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  color: var(--qn-ink);
  background: #fff;
  border: 0 !important;
  border-left: 1px solid rgba(143, 29, 24, 0.14) !important;
  border-radius: 0 11px 11px 0;
  box-shadow: none;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  outline: 0;
}

.member-form .form-lis div.data {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #fffdf8, #fff9ea);
  color: var(--qn-muted);
  font-weight: 600;
}

/* Member points: keep the balance clear while treating the explanation as
   secondary information instead of a second large value. */
.member-form .form-lis div.data:has(> .note) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--qn-lacquer-dark);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.member-form .form-lis div.data > .note {
  min-width: 0;
  padding: 5px 9px;
  border: 1px solid rgba(214, 168, 60, 0.24);
  border-radius: 8px;
  color: #8a7a70;
  background: rgba(255, 250, 237, 0.82);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Member QR code: reserve a clean white quiet zone so scanners can read it,
   and keep the image from inheriting unrestricted content dimensions. */
.member-form .form-lis div.data:has(> img[src*="/qrcode/"]) {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.member-form .form-lis div.data:has(> img[src*="/qrcode/"])::after {
  content: "出示此 QR Code，可快速辨識會員資料";
  max-width: 230px;
  color: #88786e;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.member-form .form-lis div.data > img[src*="/qrcode/"] {
  display: block;
  width: 142px;
  height: 142px;
  max-width: 100%;
  padding: 9px;
  border: 1px solid rgba(143, 29, 24, 0.13);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(72, 25, 14, 0.09);
  object-fit: contain;
  image-rendering: pixelated;
}

.member-form .form-lis input.data::placeholder,
.member-form .form-lis textarea.data::placeholder {
  color: #aa9b90;
  opacity: 1;
}

/* Member preference row: the notice copy is a bare text node after the input.
   Grid gives that anonymous item a real wrapping column instead of letting the
   generic flex field push it outside the card. */
.member-form .form-lis:has(> input.data[type="checkbox"]) {
  display: grid;
  grid-template-columns: 154px 20px minmax(0, 1fr);
  align-items: center;
  gap: 0 10px;
  min-height: 54px;
  padding-right: 16px;
  color: var(--qn-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Member preference checkbox: do not inherit the full-size text-field style. */
.member-form .form-lis input.data[type="checkbox"] {
  display: block;
  width: 20px !important;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent;
  box-shadow: none;
  accent-color: var(--qn-lacquer);
  cursor: pointer;
}

.member-form .form-lis:focus-within {
  border-color: var(--qn-gold);
  box-shadow: 0 0 0 3px rgba(214, 168, 60, 0.2), 0 9px 24px rgba(72, 25, 14, 0.1);
  transform: translateY(-1px);
}

.member-form .form-lis:focus-within .title {
  background: linear-gradient(135deg, rgba(240, 216, 138, 0.62), rgba(255, 248, 232, 0.96));
}

.member-form .form-lis:has(> .btn) {
  align-items: center;
  min-height: 54px;
  padding-right: 10px;
  color: var(--qn-lacquer);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.035em;
}

.member-form .form-lis > .btn {
  margin-left: auto;
  padding: 6px 0 6px 12px;
}

.member-form .form-lis > .btn a,
.member-cont + .btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--qn-lacquer), var(--qn-vermilion));
  border: 1px solid rgba(214, 168, 60, 0.58);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(75, 13, 11, 0.16);
  font-weight: 700;
  line-height: 1.35;
}

.member-form .form-lis > .btn a:hover,
.member-cont + .btn a:hover {
  color: var(--qn-lacquer-dark);
  background: linear-gradient(135deg, var(--qn-gold-light), var(--qn-gold));
  transform: translateY(-1px);
}

.member-cont + .btn {
  padding: 14px 0 2px;
  text-align: right;
}

.member-cont + .btn a {
  min-width: 126px;
  min-height: 44px;
}

.botton-m a.left,
.botton-m a.mid,
.botton-m a.right {
  min-width: 130px;
  padding: 10px 22px;
  border: 1px solid var(--qn-lacquer);
  border-radius: 999px;
  font-weight: 700;
}

.botton-m a.left,
.botton-m a.mid {
  color: #fff;
  background: linear-gradient(135deg, var(--qn-lacquer), var(--qn-vermilion));
}

.botton-m a.right {
  color: var(--qn-lacquer);
  background: #fffaf0;
}

.botton-m a:hover {
  color: var(--qn-lacquer-dark) !important;
  background: var(--qn-gold-light) !important;
  border-color: var(--qn-gold) !important;
  transform: translateY(-2px);
}

/* ---------- Pagination / modal ---------- */
.bookmark {
  border-top-color: rgba(143, 29, 24, 0.16);
}

.bookmark a {
  color: #fff;
  background: var(--qn-lacquer);
  border-radius: 999px;
  padding: 7px 16px;
}

.bookmark a:hover {
  color: var(--qn-lacquer-dark);
  background: var(--qn-gold-light);
}

.bookmark select {
  border-color: var(--qn-gold);
  border-radius: 8px;
}

.pop {
  background: rgba(40, 10, 7, 0.9);
  backdrop-filter: blur(5px);
}

.pop-body {
  border: 2px solid var(--qn-gold);
  border-radius: var(--qn-radius);
  background: var(--qn-ivory);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

/* ---------- Mobile drawer ---------- */
.m-burger {
  padding: 10px;
  border: 1px solid rgba(240, 216, 138, 0.5);
  border-radius: 50%;
  background: rgba(75, 13, 11, 0.68);
  box-sizing: content-box;
}

.m-burger::before,
.m-burger::after,
.m-burger span {
  background-color: #fff8e8;
}

.other-menu {
  background:
    radial-gradient(circle at 14px 14px, transparent 8px, rgba(240, 216, 138, 0.1) 8.5px, transparent 9.5px) 0 0 / 28px 28px,
    linear-gradient(155deg, rgba(75, 13, 11, 0.99), rgba(143, 29, 24, 0.98));
  border-left: 2px solid var(--qn-gold);
  box-shadow: -16px 0 44px rgba(43, 5, 3, 0.28);
}

.other-menu a {
  margin: 2px 0;
  border-radius: 9px;
  font-weight: 500;
}

.other-menu a:hover,
.other-menu a:focus {
  color: var(--qn-lacquer-dark);
  background: var(--qn-gold-light);
}

.other-menu > div.menu-copyright {
  color: rgba(255, 248, 232, 0.7);
  border-top-color: rgba(240, 216, 138, 0.3);
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin-top: 24px;
  padding: 28px 12px 20px;
  background:
    radial-gradient(circle at 16px 16px, transparent 10px, rgba(240, 216, 138, 0.1) 10.5px, transparent 11.5px) 0 0 / 32px 32px,
    linear-gradient(125deg, #3d0908, var(--qn-lacquer-dark) 55%, #6f1511);
  border-top: 4px solid var(--qn-gold);
}

.foot-info {
  max-width: 1240px;
  align-items: center;
}

.foot-link {
  color: rgba(255, 248, 232, 0.68);
}

.foot-link a,
.foot-info a {
  color: #fff8e8;
}

.foot-link a:hover,
.foot-info a:hover {
  color: var(--qn-gold-light);
}

.foot-logo {
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.24));
}

.foot-info .social-icon a {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid rgba(240, 216, 138, 0.52);
  border-radius: 50%;
  line-height: 1;
  text-align: center;
}

.foot-info .social-icon {
  display: flex;
  flex: 0 0 104px;
  align-items: center;
  justify-content: center;
  width: 104px;
  min-width: 104px;
  gap: 10px;
}

.foot-info .social-icon a i {
  display: block;
  line-height: 1;
}

.foot-info .social-icon a:hover {
  color: var(--qn-lacquer-dark);
  background: var(--qn-gold-light);
  transform: translateY(-2px);
}

.copyright {
  color: rgba(255, 248, 232, 0.65);
  border-top-color: rgba(240, 216, 138, 0.2);
}

/* ---------- Responsive ---------- */
@media (min-width: 641px) and (max-width: 1100px) {
  header:not(.index-header) nav,
  header.down:not(.index-header) nav {
    right: 176px;
  }

  header:not(.index-header) ul.top-tool {
    min-width: 0;
  }

  header:not(.index-header) ul.top-tool li.language {
    display: none;
  }
}

@media (max-width: 980px) {
  body {
    padding-top: 72px;
  }

  body.index-body {
    padding-top: 0;
  }

  header,
  header.down,
  header.index-header,
  header.down.index-header {
    height: 72px;
    background: linear-gradient(110deg, rgba(75, 13, 11, 0.98), rgba(143, 29, 24, 0.96));
    border-bottom: 2px solid var(--qn-gold);
    box-shadow: 0 7px 24px rgba(50, 8, 5, 0.22);
  }

  header.index-header,
  header.down.index-header {
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  header.index-header::before,
  header.down.index-header::before {
    display: block;
    height: 88px;
    background: linear-gradient(180deg, rgba(24, 6, 3, 0.62), rgba(24, 6, 3, 0.12) 72%, transparent);
  }

  header .top-head,
  header.down .top-head {
    height: 72px;
    padding-top: 0;
  }

  header .logo,
  header.down .logo,
  header.index-header .top-head .logo,
  header.down.index-header .top-head .logo {
    width: 106px;
    top: 9px;
    left: 12px;
  }

  header.index-header ul.top-tool,
  header.down.index-header ul.top-tool {
    top: 10px;
    right: 58px;
  }

  ul.top-tool {
    top: 14px;
    right: 58px;
  }

  ul.top-tool li a {
    font-size: 25px;
  }

  .m-burger,
  .m-burger.down {
    top: 10px;
    right: 10px;
    width: 23px;
  }

  .banner {
    padding-top: 72px;
  }

  .banner .order-now {
    bottom: 18px;
  }

  .main-box {
    padding: 22px 14px 6px;
  }

  .index-main {
    padding: 22px 14px 36px;
  }

  .page-box .content-box {
    padding: 22px 18px 32px;
  }

  .product-lis li {
    width: auto;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  /* Mobile: hide only the member and cart icons; keep the language selector. */
  header ul.top-tool li:has(> a.icon-member),
  header ul.top-tool li.cart {
    display: none;
  }

  /* Remove the square white parent behind the collapsed category button. */
  .col-3.white-bg:has(> .qn-category-toggle) {
    overflow: visible;
    background: transparent;
    border-radius: 13px;
  }

  .banner {
    margin-top: 0;
  }

  .page-box {
    padding: 0;
  }

  header .logo,
  header.down .logo,
  header.index-header .top-head .logo,
  header.down.index-header .top-head .logo {
    width: 98px;
    top: 11px;
  }

  .banner .order-now {
    right: 14px;
    bottom: 14px;
  }

  .banner .order-now a {
    padding: 0.48em 0.78em;
    font-size: 19px;
  }

  .banner .order-now a i {
    margin-right: 5px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 38px !important;
    height: 38px !important;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 15px !important;
  }

  .page-title {
    margin: 0;
    padding-top: 0;
  }

  .page-title h3 {
    padding: 18px 22px;
    font-size: 21px;
  }

  .page-title h3::before {
    width: 20px;
    margin-right: 9px;
  }

  .page-box .content-box {
    padding: 18px 14px 28px;
  }

  .i-recommend {
    gap: 16px;
  }

  .i-recommend .item {
    width: 100%;
    margin: 0;
    display: block;
  }

  .i-recommend .item .photo {
    width: 100%;
  }

  .i-recommend .item .photo a {
    min-height: 0;
    padding-bottom: 66%;
  }

  .i-recommend .item .info {
    padding: 22px 22px 58px;
  }

  .left-menu-title {
    margin: 0;
  }

  .left-menu {
    margin: 0 0 24px;
  }

  .qn-category-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "kicker arrow"
      "current arrow";
    align-items: center;
    width: 100%;
    min-height: 64px;
    margin: 0 0 10px;
    padding: 10px 52px 10px 16px;
    color: var(--qn-ink);
    background: linear-gradient(135deg, #fffdf7, #fff5df);
    border: 1px solid rgba(214, 168, 60, 0.55);
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(72, 25, 14, 0.1);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    text-align: left;
    cursor: pointer;
  }

  .qn-category-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--qn-lacquer);
    border-bottom: 2px solid var(--qn-lacquer);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s ease;
  }

  .qn-category-toggle.is-open::after {
    transform: translateY(-25%) rotate(225deg);
  }

  .qn-category-toggle-kicker {
    grid-area: kicker;
    color: var(--qn-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.14em;
  }

  .qn-category-toggle-current {
    grid-area: current;
    color: var(--qn-lacquer-dark);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
  }

  .left-menu.qn-mobile-category {
    display: block;
    max-height: 0;
    margin: 0 0 20px;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    border: 0;
    border-radius: 13px;
    box-shadow: none;
    transition:
      max-height 0.35s ease,
      opacity 0.22s ease,
      padding 0.25s ease,
      visibility 0s linear 0.35s;
  }

  .left-menu.qn-mobile-category.is-open {
    max-height: 560px;
    padding: 8px 0 12px;
    visibility: visible;
    opacity: 1;
    border: 1px solid rgba(214, 168, 60, 0.4);
    box-shadow: 0 10px 26px rgba(72, 25, 14, 0.1);
    transition:
      max-height 0.35s ease,
      opacity 0.22s ease,
      padding 0.25s ease,
      visibility 0s;
  }

  .left-menu.qn-mobile-category > li > a {
    min-height: 46px;
    margin: 0 12px;
    padding: 11px 38px 11px 14px;
    border-radius: 9px;
    text-align: left;
  }

  .left-menu.qn-mobile-category > li.active > a::after {
    content: "目前";
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 2px 7px;
    color: var(--qn-lacquer-dark);
    background: var(--qn-gold-light);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.45;
    transform: translateY(-50%);
  }

  .pro-filter {
    display: block;
  }

  .pro-filter select {
    width: 100%;
    margin-bottom: 8px;
  }

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

  .product-lis li {
    width: 100%;
    margin: 0;
    padding-bottom: 100px;
  }

  .product-lis li .photo a {
    padding-bottom: 78%;
  }

  .product-lis li:first-child,
  .product-lis li:only-child {
    grid-column: auto;
    display: block;
    min-height: 0;
    padding: 8px 8px 62px;
  }

  .product-lis li:first-child::after {
    top: 18px;
    right: 18px;
  }

  .product-lis li:first-child .photo {
    height: auto;
  }

  .product-lis li:first-child .photo a {
    height: 0;
    min-height: 0;
    padding-bottom: 68%;
  }

  .product-lis li:first-child h3 {
    margin: 18px 12px 8px;
  }

  .product-lis li:first-child h3::before {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .product-lis li:first-child h3 a {
    font-size: 20px;
  }

  .product-lis li:first-child .info {
    display: block;
  }

  .product-lis li:first-child .price {
    position: absolute;
    right: auto;
    bottom: 13px;
    left: 14px;
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 0;
    color: var(--qn-gold-light);
    font-size: 22px;
    line-height: 32px;
  }

  .product-lis li:first-child .add-to-order {
    position: absolute;
    right: 10px;
    bottom: 12px;
    left: auto;
    width: 112px;
    margin: 0;
  }

  .product-lis li .price {
    bottom: 44px;
    min-height: 30px;
    font-size: 21px;
    line-height: 30px;
  }

  .product-lis li .add-to-order a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 32px;
  }

  .form .form-lis,
  .member-form .form-lis {
    display: block;
    overflow: hidden;
  }

  .form .form-lis .title,
  .member-form .form-lis .title {
    width: 100%;
    padding: 9px 13px;
    justify-content: flex-start;
    text-align: left;
    border-radius: 11px 11px 0 0;
    line-height: 1.6;
  }

  .member-form .form-lis .title {
    min-height: 48px;
    padding-left: 34px;
  }

  .form .form-lis .data,
  .form .form-lis input.data,
  .form .form-lis textarea.data,
  .form .form-lis select.data,
  .form .form-lis .code,
  .member-form .form-lis .data,
  .member-form .form-lis input.data,
  .member-form .form-lis textarea.data,
  .member-form .form-lis select.data {
    width: 100%;
    border-radius: 0 0 11px 11px;
  }

  .member-form .form-lis .data,
  .member-form .form-lis input.data,
  .member-form .form-lis textarea.data,
  .member-form .form-lis select.data {
    border-top: 1px solid rgba(143, 29, 24, 0.14) !important;
    border-left: 0 !important;
  }

  .member-form .form-lis div.data:has(> .note) {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
    font-size: 19px;
  }

  .member-form .form-lis div.data > .note {
    padding: 4px 7px;
    font-size: 10px;
    line-height: 1.45;
  }

  .member-form .form-lis div.data:has(> img[src*="/qrcode/"]) {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 14px 12px 16px;
    text-align: center;
  }

  .member-form .form-lis div.data:has(> img[src*="/qrcode/"])::after {
    max-width: none;
    font-size: 11px;
  }

  .member-form .form-lis div.data > img[src*="/qrcode/"] {
    width: min(138px, 54vw);
    height: auto;
    aspect-ratio: 1;
    padding: 8px;
    border-radius: 12px;
  }

  .member-form .form-lis input.data[type="checkbox"] {
    width: 19px !important;
    min-width: 19px;
    height: 19px;
    min-height: 19px;
    margin: 0;
    border: 0 !important;
    border-radius: 4px !important;
  }

  .member-form .form-lis:has(> input.data[type="checkbox"]) {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    align-items: center;
    gap: 0 10px;
    padding: 0 12px 12px;
    font-size: 13px;
    line-height: 1.65;
  }

  .member-form .form-lis:has(> input.data[type="checkbox"]) > .title {
    grid-column: 1 / -1;
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-bottom: 12px;
    margin-left: -12px;
  }

  .member-form .form-lis:has(> .btn) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 0 10px 10px;
  }

  .member-form .form-lis:has(> .btn) > .title {
    grid-column: 1 / -1;
    width: calc(100% + 20px);
    margin-right: -10px;
    margin-left: -10px;
  }

  .member-form .form-lis:has(> .btn) > .btn {
    grid-column: 2;
    margin: 0;
    padding: 0;
  }

  .botton-m a.left,
  .botton-m a.mid,
  .botton-m a.right {
    min-width: 0;
    padding: 9px 18px;
  }

  footer {
    margin-top: 24px;
  }
}

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

/* ---------- Google Translate top toolbar fix ----------
 * Google Translate inserts a fixed iframe and writes body { top: 40px; }
 * after a language is selected. Hide only that banner; keep the language
 * selector and its required attribution visible inside the site header.
 */
iframe.goog-te-banner-frame,
iframe.goog-te-banner-frame.skiptranslate,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
body > iframe.skiptranslate[class*="VIpgJd-ZVi9od-ORHb"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
}

html,
html.translated-ltr,
html.translated-rtl {
  margin-top: 0 !important;
}

body,
body.translated-ltr,
body.translated-rtl {
  top: 0 !important;
}

/* ---------- Mobile menu toggle alignment ----------
 * Keep the hamburger and close (X) states inside one fixed-size circle.
 * This overrides the mixed dimensions from main.css and rwd.css.
 */
@media (max-width: 980px) {
  .m-burger,
  .m-burger.down {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    top: 10px !important;
    right: 10px !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
  }

  .m-burger::before,
  .m-burger::after,
  .m-burger span {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 22px !important;
    height: 2px !important;
    margin: 0 !important;
    transform-origin: center !important;
    transition: transform 0.3s ease, opacity 0.2s ease !important;
  }

  .m-burger::before {
    transform: translate(-50%, -8px) !important;
  }

  .m-burger span {
    transform: translate(-50%, -50%) !important;
  }

  .m-burger::after {
    transform: translate(-50%, 6px) !important;
  }

  .m-burger.active::before {
    width: 22px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

  .m-burger.active::after {
    width: 22px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }

  .m-burger.active span {
    width: 22px !important;
    margin: 0 !important;
    opacity: 0 !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* ---------- Mobile content width ----------
 * Reduce stacked outer/inner gutters so page content has enough room.
 * Tablet keeps a modest gutter; phones use nearly the full viewport.
 */
@media (max-width: 980px) {
  .main-box {
    width: auto !important;
    max-width: none !important;
    margin-right: 8px !important;
    margin-left: 8px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .index-main {
    width: auto !important;
    max-width: none !important;
    margin-right: 8px !important;
    margin-left: 8px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .page-box .content-box {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
}

@media (max-width: 640px) {
  .main-box {
    margin-right: 4px !important;
    margin-left: 4px !important;
    padding-top: 12px !important;
  }

  .index-main {
    margin-right: 4px !important;
    margin-left: 4px !important;
    padding-top: 14px !important;
  }

  .page-box {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    border-radius: 12px !important;
  }

  .page-box .content-box {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .page-title h3 {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .message-box,
  .product-cont,
  .contact-info {
    max-width: 100% !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .page-box .content-box > .col-box,
  .page-box .content-box > .white-bg {
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* ================================================================
 * Forgot password — match the member login visual language
 * Supports the existing two-step SMS verification without HTML/JS edits.
 * ================================================================ */
.message-box:has(form#form1.delivery-member) {
  padding-top: 24px;
  padding-bottom: 40px;
}

.message-box .table-box:has(> form#form1.delivery-member) {
  position: relative;
  width: min(100%, 600px);
  max-width: 600px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 30px 38px 34px;
  border: 1px solid rgba(143, 29, 24, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(240, 216, 138, 0.22), transparent 34%),
    linear-gradient(145deg, #fffdf8, #fff8e8);
  box-shadow: 0 18px 42px rgba(72, 25, 14, 0.12);
}

.message-box .table-box:has(> form#form1.delivery-member)::before {
  content: "";
  position: absolute;
  top: 0;
  right: 26px;
  left: 26px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--qn-gold), var(--qn-lacquer), var(--qn-gold), transparent);
}

.message-box .table-box:has(> form#form1.delivery-member) > h3 {
  position: relative;
  margin: 0 0 24px;
  padding: 0 0 13px;
  border: 0;
  color: var(--qn-lacquer-dark);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-align: center;
}

.message-box .table-box:has(> form#form1.delivery-member) > h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--qn-gold);
  transform: translateX(-50%);
}

.message-box .table-box:has(> form#form1.delivery-member) > h3 .icon {
  color: var(--qn-gold);
}

#form1.delivery-member {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

#form1.delivery-member .delivery-member-info {
  position: relative;
  display: grid !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  margin: 0 0 13px;
  padding: 0;
  border: 1px solid rgba(143, 29, 24, 0.16);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(72, 25, 14, 0.055);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Keep step 2 hidden initially; after jQuery changes inline display to block,
 * the grid rule above resumes so the verification field stays aligned. */
#form1.delivery-member .delivery-member-info[step2][style*="display:none"],
#form1.delivery-member .delivery-member-info[step2][style*="display: none"] {
  display: none !important;
}

#form1.delivery-member .delivery-member-info:focus-within {
  border-color: var(--qn-gold);
  box-shadow: 0 0 0 3px rgba(214, 168, 60, 0.18), 0 8px 20px rgba(72, 25, 14, 0.08);
}

#form1.delivery-member .delivery-member-info > span.title {
  display: flex;
  width: auto;
  min-width: 0;
  min-height: 50px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 12px;
  color: var(--qn-lacquer-dark);
  background: linear-gradient(135deg, rgba(240, 216, 138, 0.56), rgba(255, 248, 232, 0.92));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

#form1.delivery-member .delivery-member-info > input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  box-sizing: border-box;
  margin: 0;
  padding: 11px 15px;
  border: 0;
  border-radius: 0;
  color: var(--qn-ink);
  background: #fff;
  box-shadow: none;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  outline: 0;
}

#form1.delivery-member .delivery-member-info > input::placeholder {
  color: #9b8d84;
  opacity: 1;
}

#form1.delivery-member .forget {
  min-height: 0;
  margin: 2px 0 15px;
  padding: 11px 14px 11px 40px;
  border: 1px solid rgba(214, 168, 60, 0.34);
  border-radius: 11px;
  color: #705a27;
  background:
    radial-gradient(circle at 21px 50%, var(--qn-gold) 0 4px, transparent 5px),
    rgba(240, 216, 138, 0.18);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.message-box .table-box:has(> form#form1.delivery-member) > .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
  padding: 0;
}

.message-box .table-box:has(> form#form1.delivery-member) > .btn a {
  display: inline-flex !important;
  min-width: 150px;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 22px;
  border: 1px solid rgba(255, 248, 232, 0.42);
  border-radius: 999px;
  color: #fffaf0;
  background: linear-gradient(135deg, #a72d24, var(--qn-lacquer));
  box-shadow: 0 7px 17px rgba(75, 13, 11, 0.18);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.message-box .table-box:has(> form#form1.delivery-member) > .btn a[step2][style*="display:none"],
.message-box .table-box:has(> form#form1.delivery-member) > .btn a[step2][style*="display: none"] {
  display: none !important;
}

.message-box .table-box:has(> form#form1.delivery-member) > .btn a:hover,
.message-box .table-box:has(> form#form1.delivery-member) > .btn a:focus-visible {
  background: linear-gradient(135deg, #c43c2f, #7d1714);
  box-shadow: 0 10px 22px rgba(75, 13, 11, 0.26);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .message-box:has(form#form1.delivery-member) {
    padding: 10px 4px 24px !important;
  }

  .message-box .table-box:has(> form#form1.delivery-member) {
    width: 100%;
    padding: 22px 14px 24px;
    border-radius: 15px;
  }

  .message-box .table-box:has(> form#form1.delivery-member)::before {
    right: 18px;
    left: 18px;
  }

  .message-box .table-box:has(> form#form1.delivery-member) > h3 {
    margin-bottom: 18px;
    padding-bottom: 10px;
    font-size: 21px;
  }

  #form1.delivery-member .delivery-member-info {
    grid-template-columns: 90px minmax(0, 1fr);
    margin-bottom: 11px;
    border-radius: 11px;
  }

  #form1.delivery-member .delivery-member-info > span.title {
    width: auto;
    min-height: 48px;
    padding: 9px 7px;
    font-size: 14px;
  }

  #form1.delivery-member .delivery-member-info > input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 16px;
  }

  #form1.delivery-member .forget {
    margin-bottom: 12px;
    padding: 9px 10px 9px 34px;
    background-position: 17px 50%, 0 0;
    font-size: 13px;
  }

  .message-box .table-box:has(> form#form1.delivery-member) > .btn a {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
  }
}

 /* 整合至現有網站時：只複製這段以 #qn-seo-intro 開頭的 CSS 到 ai.css 或首頁 head。 */
    #qn-seo-intro, #qn-seo-intro * { box-sizing: border-box; }
    #qn-seo-intro {
      --qn-wine:#651821; --qn-deep:#3d1018; --qn-gold:#c69b51;
      --qn-cream:#fffaf0; --qn-ink:#331f1b;
      position:relative; overflow:hidden; isolation:isolate;
      background:linear-gradient(145deg,#fffaf1 0%,#f8edda 62%,#f6e7d0 100%);
      color:var(--qn-ink); padding:clamp(48px,6vw,88px) 20px;
      font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;
    }
    #qn-seo-intro::before {
      content:""; position:absolute; width:min(58vw,650px); aspect-ratio:1;
      right:-13%; top:-42%; border:1px solid rgba(181,129,54,.22);
      border-radius:50%; box-shadow:0 0 0 24px rgba(181,129,54,.035),
      0 0 0 64px rgba(181,129,54,.025); z-index:-1;
    }
    #qn-seo-intro .qn-wrap { max-width:1180px; margin:auto; }
    #qn-seo-intro .qn-kicker {
      display:flex; align-items:center; gap:14px; margin:0 0 16px;
      color:#9d7137; font-size:12px; letter-spacing:.22em; font-weight:700;
    }
    #qn-seo-intro .qn-kicker::before { content:""; width:38px; height:1px; background:var(--qn-gold); }
    #qn-seo-intro .qn-grid { display:grid; grid-template-columns:minmax(0,1.18fr) minmax(310px,.82fr); gap:clamp(28px,5vw,72px); align-items:center; }
    #qn-seo-intro h1, #qn-seo-intro h2 { font-family:"Noto Serif TC","Songti TC","PMingLiU",serif; }
    #qn-seo-intro h1 { margin:0; color:var(--qn-deep); font-size:clamp(34px,4.2vw,60px); line-height:1.42; letter-spacing:.055em; font-weight:700; }
    #qn-seo-intro h1 span { display:block; }
    #qn-seo-intro h1 small { display:block; margin-top:5px; font-family:Georgia,serif; font-size:clamp(14px,1.55vw,19px); font-style:italic; letter-spacing:.13em; font-weight:400; color:#9b6639; }
    #qn-seo-intro .qn-lead { max-width:670px; margin:23px 0 0; font-size:clamp(15px,1.3vw,17px); line-height:2; color:#513c33; }
    #qn-seo-intro .qn-lead strong { color:var(--qn-wine); font-weight:700; }
    #qn-seo-intro .qn-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
    #qn-seo-intro .qn-btn { display:inline-flex; justify-content:center; align-items:center; min-height:48px; padding:10px 23px; border-radius:3px; border:1px solid var(--qn-wine); text-decoration:none; font-size:14px; font-weight:700; letter-spacing:.07em; transition:transform .2s,box-shadow .2s,background .2s; }
    #qn-seo-intro .qn-btn:hover, #qn-seo-intro .qn-btn:focus-visible { transform:translateY(-2px); box-shadow:0 7px 18px rgba(61,16,24,.15); }
    #qn-seo-intro .qn-btn-primary { background:var(--qn-wine); color:white; }
    #qn-seo-intro .qn-btn-secondary { background:transparent; color:var(--qn-wine); }
    #qn-seo-intro .qn-card { padding:7px; border:1px solid rgba(198,155,81,.7); background:#fffbf3; box-shadow:14px 16px 0 rgba(106,30,37,.08),0 18px 35px rgba(70,35,25,.11); }
    #qn-seo-intro .qn-card-inner { position:relative; padding:clamp(27px,3.2vw,46px); border:1px solid rgba(198,155,81,.36); background:linear-gradient(155deg,#651821,#401019); color:#fff8ee; }
    #qn-seo-intro .qn-card-inner::before { content:"✦"; display:block; margin-bottom:18px; color:#e5bd70; font-size:23px; }
    #qn-seo-intro .qn-card h2 { margin:0 0 14px; color:#f6deae; font-size:clamp(23px,2.3vw,31px); line-height:1.5; letter-spacing:.08em; }
    #qn-seo-intro .qn-card p { margin:0; font-size:15px; line-height:1.9; color:#f5e8dc; }
    #qn-seo-intro .qn-rule { display:block; height:1px; margin:25px 0; background:linear-gradient(90deg,#d8aa61,rgba(216,170,97,.15)); }
    #qn-seo-intro .qn-perks { display:grid; gap:15px; list-style:none; margin:0; padding:0; }
    #qn-seo-intro .qn-perks li { display:flex; gap:12px; align-items:flex-start; font-size:14px; line-height:1.6; }
    #qn-seo-intro .qn-perks li::before { content:"◆"; color:#e3b968; font-size:9px; padding-top:5px; }
    #qn-seo-intro .qn-note { margin:31px 0 0; padding-top:16px; border-top:1px solid rgba(105,30,37,.18); color:#705c50; font-size:13px; line-height:1.7; }
    @media (max-width:760px) {
      #qn-seo-intro { padding:43px 18px 51px; }
      #qn-seo-intro .qn-grid { grid-template-columns:1fr; gap:31px; }
      #qn-seo-intro h1 { font-size:clamp(31px,7vw,43px); }
      #qn-seo-intro .qn-lead { margin-top:18px; }
      #qn-seo-intro .qn-card { margin-right:9px; }
    }
    @media (max-width:390px) { #qn-seo-intro .qn-actions .qn-btn { flex:1 1 100%; } }
    @media (prefers-reduced-motion:reduce) { #qn-seo-intro .qn-btn { transition:none; } }
/* 2026-10-01：追加至既有 css/ai.css 末端，勿以本檔覆蓋完整 ai.css。
 * 問卷 header 會被共用捲動程式加上 down；保持兩種狀態的樣式一致。
 * 保留問卷原有定位修正與手機 padding，不影響網站頂部導覽。
 */
.survey-page > .survey-card > header.survey-head,
.survey-page > .survey-card > header.survey-head.down {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(145deg, var(--qn-wine), var(--qn-wine-dark));
  border: 0;
  box-shadow: none;
  transition: none;
}

/* 2026-10-01：手機橫向導覽與首頁捲動位置修正。
 * 與既有 980px 手機導覽高度／漢堡按鈕斷點一致。
 * 本檔是追加片段；完整交付檔為 ai.css。
 */
@media (max-width: 980px) {
  header > .top-head > nav {
    display: none;
  }

  .m-burger,
  .m-burger.down {
    display: block;
  }

  header > .top-head,
  header.down > .top-head,
  header.index-header > .top-head,
  header.index-header.down > .top-head {
    position: relative;
    top: 0;
    left: 0;
    height: 72px;
    padding-top: 0;
    transition: none;
  }

  header > .top-head > ul.top-tool,
  header.down > .top-head > ul.top-tool,
  header.index-header > .top-head > ul.top-tool,
  header.index-header.down > .top-head > ul.top-tool {
    position: absolute;
    top: 10px;
    right: 62px;
    bottom: auto;
    min-width: 0;
    height: 44px;
    align-items: center;
    transition: none;
  }

  .other-menu {
    width: min(360px, 100vw);
    box-sizing: border-box;
    overflow-y: auto;
  }

  .other-menu > a {
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* 手機橫向保留會員／購物車，翻譯工具在窄導覽列收起。 */
@media (min-width: 641px) and (max-width: 980px) {
  header > .top-head > ul.top-tool > li.language {
    display: none;
  }
}

/* 首頁桌機維持原本兩列位置，避免 down 狀態移動選單。 */
@media (min-width: 981px) {
  header.index-header,
  header.index-header.down,
  header.index-header > .top-head,
  header.index-header.down > .top-head {
    height: 112px;
  }

  header.index-header > .top-head > nav,
  header.index-header.down > .top-head > nav {
    top: 64px;
    right: 18px;
    left: 182px;
    transition: none;
  }
}
