/* Cidonija Search 1.1.2 - scoped styles (.cid-s = search box, .cid-sr = results page).
   Uses the store's fonts (Open Sans) and Bootstrap 3 theme; accent green darkened to #06801b for WCAG AA text contrast. */

/* ------------------------------------------------------------------ search box */
.cid-s { position: relative; }
.cid-s .cid-s-form.input-group { display: flex; width: 100%; align-items: stretch; }
.cid-s .cid-s-field { position: relative; flex: 1 1 auto; min-width: 0; }
.cid-s .cid-s-input { width: 100%; height: 46px; padding-right: 44px; font-size: 16px; border-radius: 4px 0 0 4px; box-shadow: none; -webkit-appearance: none; appearance: none; }
.cid-s .cid-s-input::-webkit-search-cancel-button, .cid-s .cid-s-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.cid-s .cid-s-input::placeholder { color: #6b6b6b; }
.cid-s .cid-s-input:focus { border-color: #06801b; box-shadow: 0 0 0 2px rgba(6, 128, 27, .25); }
.cid-s .cid-s-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: #555; font-size: 24px; line-height: 1; cursor: pointer; border-radius: 50%; z-index: 3; }
.cid-s .cid-s-clear:hover { background: #f0f0f0; }
.cid-s .cid-s-clear[hidden], .cid-s .cid-s-back[hidden], .cid-s .cid-s-cancel[hidden] { display: none !important; }
.cid-s .input-group-btn { width: auto; display: flex; }
.cid-s .cid-s-submit { height: 46px; min-width: 52px; border-radius: 0 4px 4px 0; }
.cid-s .cid-s-back, .cid-s .cid-s-cancel { border: 0; background: none; color: #06801b; font-weight: 600; font-size: 16px; padding: 0 6px 0 10px; min-height: 46px; min-width: 44px; cursor: pointer; }

.cid-s-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 1060; width: 100%; background: #fff; border: 1px solid #d9d9d9; border-radius: 6px; box-shadow: 0 14px 36px rgba(0, 0, 0, .18); font-size: 15px; text-align: left; overflow: hidden; color: #333; }
.cid-s-panel[hidden] { display: none; }
@media (min-width: 992px) { .cid-s-panel { width: 740px; } }
@media (min-width: 1200px) { .cid-s-panel { width: 800px; } }
.cid-s.cid-s-open { z-index: 1061; }
.cid-s-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .22); z-index: 1039; }
.cid-s-backdrop[hidden] { display: none; }
.cid-s-panel.is-loading::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 40%; background: #06801b; animation: cid-s-bar 1s ease-in-out infinite; }
@keyframes cid-s-bar { 0% { left: -40%; } 100% { left: 100%; } }

.cid-s-cols { display: flex; }
.cid-s-col { padding: 4px 0; min-width: 0; }
.cid-s-col-text { flex: 0 0 38%; border-right: 1px solid #eee; }
.cid-s-col-prod { flex: 1 1 auto; }
.cid-s-single .cid-s-col { flex: 1 1 100%; border: 0; }
@media (max-width: 991px) {
  .cid-s-cols { display: block; }
  .cid-s-col-text { border-right: 0; border-bottom: 1px solid #eee; }
}
.cid-s-gh { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 4px; font-size: 13px; font-weight: 600; color: #666; }
.cid-s-link { background: none; border: 0; padding: 4px 0 4px 8px; color: #06801b; font-size: 13px; text-decoration: underline; cursor: pointer; }
.cid-s-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; color: #333; text-decoration: none; cursor: pointer; line-height: 1.3; }
.cid-s-opt:hover, .cid-s-opt:focus, .cid-s-opt.is-active { background: #eef6ef; color: #111; text-decoration: none; }
.cid-s-opt.is-active { box-shadow: inset 3px 0 0 #06801b; }
.cid-s-q { color: #555; }
.cid-s-q i { color: #8a8a8a; width: 14px; flex: 0 0 14px; text-align: center; }
.cid-s-q b { font-weight: 700; color: #111; }
.cid-s-scope span:nth-child(2) { color: #222; }
.cid-s-tag { flex: 0 0 auto; font-size: 11px; line-height: 1; font-weight: 600; color: #06801b; background: #f2f9f3; border: 1px solid #cfe3d2; border-radius: 3px; padding: 4px 6px; }
.cid-s-n { margin-left: auto; padding-left: 8px; color: #666; font-size: 13px; }
.cid-s-prod { align-items: center; }
.cid-s-img { flex: 0 0 48px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #fff; }
.cid-s-img img { max-width: 48px; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.cid-s-pinfo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cid-s-pname { font-size: 14px; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cid-hl { font-weight: 700; }
.cid-s-pmeta { font-size: 12px; color: #666; margin-top: 2px; }
.cid-s-pmeta .cid-b { margin-left: 2px; vertical-align: 1px; }
.cid-s-oos { color: #b42318; }
.cid-s-prod.cid-oos .cid-s-img img { opacity: .6; }
.cid-s-price { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; color: #222; white-space: nowrap; padding-left: 6px; }
.cid-s-new { color: #b42318; }
.cid-s-old { font-weight: 400; color: #666; font-size: 12px; }
.cid-s-all { justify-content: space-between; border-top: 1px solid #eee; font-weight: 600; color: #06801b; }
.cid-s-status { padding: 14px; color: #444; }
.cid-s-retry { background: none; border: 0; color: #06801b; text-decoration: underline; font-weight: 600; cursor: pointer; padding: 0 0 0 6px; }
.cid-s-note { padding: 8px 14px; background: #fff8e1; font-size: 13px; color: #5c4400; }

/* mobile full-screen search view */
@media (max-width: 767px) {
  .cid-s .cid-s-input { height: 46px; }
}
.cid-s.cid-s-mobile { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; height: var(--cid-vh, 100vh); margin: 0 !important;
  z-index: 2000; background: #fff; padding: 8px 10px 0; display: flex; flex-direction: column; box-shadow: none !important; }
.cid-s.cid-s-mobile .cid-s-form { flex: 0 0 auto; }
.cid-s.cid-s-mobile .cid-s-cancel { display: block; }
.cid-s.cid-s-mobile .cid-s-panel { position: static; flex: 1 1 auto; width: 100%; margin: 8px -10px 0; width: calc(100% + 20px); border: 0; border-top: 1px solid #eee; border-radius: 0; box-shadow: none; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cid-s.cid-s-mobile .cid-s-opt { min-height: 48px; font-size: 16px; }
.cid-s.cid-s-mobile .cid-s-pname { font-size: 15px; }
.cid-s.cid-s-mobile .cid-s-all { position: sticky; bottom: 0; background: #fff; }
html.cid-s-lock, html.cid-s-lock body { overflow: hidden; }

/* badges (shared) */
.cid-b { display: inline-block; font-size: 11px; line-height: 1; font-weight: 700; padding: 4px 6px; border-radius: 3px; letter-spacing: .02em; }
.cid-b-tester { background: #e8eefc; color: #1f3d99; }
.cid-b-set { background: #f1ebfb; color: #4f2d96; }
.cid-b-sample { background: #efefef; color: #3d3d3d; }
.cid-b-sale { background: #b42318; color: #fff; }
.cid-b-new { background: #06801b; color: #fff; }
.cid-b-popular { background: #fff1db; color: #7a4100; }

/* ------------------------------------------------------------------ results page */
.cid-sr .cid-sr-head { margin: 4px 0 6px; }
.cid-sr .cid-sr-title { font-size: 26px; margin: 6px 0 4px; color: #222; word-break: break-word; }
.cid-sr .cid-sr-count { color: #555; margin: 0 0 6px; font-size: 15px; }
.cid-sr .cid-sr-notice { background: #fff8e1; border-left: 3px solid #e0a400; padding: 8px 12px; color: #4d3a00; font-size: 15px; margin: 8px 0; }
.cid-sr .cid-sr-scopes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; font-size: 14px; }
.cid-sr .cid-scope { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid #d5d5d5; border-radius: 18px; color: #333; background: #fff; }
.cid-sr .cid-scope span { color: #666; font-size: 13px; }
.cid-sr .cid-scope:hover { border-color: #06801b; color: #06801b; text-decoration: none; }
.cid-muted { color: #666; }

.cid-sr .cid-sr-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 6px 0 12px; }
.cid-sr .cid-sr-sort { display: flex; align-items: center; gap: 8px; }
.cid-sr .cid-sr-sort-label { margin: 0; font-weight: 400; color: #555; font-size: 14px; white-space: nowrap; }
.cid-sr .cid-sr-sort select { height: 40px; min-width: 190px; font-size: 15px; }
.cid-sr .cid-sr-filter-btn { display: none; height: 44px; font-size: 15px; font-weight: 600; }
.cid-count-badge { display: inline-block; min-width: 20px; padding: 2px 6px; margin-left: 4px; border-radius: 10px; background: #06801b; color: #fff; font-size: 12px; line-height: 16px; }
.cid-count-badge[hidden] { display: none; }

.cid-sr .cid-sr-layout { display: flex; align-items: flex-start; gap: 24px; }
.cid-sr .cid-sr-side { flex: 0 0 250px; width: 250px; }
.cid-sr .cid-sr-main { flex: 1 1 auto; min-width: 0; }
.cid-sr .cid-sr-drawer-head, .cid-sr .cid-sr-drawer-foot { display: none; }

.cid-sr .cid-sr-bar[hidden] { display: none; }
@media (max-width: 767px) {
  .cid-sr > .breadcrumb { display: none; }
  .cid-sr .cid-sr-scopes { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-right: -15px; padding-right: 15px; padding-bottom: 2px; }
  .cid-sr .cid-sr-scopes::-webkit-scrollbar { display: none; }
  .cid-sr .cid-scope, .cid-sr .cid-sr-scopes > span { flex: 0 0 auto; white-space: nowrap; }
}

/* facets */
.cid-f { border-bottom: 1px solid #eee; padding: 6px 0 10px; }
.cid-f-title { margin: 0; font-size: 15px; }
.cid-f-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; padding: 8px 0; font-weight: 700; font-size: 15px; color: #222; text-align: left; cursor: pointer; }
.cid-f-toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #555; border-bottom: 2px solid #555; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.cid-f-toggle[aria-expanded="false"]::after { transform: rotate(-45deg); margin-top: 0; }
.cid-f-body[hidden] { display: none; }
.cid-f-list { list-style: none; margin: 0; padding: 0; }
.cid-f-list li[hidden] { display: none; }
.cid-f-collapsed .cid-f-extra { display: none; }
.cid-f-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 0; color: #333; font-size: 14px; line-height: 1.3; text-decoration: none; }
.cid-f-opt:hover { color: #06801b; text-decoration: none; }
.cid-f-box { position: relative; flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid #767676; border-radius: 3px; background: #fff; }
.cid-f-radio { border-radius: 50%; }
.cid-f-opt[aria-checked="true"] .cid-f-box { background: #06801b; border-color: #06801b; }
.cid-f-opt[aria-checked="true"] .cid-f-box::after { content: ""; position: absolute; left: 4px; top: 0; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cid-f-opt[aria-checked="true"] .cid-f-radio::after { left: 3px; top: 3px; width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.cid-f-opt[aria-checked="true"] .cid-f-text { font-weight: 600; }
.cid-f-text { flex: 1 1 auto; min-width: 0; }
.cid-f-n { margin-left: auto; color: #666; font-size: 13px; }
.cid-f-zero { opacity: .55; }
.cid-f-search { height: 38px; margin: 2px 0 6px; font-size: 15px; }
.cid-f-more { background: none; border: 0; padding: 6px 0; color: #06801b; font-weight: 600; font-size: 14px; cursor: pointer; }
.cid-f-price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin-top: 8px; }
.cid-f-price label { display: flex; flex-direction: column; font-weight: 400; font-size: 12px; color: #555; margin: 0; }
.cid-f-price input { width: 78px; height: 36px; border: 1px solid #ccc; border-radius: 3px; padding: 4px 6px; font-size: 15px; }
.cid-f-price .btn { height: 36px; }

/* chips */
.cid-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.cid-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid #cfe3d2; background: #f2f9f3; color: #1d4d26; border-radius: 18px; font-size: 14px; }
.cid-chip:hover { background: #e3f2e5; color: #10351a; text-decoration: none; }
.cid-chip-x { font-size: 18px; line-height: 1; }
.cid-chip-clear { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 4px; color: #06801b; text-decoration: underline; font-size: 14px; }

/* product grid & cards */
.cid-sr-grid, .cid-empty-popular .row { display: flex; flex-wrap: wrap; }
.cid-sr-grid::before, .cid-sr-grid::after, .cid-empty-popular .row::before, .cid-empty-popular .row::after { display: none; }
.cid-card { display: flex; float: none; }
.cid-card .product-thumb { position: relative; display: flex; flex-direction: column; width: 100%; margin-bottom: 20px; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; background: #fff; transition: box-shadow .15s, border-color .15s; }
.cid-card .product-thumb .image { position: relative; float: none; width: 100%; aspect-ratio: 1 / 1; padding: 0; background: #fff; }
.cid-card .product-thumb .image > .cid-card-link { position: absolute; inset: 12px; display: block; width: auto; height: auto; }
.cid-card .product-thumb .image > .cid-card-link > img { display: block; float: none; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: center; margin: 0; }
.cid-card .product-thumb .caption { flex: 1 1 auto; display: flex; flex-direction: column; padding: 0 12px; min-height: 0; margin: 0; }
.cid-card .cid-card-brand { margin: 0 0 2px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #666; }
.cid-card .product-thumb h4 { margin: 0 0 4px; font-size: 14px; line-height: 1.35; font-weight: 600; }
.cid-card .product-thumb h4 a { color: #222; }
.cid-card .cid-card-meta { margin: 0 0 6px; font-size: 13px; color: #555; }
.cid-card .product-thumb .price { margin: auto 0 2px; padding-top: 4px; font-size: 17px; font-weight: 700; color: #222; }
.cid-card .product-thumb .price .price-new { color: #b42318; }
.cid-card .product-thumb .price .price-old { margin-left: 4px; color: #666; font-size: 13px; font-weight: 400; text-decoration: line-through; }
.cid-card .cid-stock { margin: 0 0 8px; font-size: 13px; }
.cid-card .cid-stock-in { color: #06801b; }
.cid-card .cid-stock-out { color: #b42318; }
.cid-card .cid-oos .image img { opacity: .55; }
.cid-card .cid-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 2; pointer-events: none; }
.cid-card .product-thumb .button-group { display: flex; border-top: 1px solid #eee; background: #f7f7f7; }
.cid-card .product-thumb .button-group button.cid-cart { width: 100%; float: none; min-height: 44px; border: 0; background: #f2f2f2; color: #333; font-weight: 700; font-size: 13px; text-transform: uppercase; line-height: 1.2; }
.cid-card .product-thumb .button-group button.cid-cart:hover:not([disabled]) { background: #06801b; color: #fff; }
.cid-card .product-thumb .button-group button.cid-cart[disabled] { cursor: not-allowed; color: #666; text-transform: none; font-weight: 600; }
@media (hover: hover) and (min-width: 992px) {
  .cid-card .product-thumb:hover { border-color: #c9d6cb; box-shadow: 0 8px 22px rgba(0, 0, 0, .10); }
}
@media (max-width: 767px) {
  .cid-sr-grid { margin-left: -6px; margin-right: -6px; }
  .cid-sr-grid > .cid-card { padding-left: 6px; padding-right: 6px; }
  .cid-card .product-thumb { margin-bottom: 12px; }
  .cid-card .product-thumb .image { padding: 8px; }
  .cid-card .product-thumb .caption { padding: 0 8px; }
  .cid-card .product-thumb h4 { font-size: 13px; }
  .cid-card .product-thumb .price { font-size: 16px; }
  .cid-card .product-thumb .button-group button.cid-cart { font-size: 12px; padding: 6px 4px; }
}

/* load more & skeletons */
.cid-sr-more { text-align: center; margin: 8px 0 32px; }
.cid-sr-shown { color: #555; font-size: 14px; margin-bottom: 10px; }
.cid-sr-more-btn { min-width: 240px; min-height: 48px; font-weight: 600; border-color: #06801b; color: #06801b; }
.cid-sr-more-btn:hover, .cid-sr-more-btn:focus { background: #06801b; color: #fff; }
.cid-sr-more-btn.is-loading { opacity: .6; pointer-events: none; }
.cid-skel .product-thumb { min-height: 300px; }
.cid-skel-img { aspect-ratio: 1 / 1; margin: 12px; border-radius: 4px; }
.cid-skel-line { height: 12px; margin: 10px 12px; border-radius: 3px; }
.cid-skel-line.short { width: 50%; }
.cid-skel-img, .cid-skel-line { background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 37%, #f0f0f0 63%); background-size: 400% 100%; animation: cid-shimmer 1.2s ease infinite; }
@keyframes cid-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.cid-sr.is-loading .cid-sr-grid, .cid-sr.is-loading #cid-sr-chips { opacity: .45; transition: opacity .15s; pointer-events: none; }

/* empty states */
.cid-empty { padding: 12px 0 24px; }
.cid-empty-title { font-size: 22px; margin: 6px 0 8px; color: #222; }
.cid-empty-tips { color: #444; }
.cid-empty-block { margin: 18px 0; }
.cid-empty-block h3 { font-size: 17px; margin: 0 0 8px; }
.cid-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cid-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid #d5d5d5; border-radius: 20px; color: #333; background: #fff; }
.cid-links a:hover { border-color: #06801b; color: #06801b; text-decoration: none; }

/* drawer (tablet + mobile) */
.cid-sr-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .4); z-index: 2000; }
.cid-sr-backdrop[hidden] { display: none; }
@media (max-width: 991px) {
  .cid-sr .cid-sr-layout { display: block; }
  .cid-sr .cid-sr-filter-btn { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 50%; justify-content: center; }
  .cid-sr .cid-sr-bar { position: -webkit-sticky; position: sticky; top: 0; z-index: 30; background: #fff; margin: 0 -15px 12px; padding: 8px 15px; border-bottom: 1px solid #eee; transition: top .1s; }
  .cid-sr .cid-sr-sort { flex: 1 1 50%; }
  .cid-sr .cid-sr-sort-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cid-sr .cid-sr-sort select { width: 100%; min-width: 0; height: 44px; }
  .cid-sr .cid-sr-nofacets .cid-sr-sort, .cid-sr-bar .cid-sr-sort:only-child { flex: 1 1 100%; }
  .cid-sr .cid-sr-side { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 88vh; max-height: 88dvh; z-index: 2001; display: flex; flex-direction: column;
    background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
  .cid-sr .cid-sr-side.is-open { transform: translateY(0); visibility: visible; transition: transform .22s ease; }
  .cid-sr .cid-sr-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #eee; }
  .cid-sr .cid-sr-drawer-head h2 { margin: 0; font-size: 18px; }
  .cid-sr .cid-sr-close { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: #333; }
  .cid-sr .cid-sr-filters { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 16px; }
  .cid-sr .cid-sr-drawer-foot { display: flex; gap: 10px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #eee; background: #fff; }
  .cid-sr .cid-sr-drawer-foot .cid-sr-clear[hidden] { display: none; }
  .cid-sr .cid-sr-apply { flex: 1 1 auto; min-height: 48px; font-size: 16px; font-weight: 700; background: #06801b; border-color: #06801b; }
  .cid-f-opt { min-height: 44px; font-size: 15px; }
  .cid-sr .cid-sr-title { font-size: 21px; }
}

/* focus visibility */
.cid-s a:focus-visible, .cid-s button:focus-visible, .cid-sr a:focus-visible, .cid-sr button:focus-visible, .cid-sr select:focus-visible, .cid-sr input:focus-visible {
  outline: 2px solid #06801b; outline-offset: 2px;
}
.cid-f-opt:focus-visible { outline-offset: 0; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  .cid-sr .cid-sr-side, .cid-card .product-thumb, .cid-f-toggle::after { transition: none; }
  .cid-s-panel.is-loading::before, .cid-skel-img, .cid-skel-line { animation: none; }
}
