  :root{
    --cream:#FDF6EC;
    --cream-deep:#F2E3CE;
    --surface:#FFFFFF;
    --strawberry:#FF8FA8;
    --strawberry-deep:#F2607E;
    --mint:#9FE0B8;
    --mint-deep:#4FA877;
    --lavender:#C3B2E8;
    --lavender-deep:#8C6BC8;
    --gold:#FFD66B;
    --gold-deep:#E0961E;
    --ink:#5B3A4A;
    --ink-soft:#A98998;
    --shadow:0 10px 26px rgba(91,58,74,.08);
    --shadow-lift:0 18px 34px rgba(91,58,74,.16);
    --topbar-bg:rgba(253,246,236,.88);
    --announce-bg:#FFF3E0;
    --announce-text:#E0961E;
    --promo-btn-bg:#5B3A4A;
    --promo-btn-text:#FFFFFF;
    --toast-bg:#5B3A4A;
    --toast-text:#FFFFFF;

    /* ---- 統一動畫節奏：全站共用同一套緩動曲線，避免時快時慢 ---- */
    --ease-fast:.2s cubic-bezier(.4,0,.2,1);
    --ease-base:.32s cubic-bezier(.4,0,.2,1);
    --ease-spring:.4s cubic-bezier(.34,1.56,.64,1);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--cream);
    color:var(--ink);
    font-family:'Zen Maru Gothic', system-ui, sans-serif;
    overflow-x:hidden;
  }

  .num{font-family:'M PLUS Rounded 1c', system-ui, sans-serif; font-weight:700;}
  h1,h2,h3{font-family:'Zen Maru Gothic', system-ui, sans-serif; margin:0;}
  a{text-decoration:none; color:inherit;}
  button{font-family:inherit; cursor:pointer; border:none; background:none;}
  svg.icon{width:1em; height:1em; display:inline-block; vertical-align:middle;}

  /* ---------- decorative background blobs ---------- */
  .bg-deco{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;}
  .blob{position:absolute; border-radius:50%; filter:blur(50px); opacity:.35; will-change:transform; transform:translateZ(0);}
  @media(max-width:860px){.blob{filter:blur(30px); opacity:.25;}}
  .blob.b1{width:420px;height:420px; background:var(--strawberry); top:-160px; left:-120px;}
  .blob.b2{width:380px;height:380px; background:var(--lavender); top:120px; right:-140px;}
  .blob.b3{width:320px;height:320px; background:var(--mint); bottom:-120px; left:30%;}

  /* ---------- layout shell ---------- */
  .wrap{max-width:1240px; margin:0 auto; padding:0 28px; position:relative; z-index:1;}

  /* ---------- topbar ---------- */
  /* ---- 公告跑馬燈 ---- */
  .announce-wrap{
    padding:20px 28px 0;
    max-width:1240px; margin:0 auto;
  }
  .announce-bar{
    display:flex; align-items:center; gap:0;
    border-radius:999px; overflow:hidden;
    height:32px;
    background:linear-gradient(100deg, #FFF8E6 0%, #FFF0F4 100%);
    border:1.5px solid rgba(224,150,30,.25);
    box-shadow:0 2px 12px rgba(224,150,30,.10), 0 1px 3px rgba(91,58,74,.06);
  }
  .announce-icon{
    flex:none; width:32px; height:32px;
    display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg, rgba(255,214,107,.5), rgba(255,143,168,.3));
    color:var(--gold-deep);
    border-right:1.5px solid rgba(224,150,30,.18);
  }
  .announce-clip{
    flex:1; overflow:hidden; height:100%; position:relative;
  }
  .announce-track{
    display:inline-flex; gap:60px; white-space:nowrap;
    animation:marquee 14s linear infinite;
    will-change:transform;
    font-size:13px; font-weight:700; color:var(--ink);
    position:absolute; top:50%;
    padding:0 24px;
    /* 用 translate3d 同時處理垂直置中與水平跑馬燈，避免兩個 transform 衝突 */
    transform:translate3d(0,-50%,0);
  }
  .announce-track span{
    display:inline-flex; align-items:center; gap:8px; opacity:.9;
  }
  .announce-track span::before{
    content:''; display:inline-block;
    width:5px; height:5px; border-radius:50%;
    background:var(--gold-deep); opacity:.5; flex:none;
  }
  @keyframes marquee{ 0%{transform:translate3d(0,-50%,0)} 100%{transform:translate3d(-50%,-50%,0)} }

  /* ---- 深色模式：淡彩疊色統一加深底色、提升飽和區隔，避免髒濁 ---- */










  /* ---------- 農場天氣定價卡 ---------- */
  .weather-pricing-card{
    background:var(--surface); border-radius:24px; box-shadow:var(--shadow);
    padding:22px 24px; grid-column:1/-1;
    display:flex; flex-direction:column; gap:14px;
  }
  .weather-pricing-head{
    display:flex; align-items:center; gap:12px;
  }
  .weather-pricing-head .more-icon{ background:var(--gold-deep); flex:none; }
  .weather-pricing-head h3{ font-size:16px; font-weight:900; margin:0 0 2px; }
  .weather-pricing-head p{ font-size:12px; color:var(--ink-soft); margin:0; }
  .weather-pricing-plans{
    display:grid; grid-template-columns:1fr 1fr; gap:12px;
  }
  @media(max-width:500px){ .weather-pricing-plans{ grid-template-columns:1fr; } }
  .weather-plan{
    border-radius:18px; padding:16px 18px;
    display:flex; align-items:center; gap:14px;
    border:2px solid transparent; position:relative; overflow:hidden;
  }
  .weather-plan.plan-solo{
    background:linear-gradient(135deg,rgba(255,214,107,.18),rgba(224,150,30,.10));
    border-color:rgba(224,150,30,.22);
  }
  .weather-plan.plan-group{
    background:linear-gradient(135deg,rgba(195,178,232,.20),rgba(140,107,200,.12));
    border-color:rgba(140,107,200,.25);
  }
  .weather-plan-icon{ font-size:28px; flex:none; line-height:1; }
  .weather-plan-info{ flex:1; min-width:0; }
  .weather-plan-name{ font-size:13.5px; font-weight:900; color:var(--ink); margin:0 0 3px; }
  .weather-plan-desc{ font-size:11.5px; color:var(--ink-soft); margin:0 0 8px; }
  .weather-plan-price{
    display:inline-flex; align-items:baseline; gap:3px;
    font-family:'M PLUS Rounded 1c',system-ui,sans-serif;
  }
  .weather-plan-price .amt{
    font-size:22px; font-weight:900;
  }
  .weather-plan.plan-solo .weather-plan-price .amt{ color:var(--gold-deep); }
  .weather-plan.plan-group .weather-plan-price .amt{ color:var(--lavender-deep); }
  .weather-plan-price .unit{ font-size:12px; font-weight:700; color:var(--ink-soft); }
  .weather-plan-badge{
    position:absolute; top:10px; right:12px;
    font-size:10px; font-weight:800; padding:3px 8px; border-radius:999px;
    letter-spacing:.3px;
  }
  .plan-group .weather-plan-badge{
    background:rgba(140,107,200,.18); color:var(--lavender-deep);
  }

  /* ---- 排序按鈕 ---- */
  .sort-wrap{ display:flex; align-items:center; gap:8px; margin-bottom:16px; }
  .sort-label{ font-size:12px; font-weight:700; color:var(--ink-soft); }
  .sort-btn{
    font-size:12px; font-weight:700; padding:5px 13px;
    border-radius:999px; border:2px solid var(--cream-deep);
    background:var(--surface); color:var(--ink-soft); cursor:pointer; transition:var(--ease-fast);
  }
  .sort-btn:hover{ border-color:var(--strawberry); }
  .sort-btn.active{ background:var(--ink); border-color:var(--ink); color:#fff; }

  .topbar{position:sticky; top:0; z-index:50; background:var(--topbar-bg); backdrop-filter:blur(10px); border-bottom:1px solid var(--cream-deep);}
  .topbar-inner{max-width:1240px; margin:0 auto; padding:14px 28px; display:flex; align-items:center; gap:24px; flex-wrap:wrap;}
  .brand{display:flex; align-items:center; gap:10px;}
  .brand-mascot{width:42px; height:42px; color:var(--gold); flex:none;}
  .brand-text{display:flex; flex-direction:column; line-height:1.1;}
  .brand-name{font-family:'Mochiy Pop One', system-ui, sans-serif; font-size:18px; color:var(--strawberry-deep); letter-spacing:.5px;}
  .brand-sub{font-size:11px; color:var(--ink-soft); letter-spacing:1px;}

  .nav{display:flex; gap:6px; margin-left:auto; margin-right:auto;}
  .nav-link{display:flex; align-items:center; gap:6px; padding:9px 14px; border-radius:999px; font-size:14px; font-weight:700; color:var(--ink-soft); transition:var(--ease-fast);}
  .nav-link svg{width:18px; height:18px;}
  .nav-link:hover{background:var(--cream-deep); color:var(--ink);}
  .nav-link.active{background:var(--strawberry); color:#fff; box-shadow:var(--shadow);}

  .topbar-actions{display:flex; align-items:center; gap:10px; margin-left:auto;}

  @media (max-width:860px){
    .nav{order:3; flex-basis:100%; justify-content:space-around; margin:6px 0 0 0;}
    .nav-link span{font-size:11px;}
    .nav-link{padding:7px 10px; flex-direction:column; gap:3px; border-radius:16px;}
    .nav-link svg{width:18px; height:18px;}

    /* 手機版——brand 淡出動畫 */
    /* GPU 加速：只動 opacity + transform，不動任何會觸發 layout 的屬性 */
    .brand, .topbar-actions{
      transition: opacity .32s cubic-bezier(.4,0,.2,1), transform .32s cubic-bezier(.4,0,.2,1);
      will-change: opacity, transform;
      transform-origin: top center;
    }
    .topbar-inner{ transition: padding .32s cubic-bezier(.4,0,.2,1); }
    .nav{ transition: margin .32s cubic-bezier(.4,0,.2,1); }
    .topbar.scrolled .brand{
      opacity:0; transform: translate3d(0,-6px,0) scale(0.95);
      pointer-events:none; position:absolute; visibility:hidden;
    }
    .topbar.scrolled .topbar-actions{
      opacity:0; transform: translate3d(0,-6px,0) scale(0.95);
      pointer-events:none; position:absolute; visibility:hidden;
    }
    .topbar.scrolled .topbar-inner{ padding:6px 12px; }
    .topbar.scrolled .nav{ order:0; margin:0; flex-basis:100%; justify-content:space-around; }
  }

  /* ---------- hero ---------- */
  .hero{display:flex; align-items:center; gap:26px; padding:40px 0 12px; flex-wrap:wrap;}
  .hero-mascot{width:96px; height:96px; color:var(--strawberry); flex:none; animation:float 4s ease-in-out infinite;}
  .hero-greet{margin:0 0 4px; font-size:14px; color:var(--ink-soft); font-weight:700;}
  .hero-title{font-size:26px; font-weight:900;}

  @keyframes float{0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(0,-8px,0)}}

  /* ---------- section heads ---------- */
  .section{padding:54px 0;}
  .section-head{max-width:560px; margin-bottom:28px;}
  .eyebrow{font-family:'M PLUS Rounded 1c', system-ui, sans-serif; font-size:12px; font-weight:800; letter-spacing:2.5px; color:var(--strawberry-deep); margin:0 0 6px;}
  .section-head h2{font-size:24px; font-weight:900; margin-bottom:6px;}
  .section-sub{font-size:14px; color:var(--ink-soft); margin:0;}

  /* ---------- filter pills ---------- */
  .pills{display:flex; gap:10px; margin-bottom:26px; flex-wrap:wrap;}
  .pill{padding:9px 18px; border-radius:999px; background:var(--surface); border:2px solid var(--cream-deep); font-size:13px; font-weight:700; color:var(--ink-soft); transition:var(--ease-fast);}
  .pill:hover{border-color:var(--strawberry);}
  .pill.active{background:var(--ink); border-color:var(--ink); color:#fff;}
  .pill.active[data-filter="veg"]{background:var(--mint-deep); border-color:var(--mint-deep);}
  .pill.active[data-filter="fruit"]{background:var(--strawberry-deep); border-color:var(--strawberry-deep);}
  .pill.active[data-filter="flower"]{background:var(--lavender-deep); border-color:var(--lavender-deep);}
  .pill.active[data-filter="custom"]{background:var(--gold-deep); border-color:var(--gold-deep);}

  /* ---------- card grid : harvest stamp cards ---------- */
  .card-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(232px,1fr)); gap:24px;}
  #cardGridLimited{grid-template-columns:repeat(auto-fill, minmax(232px, 232px));}
  .limited-empty{
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    padding:48px 24px; gap:8px; text-align:center;
  }
  .limited-empty-icon{font-size:48px; line-height:1; margin-bottom:4px;}
  .limited-empty-text{font-size:16px; font-weight:800; color:var(--ink); margin:0;}
  .limited-empty-sub{font-size:13px; color:var(--ink-soft); margin:0;}
  .crop-card{
    background:var(--surface); border-radius:26px; box-shadow:var(--shadow);
    overflow:hidden; position:relative; transition:transform var(--ease-fast), box-shadow var(--ease-fast);
    opacity:0; transform:translate3d(0,16px,0); animation:cardIn .5s ease forwards;
    will-change:transform, opacity;
  }
  .crop-card:hover{transform:translate3d(0,-6px,0); box-shadow:var(--shadow-lift);}
  .card-grid .crop-card:nth-child(1){animation-delay:.02s}
  .card-grid .crop-card:nth-child(2){animation-delay:.08s}
  .card-grid .crop-card:nth-child(3){animation-delay:.14s}
  .card-grid .crop-card:nth-child(4){animation-delay:.20s}
  .card-grid .crop-card:nth-child(5){animation-delay:.26s}
  .card-grid .crop-card:nth-child(6){animation-delay:.32s}
  .card-grid .crop-card:nth-child(7){animation-delay:.38s}
  .card-grid .crop-card:nth-child(8){animation-delay:.44s}
  @keyframes cardIn{to{opacity:1; transform:translate3d(0,0,0);}}

  .card-top{display:flex; align-items:center; justify-content:flex-start; padding:14px 18px 0; padding-right:46px;}
  .rarity{display:flex; gap:2px; color:var(--cream-deep);}
  .rarity svg{width:14px; height:14px;}
  .tag{font-size:11px; font-weight:800; padding:4px 10px; border-radius:999px;}
  .tag-veg{background:rgba(79,168,119,.14); color:var(--mint-deep);}
  .tag-fruit{background:rgba(242,96,126,.12); color:var(--strawberry-deep);}
  .tag-flower{background:rgba(140,107,200,.14); color:var(--lavender-deep);}
  .tag-special{background:rgba(224,150,30,.16); color:var(--gold-deep);}
  .tag-custom{background:rgba(140,107,200,.16); color:var(--lavender-deep);}
  .card-id{
    font-family:'M PLUS Rounded 1c', system-ui, sans-serif; font-size:10.5px; font-weight:800;
    color:var(--ink-soft); background:var(--cream); padding:3px 8px; border-radius:999px;
    letter-spacing:.3px; margin-left:6px; flex:none;
  }
  .card-top-left{display:flex; align-items:center; gap:0;}

  /* ---------- card add(+) button ---------- */
  .card-add-btn{
    position:absolute; top:10px; right:10px; z-index:3;
    width:32px; height:32px; border-radius:50%;
    background:var(--surface); color:var(--strawberry-deep);
    box-shadow:0 4px 12px rgba(91,58,74,.16);
    display:flex; align-items:center; justify-content:center;
    transition:transform .22s cubic-bezier(.25,.46,.45,.94), background .18s ease-out, color .18s ease-out, box-shadow .18s ease-out;
    border:2px solid var(--cream-deep);
    will-change:transform; transform:translate3d(0,0,0);
  }
  .card-add-btn svg{width:16px; height:16px;}
  .card-add-btn:hover{ background:var(--strawberry); color:#fff; border-color:var(--strawberry); transform:translate3d(0,0,0) scale(1.1); }
  .card-add-btn:active{ transform:translate3d(0,0,0) scale(.92); }
  .card-add-btn.added{ background:var(--mint-deep); border-color:var(--mint-deep); color:#fff; }
  .card-add-btn.bump{ animation:addBump .38s cubic-bezier(.34,1.56,.64,1); }
  @keyframes addBump{0%{transform:translate3d(0,0,0) scale(1)}40%{transform:translate3d(0,0,0) scale(1.18)}100%{transform:translate3d(0,0,0) scale(1)}}

  /* ---------- card detail(查看詳情) button ---------- */
  .card-row.with-detail{ align-items:center; }
  .card-detail-btn{
    display:inline-flex; align-items:center; gap:5px;
    font-size:11.5px; font-weight:800; color:var(--ink-soft);
    background:var(--cream); padding:6px 12px; border-radius:999px;
    transition:background var(--ease-fast), color var(--ease-fast), transform var(--ease-fast);
    flex:none; will-change:transform; transform:translate3d(0,0,0);
  }
  .card-detail-btn svg{width:13px; height:13px;}
  .card-detail-btn:hover{ background:var(--lavender); color:#fff; }
  .card-detail-btn:active{ transform:translate3d(0,0,0) scale(.94); }

  .card-illus{position:relative; height:128px; display:flex; align-items:center; justify-content:center; padding:6px 18px 14px;}
  .illus-blob{position:absolute; width:118px; height:118px; border-radius:50%; opacity:.4;}
  .cat-veg .illus-blob{background:var(--mint);}
  .cat-fruit .illus-blob{background:var(--strawberry);}
  .cat-flower .illus-blob{background:var(--lavender);}
  .cat-special .illus-blob{background:var(--gold);}
  .cat-custom .illus-blob{background:var(--lavender);}
  .crop-art{width:118px; height:118px; object-fit:cover; border-radius:50%; position:relative; z-index:1; transition:transform var(--ease-fast); display:block; will-change:transform; transform:translate3d(0,0,0);}
  .crop-card:hover .crop-art{transform:translate3d(0,0,0) scale(1.08) rotate(-3deg);}

  .tear-line{position:relative; height:0; border-top:2px dashed var(--cream-deep);}
  .tear-line::before, .tear-line::after{content:""; position:absolute; top:-9px; width:18px; height:18px; background:var(--surface); border-radius:50%;}
  .tear-line::before{left:-9px;}
  .tear-line::after{right:-9px;}

  .card-body{padding:16px 18px 18px;}
  .crop-name{font-size:16px; font-weight:700; margin-bottom:4px;}
  .crop-desc{
    font-size:12.5px; color:var(--ink-soft); margin:0 0 14px; line-height:1.5;
    overflow:hidden;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
    min-height:36px; height:36px;
  }
  .card-row{display:flex; align-items:center; justify-content:space-between; margin-bottom:12px;}
  .var-icons{display:inline-flex; gap:4px; align-items:center; vertical-align:middle; margin-left:2px;}
  .var-icon{width:200px; height:40px; object-fit:contain; vertical-align:middle;}

  /* ---------- 種子包：規格選擇按鈕 ---------- */
  .seed-qty-row{ display:flex; gap:8px; margin:0 0 14px; }
  .seed-qty-btn{
    flex:1; padding:8px 0; border-radius:999px; text-align:center;
    background:var(--surface); border:2px solid var(--cream-deep);
    font-size:12.5px; font-weight:800; color:var(--ink-soft);
    transition:background var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast), transform var(--ease-fast);
  }
  .seed-qty-btn:hover{ border-color:var(--gold-deep); color:var(--gold-deep); }
  .seed-qty-btn:active{ transform:scale(.95); }
  .seed-qty-btn.selected{
    background:var(--gold-deep); border-color:var(--gold-deep); color:#fff;
  }

  .price{display:flex; align-items:center; gap:5px; font-size:18px; font-weight:800; color:var(--gold-deep);}
  .price svg{width:19px; height:19px;}
  .price.price-custom{font-weight:800; color:var(--lavender-deep); font-size:13px; letter-spacing:.5px;}
  @keyframes pop{0%{transform:translate3d(0,0,0) scale(1)} 40%{transform:translate3d(0,0,0) scale(1.5)} 100%{transform:translate3d(0,0,0) scale(1)}}

  /* ---------- more / coming soon ---------- */
  .more-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
  @media(max-width:700px){.more-grid{grid-template-columns:1fr;}}
  .more-card{background:var(--surface); border-radius:24px; box-shadow:var(--shadow); padding:26px; display:flex; align-items:center; gap:16px;}
  .more-icon{width:54px; height:54px; flex:none; border-radius:18px; display:flex; align-items:center; justify-content:center; color:#fff;}
  .more-icon svg{width:28px; height:28px;}
  .more-icon.farm{background:var(--mint-deep);}
  .more-icon.me{background:var(--lavender-deep);}
  .more-text h3{font-size:15px; margin-bottom:4px;}
  .more-text p{font-size:12.5px; color:var(--ink-soft); margin:0;}

  /* ---------- weather buff card ---------- */
  .buff-card{background:var(--surface); border-radius:24px; box-shadow:var(--shadow); padding:26px; grid-column:1/-1;}
  .buff-card-head{display:flex; align-items:center; gap:14px; margin-bottom:18px;}
  .buff-card-head .more-icon.farm{background:var(--mint-deep);}
  .buff-card-head h3{font-size:16px; font-weight:900; margin:0 0 2px;}
  .buff-card-head p{font-size:12px; color:var(--ink-soft); margin:0;}
  .buff-list{display:flex; flex-direction:column; gap:8px; list-style:none; margin:0; padding:0; flex:1;}
  .buff-cols{display:flex; gap:18px;}
  @media(max-width:620px){.buff-cols{flex-direction:column; gap:8px;}}
  .buff-row{
    display:flex; align-items:center; gap:10px; padding:10px 14px;
    background:var(--cream); border-radius:14px;
  }
  .buff-emoji{font-size:18px; flex:none; width:26px; text-align:center;}
  .buff-name{flex:1; font-size:13.5px; font-weight:700; color:var(--ink); display:flex; align-items:center; gap:6px; min-width:0;}
  .buff-event{font-size:9.5px; font-weight:800; color:var(--strawberry-deep); background:rgba(242,96,126,.14); padding:2px 7px; border-radius:999px; letter-spacing:.3px; flex:none; white-space:nowrap;}
  .buff-pct{font-family:'M PLUS Rounded 1c',system-ui,sans-serif; font-weight:800; font-size:14px; flex:none;}
  .buff-row.tier-60 .buff-pct{color:var(--strawberry-deep);}
  .buff-row.tier-40 .buff-pct{color:var(--gold-deep);}
  .buff-row.tier-20 .buff-pct{color:var(--mint-deep);}
  .buff-row.tier-10 .buff-pct{color:var(--ink-soft);}
  .buff-row.tier-60{background:rgba(242,96,126,.10);}
  .buff-row.tier-40{background:rgba(224,150,30,.10);}

  /* 變異加成表：全版預設完全收起，點按鈕展開 */
  .buff-extra{ display:none; }
  .buff-cols.expanded .buff-extra{ display:flex; }
  .buff-toggle{
    display:flex; width:100%; align-items:center; justify-content:center; gap:6px;
    margin-top:14px; padding:10px; border-radius:999px;
    background:var(--cream); color:var(--ink-soft); font-size:13px; font-weight:700;
    transition:var(--ease-fast);
  }
  .buff-toggle:hover{background:var(--cream-deep); color:var(--ink);}
  .buff-toggle-icon{width:16px; height:16px; transition:transform var(--ease-fast);}
  .buff-toggle.expanded .buff-toggle-icon{transform:rotate(180deg);}
  .badge-soon{display:inline-block; margin-top:8px; font-size:10.5px; font-weight:800; letter-spacing:1px; color:var(--gold-deep); background:rgba(224,150,30,.14); padding:3px 9px; border-radius:999px;}

  /* ---------- pricing slider ---------- */
  .pricing-wrap{display:grid; grid-template-columns:1fr 1fr; gap:28px;}
  @media(max-width:700px){.pricing-wrap{grid-template-columns:1fr;}}

  .pricing-card{background:var(--surface); border-radius:28px; box-shadow:var(--shadow); overflow:hidden; transition:transform var(--ease-fast), box-shadow var(--ease-fast); padding:26px 28px 28px; will-change:transform; transform:translate3d(0,0,0);}
  .pricing-card:hover{transform:translate3d(0,-4px,0); box-shadow:var(--shadow-lift);}

  .pc-header{display:flex; align-items:center; gap:12px; margin-bottom:22px; position:relative;}
  .pc-icon{width:48px; height:48px; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:24px; flex:none;}
  .pc-icon.h{background:var(--strawberry-deep); color:#fff;}
  .pc-icon.h svg{width:26px; height:26px; stroke:#fff; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;}
  .pc-icon.s{background:var(--gold-deep); color:#fff;}
  .pc-icon.s svg{width:26px; height:26px; stroke:#fff; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;}
  .pc-title{font-size:17px; font-weight:900;}
  .pc-title.h{color:var(--strawberry-deep);}
  .pc-title.s{color:var(--gold-deep);}
  .pc-title-wrap{display:flex; flex-direction:column; gap:3px;}
  .pc-add-btn{
    margin-left:auto; flex:none;
    width:36px; height:36px; border-radius:50%;
    background:var(--surface); box-shadow:0 4px 12px rgba(91,58,74,.14);
    border:2px solid var(--cream-deep);
    display:flex; align-items:center; justify-content:center;
    transition:transform .2s cubic-bezier(.25,.46,.45,.94), background .18s ease-out, color .18s ease-out, border-color .18s ease-out;
    will-change:transform; transform:translate3d(0,0,0);
  }
  .pc-add-btn svg{width:17px; height:17px;}
  .pc-add-btn.h{color:var(--strawberry-deep);}
  .pc-add-btn.s{color:var(--gold-deep);}
  .pc-add-btn.h:hover{background:var(--strawberry); border-color:var(--strawberry); color:#fff; transform:translate3d(0,0,0) scale(1.1);}
  .pc-add-btn.s:hover{background:var(--gold); border-color:var(--gold); color:#fff; transform:translate3d(0,0,0) scale(1.1);}
  .pc-add-btn:active{transform:translate3d(0,0,0) scale(.92);}
  .pc-add-btn.added{background:var(--mint-deep); border-color:var(--mint-deep); color:#fff;}
  .pc-add-btn.added.h{background:var(--mint-deep); border-color:var(--mint-deep); color:#fff;}
  .pc-add-btn.added.s{background:var(--mint-deep); border-color:var(--mint-deep); color:#fff;}
  .pc-add-btn.bump{animation:addBump .38s cubic-bezier(.34,1.56,.64,1);}

  /* display bubble */
  .pc-display{
    border-radius:20px; padding:20px 22px; margin-bottom:22px;
    display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  }
  .pc-display.h{background:linear-gradient(135deg,rgba(255,143,168,.18),rgba(242,96,126,.10));}
  .pc-display.s{background:linear-gradient(135deg,rgba(255,214,107,.22),rgba(224,150,30,.12));}
  .pc-qty{font-family:'M PLUS Rounded 1c',system-ui,sans-serif; font-weight:800; font-size:26px; color:var(--ink);}
  .pc-price{font-family:'M PLUS Rounded 1c',system-ui,sans-serif; font-weight:900; font-size:26px;}
  .pc-price.h{color:var(--strawberry-deep);}
  .pc-price.s{color:var(--gold-deep);}

  /* badge */
  .pc-badge{font-size:11px; font-weight:800; letter-spacing:.6px; padding:3px 9px; border-radius:999px; display:inline-block; white-space:nowrap; visibility:hidden;}
  .pc-badge.h{background:rgba(242,96,126,.15); color:var(--strawberry-deep);}
  .pc-badge.s{background:rgba(224,150,30,.16); color:var(--gold-deep);}
  .pc-price-wrap{display:flex; align-items:center; gap:8px;}

  /* slider */
  .pc-slider-wrap{position:relative; padding:8px 4px 4px;}
  .pc-steps{display:flex; justify-content:space-between; margin-bottom:8px;}
  .pc-step{font-size:10px; font-weight:700; color:var(--ink-soft); opacity:.6; cursor:pointer; user-select:none; transition:var(--ease-fast);}
  .pc-step.active{opacity:1; font-size:11px;}
  .pc-step.active.h{color:var(--strawberry-deep);}
  .pc-step.active.s{color:var(--gold-deep);}

  input[type=range].pc-range{
    -webkit-appearance:none; appearance:none;
    width:100%; height:10px; border-radius:999px; outline:none; cursor:pointer;
    background:var(--cream-deep);
    box-shadow:inset 0 1px 3px rgba(91,58,74,.12);
  }
  input[type=range].pc-range.h{
    background:linear-gradient(to right, var(--strawberry) 0%, var(--strawberry) var(--pct,0%), var(--cream-deep) var(--pct,0%));
  }
  input[type=range].pc-range.s{
    background:linear-gradient(to right, var(--gold) 0%, var(--gold) var(--pct,0%), var(--cream-deep) var(--pct,0%));
  }
  /* cat face SVG thumb - pink version (heart) */
  input[type=range].pc-range::-webkit-slider-thumb{
    -webkit-appearance:none; width:38px; height:38px; border-radius:50%;
    border:3px solid #fff; box-shadow:0 3px 12px rgba(91,58,74,.32); cursor:pointer;
    transition:transform var(--ease-fast);
    background-size:cover; background-position:center; background-repeat:no-repeat;
  }
  input[type=range].pc-range::-webkit-slider-thumb:hover{transform:scale(1.1);}
  input[type=range].pc-range.h::-webkit-slider-thumb{
    background-color:var(--strawberry-deep);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='36' r='22' fill='%23FFB6C8'/%3E%3C!-- ears --%3E%3Cpolygon points='10,20 18,36 4,36' fill='%23FFB6C8'/%3E%3Cpolygon points='54,20 60,36 46,36' fill='%23FFB6C8'/%3E%3Cpolygon points='11,22 17,33 7,33' fill='%23FF8FA8'/%3E%3Cpolygon points='53,22 57,33 47,33' fill='%23FF8FA8'/%3E%3C!-- eyes --%3E%3Cellipse cx='24' cy='34' rx='3.5' ry='4' fill='%235B3A4A'/%3E%3Cellipse cx='40' cy='34' rx='3.5' ry='4' fill='%235B3A4A'/%3E%3Ccircle cx='25.5' cy='32.5' r='1.2' fill='white'/%3E%3Ccircle cx='41.5' cy='32.5' r='1.2' fill='white'/%3E%3C!-- nose --%3E%3Cellipse cx='32' cy='40' rx='2.5' ry='1.8' fill='%23F2607E'/%3E%3C!-- whiskers --%3E%3Cline x1='10' y1='40' x2='24' y2='41' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='10' y1='44' x2='24' y2='43' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='54' y1='40' x2='40' y2='41' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='54' y1='44' x2='40' y2='43' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3C!-- mouth --%3E%3Cpath d='M29 43 Q32 47 35 43' stroke='%235B3A4A' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C!-- cheeks --%3E%3Cellipse cx='18' cy='44' rx='5' ry='3' fill='%23FF8FA8' opacity='.5'/%3E%3Cellipse cx='46' cy='44' rx='5' ry='3' fill='%23FF8FA8' opacity='.5'/%3E%3C/svg%3E");
  }
  input[type=range].pc-range.s::-webkit-slider-thumb{
    background-color:var(--gold-deep);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='36' r='22' fill='%23FFE4A0'/%3E%3Cpolygon points='10,20 18,36 4,36' fill='%23FFE4A0'/%3E%3Cpolygon points='54,20 60,36 46,36' fill='%23FFE4A0'/%3E%3Cpolygon points='11,22 17,33 7,33' fill='%23FFD66B'/%3E%3Cpolygon points='53,22 57,33 47,33' fill='%23FFD66B'/%3E%3Cellipse cx='24' cy='34' rx='3.5' ry='4' fill='%235B3A4A'/%3E%3Cellipse cx='40' cy='34' rx='3.5' ry='4' fill='%235B3A4A'/%3E%3Ccircle cx='25.5' cy='32.5' r='1.2' fill='white'/%3E%3Ccircle cx='41.5' cy='32.5' r='1.2' fill='white'/%3E%3Cellipse cx='32' cy='40' rx='2.5' ry='1.8' fill='%23E0961E'/%3E%3Cline x1='10' y1='40' x2='24' y2='41' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='10' y1='44' x2='24' y2='43' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='54' y1='40' x2='40' y2='41' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='54' y1='44' x2='40' y2='43' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M29 43 Q32 47 35 43' stroke='%235B3A4A' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3Cellipse cx='18' cy='44' rx='5' ry='3' fill='%23FFD66B' opacity='.5'/%3E%3Cellipse cx='46' cy='44' rx='5' ry='3' fill='%23FFD66B' opacity='.5'/%3E%3C/svg%3E");
  }
  input[type=range].pc-range::-moz-range-thumb{
    width:38px; height:38px; border-radius:50%; border:3px solid #fff;
    box-shadow:0 3px 12px rgba(91,58,74,.32); cursor:pointer;
    transition:transform var(--ease-fast);
  }
  input[type=range].pc-range::-moz-range-thumb:hover{transform:scale(1.1);}
  input[type=range].pc-range.h::-moz-range-thumb{
    background-color:var(--strawberry-deep);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='36' r='22' fill='%23FFB6C8'/%3E%3Cpolygon points='10,20 18,36 4,36' fill='%23FFB6C8'/%3E%3Cpolygon points='54,20 60,36 46,36' fill='%23FFB6C8'/%3E%3Cpolygon points='11,22 17,33 7,33' fill='%23FF8FA8'/%3E%3Cpolygon points='53,22 57,33 47,33' fill='%23FF8FA8'/%3E%3Cellipse cx='24' cy='34' rx='3.5' ry='4' fill='%235B3A4A'/%3E%3Cellipse cx='40' cy='34' rx='3.5' ry='4' fill='%235B3A4A'/%3E%3Ccircle cx='25.5' cy='32.5' r='1.2' fill='white'/%3E%3Ccircle cx='41.5' cy='32.5' r='1.2' fill='white'/%3E%3Cellipse cx='32' cy='40' rx='2.5' ry='1.8' fill='%23F2607E'/%3E%3Cline x1='10' y1='40' x2='24' y2='41' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='10' y1='44' x2='24' y2='43' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='54' y1='40' x2='40' y2='41' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='54' y1='44' x2='40' y2='43' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M29 43 Q32 47 35 43' stroke='%235B3A4A' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3Cellipse cx='18' cy='44' rx='5' ry='3' fill='%23FF8FA8' opacity='.5'/%3E%3Cellipse cx='46' cy='44' rx='5' ry='3' fill='%23FFD66B' opacity='.5'/%3E%3C/svg%3E");
    background-size:cover;
  }
  input[type=range].pc-range.s::-moz-range-thumb{
    background-color:var(--gold-deep);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='36' r='22' fill='%23FFE4A0'/%3E%3Cpolygon points='10,20 18,36 4,36' fill='%23FFE4A0'/%3E%3Cpolygon points='54,20 60,36 46,36' fill='%23FFE4A0'/%3E%3Cpolygon points='11,22 17,33 7,33' fill='%23FFD66B'/%3E%3Cpolygon points='53,22 57,33 47,33' fill='%23FFD66B'/%3E%3Cellipse cx='24' cy='34' rx='3.5' ry='4' fill='%235B3A4A'/%3E%3Cellipse cx='40' cy='34' rx='3.5' ry='4' fill='%235B3A4A'/%3E%3Ccircle cx='25.5' cy='32.5' r='1.2' fill='white'/%3E%3Ccircle cx='41.5' cy='32.5' r='1.2' fill='white'/%3E%3Cellipse cx='32' cy='40' rx='2.5' ry='1.8' fill='%23E0961E'/%3E%3Cline x1='10' y1='40' x2='24' y2='41' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='10' y1='44' x2='24' y2='43' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='54' y1='40' x2='40' y2='41' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='54' y1='44' x2='40' y2='43' stroke='%235B3A4A' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M29 43 Q32 47 35 43' stroke='%235B3A4A' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3Cellipse cx='18' cy='44' rx='5' ry='3' fill='%23FFD66B' opacity='.5'/%3E%3Cellipse cx='46' cy='44' rx='5' ry='3' fill='%23FFD66B' opacity='.5'/%3E%3C/svg%3E");
    background-size:cover;
  }

  /* ---------- scroll to top button ---------- */
  .back-top{
    position:fixed; right:22px; bottom:30px; z-index:90;
    width:46px; height:46px; border-radius:50%;
    background:linear-gradient(135deg, var(--strawberry), var(--strawberry-deep));
    color:#fff; box-shadow:0 6px 20px rgba(242,96,126,.4);
    display:flex; align-items:center; justify-content:center;
    opacity:0; pointer-events:none;
    transform:translate3d(0,12px,0);
    transition:opacity var(--ease-base), transform var(--ease-base);
    cursor:pointer; border:none; will-change:transform, opacity;
  }
  .back-top.visible{opacity:1; pointer-events:auto; transform:translate3d(0,0,0);}
  .back-top:hover{transform:translate3d(0,-3px,0); box-shadow:0 10px 26px rgba(242,96,126,.5);}
  .back-top svg{width:20px; height:20px;}

  /* ---------- footer ---------- */
  .footer{padding:46px 0 60px; text-align:center; color:var(--ink-soft);}
  .footer svg{width:34px; height:34px; color:var(--strawberry); margin-bottom:8px;}
  .footer p{margin:2px 0; font-size:13px;}
  .footer .copyright{font-size:11px; opacity:.7;}

  /* ---------- toast ---------- */
  .toast{position:fixed; left:50%; bottom:30px; transform:translate3d(-50%, 20px, 0); background:var(--toast-bg); color:var(--toast-text); padding:12px 22px; border-radius:999px; font-size:13.5px; font-weight:700; box-shadow:var(--shadow-lift); opacity:0; pointer-events:none; transition:var(--ease-base); z-index:100; will-change:transform, opacity;}
  .toast.show{opacity:1; transform:translate3d(-50%, 0, 0);}

  @media (hover: none) {
    .crop-card:hover{transform:none; box-shadow:var(--shadow);}
    .crop-card:hover .crop-art{transform:none;}
    .pricing-card:hover{transform:none; box-shadow:var(--shadow);}
  }

  /* ---------- 社群按鈕 ---------- */
  .social-btns{display:flex; align-items:center; gap:8px;}
  .social-btn{
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    padding:8px 14px; border-radius:999px; font-size:13px; font-weight:800;
    transition:transform var(--ease-fast), box-shadow var(--ease-fast), background var(--ease-fast);
    text-decoration:none; border:none; cursor:pointer; flex:none;
  }
  .social-btn svg{width:16px; height:16px; flex:none;}
  .social-btn{ will-change:transform; transform:translate3d(0,0,0); }
  .social-btn:hover{transform:translate3d(0,-2px,0); box-shadow:0 6px 18px rgba(91,58,74,.18);}
  .social-btn:active{transform:translate3d(0,0,0) scale(.95);}
  .social-btn.line{background:#06C755; color:#fff; box-shadow:0 4px 12px rgba(6,199,85,.28);}
  .social-btn.line:hover{background:#05b34c; box-shadow:0 8px 22px rgba(6,199,85,.38);}
  .social-btn.ig{
    background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
    color:#fff; box-shadow:0 4px 12px rgba(220,39,67,.28);
  }
  .social-btn.ig:hover{box-shadow:0 8px 22px rgba(220,39,67,.4);}
  /* Topbar 版：只顯示 icon（不顯示文字），保持欄列緊湊 */
  .topbar-social .social-btn{padding:8px; border-radius:50%; width:36px; height:36px;}
  .topbar-social .social-btn .btn-label{display:none;}
  /* Footer 版：icon + 文字 */
  .footer-social{display:flex; justify-content:center; gap:12px; margin:14px 0 4px;}

  /* ---------- 進站公告彈窗 ---------- */
  .welcome-overlay{
    position:fixed; inset:0; z-index:500;
    background:rgba(91,58,74,.45); backdrop-filter:blur(4px);
    display:flex; align-items:center; justify-content:center; padding:20px;
    opacity:0; pointer-events:none;
    transition:opacity .36s cubic-bezier(.4,0,.2,1);
  }
  .welcome-overlay.open{opacity:1; pointer-events:auto;}
  .welcome-box{
    background:var(--cream); border-radius:32px; max-width:400px; width:100%;
    box-shadow:0 28px 70px rgba(91,58,74,.36);
    transform:translate3d(0,24px,0) scale(.86); opacity:0;
    transition:transform .38s cubic-bezier(.34,1.2,.64,1), opacity .28s ease-out;
    overflow:hidden; position:relative; will-change:transform, opacity;
  }
  .welcome-overlay.open .welcome-box{transform:translate3d(0,0,0) scale(1); opacity:1;}

  /* 彩色裝飾頂部 */
  .welcome-hero{
    background:linear-gradient(135deg, var(--strawberry) 0%, var(--lavender) 60%, var(--mint) 100%);
    padding:28px 24px 22px; text-align:center; position:relative; overflow:hidden;
  }
  .welcome-hero::before{
    content:''; position:absolute; inset:0;
    background:radial-gradient(circle at 70% 30%, rgba(255,255,255,.18) 0%, transparent 60%);
  }
  .welcome-mascot{font-size:52px; line-height:1; display:block; margin-bottom:8px; position:relative; z-index:1; animation:float 3.5s ease-in-out infinite;}
  .welcome-title{
    font-family:'Mochiy Pop One',system-ui,sans-serif; font-size:20px; color:#fff;
    text-shadow:0 2px 8px rgba(91,58,74,.28); margin:0; position:relative; z-index:1;
  }
  .welcome-sub{font-size:12px; color:rgba(255,255,255,.85); margin:4px 0 0; font-weight:700; position:relative; z-index:1;}

  /* 步驟說明 */
  .welcome-body{padding:20px 22px 0;}
  .welcome-steps{display:flex; flex-direction:column; gap:10px; margin:0; padding:0; list-style:none;}
  .welcome-step{
    display:flex; align-items:flex-start; gap:12px;
    background:var(--surface); border-radius:16px; padding:12px 14px;
    box-shadow:0 2px 10px rgba(91,58,74,.06);
  }
  .ws-num{
    flex:none; width:26px; height:26px; border-radius:50%;
    font-family:'M PLUS Rounded 1c',system-ui,sans-serif; font-size:12px; font-weight:800;
    color:#fff; display:flex; align-items:center; justify-content:center;
  }
  .ws-num.c1{background:var(--strawberry-deep);}
  .ws-num.c2{background:var(--gold-deep);}
  .ws-num.c3{background:var(--lavender-deep);}
  .ws-num.c4{background:var(--mint-deep);}
  .ws-text{flex:1; min-width:0;}
  .ws-text strong{display:block; font-size:13.5px; font-weight:800; color:var(--ink); margin-bottom:2px;}
  .ws-text span{font-size:12px; color:var(--ink-soft); line-height:1.5;}

  /* 底部按鈕 */
  .welcome-foot{padding:18px 22px 22px;}
  .welcome-ok-btn{
    width:100%; padding:14px; border-radius:999px;
    background:linear-gradient(135deg, var(--strawberry), var(--strawberry-deep));
    color:#fff; font-size:15px; font-weight:900;
    box-shadow:0 8px 22px rgba(242,96,126,.38);
    transition:transform var(--ease-fast), box-shadow var(--ease-fast);
    display:flex; align-items:center; justify-content:center; gap:8px;
  }
  .welcome-ok-btn{ will-change:transform; transform:translate3d(0,0,0); }
  .welcome-ok-btn:hover{transform:translate3d(0,-2px,0); box-shadow:0 12px 28px rgba(242,96,126,.46);}
  .welcome-ok-btn:active{transform:translate3d(0,0,0) scale(.97);}
  .welcome-dont-show{
    display:block; text-align:center; margin-top:10px;
    font-size:11.5px; color:var(--ink-soft); cursor:pointer;
    transition:color var(--ease-fast);
  }
  .welcome-dont-show:hover{color:var(--ink);}
  .welcome-dont-show input{margin-right:5px; cursor:pointer; accent-color:var(--ink-soft);}

  /* ---------- mobile: 2-column crop grid ---------- */
  @media (max-width:600px){
    .card-grid#cardGrid{ grid-template-columns:1fr 1fr; gap:10px; }
    .card-illus{ height:88px; }
    .illus-blob{ width:80px; height:80px; }
    .crop-art{ width:80px; height:80px; }
    .card-top{ padding:10px 12px 0; padding-right:44px; }
    .card-body{ padding:10px 12px 12px; }
    .crop-name{ font-size:13px; margin-bottom:2px; }
    .crop-desc{ font-size:11px; min-height:0; margin-bottom:8px; }
    .price{ font-size:16px; }
    .var-icon{ width:120px; height:40px; }
    .card-row{ margin-bottom:6px; }
    /* 手機版：+ 按鈕和 icon 放大，易於點擊 */
    .card-add-btn{ width:38px; height:38px; top:8px; right:8px; }
    .card-add-btn svg{ width:20px; height:20px; }
  }

  /* ---------- universal pagination (desktop 8/page, mobile 4/page) ---------- */
  .crop-card.hidden-pg{ display:none !important; }
  /* 補滿最後一列用的隱形佔位格：不顯示也不可互動，純粹讓 grid 維持滿版列數，
     這樣分頁列的位置就不會因為最後一頁卡片數較少而往上跑 */
  .pg-filler{ visibility:hidden; pointer-events:none; }

  .crop-pagination{
    display:flex; align-items:center; justify-content:center; gap:14px;
    margin-top:28px; min-height:52px;
    /* 永遠佔位，用 visibility 控制顯隱，避免只有一頁時卡片跑位 */
    visibility:visible;
  }
  .pg-btn{
    width:40px; height:40px; border-radius:50%;
    background:var(--surface); border:2px solid var(--cream-deep);
    box-shadow:var(--shadow); cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    color:var(--ink); transition:var(--ease-fast); font-family:inherit;
  }
  .pg-btn:hover:not(:disabled){ border-color:var(--strawberry); color:var(--strawberry-deep); }
  .pg-btn:disabled{ opacity:.3; cursor:default; }
  .pg-btn svg{ width:18px; height:18px; }
  .pg-dots{ display:flex; gap:6px; align-items:center; }
  .pg-dot{
    width:8px; height:8px; border-radius:50%;
    background:var(--cream-deep); transition:var(--ease-fast); cursor:pointer;
    border:none; padding:0;
  }
  .pg-dot.active{ background:var(--strawberry-deep); width:20px; border-radius:999px; }

  /* ================= cart bubble + panel ================= */
  .cart-bubble{
    position:fixed; right:22px; bottom:96px; z-index:95;
    width:56px; height:56px; border-radius:50%;
    background:linear-gradient(135deg, var(--mint), var(--mint-deep));
    color:#fff; box-shadow:0 8px 24px rgba(79,168,119,.4);
    display:flex; align-items:center; justify-content:center;
    border:none; cursor:grab; touch-action:none;
    opacity:0; pointer-events:none;
    /* 拖曳位移完全交給 --drag-y 這個變數透過 transform 處理（GPU 合成層，不觸發 layout），
       不直接改寫 top/bottom，避免拖曳時逐幀重排造成卡頓。 */
    --drag-y:0px;
    transform:translate3d(0,calc(16px + var(--drag-y)),0) scale(.7);
    transition:opacity .3s ease-out, transform .3s cubic-bezier(.25,.46,.45,.94), box-shadow .2s ease;
    user-select:none;
    will-change:transform, opacity;
  }
  .cart-bubble.visible{ opacity:1; transform:translate3d(0,var(--drag-y),0) scale(1); pointer-events:auto; }
  .cart-bubble.dragging{
    cursor:grabbing; box-shadow:0 14px 36px rgba(79,168,119,.55);
    transform:translate3d(0,var(--drag-y),0) scale(1.08);
    transition:box-shadow var(--ease-fast); /* 拖曳中位移要跟手即時，transform 不上 transition，避免延遲感 */
  }
  .cart-bubble:not(.dragging):hover{ box-shadow:0 10px 28px rgba(79,168,119,.55); }
  .cart-bubble:active:not(.dragging){ transform:translate3d(0,var(--drag-y),0) scale(.93); }
  .cart-bubble svg{ width:24px; height:24px; }
  .cart-bubble-count{
    position:absolute; top:-4px; right:-4px;
    min-width:22px; height:22px; padding:0 5px; border-radius:999px;
    background:var(--strawberry-deep); color:#fff;
    font-family:'M PLUS Rounded 1c', system-ui, sans-serif; font-size:11.5px; font-weight:800;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 2px 6px rgba(91,58,74,.3);
    transform:scale(1); transition:transform .2s cubic-bezier(.25,.46,.45,.94);
  }
  .cart-bubble-count.bump{ animation:cartCountBump .4s cubic-bezier(.34,1.56,.64,1); }
  @keyframes cartCountBump{0%{transform:translate3d(0,0,0) scale(1)}40%{transform:translate3d(0,0,0) scale(1.2)}100%{transform:translate3d(0,0,0) scale(1)}}
  /* cart-bubble 固定在 back-top 上方，不需動態位移 */

  .cart-overlay{
    position:fixed; inset:0; z-index:200;
    background:rgba(91,58,74,.32); backdrop-filter:blur(2px);
    opacity:0; pointer-events:none;
    transition:opacity .32s cubic-bezier(.4,0,.2,1);
  }
  .cart-overlay.open{ opacity:1; pointer-events:auto; }

  .cart-panel{
    position:fixed; top:0; right:0; height:100%; z-index:201;
    width:min(420px, 100vw);
    background:var(--cream);
    box-shadow:-12px 0 40px rgba(91,58,74,.22);
    display:flex; flex-direction:column;
    transform:translate3d(100%,0,0);
    transition:transform .38s cubic-bezier(.32,.72,0,1);
    will-change:transform;
  }
  .cart-overlay.open .cart-panel{ transform:translate3d(0,0,0); }

  .cart-head{
    flex:none; display:flex; align-items:center; gap:12px;
    padding:20px 22px; border-bottom:1px solid var(--cream-deep);
    background:var(--surface);
  }
  .cart-head-icon{
    width:38px; height:38px; border-radius:13px; flex:none;
    background:linear-gradient(135deg, var(--mint), var(--mint-deep));
    color:#fff; display:flex; align-items:center; justify-content:center;
  }
  .cart-head-icon svg{ width:19px; height:19px; }
  .cart-head h3{ font-size:16px; font-weight:900; margin:0; }
  .cart-head p{ font-size:11.5px; color:var(--ink-soft); margin:1px 0 0; }
  .cart-close{
    margin-left:auto; width:34px; height:34px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:var(--cream); color:var(--ink-soft); transition:var(--ease-fast); flex:none;
  }
  .cart-close svg{ width:15px; height:15px; }
  .cart-close{ will-change:transform; }
  .cart-close:hover{ background:var(--strawberry); color:#fff; transform:rotate(90deg); }

  .cart-body{ flex:1; overflow-y:auto; padding:18px 18px 6px; -webkit-overflow-scrolling:touch; }
  .cart-empty{
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center; gap:8px; padding:60px 20px; color:var(--ink-soft);
  }
  .cart-empty svg{ width:46px; height:46px; opacity:.35; margin-bottom:4px; }
  .cart-empty p{ margin:0; font-size:13.5px; }
  .cart-empty .cart-empty-sub{ font-size:11.5px; opacity:.75; }

  .cart-item{
    display:flex; gap:12px; align-items:center;
    background:var(--surface); border-radius:18px; padding:12px;
    box-shadow:var(--shadow); margin-bottom:12px;
    opacity:0; transform:translate3d(0,8px,0) scale(.97);
    animation:cartItemIn .28s cubic-bezier(.25,.46,.45,.94) forwards; will-change:transform,opacity;
  }
  @keyframes cartItemIn{ from{ opacity:0; transform:translate3d(0,6px,0); } to{ opacity:1; transform:translate3d(0,0,0); } }
  .cart-item-thumb{
    width:54px; height:54px; border-radius:14px; flex:none;
    display:flex; align-items:center; justify-content:center; font-size:24px;
    background:var(--cream);
  }
  .cart-item-thumb img{ width:100%; height:100%; object-fit:cover; border-radius:14px; }
  .cart-thumb-icon{ width:100%; height:100%; border-radius:14px; display:flex; align-items:center; justify-content:center; }
  .cart-thumb-icon svg{ width:26px; height:26px; }
  .cart-item-info{ flex:1; min-width:0; }
  .cart-item-name{
    font-size:13.5px; font-weight:800; margin:0 0 2px;
    display:flex; align-items:baseline; gap:6px;
  }
  .cart-item-name-text{
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0;
  }
  .cart-item-meta{ font-size:10.5px; color:var(--ink-soft); margin:0 0 6px; display:flex; align-items:center; gap:5px; }
  .cart-item-id{
    flex:none; font-family:'M PLUS Rounded 1c',system-ui,sans-serif;
    font-size:11px; font-weight:700; color:var(--ink-soft); opacity:.75;
  }
  .cart-item-variants{ display:inline-flex; align-items:center; gap:3px; }
  .cart-item-variant-icon{ width:150px; height:40px; object-fit:contain; vertical-align:middle; }
  .cart-item-bottom{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .cart-qty{ display:flex; align-items:center; gap:0; background:var(--cream); border-radius:999px; padding:3px; }
  .cart-qty button{
    width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    color:var(--ink-soft); transition:var(--ease-fast); flex:none;
  }
  .cart-qty button:hover{ background:var(--surface); color:var(--strawberry-deep); }
  .cart-qty button svg{ width:14px; height:14px; }
  .cart-qty button.at-min{ opacity:.35; cursor:not-allowed; }
  .cart-qty button.at-min:hover{ background:none; color:var(--ink-soft); }
  .cart-qty button.shake{ animation:qtyShake .35s ease; }
  @keyframes qtyShake{
    0%, 100%{ transform:translate3d(0,0,0); }
    25%{ transform:translate3d(-3px,0,0); }
    75%{ transform:translate3d(3px,0,0); }
  }
  .cart-qty span{ width:28px; text-align:center; font-size:13px; font-weight:800; font-family:'M PLUS Rounded 1c',system-ui,sans-serif; }
  .cart-item-price{ font-size:13px; font-weight:800; color:var(--gold-deep); font-family:'M PLUS Rounded 1c',system-ui,sans-serif; flex:none; }
  .cart-item-del{
    width:32px; height:32px; border-radius:50%; flex:none;
    display:flex; align-items:center; justify-content:center;
    color:var(--ink-soft); transition:var(--ease-fast);
  }
  .cart-item-del svg{ width:15px; height:15px; }
  .cart-item-del:hover{ background:rgba(242,96,126,.14); color:var(--strawberry-deep); }
  .cart-item.removing{
    animation:cartItemFade .2s ease-out forwards, cartItemShrink .3s .16s ease-in-out forwards;
  }
  @keyframes cartItemFade{
    to{ opacity:0; transform:translate3d(28px,0,0) scale(.97); }
  }
  @keyframes cartItemShrink{
    from{ max-height:120px; margin-bottom:12px; padding-top:12px; padding-bottom:12px; }
    to  { max-height:0;     margin-bottom:0;   padding-top:0;    padding-bottom:0;    }
  }

  .cart-promo{
    margin:6px 0 16px; padding:14px; border-radius:16px;
    background:var(--surface); box-shadow:var(--shadow);
  }
  .cart-promo-label{ display:flex; align-items:center; gap:6px; font-size:11.5px; font-weight:800; color:var(--ink-soft); margin-bottom:8px; }
  .cart-promo-label svg{ width:13px; height:13px; color:var(--gold-deep); }
  .cart-promo-row{ display:flex; gap:8px; }
  .cart-promo-row input{
    flex:1; min-width:0; border:2px solid var(--cream-deep); border-radius:999px;
    padding:9px 14px; font-size:12.5px; font-family:inherit; color:var(--ink);
    background:var(--cream); transition:border-color var(--ease-fast); outline:none;
  }
  .cart-promo-row input:focus{ border-color:var(--lavender-deep); }
  .cart-promo-row button{
    flex:none; padding:9px 16px; border-radius:999px; font-size:12.5px; font-weight:800;
    background:var(--promo-btn-bg); color:var(--promo-btn-text);
    transition:background var(--ease-fast), color var(--ease-fast), transform var(--ease-fast);
  }
  .cart-promo-row button:hover{ background:var(--lavender-deep); color:#fff; }
  .cart-promo-row button:active{ transform:scale(.96); }
  .cart-promo-msg{ font-size:11px; margin:8px 2px 0; font-weight:700; min-height:14px; }
  .cart-promo-msg.ok{ color:var(--mint-deep); }
  .cart-promo-msg.err{ color:var(--strawberry-deep); }
  .cart-promo-applied{
    display:flex; align-items:center; justify-content:space-between;
    margin-top:8px; padding:7px 12px; border-radius:999px;
    background:rgba(159,224,184,.22); color:var(--mint-deep); font-size:11.5px; font-weight:800;
  }
  .cart-promo-applied button{ color:var(--mint-deep); display:flex; align-items:center; }
  .cart-promo-applied button svg{ width:12px; height:12px; }

  .cart-foot{
    flex:none; padding:16px 18px 20px; background:var(--surface);
    border-top:1px solid var(--cream-deep);
    box-shadow:0 -8px 20px rgba(91,58,74,.05);
  }
  .cart-sumrow{ display:flex; align-items:center; justify-content:space-between; font-size:12.5px; color:var(--ink-soft); margin-bottom:5px; }
  .cart-sumrow.discount{ color:var(--strawberry-deep); }
  .cart-sumrow.total{ font-size:16px; font-weight:900; color:var(--ink); margin-top:8px; padding-top:10px; border-top:1px dashed var(--cream-deep); }
  .cart-sumrow.total .num{ color:var(--gold-deep); font-size:19px; }
  .cart-generate-btn{
    width:100%; margin-top:14px; padding:14px; border-radius:999px;
    background:linear-gradient(135deg, var(--strawberry), var(--strawberry-deep));
    color:#fff; font-size:14.5px; font-weight:800; display:flex; align-items:center; justify-content:center; gap:8px;
    box-shadow:0 8px 20px rgba(242,96,126,.32); transition:transform var(--ease-fast), box-shadow var(--ease-fast);
  }
  .cart-generate-btn svg{ width:17px; height:17px; }
  .cart-generate-btn{ will-change:transform; transform:translate3d(0,0,0); }
  .cart-generate-btn:hover{ transform:translate3d(0,-2px,0); box-shadow:0 10px 24px rgba(242,96,126,.4); }
  .cart-generate-btn:active{ transform:translate3d(0,0,0) scale(.97); }
  .cart-generate-btn:disabled{ opacity:.4; pointer-events:none; box-shadow:none; }

  @media (max-width:600px){
    .cart-panel{ width:100vw; }
    .cart-bubble{ right:16px; bottom:80px; width:52px; height:52px; }
    .back-top{ right:16px; }

    /* 刪除按鈕在手機上太小容易點不準，放大到符合觸控熱區建議的 44px */
    .cart-item-del{ width:44px; height:44px; margin:-6px -4px -6px 0; }
    .cart-item-del svg{ width:19px; height:19px; }
  }

  /* ================= 飛行加入動畫 ================= */
  /* 實際飛行效果由 JS 逐幀直接設定 transform/opacity（見 flyToBubble 函式），
     不透過 CSS animation，所以這裡只需要基礎樣式，不需要 keyframes。 */
  .fly-img{
    position:fixed; z-index:9999; border-radius:50%;
    width:52px; height:52px; object-fit:cover;
    box-shadow:0 6px 20px rgba(91,58,74,.3);
    pointer-events:none;
    transition:none;
  }

  /* ================= generic modal (detail / generated list) ================= */
  .modal-overlay{
    position:fixed; inset:0; z-index:300;
    background:rgba(91,58,74,.4); backdrop-filter:blur(3px);
    display:flex; align-items:center; justify-content:center; padding:20px;
    opacity:0; pointer-events:none;
    transition:opacity .28s cubic-bezier(.4,0,.2,1);
  }
  .modal-overlay.open{ opacity:1; pointer-events:auto; }
  .modal-box{
    background:var(--cream); border-radius:28px; max-width:420px; width:100%;
    max-height:85vh; overflow-y:auto;
    box-shadow:0 24px 60px rgba(91,58,74,.32);
    transform:translate3d(0,18px,0) scale(.88); opacity:0;
    transition:transform .3s cubic-bezier(.25,.46,.45,.94), opacity .24s ease-out;
    will-change:transform, opacity;
  }
  .modal-overlay.open .modal-box{ transform:translate3d(0,0,0) scale(1); opacity:1; }
  .modal-close{
    position:absolute; top:14px; right:14px; z-index:5;
    width:34px; height:34px; border-radius:50%;
    background:rgba(255,255,255,.85); color:var(--ink); box-shadow:0 4px 12px rgba(91,58,74,.18);
    display:flex; align-items:center; justify-content:center; transition:var(--ease-fast);
  }
  .modal-close svg{ width:15px; height:15px; }
  .modal-close{ will-change:transform; }
  .modal-close:hover{ background:var(--strawberry); color:#fff; transform:rotate(90deg); }

  /* detail modal specific */
  .detail-modal{ position:relative; padding-bottom:24px; }
  .detail-img-wrap{
    position:relative; height:430px; border-radius:28px 28px 0 0; overflow:hidden;
    background:linear-gradient(135deg, var(--cream-deep), var(--cream));
    display:flex; align-items:center; justify-content:center;
  }
  .detail-img-wrap img{ width:100%; height:100%; object-fit:cover; }
  .detail-tag-row{ display:flex; align-items:center; gap:8px; padding:18px 22px 0; }
  .detail-body{ padding:10px 22px 0; }
  .detail-name-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin:6px 0 8px; }
  .detail-name{ font-size:19px; font-weight:900; margin:0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .detail-share-btn{
    flex:none; width:34px; height:34px; border-radius:50%;
    background:var(--cream-deep); color:var(--ink-soft);
    display:flex; align-items:center; justify-content:center;
    transition:background var(--ease-fast), color var(--ease-fast), transform var(--ease-fast);
  }
  .detail-share-btn svg{ width:16px; height:16px; }
  .detail-share-btn:hover{ background:var(--lavender-deep); color:#fff; }
  .detail-share-btn{ will-change:transform; transform:translate3d(0,0,0); }
  .detail-share-btn:active{ transform:translate3d(0,0,0) scale(.92); }
  .detail-share-btn.copied{ background:var(--mint-deep); color:#fff; }
  .detail-desc{ font-size:13px; color:var(--ink-soft); line-height:1.6; margin:0 0 18px; }
  .detail-price-row{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; background:var(--surface); border-radius:18px; box-shadow:var(--shadow); margin-bottom:6px; }
  .detail-price{ font-size:20px; font-weight:900; color:var(--gold-deep); display:flex; align-items:center; gap:5px; }
  .detail-price svg{ width:18px; height:18px; }
  .detail-add-btn{
    padding:11px 20px; border-radius:999px; background:var(--strawberry-deep); color:#fff;
    font-size:13px; font-weight:800; display:flex; align-items:center; gap:6px; transition:var(--ease-fast);
  }
  .detail-add-btn svg{ width:14px; height:14px; }
  .detail-add-btn{ will-change:transform; transform:translate3d(0,0,0); }
  .detail-add-btn:hover{ background:var(--strawberry); transform:translate3d(0,-1px,0); }
  .detail-add-btn.added{ background:var(--mint-deep); }

  /* generated summary modal */
  .summary-modal{ position:relative; padding-top:48px; }
  .summary-modal .modal-close{ top:10px; right:10px; }
  .summary-head{
    padding:30px 26px 18px; text-align:center;
    background:linear-gradient(160deg, rgba(255,143,168,.18), rgba(195,178,232,.16));
    border-radius:28px 28px 0 0;
  }
  .summary-head .summary-icon{
    width:56px; height:56px; margin:0 auto 10px; border-radius:50%;
    background:var(--surface); box-shadow:var(--shadow);
    display:flex; align-items:center; justify-content:center; color:var(--strawberry-deep);
    animation:summaryPop .45s cubic-bezier(.34,1.56,.64,1);
  }
  @keyframes summaryPop{0%{transform:translate3d(0,0,0) scale(.3) rotate(-20deg); opacity:0}100%{transform:translate3d(0,0,0) scale(1) rotate(0deg); opacity:1}}
  .summary-head .summary-icon svg{ width:28px; height:28px; }
  .summary-head h3{ font-size:18px; font-weight:900; margin:0 0 4px; }
  .summary-head p{ font-size:12px; color:var(--ink-soft); margin:0; }
  .summary-list{ padding:24px 22px 4px; display:flex; flex-direction:column; gap:10px; }
  .summary-row{
    display:flex; align-items:center; gap:12px; padding:10px 12px;
    background:var(--surface); border-radius:16px; box-shadow:var(--shadow);
    opacity:0; transform:translate3d(-10px,0,0);
    animation:summaryRowIn .32s cubic-bezier(.25,.46,.45,.94) forwards; will-change:transform,opacity;
  }
  @keyframes summaryRowIn{ to{ opacity:1; transform:translate3d(0,0,0); } }
  .summary-row-thumb{ width:40px; height:40px; border-radius:12px; flex:none; background:var(--cream); display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .summary-row-thumb img{ width:100%; height:100%; object-fit:cover; }
  .summary-row-name{ flex:1; min-width:0; font-size:13px; font-weight:700; }
  .summary-row-name .sub{ display:block; font-size:10.5px; color:var(--ink-soft); font-weight:600; margin-top:1px; }
  .summary-row-qty{ font-size:11.5px; color:var(--ink-soft); font-weight:700; flex:none; }
  .summary-row-price{ font-size:13px; font-weight:800; color:var(--gold-deep); flex:none; font-family:'M PLUS Rounded 1c',system-ui,sans-serif; }
  .summary-row-meta{ display:block; margin-top:3px; }
  .summary-row-variants{ display:inline-flex; align-items:center; gap:3px; }
  .summary-row-variant-icon{ width:120px; height:22px; object-fit:contain; vertical-align:middle; }
  .summary-divider{ height:1px; background:repeating-linear-gradient(to right, var(--cream-deep) 0 6px, transparent 6px 12px); margin:14px 22px 0; }
  .summary-totals{ padding:14px 22px 26px; }
  .summary-trow{ display:flex; align-items:center; justify-content:space-between; font-size:12.5px; color:var(--ink-soft); padding:4px 0; }
  .summary-trow.discount{ color:var(--strawberry-deep); }
  .summary-trow.grand{ font-size:17px; font-weight:900; color:var(--ink); padding-top:12px; margin-top:6px; border-top:1.5px dashed var(--cream-deep); }
  .summary-trow.grand .num{ color:var(--gold-deep); font-size:21px; }
  .summary-foot-note{ text-align:center; font-size:11px; color:var(--ink-soft); opacity:.75; padding:0 22px 22px; margin:0; }

  /* ---------- 規格未選擇提示彈窗 ---------- */
  .notice-modal{
    position:relative; text-align:center; padding:40px 28px 28px;
    max-width:340px;
  }
  .notice-icon{
    width:56px; height:56px; margin:0 auto 14px; border-radius:50%;
    background:rgba(224,150,30,.14); color:var(--gold-deep);
    display:flex; align-items:center; justify-content:center;
    animation:summaryPop .45s cubic-bezier(.34,1.56,.64,1);
  }
  .notice-icon svg{ width:28px; height:28px; }
  .notice-title{ font-size:17px; font-weight:900; margin:0 0 8px; }
  .notice-desc{ font-size:13px; color:var(--ink-soft); line-height:1.6; margin:0 0 22px; }
  .notice-ok-btn{
    width:100%; padding:12px; border-radius:999px;
    background:linear-gradient(135deg, var(--strawberry), var(--strawberry-deep));
    color:#fff; font-size:14px; font-weight:800;
    box-shadow:0 8px 20px rgba(242,96,126,.32);
    transition:transform var(--ease-fast), box-shadow var(--ease-fast);
  }
  .notice-ok-btn{ will-change:transform; transform:translate3d(0,0,0); }
  .notice-ok-btn:hover{ transform:translate3d(0,-2px,0); box-shadow:0 10px 24px rgba(242,96,126,.4); }
  .notice-ok-btn:active{ transform:translate3d(0,0,0) scale(.97); }

  @media (prefers-reduced-motion: reduce){
    *{animation:none !important; transition:none !important;}
  }
  /* 手機關掉 hover，減少不必要的 GPU 層 */
  @media(max-width:860px){
    .crop-card:hover{transform:none !important; box-shadow:var(--shadow) !important;}
    .crop-card:hover .crop-art{transform:none !important;}
  }
  @media(max-width:600px){
    .seed-qty-btn{ padding:12px 0; font-size:13px; }
  }