/* Mobile v308: keep content in normal flow so phone browser chrome cannot cover it. */
@media(max-width:700px){
  body.design-b{padding-bottom:0;overflow-x:hidden}
  .design-b .b-quickbar{
    position:static;
    left:auto;
    right:auto;
    bottom:auto;
    z-index:auto;
    min-height:0;
    padding-bottom:max(8px,env(safe-area-inset-bottom,0px));
    box-shadow:none;
  }
  .design-b .b-quickbar a,
  .design-b .b-quickbar button{
    min-height:54px;
    padding:9px 4px;
    font-size:12px;
    line-height:1.3;
    white-space:normal;
    text-align:center;
  }
  .design-b .miso-banner .banner-copy,
  .design-b .miso-banner .banner-artwork,
  .design-b .brand-services,
  .design-b .brand-services .service-card{min-width:0;max-width:100%}
  .design-b .miso-banner .banner-copy{overflow:visible}
  .design-b .miso-banner .banner-title,
  .design-b .brand-services .service-guide-heading h2,
  .design-b .brand-services .service-card h3{
    max-width:100%;
    overflow-wrap:anywhere;
    text-wrap:balance;
  }
  /* A partially visible next card looks broken on a phone. Show every card
     as a complete row instead of relying on horizontal swiping. */
  .design-b.journey-v176 .trade-purpose-cards,
  .design-b.conversion-v175 .compact-proof-links{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-left:0;
    margin-right:0;
    padding-left:0;
    padding-right:0;
    overflow:visible;
    scroll-snap-type:none;
  }
  .design-b.journey-v176 .trade-purpose-cards a,
  .design-b.conversion-v175 .compact-proof-links a{
    box-sizing:border-box;
    width:100%;
    min-width:0;
    min-height:0;
  }
  .design-b.journey-v176 .trade-purpose-cards a{padding:22px 20px}
  .design-b.conversion-v175 .compact-proof-links a{padding:18px 20px}

  /* Product shortcuts must look like complete controls, not a cropped rail. */
  .design-b #collection .catalog-shortcuts{
    display:block;
    width:100%;
    min-width:0;
  }
  .design-b #collection .search-shortcuts{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
    width:100%;
    min-width:0;
    padding:0;
    overflow:visible;
    scrollbar-width:none;
  }
  .design-b #collection .search-shortcuts button{
    box-sizing:border-box;
    width:100%;
    min-width:0;
    padding:8px 6px;
    white-space:normal;
    word-break:keep-all;
  }
  .design-b #collection .search-reset{
    display:inline-flex;
    align-items:center;
    justify-content:flex-start;
    margin:8px 0 0;
    padding:8px 2px;
  }

  /* Keep the last two catalogue links as comfortable phone controls. */
  .design-b #collection .catalog-directory-link a,
  .design-b #collection .catalog-quality-note a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    padding:8px 0;
    line-height:1.5;
  }

  /* Product cards keep one visual rhythm without cutting long Korean names. */
  .design-b #collection .product-card{
    display:flex;
    flex-direction:column;
    align-self:start;
    height:auto;
    min-width:0;
    padding-bottom:14px;
  }
  .design-b #collection .product-card .product-image{
    flex:none;
    width:100%;
    height:auto;
    aspect-ratio:1;
  }
  .design-b #collection .product-card h3{
    min-height:0;
    overflow:visible;
    word-break:keep-all;
    overflow-wrap:anywhere;
  }
  .design-b #collection .product-card .product-spec{
    min-height:0;
    overflow:visible;
    line-height:1.72;
  }
  .design-b #collection .product-card .product-photo-note{
    display:block;
    overflow:visible;
    -webkit-line-clamp:unset;
    -webkit-box-orient:initial;
    margin-top:7px;
    font-size:12px;
    line-height:1.65;
    word-break:keep-all;
    overflow-wrap:normal;
  }
  .design-b #collection .product-card .product-detail-label{
    align-items:center;
    min-height:44px;
    margin-top:auto;
    padding-top:8px;
  }
}
@media(min-width:521px){
  /* Keep every card in the same catalogue row visually complete. */
  .design-b #collection .product-grid{
    align-items:stretch;
  }
  .design-b #collection .product-card{
    align-self:stretch;
    height:100%;
    box-sizing:border-box;
    padding-bottom:28px;
    background:#fff;
    border:1px solid #dbe3e8;
    box-shadow:0 6px 18px rgba(15,45,66,.045);
  }
}
@media(max-width:520px){
  .design-b #collection .product-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
  .design-b #collection .product-card{
    display:grid;
    grid-template-columns:124px minmax(0,1fr);
    grid-template-rows:auto auto auto auto 1fr;
    grid-template-areas:
      "photo group"
      "photo title"
      "photo spec"
      "photo note"
      "photo action";
    column-gap:16px;
    row-gap:5px;
    width:100%;
    padding:14px 14px 18px;
    border:1px solid #e2e8ee;
    background:#fff;
    box-shadow:0 4px 14px rgba(15,45,66,.045);
  }
  .design-b #collection .product-card .product-image{
    grid-area:photo;
    align-self:start;
    width:124px;
    margin:0;
  }
  .design-b #collection .product-card .product-group{
    grid-area:group;
    margin:1px 0 0;
    font-size:11px;
  }
  .design-b #collection .product-card h3{
    grid-area:title;
    width:100%;
    margin:0;
    font-size:17px;
    line-height:1.55;
  }
  .design-b #collection .product-card .product-spec{
    grid-area:spec;
    width:100%;
    margin:0;
    font-size:13px;
  }
  .design-b #collection .product-card .product-photo-note{
    grid-area:note;
    width:100%;
    margin-top:2px;
  }
  .design-b #collection .product-card .product-detail-label{
    grid-area:action;
    align-self:end;
    margin-top:4px;
  }
  .design-b .brand-services .service-guide-heading h2{
    font-size:clamp(27px,8vw,31px);
    line-height:1.24;
    letter-spacing:-.04em;
  }
  .design-b .brand-services .service-card h3,
  .design-b .brand-services .service-card.support h3{
    font-size:clamp(22px,6.7vw,25px);
    letter-spacing:-.035em;
  }
  .design-b .brand-services,
  .design-b .brand-services .service-grid{
    height:auto;
    max-height:none;
    overflow:visible;
  }
  .design-b .brand-services .service-grid{
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  .design-b .brand-services .service-card,
  .design-b .brand-services .service-card:first-child,
  .design-b .brand-services .service-card:last-child{
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    width:100%;
    height:auto;
    min-height:0;
    max-height:none;
    padding:24px 22px 34px;
    overflow:visible;
    scroll-margin-top:90px;
  }
  .design-b .brand-services .service-card .service-top,
  .design-b .brand-services .service-card h3,
  .design-b .brand-services .service-card>p,
  .design-b .brand-services .service-card .split-actions{
    width:100%;
    min-width:0;
  }
  .design-b .brand-services .service-card .split-actions{
    flex:none;
    margin-top:18px;
    padding-top:0;
    position:static;
  }
  .design-b .brand-services .service-card .split-actions a{
    box-sizing:border-box;
    flex:none;
    width:100%;
    min-width:0;
  }
  .design-b .brand-services .service-card .split-actions a span{flex:0 0 auto}
}
