/* Shared catalogue search, saved products, and mobile shopping navigation. */
.sb-discovery-dialog {
  inset: 0;
  width: min(720px, calc(100vw - 24px));
  height: min(740px, calc(100vh - 32px));
  height: min(740px, calc(100dvh - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #081716;
  box-shadow: 0 24px 80px rgba(3, 13, 11, .3);
  overflow: hidden;
  font: 400 14px/1.5 "Lato", sans-serif;
  color-scheme: light;
}
.sb-discovery-dialog:not([open]) { display: none !important; }
.sb-discovery-dialog[open] { display: flex; flex-direction: column; animation: sb-discovery-enter 220ms cubic-bezier(.16, 1, .3, 1); }
#sb-wishlist-dialog, #sb-cart-dialog { height: fit-content; }
.sb-quote-list-quantity { color: #345648; font-size: 12px; line-height: 1.5; }
#sb-cart-dialog .sb-discovery-product-name { display: block; width: 100%; min-height: 44px; }
#site-header .sb-mobile-header .cart-popup { display: none !important; }
@media (min-width: 300px) and (max-width: 991px) { #site-header .sb-mobile-header .cart-icon { width: 44px; } }
.sb-discovery-dialog::backdrop { background: rgba(3, 13, 11, .64); }
.sb-discovery-dialog [hidden], .sb-mobile-tabbar [hidden] { display: none !important; }
.sb-discovery-dialog svg { width: 22px; height: 22px; flex: 0 0 auto; }
.sb-discovery-dialog button, .sb-discovery-dialog a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sb-discovery-dialog button { cursor: pointer; }
.sb-discovery-dialog :is(button,a):focus-visible { outline: 2px solid #b18b00; outline-offset: 3px; }
.sb-discovery-dialog :is(button,a):active { opacity: .75; }
.sb-discovery-dialog ::selection { background: #ffd84d; color: #081716; }
.sb-discovery-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; flex: 0 0 auto; padding: 24px; background: #081716; color: #fff; }
.sb-discovery-header > div { min-width: 0; }
.sb-discovery-header h2 { margin: 0; color: #fff; font: 500 34px/1.08 "Cormorant Garamond", serif; }
.sb-discovery-header p { margin: 8px 0 0; min-height: 21px; color: #dbe7e1; font-size: 14px; }
.sb-discovery-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: -4px -6px 0 0; padding: 0; border: 1px solid #60706b; border-radius: 50%; background: transparent; color: #ffd84d; }
.sb-discovery-header :is(button,a):focus-visible { outline-color: #ffd84d; }
.sb-discovery-search-form { flex: 0 0 auto; margin: 0; padding: 16px 24px; border-bottom: 1px solid #e0e8e3; }
.sb-discovery-search-form label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #29483e; }
.sb-discovery-search-field { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 14px; border: 1px solid #9eafa7; border-radius: 8px; background: #fbfcfb; }
.sb-discovery-search-field:focus-within { outline: 2px solid #ffd84d; outline-offset: 2px; border-color: #081716; }
.sb-discovery-search-field input { flex: 1; min-width: 0; width: 100%; height: 48px; margin: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; color: #081716; caret-color: #081716; font: 400 16px/1.4 "Lato", sans-serif; }
.sb-discovery-search-field input::placeholder { color: #52695f; opacity: 1; }
.sb-discovery-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sb-discovery-search-field button { display: grid; place-items: center; flex: 0 0 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #29483e; }
.sb-discovery-content { flex: 1; min-height: 0; padding: 0 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #99ada2 #f1f5f2; }
.sb-discovery-notice { flex: 0 0 auto; margin: 0; padding: 10px 24px; background: #fff6d4; color: #584600; font-size: 13px; }
.sb-discovery-notice:empty { display: none; }
.sb-discovery-loading { padding: 48px 0; margin: 0; text-align: center; color: #345648; }
.sb-discovery-section-title { margin: 24px 0 8px; font: 700 15px/1.4 "Lato", sans-serif; color: #081716; }
.sb-search-collections, .sb-search-results, .sb-saved-list { margin: 0; padding: 0; list-style: none; }
.sb-search-collections a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; border-bottom: 1px solid #e0e8e3; color: #081716; }
.sb-search-collections a > span:last-child { display: flex; align-items: center; gap: 12px; color: #496255; font-variant-numeric: tabular-nums; }
.sb-search-collections svg { width: 16px; height: 16px; }
.sb-search-result { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e0e8e3; color: #081716; }
.sb-search-result > svg { margin-left: auto; width: 18px; height: 18px; color: #426150; }
.sb-search-result-info, .sb-saved-info { display: flex; flex-direction: column; align-items: start; min-width: 0; gap: 4px; }
.sb-discovery-thumb { display: block; flex: 0 0 80px; width: 80px; }
.sb-discovery-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #f2f5f1; }
.sb-discovery-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sb-discovery-no-image { padding: 6px; font-size: 11px; text-align: center; color: #496255; }
.sb-discovery-product-name { color: #081716; font-size: 16px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.sb-discovery-category { color: #496255; font-size: 12px; overflow-wrap: anywhere; }
.sb-discovery-price { color: #29483e; font-size: 14px; }
.sb-saved-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) 44px; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid #e0e8e3; }
.sb-discovery-remove { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px 0 0; border: 0; border-radius: 8px; background: transparent; color: #496255; }
.sb-discovery-remove svg { width: 18px; height: 18px; }
.sb-discovery-add { min-height: 44px; max-width: 100%; margin-top: 6px; padding: 8px 12px; border: 1px solid #081716; border-radius: 6px; background: #fff; color: #081716; font: 700 12px/1.3 "Lato", sans-serif; }
.sb-discovery-add.is-added { border-color: #c3d5c7; background: #eef5ec; color: #244b34; }
.sb-discovery-footer { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 auto; gap: 4px; padding: 16px 24px; border-top: 1px solid #e0e8e3; background: #fff; }
.sb-discovery-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border: 0; border-radius: 8px; background: #ffd84d; color: #081716; font: 700 14px/1.4 "Lato", sans-serif; text-align: center; }
.sb-discovery-browse, .sb-discovery-reset { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; border: 0; background: transparent; color: #29483e; font-size: 13px; text-align: center; text-decoration: underline; text-underline-offset: 4px; }
.sb-discovery-empty { max-width: 360px; margin: 40px auto 24px; text-align: center; }
.sb-discovery-empty > svg { width: 44px; height: 44px; margin-bottom: 12px; color: #967600; }
.sb-discovery-empty h3 { margin: 0 0 12px; color: #081716; font: 500 30px/1.1 "Cormorant Garamond", serif; }
.sb-discovery-empty p { margin: 0 0 24px; color: #496255; }
.sb-discovery-content > .sb-discovery-primary, .sb-discovery-content > .sb-discovery-reset { display: flex; margin: 0 auto 24px; width: fit-content; }
#site-header .header-desktop button.search-toggle { display: grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .sb-discovery-primary:hover { background: #f0c631; color: #081716; }
  .sb-discovery-close:hover { background: #243b32; }
  .sb-search-result:hover, .sb-search-collections a:hover { color: #081716; background: #f3f7f1; }
  .sb-discovery-remove:hover { color: #081716; background: #fff4cd; }
  .sb-discovery-add:hover { background: #081716; color: #fff; }
}

@media (max-width: 991px) {
  .sb-mobile-tabbar.header-mobile-fixed {
    position: fixed;
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    inset: auto 0 0 !important;
    width: 100%;
    z-index: 1000;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    border-top: 1px solid #344c40;
    background: #081716;
    gap: 8px;
  }
  .sb-mobile-tabbar > div { display: flex; justify-content: center; flex: 1; min-width: 0; }
  .sb-mobile-tabbar.header-mobile-fixed :is(a,button)[aria-label] {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100% !important;
    max-width: 180px;
    height: 52px !important;
    padding: 4px 8px;
    border: 0;
    border-radius: 10px;
    color: #dce6df !important;
    background: transparent;
    font: 600 11px/1.15 "Lato", sans-serif;
    text-decoration: none;
    user-select: none;
    touch-action: manipulation;
  }
  .sb-mobile-tabbar :is(a,button)::before { content: none !important; }
  .sb-mobile-tabbar svg { width: 22px; height: 22px; }
  .sb-mobile-tabbar.header-mobile-fixed :is(a,button).is-current, .sb-mobile-tabbar.header-mobile-fixed [aria-expanded="true"][aria-label] { background: #233a2e; color: #ffd84d !important; }
  .sb-mobile-tabbar.header-mobile-fixed :is(a,button)[aria-label]:active { background: #344a31; color: #ffd84d !important; opacity: 1; }
  .sb-mobile-tabbar :is(a,button):focus-visible { outline: 2px solid #ffd84d; outline-offset: -2px; }
  .sb-tab-icon { position: relative; display: block; height: 22px; }
  .sb-tab-count { position: absolute; top: -5px; left: 17px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ffd84d; color: #081716; font: 700 10px/16px "Lato", sans-serif; text-align: center; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .sb-full-viewport-hero {
    --sb-hero-tabbar-height: calc(64px + env(safe-area-inset-bottom, 0px));
    height: calc(100vh - var(--sb-hero-header-height, 56px) - var(--sb-hero-tabbar-height));
    height: calc(100dvh - var(--sb-hero-header-height, 56px) - var(--sb-hero-tabbar-height));
  }
  .back-top { bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important; }
  .sb-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; }
  .sb-discovery-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); height: min(740px, calc(100dvh - 24px)); border-radius: 14px; }
  .sb-discovery-header { padding: 20px 16px; }
  .sb-discovery-header h2 { font-size: 29px; }
  .sb-discovery-header p { font-size: 13px; }
  .sb-discovery-search-form { padding: 16px; }
  .sb-discovery-content { padding-inline: 16px; }
  .sb-discovery-notice { padding-inline: 16px; }
  .sb-discovery-footer { padding: 12px 16px; }
  .sb-saved-item { grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 10px; }
  .sb-saved-item .sb-discovery-thumb { width: 64px; }
  .sb-discovery-remove { width: 44px; min-height: 44px; }
  .sb-discovery-product-name { font-size: 15px; }
  .sb-search-result { gap: 12px; }
  .sb-search-result .sb-discovery-thumb { width: 64px; flex-basis: 64px; }
}
@media (prefers-reduced-motion: reduce) { .sb-discovery-dialog[open] { animation: none; } }
@keyframes sb-discovery-enter { from { opacity: .65; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
