.bc-search-form,
.bc-search-page {
  --bc-search-ink: #102932;
  --bc-search-ink-soft: #38525e;
  --bc-search-green: #c8f34a;
  --bc-search-green-dark: #84b527;
  --bc-search-surface: #ffffff;
  --bc-search-wash: #f4f7f3;
  --bc-search-line: #dbe4df;
  --bc-search-shadow: 0 24px 65px rgba(8, 35, 43, 0.18);
  color: var(--bc-search-ink);
}

.bc-search-form {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 1;
}

.bc-search-control {
  display: flex;
  align-items: center;
  min-height: 56px;
  width: 100%;
  overflow: hidden;
  border: 1px solid #b9c8c2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 41, 50, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bc-search-control:focus-within {
  border-color: var(--bc-search-green-dark);
  box-shadow: 0 0 0 4px rgba(200, 243, 74, 0.24), 0 12px 30px rgba(16, 41, 50, 0.11);
}

.bc-search-control__icon {
  flex: 0 0 auto;
  margin-left: 18px;
  color: var(--bc-search-ink-soft);
  font-size: 1rem;
}

.bc-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 54px;
  padding: 12px 15px;
  color: var(--bc-search-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.bc-search-input::placeholder {
  color: #70838b;
  opacity: 1;
}

.bc-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.bc-search-submit {
  align-self: stretch;
  flex: 0 0 auto;
  min-width: 116px;
  padding: 0 20px;
  color: var(--bc-search-ink);
  background: var(--bc-search-green);
  border: 0;
  border-left: 1px solid rgba(16, 41, 50, 0.08);
  font-size: 0.91rem;
  font-weight: 800;
  transition: background-color 150ms ease, color 150ms ease;
}

.bc-search-submit:hover,
.bc-search-submit:focus-visible {
  color: #061d24;
  background: #b9e93a;
  outline: 0;
}

.bc-search-submit:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(16, 41, 50, 0.38);
}

.bc-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1090;
  width: min(760px, calc(100vw - 32px));
  overflow: hidden;
  color: var(--bc-search-ink);
  background: var(--bc-search-surface);
  border: 1px solid var(--bc-search-line);
  border-radius: 20px;
  box-shadow: var(--bc-search-shadow);
  text-align: left;
}

.bc-search-form--page .bc-search-panel {
  right: auto;
  left: 0;
  width: 100%;
}

@media (min-width: 992px) {
  #o_search_modal .modal-dialog {
    width: calc(100vw - clamp(80px, 6.25vw, 128px));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  #o_search_modal .bc-search-panel {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

.bc-search-panel[hidden],
.bc-search-page [hidden],
.bc-search-section [hidden] {
  display: none !important;
}

.bc-search-panel__content {
  max-height: min(66vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: #b8c7c1 transparent;
}

.bc-search-suggestion-group {
  padding: 7px 0 10px;
}

.bc-search-suggestion-group + .bc-search-suggestion-group {
  border-top: 1px solid #edf1ef;
}

.bc-search-suggestion-group__title {
  margin: 0 8px 7px;
  color: #657981;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-transform: uppercase;
}

.bc-search-suggestion-group__list {
  display: grid;
  gap: 4px;
}

.bc-search-suggestion-group--product .bc-search-suggestion-group__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bc-search-suggestion {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  color: var(--bc-search-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  transition: background-color 130ms ease, border-color 130ms ease, transform 130ms ease;
}

.bc-search-suggestion:hover,
.bc-search-suggestion:focus-visible {
  color: var(--bc-search-ink);
  background: #f5f8f5;
  border-color: #dce7df;
  outline: 0;
  text-decoration: none;
  transform: translateY(-1px);
}

.bc-search-suggestion--guide {
  min-height: 48px;
  color: #50656e;
  font-size: 0.93rem;
  opacity: 0.82;
}

.bc-search-suggestion__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.bc-search-suggestion__title {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bc-search-suggestion__meta {
  overflow: hidden;
  color: #687c84;
  font-size: 0.78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-search-suggestion__arrow,
.bc-search-card__arrow {
  flex: 0 0 auto;
  color: #6d8a45;
  font-size: 1.05rem;
  font-weight: 800;
}

.bc-search-media {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  color: var(--bc-search-ink);
  background: linear-gradient(145deg, #f1f6ee, #e8efe7);
  border: 1px solid #dbe6dc;
}

.bc-search-media--suggestion {
  width: 58px;
  height: 58px;
  border-radius: 11px;
}

.bc-search-media__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.bc-search-media__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bc-search-panel__footer {
  display: flex;
  min-height: 58px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--bc-search-ink);
  background: var(--bc-search-green);
  border-top: 1px solid rgba(16, 41, 50, 0.08);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}

.bc-search-panel__footer:hover,
.bc-search-panel__footer:focus-visible {
  color: var(--bc-search-ink);
  background: #b9e93a;
  outline: 3px solid rgba(16, 41, 50, 0.28);
  outline-offset: -3px;
  text-decoration: none;
}

.bc-search-panel__footer-arrow {
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.bc-search-panel__loading,
.bc-search-panel__empty {
  display: flex;
  min-height: 88px;
  padding: 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #5d7179;
  text-align: center;
}

.bc-search-panel__empty {
  flex-direction: column;
  gap: 4px;
}

.bc-search-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid #d5dfda;
  border-top-color: var(--bc-search-green-dark);
  border-radius: 50%;
  animation: bc-search-spin 720ms linear infinite;
}

@keyframes bc-search-spin {
  to { transform: rotate(360deg); }
}

.bc-search-form--page {
  max-width: 820px;
  margin: 8px 0 0;
}

.bc-search-form--page .bc-search-control {
  min-height: 62px;
  border-radius: 18px;
}

.bc-search-form--page .bc-search-input {
  min-height: 60px;
  font-size: 1.05rem;
}

.bc-search-enhanced-ready > h1.mt24,
.bc-search-enhanced-ready > .table-responsive,
.bc-search-enhanced-ready > .o_portal_pager,
.bc-search-enhanced-ready > .text-center,
.bc-search-enhanced-ready > .alert-warning {
  display: none !important;
}

.bc-search-page {
  display: block;
  margin: 34px 0 42px;
}

.bc-search-page__header {
  max-width: 820px;
  margin-bottom: 24px;
}

.bc-search-page__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #688337;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bc-search-page__title {
  margin: 0;
  color: var(--bc-search-ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.bc-search-page__title span {
  color: #58772e;
}

.bc-search-page__intro {
  max-width: 760px;
  margin: 14px 0 0;
  color: #526971;
  font-size: 1rem;
  line-height: 1.55;
}

.bc-search-partial {
  margin: 0 0 18px;
  padding: 11px 14px;
  color: #5b522c;
  background: #fff9db;
  border: 1px solid #eadf9b;
  border-radius: 11px;
  font-size: 0.9rem;
}

.bc-search-featured {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  min-height: 190px;
  overflow: hidden;
  align-items: center;
  gap: 24px;
  margin: 22px 0 26px;
  padding: 18px;
  color: var(--bc-search-ink);
  background: linear-gradient(115deg, #f4fae8 0%, #fff 58%, #f7faf7 100%);
  border: 1px solid #cbdcb6;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(16, 41, 50, 0.1);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bc-search-featured:hover,
.bc-search-featured:focus-visible {
  color: var(--bc-search-ink);
  border-color: #95ba54;
  box-shadow: 0 22px 50px rgba(16, 41, 50, 0.14);
  outline: 0;
  text-decoration: none;
  transform: translateY(-2px);
}

.bc-search-media--featured {
  width: 190px;
  height: 160px;
  border-radius: 16px;
}

.bc-search-featured__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.bc-search-featured__eyebrow {
  color: #628235;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.bc-search-featured__title {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.bc-search-featured__description {
  color: #536870;
  font-size: 0.94rem;
  line-height: 1.42;
}

.bc-search-featured__detail {
  color: var(--bc-search-ink);
  font-size: 1rem;
  font-weight: 850;
}

.bc-search-featured__cta {
  align-self: center;
  padding: 12px 15px;
  color: var(--bc-search-ink);
  background: var(--bc-search-green);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

.bc-search-page__nav {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 4px 0 30px;
  padding: 2px 1px 7px;
  scrollbar-width: thin;
}

.bc-search-page__nav a {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: var(--bc-search-ink);
  background: #fff;
  border: 1px solid #cbd7d1;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.bc-search-page__nav a:hover,
.bc-search-page__nav a:focus-visible {
  color: var(--bc-search-ink);
  background: #f1f7e6;
  border-color: #91ad60;
  outline: 2px solid rgba(132, 181, 39, 0.3);
  outline-offset: 2px;
}

.bc-search-page__sections {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.bc-search-section {
  scroll-margin-top: 150px;
}

.bc-search-section__heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 14px;
}

.bc-search-section__heading h2 {
  margin: 0;
  color: var(--bc-search-ink);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 820;
  letter-spacing: -0.02em;
}

.bc-search-section__count {
  display: inline-flex;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  color: #4b626a;
  background: #edf2ef;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.bc-search-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bc-search-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bc-search-card {
  display: flex;
  min-width: 0;
  min-height: 96px;
  padding: 12px;
  align-items: center;
  gap: 14px;
  color: var(--bc-search-ink);
  background: #fff;
  border: 1px solid var(--bc-search-line);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.bc-search-card:hover,
.bc-search-card:focus-visible {
  color: var(--bc-search-ink);
  border-color: #a9bf8d;
  box-shadow: 0 13px 30px rgba(16, 41, 50, 0.09);
  outline: 0;
  text-decoration: none;
  transform: translateY(-2px);
}

.bc-search-card--product {
  min-height: 0;
  padding: 0 0 14px;
  overflow: hidden;
  align-items: stretch;
  flex-direction: column;
}

.bc-search-media--product {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
  border-bottom: 1px solid #e2e8e3;
  border-radius: 0;
}

.bc-search-card--product .bc-search-card__body {
  padding: 0 14px;
}

.bc-search-card--product .bc-search-card__arrow {
  padding: 0 14px;
}

.bc-search-media--row {
  width: 82px;
  height: 76px;
  border-radius: 12px;
}

.bc-search-card__body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
}

.bc-search-card__title {
  color: inherit;
  font-size: 0.98rem;
  line-height: 1.25;
}

.bc-search-card__meta {
  color: #5f747c;
  font-size: 0.8rem;
  font-weight: 700;
}

.bc-search-card__description {
  display: -webkit-box;
  overflow: hidden;
  color: #64777e;
  font-size: 0.83rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bc-search-section--guide {
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid #e3e9e5;
  opacity: 0.86;
}

.bc-search-section--guide .bc-search-card {
  min-height: 78px;
  background: #fafbfa;
  box-shadow: none;
}

.bc-search-more {
  display: inline-flex;
  margin-top: 14px;
  padding: 9px 14px;
  color: var(--bc-search-ink);
  background: #fff;
  border: 1px solid #bdcbc5;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.bc-search-more:hover,
.bc-search-more:focus-visible {
  background: #f1f7e6;
  border-color: #8eaa5b;
  outline: 2px solid rgba(132, 181, 39, 0.3);
  outline-offset: 2px;
}

.bc-search-page__empty {
  max-width: 680px;
  margin: 38px 0;
  padding: 34px;
  color: var(--bc-search-ink);
  background: #f5f8f5;
  border: 1px solid #dce5df;
  border-radius: 20px;
}

.bc-search-page__empty h1,
.bc-search-page__empty h2 {
  margin: 0 0 8px;
  font-weight: 830;
}

.bc-search-page__empty p {
  margin: 0;
  color: #5c7179;
}

.bc-search-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.bc-search-empty-actions a {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 14px;
  align-items: center;
  color: var(--bc-search-ink);
  background: #fff;
  border: 1px solid #bdcbc5;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.bc-search-empty-actions a:first-child {
  background: var(--bc-search-green);
  border-color: var(--bc-search-green-dark);
}

.bc-search-empty-actions a:hover,
.bc-search-empty-actions a:focus-visible {
  background: #eef6df;
  outline: 2px solid rgba(132, 181, 39, 0.3);
  outline-offset: 2px;
}

.bc-search-page__skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.bc-search-skeleton-line {
  display: block;
  min-height: 112px;
  overflow: hidden;
  background: linear-gradient(100deg, #edf2ef 20%, #f8faf8 45%, #edf2ef 70%);
  background-size: 220% 100%;
  border-radius: 16px;
  animation: bc-search-shimmer 1.25s ease-in-out infinite;
}

@keyframes bc-search-shimmer {
  to { background-position-x: -220%; }
}

@media (max-width: 991.98px) {
  .bc-search-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bc-search-featured {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .bc-search-media--featured {
    width: 150px;
    height: 140px;
  }

  .bc-search-featured__cta {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: -8px;
  }
}

@media (max-width: 767.98px) {
  .bc-search-control {
    min-height: 54px;
    border-radius: 14px;
  }

  .bc-search-control__icon {
    margin-left: 14px;
  }

  .bc-search-input {
    min-height: 52px;
    padding-right: 9px;
    padding-left: 10px;
    font-size: 16px;
  }

  .bc-search-submit {
    min-width: 76px;
    padding: 0 12px;
    font-size: 0;
  }

  .bc-search-submit::after {
    content: "Aller";
    font-size: 0.86rem;
  }

  .bc-search-panel,
  .bc-search-form--page .bc-search-panel {
    right: 0;
    left: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 16px;
  }

  .bc-search-panel__content {
    max-height: calc(70vh - 58px);
    padding: 8px;
  }

  .bc-search-suggestion-group--product .bc-search-suggestion-group__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .bc-search-suggestion {
    min-height: 56px;
  }

  .bc-search-media--suggestion {
    width: 52px;
    height: 52px;
  }

  .bc-search-panel__footer {
    position: sticky;
    bottom: 0;
    min-height: 56px;
    padding: 12px 14px;
  }

  .bc-search-page {
    margin-top: 28px;
  }

  .bc-search-page__title {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .bc-search-result-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .bc-search-featured {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 13px;
    border-radius: 18px;
  }

  .bc-search-media--featured {
    width: 110px;
    height: 108px;
  }

  .bc-search-featured__description {
    display: none;
  }

  .bc-search-featured__cta {
    margin-top: 0;
  }

  .bc-search-page__sections {
    gap: 32px;
  }
}

@media (max-width: 575.98px) {
  .bc-search-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bc-search-card--product {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    min-height: 112px;
    padding: 0;
    align-items: center;
    flex-direction: initial;
  }

  .bc-search-media--product {
    width: 112px;
    height: 112px;
    aspect-ratio: auto;
    border-right: 1px solid #e2e8e3;
    border-bottom: 0;
  }

  .bc-search-card--product .bc-search-card__body {
    padding: 10px 0 10px 12px;
  }

  .bc-search-card--product .bc-search-card__arrow {
    padding: 0 12px 0 0;
  }

  .bc-search-page__empty {
    padding: 24px 20px;
  }

  .bc-search-page__skeleton {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  .bc-search-control__icon {
    display: none;
  }

  .bc-search-input {
    padding-left: 13px;
  }

  .bc-search-featured {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .bc-search-media--featured {
    width: 88px;
    height: 88px;
  }

  .bc-search-featured__title {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-search-spinner,
  .bc-search-skeleton-line {
    animation: none;
  }

  .bc-search-suggestion,
  .bc-search-card,
  .bc-search-featured,
  .bc-search-control {
    transition: none;
  }
}
