/* All selectors scoped: does not alter WooCommerce, Elementor or FiboSearch controls. */
.sb-visually-hidden { position:absolute !important; height:1px;width:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.sb-search-wrap {position:relative; width:100%; max-width:100%; font-family:inherit; z-index:50;}
.sb-search-form {height:40px;display:flex;align-items:stretch;border:2px solid transparent;border-radius:10px;background:#fff;overflow:hidden;box-sizing:border-box;}
.sb-search-form:focus-within{border-color:#F5A53B;box-shadow:0 0 0 2px rgba(245,165,59,.18);}
.sb-search-category {appearance:auto;width:210px !important;min-width:210px !important;max-width:210px !important;flex:0 0 210px !important;box-sizing:border-box;border:0;border-right:1px solid #c5c5c5 !important;background:#e7e7e7 !important;color:#333 !important;padding:0 12px !important;margin:0 !important;border-radius:0 !important;height:100% !important;box-shadow:none !important;font-family:inherit !important;font-weight:500 !important;font-size:13px !important;line-height:1.25 !important;cursor:pointer;text-overflow:ellipsis;}
.sb-search-input, .sb-search-input[type=search] {min-width:0;flex:1 1 auto;width:100%;border:0 !important;border-radius:0 !important;padding:0 14px !important;margin:0 !important;outline:0 !important;box-shadow:none !important;background:#fff !important;color:#111 !important;font-family:inherit !important;font-weight:400 !important;font-size:16px !important;line-height:1.4 !important;height:100% !important;}
.sb-search-input::placeholder{color:#777;opacity:1;}
.sb-search-input::-webkit-search-cancel-button{cursor:pointer;}
.sb-search-submit {flex:0 0 46px;display:flex;align-items:center;justify-content:center;padding:0 !important;border:0 !important;background:#F5A53B !important;color:#161616 !important;cursor:pointer;border-radius:0 !important;height:100%;transition:background .16s ease;}
.sb-search-submit:hover,.sb-search-submit:focus-visible{background:#f4b659 !important;}
.sb-search-submit svg {width:21px;height:21px;}
.sb-suggest-panel {position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:9999;max-height:min(430px,calc(100dvh - 100px));display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;background:#fff;color:#222;box-shadow:0 8px 28px rgba(0,0,0,.18);border:1px solid #e5e5e5;border-radius:10px;}
.sb-suggest-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d4d4d4 transparent;}
.sb-suggest-body::-webkit-scrollbar{width:5px;}
.sb-suggest-body::-webkit-scrollbar-track{background:transparent;}
.sb-suggest-body::-webkit-scrollbar-thumb{background:#d4d4d4;border-radius:8px;}
.sb-suggest-footer{flex:0 0 auto;background:#fafafa;}
.sb-suggest-panel[hidden]{display:none !important;}
.sb-suggest-heading{padding:11px 15px 6px;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:700;color:#777;}
.sb-suggest-option{display:flex;align-items:center;width:100%;gap:12px;box-sizing:border-box;background:#fff;border:0;text-align:left;text-decoration:none !important;color:#191919 !important;padding:9px 14px;cursor:pointer;font-family:inherit;font-size:13px;line-height:1.35;border-radius:0;}
.sb-suggest-product{border-bottom:1px solid #efefef;}
.sb-suggest-option:hover,.sb-suggest-option[aria-selected=true],.sb-suggest-option:focus-visible{background:#f6f6f6 !important;}
/* Category suggestions are plain native links, insulated from Elementor button styling. */
.sb-search-wrap .sb-suggest-panel a.sb-suggest-cat,
.sb-search-wrap .sb-suggest-panel a.sb-suggest-cat:link,
.sb-search-wrap .sb-suggest-panel a.sb-suggest-cat:visited{
  display:flex !important;align-items:center !important;justify-content:flex-start !important;
  box-sizing:border-box !important;width:100% !important;max-width:100% !important;
  margin:0 !important;padding:10px 15px !important;min-height:40px !important;height:auto !important;
  background:#fff !important;color:#222 !important;border:0 !important;border-radius:0 !important;
  box-shadow:none !important;text-decoration:none !important;text-align:left !important;
  font-family:inherit !important;font-size:13px !important;line-height:1.35 !important;
  font-weight:500 !important;letter-spacing:normal !important;text-transform:none !important;
}
.sb-search-wrap .sb-suggest-panel a.sb-suggest-cat:hover,
.sb-search-wrap .sb-suggest-panel a.sb-suggest-cat:focus-visible,
.sb-search-wrap .sb-suggest-panel a.sb-suggest-cat[aria-selected=true]{
  background:#f6f6f6 !important;color:#000 !important;
}
.sb-search-wrap .sb-suggest-panel a.sb-suggest-cat::before{
  content:'⌕';display:inline-block;font-size:18px;line-height:1;color:#727272;
  margin-right:9px;flex:0 0 auto;
}
.sb-suggest-img{width:50px;height:50px;object-fit:contain;background:#fff;flex:0 0 50px;}
.sb-suggest-info{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:4px;min-width:0;flex:1;}
.sb-suggest-name{min-width:0;flex:1;font-size:13px;font-weight:500;color:#000;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.sb-suggest-highlight{min-width:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;color:#727272;font-size:12px;font-weight:400;line-height:1.4;}
.sb-suggest-prices{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:3px;text-align:right;}
.sb-suggest-current{color:#000;font-size:14px;font-weight:600;white-space:nowrap;}
.sb-suggest-regular{color:#727272;font-size:12px;font-weight:400;text-decoration:line-through;white-space:nowrap;}
.sb-suggest-empty{font-size:13px;color:#707070;padding:16px;}
/* Footer link, intentionally not a button; resist Elementor global skins. */
.sb-search-wrap .sb-suggest-panel a.sb-suggest-view-all,
.sb-search-wrap .sb-suggest-panel a.sb-suggest-view-all:visited{
  box-sizing:border-box !important;
  display:flex !important;align-items:center !important;justify-content:center !important;
  width:100% !important;min-height:42px !important;height:auto !important;
  margin:0 !important;padding:10px 14px !important;
  background:#fafafa !important;color:#262626 !important;
  border:0 !important;border-top:1px solid #ececec !important;
  border-radius:0 0 10px 10px !important;box-shadow:none !important;
  text-align:center !important;text-decoration:none !important;
  font-family:inherit !important;font-size:13px !important;font-weight:500 !important;
  line-height:1.4 !important;letter-spacing:normal !important;text-transform:none !important;
  cursor:pointer;
}
.sb-search-wrap .sb-suggest-panel a.sb-suggest-view-all:hover,
.sb-search-wrap .sb-suggest-panel a.sb-suggest-view-all:focus-visible{
  background:#f0f0f0 !important;color:#000 !important;
}
.sb-results{font-family:inherit;max-width:1240px;margin:24px auto;padding:0 18px;min-height:45vh;box-sizing:border-box;}
.sb-results>h1{font-size:25px;font-weight:650;margin:10px 0 20px;color:inherit;}
.sb-results .sb-search-wrap{margin-bottom:18px;}
.sb-results-count{margin:16px 0;color:#555;font-size:13px;}
.sb-results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.sb-results-product{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:14px;border:1px solid #eee;border-radius:6px;background:#fff;min-width:0;}
.sb-results-image{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;}
.sb-results-image img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;}
.sb-results-name{color:#222 !important;text-decoration:none !important;font-size:14px;line-height:1.4;font-weight:500;}
.sb-results-name:hover{color:#0066c0 !important;}
.sb-results-price{font-size:16px;font-weight:650;color:#111;}
.sb-pages{display:flex;flex-wrap:wrap;gap:8px;padding:25px 0;}
.sb-pages a{padding:8px 12px;border-radius:4px;background:#eee;color:#333;text-decoration:none;}
.sb-pages a[aria-current=page]{background:#F5A53B;color:#111;font-weight:700;}
.sb-search-compact .sb-search-form {height:36px;}
.sb-search-compact .sb-search-submit {flex-basis:42px;}
.sb-search-compact .sb-search-submit svg {width:19px;height:19px;}
@media(max-width:800px){.sb-results-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.sb-search-form{height:40px;}.sb-search-category{min-width:112px !important;max-width:112px !important;flex:0 0 112px !important;width:112px !important;padding:0 5px !important;font-size:11px !important;}.sb-search-input,.sb-search-input[type=search]{padding:0 10px !important;font-size:14px !important;}.sb-search-submit{flex-basis:42px;}.sb-search-submit svg{width:20px;height:20px;}.sb-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}.sb-results-product{padding:9px;}.sb-results-name{font-size:12px;}.sb-results>h1{font-size:21px;}}
@media(max-width:350px){.sb-search-category{width:84px !important;min-width:84px !important;max-width:84px !important;flex:0 0 84px !important;}.sb-search-submit{flex-basis:42px;}}

@media(max-width:600px){.sb-suggest-info{gap:8px;}.sb-suggest-current{font-size:12px;}.sb-suggest-regular{font-size:11px;}.sb-suggest-option{padding:8px;gap:8px;}.sb-suggest-img{width:44px;height:44px;flex-basis:44px;}}

/* Reusable Elementor horizontal-card summary; no changes to [sebra_atributos_resumen]. */
.sb-product-highlight{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#727272;font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;max-width:100%;}
.sb-product-highlight--1{-webkit-line-clamp:1;}
.sb-product-highlight--3{-webkit-line-clamp:3;}


/* V0.1.9 — Seven precise backdrop strips leave separate clear openings for
   the bar and dropdown; no undimmed rectangular gap remains between them.
   No Elementor/header ancestors are restyled. */
.sb-search-backdrop {position:fixed !important;inset:0 !important;z-index:2147483000 !important;pointer-events:none !important;overflow:hidden !important;}
.sb-search-backdrop__part {position:absolute;display:block;background:rgba(0,0,0,.43);pointer-events:auto;cursor:default;box-sizing:border-box;}
@media (prefers-reduced-motion:no-preference) {
  .sb-search-backdrop__part {animation:sb-backdrop-show .12s ease-out both;}
  @keyframes sb-backdrop-show {from{opacity:0;}to{opacity:1;}}
}
/* On narrower desktops the category stays compact even when the input expands. */
@media (min-width:601px) and (max-width:1100px){
  .sb-search-category{width:185px !important;min-width:185px !important;max-width:185px !important;flex:0 0 185px !important;}
}

/* V0.1.8 — Keep the dropdown compact even on large displays. */
@media(max-width:600px){
  .sb-suggest-panel{max-height:min(370px,calc(100dvh - 90px));}
}

/* V0.1.10 — Round the BACKDROP'S clear opening, not only the white panel.
   The 0.1.9 rectangular opening exposed unshaded sharp corners beneath the
   dropdown's 10px CSS radius. These masks restore the correct silhouette. */
.sb-search-backdrop__corner {
  position:absolute;
  box-sizing:border-box;
  pointer-events:auto;
  cursor:default;
  --sb-mask:rgba(0,0,0,.43);
}
.sb-search-backdrop__corner--top-left {
  background:radial-gradient(circle at 100% 100%, transparent 9.5px, var(--sb-mask) 10px);
}
.sb-search-backdrop__corner--top-right {
  background:radial-gradient(circle at 0 100%, transparent 9.5px, var(--sb-mask) 10px);
}
.sb-search-backdrop__corner--bottom-left {
  background:radial-gradient(circle at 100% 0, transparent 9.5px, var(--sb-mask) 10px);
}
.sb-search-backdrop__corner--bottom-right {
  background:radial-gradient(circle at 0 0, transparent 9.5px, var(--sb-mask) 10px);
}

/* V0.1.14 — WooCommerce gallery zoom trigger stays behind active search.
   Only while Sebra's backdrop is open; outside search the gallery is unchanged.
   Do not globally change Elementor/zoom z-index or disable the gallery. */
body.sb-search-active .woocommerce-product-gallery__trigger {
  visibility:hidden !important;
  pointer-events:none !important;
}
