/* Shared public storefront language. Kept separate from transaction behavior. */
:root  {
  --pine:#263b2c;
  --jade:#263b2c;
  --ink:#20291f;
  --paper:#fff;
  --cream:#f1f2e9;
  --mist:#f1f2e9;
  --line:#d7e1d9;
  --gold:#776127;
  --display:"Microsoft JhengHei","Noto Sans TC",system-ui,sans-serif;
  --body:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif
}

body  {
  background:var(--paper);
  font-size:16px;
  line-height:1.8
}

h1,h2,h3  {
  overflow-wrap:anywhere
}

h1,h2  {
  font-weight:500;
  letter-spacing:.015em
}

h3  {
  font-family:var(--body)
}

.page-width,.site-header,.site-footer  {
  width:min(1320px,calc(100% - 96px))
}

.site-header  {
  min-height:100px;
  border:0;
  gap:32px;
  padding-block:18px
}

.site-header .brand-art  {
  width:190px
}

.site-header nav  {
  gap:28px;
  font-size:.875rem
}

.site-header nav a  {
  min-height:44px;
  display:inline-flex;
  align-items:center
}

.site-header .cart-link  {
  border:1px solid var(--line);
  border-radius:40px;
  padding:8px 16px
}

.cart-link span  {
  background:var(--pine);
  color:white
}

:is(.button,.button-outline)  {
  border-radius:4px;
  min-height:52px;
  letter-spacing:.02em;
  font-weight:500;
  box-shadow:none
}

.button:hover:not(:disabled)  {
  transform:none;
  background:#172f27
}

.button-outline:hover  {
  background:var(--cream)
}

:is(a,button,input,select,summary):focus-visible  {
  outline:3px solid #9a7021;
  outline-offset:5px
}

a,button,summary  {
  touch-action:manipulation
}

.text-link  {
  display:inline-block;
  min-height:44px;
  padding-block:10px;
  font-weight:500;
  text-decoration-thickness:1px
}

.dispatch-label  {
  font-family:var(--body);
  letter-spacing:.04em;
  font-weight:500;
  font-size:.8rem
}

.price  {
  font-variant-numeric:tabular-nums
}

.site-footer  {
  border-top:1px solid var(--line);
  padding-block:56px 36px;
  margin-top:30px;
  gap:24px
}

.site-footer .brand-art  {
  width:200px
}

.site-footer .line-support  {
  max-width:36em
}

.site-footer a  {
  min-height:32px
}

.site-footer small  {
  letter-spacing:.04em
}

.product-detail  {
  padding-top:30px;
  padding-bottom:70px
}

.product-detail>nav  {
  font-size:.8rem;
  color:#56675e
}

.product-detail .back-link  {
  margin:10px 0 32px
}

.detail-grid  {
  gap:clamp(28px,5vw,80px);
  align-items:start
}

.detail-grid>section  {
  padding-top:8px
}

.detail-grid h1  {
  font-size:clamp(2.5rem,4vw,4rem);
  line-height:1.25
}

.product-photo-detail,.detail-visual  {
  border-radius:6px;
  background:var(--cream);
  overflow:hidden
}

.product-photo-detail img  {
  display:block;
  width:100%;
  height:auto
}

.detail-visual  {
  min-height:520px
}

.detail-spec  {
  color:#56675e
}

.detail-description  {
  line-height:1.95
}

.detail-price  {
  font-size:2rem;
  font-weight:500
}

.detail-weight  {
  font-size:.875rem;
  padding:22px 0;
  border-top:1px solid var(--line);
  margin-top:24px
}

.fresh-produce-notice  {
  border-radius:4px;
  background:var(--cream);
  border-left:3px solid #778e6b;
  box-shadow:none
}

.detail-buy  {
  padding-block:18px
}

.detail-delivery  {
  padding-block:28px;
  border-top:1px solid var(--line)
}

.detail-delivery h2  {
  font:500 1.25rem var(--body)
}

.detail-delivery p  {
  font-size:.95rem;
  line-height:1.9
}

.stock-note  {
  font-weight:500
}

.detail-grid .stock-note:not(:has(+*))  {
  margin-bottom:20px
}

.cart-page  {
  padding-top:50px
}

.cart-page h1  {
  font-size:clamp(2.3rem,4vw,4rem)
}

.cart-line,.order-summary,.checkout-details  {
  border-radius:6px;
  box-shadow:none
}

.order-summary  {
  background:var(--cream);
  border:0
}

.checkout-details  {
  border-color:var(--line)
}

.checkout-form input,.checkout-form select  {
  border-radius:4px;
  min-height:50px
}

.empty-state  {
  border-radius:6px;
  background:var(--cream);
  padding:70px 28px
}

.policy-page  {
  max-width:940px;
  padding-block:42px 80px
}

.policy-page h1  {
  font-size:clamp(2.6rem,5vw,4.5rem)
}

.policy-content  {
  line-height:2
}

.policy-content p  {
  max-width:42em
}

.policy-content section  {
  padding-block:26px
}

.policy-content h2  {
  font-size:clamp(1.55rem,2.5vw,2.15rem);
  margin-bottom:22px
}

.policy-content h3  {
  font-size:1.05rem;
  margin-top:26px
}

.fruit-guide  {
  max-width:1320px
}

.guide-heading  {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8%;
  padding-block:48px 54px;
  border-bottom:1px solid var(--line)
}

.guide-heading h1  {
  margin:0;
  font-size:clamp(3rem,5.8vw,5.75rem)
}

.guide-heading p  {
  max-width:34em;
  margin-bottom:0
}

.guide-heading .dispatch-label  {
  margin-bottom:18px
}

.guide-layout  {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:8%;
  align-items:start
}

.guide-index  {
  position:sticky;
  top:30px;
  display:grid;
  padding-block:40px;
  gap:6px
}

.guide-index a  {
  font-size:.9rem;
  padding:10px 0;
  text-decoration:none
}

.guide-index a:hover  {
  text-decoration:underline
}

.guide-index span  {
  font-size:.75rem;
  color:#56675e;
  margin-bottom:10px
}

.guide-layout .policy-content  {
  margin:0
}

.guide-products  {
  background:var(--cream);
  padding:36px;
  margin-block:32px;
  border-radius:6px
}

.guide-products h2  {
  font-size:1.7rem
}

.guide-products li  {
  padding:12px 0
}

.guide-content  {
  min-width:0
}

@media(min-width:1000px)  {
  .product-photo-detail  {
    position:sticky;
    top:30px
  }

}

@media(max-width:900px)  {
  .page-width,.site-header,.site-footer  {
    width:calc(100% - 48px)
  }

  .site-header nav  {
    gap:16px
  }

  .guide-layout  {
    grid-template-columns:160px minmax(0,1fr);
    gap:5%
  }

}

@media(max-width:700px)  {
  .page-width,.site-header,.site-footer  {
    width:calc(100% - 40px)
  }

  .site-header  {
    min-height:0;
    flex-direction:column;
    gap:8px;
    padding:14px 0
  }

  .site-header .brand-art  {
    width:150px
  }

  .site-header nav  {
    width:100%;
    justify-content:space-between;
    gap:8px;
    font-size:.75rem
  }

  .site-header .cart-link  {
    padding:5px 10px;
    gap:5px
  }

  .cart-link span  {
    width:20px;
    height:20px
  }

  .site-footer  {
    padding-top:36px
  }

  .detail-grid  {
    gap:32px
  }

  .detail-visual  {
    min-height:320px
  }

  .product-detail .back-link  {
    margin-bottom:20px
  }

  .detail-grid h1  {
    font-size:2.4rem
  }

  .cart-page  {
    padding-top:30px
  }

  .guide-heading  {
    grid-template-columns:1fr;
    gap:24px;
    padding-block:30px
  }

  .guide-heading h1  {
    font-size:3.4rem
  }

  .guide-layout  {
    display:block
  }

  .guide-index  {
    position:static;
    display:flex;
    flex-wrap:wrap;
    gap:6px 22px;
    padding:20px 0;
    border-bottom:1px solid var(--line)
  }

  .guide-index span  {
    width:100%;
    margin:0
  }

  .guide-index a  {
    font-size:.8rem;
    min-height:44px
  }

  .policy-content section  {
    padding-block:24px
  }

  .guide-products  {
    padding:24px
  }

  .guide-products ul  {
    padding-left:20px
  }

  .fruit-guide  {
    padding-top:24px
  }

}

@media(prefers-reduced-motion:reduce)  {
  html  {
    scroll-behavior:auto
  }

  *,*::before,*::after  {
    animation:none!important;
    transition:none!important
  }

}

.product-photo-detail img  {
  object-fit:contain
}

.detail-visual .dispatch-label  {
  align-self:center;
  text-align:center
}

.detail-visual  {
  padding-top:36px
}

.detail-delivery  {
  margin-top:0
}

/* Compact editorial rhythm across public pages. */
.site-footer  {
  margin-top:12px;
  padding-block:32px 24px;
}

.product-detail  {
  padding-top:20px;
  padding-bottom:40px;
}

.detail-grid h1  {
  font-weight:750;
  letter-spacing:-.035em;
}

.detail-delivery  {
  padding-block:20px;
}

.policy-page  {
  padding-block:28px 48px;
}

.guide-heading  {
  padding-block:28px 36px;
}

.guide-heading h1  {
  font-weight:750;
  letter-spacing:-.05em;
}

.policy-content section  {
  padding-block:20px;
}

.guide-products  {
  margin-block:20px;
  padding:28px;
  border-radius:0;
}

@media(max-width:700px)  {
  .guide-heading h1  {
    font-size:2.8rem;
  }

  .guide-products  {
    padding:22px;
  }

  .site-footer  {
    padding-top:26px;
  }

}

/* Public storefront consistency: shared brand chrome and clear commerce hierarchy. */
.site-header { width:100%; max-width:none; padding:12px max(32px,4.2%); min-height:84px; background:#1d281f; color:#fff; }
.site-header .brand-art { width:174px; mix-blend-mode:normal; }
.site-header .brand-logo { filter:none; }
.site-header .cart-link { background:transparent; border-color:#687063; color:#fff; }
.site-header .cart-link span { background:#e6ce83; color:#20291f; }
.cart-page h1,.policy-page h1,.fruit-guide h2 { font-weight:750; letter-spacing:-.035em; }
.cart-page { padding-block:36px 56px; }
.cart-page .empty-state { padding:40px 24px; border-radius:0; background:#f6f6f0; }
.cart-page .empty-state h2 { font-weight:700; font-size:clamp(1.5rem,3vw,2.3rem); }
.cart-page .mini-pear { background:#b99b50; }
.cart-line { border-radius:0; border:0; border-top:1px solid #d7e1d9; padding-block:24px; }
.order-summary { border-radius:0; border-top:3px solid #263b2c; }
.order-summary h2 { font-weight:700; }
.product-detail .back-link { margin:4px 0 20px; }
.product-detail .detail-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:5%; }
.product-detail .detail-grid>section { min-width:0; }
.product-detail .product-photo-detail,.product-detail .detail-visual { position:sticky; top:24px; border-radius:0; margin:0; }
.product-detail .product-image-pending { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:22px; padding:32px; min-height:400px; aspect-ratio:1.1; background:repeating-linear-gradient(135deg,#e8e9d9 0,#e8e9d9 1px,#f0f0e7 1px,#f0f0e7 18px); }
.product-image-pending>span { font:800 clamp(4rem,9vw,8rem)/1 var(--display); color:#c1c8ad; letter-spacing:-.08em; }
.product-detail .product-image-pending>p { position:static; transform:none; margin:0; padding:6px 12px; background:#fff; color:#46533e; font-size:.8rem; }
.detail-grid h1 { margin-block:12px; }
.detail-description { padding-block:12px; margin-bottom:12px; }
.detail-weight { padding-block:14px; margin-top:18px; }
.detail-weight p { margin-bottom:6px; }
.product-detail .stock-note { color:#46533e; font-size:.8rem; }
.product-information { border-top:1px solid #d7e1d9; }
.product-information summary { display:flex; justify-content:space-between; gap:18px; padding:20px 0; font-weight:700; list-style:none; cursor:pointer; }
.product-information summary::-webkit-details-marker { display:none; }
.product-information summary::after { content:'＋'; }
.product-information[open] summary::after { content:'−'; }
.product-information-body { padding-bottom:16px; font-size:.9rem; color:#46533e; }
.product-information-body p { margin-bottom:12px; }
.product-information-body a { display:inline-block; padding-block:6px; }
.site-footer { width:100%; max-width:none; margin:0; padding:36px max(56px,calc((100% - 1320px)/2)) 28px; display:grid; grid-template-columns:1fr 1fr; gap:14px 6%; background:#1d281f; color:#e0e5d9; border-top:1px solid #50604c; align-items:start; }
.site-footer .footer-brand { grid-column:1; grid-row:1; }
.site-footer .brand-art { width:190px; margin:0; mix-blend-mode:normal; }
.site-footer .brand-logo { filter:none; }
.site-footer>p { grid-column:1; grid-row:2; color:#e0e5d9; }
.site-footer .line-support { grid-column:2; grid-row:1/3; margin:0; max-width:34em; }
.site-footer .line-support p { color:#e0e5d9; line-height:1.85; }
.site-footer .line-support p+p { margin-top:8px; }
.site-footer a { color:#e0e5d9; }
.site-footer .policy-links { grid-column:1/-1; grid-row:3; margin-top:14px; padding-top:20px; border-top:1px solid #50604c; gap:8px 28px; }
.site-footer>a:not(.footer-brand) { grid-column:2; grid-row:4; justify-self:end; }
.site-footer small { grid-column:1; grid-row:4; color:#bac5b3; align-self:center; }

@media(max-width:1000px) { .site-footer { padding-inline:32px; } }
@media(max-width:700px) {
 .site-header { padding:10px 20px; gap:6px; }
 .site-header .brand-art { width:150px; aspect-ratio:3.1; overflow:visible; mix-blend-mode:normal; }
 .site-header .brand-logo { position:static; width:100%; height:auto; transform:none; filter:none; }
 .site-header nav { gap:6px; }
 .site-header .cart-link { padding:5px 8px; }
 .product-detail .detail-grid { grid-template-columns:1fr; gap:24px; }
 .product-detail .product-photo-detail,.product-detail .detail-visual { position:static; }
 .product-detail .product-image-pending { min-height:210px; aspect-ratio:1.5; gap:14px; }
 .product-image-pending>span { font-size:4.5rem; }
 .cart-page { padding-top:26px; padding-bottom:36px; }
 .cart-page .empty-state { padding:32px 20px; }
  .site-footer { padding:28px 24px 24px; grid-template-columns:1fr; gap:14px; }
  .site-footer .footer-brand { grid-column:1; grid-row:1; }
  .site-footer>p { grid-row:2; }
  .site-footer .line-support { grid-column:1; grid-row:3; padding-top:10px; }
  .site-footer .policy-links { grid-column:1; grid-row:4; display:grid; grid-template-columns:1fr 1fr; gap:4px 18px; margin-top:6px; }
  .site-footer>a:not(.footer-brand) { grid-column:1; grid-row:5; justify-self:start; }
  .site-footer small { grid-column:1; grid-row:6; }
}

/* Small-screen hardening and focus visibility on dark brand surfaces. */
.product-detail .product-image-pending { width:100%; min-width:0; }
.site-header :is(a,button):focus-visible,.site-footer a:focus-visible { outline-color:#e6ce83; }
@media(max-width:700px) {
 body:not(:has(.mobile-cart,.cart-mobile-summary)) { padding-bottom:0; }
 .product-detail .product-image-pending { aspect-ratio:auto; height:210px; }
}

/* Reading position uses native anchors; no content depends on JavaScript. */
.site-header nav a[aria-current="location"] { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:8px; text-decoration-color:#e6ce83; }
.guide-index a[aria-current="location"] { color:#263b2c; font-weight:750; border-left:3px solid #263b2c; padding-left:12px; }
@media(min-width:1001px) {
 .site-header { position:sticky; top:0; z-index:40; }
 :is(main section[id],.guide-products) { scroll-margin-top:110px; }
 .guide-index { top:112px; }
 .product-detail .product-photo-detail,.product-detail .detail-visual { top:108px; }
}

/* Product photography stays uncropped and can be inspected at a larger size. */
.product-photo-detail { isolation:isolate; }
.product-photo-detail img { max-height:min(650px,calc(100svh - 156px)); }
.photo-enlarge { position:absolute; right:16px; bottom:16px; min-height:44px; padding:10px 18px; background:#fff; color:#263b2c; border:1px solid #c6cfbf; border-radius:2px; font:600 .85rem var(--body); cursor:pointer; }
.photo-enlarge:hover { background:#f1f2e9; }
.product-photo-dialog { width:min(1100px,calc(100% - 32px)); max-width:none; max-height:calc(100svh - 32px); padding:56px 16px 16px; border:0; background:#f6f6f0; color:#263b2c; }
.product-photo-dialog::backdrop { background:rgba(15,26,17,.88); }
.product-photo-dialog img { display:block; width:100%; height:calc(100svh - 120px); object-fit:contain; }
.photo-close { position:absolute; right:12px; top:6px; min-height:44px; padding:8px 14px; border:0; background:transparent; color:#263b2c; font:600 .9rem var(--body); cursor:pointer; }
body:has(.product-photo-dialog[open]) { overflow:hidden; }
.site-footer .line-support a,.fresh-produce-notice>a { display:inline-flex; align-items:center; min-height:44px; }
.product-detail>nav a,.fruit-guide>nav a { display:inline-flex; align-items:center; min-height:44px; }
@media(max-width:700px) {
 .product-photo-detail img { max-height:480px; }
 .photo-enlarge { right:10px; bottom:10px; }
}

/* A short factual opening gives the fruit guide a clear reading hierarchy. */
.guide-facts { display:grid; grid-template-columns:repeat(3,1fr); margin:0 0 32px; padding:24px 0; border-block:1px solid #d7e1d9; }
.guide-facts>div { padding:0 28px; border-left:1px solid #d7e1d9; }
.guide-facts>div:first-child { border-left:0; padding-left:0; }
.guide-facts dt { color:#596150; font-size:.8rem; margin-bottom:8px; }
.guide-facts dd { margin:0; font:750 clamp(1.5rem,2.5vw,2.4rem)/1.3 var(--display); color:#263b2c; }
.fruit-guide .guide-heading { border-bottom:0; }
.fruit-guide .policy-content section+section { border-top:1px solid #e4e7df; }
.fruit-guide .policy-content section { padding-block:28px; }
@media(max-width:700px) {
 .guide-facts { gap:0; padding-block:20px; margin-bottom:20px; }
 .guide-facts>div { padding-inline:12px; }
 .guide-facts dd { font-size:1.4rem; }
 .guide-facts dt { font-size:.75rem; }
}

/* The skip link must stay outside the viewport until keyboard focus. */
.site-header .skip-link { position:fixed; top:12px; left:16px; transform:translateY(calc(-100% - 24px)); opacity:0; pointer-events:none; z-index:100; }
.site-header .skip-link:focus { transform:none; opacity:1; pointer-events:auto; }
/* Gift comparisons use real catalog data, with a readable single column on phones. */
.gift-checklist { margin:24px 0; }
.gift-checklist>div { padding:18px 0; border-bottom:1px solid #d7e1d9; }
.gift-checklist dt { font-weight:750; color:#263b2c; }
.gift-checklist dd { margin:8px 0 0; }
.guide-products .gift-product-list { list-style:none; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.guide-products .gift-product-list li { margin:0; padding:22px; border:1px solid #d7e1d9; overflow-wrap:anywhere; }
.gift-product-list h3 { margin:0 0 12px; font-size:1.2rem; }
.gift-product-list p { margin:8px 0; }
@media(max-width:700px) { .guide-products .gift-product-list { grid-template-columns:1fr; } }
