/* SHENYO V5.24 · local-only: restore mobile hero, aligned work cards, accessible category drawer. */
@media (max-width: 650px) {
  /* Restore the original top-copy / bottom-slider reading order on phones. */
  .wrap > .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
    min-height: 0;
    height: auto;
    width: auto;
    max-width: calc(100% + 28px);
  }
  .wrap > .hero .hero-copy {
    width: 100%;
    min-width: 0;
    padding: 28px 23px 26px;
    align-self: start;
  }
  .wrap > .hero #hero-title {
    font-size: clamp(27px, 7.8vw, 36px);
    line-height: 1.34;
    overflow-wrap: break-word;
    margin-bottom: 16px;
  }
  .wrap > .hero #hero-desc {
    font-size: clamp(13px, 3.5vw, 15px);
    line-height: 1.7;
    margin-bottom: 20px;
  }
  .wrap > .hero #hero-eyebrow { font-size: 10px; }
  .wrap > .hero .primary {
    font-size: 13px;
    min-height: 42px;
    line-height: 1.4;
    padding: 11px 17px;
    width: fit-content;
  }
  .wrap > .hero .hero-image {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: 16/10;
    align-self: stretch;
    overflow: hidden;
  }
  .wrap > .hero .hero-image.hero-has-photo .hero-banner-photo {
    display: block;
    width: 100%; height: 100%;
    max-height: none; min-height: 0;
    object-fit: contain;
    object-position: center;
  }
  .wrap > .hero .hero-image .hero-obj { width: min(180px, 38vw); height: min(180px, 38vw); }
  /* Keep all product category images on the same baseline; never crop text. */
  .showcase-grid, .showcase-grid.sc-level-brand, .showcase-grid.sc-level-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    grid-auto-flow: row;
    gap: 20px 10px;
  }
  .showcase-grid > .sc-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    gap: 9px;
    text-align: center;
  }
  .showcase-grid > .sc-card > .sc-card-photo {
    display: grid;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    flex: 0 0 auto;
    margin: 0;
    place-items: center;
  }
  .showcase-grid > .sc-card > .sc-card-photo img {object-fit: contain;}
  .showcase-grid > .sc-card > .sc-card-title {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 3px;
    line-height: 1.5;
    font-size: clamp(12px, 3.7vw, 15px);
    min-height: 3em;
    overflow-wrap: anywhere;
  }
  /* Off-canvas showcase category tree. It does not consume vertical space. */
  .showcase-layout {display: block; padding-bottom: 70px;}
  #sc-category-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    left: 12px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 70;
    padding: 12px 15px;
    min-height: 44px;
    border: 0;
    border-radius: 50px;
    background: #244d3d;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 21px #1c382a44;
  }
  .showcase-sidebar#showcase-side {
    position: fixed;
    z-index: 91;
    top: 0; left: 0;
    width: min(86vw, 338px);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: 22px 16px 35px;
    border: 0;
    border-radius: 0 15px 15px 0;
    background: #fff;
    box-shadow: 6px 0 40px #0c241c33;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-110%);
    transition: transform .24s ease, visibility .24s;
    visibility: hidden;
    pointer-events: none;
  }
  .showcase-layout.sc-category-open > #showcase-side {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .showcase-sidebar#showcase-side #showcase-tree {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-wrap: nowrap;
    width: 100%;
    overflow: visible;
  }
  .showcase-sidebar#showcase-side #showcase-tree button {
    display: block;
    width: 100%;
    border-radius: 7px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 14px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #sc-category-close {display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 24px; border: 0; background: #eef2ef; color: #1e4635; border-radius: 50%;}
  #sc-category-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    border: 0;
    margin: 0;
    background: #0c251c99;
    width: 100%;
    height: 100dvh;
  }
  .showcase-layout.sc-category-open > #sc-category-scrim {display: block;}
  html.sc-category-locked, body.sc-category-locked {overflow: hidden;}
}
/* Desktop and tablets: retain original permanent sidebar. */
@media (min-width: 651px) {
  #sc-category-toggle, #sc-category-close, #sc-category-scrim {display: none !important;}
}
@media (prefers-reduced-motion: reduce) {
  .showcase-sidebar#showcase-side {transition: none;}
}

.sc-category-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.sc-category-panel-head h3{margin:0;}
#sc-category-toggle{display:none;}
#sc-category-close{display:none;}
#sc-category-scrim{display:none;}
/* Re-enable the launcher inside the mobile-only media rule; desktop is unchanged. */
@media(max-width:650px){#sc-category-toggle{display:flex;}#sc-category-close{display:flex;}}
.variant-image-empty{display:flex;align-items:center;justify-content:center;min-height:220px;padding:25px;color:#53715f;background:#f2f6f3;text-align:center;font-weight:700;border-radius:10px;}
