
:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --gold: #f7b8cf;
  --gold-dark: #d1487a;
  --muted: #8a8a8a;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
/* Katie 2026-09-14/2026-09-15: Cormorant Garamond's "1" reads like a capital "I",
   making digits hard to read anywhere they appear in body text (phone numbers,
   typhoon signal numbers, prices, etc) — not just the few UI elements first patched.
   Rather than hunting every element that happens to contain a digit, swap the digit
   glyphs themselves (Unicode 0-9 only) to a dedicated serif face so numbers stay
   unambiguous everywhere. Originally sourced from Noto Serif TC (already used for the
   Chinese text site-wide), but Google only ships ONE static cut of Noto Serif TC's
   basic-Latin/digit glyphs shared across every weight (200-900 all resolve to the
   identical file) — there is no lighter variant available, so it couldn't be thinned
   when Katie asked for that (2026-09-15: "數字可以幼體返少少"). Switched to EB
   Garamond instead, which has its own genuinely light weight and equally clear,
   unambiguous digit shapes. Non-digit characters are untouched and still render in
   Cormorant Garamond/Noto Serif TC as before. */
@font-face {
  font-family: 'Body Digits';
  src: url(https://fonts.gstatic.com/s/ebgaramond/v33/SlGUmQSNjdsmc35JDF1K5GR1SDk.woff2) format('woff2');
  unicode-range: U+0030-0039;
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Body Digits';
  src: url(https://fonts.gstatic.com/s/ebgaramond/v33/SlGUmQSNjdsmc35JDF1K5GR1SDk.woff2) format('woff2');
  unicode-range: U+0030-0039;
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Body Digits', 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
  font-weight: 500;
}
a { color: inherit; text-decoration: none; }
.delivery-box { margin: 18px 0; padding: 14px 16px; border: 1px solid #f6d6e2; border-radius: 10px; background: #fff8fb; font-size: 14px; line-height: 1.7; }
.delivery-box-title { font-weight: 700; margin: 0 0 6px; }
.delivery-box ul { margin: 0 0 10px; padding-left: 0; list-style: none; }
.delivery-box li { margin-bottom: 4px; }
.delivery-box-links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.delivery-box-links a { color: var(--gold-dark); text-decoration: underline; }
.delivery-box-links a.delivery-box-wa { background: #25d366; color: #fff; text-decoration: none; padding: 6px 14px; border-radius: 18px; font-weight: 700; }
.home-hero { text-align: center; max-width: 760px; margin: 8px auto 28px; padding: 0 8px; }
.home-hero h1 { font-size: 30px; font-weight: 600; margin: 0 0 10px; letter-spacing: 1px; }
.home-hero-sub { font-size: 16px; line-height: 1.8; margin: 0 0 18px; color: #444; }
.home-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-btn { display: inline-block; padding: 12px 26px; border-radius: 26px; font-weight: 700; text-decoration: none; font-size: 15px; }
.hero-btn-main { background: var(--gold); color: var(--ink); }
.hero-btn-wa { background: #25d366; color: #fff; }
.home-hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 14px; color: #555; }
@media (max-width: 640px) {
  .home-hero h1 { font-size: 22px; }
  .home-hero-sub { font-size: 14px; }
  .hero-btn { flex: 1 1 140px; padding: 11px 12px; font-size: 14px; }
  .home-hero-points { flex-direction: column; align-items: center; font-size: 13px; }
}
.test-banner {
  background: #222; color: #fff; text-align: center;
  font-size: 13px; padding: 8px 12px;
}
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--bg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.topbar {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 20px 32px; min-height: 152px;
}
.brand { display: flex; flex-direction: column; }
.brand-zh { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.brand-logo { height: 112px; display: block; }
.search-cart {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 16px;
}
@media (max-width: 640px) {
  /* Katie 2026-09-14 (refined): only the logo + search box should scroll
     away — the category nav menu stays fixed, and the cart icon floats
     top-right independently. `position: fixed` (not `sticky`) on .mainnav
     for the same containing-block reason as before (see the topbar fix
     earlier in this file).
     NOTE: the actual `.mainnav`/`.cart-icon`/`body` overrides for this live
     further down (near the other mobile media queries) — a `.mainnav`
     base-style rule later in this stylesheet has equal CSS specificity, so
     an override declared up here would just get overwritten by source
     order. Keep mobile-only overrides for already-styled selectors AFTER
     their base rule; see the block below `.mainnav { ... }`'s definition. */
  .site-header { position: static; box-shadow: none; }
  .topbar {
    position: static; flex-direction: row; justify-content: space-between;
    gap: 8px; padding: 14px; min-height: 0;
  }
  .brand-logo { height: 80px; }
  /* leave room on the right for the fixed cart button (it used to sit over the
     test-site banner, which was removed 2026-10-13) */
  .search-cart { position: static; transform: none; gap: 8px; margin-right: 92px; }
  .search-cart input { width: 130px; max-width: 100%; padding: 8px 12px; }
}
.search-cart input {
  border: none; background: #fdeef3; border-radius: 20px;
  padding: 10px 18px; width: 220px; font-size: 14px;
}
.cart-icon {
  background: var(--gold); color: #1a1a1a; border-radius: 20px;
  padding: 8px 16px; font-weight: 700; white-space: nowrap;
}
.lang-switch {
  border: 1px solid var(--gold); border-radius: 20px; padding: 7px 12px;
  font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--ink);
}
/* Katie 2026-10-13: the cart used to float over the top-right corner of every page on
   phones, which looked odd. Phone header is now: logo | EN/中 | cart on one row, with the
   search box full width underneath; nothing floats. */
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; align-items: center; row-gap: 10px; }
  .brand { margin-right: auto; }
  .brand-logo { height: 64px; }
  .search-cart { display: contents; }
  .search-cart .lang-switch { order: 2; }
  .search-cart .cart-icon { order: 3; position: static; box-shadow: none; padding: 7px 14px; }
  .search-cart input { order: 4; flex: 1 1 100%; width: 100%; min-width: 0; margin: 0; }
  /* English menu labels are longer: tighter spacing keeps the menu to two lines */
  html[lang="en"] .mainnav { gap: 0 2px; letter-spacing: 0; font-size: 13px; padding: 10px 6px; }
  html[lang="en"] .mainnav .nav-top { padding: 6px 5px; }
}
.mainnav {
  display: flex; justify-content: center; gap: 8px; padding: 14px 12px;
  border-bottom: 1px solid #f6d6e2; font-size: 14px; letter-spacing: .5px;
  flex-wrap: wrap;
  /* .mainnav is now a sibling of .site-header, not nested inside it — a
     nested .mainnav's sticky range would be bounded by .site-header's own
     (short) box, un-sticking as soon as that box scrolls out of view. As a
     sibling of body-level elements, its containing block is tall enough
     for real sticky-to-top-of-viewport behaviour. Desktop: sticks right
     below the (also sticky) topbar, offset by its real height. Mobile: the
     topbar isn't sticky (Katie 2026-09-14), so nav sticks at top:0 instead. */
  position: sticky; top: 152px; z-index: 99; background: var(--bg);
}
@media (max-width: 640px) {
  .mainnav { top: 0; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
  .cart-icon {
    position: fixed; top: 14px; right: 14px; z-index: 110;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  }
}
.nav-item { position: relative; display: flex; align-items: center; }
.nav-top { padding: 6px 8px; }
.nav-top.active { color: var(--gold-dark); font-weight: 700; }
.nav-toggle {
  background: none; border: none; cursor: pointer; font-size: 12px;
  color: var(--muted); padding: 6px 2px 6px 0;
}
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20;
  background: #fff; border: 1px solid #f6d6e2; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 8px 0; min-width: 220px;
  flex-direction: column;
}
.nav-item:hover .nav-dropdown, .nav-item.open .nav-dropdown { display: flex; }
.nav-dropdown a { padding: 8px 16px; white-space: nowrap; font-size: 13px; }
.nav-dropdown a:hover, .nav-dropdown a.active { background: #fdeef3; color: var(--gold-dark); }
main { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.section-title {
  font-family: 'Body Digits', 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif; font-style: italic;
  font-size: 26px; margin-bottom: 8px;
}
.muted { color: var(--muted); font-size: 14px; }
.muted.intro-bold { color: var(--ink); font-weight: 700; font-size: 16px; }
.catalog-copy {
  max-width: 460px; margin: 10px auto 0; text-align: center;
}
.catalog-copy .copy-lines {
  font-family: 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif; font-style: italic;
  font-size: 14px; line-height: 1.9; color: var(--muted); margin: 0 0 10px;
}
.catalog-copy .copy-punchline {
  font-size: 14px; line-height: 1.7; font-weight: 700; color: var(--ink); margin: 0;
}
.catalog-copy .copy-punchline strong { color: var(--gold-dark); }
@media (max-width: 640px) {
  .catalog-copy .copy-lines { font-size: 12.5px; line-height: 1.75; }
  .catalog-copy .copy-punchline { font-size: 13px; }
}
.catalog-head { margin-bottom: 24px; }
.subcat-group-title { font-size: 18px; margin: 28px 0 14px; }
.subcat-group-title:first-child { margin-top: 0; }
.subcat-tiles {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 36px;
}
.subcat-tile {
  display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); background: #fff;
}
.subcat-tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.subcat-tile-label {
  padding: 8px 8px 10px; background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 700; text-align: center;
}
@media (max-width: 900px) {
  .subcat-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .subcat-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.category-hero { margin-bottom: 28px; }
.category-hero-grid {
  /* Katie 2026-09-17: auto-fill kept creating extra EMPTY tracks on wide screens (it
     doesn't collapse them like auto-fit does), so a 3-item gallery like Surprise Box's
     stretched across the full row width with visible blank space on the right instead
     of looking like a deliberate, centered group. auto-fit collapses unused tracks, and
     capping max-width + auto margins keeps the group a sensible size instead of
     stretching 3 photos edge-to-edge on a large monitor. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
  max-width: 700px; margin: 0 auto;
}
/* Katie 2026-09-21: a lone video/photo tile (no siblings) shouldn't stretch to the
   full 700px -- keep it small like she asked ("細細地就可以"). */
.category-hero-grid-single { max-width: 240px; }
.category-hero-item {
  position: relative; display: block; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden;
  background: #fdeef3; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.category-hero-item img, .category-hero-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: #fff; font-size: 13px; font-weight: 700;
}
@media (max-width: 640px) {
  .category-hero-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
.sort-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin-bottom: 16px; font-size: 14px; color: var(--ink);
}
.sort-bar select {
  font-family: inherit; font-size: 14px; padding: 6px 10px; border-radius: 4px;
  border: 1px solid #ddd; background: #fff; color: var(--ink);
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px;
}
.addon-section {
  margin: 40px 0 8px; padding: 24px; background: #fdeef3; border-radius: 8px;
}
.addon-section .section-title { text-align: center; margin-bottom: 18px; }
.addon-grid { gap: 20px; }
/* Katie 2026-09-21: smaller cards for the per-product "加配氣球 Special Offer" block
   under each 百日宴 setup product's own detail page -- narrower context than the
   full shop grid, so cards are scaled down rather than reusing the normal card size. */
.product-addon-section { margin: 32px 0 0; }
.addon-grid-small { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.addon-grid-small .card .info { padding: 8px 8px 12px; gap: 4px; }
.addon-grid-small .card .title { font-size: 13px; }
.addon-grid-small .card .price { font-size: 12px; }
.addon-grid-small .card .btn-add { font-size: 11px; padding: 6px 8px; }
.setup-notice-section { margin: 32px 0 0; max-width: 640px; }
.setup-notice-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }
.setup-notice-list li { margin-bottom: 6px; }
.setup-notice-list a { color: var(--gold-dark); text-decoration: underline; }
.card {
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.photo-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; display: block; background: #fdeef3; }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-wrap.large { max-width: 480px; margin: 0 auto; border-radius: 4px; }
.photo-wrap.large img { object-fit: contain; }
.product-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  background: var(--gold-dark); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px; letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.no-photo {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; background: #fdeef3;
}
.no-photo.large { aspect-ratio: 1/1; font-size: 16px; }
.info { padding: 14px 14px 20px; text-align: center; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.title { font-family: 'Body Digits', 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif; font-style: italic; font-size: 19px; display: block; }
.title.large { font-size: 24px; margin-bottom: 12px; }
.price .now { font-weight: 700; }
.price .quote { color: var(--gold-dark); font-weight: 700; }
.btn-add {
  margin-top: auto; background: var(--gold); border: none; border-radius: 20px;
  padding: 10px 16px; font-weight: 500; cursor: pointer; width: 100%; display: block;
  text-align: center; font-size: 14px; color: var(--ink);
}
.btn-add:hover { background: var(--gold-dark); }
.category-heading { text-align: center; max-width: 720px; margin: 8px auto 20px; }
.category-heading h1 { font-size: 28px; font-weight: 600; margin: 0 0 10px; }
.category-intro { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }
@media (max-width: 640px) {
  .category-heading h1 { font-size: 22px; }
  .category-intro { font-size: 14px; }
}
/* Katie 2026-10-13: phone shop grid shows two products per row instead of one */
@media (max-width: 640px) {
  .grid:not(.addon-grid-small) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid:not(.addon-grid-small) .info { padding: 10px 8px 14px; gap: 6px; }
  .grid:not(.addon-grid-small) .title { font-size: 15px; }
  .grid:not(.addon-grid-small) .price { font-size: 13px; }
  .grid:not(.addon-grid-small) .btn-add { font-size: 12px; padding: 8px 6px; }
}
.btn-large { padding: 14px 24px; font-size: 16px; }
.product-detail { display: flex; gap: 48px; flex-wrap: wrap; }
.photo-col { flex: 1 1 480px; max-width: 480px; }
.gallery-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.product-video-grid {
  margin: 14px 0 0; max-width: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.product-video-grid .category-hero-item { flex: 0 1 200px; }
.gallery-thumb {
  padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden;
  width: 72px; height: 72px; cursor: pointer; background: #fdeef3;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--gold-dark); }
.option-image-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.option-image-label { font-weight: 700; }
.option-image-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.option-image-choice {
  padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden;
  width: 76px; height: 76px; cursor: pointer; background: #fdeef3;
}
.option-image-choice img { width: 100%; height: 100%; object-fit: cover; display: block; }
.option-image-choice.active { border-color: var(--gold-dark); }
.cart-swatch { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.cart-swatch img { width: 56px; height: 56px; object-fit: cover; border: 1px solid #f6d6e2; border-radius: 4px; }
.detail-info { flex: 1; min-width: 280px; }
/* Katie 2026-10-14: on phones show photo -> name/price/add-to-cart first and move the
   product videos after the description, so customers don't scroll past every video
   before reaching the order button. */
@media (max-width: 768px) {
  .product-detail { flex-direction: column; gap: 0; }
  .photo-col { display: contents; }
  .photo-col .photo-wrap.large { order: 1; width: 100%; }
  .photo-col .gallery-thumbs { order: 2; }
  .product-detail .detail-info { order: 3; margin-top: 20px; }
  .photo-col .product-video-grid { order: 4; margin-top: 24px; }
}
.desc { white-space: pre-wrap; line-height: 1.7; margin: 20px 0; font-size: 14px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.back-link { display: inline-block; margin-top: 16px; color: var(--muted); text-decoration: underline; }
.cart-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.cart-table th, .cart-table td { padding: 12px 8px; border-bottom: 1px solid #f6d6e2; text-align: left; }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.cart-table input[type=number] { width: 56px; }
/* phones: the 6-column cart table was wider than the screen -- drop the unit-price
   column (the subtotal already shows it) and tighten spacing */
@media (max-width: 640px) {
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
  .cart-table th, .cart-table td { padding: 8px 4px; font-size: 13px; }
  .cart-table img { width: 44px; height: 44px; }
  .cart-table input[type=number] { width: 42px; }
  .cart-swatch img { width: 40px; height: 40px; }
}
.cart-summary { margin-top: 24px; display: flex; align-items: center; gap: 24px; justify-content: flex-end; }
.cart-total { font-size: 18px; font-weight: 700; }
.checkout-form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.checkout-notice {
  max-width: 480px; padding: 14px 16px; border-radius: 8px;
  background: #fbe9d0; font-size: 14px; line-height: 1.6; margin-bottom: 16px;
}
.payment-info {
  max-width: 420px; margin: 32px auto 0; padding: 20px; border-radius: 8px;
  background: #fdeef3; text-align: left;
}
.contact-store-box {
  max-width: 480px; padding: 20px; border-radius: 8px; border: 1px solid #cfe3d4;
  background: #eef7f0; margin-bottom: 24px;
}
.contact-store-title { font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.contact-social-title { font-weight: 700; margin: 20px 0 10px; }
.contact-social-plugins { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.instagram-badge {
  display: flex; align-items: center; gap: 10px; width: 300px; height: 80px;
  padding: 0 16px; border-radius: 8px; background: #fdeef3; box-sizing: border-box;
  font-weight: 700;
}
.facebook-badge { background: #e7f0fd; }
.instagram-badge-icon { font-size: 28px; display: flex; align-items: center; flex-shrink: 0; }
.instagram-badge small { font-weight: 500; color: var(--muted); }
.contact-store-box p { margin: 4px 0; line-height: 1.6; }
.payment-info-title { font-weight: 700; font-size: 16px; margin: 0 0 12px; text-align: center; }
.payment-method { padding: 12px 0; border-top: 1px solid #f6d6e2; }
.payment-method:first-of-type { border-top: none; }
.payment-method-name { font-weight: 700; margin: 0 0 4px; }
.payment-method p { margin: 2px 0; }
.checkout-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.delivery-options { border: 1px solid #f6d6e2; border-radius: 6px; padding: 12px 16px; margin: 0; }
.product-options { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.option-text-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.option-text-field input {
  border: 1px solid #f6d6e2; border-radius: 6px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.option-select-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.option-select {
  border: 1px solid #f6d6e2; border-radius: 6px; padding: 10px 12px; font-size: 14px; font-family: inherit;
  background: #fff;
}
.delivery-options legend { font-size: 14px; padding: 0 4px; }
.delivery-options .radio-label {
  flex-direction: row; align-items: center; gap: 8px; font-size: 14px;
  padding: 6px 0;
}
.delivery-options input[type="radio"] { width: auto; }
.checkout-form input, .checkout-form textarea {
  border: 1px solid #f6d6e2; border-radius: 6px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
#checkout-summary { background: #fff; border-radius: 6px; padding: 16px; font-size: 14px; }
#checkout-summary .line { display: flex; justify-content: space-between; padding: 4px 0; }
footer { text-align: center; padding: 40px; color: var(--muted); font-size: 13px; }

.home-main { max-width: 1200px; }
.portfolio-section { margin-bottom: 8px; }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.portfolio-item {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  background: #fdeef3; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  opacity: 0; transform: translateY(28px) scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s ease;
}
.portfolio-item a { display: block; width: 100%; height: 100%; }
.portfolio-item.in-view {
  opacity: 1; transform: translateY(0) scale(1);
}
.portfolio-item:nth-child(1) { transition-delay: 0s; }
.portfolio-item:nth-child(2) { transition-delay: 0.08s; }
.portfolio-item:nth-child(3) { transition-delay: 0.16s; }
.portfolio-item:nth-child(4) { transition-delay: 0.24s; }
.portfolio-item:nth-child(5) { transition-delay: 0.32s; }
.portfolio-item:nth-child(6) { transition-delay: 0.4s; }
.portfolio-item:nth-child(7) { transition-delay: 0.48s; }
.portfolio-item:nth-child(8) { transition-delay: 0.56s; }
.portfolio-item.portfolio-wide { grid-column: span 2; aspect-ratio: 2/1; }
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.portfolio-item::after {
  /* always-on subtle gradient (not just :hover) -- most visitors are on mobile,
     which has no real hover, so a hover-only effect would never show for them */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 45%);
}
.portfolio-item:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.portfolio-item:hover img { transform: scale(1.08); }
.occasions-section { margin: 40px 0 48px; text-align: center; }
.occasions-title { margin-bottom: 4px; }
.occasions-subtitle { margin: 0 0 24px; }
.occasions-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; text-align: left;
}
.occasion-tile {
  position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center; display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08); transition: transform .15s ease;
}
.occasion-tile:hover { transform: translateY(-3px); }
.occasion-tile-label {
  position: absolute; left: 0; right: 0; bottom: 0; top: 55%; padding: 14px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0) 100%);
  display: flex; flex-direction: column; gap: 2px; justify-content: flex-end;
}
.occasion-zh { color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.occasion-en { color: #fff; font-size: 11px; opacity: 0.9; letter-spacing: .3px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.home-cta { text-align: center; margin: 32px 0 48px; }
.btn-outline {
  display: inline-block; border: 1px solid var(--ink); border-radius: 20px;
  padding: 10px 28px; font-size: 14px; font-weight: 700;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.home-carousel { margin-bottom: 48px; }
.carousel-title {
  font-family: 'Body Digits', 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif; font-style: italic;
  font-size: 22px; margin: 0 0 16px;
}
.carousel-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 4px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 220px; background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.carousel-card .photo-wrap { aspect-ratio: 1/1; }
.carousel-card .info { padding: 12px 12px 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-right: 4px; }
.carousel-arrow {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #f6d6e2;
  background: #fff; cursor: pointer; font-size: 14px; color: var(--ink);
}
.carousel-arrow:hover { background: #fdeef3; }
/* Katie 2026-10-13: on phones show two products at a time and let customers swipe,
   instead of one card at a time behind the arrow buttons */
@media (max-width: 640px) {
  .carousel-arrow { display: none; }
  .carousel-track { gap: 12px; scroll-snap-type: x mandatory; }
  .carousel-card { flex: 0 0 calc(50% - 6px); scroll-snap-align: start; }
  .carousel-card .info { padding: 10px 8px 12px; }
  .carousel-card .title { font-size: 15px; }
  .carousel-card .btn-add { font-size: 12px; padding: 8px 6px; }
}
.home-footer .footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px;
  margin: 0 auto; text-align: left; padding: 0 24px;
}
.home-footer .footer-line { margin: 0 0 12px; font-size: 15px; }
.home-footer .footer-map { margin-top: 12px; border-radius: 6px; overflow: hidden; }
.home-footer .footer-box {
  background: #fff; border: 1px solid #f0c9d8; border-radius: 6px; padding: 20px; font-size: 14px; line-height: 1.7;
}
.home-footer .footer-box-title { font-weight: 700; margin: 12px 0 4px; }
.home-footer .footer-box-title:first-child { margin-top: 0; }
.home-footer .footer-copy { margin-top: 24px; }
footer.home-footer { background: #fbe4ec; padding: 40px 20px; color: #000; font-weight: 700; }
footer.home-footer a { color: #000; }
.about-banner { background: #fbd9e6; padding: 40px; text-align: center; margin-bottom: 32px; }
.about-banner h1 { margin: 0; letter-spacing: 6px; font-size: 22px; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-text p { line-height: 1.9; margin: 0 0 16px; }
.about-shop-name { font-size: 17px; }
.about-photo img { width: 100%; border-radius: 4px; }
.delivery-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.delivery-layout h2 { font-size: 18px; margin-bottom: 16px; }
.delivery-layout p { line-height: 1.8; margin: 0 0 16px; }
.delivery-layout ol { padding-left: 20px; line-height: 1.8; }
.typhoon-title { text-align: center; margin-bottom: 24px; }
.typhoon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.typhoon-card { border-radius: 6px; padding: 20px; text-align: center; line-height: 1.7; font-size: 14px; }
.typhoon-card .typhoon-signal { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.typhoon-green { background: #eaf3e6; }
.typhoon-amber { background: #fbe9d0; }
.typhoon-red { background: #fadbdb; }
.candy-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.candy-hero img { max-width: 420px; width: 100%; border-radius: 8px; }
.candy-hero-info { font-size: 16px; line-height: 1.8; }
.candy-price { font-weight: 700; font-size: 20px; color: var(--gold-dark); }
.candy-sale-banner { position: relative; margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
.candy-sale-banner img { width: 100%; display: block; }
.candy-sale-banner p {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px;
  background: rgba(0,0,0,0.45); color: #fff; text-align: center; font-weight: 700;
}
.candy-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 32px; }
.candy-gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; display: block; }
.candy-cta { text-align: center; }
.banner-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.banner-gallery-item img { width: 100%; border-radius: 8px; display: block; }
@media (max-width: 640px) {
  .banner-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .candy-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .portfolio-item.portfolio-wide { grid-column: span 2; }
  .home-footer .footer-grid { grid-template-columns: 1fr; }
  .about-layout, .delivery-layout, .typhoon-grid { grid-template-columns: 1fr; }
  .occasions-grid { grid-template-columns: repeat(2, 1fr); }
}
.fab-contact { position: fixed; right: 20px; bottom: 20px; z-index: 200; }
.back-to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: var(--ink); font-size: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  display: none; align-items: center; justify-content: center;
}
.back-to-top.visible { display: flex; }
@media (max-width: 640px) {
  .back-to-top { left: 14px; bottom: 14px; width: 42px; height: 42px; }
}
.fab-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: #25d366; color: #fff; font-size: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center;
}
.fab-menu {
  display: none; flex-direction: column; gap: 8px; margin-bottom: 12px;
  align-items: flex-end;
}
.fab-contact.open .fab-menu { display: flex; }
.fab-item {
  display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink);
  padding: 10px 16px; border-radius: 24px; font-size: 14px; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15); text-decoration: none;
}
.fab-item:hover { background: #fdeef3; }
.fab-icon { font-size: 16px; }
@media (max-width: 640px) {
  .fab-contact { right: 14px; bottom: 14px; }
}
