/* WTC Category Gallery pack: style scoped to selected RestroPress template pack. */
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .rpress-categories-menu,
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .cat-lists,
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .rpress-mobile-menu-category { display:none!important; }
/* Restore RestroPress's original top category navigation on Gallery home AND detail.
   In List mode the native container is named 'mobile' but needs to be visible
   on desktop too; Grid keeps RestroPress's own responsive desktop/mobile rails. */
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .rpress-mobile-menu-wrap {display:block!important;}
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .pn-ProductNav_Link.wtc-gallery-nav-unavailable,
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .cd-dropdown-content a.wtc-gallery-nav-unavailable {display:none!important;}
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .pn-ProductNav_Link.wtc-gallery-nav-active {color:var(--rpc-primary,#bc3653)!important; font-weight:700; border-bottom:3px solid var(--rpc-primary,#bc3653)!important;}
/* RestroPress calculates one moving underline by scroll position. Gallery is a
   stateful filter, so use the selected chip's own underline instead. */
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .pn-ProductNav_Indicator {display:none!important;}
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .wtc-category-gallery {scroll-margin-top:110px;}
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .wtc-category-gallery{display:block;width:100%;min-width:0;margin:22px 0 12px;clear:both;}
body.rp-pack-wtc-category-gallery .wtc-category-gallery {display:none; color:var(--rpc-ink,inherit);font-family:var(--rpc-font-body,inherit);}
body.rp-pack-wtc-category-gallery .wtc-gallery-heading {font-size:clamp(1.35rem,2.7vw,1.85rem);line-height:1.3;font-weight:750;margin:0 0 20px;}
body.rp-pack-wtc-category-gallery .wtc-gallery-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
@media(min-width:850px){body.rp-pack-wtc-category-gallery .wtc-gallery-cards{grid-template-columns:repeat(3,minmax(0,1fr));}}
body.rp-pack-wtc-category-gallery .wtc-gallery-card{display:block;box-sizing:border-box;min-width:0;overflow:hidden;border:1px solid var(--rpc-border-subtle,#dedede);border-radius:15px;background:#fff;padding:0;cursor:pointer;text-align:left;box-shadow:0 3px 18px rgba(0,0,0,.06);transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease;color:inherit;font:inherit;}
body.rp-pack-wtc-category-gallery .wtc-gallery-card:hover{transform:translateY(-2px);box-shadow:0 9px 27px rgba(0,0,0,.11);border-color:var(--rpc-primary,#df526b);}
body.rp-pack-wtc-category-gallery .wtc-gallery-card:focus-visible,
body.rp-pack-wtc-category-gallery .wtc-gallery-back:focus-visible{outline:3px solid var(--rpc-primary,#df526b);outline-offset:3px;}
body.rp-pack-wtc-category-gallery .wtc-gallery-card[hidden]{display:none!important;}
body.rp-pack-wtc-category-gallery .wtc-gallery-image{display:block;width:100%;aspect-ratio:1.5;overflow:hidden;background:var(--rpc-surface,#f6f4f2);}
body.rp-pack-wtc-category-gallery .wtc-gallery-photo{display:block;width:100%;height:100%;object-fit:cover;}
body.rp-pack-wtc-category-gallery .wtc-gallery-fallback{display:grid;place-items:center;width:100%;height:100%;font-size:2.5rem;opacity:.65;}
body.rp-pack-wtc-category-gallery .wtc-gallery-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px;padding:14px 16px;}
body.rp-pack-wtc-category-gallery .wtc-gallery-card-title{font-size:1rem;font-weight:700;overflow-wrap:anywhere;}
body.rp-pack-wtc-category-gallery .wtc-gallery-card-arrow{color:var(--rpc-primary,#df526b);font-size:1.3rem;font-weight:700;}
/* RestroPress's own List/Grid setting controls BOTH the gallery cards and the product layout. */
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .wtc-gallery-layout-list .wtc-gallery-cards{grid-template-columns:1fr;}
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .wtc-gallery-layout-list .wtc-gallery-card{display:flex;align-items:center;}
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .wtc-gallery-layout-list .wtc-gallery-image{width:135px;min-width:135px;aspect-ratio:1.25;}
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .wtc-gallery-layout-list .wtc-gallery-card-footer{flex:1;}
body.rp-pack-wtc-category-gallery .wtc-gallery-navigation[hidden]{display:none!important;}
body.rp-pack-wtc-category-gallery .wtc-gallery-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:0 0 16px;}
body.rp-pack-wtc-category-gallery .wtc-gallery-back{background:var(--rpc-primary-tint,#fce7ec);border:1px solid var(--rpc-primary-tint-border,#e8bbca);color:var(--rpc-primary,#bc3653);font:inherit;font-weight:700;cursor:pointer;padding:10px 14px;border-radius:12px;}
body.rp-pack-wtc-category-gallery .wtc-gallery-selected-title{font-size:1.3rem;font-weight:700;margin:0;}
/* Home: category pictures, not a second parallel product list. Toolbar/cart remain interactive. */
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready:not(.wtc-gallery-detail):not(.wtc-gallery-search) .rpress_fooditems_list,
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready:not(.wtc-gallery-detail):not(.wtc-gallery-search) .rpress_fooditems_grid > .rpress-grid-main-wrap{display:none!important;}
/* Detail/search: keep the native product cards and checkout controls. */
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-detail .wtc-gallery-home,
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-search .wtc-gallery-home{display:none!important;}
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-detail .wtc-gallery-filtered{display:none!important;}
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .rpress_fooditems_list > .rp-col-lg-8{width:100%;max-width:100%;float:none;}
body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .rpress_fooditems_list > .rp-col-lg-8 > .wtc-menu-search-empty[hidden]{display:none!important;}
.wtc-category-image-preview {display:block;max-width:130px;height:auto;margin:8px 0;border-radius:6px;}
.wtc-category-image-field .button{margin-right:6px;margin-top:8px;}
@media(max-width:560px){body.rp-pack-wtc-category-gallery .wtc-gallery-cards{gap:10px;}body.rp-pack-wtc-category-gallery .wtc-gallery-card-footer{padding:11px;}body.rp-pack-wtc-category-gallery .wtc-gallery-card-title{font-size:.94rem;}body.rp-pack-wtc-category-gallery .rpress-section.wtc-gallery-ready .wtc-gallery-layout-list .wtc-gallery-image{width:108px;min-width:108px;}}
@media(prefers-reduced-motion:reduce){body.rp-pack-wtc-category-gallery .wtc-gallery-card{transition:none;}}
