/* Native search enhancement. All colour tokens follow the active storefront skin. */
.as-search { position:relative; z-index:40; }
.as-live-search { position:relative; width:100%; isolation:isolate; }
.as-live-search [hidden] { display:none!important; }
.as-search .as-search-form { height:48px; align-items:center; border-radius:9px; background:#f7f3fc; transition:border-color .15s,box-shadow .15s; }
.as-search .as-search-form:focus-within { border-color:var(--as-violet); box-shadow:0 0 0 3px #6525ff0d; background:#fff; }
.as-search-leading { display:flex; padding-left:15px; color:var(--as-violet); }
.as-search .as-search-form input[type=search] { flex:1; height:46px; font-size:13px; padding:10px 9px; border-radius:9px; }
.as-search-form input::-webkit-search-cancel-button { display:none; }
.as-search .as-search-form .as-search-submit { display:grid; place-items:center; width:38px; min-width:38px; height:38px; margin-right:4px; padding:0; border-radius:6px; background:var(--as-violet); color:#fff; }
.as-search .as-search-form .as-search-submit:hover { background:var(--as-plum); }
.as-search-clear,.as-search-close { display:grid; place-items:center; flex-shrink:0; width:40px; height:44px; border:0; background:transparent; color:var(--as-muted); padding:0; cursor:pointer; }
.as-search-clear:hover,.as-search-close:hover { color:var(--as-violet); }
.as-search-panel { position:absolute; z-index:60; top:calc(100% + 9px); left:0; width:100%; min-width:300px; display:flex; flex-direction:column; max-height:min(620px,var(--as-search-room,65dvh)); border:1px solid var(--as-line); border-radius:12px; background:#fff; box-shadow:0 16px 50px #24103626,0 2px 8px #2410360a; overflow:hidden; text-align:left; }
.as-search-panel-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-shrink:0; padding:15px 14px 14px 20px; border-bottom:1px solid var(--as-line); background:linear-gradient(115deg,#fbf9ff,#f2ebff); }
.as-search-panel-head strong { display:block; font-size:17px; font-weight:650; line-height:1.4; letter-spacing:-.025em; color:var(--as-ink); }
.as-search-eyebrow { display:block; margin-bottom:3px; color:var(--as-violet); font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.as-search-close { width:32px; height:36px; }
.as-search-panel-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.as-search-discover { padding:19px 20px 22px; }
.as-search-hint { margin:0 0 21px; color:var(--as-muted); font-size:12px; line-height:1.7; }
.as-search-label { margin:0 0 10px; font-size:10px; font-weight:700; color:var(--as-muted); text-transform:uppercase; letter-spacing:.09em; }
.as-search-categories { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-bottom:20px; }
.as-search-categories a { display:flex; align-items:center; justify-content:space-between; gap:7px; padding:11px 12px; min-height:46px; border:1px solid var(--as-line); border-radius:6px; font-size:12px; line-height:1.4; font-weight:550; overflow-wrap:anywhere; }
.as-search-categories a svg { color:var(--as-violet); }
.as-search-categories a:hover,.as-search-categories a:focus-visible { border-color:var(--as-violet); background:#f9f5ff; }
.as-search-brands { display:flex; flex-wrap:wrap; gap:7px; }
.as-search-brands a { display:inline-flex; align-items:center; min-height:36px; padding:7px 11px; border-radius:20px; background:var(--as-lilac); color:var(--as-plum); font-size:11px; font-weight:550; }
.as-search-brands a:hover { background:var(--as-violet); color:#fff; }
.as-search-products { list-style:none; margin:0; padding:4px 0; }
.as-search-products li { margin:0; }
.as-search-product { display:flex; align-items:center; gap:14px; min-height:92px; margin:0 8px; padding:11px 12px; border-radius:7px; color:var(--as-ink); text-decoration:none; }
.as-search-products li+li .as-search-product { border-top:1px solid #f0ebf5; }
.as-search-product:hover,.as-search-product:focus-visible { background:#f8f4ff; }
.as-search-product:focus-visible { outline-offset:-2px; }
.as-search-product-image { display:grid; place-items:center; flex:0 0 64px; height:64px; padding:4px; border-radius:6px; background:#f5f1fa; }
.as-search-product-image img { width:56px; height:56px; object-fit:contain; mix-blend-mode:multiply; }
.as-search-product-detail { min-width:0; flex:1; }
.as-search-product-name { display:block; font-size:12px; line-height:1.55; font-weight:550; overflow-wrap:anywhere; }
.as-search-product-price { display:block; margin-top:4px; color:var(--as-violet); font-size:14px; line-height:1.4; font-weight:700; }
.as-search-product-price .price-box { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; margin:0; }
.as-search-product-price .price { font-size:14px; font-weight:700; }
.as-search-product-price .price-label { font-size:10px; font-weight:400; color:var(--as-muted); }
.as-search-product-price .old-price { font-size:11px; color:var(--as-muted); text-decoration:line-through; }
.as-search-product-price .old-price .price { font-size:11px; font-weight:400; }
.as-search-product-price .special-price { margin:0; }
.as-search-product-arrow { color:#9c8aac; }
.as-search-panel-foot { flex-shrink:0; padding:10px 12px; background:#fbf9ff; border-top:1px solid var(--as-line); }
.as-search-panel-foot>a { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:40px; padding:9px 12px; border-radius:6px; color:#fff; background:var(--as-violet); font-size:12px; font-weight:600; }
.as-search-panel-foot>a:hover { background:var(--as-plum); }
.as-search-state { margin:0; padding:28px 22px; font-size:13px; line-height:1.8; color:var(--as-muted); }
.as-search-loading { padding:8px 20px; }
.as-search-skeleton { display:flex; align-items:center; gap:14px; min-height:86px; }
.as-search-skeleton>span { width:64px; height:64px; border-radius:6px; background:#f1ecf8; }
.as-search-skeleton>div { flex:1; }
.as-search-skeleton i { display:block; height:10px; width:80%; border-radius:3px; background:#f1ecf8; }
.as-search-skeleton i+i { width:28%; margin-top:13px; }
.as-search-panel[data-compact=true] .as-search-panel-head { padding:4px 10px 4px 15px; }
.as-search-panel[data-compact=true] .as-search-eyebrow { display:none; }
.as-search-panel[data-compact=true] .as-search-panel-head strong { font-size:13px; }
.as-search-panel[data-compact=true] .as-search-panel-foot { padding:5px 8px; }
.as-search-panel[data-compact=true] .as-search-product { min-height:78px; padding-block:7px; }
@media(max-width:1023px) {
    .as-search .as-search-form input[type=search] { font-size:16px; }
    .as-search-panel { min-width:0; }
}
@media(max-width:479px) {
    .as-search-leading { padding-left:12px; }
    .as-search-leading svg { width:18px; }
    .as-search .as-search-form input[type=search] { font-size:16px; letter-spacing:-.025em; }
    .as-search-panel-head { padding:11px 10px 11px 15px; }
    .as-search-panel-head strong { font-size:16px; }
    .as-search-discover { padding:16px; }
    .as-search-categories { gap:6px; }
    .as-search-categories a { padding:10px; font-size:11px; }
    .as-search-product { gap:10px; padding:10px 8px; }
    .as-search-product-name { font-size:12px; }
    .as-search-product-arrow { width:14px; }
}
@media(prefers-reduced-motion:reduce) { .as-search .as-search-form { transition:none; } }
