/* Cookbook Shelf mobile listings: dense enough to compare, generous enough to tap. */
@media (max-width: 760px) {
  body.cooking[data-page="category"]{overflow-x:clip}
  body.cooking[data-page="category"].category-sheet-open{overflow:hidden}
  body.cooking[data-page="category"] :is(input,select,textarea){font-size:16px!important}

  body.cooking[data-page="category"] .breadcrumbs{min-height:42px;overflow:hidden}
  body.cooking[data-page="category"] .breadcrumbs .container{
    display:flex;align-items:center;min-width:0;min-height:42px;padding-block:7px!important;
    overflow-x:auto;white-space:nowrap;scrollbar-width:none
  }
  body.cooking[data-page="category"] .breadcrumbs .container::-webkit-scrollbar{display:none}

  body.cooking[data-page="category"] .cat-hero-with-image{padding:0!important;background:#17130f!important}
  body.cooking[data-page="category"] .cat-hero-with-image>.container{
    position:relative!important;display:block!important;width:100%!important;height:320px!important;min-height:0!important;
    overflow:hidden!important;border:0!important;border-radius:0!important;background:#201914!important;box-shadow:none!important
  }
  body.cooking[data-page="category"] .cat-hero-visual{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;
    margin:0!important;aspect-ratio:auto!important
  }
  body.cooking[data-page="category"] .cat-hero-visual:after{
    background:linear-gradient(180deg,rgba(24,18,13,.05) 18%,rgba(24,18,13,.5) 56%,rgba(24,18,13,.94) 100%)!important
  }
  body.cooking[data-page="category"] .cat-hero-visual img{object-position:center 43%!important}
  body.cooking[data-page="category"] .cat-hero-content{
    position:relative!important;z-index:2!important;display:flex!important;justify-content:flex-end!important;
    width:100%!important;height:100%!important;padding:24px 16px 22px!important;color:#fff
  }
  body.cooking[data-page="category"] .cat-hero-content:after{display:none!important}
  body.cooking[data-page="category"] .cat-hero-with-image .cat-hero-h1,
  body.cooking[data-page="category"] .cat-hero-root .cat-hero-h1{
    max-width:100%!important;margin:0!important;color:#fff!important;font-size:clamp(35px,11.2vw,44px)!important;
    line-height:.96!important;letter-spacing:-.045em!important;text-shadow:0 2px 18px rgba(0,0,0,.28)
  }
  body.cooking[data-page="category"] .cat-hero-h1:before{margin-bottom:9px!important;color:#ffb47e!important;font-size:10px!important}
  body.cooking[data-page="category"] .cat-h1-total{
    display:inline-flex!important;width:max-content!important;min-width:0!important;margin:10px 0 0!important;padding:5px 9px!important;
    border:1px solid rgba(255,255,255,.36)!important;border-radius:999px!important;background:rgba(24,18,13,.5)!important;
    color:#fff!important;font-size:12px!important;backdrop-filter:blur(7px)
  }
  body.cooking[data-page="category"] .cat-hero-with-image .cat-hero-editorial-copy,
  body.cooking[data-page="category"] .cat-hero-with-image .cat-hero-desc{
    display:-webkit-box!important;max-width:340px!important;margin:10px 0 0!important;overflow:hidden!important;
    color:rgba(255,255,255,.86)!important;font-size:13.5px!important;line-height:1.42!important;
    -webkit-box-orient:vertical;-webkit-line-clamp:2
  }
  body.cooking[data-page="category"] .cat-hero-with-image .cat-subchips-wrap{margin-top:12px!important}
  body.cooking[data-page="category"] .cat-hero-with-image .cat-subchip{
    min-height:40px!important;border-color:rgba(255,255,255,.34)!important;background:rgba(24,18,13,.56)!important;color:#fff!important
  }
  body.cooking[data-page="category"] .cat-hero-with-image .cat-subchips-all{
    background:linear-gradient(90deg,transparent,rgba(24,18,13,.88) 42%)!important
  }

  body.cooking[data-page="category"] .cat-subcategories-section{padding:28px 0 34px!important}
  body.cooking[data-page="category"] .cat-subcategories-heading{margin-bottom:16px!important}
  body.cooking[data-page="category"] .cat-subcategories-kicker{font-size:10px!important}
  body.cooking[data-page="category"] .cat-subcategories-heading h2{font-size:30px!important;line-height:1!important}
  body.cooking[data-page="category"] .cat-subcategories-heading p{margin-top:8px!important;font-size:13px!important;line-height:1.45!important}
  body.cooking[data-page="category"] .cat-subcategories-section .subcat-grid{gap:10px!important}
  body.cooking[data-page="category"] .subcat-grid>a.cs-subject-card{
    grid-template-columns:98px minmax(0,1fr)!important;min-height:112px!important;border-radius:12px!important
  }
  body.cooking[data-page="category"] .cs-subject-card-media{min-height:112px!important}
  body.cooking[data-page="category"] .cs-subject-card-body{padding:13px 14px!important}
  body.cooking[data-page="category"] .cs-subject-card-body strong{font-size:18px!important;line-height:1.1!important}
  body.cooking[data-page="category"] .cs-subject-card-desc{margin-top:5px!important;font-size:12px!important;line-height:1.35!important;-webkit-line-clamp:1!important}
  body.cooking[data-page="category"] .cs-subject-card-meta{margin-top:8px!important;font-size:10px!important}

  body.cooking[data-page="category"] .cat-products{min-width:0!important;padding:22px 0 48px!important}
  body.cooking[data-page="category"] .cat-products>.container,
  body.cooking[data-page="category"] .cat-layout,
  body.cooking[data-page="category"] .cat-main{min-width:0!important;max-width:100%!important}
  body.cooking[data-page="category"] .cat-toolbar{
    position:sticky!important;top:54px!important;z-index:80!important;display:grid!important;
    grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0 -1px 15px!important;padding:9px 0!important;
    border:0!important;border-bottom:1px solid #ded5ca!important;border-radius:0!important;background:rgba(251,247,241,.96)!important;
    box-shadow:0 7px 18px rgba(45,30,19,.06)!important;backdrop-filter:blur(14px)
  }
  body.cooking[data-page="category"] :is(.cat-sort-toggle,.cat-filter-toggle){
    display:flex!important;justify-content:center!important;min-width:0!important;min-height:46px!important;margin:0!important;padding:10px 12px!important;
    border:1px solid #d7cbbf!important;border-radius:10px!important;background:#fff!important;color:#30271f!important;
    font-size:14px!important;font-weight:800!important
  }
  body.cooking[data-page="category"] .cat-filter-toggle{border-color:#c86422!important;color:#a84a17!important}
  body.cooking[data-page="category"] .cat-filter-count{
    display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;
    background:#c86422;color:#fff;font-size:11px;font-weight:850
  }
  body.cooking[data-page="category"] .cat-filter-count[hidden]{display:none!important}
  body.cooking[data-page="category"] .cat-toolbar-count{display:none!important}

  body.cooking[data-page="category"] .sort-sheet.ss-open{display:block!important}
  body.cooking[data-page="category"] .sort-sheet .ss-backdrop{background:rgba(25,18,13,.54)!important;backdrop-filter:blur(2px)}
  body.cooking[data-page="category"] .sort-sheet .ss-panel{
    max-height:min(680px,calc(100dvh - 26px));overflow:auto;padding:6px 16px calc(18px + env(safe-area-inset-bottom))!important;
    border-radius:24px 24px 0 0!important;background:#fffdf9!important
  }
  body.cooking[data-page="category"] .ss-head{position:sticky;top:-6px;z-index:2;min-height:56px;background:#fffdf9!important;font-family:Georgia,serif;font-size:21px!important}
  body.cooking[data-page="category"] .ss-close{width:44px;height:44px;padding:0!important;border-radius:50%!important;font-size:29px!important}
  body.cooking[data-page="category"] .ss-item{align-items:center;min-height:54px;padding:13px 8px!important;font-size:16px!important}

  body.cooking[data-page="category"] .cat-filters.cf-open{
    display:block!important;position:fixed!important;inset:10px 0 0!important;z-index:10001!important;width:100%!important;
    max-height:calc(100dvh - 10px)!important;padding:0 18px calc(92px + env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;border:0!important;border-radius:24px 24px 0 0!important;background:#fffdf9!important;
    box-shadow:0 -18px 60px rgba(32,22,15,.32)!important;overscroll-behavior:contain
  }
  body.cooking[data-page="category"] .cat-filters.cf-open:before{
    content:"";position:sticky;top:0;display:block;width:42px;height:4px;margin:8px auto 0;border-radius:99px;background:#d9cec3
  }
  body.cooking[data-page="category"] .cf-head{
    position:sticky;top:0;z-index:4;min-height:60px;margin:0 -2px 4px!important;padding:10px 0 8px!important;
    border-bottom:1px solid #ded5ca!important;background:#fffdf9!important;font-family:Georgia,serif!important;font-size:22px!important
  }
  body.cooking[data-page="category"] .cf-close{display:flex!important;align-items:center;justify-content:center;width:44px;height:44px;padding:0!important;border-radius:50%!important;font-size:30px!important}
  body.cooking[data-page="category"] .cf-group{padding:14px 0!important}
  body.cooking[data-page="category"] .cf-title{margin-bottom:8px!important;font-size:12px!important}
  body.cooking[data-page="category"] .cf-check{min-height:44px!important;padding:7px 2px!important;font-size:16px!important}
  body.cooking[data-page="category"] .cf-check input{width:21px!important;height:21px!important}
  body.cooking[data-page="category"] .cf-lbl{font-size:15px!important}
  body.cooking[data-page="category"] .cf-cnt{font-size:12px!important}
  body.cooking[data-page="category"] .cf-price{min-height:48px!important;font-size:16px!important}
  body.cooking[data-page="category"] :is(.cf-more,.cf-reset,.intent-chip,.intent-all,.cf-decade){min-height:44px!important;font-size:14px!important}
  body.cooking[data-page="category"] .cf-more{display:flex;align-items:center;padding:8px 0!important}
  body.cooking[data-page="category"] .intent-chip{padding:9px 10px!important}
  body.cooking[data-page="category"] .cf-apply{
    position:fixed!important;z-index:10003!important;left:116px!important;right:18px!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;
    width:calc(100% - 134px)!important;min-height:52px!important;margin:0!important;border-radius:12px!important;
    box-shadow:0 -10px 28px 18px rgba(255,253,249,.96)!important;font-size:16px!important
  }
  body.cooking[data-page="category"] .cat-filters.cf-open .cf-reset{
    position:fixed!important;z-index:10004!important;left:18px!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;
    display:flex!important;align-items:center!important;justify-content:center!important;width:88px!important;min-height:52px!important;margin:0!important;
    border:1px solid #d8ccc0!important;border-radius:12px!important;background:#fffdf9!important;color:#65584e!important;font-size:14px!important;font-weight:800!important
  }

  body.cooking[data-page="category"] .cat-main>div:first-child{margin-bottom:14px!important}
  body.cooking[data-page="category"] .cat-main h2{font-size:26px!important;line-height:1.05!important}
  body.cooking[data-page="category"] .prod-grid-cat{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;min-width:0!important
  }
  body.cooking[data-page="category"] .prod-grid-cat>*{min-width:0!important;max-width:100%!important}
  body.cooking[data-page="category"] .prod-card{border-radius:12px!important}
  body.cooking[data-page="category"] .prod-card .pcard-cover{aspect-ratio:2/3!important}
  body.cooking[data-page="category"] .prod-card>div[style*="padding:12px"]{padding:10px 10px 12px!important}
  body.cooking[data-page="category"] .prod-card .pcard-title{min-height:38px!important;margin-bottom:8px!important;font-size:14px!important;line-height:1.35!important}
  body.cooking[data-page="category"] .prod-card .card-wish-btn{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;top:6px!important;right:6px!important}
  body.cooking[data-page="category"] .prod-card .card-wish-btn svg{width:18px!important;height:18px!important}
  body.cooking[data-page="category"] .prod-card .pcard-add-btn{min-height:46px!important;padding:9px 6px!important;font-size:13px!important}

  body.cooking[data-page="category"] .cat-shown-note{margin:18px 0 8px!important;font-size:13px!important}
  body.cooking[data-page="category"] .cat-shown-note+div,
  body.cooking[data-page="category"] .prod-grid-cat+div[style*="justify-content:center"]{gap:6px!important;margin-top:24px!important}
  body.cooking[data-page="category"] .prod-grid-cat+div a,
  body.cooking[data-page="category"] .prod-grid-cat+div span{min-width:44px!important;min-height:44px!important}
}

@media (max-width: 380px) {
  body.cooking[data-page="category"] .cat-hero-with-image>.container{height:300px!important}
  body.cooking[data-page="category"] .cat-hero-h1{font-size:36px!important}
  body.cooking[data-page="category"] .subcat-grid>a.cs-subject-card{grid-template-columns:88px minmax(0,1fr)!important}
  body.cooking[data-page="category"] .cs-subject-card-media{min-height:108px!important}
  body.cooking[data-page="category"] .cs-subject-card-body{padding:12px!important}
  body.cooking[data-page="category"] .cs-subject-card-body strong{font-size:17px!important}
  body.cooking[data-page="category"] .prod-grid-cat{gap:8px!important}
}
