/* PIU modern header search — isolated from the theme's .aq-search-wrap/body-overlay. */
.piu-modern-search-backdrop{position:fixed!important;inset:0!important;z-index:100000!important;background:rgba(12,12,12,.68)!important;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}
.piu-modern-search-backdrop.is-open{opacity:1;visibility:visible;pointer-events:auto}
.piu-modern-search-modal{position:fixed!important;top:50%!important;left:50%!important;width:min(920px,calc(100vw - 32px))!important;max-height:min(720px,calc(100vh - 48px))!important;transform:translate(-50%,-47%) scale(.98)!important;z-index:100001!important;background:#fff!important;color:#171717!important;border-radius:24px!important;box-shadow:0 30px 90px rgba(0,0,0,.28)!important;overflow:hidden!important;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,transform .22s ease,visibility .22s ease}
.piu-modern-search-modal.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,-50%) scale(1)!important}
.piu-modern-search-modal *{box-sizing:border-box}
.piu-search-head{padding:28px 30px 20px;border-bottom:1px solid #ececec;background:#fff}
.piu-search-brand{font-size:10px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;color:#8a8a8a;margin-bottom:7px}
.piu-search-title{font-size:30px;line-height:1.1;font-weight:500;letter-spacing:-.8px;margin:0 0 18px;color:#151515}
.piu-search-close{position:absolute;right:22px;top:22px;width:42px;height:42px;border:1px solid #e3e3e3;border-radius:50%;background:#fff;color:#202020;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:23px;line-height:1;z-index:3}
.piu-search-form{display:flex;align-items:center;gap:10px;border:1px solid #bcbcbc;border-radius:14px;padding:5px 6px 5px 15px;background:#fff;box-shadow:0 0 0 3px rgba(203,254,0,0);transition:.18s ease}
.piu-search-form:focus-within{border-color:#202020;box-shadow:0 0 0 3px rgba(203,254,0,.28)}
.piu-search-icon{width:20px;flex:0 0 20px;color:#777}
.piu-search-input{min-width:0;flex:1;border:0!important;outline:0!important;background:transparent!important;padding:13px 4px!important;font-size:15px!important;color:#171717!important;box-shadow:none!important}
.piu-search-submit{height:42px;padding:0 22px;border:0;border-radius:10px;background:#151515;color:#fff;font-size:12px;font-weight:800;cursor:pointer}
.piu-search-clear{width:34px;height:34px;border:0;background:transparent;color:#7a7a7a;cursor:pointer;font-size:18px;display:none}
.piu-search-meta{display:flex;justify-content:space-between;gap:12px;margin-top:10px;color:#888;font-size:11px}
.piu-search-results{padding:20px 30px 28px;overflow:auto;max-height:430px;background:#fafafa}
.piu-search-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.piu-search-result{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:14px;align-items:center;padding:10px;border:1px solid #e7e7e7;border-radius:15px;background:#fff;color:inherit;text-decoration:none;transition:.18s ease}
.piu-search-result:hover{transform:translateY(-2px);border-color:#c8c8c8;box-shadow:0 10px 24px rgba(0,0,0,.07)}
.piu-search-result-image{width:76px;height:76px;border-radius:11px;background:#f1f1ef;object-fit:cover;display:block}
.piu-search-result-category{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#888;margin-bottom:5px}
.piu-search-result-name{font-size:14px;font-weight:700;line-height:1.3;color:#171717;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.piu-search-result-brand{font-size:11px;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.piu-search-price{text-align:right;white-space:nowrap;font-size:13px;font-weight:800;color:#171717}
.piu-search-old-price{display:block;font-size:10px;color:#aaa;text-decoration:line-through;margin-top:3px}
.piu-search-empty{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#777}
.piu-search-empty strong{color:#222;font-size:15px;margin-bottom:6px}
.piu-search-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 30px;border-top:1px solid #e8e8e8;background:#fff}
.piu-search-footer span{font-size:11px;color:#888}
.piu-search-view-all{border:0;background:transparent;color:#171717;font-size:12px;font-weight:800;cursor:pointer;padding:6px 0}
.piu-modern-search-toggle{cursor:pointer}
@media(max-width:767px){.piu-modern-search-modal{width:calc(100vw - 18px)!important;max-height:calc(100vh - 20px)!important;border-radius:20px!important}.piu-search-head{padding:23px 18px 16px}.piu-search-title{font-size:25px}.piu-search-close{right:14px;top:14px;width:38px;height:38px}.piu-search-form{padding-left:12px}.piu-search-submit{padding:0 15px}.piu-search-results{padding:14px 12px;max-height:calc(100vh - 245px)}.piu-search-grid{grid-template-columns:1fr}.piu-search-result{grid-template-columns:64px minmax(0,1fr) auto}.piu-search-result-image{width:64px;height:64px}.piu-search-footer{padding:12px 18px}.piu-search-meta{padding-right:48px}}

body.piu-search-open{overflow:hidden!important}
html.piu-search-open{overflow:hidden!important}
.aq-search-wrap{display:none!important;visibility:hidden!important;pointer-events:none!important}
.aq-header-3-search.piu-modern-search-toggle{display:inline-flex!important;visibility:visible!important;opacity:1!important}

/* PIU search trigger visibility fix: keep the icon visible in normal and sticky headers. */
.aq-header-area .aq-header-3-search.piu-modern-search-toggle,
.aq-header-area.piu-sticky-ready .aq-header-3-search.piu-modern-search-toggle {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10001 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #202020 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    line-height: 1 !important;
}
.aq-header-area .aq-header-3-search.piu-modern-search-toggle span,
.aq-header-area .aq-header-3-search.piu-modern-search-toggle svg {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.aq-header-area .aq-header-3-search.piu-modern-search-toggle svg {
    width: 20px !important;
    height: 20px !important;
}
@media (max-width: 767px) {
    .aq-header-area .aq-header-3-search.piu-modern-search-toggle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}
