/* Preview-only additions for the products page. Live site CSS remains untouched. */

/* i18n */
[data-en]{display:none}
html[lang="en"] [data-zh]{display:none}
html[lang="en"] [data-en]{display:inline}
html[lang="en"] p[data-en],
html[lang="en"] h1[data-en],
html[lang="en"] h2[data-en],
html[lang="en"] h3[data-en],
html[lang="en"] div[data-en],
html[lang="en"] li[data-en],
html[lang="en"] figcaption[data-en]{display:block}
html[lang="zh-CN"] p[data-zh],
html[lang="zh-CN"] h1[data-zh],
html[lang="zh-CN"] h2[data-zh],
html[lang="zh-CN"] h3[data-zh],
html[lang="zh-CN"] div[data-zh],
html[lang="zh-CN"] li[data-zh],
html[lang="zh-CN"] figcaption[data-zh]{display:block}

#mobile-nav[hidden]{display:none}

/* ----- 先看棒料本身 ----- */
#product-display{
  padding:72px 0 48px;
}
#product-display .wrap,
#product-frame-wrap{
  width:min(72rem, calc(100% - 2.5rem));
  margin:0 auto;
}
@media (min-width:640px){
  #product-display .wrap,
  #product-frame-wrap{width:min(72rem, calc(100% - 4rem))}
}

.ls-eyebrow{
  font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  color:#e2b56a;font-weight:600;margin-bottom:12px;
}
html[lang="zh-CN"] .ls-eyebrow{letter-spacing:.18em;text-transform:none}
.ls-section-head{margin-bottom:36px}
.ls-section-head h2{
  font-family:var(--font-fraunces),"Iowan Old Style",Palatino,serif;
  font-size:clamp(28px, 3vw, 42px);
  font-weight:500;letter-spacing:-.02em;line-height:1.15;
  color:#f3e6d4;margin:0 0 10px;
}
html[lang="zh-CN"] .ls-section-head h2{
  font-family:"Noto Serif SC",var(--font-fraunces),"Songti SC",serif;
  letter-spacing:0;
}

.bundle-grid{
  display:grid;grid-template-columns:1.15fr .85fr;gap:16px;
  margin-bottom:36px;
}
.bundle-card{
  position:relative;border-radius:calc(.7rem + 4px);
  overflow:hidden;background:#2a1e18;
  border:1px solid #4a352a;
}
.bundle-card img{width:100%;height:100%;object-fit:cover;display:block}
.bundle-card.main{min-height:420px;aspect-ratio:4/3}
.bundle-stack{display:grid;grid-template-rows:1fr 1fr;gap:16px}
.bundle-stack .bundle-card{min-height:202px;aspect-ratio:4/3}
.photo-cap{
  position:absolute;left:14px;bottom:12px;
  font-size:11px;color:#f6efe4;background:rgba(20,14,11,.55);
  padding:3px 8px;border-radius:999px;
}

.cards-4{
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
}
.intro-card{
  background:#2a1e18;border:1px solid #4a352a;
  border-radius:.7rem;overflow:hidden;
  display:flex;flex-direction:column;
}
.intro-card .thumb{
  aspect-ratio:4/3;overflow:hidden;background:#241912;
}
.intro-card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.intro-card .body{padding:14px 16px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.intro-card h3{
  font-family:var(--font-fraunces),"Iowan Old Style",Palatino,serif;
  font-size:18px;color:#f3e6d4;line-height:1.3;font-weight:500;letter-spacing:-.02em;
}
html[lang="zh-CN"] .intro-card h3{
  font-family:"Noto Serif SC",var(--font-fraunces),"Songti SC",serif;
  letter-spacing:0;
}
.intro-card .en-name{
  font-family:"Source Sans 3",var(--font-source),sans-serif;font-size:12px;
  color:#e2b56a;letter-spacing:.02em;
}
html[lang="en"] .intro-card .en-name{display:none}
.intro-card p{font-size:13.5px;color:#cbb8a4;line-height:1.55;margin:0}

.more-row{margin-top:28px;text-align:center}
.more-row a{
  color:#e8d3b4;font-size:15px;font-weight:500;
  border-bottom:1px solid #e8d3b466;padding-bottom:2px;
}
.more-row a:hover{color:#f3e6d4}

/* ----- Unified frame ----- */
#product-frame{
  scroll-margin-top:8rem;
  padding:0 0 80px;
}
.product-frame{
  background:#140e0b;
  border:1px solid #4a352a;
  border-radius:1.25rem;
  padding:40px 28px 36px;
}
@media (min-width:640px){
  .product-frame{padding:48px 40px 40px}
}

.product-frame .ls-section-head{margin-bottom:22px}
.catalog-nav{
  display:flex;flex-wrap:wrap;gap:8px;
  margin:0 0 28px;
}
.catalog-nav a{
  border:1px solid #4a352a;background:#2a1e18;
  border-radius:999px;padding:6px 12px;
  font-size:14px;font-weight:500;color:#f6efe4;
}
.catalog-nav a:hover{border-color:#e8d3b4}

.catalog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.catalog-card{
  scroll-margin-top:8rem;
  border-radius:1.6rem;
  border:1px solid #4a352a;
  background:#2a1e18;
  padding:16px;
  display:flex;flex-direction:column;
}
.catalog-card .shot{
  position:relative;overflow:hidden;border-radius:1.6rem;
  background:#241912;aspect-ratio:4/3;
}
.catalog-card .shot img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
}
.catalog-card .shot-note{
  margin-top:8px;font-size:12px;letter-spacing:.04em;color:#cbb8a4;
}
.catalog-card h3{
  margin-top:16px;
  font-family:var(--font-fraunces),"Iowan Old Style",Palatino,serif;
  font-size:1.5rem;line-height:1.25;font-weight:500;color:#f6efe4;
  letter-spacing:-.02em;
}
html[lang="zh-CN"] .catalog-card h3{
  font-family:"Noto Serif SC",var(--font-fraunces),"Songti SC",serif;
  letter-spacing:0;
}
.catalog-card p{
  margin-top:8px;font-size:14px;line-height:1.65;color:#cbb8a4;flex:1;
}
.catalog-card .inquire{
  margin-top:16px;display:inline-block;
  font-size:14px;font-weight:600;color:#f3e6d4;
}
.catalog-card .inquire:hover{color:#fff}

.frame-usage{
  margin-top:40px;
  padding-top:32px;
  border-top:1px solid #4a352a;
}
.frame-usage .ls-section-head{margin-bottom:24px}
.usage-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:16px;
}
.usage-card{
  position:relative;border-radius:.7rem;overflow:hidden;
  min-height:240px;border:1px solid #4a352a;margin:0;
}
.usage-card img{
  width:100%;height:100%;object-fit:cover;min-height:240px;display:block;
}
.usage-card figcaption{
  position:absolute;left:0;right:0;bottom:0;
  padding:36px 16px 14px;
  background:linear-gradient(transparent, rgba(20,14,11,.82));
  font-size:15px;color:#f3e6d4;
}

/* Responsive: never force four columns on a narrow screen */
@media (max-width: 1100px){
  .cards-4{grid-template-columns:repeat(2,1fr)}
  .bundle-grid{grid-template-columns:1fr 1fr}
  .catalog-grid{grid-template-columns:repeat(2,1fr)}
  .usage-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 700px){
  #product-display{padding:48px 0 32px}
  #product-display .wrap,
  #product-frame-wrap{width:calc(100% - 2rem)}
  .bundle-grid,.bundle-stack{grid-template-columns:1fr;grid-template-rows:auto}
  .bundle-card.main,.bundle-stack .bundle-card{min-height:220px;aspect-ratio:16/10}
  .cards-4,.catalog-grid,.usage-grid{grid-template-columns:1fr}
  .product-frame{padding:28px 16px 24px;border-radius:1rem}
  .catalog-card h3{font-size:1.35rem}
  #product-frame{padding-bottom:56px}
}


/* Home: unified category usage grid directly under the hero.
   One card per category that has a true in-use / finished-scene photo.
   Overrides the compiled 4+1 explore grid. Never four cramped columns. */
#explore{
  padding-top:4rem;
  background:#1a120e;
}
@media (min-width:640px){
  #explore{padding-top:5rem}
}
#explore .home-explore-grid{
  display:grid;
  gap:1.5rem;
}
#explore .home-explore-grid img.pos-midright{
  object-position:70% center;
}
@media (max-width:699px){
  #explore .home-explore-grid{
    grid-template-columns:1fr;
  }
  #explore .home-explore-grid>*{
    grid-column:auto;
    width:auto;
    max-width:100%;
    justify-self:stretch;
  }
}
@media (min-width:700px) and (max-width:1099px){
  #explore .home-explore-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #explore .home-explore-grid>*{
    grid-column:auto;
    width:auto;
    max-width:100%;
    justify-self:stretch;
  }
}
@media (min-width:1100px){
  #explore .home-explore-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  #explore .home-explore-grid>*,
  #explore .home-explore-grid>:nth-child(5){
    grid-column:auto;
    width:auto;
    max-width:100%;
    justify-self:stretch;
  }
}

/* About page: sticks block after the Quality Birch intro */
#about-sticks{
  background:#1a120e;
}

/* Production process flowchart — original linear diagram, not a copy of any competitor cycle.
   Dark warm wood tones only. Confirmed facts only; no photos in this block. */
.ls-flow{
  list-style:none;
  margin:2.25rem 0 0;
  padding:0;
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  align-items:center;
  gap:.35rem 0;
}
.ls-flow-step{
  background:#2a1e18;
  border:1px solid #4a352a;
  border-radius:1.15rem;
  padding:1.6rem 1.25rem 1.45rem;
  text-align:center;
  min-width:0;
}
.ls-flow-node{
  width:2.6rem;
  height:2.6rem;
  margin:0 auto 1rem;
  border-radius:999px;
  background:#3E2A1C;
  border:1px solid #c4a07a;
  color:#f3e6d4;
  font-size:.72rem;
  letter-spacing:.12em;
  display:flex;
  align-items:center;
  justify-content:center;
  font-variant-numeric:tabular-nums;
}
.ls-flow-step h3{
  font-size:1.35rem;
  margin:0 0 .45rem;
  color:#f6efe4;
  line-height:1.25;
}
.ls-flow-step p{
  margin:0;
  color:#cbb8a4;
  font-size:.95rem;
  line-height:1.55;
}
.ls-flow-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  width:3.25rem;
  color:#c4a07a;
  flex-shrink:0;
}
.ls-flow-note{
  margin:1.5rem auto 0;
  max-width:54em;
  padding:0 .75rem;
  text-align:center;
  color:#a89480;
  font-size:.82rem;
  line-height:1.65;
  word-break:keep-all;
}
@media (max-width:799px){
  /* Keep the three confirmed steps in one horizontal row, like desktop. */
  .ls-flow{
    grid-template-columns:1fr auto 1fr auto 1fr;
    align-items:stretch;
    justify-items:stretch;
    gap:.18rem .1rem;
    margin-top:1.5rem;
  }
  .ls-flow-arrow{
    width:.9rem;
    height:auto;
    align-self:center;
  }
  .ls-flow-arrow svg{
    transform:none;
    width:14px;
    height:7px;
    display:block;
  }
  .ls-flow-step{
    padding:.65rem .3rem .6rem;
    border-radius:.7rem;
  }
  .ls-flow-node{
    width:1.55rem;
    height:1.55rem;
    margin:0 auto .35rem;
    font-size:.52rem;
    letter-spacing:.04em;
  }
  .ls-flow-step h3{
    font-size:.78rem;
    margin:0 0 .25rem;
    line-height:1.25;
  }
  .ls-flow-step p{
    font-size:.6rem;
    line-height:1.4;
    overflow-wrap:break-word;
    word-break:break-word;
  }
}

/* Process section: one continuous product atmosphere, not a four-corner collage.
   A single mixed-product shot (bundled sticks, large spoon, colored craft sticks, wide stick)
   bleeds past the edges and soft-fades into the mid band so title and flow cards stay readable. */
#process{
  position:relative;
  overflow:hidden;
  background:#1a120e;
  padding-top:8rem !important;
  padding-bottom:8.25rem !important;
}
#process>.ls-wrap{
  position:relative;
  z-index:1;
}
.ls-process-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}
.ls-process-bg img{
  position:absolute;
  inset:-10% -4%;
  width:108%;
  height:120%;
  max-width:none;
  object-fit:cover;
  object-position:center 48%;
  border-radius:0;
  box-shadow:none;
  opacity:.82;
  filter:saturate(.72) brightness(.62) contrast(1.05);
}
.ls-process-bg img:nth-child(2){display:none;}
.ls-process-bg::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:
    radial-gradient(ellipse 74% 66% at 50% 46%,
      rgba(26,18,14,.88) 0%,
      rgba(26,18,14,.74) 36%,
      rgba(26,18,14,.4) 66%,
      rgba(26,18,14,.12) 100%),
    linear-gradient(180deg,
      rgba(26,18,14,.22) 0%,
      rgba(26,18,14,.32) 14%,
      rgba(26,18,14,.7) 34%,
      rgba(26,18,14,.8) 50%,
      rgba(26,18,14,.7) 66%,
      rgba(26,18,14,.32) 86%,
      rgba(26,18,14,.22) 100%);
}
.ls-flow-step{
  background:rgba(42,30,24,.96);
  box-shadow:0 10px 28px rgba(0,0,0,.28);
}
@media (max-width:799px){
  #process{
    padding-top:6.25rem !important;
    padding-bottom:6.5rem !important;
  }
  /* Tall mobile crop would hide left/right products if we cover the full height.
     Same photo as two wide bands at top and bottom, fading into the mid-dark. */
  .ls-process-bg img:nth-child(1){
    inset:auto;
    top:-6%;
    left:-24%;
    width:148%;
    height:46%;
    object-fit:cover;
    object-position:center 42%;
    opacity:.78;
  }
  .ls-process-bg img:nth-child(2){
    display:block;
    inset:auto;
    bottom:-8%;
    left:-24%;
    width:148%;
    height:40%;
    object-fit:cover;
    object-position:center 58%;
    opacity:.7;
  }
  .ls-process-bg::after{
    background:
      radial-gradient(ellipse 92% 70% at 50% 46%,
        rgba(26,18,14,.9) 0%,
        rgba(26,18,14,.78) 42%,
        rgba(26,18,14,.42) 74%,
        rgba(26,18,14,.16) 100%),
      linear-gradient(180deg,
        rgba(26,18,14,.28) 0%,
        rgba(26,18,14,.4) 12%,
        rgba(26,18,14,.78) 30%,
        rgba(26,18,14,.86) 50%,
        rgba(26,18,14,.78) 70%,
        rgba(26,18,14,.4) 88%,
        rgba(26,18,14,.28) 100%);
  }
}

/* Quote CTA: existing origin map sits in the same rounded frame that held the tree-ring image. */
#quote .quote-map-frame svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.ls-map-frame{background:#2c1b17}


/* Homepage factory body only: slight emphasis on the confirmed quality phrase, still in-sentence. */
#factory .ls-factory-emphasis{
  font-weight:600;
  font-style:normal;
  font-size:inherit;
  color:#f6efe4;
  text-decoration:none;
  background:none;
}
