/* Fit shortcuts and PLP facet, tuned to the current Recipe V3 collection layout. */
body.recipe-store--uniqlo-v3 .recipe-fit-shortcuts{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  margin:20px 0 8px; padding:10px 0;
}
body.recipe-store--uniqlo-v3 .recipe-fit-shortcuts>span{
  margin-right:10px; color:#444; font-size:12px; font-weight:600;
  letter-spacing:.06em; text-transform:uppercase;
}
body.recipe-store--uniqlo-v3 .recipe-fit-shortcuts button{
  appearance:none; border:1px solid #c9c9c9; border-radius:0;
  background:#fff; color:#181818; min-height:38px;
  padding:8px 18px; font:inherit; font-size:13px; cursor:pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease;
}
body.recipe-store--uniqlo-v3 .recipe-fit-shortcuts button:is(:hover,:focus-visible),
body.recipe-store--uniqlo-v3 .recipe-fit-shortcuts button.is-active{
  border-color:#171717; background:#171717; color:#fff;
}
body.recipe-store--uniqlo-v3 .recipe-fit-shortcuts button:focus-visible{
  outline:2px solid #171717; outline-offset:3px;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel [data-v3-filter="fit"]{accent-color:#171717}
body.recipe-store--uniqlo-v3 .v3-filter-panel label small{
  font-size:11px; color:#777; margin-left:4px;
}
body.recipe-store--uniqlo-v3 [data-v3-product-grid]>.v3-product-card[hidden]{
  display:none!important;
}
@media (max-width:760px){
  body.recipe-store--uniqlo-v3 .recipe-fit-shortcuts{
    flex-wrap:nowrap; overflow-x:auto; max-width:100%; scrollbar-width:thin;
    padding:12px 0 16px; margin:12px 0 4px;
    -webkit-overflow-scrolling:touch;
  }
  body.recipe-store--uniqlo-v3 .recipe-fit-shortcuts>span,
  body.recipe-store--uniqlo-v3 .recipe-fit-shortcuts button{
    flex-shrink:0; white-space:nowrap;
  }
  body.recipe-store--uniqlo-v3 .recipe-fit-shortcuts button{
    min-height:40px; padding:9px 15px;
  }
}


/* Collection filter drawer: stable vertical rhythm and tap targets.
 * Using block fieldsets avoids native legend + CSS grid spacing anomalies.
 */
body.recipe-store--uniqlo-v3 .v3-filter-panel{
  max-width:100vw;
  overscroll-behavior:contain;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel__head{
  flex:0 0 auto;
  min-height:68px;
  height:auto;
  padding:10px 22px;
  font-size:20px;
  line-height:1.25;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel__head button{
  flex:0 0 40px;
  width:40px;
  height:40px;
  border-radius:50%;
  color:#111;
  line-height:1;
  -webkit-tap-highlight-color:transparent;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel__head button:focus:not(:focus-visible){
  outline:none;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel__head button:focus-visible{
  outline:2px solid #111;
  outline-offset:2px;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel__body{
  min-height:0;
  padding:4px 22px 16px;
  overflow-y:auto;
  overscroll-behavior:contain;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel fieldset{
  display:block;
  min-width:0;
  margin:0;
  padding:16px 0 17px;
  border:0;
  border-bottom:1px solid #e7e7e7;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel fieldset:last-child{
  border-bottom:0;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel legend{
  float:none;
  display:table;
  width:100%;
  padding:0;
  margin:0 0 8px;
  color:#111;
  font-size:15px;
  line-height:1.35;
  font-weight:700;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel fieldset>label{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  width:100%;
  margin:0;
  padding:8px 0;
  font-size:14px;
  line-height:1.45;
  cursor:pointer;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel fieldset>label+label{
  margin-top:2px;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel fieldset input[type="checkbox"]{
  display:block;
  flex:0 0 20px;
  width:20px;
  height:20px;
  margin:0;
  accent-color:#111;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel fieldset label small{
  margin-left:auto!important;
  padding-left:8px;
  color:#777;
  font-size:12px;
  white-space:nowrap;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel__category{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:46px;
  padding:10px 0;
  border-top:1px solid #eee;
  font-size:14px;
  text-decoration:none;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel__category:first-of-type{
  border-top:0;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel__footer{
  flex:0 0 auto;
  grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);
  gap:12px;
  padding:14px 22px max(16px,env(safe-area-inset-bottom));
  background:#fff;
}
body.recipe-store--uniqlo-v3 .v3-filter-panel__footer button{
  width:100%;
  min-width:0;
  min-height:48px;
  font-size:14px;
}

/* Mobile PLP: dedicate a full row to sorting so its selected value is
 * readable instead of clipping at the previous 130px maximum.
 */
@media(max-width:760px){
  body.recipe-store--uniqlo-v3 .v3-plp__toolbar{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
    padding:0 15px!important;
    min-height:0;
  }
  body.recipe-store--uniqlo-v3 .v3-plp__result-count{
    display:flex;
    align-items:center;
    min-height:35px;
    padding:8px 0;
    border-bottom:1px solid #ececec;
    font-size:12px!important;
    line-height:1.35;
  }
  body.recipe-store--uniqlo-v3 .v3-plp__tools{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(96px,112px);
    align-items:stretch;
    width:100%;
    min-width:0;
    height:52px!important;
  }
  body.recipe-store--uniqlo-v3 .v3-plp__sort{
    display:flex;
    min-width:0;
    width:100%;
    gap:10px;
    margin:0;
    padding:0 12px 0 0!important;
    border:0!important;
  }
  body.recipe-store--uniqlo-v3 .v3-plp__sort>span{
    display:block!important;
    flex:0 0 auto;
    font-size:12px;
    color:#555;
  }
  body.recipe-store--uniqlo-v3 .v3-plp__sort select{
    display:block;
    flex:1 1 auto;
    width:100%;
    min-width:0!important;
    max-width:none!important;
    height:44px;
    margin:0;
    padding:0 8px 0 2px;
    font-size:13px;
    line-height:1.4;
    color:#111;
    background:transparent;
    text-overflow:ellipsis;
  }
  body.recipe-store--uniqlo-v3 .v3-plp__filter-button{
    display:flex;
    min-width:0!important;
    width:100%;
    gap:8px;
    padding:0 0 0 14px!important;
    border:0;
    border-left:1px solid #ddd;
    font-size:13px!important;
    text-align:left;
  }
  body.recipe-store--uniqlo-v3 .v3-filter-panel{
    width:100vw;
    height:100dvh;
  }
  body.recipe-store--uniqlo-v3 .v3-filter-panel__body{
    padding-inline:20px;
  }
  body.recipe-store--uniqlo-v3 .v3-filter-panel__head{
    padding-inline:20px;
  }
  body.recipe-store--uniqlo-v3 .v3-filter-panel__footer{
    padding-inline:20px;
  }
}
@media(max-width:360px){
  body.recipe-store--uniqlo-v3 .v3-plp__tools{
    grid-template-columns:minmax(0,1fr) 96px;
  }
  body.recipe-store--uniqlo-v3 .v3-plp__sort>span{
    display:none!important;
  }
}
