/* Liscano Commerce OS v0.8.1 — search experience / Google Sans / WC related-grid fix */
:root{--lco-font:'Google Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--lco-display:'Google Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body.lco-editorial{font-family:var(--lco-font);letter-spacing:-.012em}
body.lco-editorial :is(h1,h2,h3,h4,h5,h6){font-family:var(--lco-display);letter-spacing:-.045em}
body.lco-editorial :is(.lco-section-heading h2,.lco-home-end h2,.lco-editorial-panel h2,.lco-hero-content h1,.lco-pdp-summary h1.product_title,.lco-page-title,.lco-archive-head h1,.lco-cart-hero h1,.lco-footer-top h2){font-weight:600;line-height:1.01}
body.lco-editorial .woocommerce :is(h1,h2,h3),body.lco-editorial .woocommerce-tabs .panel h2{font-family:var(--lco-display)}
/* WooCommerce clearfix pseudo-elements become real CSS Grid cells. Eliminate ghost slots. */
body.lco-editorial .woocommerce ul.products::before,body.lco-editorial .woocommerce ul.products::after,
body.lco-editorial ul.products.lco-product-grid::before,body.lco-editorial ul.products.lco-product-grid::after,
body.lco-editorial.single-product .lco-pdp-after ul.products::before,body.lco-editorial.single-product .lco-pdp-after ul.products::after{
  content:none!important;display:none!important;position:static!important;
}
body.lco-editorial.single-product .lco-pdp-after :is(.related.products,.up-sells.products,.upsells.products){clear:both!important;float:none!important;display:block!important;width:100%!important;max-width:100%!important}
body.lco-editorial.single-product .lco-pdp-after :is(.related.products,.up-sells.products,.upsells.products) > ul.products{
  display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:28px 16px!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
  list-style:none!important;float:none!important;align-items:start!important;
}
body.lco-editorial.single-product .lco-pdp-after :is(.related.products,.up-sells.products,.upsells.products) > ul.products > li.product{
  display:block!important;grid-column:auto!important;grid-row:auto!important;float:none!important;
  width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
  clear:none!important;align-self:start!important;position:relative;
}
body.lco-editorial.single-product .lco-pdp-after :is(.related.products,.up-sells.products,.upsells.products) > h2{
  font-size:clamp(27px,3.1vw,43px)!important;font-family:var(--lco-font)!important;font-weight:650!important;line-height:1.08!important;
  letter-spacing:-.055em!important;margin-bottom:23px!important;
}
body.lco-editorial.single-product .lco-pdp-after ul.products > li.product .lco-card-media{display:block;width:100%;aspect-ratio:4/4.8}
body.lco-editorial.single-product .lco-pdp-after ul.products > li.product .lco-card-img{height:100%!important;object-fit:cover!important}
body.lco-editorial.single-product .lco-pdp-after ul.products > li.product .lco-card-name{overflow-wrap:anywhere}
@media(max-width:1100px){
 body.lco-editorial.single-product .lco-pdp-after :is(.related.products,.up-sells.products,.upsells.products) > ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:767px){
 body.lco-editorial.single-product .lco-pdp-after :is(.related.products,.up-sells.products,.upsells.products) > ul.products{
   grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:23px 12px!important;
 }
 body.lco-editorial.single-product .lco-pdp-after :is(.related.products,.up-sells.products,.upsells.products) > h2{
   font-size:clamp(26px,7vw,34px)!important;margin:0 0 18px!important;
 }
 body.lco-editorial.single-product .lco-pdp-after ul.products > li.product .lco-card-meta{margin-top:9px!important}
 body.lco-editorial.single-product .lco-pdp-after ul.products > li.product .lco-card-price{font-size:clamp(12px,3.1vw,16px);overflow-wrap:anywhere}
 body.lco-editorial.single-product .lco-pdp-after ul.products > li.product .lco-card-bottom{gap:3px}
 body.lco-editorial .lco-hero-content h1{font-size:clamp(53px,12.5vw,84px);line-height:.99}
 body.lco-editorial .lco-section-heading h2{font-size:clamp(36px,9.8vw,67px);line-height:1.01}
 body.lco-editorial .lco-pdp-summary h1.product_title{font-size:clamp(38px,10.7vw,64px)}
}

/* Search: full-screen sheet on mobile, elevated editorial dialog on desktop. */
body.lco-search-open{overflow:hidden!important}
body.lco-editorial .lco-search-panel{position:fixed;inset:0;z-index:500;isolation:isolate;display:flex;justify-content:center;align-items:flex-start;padding:clamp(20px,6svh,85px) 22px 22px;overflow-y:auto;background:rgba(14,16,18,.53);backdrop-filter:blur(5px);overscroll-behavior:contain}
body.lco-editorial .lco-search-panel[hidden]{display:none!important}
.lco-search-backdrop{position:fixed;inset:0;border:0;background:transparent;cursor:default;z-index:0}
.lco-search-dialog{width:min(100%,900px);max-height:calc(100dvh - 9svh - 40px);min-height:420px;display:flex;flex-direction:column;overflow:hidden;position:relative;z-index:1;border-radius:25px;background:#fff;box-shadow:0 40px 150px rgba(0,0,0,.23);color:#1e2021;animation:lco-search-pop .22s ease both}
@keyframes lco-search-pop{from{opacity:.55;transform:translateY(12px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
.lco-search-head{padding:31px 35px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.lco-search-eyebrow,.lco-search-label{display:block;color:#a52b43;font-size:10px;font-weight:800;letter-spacing:.16em}
body.lco-editorial .lco-search-head h2{margin:8px 0 0;font-size:clamp(31px,3.5vw,45px);line-height:1.09;letter-spacing:-.055em;font-weight:700}
.lco-search-close{width:42px;height:42px;flex:none;border:1px solid #ebebeb!important;border-radius:50%;background:#f5f5f3!important;display:grid;place-items:center;color:#2b2c2a;transition:background .2s}
.lco-search-close:hover{background:#ececea!important}
body.lco-editorial form.lco-search-form{min-height:unset;position:relative;display:flex;gap:9px;align-items:center;margin:0 35px 0;padding:7px 8px 7px 20px;border:2px solid #1f2021;border-radius:16px;background:#fafaf9}
body.lco-editorial form.lco-search-form:focus-within{border-color:var(--lco-red);box-shadow:0 0 0 4px rgba(190,26,52,.07)}
.lco-search-glass{color:#757673;flex:none}
body.lco-editorial form.lco-search-form input[type=search]{display:block;flex:1;min-width:0!important;width:100%;font-family:var(--lco-font)!important;font-size:17px;font-weight:500;letter-spacing:-.025em;color:#1d1d1c;background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important;height:43px!important;padding:0!important}
body.lco-editorial form.lco-search-form input::placeholder{color:#959792;opacity:1}
body.lco-editorial form.lco-search-form button.lco-search-submit{margin:0;border:0;border-radius:11px;background:#bc1733;color:white;min-width:46px;width:46px;height:46px;display:grid;place-items:center;padding:0;flex:none}
body.lco-editorial form.lco-search-form button.lco-search-submit:hover{background:#95152b}
.lco-search-content{min-height:210px;overflow-y:auto;overscroll-behavior:contain;flex:1;padding:25px 35px 32px;scrollbar-width:thin}
.lco-search-helper{max-width:520px;font-size:14px;color:#747673;margin:8px 0 22px}
.lco-search-popular{display:flex;gap:9px;flex-wrap:wrap}
.lco-search-popular a{display:inline-flex;gap:12px;align-items:center;justify-content:space-between;min-height:42px;border:1px solid #e3e4e0;border-radius:99px;padding:9px 15px;font-size:13px;font-weight:650;transition:background .2s,border-color .2s}
.lco-search-popular a:hover{background:#f5f5f2;border-color:#c9c9c4}
.lco-search-results[hidden],.lco-search-start[hidden]{display:none!important}
.lco-search-results-head{display:flex;justify-content:space-between;gap:9px;align-items:center;padding:0 0 15px}
.lco-search-results-count{font-size:12px;color:#858681}
.lco-search-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.lco-search-result{display:flex;align-items:center;min-width:0;gap:12px;border:1px solid #e9e9e7;border-radius:15px;padding:9px;text-decoration:none;transition:background .18s,border-color .18s}
.lco-search-result:hover,.lco-search-result.is-keyboard-active{border-color:#d8bec4;background:#fcf5f7}
.lco-search-result-image{width:74px;height:79px;border-radius:10px;object-fit:cover;flex:none;background:#f1f1ee}
.lco-search-result-placeholder{width:74px;height:79px;display:grid;place-items:center;flex:none;background:#f1f1ee;border-radius:10px;color:#999}
.lco-search-result-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.lco-search-result-cat{color:#94968f;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.lco-search-result-name{font-size:14px;font-weight:750;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.lco-search-result-price{font-size:13px;font-weight:800;color:#b31532;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lco-search-categories{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 13px}
.lco-search-categories a{border-radius:99px;padding:6px 12px;background:#f5f3f2;color:#363636;font-size:12px;font-weight:700}
.lco-search-categories a:hover{background:#f5dce3}
.lco-search-all{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding:14px 18px;border-radius:13px;background:#1e2021;color:white!important;font-size:13px;font-weight:750}
.lco-search-all:hover{background:#b81833}
.lco-search-state{padding:22px 0 27px;color:#60615e;font-size:14px}
.lco-search-state strong{display:block;color:#292a28;font-size:17px;margin-bottom:5px}
.lco-search-footer{border-top:1px solid #ecece9;padding:14px 35px;display:flex;justify-content:space-between;gap:10px;color:#858782;font-size:10px;font-weight:550}
.lco-search-shortcut{white-space:nowrap}
@media(max-width:767px){
 body.lco-editorial .lco-search-panel{padding:0;align-items:stretch;background:#fff;backdrop-filter:none}
 .lco-search-dialog{height:100dvh;max-height:100dvh;min-height:0;width:100%;border-radius:0;box-shadow:none}
 .lco-search-head{padding:24px 18px 20px}
 body.lco-editorial .lco-search-head h2{font-size:clamp(29px,7.8vw,39px)}
 .lco-search-close{width:39px;height:39px}
 body.lco-editorial form.lco-search-form{margin:0 18px;padding:6px 7px 6px 12px;border-radius:13px}
 body.lco-editorial form.lco-search-form input[type=search]{font-size:14px;height:39px!important}
 body.lco-editorial form.lco-search-form button.lco-search-submit{height:40px;width:40px;min-width:40px}
 .lco-search-content{padding:23px 18px 30px;min-height:0}
 .lco-search-result-grid{grid-template-columns:minmax(0,1fr);gap:8px}
 .lco-search-result-image,.lco-search-result-placeholder{width:68px;height:72px}
 .lco-search-result-name{font-size:13px}
 .lco-search-footer{padding:14px 18px calc(16px + env(safe-area-inset-bottom));font-size:10px}
 .lco-search-shortcut{display:none}
}
@media(prefers-reduced-motion:reduce){.lco-search-dialog{animation:none}}
