/* Reference-led mobile merchandising. Shared across search and category pages. */
:root{--merch-ink:#292d30;--merch-warm:#f1f0ed}
.rk-merch-listing,.rk-live-search{--merch-muted:#777673;--merch-line:#e8e6e2;color:var(--merch-ink);font-family:inherit;text-align:left}
.rk-live-search button,.rk-merch-listing button{font-family:inherit;cursor:pointer}
.rk-live-search{padding:0 4px 18px}
.rk-search-sections{padding:0 0 8px;border-bottom:1px solid var(--merch-line)}
.rk-search-sections:empty{display:none}
.rk-search-sections>button{display:flex;align-items:center;gap:13px;width:100%;min-height:62px;border:0;background:none;padding:7px 0;text-align:left;color:inherit}
.rk-search-sections img{width:42px;height:42px;border-radius:4px;object-fit:contain}
.rk-search-sections>button>span{flex:1;min-width:0;display:grid;gap:3px}
.rk-search-sections strong{font-size:16px;font-weight:500}.rk-search-sections small{font-size:12px;color:var(--merch-muted)}
.rk-search-product{display:flex;gap:13px;align-items:center;width:100%;min-height:88px;padding:12px 0;border:0;border-bottom:1px solid var(--merch-line);background:none;text-align:left;color:inherit}
.rk-search-product>img{width:56px;height:62px;object-fit:contain;border-radius:5px}
.rk-search-product>span{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.rk-search-product-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.35}
.rk-search-product>span>small{color:var(--merch-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rk-merch-price{display:flex;flex-direction:column;gap:3px;line-height:1.3;min-width:0}
.rk-merch-price strong{font-size:17px;font-weight:650;letter-spacing:-.3px;line-height:1.25}
.rk-merch-price strong small{font-size:13px;font-weight:400;letter-spacing:0;white-space:nowrap}
.rk-merch-price>span{font-size:12px;color:var(--merch-muted);line-height:1.4}
.rk-search-all{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:none;padding:19px 0;font-size:15px;color:inherit}
.rk-search-refiners{display:flex;gap:8px;overflow:auto;scrollbar-width:none;padding:6px 0 10px}
.rk-search-refiners button{display:flex;align-items:center;gap:6px;white-space:nowrap;background:var(--merch-warm);border:0;border-radius:22px;padding:10px 14px;font-size:14px;color:inherit}
.rk-merch-listing{margin:0 -16px;padding-bottom:24px}
.rk-merch-heading{display:flex;gap:12px;align-items:center;padding:4px 16px 18px}
.rk-merch-heading>button{border:0;background:none;display:grid;place-items:center;width:36px;height:44px;padding:0;flex-shrink:0;color:inherit}
.rk-merch-heading h1{font-size:23px;line-height:1.2;letter-spacing:-.4px;margin:0 0 5px;font-weight:650}
.rk-merch-heading small{font-size:12px;color:var(--merch-muted)}
.rk-category-recommendations{background:var(--merch-warm);padding:18px 0}
.rk-category-recommendations h2{margin:0 16px 13px;text-transform:uppercase;font-size:15px;font-weight:650;letter-spacing:.1px}
.rk-category-recommendations>div{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:0 16px}
.rk-category-recommendations>div>button{flex:0 0 158px;scroll-snap-align:start;min-width:0;border:0;border-radius:7px;background:#fff;padding:10px;text-align:left;color:inherit}
.rk-category-recommendations img{display:block;width:100%;height:118px;object-fit:contain;border-radius:4px;margin-bottom:10px}
.rk-category-recommendations>div>button>span{font-size:12px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-top:7px;height:49px}
.rk-category-recommendations .rk-merch-price strong{font-size:16px}.rk-category-recommendations .rk-merch-price strong small{font-size:11px}
.rk-merch-filters{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;padding:16px 12px 12px}
.rk-filter-round{position:relative;display:grid;place-items:center;flex:0 0 40px;height:40px;border:0;border-radius:50%;background:#303235;color:#fff;padding:0}
.rk-filter-round b{position:absolute;right:-3px;top:-3px;background:#e5282b;color:white;border-radius:10px;padding:1px 5px;font-size:11px}
.rk-filter-pill{display:flex;align-items:center;gap:7px;flex-shrink:0;min-height:40px;border:0;border-radius:22px;padding:9px 13px;background:var(--merch-warm);color:inherit;font-size:13px;white-space:nowrap}
.rk-filter-pill[aria-pressed=true]{background:#303235;color:white}
.rk-merch-result-line{display:flex;justify-content:space-between;align-items:center;padding:0 16px 12px;font-size:12px;color:var(--merch-muted)}
.rk-merch-result-line button{border:0;background:none;font-size:12px;text-decoration:underline;color:inherit}
.rk-merch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--merch-line)}
.rk-merch-card{display:flex;flex-direction:column;min-width:0;padding:12px 12px 16px;border-bottom:1px solid var(--merch-line);background:#fff;border-radius:0}
.rk-merch-card:nth-child(odd){border-right:1px solid var(--merch-line)}
.rk-merch-visual{position:relative;min-width:0;margin-bottom:12px}
.rk-merch-photos{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:7px;gap:8px;overscroll-behavior:none}
.rk-merch-photos::-webkit-scrollbar{display:none}
.rk-merch-photos>.rk-photo-frame{scroll-snap-align:start;scroll-snap-stop:always;flex:0 0 100%;min-width:0;aspect-ratio:1;border:0;padding:0;background:#f8f8f7;overflow:clip;border-radius:7px;display:block}
.rk-merch-photos img{pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none;display:block;width:100%;height:100%;object-fit:contain;object-position:center;mix-blend-mode:multiply}
.rk-merch-dots{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:0;background:#fff;border-radius:12px;box-shadow:0 1px 3px #00000012;padding:0 3px}
.rk-merch-dots button{position:relative;border:0;width:17px;height:22px;background:none;padding:0;border-radius:0}
.rk-merch-dots button:after{content:'';position:absolute;width:5px;height:5px;left:6px;top:8px;background:#d3d3d1;border-radius:50%}
.rk-merch-dots button[aria-pressed=true]:after{background:#303235}
.rk-merch-title{padding:0;border:0;background:none;color:inherit;text-align:left;font-size:14px;font-weight:400;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;height:78.4px;margin-bottom:14px}
.rk-merch-card>.rk-merch-price{margin-top:auto;min-height:46px;margin-bottom:12px}
.rk-merch-actions{display:flex;align-items:flex-end;gap:5px;min-height:42px}
.rk-merch-actions>.rk-purchase{flex:1;min-width:0}
.rk-merch-actions .rk-purchase-add{width:100%;height:40px;min-height:40px;margin:0;border:0;border-radius:5px;background:#f0efed;color:#35383a;font-size:13px;font-weight:500;padding:0 7px;gap:4px;box-shadow:none;white-space:nowrap}
.rk-merch-actions .rk-purchase-add svg{display:none}
.rk-merch-heart{flex:0 0 33px;display:grid;place-items:center;width:33px;height:40px;background:none;border:0;padding:0;color:#666765;border-radius:4px}
.rk-merch-heart[aria-pressed=true]{color:#dc252b}
.rk-merch-actions .rk-purchase-confirm{font-size:10px;white-space:nowrap;margin-bottom:4px}
.rk-merch-actions .rk-purchase-stepper{width:100%;height:40px;min-height:40px;gap:0;border-radius:5px}
.rk-merch-actions .rk-purchase-stepper button{width:30px;min-width:26px;height:38px;padding:0}
.rk-merch-actions .rk-purchase-stepper input{width:34px;min-width:20px;flex:1;font-size:14px}
.rk-merch-more{display:block;margin:22px auto 0;border:1px solid var(--merch-line);background:#fff;color:inherit;border-radius:7px;min-height:44px;padding:10px 20px;font-size:14px}
.rk-filter-dialog{border:0;border-radius:18px 18px 0 0;background:#fff;color:#292d30;position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,520px);max-width:100%;max-height:78dvh;padding:20px 20px calc(20px + env(safe-area-inset-bottom));box-sizing:border-box;overflow:auto}
.rk-filter-dialog::backdrop,.rk-share-fallback::backdrop{background:#0006}
.rk-filter-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.rk-filter-dialog h2{font-size:20px;margin:0}
.rk-filter-dialog header button{display:grid;place-items:center;width:40px;height:40px;border:0;background:#f1f0ed;border-radius:50%;color:inherit}
.rk-filter-dialog fieldset{border:0;padding:0;margin:20px 0}.rk-filter-dialog legend{font-weight:600;font-size:15px;margin-bottom:10px}
.rk-filter-dialog label{display:flex;align-items:center;gap:12px;min-height:44px;font-size:16px}.rk-filter-dialog input[type=checkbox],.rk-filter-dialog input[type=radio]{width:20px;height:20px;accent-color:#303235}
.rk-filter-range{display:flex;gap:10px}.rk-filter-range input{width:50%;min-width:0;box-sizing:border-box;border:1px solid #d8d7d4;border-radius:7px;padding:12px;font:inherit;font-size:16px}
.rk-filter-apply{position:sticky;bottom:0;border:0;background:#303235;color:#fff;font-weight:600;font-size:15px;padding:15px;width:100%;border-radius:8px;margin-top:20px}
.rk-share-fallback{position:fixed;inset:0;margin:auto;width:min(340px,calc(100% - 40px));max-height:70dvh;border:0;border-radius:16px;padding:22px;box-sizing:border-box;background:#f3f3f1;color:#303235}
.rk-share-fallback h2{font-size:19px;margin:0 0 10px}.rk-share-fallback p{font-size:14px;line-height:1.45;margin:0 0 14px}
.rk-share-fallback input{display:block;box-sizing:border-box;width:100%;font-size:16px;border:1px solid #d5d5d2;border-radius:7px;background:#fff;padding:11px;min-width:0}
.rk-share-fallback>div{display:flex;gap:8px;margin-top:16px}
.rk-product-page-header .rk-share-fallback button{position:static;display:flex;align-items:center;justify-content:center;gap:6px;width:auto;height:42px;padding:0 12px;background:#fff;border:0;border-radius:7px;font-size:13px;white-space:nowrap}
.rk-product-page{animation:rk-product-enter 280ms cubic-bezier(.22,.7,.2,1) both}
@keyframes rk-product-enter{from{transform:translateX(100%);opacity:.7}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.rk-product-page{animation:none}}
@media(max-width:370px){.rk-merch-card{padding:10px 9px 14px}.rk-merch-title{font-size:13px;height:73px}.rk-merch-price strong{font-size:16px}.rk-merch-heart{flex-basis:28px;width:28px}}

.rk-merch-actions .rk-purchase-row{gap:0}.rk-merch-actions .rk-purchase-saved{display:none}
.rk-screen[data-screen=catalog] .app-scroll{background:#fff}
.rk-merch-listing{margin-left:-20px;margin-right:-20px}
.rk-search-listing{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rk-search-listing .rk-store-search{flex:0 0 56px;width:56px;min-width:56px;padding:0!important;position:relative}
.rk-search-listing .rk-search-symbol{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.rk-search-listing .rk-store-search input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}
.rk-search-listing .rk-store-search button{display:none}
.rk-dock-filters{display:flex;align-items:center;justify-content:center;gap:9px;background:#303235;color:white;border:0;border-radius:28px;padding:0 22px;height:56px;font:inherit;font-size:15px;box-shadow:var(--rk-dock-shadow)}
.rk-recommendation-card>.rk-merch-price{padding:10px 0 5px}
.products-grid:has(>.rk-merch-card){--merch-line:#e8e6e2;--merch-muted:#777673;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid var(--merch-line);margin-inline:-20px}
.rk-merch-card{color:#292d30;--merch-line:#e8e6e2;--merch-muted:#777673}
.rk-merch-card button{font-family:inherit}
.rk-dock-refiners{position:absolute;bottom:calc(10px + max(0px,var(--rk-inset-bottom) - 14px));left:24px;right:24px;display:flex;gap:8px;overflow:auto;scrollbar-width:none;pointer-events:auto;padding:0}
.rk-dock-refiners button{display:flex;align-items:center;gap:5px;white-space:nowrap;flex-shrink:0;min-height:32px;border:1px solid #e4e3df;border-radius:18px;background:#f4f3f0;color:#303235;font:inherit;font-size:13px;padding:5px 12px;box-shadow:0 2px 5px #00000008}
html[data-nav-preview="1"] .app-bottom:has(.rk-dock-refiners){padding-bottom:calc(60px + max(0px,var(--rk-inset-bottom) - 14px))}
html[data-nav-preview="1"].rk-keyboard .app-bottom:has(.rk-dock-refiners){padding-bottom:48px}
.rk-keyboard .rk-dock-refiners{bottom:6px}
html[data-nav-preview="1"] .rk-screen:has(.rk-dock-refiners)>.app-scroll{padding-bottom:calc(142px + var(--rk-inset-bottom))}
html[data-nav-preview="1"] .app-bottom:has(.rk-dock-refiners){background:linear-gradient(180deg,#ffffff00,#fff 14px)}
.rk-merch-card:nth-child(odd){border-right:0;box-shadow:inset -1px 0 var(--merch-line)}
.rk-merch-actions .rk-purchase-confirm{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;padding:0}
/* Compact category chrome and a single dismissible bottom sheet. */
.rk-merch-heading{gap:10px;min-height:44px;padding:0 16px 10px}
.rk-merch-heading h1{flex:1;min-width:0;font-size:22px;line-height:1.25;margin:0}
.rk-merch-heading>small{flex-shrink:0;margin-left:auto;font-size:12px;white-space:nowrap;color:#777673}
.rk-merch-heading>button{width:30px;height:44px}
.rk-search-listing .rk-search-symbol{width:100%;height:100%;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;left:0!important;top:0!important;transform:none!important;flex:none}
.rk-search-listing .rk-search-symbol svg{display:block;margin:0;transform:none;width:25px;height:25px}
.rk-dock-filters{box-shadow:none!important;border:0!important;outline:0;background:#303235;background-image:none}
.rk-merch-dots{bottom:0;min-height:20px;border:0;padding:0 2px;box-shadow:none;background:transparent;gap:0}
.rk-merch-dots button{width:16px;height:22px}
.rk-merch-dots button:after{width:4px;height:4px;top:10px;left:6px;background:#ccc;box-shadow:0 0 1px #fff}
.rk-merch-dots button[aria-pressed=true]:after{background:#303235;box-shadow:0 0 1px #fff}
.rk-filter-dialog{padding:0;overflow:hidden;max-height:78dvh;outline:none}
.rk-filter-dialog[open]{display:flex;flex-direction:column;animation:rk-filter-enter 240ms cubic-bezier(.22,.7,.2,1)}
.rk-filter-drag{flex:none;touch-action:none}
.rk-filter-handle{display:grid;place-items:center;width:100%;height:25px;padding:0;border:0;background:none;touch-action:none;cursor:grab}
.rk-filter-handle span{width:34px;height:4px;border-radius:4px;background:#c9c8c5}
.rk-filter-dialog header{margin:0;padding:0 20px 15px}
.rk-filter-dialog .rk-filter-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 20px 20px}
.rk-filter-dialog .rk-filter-body>fieldset:first-child{margin-top:0}
.rk-filter-footer{flex:none;background:#fff;padding:12px 20px calc(16px + var(--rk-inset-bottom,env(safe-area-inset-bottom)));border-top:1px solid #eeedeb}
.rk-filter-footer .rk-filter-apply{position:static;margin:0}
.rk-filter-dialog:has(.rk-filter-options) .rk-filter-body{padding-bottom:calc(20px + var(--rk-inset-bottom,env(safe-area-inset-bottom)))}
@keyframes rk-filter-enter{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.rk-filter-dialog[open]{animation:none}}

.rk-product-gallery{position:relative}
.rk-product-favorite{position:absolute;z-index:2;top:12px;right:12px;width:44px;height:44px!important;min-height:44px!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.96)!important;box-shadow:0 2px 10px rgb(0 0 0 / .08);display:grid;place-items:center;padding:0!important}
.rk-product-favorite[aria-pressed=true],.rk-merch-heart[aria-pressed=true]{color:var(--rk-red)}
.rk-favorites-note{color:var(--rk-muted);font-size:13px;line-height:1.45;margin:0 0 18px}
.rk-favorite-unavailable{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid var(--rk-line);font-size:14px}
.rk-favorite-unavailable button{background:none;border:0;text-decoration:underline;color:var(--rk-muted);min-height:44px}
/* Shared neutral controls and gallery pager at the photo's lower edge. */
:root{--rk-neutral-gradient:linear-gradient(115deg,#e9e9e7 0%,#f3f3f1 100%);--rk-dock-action-gradient:linear-gradient(115deg,#303538 0%,#454b4e 100%);--rk-neutral-shadow:inset 0 1px 1px #ffffff85,0 5px 14px #252c2f16,0 1px 3px #252c2f08}
.rk-filter-pill:not([aria-pressed=true]),.rk-filter-apply,.rk-merch-actions .rk-purchase-add{background:var(--rk-neutral-gradient);color:var(--merch-ink);box-shadow:var(--rk-neutral-shadow)}
.rk-merch-dots{bottom:-6px;background:#fff;border-radius:9px 9px 0 0;padding:0 3px;min-height:12px;height:12px;gap:0;box-shadow:none}
.rk-merch-dots button{width:8px;height:12px;padding:0}.rk-merch-dots button:after{width:4px;height:4px;left:2px;top:4px;background:#e1dfd7;box-shadow:none}.rk-merch-dots button[aria-pressed=true]:after{background:#252c2f;box-shadow:none}

.rk-filter-pill:not([aria-pressed=true]),.rk-filter-apply,.rk-merch-actions .rk-purchase-add{color:var(--merch-ink)}

/* Detail gallery reuses the list rail, including in-flow image hit testing. */
.rk-merch-photos.rk-detail-photos{gap:14px;border-radius:12px}
.rk-merch-photos.rk-detail-photos>.rk-photo-frame{aspect-ratio:var(--rk-photo-ratio,1);max-height:500px;border-radius:12px;background:#fff}
.rk-merch-photos.rk-detail-photos img{mix-blend-mode:normal}

.rk-merch-filter-bar{display:flex;align-items:center;gap:8px;padding:16px 12px 12px}
.rk-merch-filter-bar>.rk-merch-filters{flex:1;min-width:0;padding:0}
.rk-merch-filter-actions{display:flex;flex:none;gap:8px;margin-left:auto}
.rk-merch-heading{padding:10px 16px 18px}

/* Mobile reference: one edge-to-edge rail, flat controls, no clipping shadows. */
.rk-merch-filter-bar{display:block;min-width:0;padding:0;margin:0}
.rk-merch-filter-bar>.rk-merch-filters{box-sizing:border-box;width:100%;min-width:0;gap:8px;padding:12px 16px 16px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-padding-inline:16px;mask-image:none;-webkit-mask-image:none}
.rk-merch-filters::-webkit-scrollbar{display:none}
.rk-merch-filter-actions{gap:8px;margin:0;align-items:center}
.rk-merch-filters .rk-filter-round{flex:0 0 32px;width:32px;height:32px;background:#242b2e;box-shadow:none;filter:none}
.rk-merch-filters .rk-filter-pill{height:32px;min-height:32px;padding:0 12px;border-radius:18px;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;background:#e4e2d9;color:#242b2e;box-shadow:none;filter:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.rk-merch-filters .rk-filter-pill[aria-pressed=true]{background:#242b2e;color:#fff}
.rk-merch-filters button:focus-visible{outline:2px solid #242b2e;outline-offset:2px}
.rk-merch-listing>.rk-merch-heading{margin-bottom:0;padding-bottom:0}

.rk-merch-actions .rk-purchase{--rk-purchase-surface:var(--rk-neutral-gradient)}
.rk-merch-actions .rk-purchase-add{background:var(--rk-purchase-surface)}
