/* MARABIKA Desktop Predictive Search v3.0.0 — isolated desktop-only UI. */

.mbk-ds3[hidden],
.mbk-ds3 [hidden],
.mbk-ds3__clear[hidden] {
  display: none !important;
}

.mbk-ds3-sr {
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

@media (min-width: 1024px) {
  [data-mbk-ds3-root],
  [data-mbk-ds3-root] *,
  [data-mbk-ds3-root] *::before,
  [data-mbk-ds3-root] *::after {
    box-sizing: border-box;
  }

  #header #search_widget.mbk-ds3__form {
    align-items: center;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) 44px auto;
    isolation: isolate;
    overflow: visible;
    padding: 0 7px 0 0;
    position: relative;
  }

  #header #search_widget.mbk-ds3__form .mbk-ds3__input {
    grid-column: 1;
    min-width: 0;
    order: initial;
    padding-inline: 26px 12px;
  }

  #header #search_widget.mbk-ds3__form .mbk-ds3__input::-webkit-search-cancel-button,
  #header #search_widget.mbk-ds3__form .mbk-ds3__input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
  }

  #header #search_widget.mbk-ds3__form .mbk-ds3__clear {
    align-items: center;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #675f59;
    cursor: pointer;
    display: inline-flex;
    grid-column: 2;
    height: 40px;
    justify-content: center;
    margin: 0 2px;
    min-height: 40px;
    min-width: 40px;
    padding: 0;
    position: relative;
    width: 40px;
    z-index: 2;
  }

  #header #search_widget.mbk-ds3__form:not(.has-query) {
    grid-template-columns: minmax(0, 1fr) 0 auto;
  }

  #header #search_widget.mbk-ds3__form .mbk-ds3__clear:hover {
    background: #f2ece6;
    color: #342d29;
  }

  #header #search_widget.mbk-ds3__form .mbk-ds3__submit {
    grid-column: 3;
    order: initial;
  }

  #header #search_widget.mbk-ds3__form .mbk-ds3__clear:focus-visible,
  #header #search_widget.mbk-ds3__form .mbk-ds3__submit:focus-visible {
    outline: 3px solid #6f4827;
    outline-offset: 2px;
  }

  .mbk-ds3 {
    --mbk-ds3-bg: #fbfaf8;
    --mbk-ds3-card: #ffffff;
    --mbk-ds3-ink: #292522;
    --mbk-ds3-muted: #675f59;
    --mbk-ds3-gold: #8d6238;
    --mbk-ds3-gold-dark: #6f4827;
    --mbk-ds3-border: #e2d1bd;
    --mbk-ds3-soft: #f6f0ea;
    background: var(--mbk-ds3-bg);
    border: 1px solid var(--mbk-ds3-border);
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(48, 38, 29, .18), 0 8px 24px rgba(48, 38, 29, .09);
    color: var(--mbk-ds3-ink);
    font-family: inherit;
    max-height: var(--mbk-ds3-max-height, 620px);
    max-width: calc(100vw - 32px);
    overflow: hidden;
    position: fixed !important;
    z-index: 100130;
  }

  .mbk-ds3__shell {
    display: flex;
    flex-direction: column;
    max-height: var(--mbk-ds3-max-height, 620px);
    min-height: 0;
  }

  .mbk-ds3__head {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #eee4d9;
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    min-height: 58px;
    padding: 7px 10px 7px 24px;
  }

  .mbk-ds3__eyebrow {
    color: #514943;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.25;
    margin: 0;
    text-transform: uppercase;
  }

  .mbk-ds3__close {
    align-items: center;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #39322e;
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    margin: 0;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    width: 44px;
  }

  .mbk-ds3__close:hover {
    background: #f2ece6;
  }

  .mbk-ds3__close:focus-visible,
  .mbk-ds3 button:focus-visible,
  .mbk-ds3 a:focus-visible {
    outline: 3px solid #6f4827;
    outline-offset: 2px;
  }

  .mbk-ds3__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px 22px;
    scrollbar-color: #b89a79 #f3ede7;
    scrollbar-width: thin;
  }

  .mbk-ds3__body::-webkit-scrollbar {
    width: 9px;
  }

  .mbk-ds3__body::-webkit-scrollbar-track {
    background: #f3ede7;
    border-radius: 999px;
  }

  .mbk-ds3__body::-webkit-scrollbar-thumb {
    background: #b89a79;
    border: 2px solid #f3ede7;
    border-radius: 999px;
  }

  .mbk-ds3__discovery {
    display: grid;
    gap: 18px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mbk-ds3__discovery-group {
    min-width: 0;
  }

  .mbk-ds3__discovery-group--recent {
    grid-column: 1 / -1;
  }

  .mbk-ds3__group-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0 0 9px;
    min-height: 22px;
  }

  .mbk-ds3__group-title,
  .mbk-ds3__result-title {
    color: #4a423c;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.35;
    margin: 0;
    text-transform: uppercase;
  }

  .mbk-ds3__discovery-group--popular .mbk-ds3__group-title {
    color: #292522;
  }

  .mbk-ds3__discovery-group--brand .mbk-ds3__group-title {
    color: #71675f;
  }

  .mbk-ds3__clear-recent {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--mbk-ds3-gold-dark);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    margin: -6px -8px -6px 0;
    min-height: 36px;
    padding: 6px 8px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  .mbk-ds3__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mbk-ds3__chip,
  .mbk-ds3__recent {
    min-width: 0;
  }

  .mbk-ds3__chip {
    align-items: center;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    border: 1px solid var(--mbk-ds3-border);
    border-radius: 999px;
    color: #39322e;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.25;
    min-height: 44px;
    overflow-wrap: anywhere;
    padding: 9px 15px;
    text-align: center;
    text-decoration: none;
  }

  .mbk-ds3__chip::before {
    background: #b28a54;
    border-radius: 50%;
    content: '';
    flex: 0 0 6px;
    height: 6px;
    margin-inline-end: 9px;
    width: 6px;
  }

  .mbk-ds3__chip:hover {
    background: #f8f2ec;
    border-color: #b99369;
    color: #292522;
    text-decoration: none;
  }

  .mbk-ds3__chip--popular {
    background: #f8f2ec;
    border-color: #caa77d;
  }

  .mbk-ds3__recent {
    align-items: stretch;
    display: inline-flex;
    min-height: 44px;
    position: relative;
  }

  .mbk-ds3__chip--recent {
    border-radius: 999px 0 0 999px;
    border-inline-end: 0;
    padding-inline-end: 9px;
  }

  .mbk-ds3__chip--recent::before {
    display: none;
  }

  .mbk-ds3__recent-remove {
    align-items: center;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    border: 1px solid var(--mbk-ds3-border);
    border-inline-start: 0;
    border-radius: 0 999px 999px 0;
    color: #675f59;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 19px;
    height: auto;
    justify-content: center;
    margin: 0;
    min-height: 44px;
    min-width: 38px;
    padding: 0 11px 1px 5px;
  }

  .mbk-ds3__recent:hover .mbk-ds3__chip--recent,
  .mbk-ds3__recent:hover .mbk-ds3__recent-remove {
    background: #f8f2ec;
    border-color: #b99369;
  }

  .mbk-ds3__listbox {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .mbk-ds3__result-group {
    min-width: 0;
  }

  .mbk-ds3__result-title {
    margin-bottom: 9px;
  }

  .mbk-ds3__result-items {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mbk-ds3__result-group--suggestions .mbk-ds3__result-items,
  .mbk-ds3__result-group--correction .mbk-ds3__result-items,
  .mbk-ds3__result-group--entities .mbk-ds3__result-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mbk-ds3__option {
    color: var(--mbk-ds3-ink);
    cursor: pointer;
    font: inherit;
    min-width: 0;
    text-decoration: none;
  }

  .mbk-ds3__option--suggestion,
  .mbk-ds3__option--correction,
  .mbk-ds3__option--entity {
    align-items: center;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    border: 1px solid #e5d7c7;
    border-radius: 13px;
    display: flex;
    font-size: 14.5px;
    font-weight: 700;
    justify-content: space-between;
    line-height: 1.35;
    min-height: 48px;
    overflow-wrap: anywhere;
    padding: 11px 14px;
    text-align: start;
    width: 100%;
  }

  .mbk-ds3__option--suggestion::before,
  .mbk-ds3__option--correction::before {
    background: #b28a54;
    border-radius: 50%;
    content: '';
    flex: 0 0 7px;
    height: 7px;
    margin-inline-end: 10px;
    width: 7px;
  }

  .mbk-ds3__option--suggestion:hover,
  .mbk-ds3__option--correction:hover,
  .mbk-ds3__option--entity:hover,
  .mbk-ds3__option[aria-selected='true'] {
    background: #f5ede5;
    border-color: #b89066;
    box-shadow: inset 3px 0 0 #8d6238;
    color: #251f1b;
    text-decoration: none;
  }

  .mbk-ds3__entity-scope {
    color: #675f59;
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 600;
    margin-inline-start: 12px;
    text-align: end;
  }

  .mbk-ds3__result-group--products .mbk-ds3__result-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mbk-ds3__option--product {
    align-items: center;
    background: #fff;
    border: 1px solid #e5d7c7;
    border-radius: 15px;
    display: grid;
    gap: 12px;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    min-height: 98px;
    padding: 12px;
  }

  .mbk-ds3__option--product:hover,
  .mbk-ds3__option--product[aria-selected='true'] {
    background: #fffaf5;
    border-color: #b89066;
    box-shadow: 0 8px 20px rgba(72, 50, 31, .08), inset 3px 0 0 #8d6238;
    color: #251f1b;
    text-decoration: none;
  }

  .mbk-ds3__product-media {
    align-items: center;
    background: #fff;
    border-radius: 10px;
    display: flex;
    height: 72px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 72px;
  }

  .mbk-ds3__product-image {
    display: block;
    height: 72px;
    max-height: 72px;
    max-width: 72px;
    object-fit: contain;
    width: 72px;
  }

  .mbk-ds3__badge {
    background: #a83f34;
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    inset: 3px auto auto 3px;
    line-height: 1;
    max-width: 66px;
    overflow: hidden;
    padding: 4px 6px;
    position: absolute;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mbk-ds3__product-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mbk-ds3__product-name {
    color: #292522;
    display: -webkit-box;
    font-size: 14.5px;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
    overflow: hidden;
  }

  .mbk-ds3__product-brand {
    color: #675f59;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mbk-ds3__product-prices {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    min-width: 70px;
    text-align: end;
  }

  .mbk-ds3__product-regular {
    color: #625b56;
    font-size: 12px;
    line-height: 1.2;
    text-decoration-thickness: 1.5px;
  }

  .mbk-ds3__product-price {
    color: #8f382f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
  }

  .mbk-ds3__option--all {
    align-items: center;
    align-self: stretch;
    background: #2c2825;
    border: 1px solid #2c2825;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 14.5px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.3;
    min-height: 50px;
    overflow-wrap: anywhere;
    padding: 12px 22px;
    text-align: center;
    width: 100%;
  }

  .mbk-ds3__option--all:hover,
  .mbk-ds3__option--all[aria-selected='true'] {
    background: #171513;
    border-color: #171513;
    box-shadow: 0 8px 18px rgba(23, 21, 19, .18);
    color: #fff;
    text-decoration: none;
  }

  .mbk-ds3__state {
    align-items: center;
    background: #fff;
    border: 1px solid #e5d7c7;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 118px;
    padding: 20px;
    text-align: center;
  }

  .mbk-ds3__state-text {
    color: #514943;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
  }

  .mbk-ds3__state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
  }

  .mbk-ds3__retry,
  .mbk-ds3__fallback {
    align-items: center;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    text-decoration: none;
  }

  .mbk-ds3__retry {
    background: #2c2825;
    border: 1px solid #2c2825;
    color: #fff;
  }

  .mbk-ds3__retry:disabled {
    background: #918a84;
    border-color: #918a84;
    cursor: wait;
    opacity: .78;
  }

  .mbk-ds3__fallback {
    background: #fff;
    border: 1px solid #b89066;
    color: #50381f;
  }

  .mbk-ds3__skeleton {
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mbk-ds3__skeleton-row {
    background: linear-gradient(90deg, #eee7df 20%, #faf7f3 50%, #eee7df 80%);
    background-size: 240% 100%;
    border-radius: 14px;
    display: block;
    height: 94px;
    animation: mbk-ds3-shimmer 1.2s ease-in-out infinite;
  }

  @keyframes mbk-ds3-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
  }
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
  .mbk-ds3__body {
    padding: 18px;
  }

  .mbk-ds3__result-items,
  .mbk-ds3__result-group--products .mbk-ds3__result-items {
    grid-template-columns: 1fr;
  }

  .mbk-ds3__option--product {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .mbk-ds3__product-media,
  .mbk-ds3__product-image {
    height: 64px;
    max-height: 64px;
    max-width: 64px;
    width: 64px;
  }
}

@media (min-width: 1024px) and (max-height: 720px) {
  .mbk-ds3__head {
    min-height: 50px;
  }

  .mbk-ds3__body {
    padding-block: 14px 16px;
  }

  .mbk-ds3__option--product {
    min-height: 88px;
    padding-block: 8px;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .mbk-ds3 *,
  .mbk-ds3 *::before,
  .mbk-ds3 *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (min-width: 1024px) and (prefers-contrast: more) {
  .mbk-ds3,
  .mbk-ds3__chip,
  .mbk-ds3__option,
  .mbk-ds3__state {
    border-color: #70502f;
  }

  .mbk-ds3__product-brand,
  .mbk-ds3__entity-scope,
  .mbk-ds3__product-regular {
    color: #403a36;
  }
}

@media (min-width: 1024px) and (forced-colors: active) {
  #header #search_widget.mbk-ds3__form .mbk-ds3__clear,
  .mbk-ds3,
  .mbk-ds3__chip,
  .mbk-ds3__option,
  .mbk-ds3__state,
  .mbk-ds3__retry,
  .mbk-ds3__fallback {
    border: 1px solid CanvasText;
    forced-color-adjust: auto;
  }

  .mbk-ds3__option[aria-selected='true'] {
    outline: 3px solid Highlight;
    outline-offset: 1px;
  }
}
