/* HxH Store - professional search bar + footer (loaded last). */

/* ---------------- Search bar ---------------- */
html[data-theme] .topbar .header-search{
  position:relative;display:flex;align-items:center;gap:10px;box-sizing:border-box;
  flex:0 1 clamp(240px,26vw,380px);width:clamp(240px,26vw,380px)!important;min-width:0;max-width:100%;
  height:44px;min-height:44px;padding:0 8px 0 14px!important;margin-left:auto!important;
  border-radius:12px!important;overflow:visible!important;
  background:var(--hx-soft,#f1effb)!important;border:1px solid var(--hx-card-line,#e6e3f3)!important;
  box-shadow:none!important;transition:border-color .15s,box-shadow .15s,background .15s,width .2s}
html[data-theme] .topbar .header-search:hover{border-color:color-mix(in srgb,var(--hx-primary,#6a55e0) 45%,var(--hx-card-line,#e6e3f3))!important}
html[data-theme] .topbar .header-search:focus-within{
  background:var(--hx-card,#fff)!important;border-color:var(--hx-primary,#6a55e0)!important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--hx-primary,#6a55e0) 18%,transparent)!important}
@media(min-width:1101px){html[data-theme] .topbar .header-search:focus-within{flex-basis:clamp(280px,32vw,460px);width:clamp(280px,32vw,460px)!important}}
html[data-theme] .topbar .header-search>svg{flex:0 0 18px;width:18px;height:18px;color:var(--hx-ink2,#6a6e8a);opacity:.85}
html[data-theme] .topbar .header-search input{
  flex:1 1 auto;min-width:0;width:100%;height:100%;padding:0!important;margin:0;border:0!important;outline:0!important;
  background:transparent!important;box-shadow:none!important;color:var(--hx-ink,#14142b)!important;
  font-size:14px!important;font-weight:500;line-height:1.2;-webkit-appearance:none;appearance:none}
html[data-theme] .topbar .header-search input::placeholder{color:var(--hx-ink2,#6a6e8a)!important;opacity:.75;font-weight:400}
html[data-theme] .topbar .header-search input::-webkit-search-cancel-button{display:none}
html[data-theme] .topbar .header-search .search-clear{
  flex:0 0 26px;width:26px;height:26px;display:inline-grid;place-items:center;padding:0;border:0;border-radius:50%;
  background:color-mix(in srgb,var(--hx-ink2,#6a6e8a) 16%,transparent);color:var(--hx-ink2,#6a6e8a);cursor:pointer}
html[data-theme] .topbar .header-search .search-clear[hidden]{display:none}
html[data-theme] .topbar .header-search .search-clear svg{width:13px;height:13px}
html[data-theme] .topbar .header-search .search-clear:hover{background:color-mix(in srgb,var(--hx-ink2,#6a6e8a) 28%,transparent)}
html[data-theme] .topbar .header-search kbd{
  display:inline-flex!important;align-items:center;flex:0 0 auto;padding:3px 7px;border-radius:7px;cursor:pointer;
  font-size:11px;font-weight:600;line-height:1;font-family:inherit;letter-spacing:.2px;white-space:nowrap;
  background:var(--hx-card,#fff)!important;border:1px solid var(--hx-card-line,#e6e3f3)!important;color:var(--hx-ink2,#6a6e8a)!important}
html[data-theme] .topbar .header-search .search-clear:not([hidden]) ~ kbd{display:none!important}

/* suggestions dropdown */
.search-suggest{
  position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:80;max-height:min(70vh,440px);overflow:auto;padding:8px;
  background:var(--hx-card,#fff);border:1px solid var(--hx-card-line,#e6e3f3);border-radius:14px;
  box-shadow:var(--hx-shadow-lg,0 22px 55px rgba(0,0,0,.18));color:var(--hx-ink,#14142b);text-align:left}
.search-suggest[hidden]{display:none}
.search-suggest .ss-head{padding:6px 10px 4px;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--hx-ink2,#6a6e8a)}
.search-suggest .ss-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 8px 8px}
.search-suggest .ss-chip{padding:7px 12px;border-radius:999px;border:1px solid var(--hx-card-line,#e6e3f3);background:var(--hx-soft,#f1effb);color:var(--hx-ink,#14142b);font-size:12.5px;font-weight:600;line-height:1;font-family:inherit;cursor:pointer}
.search-suggest .ss-chip:hover,.search-suggest .ss-chip.is-active{border-color:var(--hx-primary,#6a55e0);color:var(--hx-primary,#6a55e0)}
.search-suggest .ss-item,.search-suggest .ss-all{
  display:flex;align-items:center;gap:12px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:transparent;
  color:inherit;font:inherit;text-align:left;cursor:pointer}
.search-suggest .ss-item>svg,.search-suggest .ss-all>svg:first-child{flex:0 0 32px;width:32px;height:32px;padding:7px;border-radius:9px;background:var(--hx-soft,#f1effb);color:var(--hx-primary,#6a55e0)}
.search-suggest .ss-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.search-suggest .ss-text strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-suggest .ss-text small{font-size:12px;color:var(--hx-ink2,#6a6e8a)}
.search-suggest mark{background:color-mix(in srgb,var(--hx-primary,#6a55e0) 22%,transparent);color:inherit;border-radius:3px;padding:0 1px}
.search-suggest .ss-price{font-size:13px;font-weight:700;color:var(--hx-ink,#14142b);white-space:nowrap}
.search-suggest .ss-item:hover,.search-suggest .ss-item.is-active,.search-suggest .ss-all:hover,.search-suggest .ss-all.is-active{background:var(--hx-soft,#f1effb)}
.search-suggest .ss-all{margin-top:4px;border-top:1px solid var(--hx-card-line,#e6e3f3);border-radius:0 0 10px 10px;color:var(--hx-primary,#6a55e0);font-weight:600;font-size:13.5px}
.search-suggest .ss-all span{flex:1}
.search-suggest .ss-all>svg:last-child{width:16px;height:16px}
.search-suggest .ss-empty{padding:14px 12px;font-size:13.5px;color:var(--hx-ink2,#6a6e8a)}

@media(max-width:1100px){html[data-theme] .topbar .header-search{flex:0 1 300px;width:min(320px,36vw)!important}}
@media(max-width:760px){
  html[data-theme] .topbar .header-search{order:6;flex:1 1 100%;width:100%!important;max-width:100%;margin-left:0!important;height:46px;min-height:46px}
  html[data-theme] .topbar .header-search kbd{display:none!important}
  html[data-theme] .topbar .header-search input{font-size:16px!important}/* stops iOS zoom */
  .search-suggest{max-height:60vh}
}

/* ---------------- Footer ---------------- */
html[data-theme] .footer.pro-footer{
  display:block!important;margin-top:48px;padding:36px 0 18px!important;
  border-top:1px solid var(--hx-card-line,#e6e3f3)!important;background:transparent!important;
  color:var(--hx-ink2,#6a6e8a)!important;font-size:13.5px}
.pro-footer .footer-main{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(120px,1fr));gap:32px 40px;align-items:start}
.pro-footer .footer-brand strong{display:block;font-size:17px;font-weight:700;letter-spacing:-.2px;color:var(--hx-ink,#14142b)}
.pro-footer .footer-brand p{margin:8px 0 16px;max-width:34ch;line-height:1.6}
.pro-footer .footer-col{display:flex;flex-direction:column;gap:10px}
.pro-footer .footer-col h4{margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--hx-ink,#14142b)}
.pro-footer .footer-col a{color:var(--hx-ink2,#6a6e8a);text-decoration:none;width:fit-content;transition:color .15s}
.pro-footer .footer-col a:hover{color:var(--hx-primary,#6a55e0)}
.pro-footer .footer-col a:focus-visible,.pro-footer .footer-social:focus-visible{outline:2px solid var(--hx-primary,#6a55e0);outline-offset:3px;border-radius:8px}

.pro-footer .socials{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px;margin:0!important}
.pro-footer .footer-social{
  display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;text-decoration:none;
  background:var(--hx-soft,#f1effb);border:1px solid var(--hx-card-line,#e6e3f3);color:var(--hx-ink,#14142b);
  transition:transform .15s,background .15s,color .15s,border-color .15s}
.pro-footer .footer .socials svg,.pro-footer .footer-social svg{width:19px;height:19px;display:block}
.pro-footer .footer-social:hover{transform:translateY(-2px);color:#fff;border-color:transparent}
.pro-footer .footer-social[data-social=call]:hover{background:#16a34a}
.pro-footer .footer-social[data-social=instagram]:hover{background:linear-gradient(45deg,#f9a03f,#e1306c 55%,#833ab4)}
.pro-footer .footer-social[data-social=whatsapp]:hover{background:#25d366}
.pro-footer .footer-social[data-social=tiktok]:hover{background:#000}
.pro-footer .footer-social[data-social=facebook]:hover{background:#1877f2}
.pro-footer .footer-social[data-social=youtube]:hover{background:#ff0000}
.pro-footer .footer-social[data-social=telegram]:hover{background:#229ed9}
.pro-footer .footer-social[data-social=x]:hover{background:#111}

.pro-footer .footer-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px;margin-top:28px;padding-top:16px;border-top:1px solid var(--hx-card-line,#e6e3f3);font-size:12.5px}
.pro-footer .footer-secure{display:inline-flex;align-items:center;gap:6px}
.pro-footer .footer-secure svg{width:15px;height:15px;color:var(--hx-primary,#6a55e0)}
.pro-footer .version-control{margin-top:14px}

@media(max-width:900px){.pro-footer .footer-main{grid-template-columns:1fr 1fr;gap:28px}.pro-footer .footer-brand{grid-column:1/-1}}
@media(max-width:480px){
  html[data-theme] .footer.pro-footer{padding-top:28px!important}
  .pro-footer .footer-main{grid-template-columns:1fr 1fr;gap:24px 16px}
  .pro-footer .footer-bottom{flex-direction:column;align-items:flex-start}
  .pro-footer .footer-social{width:44px;height:44px}
}
@media(prefers-reduced-motion:reduce){.pro-footer .footer-social,html[data-theme] .topbar .header-search{transition:none}.pro-footer .footer-social:hover{transform:none}}
