/* Scoped search UI: native Astra menu/logo and the home plugin remain in place. */
.mps-search, .mps-search *, .mps-results, .mps-results * { box-sizing: border-box; }
.mps-search { position: relative; width: 100%; min-width: 0; color: #242222; font-family: inherit; font-weight: 400; text-align: left; line-height: 1.4; text-transform: none; letter-spacing: normal; }
.mps-search [hidden] { display: none !important; }
.mps-search .mps-form { display: flex; align-items: center; width: 100%; height: 46px; margin: 0; padding: 0 4px 0 16px; border: 1px solid #666060; border-radius: 28px; background: #fff; overflow: hidden; }
.mps-search .mps-form:focus-within { outline: 2px solid #a69a80; outline-offset: 3px; }
.mps-search .mps-input { flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; color: #242222; font: inherit; font-size: 14px; appearance: none; }
.mps-search .mps-input::placeholder { color: #686363; opacity: 1; }
.mps-search .mps-input:focus, .mps-search .mps-input:focus-visible { outline: none !important; box-shadow: none; border: 0; }
.mps-search .mps-input::-webkit-search-cancel-button { display: none; }
.mps-search .mps-submit, .mps-search .mps-clear { display: flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; box-shadow: none; background: transparent; color: #242222; cursor: pointer; line-height: 1; }
.mps-search .mps-clear { flex-basis: 28px; width: 28px; font-size: 25px; font-weight: 400; }
.mps-search .mps-submit:hover, .mps-search .mps-clear:hover { background: #f0eded; }
.mps-search .mps-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mps-search .mps-submit:focus-visible, .mps-search .mps-clear:focus-visible, .mps-search a:focus-visible, .mps-results a:focus-visible { outline: 2px solid #716343; outline-offset: -3px; }
.mps-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.mps-search.is-open { z-index: 1001; }
.mps-search .mps-panel { position: absolute; z-index: 1002; top: calc(100% + 10px); right: 0; width: min(420px, calc(100vw - 32px)); max-height: min(540px, 70vh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #e6e1dd; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px #0003; color: #242222; }
.mps-search .mps-panel-label { margin: 0; padding: 16px 18px 8px; color: #726b64; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mps-search .mps-message { margin: 0; padding: 12px 18px 20px; color: #58524c; font-size: 14px; }
.mps-search .mps-option { display: flex; align-items: center; gap: 14px; min-height: 82px; margin: 0; padding: 12px 18px; border: 0; border-bottom: 1px solid #f0ece8; background: #fff; color: #242222; text-decoration: none; }
.mps-search .mps-option:hover, .mps-search .mps-option[aria-selected="true"] { background: #f5f2ed; color: #242222; }
.mps-search .mps-option img { display: block; flex: 0 0 56px; width: 56px; height: 56px; margin: 0; border-radius: 6px; object-fit: contain; background: #faf9f7; }
.mps-search .mps-option-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mps-search .mps-option-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.mps-search .mps-option-sku { color: #736c65; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.mps-search .mps-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 0; background: #f8f6f3; color: #242222; text-decoration: none; font-size: 13px; font-weight: 700; }
.mps-search .mps-all:hover { background: #eee9e2; }
.mps-search .mps-all span { font-size: 21px; }
.mps-search--desktop { flex: 0 0 clamp(150px, 12vw, 224px); width: clamp(150px, 12vw, 224px); margin-left: clamp(10px, 1vw, 20px); }
.moleskine-search-enabled #masthead { z-index: 100; }
.moleskine-search-enabled #ast-desktop-header .ast-builder-menu-1 { overflow: visible; }
.mps-mobile-row { padding: 4px 20px 18px; background: #1f1d1d; }
.mps-search--mobile { max-width: 600px; margin: 0 auto; }
.mps-search--mobile .mps-form { height: 50px; }
.mps-search--mobile .mps-input { font-size: 16px; }
.mps-search--mobile .mps-panel { width: 100%; }
@media (min-width: 922px) {
    .moleskine-search-enabled #ast-desktop-header .ast-builder-menu-1 { flex-wrap: nowrap; }
}
@media (min-width: 922px) and (max-width: 1599px) {
    .moleskine-search-enabled .site-header .site-primary-header-wrap { padding-right: clamp(16px, 2.5vw, 40px) !important; padding-left: clamp(16px, 2.5vw, 40px) !important; }
    .moleskine-search-enabled .site-header .custom-logo, .moleskine-search-enabled .site-header .site-logo-img img { width: clamp(130px, 13vw, 208px) !important; max-width: clamp(130px, 13vw, 208px) !important; }
    .moleskine-search-enabled .site-header .main-header-menu > .menu-item > .menu-link { padding-right: clamp(4px, .55vw, 9px); padding-left: clamp(4px, .55vw, 9px); font-size: clamp(11px, .9vw, 14px); white-space: nowrap; }
}
/* Visibility is inherited from Astra's desktop/mobile containers, not a second
   competing breakpoint. This also preserves the no-JavaScript header. */

/* Independent results page; no changes to category or blog layouts. */
body.moleskine-search-results { background: #fff; }
body.moleskine-search-results .site-content, body.moleskine-search-results .site-content > .ast-container { display: block; width: 100%; max-width: none; margin: 0; padding: 0; background: #fff; }
body.moleskine-search-results #primary.mps-results { float: none; width: 100%; max-width: none; min-height: 55vh; margin: 0; padding: 48px clamp(20px, 5vw, 96px) 64px; border: 0; color: #242222; }
body.moleskine-search-results #secondary { display: none; }
.mps-results-heading { margin-bottom: 40px; }
.mps-results .mps-eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #706b65; }
.mps-results h1 { margin: 0 0 12px; font-size: clamp(26px, 2.5vw, 42px); line-height: 1.2; font-weight: 400; overflow-wrap: anywhere; }
.mps-results-heading > p:not(.mps-eyebrow) { margin: 0 0 20px; color: #6a645e; font-size: 14px; }
.mps-search--page { max-width: 480px; margin-top: 20px; }
.mps-search--page .mps-form { height: 50px; border-color: #b6afa7; }
.mps-search--page .mps-panel { right: auto; left: 0; width: 100%; }
.mps-results .mps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; margin: 0; padding: 0; list-style: none; }
.mps-results .mps-card { min-width: 0; margin: 0; padding: 0; text-align: center; }
.mps-results .mps-card a { display: block; color: #242222; text-decoration: none; }
.mps-results .mps-card-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; width: 100%; margin-bottom: 18px; overflow: hidden; border-radius: 10px; }
.mps-results .mps-card-image img { width: 100%; height: 100%; max-width: 100%; margin: 0; object-fit: contain; }
.mps-results .mps-card h2 { margin: 0; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.3; font-weight: 400; overflow-wrap: anywhere; }
.mps-results .mps-card-sku { margin: 8px 0 0; font-size: 12px; color: #706b65; overflow-wrap: anywhere; }
.mps-results .mps-empty { padding: 40px 0 70px; }
.mps-results .mps-empty h2 { margin-bottom: 12px; font-size: 22px; font-weight: 400; }
.mps-results .mps-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 48px; font-size: 14px; }
.mps-results .mps-pagination a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid #d5cec6; border-radius: 50%; color: #242222; text-decoration: none; font-size: 24px; }
.mps-results .mps-pagination a:hover { background: #f5f2ed; }
@media (max-width: 921px) {
    body.moleskine-search-results #primary.mps-results { padding-top: 30px; }
    .mps-results .mps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
    .mps-search--page .mps-input { font-size: 16px; }
}
@media (max-width: 600px) {
    .mps-results .mps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
    .mps-results-heading { margin-bottom: 30px; }
    .mps-results .mps-card-image { margin-bottom: 12px; }
}
